/* SUPER SLOT CAR '98 — homepage.
   Palette and rules lifted from the game's own menu kit ('98 Refined:
   docs/STYLE_GUIDE.md, game/scripts/ui/TurboStyle.gd): deep navy glass,
   chrome-gold capitals, red speed stripes, fine teal hairlines, one gold
   primary bar. Sub-pages (news, binder, games-like) keep css/style.css. */

@font-face {
  font-family: 'Silkscreen';
  src: url('../assets/fonts/Silkscreen-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'VT323';
  src: url('../assets/fonts/VT323-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink-0: #06080e; --ink-1: #0d111d; --ink-2: #151b2c; --ink-3: #1f2840; --ink-4: #2e3a58; --ink-5: #46557a;
  --paper-0: #fff8e8; --paper-1: #f3e7cb; --paper-2: #dccba4; --paper-3: #b8a27a;
  --gold-0: #fff2a6; --gold-1: #fddb4c; --gold-2: #f6bd2a; --gold-3: #e2911a; --gold-4: #b35f12;
  --red-0: #ff8c70; --red-1: #f74c36; --red-2: #de2c1d; --red-3: #ac1a12; --red-4: #720d08;
  --blue-0: #9ccff5; --blue-1: #48a0dc; --blue-2: #2673b8; --blue-3: #194f86; --blue-4: #0f3258;
  --green-0: #ade79a; --green-1: #6fcf60; --green-2: #3aa74e; --green-3: #237839;
  --purple-0: #b48ff5; --purple-1: #8a5ade; --purple-2: #5c349f;
  --chrome-0: #ffffff; --chrome-1: #d9e0ec; --chrome-2: #a3afc4; --chrome-3: #6c7a94;
  --teal: #47808c;

  /* race-type colours, as the run map paints them */
  --sprint: #3389d9; --gp: #33a659; --endurance: #d98c1a;
  --traffic: #cc4d80; --technical: #8c66e6; --duel: #bf1f33;

  --asphalt: #2b303b;
  --font-px: 'Silkscreen', 'Courier New', monospace;
  --font-crt: 'VT323', 'Courier New', monospace;
  --wrap: 1140px;
  --gutter: 16px;
  --radius: 4px;
  --line: 2px;
  --topbar: 56px;

  /* RAMP_GOLD: one colour per pixel row of the chrome capitals */
  --ramp-gold: linear-gradient(180deg,
    var(--gold-0) 0 22%, var(--gold-1) 22% 44%, var(--gold-2) 44% 64%,
    var(--gold-3) 64% 84%, var(--gold-4) 84% 100%);
  --ramp-red: linear-gradient(180deg,
    var(--red-0) 0 22%, var(--red-1) 22% 50%, var(--red-2) 50% 78%, var(--red-3) 78% 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    radial-gradient(1400px 700px at 50% -200px, #1b2440 0%, transparent 70%),
    var(--ink-1);
  color: var(--chrome-1);
  font-family: var(--font-crt);
  font-size: 21px;
  line-height: 1.4;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-0); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-1); }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; }
::selection { background: var(--gold-2); color: var(--ink-0); }
strong { color: var(--paper-0); font-weight: 400; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ chrome type */
.chrome {
  background: var(--ramp-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 var(--ink-0));
}
.px { font-family: var(--font-px); text-transform: uppercase; letter-spacing: 0.04em; }

.checker {
  height: 16px;
  background: repeating-conic-gradient(var(--chrome-1) 0% 25%, var(--ink-0) 0% 50%) 0 0 / 16px 16px;
}
.checker-sm { height: 8px; background-size: 8px 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --lip: var(--gold-4);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-px); font-size: 16px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  padding: 18px 30px 20px;
  border: 0; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn-gold {
  color: var(--ink-0);
  background: var(--gold-2);
  box-shadow: inset 0 -4px 0 var(--gold-4), inset 0 2px 0 var(--gold-0);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding-left: 38px; padding-right: 38px;
}
.btn-gold:hover { background: var(--gold-1); color: var(--ink-0); }
.btn-navy {
  color: var(--chrome-0);
  background: var(--ink-3);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 var(--line) var(--ink-5), inset 0 -4px 0 var(--ink-0);
}
.btn-navy:hover { color: var(--chrome-0); box-shadow: inset 0 0 0 var(--line) var(--gold-1), inset 0 -4px 0 var(--ink-0); }
.btn-ghost {
  color: var(--chrome-1); background: transparent; padding: 12px 16px;
  border-radius: var(--radius); box-shadow: inset 0 0 0 var(--line) var(--ink-4);
  font-size: 13px;
}
.btn-ghost:hover { color: var(--gold-1); box-shadow: inset 0 0 0 var(--line) var(--gold-2); }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------- top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar);
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter);
  background: rgba(13, 17, 29, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: var(--line) solid rgba(71, 128, 140, 0.45);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.topbar.on { transform: none; }
/* desktop: the bar (and its PLAY FREE) is there from the start, so the big
   telly can fill the hero without pushing every play button off-screen */
@media (min-width: 900px) {
  .topbar { transform: none; }
  .hero { padding-top: var(--topbar); }
}
.topbar-logo img { height: 36px; width: auto; }
.topbar nav { display: none; margin-left: auto; gap: 4px; }
.topbar nav a {
  font-family: var(--font-px); font-size: 13px; text-transform: uppercase;
  color: var(--chrome-2); text-decoration: none; padding: 10px 10px;
}
.topbar nav a:hover { color: var(--gold-1); }
.topbar .btn { margin-left: auto; padding: 12px 22px 13px; font-size: 13px; }
@media (min-width: 900px) {
  .topbar nav { display: flex; }
  .topbar nav + .btn { margin-left: 8px; }
}

/* ------------------------------------------------------------------ hero */
/* One centred column at every size: logo, tagline, the big telly, then the
   buttons. Red speed stripes only ever sit beside the TV, never under text. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 44px;
  background:
    radial-gradient(1000px 560px at 50% 62%, rgba(38, 115, 184, 0.26), transparent 70%),
    linear-gradient(180deg, #0a0e1a 0%, var(--ink-1) 100%);
}
.hero-grid {
  position: relative;
  display: grid; justify-items: center;
  padding-top: 26px;
}
.hero-grid > * { min-width: 0; }
.hero-copy { display: contents; }
.presents {
  order: 1;
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.35em;
  color: var(--chrome-3); text-transform: uppercase; text-align: center;
}
.hero-logo { order: 2; margin: 10px auto 0; width: min(380px, 80%); }
.hero-logo img { width: 100%; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35)); }
.tagline {
  order: 3;
  font-family: var(--font-px); text-transform: uppercase;
  font-size: clamp(26px, 8vw, 36px); line-height: 1.1; letter-spacing: 0.02em;
  text-align: center; margin-top: 14px;
}
@media (min-width: 760px) { .tagline br { display: none; } }
.hero-grid .tv { order: 4; margin-top: 26px; }
#hero-cta { order: 5; width: 100%; }
.hero-sub {
  order: 6;
  max-width: 34em; margin: 20px auto 0; text-align: center;
  color: var(--chrome-1); font-size: 21px;
}
.hero-sub em { font-style: normal; color: var(--gold-1); }
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 26px;
}
.cta-row .btn { flex: 0 1 auto; white-space: nowrap; }
@media (max-width: 520px) {
  .cta-row .btn { flex: 1 1 100%; font-size: 14px; padding-left: 20px; padding-right: 20px; }
}
.cta-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  margin-top: 12px; font-size: 18px; color: var(--chrome-3);
}
.cta-meta .live { color: var(--green-1); }
.cta-meta .live::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  background: var(--green-1); vertical-align: 1px;
  box-shadow: 0 0 8px var(--green-1);
}
.dl-msg { text-align: center; color: var(--chrome-3); font-size: 18px; margin-top: 4px; }
.hero-feedback { text-align: center; margin-top: 10px; font-size: 19px; }
.hero-feedback a { color: var(--chrome-2); }
.hero-feedback a:hover { color: var(--gold-1); }

/* the footage on a boxy 1990s TV/VCR combo: square plastic case, deep black
   bezel, curved-glass screen with scanlines and glare, a tape deck in the chin */
.tv { position: relative; width: min(880px, 100%); }
@media (min-width: 1100px) {
  /* the letterhead's red speed stripes, out to either side of the set */
  .tv::before, .tv::after {
    content: ''; position: absolute; top: 18%; width: 150px; height: 46%; pointer-events: none;
    background: repeating-linear-gradient(-62deg, transparent 0 14px, var(--red-2) 14px 30px, transparent 30px 44px);
    -webkit-mask: linear-gradient(90deg, transparent, #000 70%);
    mask: linear-gradient(90deg, transparent, #000 70%);
  }
  .tv::before { right: calc(100% + 26px); }
  .tv::after { left: calc(100% + 26px); transform: scaleX(-1); }
}
.tv-body {
  position: relative; padding: 3.2% 3.2% 0; border-radius: 10px;
  background: linear-gradient(180deg, #474d5a 0%, #30343e 40%, #23262e 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 2px 0 0 rgba(255, 255, 255, 0.05),
    inset -2px 0 0 rgba(0, 0, 0, 0.3), inset 0 -5px 0 rgba(0, 0, 0, 0.5),
    0 0 0 2px #101217, 0 30px 60px rgba(0, 0, 0, 0.65);
}
.tv-bezel {
  padding: 2.4%; border-radius: 6px; background: #0b0d11;
  box-shadow: inset 0 0 0 2px #040506, inset 0 8px 16px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border-radius: 3% / 5%;
  box-shadow: 0 0 26px rgba(120, 190, 255, 0.12);
}
.tv-screen video, .tv-screen img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.12) contrast(1.06) brightness(1.06);
}
.tv-screen::before { /* scanlines + a faint aperture grille */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.24) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 60, 60, 0.05) 0 1px, rgba(60, 255, 120, 0.04) 1px 2px, rgba(60, 120, 255, 0.05) 2px 3px);
}
.tv-screen::after { /* curved glass: dark corners, soft glare top-left */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 120% 90% at 30% 10%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(ellipse 80% 75% at 50% 50%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0.55) 100%);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.7), inset 0 0 3px rgba(0, 0, 0, 0.9);
}
.tv-osd {
  position: absolute; z-index: 3; top: 6%; left: 5%;
  font-family: var(--font-crt); font-size: clamp(16px, 2.6vw, 28px); line-height: 1; letter-spacing: 0.06em;
  color: #7dff8e; text-shadow: 0 0 6px rgba(125, 255, 142, 0.8), 2px 2px 0 rgba(0, 0, 0, 0.6);
  animation: osd 4s steps(1) 1 forwards;
}
@keyframes osd { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* the chin: badge on the left, the VHS slot in the middle, the deck's clock,
   transport keys and power light on the right */
.tv-chin {
  display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) 1fr; align-items: center; gap: 3%;
  padding: 2.2% 1.5% 2.6%;
}
.tv-badge { display: grid; gap: 2px; }
.tv-badge b {
  font-family: var(--font-px); font-weight: 400; font-size: clamp(8px, 1.3vw, 12px); letter-spacing: 0.2em;
  color: #a7b0c2; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.tv-badge i { font-style: normal; font-family: var(--font-px); font-size: clamp(6px, 0.9vw, 9px); letter-spacing: 0.2em; color: #6c7588; }
.tv-vhs {
  position: relative; display: block; height: clamp(16px, 3.4vw, 30px); border-radius: 3px;
  background: linear-gradient(180deg, #121419, #1c1f26);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 2px #2a2e37;
}
.tv-vhs-flap { /* the hinged dust flap inside the tape slot */
  position: absolute; left: 4%; right: 4%; top: 28%; height: 44%; border-radius: 2px;
  background: linear-gradient(180deg, #2f333c, #22252c 60%, #191b21);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tv-vhs b {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-px); font-weight: 400; font-size: clamp(6px, 0.9vw, 9px); letter-spacing: 0.18em; color: #7e889b;
}
.tv-deck { display: flex; align-items: center; justify-content: flex-end; gap: clamp(5px, 1vw, 10px); }
.tv-clock {
  font-family: var(--font-crt); font-size: clamp(13px, 2vw, 20px); line-height: 1; letter-spacing: 0.05em;
  color: #ff9d3b; text-shadow: 0 0 6px rgba(255, 140, 40, 0.7);
  background: #0b0c10; padding: 2px 5px 1px; border-radius: 2px; box-shadow: inset 0 0 0 1px #000;
}
.tv-keys { display: flex; gap: 3px; }
.tv-keys i {
  font-style: normal; display: grid; place-items: center;
  width: clamp(12px, 2.1vw, 22px); height: clamp(10px, 1.6vw, 16px); border-radius: 2px;
  font-size: clamp(5px, 0.8vw, 8px); color: #8a93a5;
  background: linear-gradient(180deg, #3d424d, #2a2d35); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tv-led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-1); flex: none;
  box-shadow: 0 0 8px var(--green-1), 0 0 2px #fff inset;
}
.footage-tag {
  margin-top: 12px; text-align: center;
  font-family: var(--font-px); font-size: 10px; letter-spacing: 0.14em;
  color: var(--chrome-3); text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .tv-screen video { animation: tv-on 0.7s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes tv-on {
    0% { transform: scale(1, 0.006); filter: brightness(6); }
    45% { transform: scale(1, 0.006); filter: brightness(6); }
    70% { transform: scale(1, 1.04); filter: brightness(1.6); }
    100% { transform: none; filter: saturate(1.12) contrast(1.06) brightness(1.06); }
  }
}

/* -------------------------------------------------------------- sections */
.section { position: relative; padding: 72px 0; overflow-x: clip; }
.section-dark { background: var(--ink-0); }
.section-glass {
  background: linear-gradient(180deg, rgba(31, 40, 64, 0.55), rgba(21, 27, 44, 0.35));
  border-block: var(--line) solid rgba(71, 128, 140, 0.3);
}

/* the letterhead: blue section tab, chrome-gold title, red speed stripes */
.lh { margin-bottom: 28px; }
.lh-tab {
  display: inline-block;
  font-family: var(--font-px); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chrome-0); background: var(--blue-2);
  padding: 6px 16px 7px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.lh-title {
  position: relative;
  font-family: var(--font-px); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 7.4vw, 56px); line-height: 1.02; letter-spacing: 0.01em;
  margin-top: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px;
}
.lh-title .chrome { display: inline; }
.lh-title::after { /* three slanted stripes trailing the title */
  content: ''; flex: none; width: 74px; height: 0.62em;
  background: repeating-linear-gradient(-62deg, transparent 0 6px, var(--red-2) 6px 15px, transparent 15px 22px);
}
@media (max-width: 600px) {
  .lh-title { font-size: 28px; }
  .lh-title::after { display: none; }
}
.lede { max-width: 40em; font-size: 22px; color: var(--chrome-1); }
.lede + .lede { margin-top: 10px; }
@media (max-width: 600px) { .lede { font-size: 20px; } }

/* track dividers: a straight of the game's own two-lane track
   (assets/home/track-h.svg, sampled from race footage) on meadow grass, with
   the real cars driving it as you scroll. --tk = one 128-unit track width. */
.strip {
  --tk: 72px;
  position: relative; overflow: hidden; padding: 16px 0;
  background: repeating-conic-gradient(#a2b252 0% 25%, #99aa4a 0% 50%) 0 0 / 16px 16px;
}
.strip-track {
  position: relative; height: var(--tk);
  background: url(../assets/home/track-h.svg) 0 0 / var(--tk) var(--tk) repeat-x;
}
/* cars at twice true scale (22x16 units) so they read; centred on each slot */
.strip-car {
  position: absolute; left: 0; height: calc(var(--tk) * 0.25); width: auto; max-width: none;
  transform: translateX(-80px); will-change: transform;
}
.strip-car.lane-a { top: calc(var(--tk) * 0.2227); }
.strip-car.lane-b { top: calc(var(--tk) * 0.5234); }
@media (min-width: 760px) { .strip { --tk: 96px; padding: 20px 0; } }

/* ============================================================ THE DRAFT */
.draft { display: grid; gap: 22px; }
/* phones: cards first, then a compact car panel right under them so a pick and
   its effect fit in one screen */
@media (max-width: 899px) {
  .draft { gap: 14px; }
  .draft > :last-child { order: -1; }
  .draft .carpanel { padding: 12px 14px; }
  .draft .lane { margin: 10px -4px; }
  .draft .stats { gap: 6px; }
  .draft .stat { grid-template-columns: 18px 92px 1fr 40px; gap: 8px; }
  .draft .stat img { width: 18px; height: 18px; }
  .draft .perks { margin-top: 10px; min-height: 0; }
  .draft .draft-foot { display: none; }
}
@media (min-width: 900px) { .draft { grid-template-columns: 380px 1fr; align-items: start; gap: 36px; } }

.carpanel {
  background: rgba(13, 17, 29, 0.85);
  border-radius: 6px;
  box-shadow: inset 0 0 0 var(--line) var(--teal);
  padding: 18px 18px 16px;
}
.carpanel-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--font-px); font-size: 12px; letter-spacing: 0.1em; color: var(--chrome-2);
  text-transform: uppercase;
}
.carpanel-head b { font-weight: 400; color: var(--gold-1); }
/* a close-up of the real track (1.2 px per track unit, so the 128-unit piece
   is 153.6px and its two slots sit at 24px and 70px), scrolling past */
.lane {
  position: relative; height: 92px; margin: 14px -4px; border-radius: 4px; overflow: hidden;
  background: #2d2d2f url(../assets/home/track-h.svg) 0 -29.4px / 153.6px 153.6px repeat-x;
  animation: lane-run var(--lane-speed, 1.6s) linear infinite;
}
@keyframes lane-run { to { background-position: -153.6px -29.4px; } }
@media (prefers-reduced-motion: reduce) { .lane { animation: none; } }
.lane-car {
  position: absolute; height: 30px;
  transition: left 0.6s cubic-bezier(.2, .9, .3, 1.3), opacity 0.3s, filter 0.3s;
}
.lane-car img { height: 100%; width: auto; max-width: none; }
.lane-car.rival { top: 9px; left: 48%; }
.lane-car.you { top: 55px; left: 20%; }
.lane-car.you.boost { left: 66%; filter: drop-shadow(0 0 5px rgba(255, 140, 30, 0.95)) drop-shadow(0 0 12px rgba(255, 140, 30, 0.55)); }
.lane-car.you.ghost { opacity: 0.45; }
.lane-car.you.shield::after { /* the game's cyan shield ring */
  content: ''; position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border-radius: 50%; border: 3px solid rgba(89, 199, 242, 0.9); box-shadow: 0 0 10px rgba(89, 199, 242, 0.6);
}

.stats { list-style: none; display: grid; gap: 9px; }
.stat {
  display: grid; grid-template-columns: 22px 104px 1fr 46px; align-items: center; gap: 10px;
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.06em; color: var(--chrome-2);
  text-transform: uppercase;
}
.stat img { width: 22px; height: 22px; image-rendering: pixelated; }
.bar {
  position: relative; height: 14px; background: var(--ink-2); border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ink-4);
}
.bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--v, 30%);
  background: linear-gradient(180deg, var(--blue-0), var(--blue-2));
  transition: width 0.55s cubic-bezier(.2, .9, .3, 1.2);
}
.bar i::after { /* segment ticks */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--ink-2) calc(10% - 2px) 10%);
}
.stat.up .bar i { background: linear-gradient(180deg, var(--green-0), var(--green-2)); }
.stat.down .bar i { background: linear-gradient(180deg, var(--red-0), var(--red-2)); }
.stat output { font-family: var(--font-crt); font-size: 20px; color: var(--chrome-0); text-align: right; letter-spacing: 0; }
.stat.up output { color: var(--green-1); }
.stat.down output { color: var(--red-1); }

