/* Infinite Gamer: shared brand shell and Golf Simulator product theme. */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Syncopate";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/syncopate-latin-700-normal.woff2") format("woff2");
}

:root {
  --font-rounded: "Nunito Sans", ui-rounded, system-ui, sans-serif;
  --font-logo: "Syncopate", sans-serif;
  --night: #000000;
  --panel: #0f0f0f;
  --panel-lift: #1f1f1f;
  --gold: #ffc747;
  --gold-bright: #ffe1a0;
  --gold-deep: #c8892a;
  --gold-glow: rgba(255, 199, 71, 0.45);
  --emerald: #1fc77a;
  --title: #faf7f0;
  --muted: #b8b8b2;
  --rim: #474747;
  --rim-soft: rgba(255, 255, 255, 0.09);
  --wood: #8c6647;
  --parchment: #faf0db;
  --stamp: #db8561;
  --ink: #1a160e;
  --measure: 52rem;
  --wide: 68rem;
  --stage: 64rem; /* 1024px hero video ceiling */
  --radius: 1.5rem;
  --radius-sm: 1rem;
  --radius-lg: 2rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--title);
  font-family: var(--font-rounded);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--parchment);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 2.4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.7rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-stage {
  width: min(var(--stage), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-cinema > .wrap-stage {
  --stage-gutter: 1.25rem;
  width: min(var(--stage), 100%);
  padding: var(--stage-gutter) var(--stage-gutter) 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.55rem 0.95rem;
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
  border-radius: 0.5rem;
  transform: translateY(-8rem);
}

.skip-link:focus {
  transform: none;
  color: var(--night);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.site-header.is-stuck {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: var(--rim-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px var(--gold-glow);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--title);
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-name {
  font-size: 1rem;
}

.brand:hover {
  color: var(--gold);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--rim), 0 0 18px rgba(31, 199, 122, 0.1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 18px var(--gold-glow);
}

.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.95rem;
  border-left: 1px solid var(--rim);
  color: var(--title);
  line-height: 1.05;
  white-space: nowrap;
}

.game-chip:hover {
  color: var(--gold-bright);
}

.game-chip-icon {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22.5%;
}

.game-chip-eyebrow {
  color: var(--emerald);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-chip-name {
  font-family: var(--font-logo);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
  font-family: var(--font-logo);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.25s var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.3s var(--ease-out);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--title);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Hero titles: cream to gold, matching in-game screen titles */

.kicker {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.title-glow {
  background: linear-gradient(135deg, var(--title) 20%, var(--gold) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px var(--gold-glow));
}

.lede {
  font-size: 1.12rem;
  max-width: 36rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out),
    background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: linear-gradient(180deg, #ffd56a 0%, var(--gold) 55%, #e0a820 100%);
  color: var(--ink);
  box-shadow: 0 0 28px var(--gold-glow);
}

.btn-gold:hover {
  color: var(--ink);
  filter: brightness(1.06);
  box-shadow: 0 0 42px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--title);
  border-color: var(--rim);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--title);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Media slots: reserved frames for later screenshots */

.media-slot {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--panel-lift);
  border: 1px dashed var(--rim);
  border-radius: var(--radius);
}

.media-slot-portrait {
  aspect-ratio: 9 / 14;
  max-width: 16rem;
  margin-inline: auto;
}

/* Gesture stills: portrait mesh captures beside the help copy */

.gesture-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 14rem));
  gap: 1.1rem;
  margin: 0 0 1.35rem;
}

.help-list .gesture-figs {
  margin: 0.75rem 0 0.15rem;
}

.gesture-figs figure {
  margin: 0;
}

.gesture-figs img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--night);
  border: 1px solid var(--rim);
  border-radius: var(--radius-sm);
}

.gesture-figs figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Split rows: copy + slot, justified in context */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.split-flip .split-copy {
  order: 2;
}

.split-flip .media-slot {
  order: 1;
}

/* Cards */

