:root {
  --ink: #102f27;
  --ink-deep: #08231d;
  --ink-soft: #416458;
  --ivory: #f6f0df;
  --ivory-bright: #fffdf6;
  --amber: #e6bd67;
  --amber-light: #f4d98e;
  --vermillion: #d9533f;
  --green: #416b47;
  --white: #ffffff;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --utility: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: var(--ink-deep);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber-light);
  outline-offset: 4px;
}

.course-scene {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: #809d83;
}

.cinematic-world,
.impact-shake,
.shot-rig,
.course-plate,
.course-plate img,
.green-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinematic-world {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.impact-shake {
  will-change: transform;
}

.shot-rig {
  overflow: hidden;
  will-change: transform, opacity, filter;
}

.tee-rig {
  z-index: 1;
  --tee-ball-x: 27%;
  --tee-ball-y: 83%;
}

.green-rig {
  z-index: 2;
  visibility: hidden;
  opacity: 0;
}

.course-plate,
.course-plate img,
.green-plate {
  display: block;
}

.course-plate img,
.green-plate {
  object-fit: cover;
  object-position: center 53%;
  transform: scale(1.015);
}

.green-plate {
  object-position: center 58%;
}

.plate-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tee-grade {
  background:
    linear-gradient(180deg, rgba(245, 234, 205, 0.06) 0%, transparent 34%),
    linear-gradient(90deg, rgba(6, 29, 23, 0.17) 0%, transparent 35%, rgba(3, 21, 16, 0.08) 100%),
    radial-gradient(circle at 54% 46%, transparent 38%, rgba(5, 27, 21, 0.13) 100%);
}

.green-grade {
  background:
    linear-gradient(180deg, rgba(247, 235, 200, 0.05), transparent 38%),
    radial-gradient(circle at 62% 63%, transparent 28%, rgba(5, 27, 20, 0.12) 100%);
}

.film-grain {
  position: absolute;
  inset: -30%;
  z-index: 12;
  opacity: 0.065;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.8) 0 0.55px, transparent 0.7px 3px),
    repeating-radial-gradient(circle at 71% 62%, rgba(6, 28, 22, 0.72) 0 0.5px, transparent 0.7px 3.2px);
  background-size: 8px 8px, 9px 9px;
  transform: rotate(0.001deg);
}

/* Cinematic stage */

.far-pin {
  position: absolute;
  z-index: 3;
  top: 50.5%;
  left: 73.5%;
  width: 22px;
  height: 14.5%;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 3px rgba(13, 37, 27, 0.28));
}

.far-pole {
  position: absolute;
  right: 5px;
  bottom: 0;
  width: 2px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c7c4b7, #fffdf4 55%, #9e9d94);
}

