:root {
  --bg: #0b0b1a;
  --bg2: #14142b;
  --card: #1b1b38;
  --line: #2e2e5a;
  --ink: #f6f6ff;
  --muted: #b9b9dc;
  --hot: #7c6cff;
  --lime: #c6ff3d;
  --cyan: #2ee6ff;
  --pink: #ff4fb0;
  --gold: #ffd23f;
  --r: 18px;
  --ease: cubic-bezier(.2, .9, .25, 1.2);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(255, 79, 176, .22), transparent 60%),
    radial-gradient(800px 500px at -20% 20%, rgba(46, 230, 255, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
b, strong { font-weight: 800; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 8vw, 48px); font-weight: 900; margin-bottom: 10px; }
p { margin: 0 0 12px; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 800;
}
.skip:focus { top: 12px; }

.grad {
  background: linear-gradient(90deg, var(--hot), var(--cyan) 50%, var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- HUD ---------- */
.hud {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px calc(10px) 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(11, 11, 26, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hud__brand { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.hud__brand b { color: var(--lime); }
.hud__bolt { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--hot); color: #fff; }
.hud__xp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud__level { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.hud__pts { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.hud__pts b { color: var(--lime); }
.xpbar { width: 70px; height: 10px; border-radius: 99px; background: #26264a; overflow: hidden; }
.xpbar__fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  border-radius: inherit; transition: width .6s var(--ease);
}
.hud.bump .xpbar__fill { box-shadow: 0 0 14px var(--lime); }
@media (max-width: 400px) {
  .hud__brand span:last-child { display: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 140%);
  background: var(--lime); color: #0b0b1a; font-weight: 900;
  padding: 12px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .45s var(--ease), visibility 0s linear .45s; white-space: nowrap; pointer-events: none;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }

/* ---------- Layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .sec { padding-top: 80px; } .hero { padding-top: 36px; } }
.sec { padding: 56px 0 8px; }
.kicker {
  display: inline-block; margin: 0 0 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #0b0b1a; background: var(--gold); padding: 4px 10px; border-radius: 6px;
}
.lede { color: var(--muted); font-size: 17px; }
.h3 { font-size: 22px; margin: 34px 0 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; padding-left: 12px; border-left: 3px solid var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 900; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.96); }
.btn--hot { background: var(--hot); color: #fff; box-shadow: 0 6px 0 #3d2fb8, 0 10px 24px rgba(124, 108, 255, .35); }
.btn--hot:active { box-shadow: 0 2px 0 #3d2fb8; transform: translateY(4px); }
.btn--lime { background: var(--lime); color: #0b0b1a; box-shadow: 0 6px 0 #6f9a10; }
.btn--lime:active { box-shadow: 0 2px 0 #6f9a10; transform: translateY(4px); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--xl { min-height: 60px; font-size: 20px; width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Hero / scoreboard ---------- */
.hero { padding-top: 18px; }
.hero__tagline {
  margin: 0 0 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.board {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 4px),
    linear-gradient(160deg, #1d1d44, #111127);
  border: 2px solid var(--line); border-radius: 24px; padding: 20px 18px 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 20px 50px rgba(0, 0, 0, .45);
}
.board::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, var(--hot), var(--pink), var(--cyan), var(--lime), var(--hot));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
  animation: slide 6s linear infinite;
}
@keyframes slide { to { background-position: 300% 0; } }
.board__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.live { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: #fff; background: #e0182d; padding: 4px 10px; border-radius: 6px; font-weight: 800; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.board__tag { color: var(--muted); text-align: right; }
.hero__title { font-size: clamp(42px, 12.5vw, 76px); font-weight: 950; text-transform: uppercase; letter-spacing: -.03em; line-height: .92; margin-bottom: 14px; }
.hero__title .line1 { display: block; color: var(--lime); text-shadow: 0 0 24px rgba(198, 255, 61, .35); }
.hero__title .line2 { display: block; color: var(--cyan); text-shadow: 0 0 24px rgba(46, 230, 255, .35); }
.hero__rule { color: var(--ink); font-size: 18px; margin-bottom: 18px; }
.hero__rule b { color: var(--gold); }
.hero__sub { margin: 18px 0 0; text-align: center; font-family: var(--mono); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }

.race {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.race__phone {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  background: #2a2a52; color: var(--muted); transition: background .2s, color .2s;
}
.race.ringing .race__phone { background: var(--lime); color: #0b0b1a; animation: ring .5s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(198, 255, 61, .7); }
.race.ringing .race__phone { animation: ring .5s ease-in-out infinite, pulse 1s ease-out infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes pulse { to { box-shadow: 0 0 0 22px rgba(198, 255, 61, 0); } }
.race__stats { display: flex; gap: 10px; }
.stat { flex: 1; background: #0a0a18; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.stat__label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat__num { font-family: var(--mono); font-size: 24px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.race__msg { grid-column: 1 / -1; margin: 0; min-height: 3em; font-weight: 700; }
.race .btn { grid-column: 1 / -1; }
.race.ringing .btn { background: var(--lime); color: #0b0b1a; box-shadow: 0 6px 0 #6f9a10; }
.race.waiting .btn { background: #3a3a66; box-shadow: 0 6px 0 #22224a; }

.jump { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 9px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line);
}
.jump a:hover { border-color: var(--cyan); }

/* ---------- Flip cards ---------- */
.flips { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .flips { grid-template-columns: 1fr 1fr; } }
.flip {
  --c: var(--hot);
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  perspective: 1200px; min-height: 190px; border-radius: var(--r);
}
.c-hot { --c: var(--hot); } .c-lime { --c: var(--lime); } .c-cyan { --c: var(--cyan); } .c-pink { --c: var(--pink); }
.flip__inner {
  position: relative; display: grid; width: 100%; min-height: 190px;
  transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip__front { background: var(--card); border: 2px solid var(--c); box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 45%, #000); }
.flip__back { background: var(--c); color: #0b0b1a; transform: rotateY(180deg); justify-content: center; }
.flip__num { font-family: var(--mono); font-weight: 800; color: var(--c); font-size: 14px; }
.flip__title { font-size: 28px; font-weight: 950; letter-spacing: -.02em; line-height: 1; }
.flip__line { font-size: 16px; color: inherit; }
.flip__front .flip__line { color: var(--muted); }
.flip__back .flip__line { font-size: 20px; font-weight: 800; line-height: 1.25; }
.flip__why { font-family: var(--mono); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.flip__hint { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .08em; }
.flip__hint::after { content: " ↻"; }

/* ---------- Tips ---------- */
.tips { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.tips li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.tips li b { color: var(--lime); }
.tips__icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 900; background: var(--pink); color: #0b0b1a;
}
.tips li:nth-child(2) .tips__icon { background: var(--cyan); }
.tips li:nth-child(3) .tips__icon { background: var(--lime); }
.tips li:nth-child(4) .tips__icon { background: var(--gold); }
.tips li:nth-child(5) .tips__icon { background: var(--hot); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; background: var(--bg2); padding: 6px; border-radius: 14px; border: 1px solid var(--line); }
.tab {
  flex: 1; appearance: none; border: 0; cursor: pointer; min-height: 44px; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 800;
}
.tab[aria-selected="true"] { background: var(--cyan); color: #0b0b1a; }
.panel { margin-top: 12px; }
.nv { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.nv li { background: var(--card); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.nv li span { color: var(--muted); font-size: 15px; }
.panel:not([hidden]) .nv li { animation: rise .45s var(--ease) both; }
.panel .nv li:nth-child(2) { animation-delay: .06s; }
.panel .nv li:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Stage sections ---------- */
.sec--stage { position: relative; }
.sec--stage::before {
  content: ""; position: absolute; z-index: -1; top: 30px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(124, 108, 255, .10), rgba(255, 79, 176, .06));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* ---------- Rehearsal ---------- */
.reh { margin-top: 14px; }
.reh__rounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.round {
  appearance: none; cursor: pointer; min-height: 44px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg2); color: var(--muted); font-weight: 800; font-size: 14px; padding: 0 4px;
}
.round[aria-current="step"] { border-color: var(--hot); color: #fff; background: #241e4a; }
.round.done { color: var(--lime); border-color: #4b6b14; }
.round.done::before { content: "✓ "; }
.reh__bar { height: 10px; border-radius: 99px; background: #26264a; margin: 12px 0; overflow: hidden; }
.reh__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hot), var(--pink)); transition: width .45s var(--ease); }
.reh__card {
  background: #0a0a18; border: 2px solid var(--hot); border-radius: 22px; padding: 20px 18px; min-height: 260px;
  box-shadow: 0 0 0 6px rgba(124, 108, 255, .12), 0 20px 40px rgba(0, 0, 0, .35);
}
.reh__card.swap { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(24px) scale(.98); } }
.reh__round { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--hot); font-weight: 800; margin-bottom: 8px; }
.reh__title { font-size: 20px; color: var(--gold); margin-bottom: 14px; }
.reh__line { font-size: clamp(22px, 6.4vw, 30px); font-weight: 850; line-height: 1.2; margin-bottom: 14px; }
.reh__line::before { content: "“"; color: var(--hot); }
.reh__line::after { content: "”"; color: var(--hot); }
.reh__say { color: var(--muted); font-size: 15px; margin: 0; }
.reh__say b { color: var(--cyan); }
.reh__pause { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 800; color: var(--lime); }
.pausering { width: 26px; height: 26px; border-radius: 50%; border: 4px solid #2e3d12; border-top-color: var(--lime); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reh__why { color: var(--muted); font-size: 15px; margin: 12px 2px; min-height: 2.6em; }
.reh__ctrl { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.reh.won .reh__card, .reh.won .reh__why, .reh.won .reh__ctrl { display: none; }
.reh__win {
  text-align: center; background: linear-gradient(160deg, var(--lime), var(--cyan)); color: #0b0b1a;
  border-radius: 22px; padding: 26px 18px; margin-top: 14px; animation: pop .6s var(--ease);
}
.win__big { font-size: 40px; font-weight: 950; letter-spacing: -.03em; margin-bottom: 6px; }
.reh__win .btn--lime { background: #0b0b1a; color: var(--lime); box-shadow: 0 6px 0 #000; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* ---------- Deal stages ---------- */
.stages { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .stages { grid-template-columns: 1fr 1fr; } }
.stage {
  position: relative; background: var(--card); border-radius: var(--r); padding: 18px; border: 1px solid var(--line);
  border-top: 6px solid var(--c); transition: transform .25s var(--ease);
}
.stage:hover { transform: translateY(-4px); }
.stage__lv {
  position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-weight: 900; font-size: 13px;
  background: var(--c); color: #0b0b1a; padding: 3px 9px; border-radius: 8px;
}
.stage h3 { font-size: 26px; font-weight: 950; margin-bottom: 10px; color: var(--c); }
.stage ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 8px; }
.stage li { color: var(--muted); }
.stage li b { color: var(--ink); }
.stage__why { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); opacity: .9; }

/* ---------- Checklists ---------- */
.checks, .days { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.checks label, .days label {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px;
  transition: border-color .2s, background .2s, transform .15s;
}
.checks label:active, .days label:active { transform: scale(.98); }
.checks input, .days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  flex: none; width: 28px; height: 28px; border-radius: 9px; border: 3px solid var(--muted);
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .3s var(--ease);
}
.box::after { content: ""; width: 12px; height: 7px; border: 3px solid #0b0b1a; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .25s var(--ease); }
input:checked + .box { background: var(--lime); border-color: var(--lime); transform: rotate(-8deg); }
input:checked + .box::after { transform: rotate(-45deg) scale(1); }
input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 3px; }
label:has(input:checked) { border-color: #5c8414; background: #1c2614; }
.heat { height: 14px; border-radius: 99px; background: #26264a; overflow: hidden; }
.heat span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--pink), var(--hot)); transition: width .45s var(--ease); }
.hot__done { font-size: 22px; font-weight: 950; color: var(--hot); animation: pop .5s var(--ease); }
.callout {
  margin-top: 22px; border-radius: 16px; padding: 16px; border: 2px dashed var(--gold); background: rgba(255, 210, 63, .07);
}
.callout__lead { font-weight: 950; font-size: 20px; color: var(--gold); margin-bottom: 4px; }
.callout p:last-child { margin: 0; }

/* ---------- Quiz ---------- */
.quiz { background: #0a0a18; border: 2px solid var(--pink); border-radius: 22px; padding: 18px; margin-top: 14px; }
.quiz__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.quiz__score b { color: var(--lime); font-size: 16px; }
.quiz__q { font-size: 22px; font-weight: 850; line-height: 1.25; }
.quiz__opts { display: grid; gap: 10px; }
.opt {
  appearance: none; cursor: pointer; text-align: left; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  background: var(--card); border: 2px solid var(--line); color: var(--ink); font-weight: 700;
  transition: border-color .2s, background .2s, transform .15s;
}
.opt:hover:not([disabled]) { border-color: var(--pink); }
.opt[disabled] { cursor: default; }
.opt.right { background: #1c2614; border-color: var(--lime); }
.opt.right::after { content: "  ✓"; color: var(--lime); font-weight: 900; }
.opt.wrong { background: #2a1016; border-color: #ff4b5c; animation: shake .35s; }
.opt.wrong::after { content: "  ✗"; color: #ff6b78; font-weight: 900; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz__fb { min-height: 1.5em; margin: 12px 0; font-weight: 700; color: var(--muted); }
.quiz__end { text-align: center; }
.quiz__big { font-size: 56px; font-weight: 950; font-family: var(--mono); color: var(--gold); margin: 0; }

/* ---------- Launch ---------- */
.launch { display: grid; gap: 16px; align-items: center; margin-top: 14px; }
@media (min-width: 640px) { .launch { grid-template-columns: 160px 1fr; } }
.ring { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring__bg { stroke: #26264a; }
.ring__fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .7s var(--ease); }
.ring__txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 22px; color: var(--muted); }
.ring__txt b { font-size: 40px; color: var(--ink); }
.ring__txt { display: flex; align-items: baseline; justify-content: center; padding-top: 46px; }
.days .day { display: block; font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.launch__done {
  text-align: center; font-size: 24px; font-weight: 950; padding: 18px; border-radius: 18px;
  background: linear-gradient(90deg, var(--hot), var(--pink)); color: #fff; animation: pop .6s var(--ease);
}

/* ---------- Footer ---------- */
.foot { max-width: 880px; margin: 60px auto 0; padding: 30px 16px 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__big { font-size: clamp(30px, 9vw, 48px); font-weight: 950; color: var(--ink); line-height: 1; letter-spacing: -.03em; margin-bottom: 16px; }

/* ---------- Confetti ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flip__inner { transform-style: flat; }
  .flip[aria-pressed="true"] .flip__inner { transform: none; }
  .flip__back { transform: none; }
  .flip[aria-pressed="false"] .flip__back { visibility: hidden; }
  .flip[aria-pressed="true"] .flip__front { visibility: hidden; }
}

/* Touch-safe controls and small-screen scoreboard. Keep pinch zoom available. */
button, a, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { scroll-margin-block: 90px 30px; }
.race__stats { min-width: 0; flex-wrap: wrap; }
.stat { min-width: 0; }
.stat__num { font-size: clamp(16px, 4.4vw, 24px); white-space: nowrap; }
.race.ringing { border: 3px solid var(--lime); padding: 14px; }
.race .btn:active { transform: none; }
.stage h3 { padding-right: 60px; }
.toast { max-width: calc(100vw - 24px); white-space: normal; text-align: center; }
@media (max-width: 600px) {
  .hud__brand span:last-child { display: none; }
}
@media (max-width: 350px) {
  .race { grid-template-columns: 1fr; }
  .race__phone { margin: 0 auto; }
  .board__top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stage:hover { transform: none; }
}