.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 30px; }
.perk {
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 3px; color: var(--chrome-0);
  background: var(--ink-3); box-shadow: inset 0 0 0 var(--line) var(--ink-5);
  animation: pop 0.25s cubic-bezier(.2, .9, .3, 1.5);
}
.perk.shield { box-shadow: inset 0 0 0 var(--line) var(--blue-1); }
.perk.shunt { box-shadow: inset 0 0 0 var(--line) var(--red-1); }
.perk.ghost { box-shadow: inset 0 0 0 var(--line) var(--purple-0); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

.hand-area { position: relative; }
.slowmo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-px); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chrome-2);
}
.slowmo b { font-weight: 400; color: var(--chrome-0); background: var(--purple-2); padding: 5px 9px; border-radius: 3px; }
.slowmo .timer { flex: 1; height: 6px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.slowmo .timer i { display: block; height: 100%; width: 100%; background: var(--gold-2); transform-origin: left; }
.deal {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 18px);
  perspective: 900px;
}
.dcard {
  position: relative; border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 12px;
  transition: transform 0.18s ease, opacity 0.3s ease, filter 0.3s ease;
  animation: deal-in 0.45s cubic-bezier(.2, .9, .3, 1.2) both;
}
.dcard:nth-child(2) { animation-delay: 0.08s; }
.dcard:nth-child(3) { animation-delay: 0.16s; }
@keyframes deal-in { from { transform: translateY(40px) rotate(-6deg) scale(0.9); opacity: 0; } }
.dcard img { width: 100%; border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.dcard::after { /* one highlight language: a rounded border that hugs the card */
  content: ''; position: absolute; inset: -4px; border-radius: 14px;
  box-shadow: 0 0 0 4px transparent; transition: box-shadow 0.12s;
  pointer-events: none;
}
.dcard:hover, .dcard:focus-visible { transform: translateY(-10px); outline: none; }
.dcard:hover::after, .dcard:focus-visible::after { box-shadow: 0 0 0 4px var(--gold-2); }
.dcard.picked { transform: translateY(-18px) scale(1.04); z-index: 2; }
.dcard.picked::after { box-shadow: 0 0 0 4px var(--green-1); }
.dcard.gone { opacity: 0.18; filter: grayscale(1); transform: translateY(16px) scale(0.96); pointer-events: none; }
.dcard-tip {
  display: block; margin-top: 10px; text-align: center;
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.06em; color: var(--chrome-2); text-transform: uppercase;
}
.callout {
  position: absolute; left: 50%; top: 42%; z-index: 5;
  transform: translate(-50%, -50%) rotate(-4deg);
  font-family: var(--font-px); font-size: clamp(20px, 4.6vw, 34px); text-transform: uppercase; white-space: nowrap;
  color: var(--ink-0); background: var(--gold-1); padding: 10px 18px;
  box-shadow: 6px 6px 0 var(--ink-0);
  pointer-events: none; opacity: 0;
}
.callout.show { animation: slam 1.1s ease forwards; }
@keyframes slam {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(2.2); }
  14% { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -64%) rotate(-4deg) scale(1); }
}
.draft-done {
  text-align: center; padding: 26px 18px; border-radius: 6px;
  background: rgba(13, 17, 29, 0.85); box-shadow: inset 0 0 0 var(--line) var(--green-2);
}
.draft-done h3 { font-family: var(--font-px); font-weight: 400; font-size: 24px; color: var(--green-1); text-transform: uppercase; }
.draft-done p { margin: 10px auto 18px; max-width: 28em; }
.draft-done .cta-row { margin-top: 0; }
.draft-foot { margin-top: 16px; font-size: 18px; color: var(--chrome-3); }