.card {
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.perk-grid,
.mode-grid,
.play-grid {
  display: grid;
  gap: 1rem;
}

.perk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.play-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.play-card .media-slot {
  margin-bottom: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--panel-lift);
  border: 1px solid var(--rim);
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chip-muted {
  color: var(--muted);
}

.chip-gold {
  color: var(--gold);
  border-color: rgba(255, 199, 71, 0.45);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.6rem, 1fr));
  gap: 0.75rem;
}

.character-tile {
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.55rem 0.7rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.character-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 199, 71, 0.55);
  background: var(--panel-lift);
  box-shadow: 0 18px 40px -22px var(--gold-glow);
}

.character-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0.7rem;
  background: var(--panel-lift);
  margin-bottom: 0.45rem;
}

.character-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.character-tile .chip {
  min-height: 1.45rem;
  font-size: 0.68rem;
}

.section-head p strong {
  color: var(--title);
  font-weight: 800;
}

.character-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.65rem;
  object-fit: cover;
  background: var(--panel-lift);
}

.character-table td {
  vertical-align: middle;
}

.character-table td:first-child {
  color: inherit;
  font-weight: inherit;
  white-space: normal;
  width: 4.25rem;
}

.character-table td:nth-child(2) {
  color: var(--title);
  font-weight: 800;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.rule {
  height: 1px;
  background: var(--rim);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   Home page: cinematic layer
   ========================================================================== */

.home {
  position: relative;
  isolation: isolate;
}

/* Parallax backdrop: fixed gradient washes that drift against the scroll */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-layer {
  position: absolute;
  inset: -20% -10%;
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}

/*
  The washes drift further than the grid does, so they get a taller overscan and
  their gradient stops are placed for that taller box. Sizes stay in rem, so the
  composition holds at any viewport.
*/
.backdrop-sun,
.backdrop-haze {
  inset: -60% -10%;
}

.backdrop-sun {
  background:
    radial-gradient(38rem 26rem at 50% 23%, rgba(255, 199, 71, 0.22), transparent 70%),
    radial-gradient(26rem 22rem at 82% 38%, rgba(31, 199, 122, 0.1), transparent 72%);
}

.backdrop-haze {
  background:
    radial-gradient(30rem 24rem at 12% 58%, rgba(255, 199, 71, 0.09), transparent 70%),
    radial-gradient(34rem 20rem at 88% 74%, rgba(140, 102, 71, 0.14), transparent 72%);
}

.backdrop-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.7;
}

/* Hero */

.hero {
  padding: 4.25rem 0 3.5rem;
}

.hero-actions {
  margin-top: 1.6rem;
}

.hero-cinema {
  position: relative;
  padding: 0 0 4.5rem;
  text-align: center;
}

.hero-cinema > .wrap {
  padding-top: 1.85rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 9vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
}

.hero-tagline {
  max-width: 34rem;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--parchment);
  opacity: 0.82;
}

.hero-cinema .btn-row {
  justify-content: center;
  margin-top: 0.9rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Hero stage: the 1024px-wide reel */

.stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rim-soft);
  background: #050505;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 199, 71, 0.07),
    0 50px 120px -50px rgba(255, 199, 71, 0.35),
    0 30px 80px -40px rgba(0, 0, 0, 0.9);
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--stage-scale, 1));
  will-change: transform;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}

.stage-sound {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: var(--title);
  cursor: pointer;
  transform: translateX(-50%);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.stage-sound:hover {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 199, 71, 0.5);
}

.stage-sound-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.stage-sound[aria-pressed="false"] .stage-sound-on,
.stage-sound[aria-pressed="true"] .stage-sound-muted {
  display: none;
}

.preview-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.preview-launch svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.preview-launch:hover {
  color: var(--gold-bright);
}

.preview-sheet {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.preview-sheet:popover-open {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  margin: auto;
  display: grid;
  place-items: center;
}

.preview-sheet::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.preview-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.preview-frame {
  position: relative;
  height: min(42rem, calc(100dvh - 5.5rem));
  aspect-ratio: 9 / 19.5;
  max-width: calc(100vw - 1.5rem);
  border-radius: 1.35rem;
  overflow: hidden;
  background: #050505;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.7);
}

.preview-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-stream-park {
  position: absolute;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.preview-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: var(--title);
  cursor: pointer;
}

.preview-close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.preview-close:hover {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 199, 71, 0.5);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: 50% 0; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: 50% 0; }
}