.far-flag {
  position: absolute;
  top: 0;
  right: 6px;
  width: 21px;
  height: 11px;
  clip-path: polygon(0 0, 100% 15%, 82% 100%, 0 82%);
  background: linear-gradient(135deg, #e4614c, #b8392d);
}

.golfer {
  position: absolute;
  z-index: 5;
  bottom: -0.5%;
  left: 5%;
  width: clamp(196px, 23.4vw, 363px);
  aspect-ratio: 0.4651;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.golfer-ground-shadow {
  position: absolute;
  z-index: 0;
  right: -16%;
  bottom: 0.8%;
  width: 105%;
  height: 4.2%;
  border-radius: 50%;
  opacity: 0.34;
  background: rgba(8, 34, 25, 0.58);
  filter: blur(6px);
  transform: skewX(-18deg);
}

.golfer-sprite {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: url("assets/golfer-swing-clean.png");
  background-repeat: no-repeat;
  background-position: var(--golfer-position, 0%) center;
  background-size: 600% 100%;
  filter: drop-shadow(0 9px 9px rgba(7, 30, 22, 0.23));
  will-change: background-position, transform;
}

.tee-marker {
  position: absolute;
  z-index: 3;
  top: calc(var(--tee-ball-y) + 8px);
  left: var(--tee-ball-x);
  width: 3px;
  height: 11px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(#eee9d8, #a39169);
  transform: translateX(-50%);
}

.cinematic-ball {
  position: absolute;
  z-index: 7;
  display: block;
  width: clamp(13px, 1.15vw, 18px);
  aspect-ratio: 1;
  margin: calc(clamp(13px, 1.15vw, 18px) / -2) 0 0 calc(clamp(13px, 1.15vw, 18px) / -2);
  border: 1px solid rgba(79, 84, 72, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 29%, #ffffff 0 20%, transparent 21%),
    radial-gradient(circle at 65% 67%, rgba(103, 113, 99, 0.2) 0 5%, transparent 6%),
    radial-gradient(circle at 49% 48%, rgba(103, 113, 99, 0.14) 0 4%, transparent 5%),
    radial-gradient(circle at 65% 31%, rgba(103, 113, 99, 0.12) 0 4%, transparent 5%),
    linear-gradient(145deg, #fffef8, #dadfd5);
  box-shadow:
    inset -2px -3px 4px rgba(67, 82, 69, 0.18),
    0 3px 4px rgba(8, 29, 22, 0.25);
  will-change: transform, opacity;
}

.ball-detail {
  position: absolute;
  top: 28%;
  left: 21%;
  width: 30%;
  height: 8%;
  border-radius: 999px;
  background: rgba(31, 72, 56, 0.42);
  transform: rotate(-22deg);
}

.tee-ball,
.flight-ball,
.impact-ring {
  top: var(--tee-ball-y);
  left: var(--tee-ball-x);
}

.flight-ball {
  visibility: hidden;
  opacity: 0;
}

.flight-shadow {
  position: absolute;
  z-index: 4;
  top: calc(var(--tee-ball-y) + 8px);
  left: var(--tee-ball-x);
  width: 18px;
  height: 5px;
  margin-left: -9px;
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  background: rgba(6, 28, 20, 0.43);
  filter: blur(2px);
  will-change: transform, opacity;
}

.impact-ring {
  position: absolute;
  z-index: 6;
  width: 30px;
  aspect-ratio: 1;
  margin: -15px 0 0 -15px;
  border: 1.5px solid rgba(247, 240, 218, 0.9);
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
}

.turf-fragment {
  position: absolute;
  z-index: 6;
  top: calc(var(--tee-ball-y) + 4px);
  left: var(--tee-ball-x);
  width: 9px;
  height: 4px;
  border-radius: 60% 20% 60% 30%;
  visibility: hidden;
  opacity: 0;
  background: #48623a;
  will-change: transform, opacity;
}

.turf-two {
  width: 7px;
  background: #789453;
}

.turf-three {
  width: 5px;
  background: #263f2a;
}

.roll-ball {
  top: 73.5%;
  left: 23%;
  width: clamp(18px, 1.5vw, 23px);
  margin: calc(clamp(18px, 1.5vw, 23px) / -2) 0 0 calc(clamp(18px, 1.5vw, 23px) / -2);
  visibility: hidden;
  opacity: 0;
}

.roll-shadow {
  position: absolute;
  z-index: 4;
  top: calc(73.5% + 8px);
  left: 23%;
  width: 20px;
  height: 6px;
  margin-left: -10px;
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  background: rgba(3, 25, 17, 0.48);
  filter: blur(2px);
  will-change: transform, opacity;
}

.pin-close {
  position: absolute;
  z-index: 4;
  top: 19%;
  left: 72%;
  width: 96px;
  height: 53%;
  transform: translateX(-50%);
  transform-origin: 54% 100%;
  filter: drop-shadow(8px 10px 7px rgba(7, 30, 21, 0.24));
}

.flag-pole {
  position: absolute;
  right: 42%;
  bottom: 0;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a5a59d 0%, #f9f6ec 48%, #b7b5aa 100%);
}

.flag-cloth {
  position: absolute;
  top: 0;
  right: calc(42% + 3px);
  width: 72px;
  height: 39px;
  clip-path: polygon(0 3%, 100% 12%, 88% 88%, 0 73%);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.26), transparent 30% 64%, rgba(76, 15, 11, 0.2)),
    linear-gradient(135deg, #eb624c, #bd3b2f);
  transform-origin: 100% 16%;
}

.cup-hole,
.cup-front {
  position: absolute;
  left: 72%;
  top: 72%;
  width: clamp(42px, 4.4vw, 66px);
  height: clamp(13px, 1.35vw, 21px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cup-hole {
  z-index: 3;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 34%, #050b08 0 54%, #163327 56% 73%, rgba(207, 225, 185, 0.6) 76% 82%, transparent 84%);
  box-shadow:
    0 3px 2px rgba(5, 22, 15, 0.28),
    0 -1px 0 rgba(236, 244, 214, 0.56);
}

.cup-front {
  z-index: 8;
  clip-path: inset(48% 0 0 round 0 0 50% 50%);
  background: linear-gradient(180deg, transparent 45%, rgba(73, 116, 55, 0.94) 55% 100%);
  box-shadow: 0 4px 5px rgba(20, 60, 35, 0.18);
}

/* Header */

.topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) clamp(22px, 3.3vw, 56px) 0;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.35);
}

.brand-ball {
  position: relative;
  width: 30px;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 47, 39, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(50, 82, 67, 0.2) 0 4%, transparent 5%),
    radial-gradient(circle at 62% 62%, rgba(50, 82, 67, 0.14) 0 4%, transparent 5%),
    var(--ivory-bright);
  box-shadow: 0 5px 20px rgba(8, 35, 27, 0.13);
}

.course-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(16, 47, 39, 0.82);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-divider {
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--vermillion);
}

/* Invitation */

.ask-state {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
}

.question-copy {
  position: absolute;
  top: clamp(102px, 13.5vh, 150px);
  left: 50%;
  width: min(92vw, 960px);
  text-align: center;
  transform: translateX(-50%);
  pointer-events: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  margin: 0 0 16px;
  padding: 0 13px;
  border: 1px solid rgba(16, 47, 39, 0.22);
  border-radius: 999px;
  color: rgba(16, 47, 39, 0.88);
  background: rgba(246, 240, 223, 0.58);
  box-shadow: 0 8px 28px rgba(7, 36, 26, 0.07);
  backdrop-filter: blur(8px);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.question-copy h1 {
  margin: 0;
  color: var(--ink);
  text-shadow: 0 2px 25px rgba(255, 255, 255, 0.2);
}

.question-copy h1 span {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 750;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.question-copy h1 em {
  display: block;
  color: var(--ivory-bright);
  font-family: var(--display);
  font-size: clamp(86px, 12.4vw, 178px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.72;
  text-shadow:
    0 2px 0 rgba(16, 47, 39, 0.18),
    0 18px 50px rgba(8, 35, 26, 0.22);
}

.intro {
  margin: 24px 0 0;
  color: rgba(16, 47, 39, 0.8);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.choice-field {
  position: absolute;
  inset: 46% clamp(18px, 4vw, 64px) clamp(54px, 7vh, 80px);
  pointer-events: auto;
}

.attempt-badge {
  position: absolute;
  top: 4%;
  right: 3%;
  display: flex;
  gap: 11px;
  align-items: baseline;
  color: rgba(246, 240, 223, 0.88);
  font-family: var(--utility);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(4, 24, 18, 0.5);
}

.attempt-badge span {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.attempt-badge strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.choice {
  position: absolute;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.choice-yes {
  --yes-scale: 1;
  bottom: 6%;
  left: 50%;
  display: grid;
  width: clamp(220px, 19vw, 274px);
  min-height: 82px;
  padding: 16px 19px 14px;
  border: 1px solid rgba(246, 240, 223, 0.22);
  border-radius: 19px;
  color: var(--ivory-bright);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
    var(--ink);
  box-shadow:
    0 18px 34px rgba(6, 30, 23, 0.3),
    0 2px 0 #071f19,
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  text-align: left;
  transform: translateX(-50%) scale(var(--yes-scale));
  transform-origin: 50% 80%;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    background 220ms ease;
}

.choice-yes:hover {
  transform: translateX(-50%) translateY(-4px) scale(var(--yes-scale));
  box-shadow:
    0 23px 40px rgba(6, 30, 23, 0.33),
    0 2px 0 #071f19,
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.choice-yes:active {
  transform: translateX(-50%) translateY(0) scale(calc(var(--yes-scale) * 0.98));
}

.yes-overline {
  color: var(--amber-light);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.yes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.yes-label {
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.button-arrow {
  display: grid;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  color: var(--ink);
  background: var(--amber-light);
  font-size: 17px;
}

.choice-no {
  --no-scale: 1;
  --no-rotate: 0deg;
  z-index: 5;
  min-width: 102px;
  height: 52px;
  padding: 0 21px;
  border: 1px solid rgba(16, 47, 39, 0.15);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.93);
  box-shadow:
    0 10px 24px rgba(7, 32, 24, 0.2),
    inset 0 1px 0 white;
  font-size: 14px;
  font-weight: 800;
  transform: rotate(var(--no-rotate)) scale(var(--no-scale));
  transition:
    left 280ms cubic-bezier(0.16, 1, 0.3, 1),
    top 280ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms ease;
  will-change: left, top, transform;
}

.choice-no.is-dodging {
  animation: no-dodge 290ms cubic-bezier(0.18, 0.88, 0.24, 1.2);
}

.live-message {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: min(360px, 56vw);
  min-height: 33px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  color: rgba(246, 240, 223, 0.94);
  background: rgba(8, 35, 28, 0.64);
  box-shadow: 0 9px 25px rgba(5, 24, 18, 0.14);
  backdrop-filter: blur(10px);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.live-message.message-pop {
  animation: message-pop 360ms ease;
}

.divot {
  position: absolute;
  z-index: 2;
  width: 31px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.34;
  background: rgba(16, 55, 34, 0.58);
  filter: blur(1px);
  pointer-events: none;
}

.comic-word {
  position: absolute;
  z-index: 8;
  color: rgba(246, 240, 223, 0.88);
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 27px);
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 3px 16px rgba(4, 24, 18, 0.5);
  pointer-events: none;
  animation: comic-pop 700ms ease forwards;
}

.shot-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

footer {
  position: absolute;
  z-index: 31;
  right: clamp(20px, 3.3vw, 56px);
  bottom: max(14px, env(safe-area-inset-bottom));
  left: clamp(20px, 3.3vw, 56px);
  display: flex;
  justify-content: space-between;
  color: rgba(246, 240, 223, 0.74);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 9px rgba(3, 23, 16, 0.5);
  text-transform: uppercase;
}

/* Success */

.success-screen {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  color: var(--ivory-bright);
  background:
    linear-gradient(90deg, rgba(5, 28, 21, 0.78) 0%, rgba(5, 28, 21, 0.46) 48%, rgba(5, 28, 21, 0.12) 78%, rgba(5, 28, 21, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 18, 13, 0.1), rgba(2, 18, 13, 0.26));
  pointer-events: none;
}

.success-screen.is-visible {
  pointer-events: auto;
}

.success-content {
  width: min(720px, 84vw);
  margin-left: clamp(32px, 8vw, 130px);
  padding-top: 2vh;
}

.success-kicker {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--ink-deep);
  background: var(--amber-light);
  box-shadow: 0 8px 25px rgba(4, 22, 16, 0.2);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.success-content h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(74px, 10vw, 154px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.78;
  text-wrap: balance;
  text-shadow: 0 16px 45px rgba(3, 21, 15, 0.28);
}

.success-content h2:focus {
  outline: none;
}

.success-copy {
  margin: 28px 0 0;
  color: rgba(255, 253, 246, 0.86);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 650;
  line-height: 1.5;
}

.success-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.celebrate-button,
.reset-button {
  min-height: 56px;
  padding: 0 21px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.celebrate-button {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-deep);
  background: var(--amber-light);
  box-shadow: 0 12px 30px rgba(3, 21, 15, 0.25);
}

.reset-button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ivory-bright);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.celebrate-button:hover,
.reset-button:hover {
  transform: translateY(-2px);
}

.success-content small {
  display: block;
  margin-top: 23px;
  color: rgba(246, 240, 223, 0.62);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Confetti */

.confetti-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: fixed;
  left: var(--origin-x);
  top: var(--origin-y);
  width: var(--piece-w);
  height: var(--piece-h);
  border-radius: 1px;
  opacity: 0;
  background: var(--piece-color);
  will-change: transform, opacity;
  animation: confetti-burst var(--duration) var(--delay) cubic-bezier(0.13, 0.72, 0.22, 1) forwards;
}

/* Motion states */

.course-scene.is-playing .topbar,
.course-scene.is-playing footer,
.course-scene.is-playing .ask-state {
  pointer-events: none;
}

.pin-close.is-sunk .flag-cloth {
  animation: flag-settle 680ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.pin-close.is-sunk .flag-pole {
  animation: pole-settle 520ms ease-out;
}

/* Keyframes */

@keyframes no-dodge {
  0% { transform: rotate(var(--no-rotate)) scale(var(--no-scale)); }
  45% { transform: rotate(calc(var(--no-rotate) - 5deg)) scale(calc(var(--no-scale) * 1.06)); }
  100% { transform: rotate(var(--no-rotate)) scale(var(--no-scale)); }
}

@keyframes message-pop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
}

@keyframes comic-pop {
  0% { opacity: 0; transform: translateY(5px) rotate(-8deg) scale(0.82); }
  30% { opacity: 1; transform: translateY(-7px) rotate(-4deg) scale(1.04); }
  100% { opacity: 0; transform: translateY(-25px) rotate(2deg) scale(0.95); }
}

@keyframes flag-settle {
  0% { transform: rotate(0deg) skewY(0deg); }
  35% { transform: rotate(4deg) skewY(-5deg); }
  68% { transform: rotate(-1.5deg) skewY(2deg); }
  100% { transform: rotate(0deg) skewY(0deg); }
}

@keyframes pole-settle {
  0%, 100% { transform: rotate(0deg); }
  38% { transform: rotate(1.3deg); }
  70% { transform: rotate(-0.45deg); }
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.7);
  }
  10% {
    opacity: 1;
  }
  48% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y)))
      rotate(var(--spin))
      scale(1);
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--land-x)), calc(-50% + var(--land-y)))
      rotate(calc(var(--spin) * 1.7))
      scale(0.92);
  }
}