/* ============================================================== THE ROAD */
/* a straight of the real track running down the stops (track-v.svg) on a
   grass verge; your red classic and Lady Lugnut's Silver Service drive it as
   you scroll. --tk = the track's width (one 128-unit piece). */
.road { --tk: 64px; position: relative; margin-top: 12px; padding: 8px 0 8px calc(var(--tk) + 30px); }
.road-stops { list-style: none; }
.road-track {
  position: absolute; left: 6px; top: 0; bottom: 0; width: var(--tk);
  background: url(../assets/home/track-v.svg) 0 0 / var(--tk) var(--tk) repeat-y;
  box-shadow: 0 0 0 6px #9fb04e;
}
.road-car { position: absolute; top: 0; width: calc(var(--tk) * 0.25); height: auto; will-change: transform; }
.road-car.lane-a { left: calc(var(--tk) * 0.2227); }
.road-car.lane-b { left: calc(var(--tk) * 0.5234); }
.stop { position: relative; display: grid; gap: 14px; padding: 18px 0; }
@media (max-width: 859px) { .stop-text { order: -1; } }
.stop-shot { border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 var(--line) var(--ink-4), 0 12px 26px rgba(0,0,0,.4); }
.stop-shot img, .stop-shot video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stop-tag {
  display: inline-block; font-family: var(--font-px); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-0); background: var(--stop-c, var(--gold-2)); padding: 4px 9px 5px; border-radius: 3px;
}
.stop h3 { font-family: var(--font-px); font-weight: 400; font-size: 22px; color: var(--paper-0); text-transform: uppercase; margin: 10px 0 6px; }
.stop p { color: var(--chrome-1); }
@media (min-width: 860px) {
  .road { --tk: 96px; padding-left: 0; }
  .road-track { left: calc(50% - var(--tk) / 2); }
  .stop { grid-template-columns: 1fr 1fr; gap: calc(var(--tk) + 60px); align-items: center; padding: 26px 0; }
  .stop:nth-child(even) .stop-shot { order: 2; }
  .stop:nth-child(even) .stop-text { text-align: right; }
}
.road-loop {
  margin: 18px 0 0; padding: 16px 18px; border-radius: 6px;
  background: rgba(31, 40, 64, 0.5); box-shadow: inset 0 0 0 var(--line) var(--ink-4);
  font-size: 20px;
}
.road-loop b { font-family: var(--font-px); font-weight: 400; font-size: 14px; color: var(--gold-1); text-transform: uppercase; }