/* Stat band */

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.75rem 0;
  border-block: 1px solid var(--rim-soft);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--title), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Statement: scroll-lit manifesto line */

.statement {
  padding: 6rem 0 5rem;
}

.statement-copy {
  font-size: clamp(1.6rem, 5.2vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-align: center;
  color: rgba(250, 247, 240, 0.16);
  margin: 0;
  max-width: 46rem;
  margin-inline: auto;
}

.statement-copy .word {
  transition: color 0.5s var(--ease-out), text-shadow 0.5s var(--ease-out);
}

.statement-copy .word.is-lit {
  color: var(--title);
}

.statement-copy .word.accent.is-lit {
  color: var(--gold);
  text-shadow: 0 0 26px var(--gold-glow);
}

/* Feature panels: Apple-style alternating rows */

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
}

.panel-row + .panel-row {
  border-top: 1px solid var(--rim-soft);
}

.panel-row.flip .panel-copy {
  order: 2;
}

.panel-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.panel-art img {
  width: min(78%, 24rem);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.panel-copy h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.panel-copy .lede {
  font-size: 1.05rem;
}

.panel-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.panel-list li {
  position: relative;
  padding-left: 1.4rem;
}

.panel-list li + li {
  margin-top: 0.45rem;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Glass cards with pointer spotlight */

.glass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.glass-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Two cards, held to the width a three-up row would have given them. */
.glass-grid-duo {
  max-width: 43.5rem;
  margin-inline: auto;
}

.format-panel {
  margin-top: 2.5rem;
  padding: 1.45rem 1.4rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rim-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.format-panel .kicker {
  margin-bottom: 0.35rem;
}

.format-lede {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--muted);
}

.duel-panel {
  margin-top: 1.25rem;
  border-color: rgba(255, 199, 71, 0.28);
  background: linear-gradient(180deg, rgba(255, 199, 71, 0.07), rgba(255, 255, 255, 0.015));
}

.together-head {
  margin: 2.5rem 0 1.1rem;
}

.glass {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--rim-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 0%), rgba(255, 199, 71, 0.16), transparent 70%);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 199, 71, 0.35);
}

.glass:hover::before {
  opacity: 1;
}

.glass .chip {
  margin-bottom: 0.65rem;
}

.glass h3 {
  font-size: 1.22rem;
}

.glass-index {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.glass-shot {
  aspect-ratio: 9 / 15;
  width: 100%;
  height: auto;
  margin-bottom: 1.15rem;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* Pricing: three quiet cards, Lifetime leads. Shared by the homepage and Help overview. */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--rim-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.price-card.lead {
  border-color: rgba(255, 199, 71, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 199, 71, 0.12) inset, 0 18px 40px -28px rgba(255, 199, 71, 0.5);
}

.price-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.price-card .price small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.price-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Venue marquee */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
}

/* The track only scrolls once JS has duplicated it, so it can loop seamlessly. */
.marquee.is-looped .marquee-track {
  animation: marquee var(--marquee-duration, 38s) linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee-word {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 247, 240, 0.35);
  white-space: nowrap;
}

.marquee-word::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  -webkit-text-stroke: 0;
  box-shadow: 0 0 12px var(--gold-glow);
}

.marquee-word.solid {
  color: var(--gold);
  -webkit-text-stroke: 0;
}

/* Golfer marquee rows */

.roster-rail {
  overflow: hidden;
  padding: 0.35rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.roster-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
}

.roster-rail.is-looped .roster-track {
  animation: marquee var(--marquee-duration, 52s) linear infinite;
}

.roster-rail.reverse .roster-track {
  animation-direction: reverse;
}

.roster-rail:hover .roster-track {
  animation-play-state: paused;
}

.roster-track img {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--rim);
  filter: brightness(0.82) saturate(0.9);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    filter 0.35s var(--ease-out);
}

.roster-track img:hover {
  transform: scale(1.07);
  border-color: rgba(255, 199, 71, 0.6);
  filter: none;
}