/* Tablet and mobile */

@media (max-width: 760px) {
  .tee-rig {
    --tee-ball-x: 40.5%;
    --tee-ball-y: 82.5%;
  }

  .course-plate img {
    object-position: center 52%;
  }

  .film-grain {
    opacity: 0.045;
  }

  .topbar {
    padding: max(15px, env(safe-area-inset-top)) 17px 0;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-ball {
    width: 27px;
  }

  .course-meta {
    gap: 7px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .question-copy {
    top: clamp(88px, 11.5vh, 118px);
    width: 94vw;
  }

  .eyebrow {
    min-height: 25px;
    margin-bottom: 13px;
    padding: 0 10px;
    font-size: 7px;
  }

  .question-copy h1 span {
    font-size: clamp(18px, 5vw, 24px);
  }

  .question-copy h1 em {
    font-size: clamp(70px, 20.5vw, 105px);
  }

  .intro {
    margin-top: 18px;
    padding: 0 18px;
    font-size: 13px;
  }

  .golfer {
    bottom: 0.8%;
    left: -0.5%;
    width: clamp(155px, 45vw, 222px);
  }

  .far-pin {
    top: 51.5%;
    left: 66%;
    height: 11%;
    transform: translateX(-50%) scale(0.8);
    transform-origin: 50% 100%;
  }

  .choice-field {
    inset: 44% 12px max(48px, 6.5vh);
  }

  .attempt-badge {
    top: 2%;
    right: 4%;
  }

  .attempt-badge span {
    font-size: 7px;
  }

  .attempt-badge strong {
    font-size: 23px;
  }

  .choice-yes {
    bottom: 3%;
    width: min(226px, 68vw);
    min-height: 73px;
    padding: 13px 15px 12px;
    border-radius: 17px;
  }

  .yes-overline {
    font-size: 7px;
  }

  .yes-row {
    margin-top: 6px;
  }

  .button-arrow {
    width: 28px;
  }

  .choice-no {
    min-width: 92px;
    height: 48px;
    padding: 0 17px;
    font-size: 13px;
  }

  .live-message {
    bottom: 0;
    left: 2px;
    max-width: 56vw;
    padding: 8px 9px;
    font-size: 7px;
  }

  footer {
    right: 17px;
    bottom: max(11px, env(safe-area-inset-bottom));
    left: 17px;
    font-size: 6px;
  }

  footer span:last-child {
    display: none;
  }

  .roll-ball {
    top: 76%;
    left: 19%;
  }

  .roll-shadow {
    top: calc(76% + 7px);
    left: 19%;
  }

  .pin-close {
    top: 18%;
    left: 68%;
    width: 82px;
    height: 48%;
  }

  .cup-hole,
  .cup-front {
    top: 66%;
    left: 68%;
    width: 48px;
    height: 15px;
  }

  .success-screen {
    align-items: end;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(5, 28, 21, 0.08) 0%, rgba(5, 28, 21, 0.4) 34%, rgba(5, 28, 21, 0.86) 100%);
  }

  .success-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 0 0 max(58px, 8vh);
  }

  .success-kicker {
    min-height: 26px;
    margin-bottom: 17px;
    font-size: 7px;
  }

  .success-content h2 {
    font-size: clamp(62px, 17.5vw, 92px);
    line-height: 0.82;
  }

  .success-copy {
    margin-top: 20px;
    font-size: 13px;
  }

  .success-actions {
    justify-content: center;
    margin-top: 21px;
  }

  .celebrate-button,
  .reset-button {
    min-height: 51px;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 13px;
  }

  .success-content small {
    margin-top: 17px;
    font-size: 6px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .topbar {
    padding-top: 10px;
  }

  .brand-ball {
    width: 23px;
  }

  .question-copy {
    top: 48px;
    left: 55%;
    width: 65vw;
  }

  .eyebrow {
    display: none;
  }

  .question-copy h1 span {
    font-size: 15px;
  }

  .question-copy h1 em {
    font-size: clamp(54px, 10vw, 86px);
  }

  .intro {
    margin-top: 13px;
    font-size: 11px;
  }

  .golfer {
    bottom: -3%;
    left: 3%;
    width: clamp(126px, 20vw, 173px);
  }

  .tee-rig {
    --tee-ball-x: 20.8%;
    --tee-ball-y: 83%;
  }

  .choice-field {
    inset: 28% 18px 31px;
  }

  .choice-yes {
    right: 5%;
    bottom: 3%;
    left: auto;
    width: 196px;
    min-height: 62px;
    padding: 10px 13px;
    transform: scale(var(--yes-scale));
  }

  .choice-yes:hover {
    transform: translateY(-3px) scale(var(--yes-scale));
  }

  .yes-row {
    margin-top: 4px;
  }

  .yes-label {
    font-size: 15px;
  }

  .button-arrow {
    width: 25px;
  }

  .attempt-badge {
    top: 4%;
  }

  .live-message,
  footer {
    display: none;
  }

  .pin-close {
    top: 14%;
    height: 57%;
  }

  .cup-hole,
  .cup-front {
    top: 71%;
  }

  .roll-ball {
    top: 74%;
  }

  .roll-shadow {
    top: calc(74% + 7px);
  }

  .success-screen {
    align-items: center;
    text-align: left;
  }

  .success-content {
    width: 55vw;
    margin: 0 0 0 7vw;
    padding: 18px 0;
  }

  .success-kicker {
    margin-bottom: 10px;
  }

  .success-content h2 {
    font-size: clamp(52px, 8vw, 88px);
  }

  .success-copy {
    margin-top: 12px;
    font-size: 11px;
  }

  .success-actions {
    margin-top: 13px;
  }

  .celebrate-button,
  .reset-button {
    min-height: 42px;
  }

  .success-content small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .film-grain {
    display: none;
  }
}

/* Quiet private-club pass: the photograph and the punchline do the work. */

.topbar,
footer,
.attempt-badge {
  display: none;
}

.green-plate {
  object-position: center;
  transform: none;
}

.far-pin {
  opacity: 0;
}

.golfer-ground-shadow {
  opacity: 0.22;
  filter: blur(8px);
}

.golfer-sprite {
  filter: drop-shadow(0 10px 14px rgba(7, 30, 22, 0.16));
}

.pin-close {
  display: none;
}

.cup-hole,
.cup-front {
  top: 0;
  left: 0;
  width: 34px;
  height: 11px;
  opacity: 0;
  background: transparent;
  box-shadow: none;
}

.question-copy {
  top: clamp(116px, 14.5vh, 166px);
  width: min(92vw, 900px);
}

.question-copy h1 {
  text-shadow: none;
}

.question-copy h1 span {
  margin-bottom: 8px;
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.17em;
}

.question-copy h1 em {
  font-size: clamp(82px, 11.5vw, 164px);
  letter-spacing: -0.068em;
  text-shadow: 0 14px 42px rgba(8, 35, 26, 0.18);
}

.intro {
  margin-top: 25px;
  color: rgba(16, 47, 39, 0.78);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
}

.choice-field {
  inset: 45% clamp(18px, 4vw, 64px) clamp(34px, 5vh, 58px);
}

.choice-yes {
  bottom: 5%;
  display: grid;
  width: clamp(172px, 15vw, 204px);
  min-height: 58px;
  padding: 0 22px;
  place-items: center;
  border: 1px solid rgba(255, 253, 246, 0.2);
  border-radius: 10px;
  background: rgba(10, 43, 34, 0.94);
  box-shadow: 0 12px 32px rgba(6, 30, 23, 0.2);
  text-align: center;
  backdrop-filter: blur(4px);
}

.choice-yes:hover {
  transform: translateX(-50%) translateY(-2px) scale(var(--yes-scale));
  background: rgba(8, 37, 29, 0.98);
  box-shadow: 0 16px 36px rgba(6, 30, 23, 0.24);
}

.choice-yes:active {
  transform: translateX(-50%) scale(calc(var(--yes-scale) * 0.985));
}

.yes-label {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.choice-no {
  min-width: 92px;
  height: 50px;
  padding: 0 19px;
  border: 1px solid rgba(16, 47, 39, 0.16);
  border-radius: 10px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 10px 28px rgba(7, 32, 24, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.choice-no.is-dodging {
  animation: quiet-dodge 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.live-message {
  bottom: 83px;
  left: 50%;
  max-width: min(360px, 76vw);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  visibility: hidden;
  opacity: 0;
  color: rgba(255, 253, 246, 0.9);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 14px rgba(3, 23, 16, 0.54);
  transform: translate(-50%, 7px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.choice-field.has-attempts .live-message {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.live-message.message-pop {
  animation: quiet-message-pop 320ms ease;
}

.divot,
.comic-word {
  display: none;
}

.success-screen {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 28, 21, 0.74) 0%, rgba(5, 28, 21, 0.48) 42%, rgba(5, 28, 21, 0.08) 72%),
    linear-gradient(180deg, rgba(2, 18, 13, 0.06), rgba(2, 18, 13, 0.18));
}

.success-content {
  width: min(540px, 76vw);
  margin-left: clamp(34px, 7vw, 112px);
  padding-top: 0;
}

.success-content h2 {
  max-width: 540px;
  font-size: clamp(62px, 7.4vw, 112px);
  line-height: 0.86;
  text-shadow: 0 14px 38px rgba(3, 21, 15, 0.22);
}

.success-copy {
  margin-top: 24px;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
}

.success-actions {
  margin-top: 25px;
}

.reset-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 9px;
  background: rgba(7, 32, 24, 0.16);
  box-shadow: none;
  backdrop-filter: blur(5px);
  font-size: 13px;
  font-weight: 700;
}

.reset-button:hover {
  transform: translateY(-1px);
  background: rgba(7, 32, 24, 0.26);
}

@keyframes quiet-dodge {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-2px) scale(0.985); }
}

@keyframes quiet-message-pop {
  0%, 100% { transform: translate(-50%, 0); }
  45% { transform: translate(-50%, -3px); }
}

@media (max-width: 760px) {
  .question-copy {
    top: clamp(88px, 11vh, 114px);
  }

  .question-copy h1 span {
    font-size: clamp(16px, 4.5vw, 21px);
  }

  .question-copy h1 em {
    font-size: clamp(68px, 19.5vw, 98px);
  }

  .intro {
    margin-top: 18px;
    font-size: 12px;
  }

  .choice-field {
    inset: 43% 12px max(24px, 3vh);
  }

  .choice-yes {
    bottom: 4%;
    width: min(174px, 54vw);
    min-height: 54px;
    padding: 0 17px;
    border-radius: 9px;
  }

  .choice-no {
    min-width: 86px;
    height: 47px;
    border-radius: 9px;
    font-size: 12px;
  }

  .live-message {
    bottom: 72px;
    max-width: 78vw;
    font-size: 11px;
  }

  .cup-hole,
  .cup-front {
    width: 30px;
    height: 10px;
  }

  .success-content {
    width: calc(100% - 34px);
    margin: 0 auto;
    padding: 0 0 max(42px, 6vh);
  }

  .success-content h2 {
    font-size: clamp(54px, 15.5vw, 80px);
    line-height: 0.9;
  }

  .success-copy {
    margin-top: 18px;
    font-size: 13px;
  }

  .success-actions {
    margin-top: 20px;
  }

  .reset-button {
    min-height: 46px;
    border-radius: 8px;
    font-size: 12px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .question-copy {
    top: 38px;
  }

  .choice-yes {
    right: 6%;
    bottom: 4%;
    left: auto;
    width: 168px;
    min-height: 50px;
    transform: scale(var(--yes-scale));
  }

  .choice-yes:hover {
    transform: translateY(-2px) scale(var(--yes-scale));
  }

  .success-content {
    width: 52vw;
    margin-left: 6vw;
    padding: 12px 0;
  }
}

/* Golf notes + hidden 19th hole */

.secret-mark {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  cursor: help;
  font: inherit;
  line-height: inherit;
  transform-origin: 48% 78%;
  transition: color 180ms ease, transform 180ms ease;
}

.secret-mark:hover {
  color: var(--amber-light);
  transform: rotate(3deg);
}

.secret-mark:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 5px;
}

.secret-mark.is-tapped {
  animation: secret-mark-tap 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.fact-rail {
  position: absolute;
  z-index: 26;
  top: clamp(82px, 9.5vh, 112px);
  right: clamp(22px, 3.3vw, 54px);
  width: min(188px, 23vw);
  pointer-events: auto;
}

.course-scene.is-playing .fact-rail {
  pointer-events: none;
}

.fact-button {
  width: 100%;
  padding: 2px 0 2px 16px;
  border: 0;
  border-left: 1px solid rgba(16, 47, 39, 0.28);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.22);
  transition: border-color 180ms ease, transform 180ms ease;
}

.fact-button:hover {
  border-left-color: rgba(16, 47, 39, 0.68);
  transform: translateX(-3px);
}

.fact-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(16, 47, 39, 0.64);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.fact-text {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  line-height: 1.35;
}

.fact-text.is-changing {
  animation: fact-change 320ms ease;
}

.fact-next {
  display: block;
  margin-top: 9px;
  color: rgba(16, 47, 39, 0.5);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secret-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ivory-bright);
  background: transparent;
  overflow: hidden;
}

.secret-dialog:not([open]) {
  display: none;
}

.secret-dialog[open] {
  display: grid;
  place-items: center;
}

.secret-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 45%, rgba(25, 67, 52, 0.88), rgba(4, 24, 18, 0.96) 72%);
  backdrop-filter: blur(9px);
}