/* ============================================================== THE CAST */
.cast { display: grid; gap: 22px; }
@media (min-width: 900px) { .cast { grid-template-columns: 340px 1fr; gap: 36px; align-items: start; } }
.dossier {
  position: relative;
  background: rgba(13, 17, 29, 0.9);
  border-radius: 6px; box-shadow: inset 0 0 0 var(--line) var(--teal);
  padding: 16px; display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start;
}
@media (min-width: 520px) { .dossier { grid-template-columns: 200px 1fr; } }
@media (min-width: 900px) { .dossier { grid-template-columns: 1fr; position: sticky; top: calc(var(--topbar) + 16px); } }
.mugshot { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 3px var(--ink-0), 0 0 0 5px var(--ink-5); }
.mugshot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mugshot.shake { animation: shake 0.35s steps(6); }
@keyframes shake {
  20% { transform: translate(-6px, 2px) rotate(-2deg); }
  40% { transform: translate(5px, -2px) rotate(2deg); }
  60% { transform: translate(-4px, 1px); }
  80% { transform: translate(3px, 0); }
}
.nemesis-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg) scale(1.6);
  font-family: var(--font-px); font-size: clamp(18px, 4vw, 30px); color: var(--red-1);
  border: 4px solid var(--red-1); padding: 4px 10px; background: rgba(6, 8, 14, 0.75);
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.25s cubic-bezier(.2,.9,.3,1.4);
}
.mugshot.nemesis .nemesis-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
.dossier-name { font-family: var(--font-px); font-size: clamp(20px, 4.4vw, 30px); line-height: 1.05; text-transform: uppercase; }
.dossier-role {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px 5px; border-radius: 3px; color: var(--chrome-0); background: var(--blue-2);
}
.dossier-role.legend { background: var(--gold-2); color: var(--ink-0); }
.dossier-bio { margin-top: 10px; font-size: 20px; color: var(--chrome-1); }
.dossier-quote {
  position: relative; margin-top: 12px; padding: 10px 12px; border-radius: 4px;
  background: var(--paper-1); color: var(--ink-1); font-size: 20px; line-height: 1.2;
}
.dossier-quote::before { /* speech tail */
  content: ''; position: absolute; left: 18px; top: -8px;
  border: 8px solid transparent; border-top: 0; border-bottom-color: var(--paper-1);
}
.grudge { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.grudge-pips { display: flex; gap: 6px; }
.grudge-pips i { width: 18px; height: 18px; border-radius: 3px; background: var(--ink-3); box-shadow: inset 0 0 0 var(--line) var(--ink-5); transition: background 0.15s; }
.grudge-pips i.on { background: var(--red-2); box-shadow: inset 0 0 0 var(--line) var(--red-0); }
.grudge-label { font-family: var(--font-px); font-size: 11px; letter-spacing: 0.1em; color: var(--chrome-2); text-transform: uppercase; }
.grudge .btn { padding: 12px 18px 13px; font-size: 12px; margin-left: auto; }
.grudge-note { grid-column: 1 / -1; font-size: 18px; color: var(--chrome-3); min-height: 1.4em; }

.roster-h {
  font-family: var(--font-px); font-weight: 400; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chrome-2); margin: 0 0 10px; display: flex; align-items: center; gap: 12px;
}
.roster-h::after { content: ''; flex: 1; height: var(--line); background: rgba(71, 128, 140, 0.45); }
.roster-h + .faces { margin-bottom: 24px; }
.faces { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
@media (min-width: 600px) { .faces { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
.face {
  position: relative; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--ink-2);
  border-radius: 6px; transition: transform 0.12s ease;
}
.face img { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.face::after {
  content: ''; position: absolute; inset: -3px; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 0 3px transparent; transition: box-shadow 0.12s;
}
.face.legend::before {
  content: '\2605'; position: absolute; right: 4px; top: 2px; z-index: 1;
  color: var(--gold-1); font-size: 16px; text-shadow: 0 1px 0 var(--ink-0), 0 0 6px rgba(0,0,0,.8);
}
.face:hover, .face:focus-visible { transform: translateY(-3px); outline: none; }
.face:hover::after, .face:focus-visible::after { box-shadow: 0 0 0 3px var(--gold-2); }
.face[aria-pressed="true"]::after { box-shadow: 0 0 0 3px var(--gold-1); }
.face-name {
  display: block; margin-top: 6px; font-family: var(--font-px); font-size: 9px; letter-spacing: 0.04em;
  line-height: 1.25; color: var(--chrome-2); text-transform: uppercase; text-align: center;
}
.face[aria-pressed="true"] .face-name { color: var(--gold-1); }

.takedown {
  display: grid; gap: 16px; align-items: center; margin-top: 34px;
  padding: 14px; border-radius: 6px; background: rgba(13, 17, 29, 0.7); box-shadow: inset 0 0 0 var(--line) var(--ink-4);
}
@media (min-width: 760px) { .takedown { grid-template-columns: 1.4fr 1fr; padding: 18px; gap: 26px; } }
.takedown video { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.takedown h3 { font-family: var(--font-px); font-weight: 400; font-size: 20px; color: var(--gold-1); text-transform: uppercase; margin-bottom: 8px; }

/* ============================================================ RACE TYPES */
.races { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .races { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.race {
  position: relative; overflow: hidden;
  padding: 16px 14px 16px; border-radius: 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 30%, var(--ink-2)) 0%, var(--ink-2) 70%);
  box-shadow: inset 0 0 0 var(--line) color-mix(in srgb, var(--rc) 70%, var(--ink-4));
}
.race h3 { font-family: var(--font-px); font-weight: 400; font-size: 16px; color: var(--chrome-0); text-transform: uppercase; margin: 12px 0 4px; }
.race p { font-size: 19px; line-height: 1.25; color: var(--chrome-1); }
.race .favours { display: block; margin-top: 8px; font-family: var(--font-px); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rc); filter: brightness(1.5); }
.r-sprint { --rc: var(--sprint); } .r-gp { --rc: var(--gp); } .r-endurance { --rc: var(--endurance); }
.r-traffic { --rc: var(--traffic); } .r-technical { --rc: var(--technical); } .r-duel { --rc: var(--duel); }
.race-ico { width: 34px; height: 34px; color: var(--rc); filter: brightness(1.4); }

.hazards { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 760px) { .hazards { grid-template-columns: repeat(3, 1fr); } }
.hazard { border-radius: 6px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 var(--line) var(--ink-4); }
.hazard video, .hazard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.hazard figcaption { padding: 12px 14px 14px; font-size: 19px; line-height: 1.25; }
.hazard figcaption b { display: block; font-family: var(--font-px); font-weight: 400; font-size: 14px; color: var(--gold-1); text-transform: uppercase; margin-bottom: 4px; }
.subhead { font-family: var(--font-px); font-weight: 400; font-size: 20px; color: var(--paper-0); text-transform: uppercase; margin: 40px 0 6px; }

/* ================================================================ THE DECK */
.fan {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  height: clamp(220px, 46vw, 400px); margin: 10px auto clamp(56px, 9vw, 96px); max-width: 980px;
}
.fan figure {
  position: absolute; bottom: 0; left: 50%;
  width: clamp(120px, 22vw, 220px); margin-left: calc(clamp(120px, 22vw, 220px) / -2);
  transform-origin: 50% 120%;
  transform: translateX(calc(var(--i) * clamp(30px, 8.6vw, 112px))) rotate(calc(var(--i) * 6deg)) translateY(calc(var(--i) * var(--i) * 4px));
  transition: transform 0.2s ease;
  z-index: calc(10 - var(--i) * var(--i));
}
.fan figure:hover { transform: translateX(calc(var(--i) * clamp(30px, 8.6vw, 112px))) rotate(calc(var(--i) * 6deg)) translateY(-30px) scale(1.06); z-index: 20; }
.fan img { border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
.archetypes { list-style: none; display: grid; gap: 10px; margin-top: 34px; }
@media (min-width: 680px) { .archetypes { grid-template-columns: repeat(2, 1fr); gap: 12px 26px; } }
@media (min-width: 1000px) { .archetypes { grid-template-columns: repeat(3, 1fr); } }
.archetypes li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; font-size: 19px; line-height: 1.25; }
.chip {
  display: inline-block; text-align: center;
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 8px 6px; border-radius: 3px; color: var(--ink-0); background: var(--cc, var(--chrome-2));
}
.c-engine { --cc: var(--gold-2); } .c-scrap { --cc: var(--red-0); } .c-phantom { --cc: var(--purple-0); }
.c-sponsor { --cc: var(--green-1); } .c-sabotage { --cc: var(--traffic); } .c-oneshot { --cc: var(--blue-0); }
.c-chase { --cc: var(--endurance); } .c-clean { --cc: var(--chrome-1); } .c-shunt { --cc: var(--red-1); }
.deck-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================================================== GARAGE */
.garage { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .garage { grid-template-columns: 1.3fr 1fr; gap: 40px; } }
.garage-shot { border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 var(--line) var(--ink-4), 0 18px 36px rgba(0,0,0,.45); }
.bodies { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bodies li {
  font-family: var(--font-px); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 3px; background: var(--ink-3); color: var(--chrome-1);
  box-shadow: inset 0 0 0 1px var(--ink-5);
}

/* ================================================================ REEL */
.reel-wrap { position: relative; }
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 620px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--ink-5) transparent;
}
.reel figure { scroll-snap-align: center; }
.reel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 var(--line) var(--ink-4); }
.reel figcaption { margin-top: 8px; font-size: 18px; line-height: 1.25; color: var(--chrome-2); }
.reel-nav { display: none; gap: 8px; position: absolute; right: 0; top: -58px; }
.reel-nav button { width: 44px; height: 44px; padding: 0; font-size: 18px; }
@media (min-width: 760px) { .reel-nav { display: flex; } }

/* ================================================================ NEWS */
.news-teasers { display: grid; gap: 16px; }
@media (min-width: 760px) { .news-teasers { grid-template-columns: repeat(3, 1fr); } }
.news-teaser {
  display: flex; flex-direction: column; text-decoration: none; color: var(--chrome-1);
  background: var(--ink-2); border-radius: 6px; overflow: hidden;
  box-shadow: inset 0 0 0 var(--line) var(--ink-4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.news-teaser:hover { color: var(--chrome-1); transform: translateY(-4px); box-shadow: inset 0 0 0 var(--line) var(--gold-2); }
.news-teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-date { font-family: var(--font-px); font-size: 10px; letter-spacing: 0.1em; color: var(--blue-1); padding: 14px 16px 0; }
.news-title { font-family: var(--font-px); font-size: 16px; color: var(--paper-0); padding: 6px 16px 0; line-height: 1.2; }
.news-snip { font-size: 18px; line-height: 1.25; color: var(--chrome-2); padding: 8px 16px 16px; }
.see-all { margin-top: 18px; font-family: var(--font-px); font-size: 13px; text-transform: uppercase; }

/* ============================================================== FAQ/FACTS */
.facts { display: grid; gap: 0; margin-bottom: 28px; border-top: var(--line) solid rgba(71,128,140,.4); }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: var(--line) solid rgba(71,128,140,.25); }
.facts dt { font-family: var(--font-px); font-size: 11px; letter-spacing: 0.08em; color: var(--gold-1); padding-top: 5px; text-transform: uppercase; }
.facts dd { font-size: 20px; line-height: 1.3; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--ink-2); border-radius: 6px; box-shadow: inset 0 0 0 var(--line) var(--ink-4); }
.faq details[open] { box-shadow: inset 0 0 0 var(--line) var(--teal); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative;
  font-family: var(--font-px); font-size: 14px; line-height: 1.35; color: var(--paper-0); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 11px; font-size: 20px; color: var(--gold-1); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 16px 16px; font-size: 20px; }

/* ============================================================== FEEDBACK */
.fb-wrap { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .fb-wrap { grid-template-columns: 1.6fr 1fr; gap: 36px; } }
.fb {
  display: grid; gap: 16px; padding: 18px; border-radius: 6px;
  background: rgba(13, 17, 29, 0.85); box-shadow: inset 0 0 0 var(--line) var(--teal);
}
.fb-kind { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kind legend, .fb-field > span {
  display: block; margin-bottom: 8px;
  font-family: var(--font-px); font-size: 11px; letter-spacing: 0.1em; color: var(--chrome-2); text-transform: uppercase;
}
.fb-field > span i { font-style: normal; font-family: var(--font-crt); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--chrome-3); margin-left: 6px; }
.fb-kind label { position: relative; cursor: pointer; }
.fb-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-kind span {
  display: inline-block; padding: 9px 12px 10px; border-radius: var(--radius);
  font-family: var(--font-px); font-size: 12px; letter-spacing: 0.06em; color: var(--chrome-1);
  background: var(--ink-3); box-shadow: inset 0 0 0 var(--line) var(--ink-5);
  transition: box-shadow 0.12s, background 0.12s, color 0.12s;
}
.fb-kind label:hover span { box-shadow: inset 0 0 0 var(--line) var(--gold-2); }
.fb-kind input:focus-visible + span { outline: 3px solid var(--gold-1); outline-offset: 2px; }
.fb-kind input:checked + span { background: var(--gold-2); color: var(--ink-0); box-shadow: inset 0 -3px 0 var(--gold-4); }
.fb-field { display: block; }
.fb textarea, .fb input[type="email"], .fb select {
  width: 100%; font: inherit; font-size: 20px; color: var(--paper-0);
  background: var(--ink-1); border: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 var(--line) var(--ink-5); padding: 10px 12px;
}
.fb textarea { resize: vertical; min-height: 130px; line-height: 1.3; }
.fb select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-1) 50%), linear-gradient(-45deg, transparent 50%, var(--gold-1) 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.fb textarea:focus, .fb input:focus, .fb select:focus { outline: none; box-shadow: inset 0 0 0 var(--line) var(--gold-1); }
.fb ::placeholder { color: var(--chrome-3); }
.fb-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .fb-row { grid-template-columns: 1.3fr 1fr; } }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fb-send .btn[disabled] { filter: grayscale(0.6) brightness(0.8); cursor: wait; transform: none; }
.fb-status { font-size: 20px; min-height: 1.3em; }
.fb-status.ok { color: var(--green-1); }
.fb-status.err { color: var(--red-0); }
.fb-fine { font-size: 17px; color: var(--chrome-3); }
.fb.sent .fb-kind, .fb.sent .fb-field, .fb.sent .fb-row, .fb.sent .fb-send .btn { display: none; }
.fb-side h3 {
  font-family: var(--font-px); font-weight: 400; font-size: 14px; letter-spacing: 0.1em;
  color: var(--chrome-2); text-transform: uppercase; margin: 18px 0 10px;
}
.fb-side ul { list-style: none; display: grid; gap: 10px; font-size: 19px; line-height: 1.3; }
.fb-side li { padding-left: 18px; position: relative; }
.fb-side li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold-2); }
.fb-coach { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.fb-coach img { border-radius: 4px; box-shadow: 0 0 0 3px var(--ink-0), 0 0 0 5px var(--ink-5); }
.fb-coach .dossier-quote { margin-top: 0; font-size: 19px; }
.fb-coach .dossier-quote::before { left: -8px; top: 14px; border: 8px solid transparent; border-left: 0; border-right-color: var(--paper-1); }

/* ================================================================ FINISH */
.finish { text-align: center; padding: 84px 0 96px; overflow: hidden; }
.gantry { display: inline-flex; gap: 10px; padding: 12px 14px; border-radius: 6px; background: #111520; box-shadow: 0 0 0 4px var(--ink-0), 0 0 0 6px var(--ink-4); }
.pod { display: grid; gap: 8px; padding: 8px; background: #05070b; border-radius: 4px; }
.pod i { width: clamp(22px, 6vw, 36px); height: clamp(22px, 6vw, 36px); border-radius: 50%; background: #2a1012; box-shadow: inset 0 -3px 0 rgba(0,0,0,.5); transition: background 0.06s; }
.gantry.r1 .pod:nth-child(-n+1) i, .gantry.r2 .pod:nth-child(-n+2) i, .gantry.r3 .pod:nth-child(-n+3) i,
.gantry.r4 .pod:nth-child(-n+4) i, .gantry.r5 .pod:nth-child(-n+5) i {
  background: var(--red-1); box-shadow: 0 0 18px var(--red-1), inset 0 -3px 0 rgba(0,0,0,.25);
}
.gantry.go .pod i { background: var(--green-1); box-shadow: 0 0 18px var(--green-1), inset 0 -3px 0 rgba(0,0,0,.25); }
.finish h2 { font-family: var(--font-px); font-weight: 400; font-size: clamp(30px, 8vw, 64px); line-height: 1.05; margin-top: 28px; text-transform: uppercase; }
.finish .lede { margin: 12px auto 0; }
.finish .cta-row { justify-content: center; }
.finish .cta-meta { justify-content: center; }
.gantry.go ~ .cta-row .btn-gold { animation: glow 1.2s ease-in-out 2; }
@keyframes glow { 50% { box-shadow: inset 0 -4px 0 var(--gold-4), inset 0 2px 0 var(--gold-0), 0 0 0 999px rgba(253, 219, 76, 0); filter: brightness(1.2); } }

/* ================================================================ FOOTER */
.footer { background: var(--ink-0); padding-bottom: 96px; }
.footer-inner { padding-top: 26px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: var(--font-px); font-size: 12px; text-transform: uppercase; }
.footer-links a { color: var(--chrome-2); text-decoration: none; }
.footer-links a:hover { color: var(--gold-1); }
.footer-fine { font-size: 17px; color: var(--chrome-3); }
.moonfrog { width: 110px; opacity: 0.9; }
@media (min-width: 760px) { .footer { padding-bottom: 30px; } }

/* =============================================================== DOCK */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(6, 8, 14, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: var(--line) solid var(--red-2);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.dock.on { transform: none; }
.dock .btn { flex: 1; padding: 14px 10px 15px; font-size: 13px; }
.dock .btn-gold { flex: 1.4; }
@media (min-width: 760px) { .dock { display: none; } }

/* reveal-on-scroll, only when JS is on and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}