/* Full roster disclosure */

.roster-details {
  margin-top: 2rem;
}

.roster-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.05);
  color: var(--title);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.roster-details summary::-webkit-details-marker {
  display: none;
}

.roster-details summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

.roster-details[open] summary::after {
  content: "\2212";
}

.roster-details summary:hover {
  background: rgba(255, 199, 71, 0.1);
  border-color: rgba(255, 199, 71, 0.45);
}

.roster-details .character-grid {
  margin-top: 1.5rem;
  animation: fade-up 0.6s var(--ease-out) both;
}

.venue-details {
  margin-top: 1.75rem;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  animation: fade-up 0.6s var(--ease-out) both;
}

.venue-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.venue-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 199, 71, 0.45);
  background: var(--panel-lift);
  box-shadow: 0 18px 40px -22px var(--gold-glow);
}

.venue-shot {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.7rem;
  background: var(--panel-lift);
}

/* Locations help page: full-width aerial per venue */

.location-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.location-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.location-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.65rem 0.25rem 0.25rem;
}

.location-copy h3 {
  margin: 0;
}

.location-copy p {
  margin: 0;
}

.venue-tile h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.venue-tile .chip {
  align-self: flex-start;
}

.venue-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 1rem, 0); }
  to { opacity: 1; transform: none; }
}

/* Closing call to action */

.cta {
  position: relative;
  overflow: hidden;
  margin: 4.5rem auto 5.5rem;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 199, 71, 0.28);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(255, 199, 71, 0.2), transparent 70%),
    linear-gradient(180deg, #131007 0%, #060606 100%);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.cta .btn-row {
  justify-content: center;
}

.cta .lede {
  margin-inline: auto;
}

.cta-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 60px var(--gold-glow), 0 0 0 1px var(--rim);
}

/* Reveal-on-scroll */

/*
  Hidden only while the page is armed for reveals. If site.js never boots the
  head script drops .js-reveal on load, so the content cannot stay invisible.
*/
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}

.js-reveal [data-reveal="left"] {
  transform: translate3d(-2rem, 0, 0);
}

.js-reveal [data-reveal="right"] {
  transform: translate3d(2rem, 0, 0);
}

.js-reveal [data-reveal="zoom"] {
  transform: scale(0.94);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Help / legal */

.help-layout {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 2.75rem 3.25rem;
  align-items: start;
  padding: 2.5rem 0 4.5rem;
}

.help-nav {
  position: sticky;
  top: 5.5rem;
}

.help-nav .kicker {
  margin-bottom: 0.85rem;
}

.help-nav a {
  display: block;
  padding: 0.42rem 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.help-nav a:hover,
.help-nav a[aria-current="page"] {
  color: var(--gold);
}

.help-main h1 {
  margin-bottom: 0.85rem;
}

.help-main .lede {
  margin-bottom: 1.75rem;
}

.help-main h2,
.help-main h3 {
  margin-top: 1.65rem;
}

.help-main h2:first-of-type,
.help-main h3:first-of-type {
  margin-top: 0.35rem;
}

.help-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rim);
  font-weight: 800;
}

.help-pager a {
  color: var(--title);
}

.help-pager a:hover {
  color: var(--gold);
}

.help-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.help-shot {
  margin: 0;
  position: sticky;
  top: 5.5rem;
}

.help-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  background: var(--night);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.help-main .topic-grid + h2 {
  margin-top: 3rem;
}

.topic-grid a.card {
  color: inherit;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.topic-grid a.card:hover {
  background: var(--panel-lift);
  border-color: rgba(255, 199, 71, 0.4);
  color: inherit;
  transform: translateY(-3px);
}

.topic-grid a.card h3 {
  color: var(--title);
}

.help-list {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.help-list li + li {
  margin-top: 0.45rem;
}

.help-list strong {
  color: var(--title);
  font-weight: 800;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 2rem 0 3rem;
  padding: 0;
  list-style: none;
  counter-reset: setup-step;
}

.setup-card {
  width: min(100%, 37.5rem);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.setup-card img {
  width: 100%;
  max-width: 37.5rem;
  max-height: 37.5rem;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--night);
}

.setup-copy {
  padding: 1rem 1.05rem 1.15rem;
}

.setup-number {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--emerald);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.setup-copy h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.2;
}

.setup-copy p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--rim);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rim);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--panel);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--title);
  font-weight: 800;
  white-space: nowrap;
}