.secret-card {
  position: relative;
  isolation: isolate;
  width: min(540px, calc(100vw - 36px));
  padding: 42px 28px 46px;
  overflow: hidden;
  text-align: center;
}

.secret-dialog[open] .secret-card {
  animation: secret-reveal 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.secret-number {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  color: rgba(255, 253, 246, 0.055);
  font-family: var(--display);
  font-size: clamp(230px, 32vw, 430px);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.7;
  transform: translate(-52%, -50%);
  user-select: none;
}

.secret-ball {
  display: block;
  width: 36px;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border: 1px solid rgba(16, 47, 39, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, rgba(16, 47, 39, 0.2) 0 3%, transparent 4%),
    radial-gradient(circle at 63% 61%, rgba(16, 47, 39, 0.15) 0 3%, transparent 4%),
    var(--ivory-bright);
  box-shadow: 0 10px 28px rgba(2, 17, 12, 0.3);
}

.secret-kicker {
  margin: 0;
  color: var(--amber-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.secret-card h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(62px, 8.5vw, 118px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.secret-card h2:focus {
  outline: none;
}

.secret-card > p:last-of-type {
  margin: 24px 0 0;
  color: rgba(255, 253, 246, 0.82);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  line-height: 1.5;
}

.secret-close {
  min-height: 48px;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid rgba(255, 253, 246, 0.48);
  border-radius: 9px;
  color: var(--ivory-bright);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.secret-close:hover {
  background: rgba(255, 253, 246, 0.09);
  transform: translateY(-1px);
}

@keyframes fact-change {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes secret-mark-tap {
  0%, 100% { transform: rotate(0deg) scale(1); }
  42% { transform: rotate(-7deg) scale(1.08); }
}

@keyframes secret-reveal {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .fact-rail {
    top: 27.5%;
    right: 17px;
    left: 17px;
    width: auto;
  }

  .fact-button {
    padding: 11px 2px 0;
    border-left: 0;
    border-top: 1px solid rgba(16, 47, 39, 0.22);
    text-align: center;
  }

  .fact-button:hover {
    border-top-color: rgba(16, 47, 39, 0.54);
    transform: translateY(-1px);
  }

  .fact-meta {
    justify-content: center;
    gap: 14px;
    font-size: 7px;
  }

  .fact-text {
    max-width: 330px;
    margin: 7px auto 0;
    font-size: 12px;
  }

  .fact-next {
    margin-top: 6px;
    font-size: 7px;
  }

  .secret-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .secret-card h2 {
    font-size: clamp(58px, 18vw, 82px);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .fact-rail {
    display: none;
  }

  .secret-card {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .secret-ball {
    width: 28px;
    margin-bottom: 12px;
  }

  .secret-card h2 {
    font-size: clamp(48px, 8vw, 74px);
  }

  .secret-card > p:last-of-type {
    margin-top: 14px;
    font-size: 12px;
  }

  .secret-close {
    min-height: 42px;
    margin-top: 16px;
  }
}

/* Responsive contract: one vertical rhythm per device family. */

@media (max-width: 600px) and (orientation: portrait) {
  .question-copy {
    top: max(clamp(48px, 8svh, 72px), calc(env(safe-area-inset-top) + 22px));
    width: calc(100% - 28px);
  }

  .question-copy h1 span {
    margin-bottom: 6px;
    font-size: clamp(15px, 4.4vw, 19px);
  }

  .question-copy h1 em {
    font-size: clamp(64px, 19vw, 82px);
    line-height: 0.76;
  }

  .intro {
    margin-top: 16px;
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .fact-rail {
    top: clamp(224px, 31svh, 266px);
    right: 17px;
    left: 17px;
  }

  .fact-button {
    padding-top: 10px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(246, 240, 223, 0.58) 11%,
      rgba(246, 240, 223, 0.58) 89%,
      transparent
    );
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.58);
  }

  .fact-text {
    max-width: 326px;
    font-size: 11.5px;
    line-height: 1.28;
  }

  .fact-next {
    margin-top: 5px;
  }

  .choice-field {
    inset:
      clamp(318px, 45svh, 380px)
      12px
      max(18px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .choice-yes {
    bottom: 0;
    width: min(174px, 54vw);
    min-height: 54px;
  }

  .choice-no {
    min-width: 86px;
    height: 47px;
  }

  .live-message {
    bottom: 66px;
  }

  .golfer {
    bottom: max(2px, env(safe-area-inset-bottom));
    left: -1%;
    width: clamp(148px, 42vw, 178px);
  }

  .success-content {
    width: calc(100% - 34px);
    padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 24px));
  }

  .success-content h2 {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(50px, 14.5vw, 70px);
  }

  .success-copy {
    margin-top: 16px;
  }

  .success-actions {
    margin-top: 18px;
  }
}

@media (max-width: 600px) and (max-height: 700px) and (orientation: portrait) {
  .question-copy {
    top: max(42px, calc(env(safe-area-inset-top) + 18px));
  }

  .question-copy h1 em {
    font-size: clamp(60px, 18vw, 70px);
  }

  .intro {
    margin-top: 12px;
    font-size: 11px;
  }

  .fact-rail {
    top: 196px;
  }

  .fact-button {
    padding-top: 8px;
  }

  .fact-text {
    max-width: 310px;
    margin-top: 6px;
    font-size: 10.5px;
    line-height: 1.22;
  }

  .fact-next {
    display: none;
  }

  .choice-field {
    inset:
      270px
      10px
      max(14px, calc(env(safe-area-inset-bottom) + 10px));
  }

  .choice-yes {
    width: 168px;
    min-height: 51px;
  }

  .choice-no {
    min-width: 82px;
    height: 44px;
  }

  .live-message {
    bottom: 61px;
    font-size: 10px;
  }

  .golfer {
    width: clamp(132px, 39vw, 154px);
  }

  .success-content {
    padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .success-content h2 {
    font-size: clamp(46px, 13.5vw, 58px);
  }

  .success-copy {
    margin-top: 12px;
    font-size: 12px;
  }

  .success-actions {
    margin-top: 14px;
  }

  .reset-button {
    min-height: 43px;
  }
}

@media (max-width: 600px) and (max-height: 560px) and (orientation: portrait) {
  .fact-rail {
    display: none;
  }

  .question-copy {
    top: max(26px, calc(env(safe-area-inset-top) + 12px));
  }

  .question-copy h1 span {
    font-size: 14px;
  }

  .question-copy h1 em {
    font-size: clamp(54px, 17vw, 64px);
  }

  .choice-field {
    inset:
      40%
      10px
      max(12px, calc(env(safe-area-inset-bottom) + 8px));
  }

  .golfer {
    width: clamp(118px, 36vw, 142px);
  }
}

@media (max-width: 380px) {
  .secret-card h2 {
    font-size: clamp(42px, 13.5vw, 52px);
    white-space: nowrap;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .question-copy {
    top: max(24px, calc(env(safe-area-inset-top) + 10px));
    left: 55%;
    width: 58vw;
  }

  .question-copy h1 span {
    margin-bottom: 4px;
    font-size: clamp(13px, 1.8vw, 16px);
  }

  .question-copy h1 em {
    font-size: clamp(52px, 9.2vw, 78px);
    line-height: 0.75;
  }

  .intro {
    margin-top: 11px;
    padding: 0;
    font-size: 10px;
  }

  .choice-field {
    inset:
      27%
      14px
      max(14px, calc(env(safe-area-inset-bottom) + 8px));
  }

  .choice-yes {
    right: 2%;
    bottom: 0;
    width: clamp(148px, 20vw, 168px);
    min-height: 48px;
    padding: 0 14px;
  }

  .choice-no {
    min-width: 80px;
    height: 43px;
  }

  .golfer {
    bottom: max(-8px, calc(env(safe-area-inset-bottom) - 8px));
    left: 3%;
    width: clamp(112px, 18vw, 156px);
  }

  .success-content {
    width: 50vw;
    margin-left: 5vw;
    padding: 10px 0;
  }

  .success-content h2 {
    font-size: clamp(44px, 7vw, 70px);
  }

  .success-copy {
    margin-top: 10px;
  }

  .success-actions {
    margin-top: 12px;
  }
}