.note {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--rim);
  color: var(--muted);
}

.note strong {
  color: var(--gold);
}

.legal h2 {
  margin-top: 2.25rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rim);
  background: var(--night);
  color: #fff;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-logo);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-links a {
  color: var(--gold-bright);
}

.footer-links a:hover {
  color: var(--title);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .hero-cinema {
    padding-bottom: 4rem;
  }

  .hero-cinema > .wrap {
    padding-top: 1.45rem;
  }

  .hero-cinema > .wrap-stage {
    --stage-gutter: 0.45rem;
  }

  .stage {
    border-radius: 0.85rem;
  }
}

@media (max-width: 860px) {
  .split,
  .split-flip,
  .help-split,
  .help-layout,
  .perk-grid,
  .mode-grid,
  .play-grid,
  .topic-grid,
  .panel-row,
  .glass-grid,
  .glass-grid-3,
  .glass-grid-duo,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .format-panel {
    padding: 1.2rem 1rem 1.1rem;
  }

  .help-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rim);
  }

  .help-shot {
    position: static;
    max-width: 22rem;
    margin-inline: auto;
  }

  .help-nav .kicker {
    width: 100%;
    margin-bottom: 0.35rem;
  }

  .help-layout {
    padding-top: 1.75rem;
  }

  .split-flip .split-copy,
  .split-flip .media-slot,
  .panel-row.flip .panel-copy {
    order: unset;
  }

  .media-slot-portrait {
    max-width: none;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero-cinema {
    padding-bottom: 3rem;
  }

  .hero-cinema > .wrap {
    padding-top: 1.25rem;
  }

  .hero-cinema > .wrap-stage {
    --stage-gutter: 0.375rem;
  }

  .stage {
    border-radius: 0.75rem;
  }

  .panel-row {
    padding: 2.5rem 0;
  }

  .panel-art {
    aspect-ratio: auto;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .panel-art img {
    width: 100%;
    max-height: none;
  }

  .statement {
    padding: 4rem 0 3.5rem;
  }
}

@media (max-width: 560px) {
  .wrap,
  .wrap-narrow {
    width: min(var(--wide), calc(100% - 1.5rem));
  }

  .hero-cinema {
    padding-bottom: 3rem;
  }

  .hero-cinema > .wrap {
    padding-top: 1.1rem;
  }

  .hero-cinema > .wrap-stage {
    --stage-gutter: 0.25rem;
  }

  .site-header .wrap {
    gap: 0.35rem;
    min-height: 3.9rem;
  }

  .brand-cluster {
    gap: 0.6rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 0.8rem;
  }

  /* Hide the game name so the nav (Help) never wraps on phones */
  .game-chip-name {
    display: none;
  }

  .game-chip-icon {
    width: 1.65rem;
    height: 1.65rem;
  }

  .nav {
    justify-content: flex-end;
    gap: 0.2rem 0.85rem;
    font-size: 0.82rem;
  }

  .nav a::after {
    bottom: -0.2rem;
  }

  td:first-child {
    white-space: normal;
  }

  .stage {
    width: 100%;
    border-radius: 0.55rem;
  }

  .stat-band {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .roster-track img {
    width: 5.25rem;
    height: 5.25rem;
  }

  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
    gap: 0.6rem;
  }

  .character-tile h3 {
    font-size: calc(0.82rem - 3pt);
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-cinema .btn-row,
  .cta .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Small phones: keep brand + Help on one row (game name already hidden) */

@media (max-width: 400px) {
  .site-header .wrap {
    gap: 0.5rem;
    min-height: 3.5rem;
  }

  .brand-name {
    font-size: 0.74rem;
  }

  .nav {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .backdrop-layer,
  .stage,
  .panel-art img {
    transform: none !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track,
  .roster-track {
    animation: none;
    transform: none;
  }
}
