/* new-17 site styles. Tokens: tokens.css (design system v2 — Fibonacci lengths, φ opacities, two families). */
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--void); color: var(--ink-2); overflow: hidden;
  font: 400 var(--t-body) / var(--lh-body) var(--font-sans); letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em, i, b, cite, dfn, var, address { font-style: normal; }
b { font-weight: 500; color: var(--ink-1); }
h1, h2, h3, p { font-weight: 400; }

/* ─────────── type (v2: five sizes) ─────────── */
.display { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); color: var(--ink-1); }
.body    { font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--tr-body); color: var(--ink-2); }
.caption { font-size: var(--t-small); line-height: var(--lh-small); letter-spacing: var(--tr-small); color: var(--ink-3); }
.dots {
  font-family: var(--font-dots); font-weight: 700; font-variation-settings: "ROND" 100;
  font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0; color: var(--ink-1);
}
.dots small {
  font-family: var(--font-sans); font-variation-settings: normal; font-weight: 400;
  font-size: var(--t-small); color: var(--ink-3); margin-left: var(--f8);
}
.dots--34 { font-size: var(--t-heading); }
.dots--89 { font-size: var(--t-title); }

/* ─────────── Soviet Nixie IN-8 / IN-8-2 digits (orange filament + blue base LED) ─────────── */
.nixie {
  display: inline-flex; align-items: flex-end; gap: .12em;
  font-family: var(--font-nixie); font-weight: 400; font-variation-settings: normal;
  font-variant-numeric: normal; color: var(--nixie); line-height: 1;
}
.nixie > [data-stat], .nixie[data-stat] {
  display: inline-flex; align-items: flex-end; gap: .12em;
}
.nixie small { margin-left: .35em; align-self: center; }
.nixie__tube {
  position: relative; display: inline-grid; place-items: center;
  width: 1.05em; height: 1.72em; flex: 0 0 auto;
  border-radius: 48% / 22%;
  background:
    /* blue base LED — bottom fifth only, keep mid-tube dark for orange contrast */
    radial-gradient(ellipse 95% 28% at 50% 100%, rgba(42, 109, 255, .8) 0%, rgba(42, 109, 255, .35) 40%, transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 0%, transparent 20%, transparent 58%, rgba(180, 210, 255, .06) 80%, rgba(255, 255, 255, .07) 100%),
    linear-gradient(180deg, #101418 0%, #07090c 58%, #040506 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 220, 255, .14),
    inset 0 -.22em .4em rgba(42, 109, 255, .5),
    0 .12em .22em -.06em rgba(42, 109, 255, .45);
  overflow: hidden;
  isolation: isolate;
}
.nixie__tube::before {   /* glass dome tip + top specular */
  content: ""; position: absolute; left: 50%; top: 2%; z-index: 5;
  width: .18em; height: .14em; margin-left: -.09em; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .45), rgba(180, 210, 255, .12) 60%, transparent 70%);
  pointer-events: none;
}
.nixie__tube::after {   /* brass socket ring at base */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; z-index: 5; height: .16em;
  border-radius: 0 0 .2em .2em;
  background: linear-gradient(180deg, #c9a46a 0%, #8a6a35 45%, #5c441f 100%);
  box-shadow: 0 0 .2em rgba(42, 109, 255, .5);
  pointer-events: none;
}
/* Minimal cathode tip only — no outer bloom (match real IN-8 photos) */
.nixie__bloom {
  position: absolute; inset: 34% 30% 40%; z-index: 2; border-radius: 40%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 70, 0, .32) 0%, transparent 62%);
  filter: blur(.025em);
  opacity: .78;
}
/* Anode honeycomb («соты») — fine dark hex silhouette over orange cathode */
.nixie__mesh {
  position: absolute; inset: 6% 10% 15%; border-radius: 42% / 18%;
  pointer-events: none;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(ellipse 84% 92% at 50% 46%, #000 55%, transparent 96%);
  mask-image: radial-gradient(ellipse 84% 92% at 50% 46%, #000 55%, transparent 96%);
}
.nixie__mesh--back {
  z-index: 1; inset: 8% 12% 17%;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 1.1px, rgba(90, 100, 110, .4) 1.1px 1.45px),
    repeating-linear-gradient(60deg, transparent 0 1.1px, rgba(90, 100, 110, .35) 1.1px 1.45px),
    repeating-linear-gradient(120deg, transparent 0 1.1px, rgba(90, 100, 110, .35) 1.1px 1.45px);
  background-size: 2.8px 4.85px;
  opacity: .55; filter: brightness(.45);
}
.nixie__mesh--front {
  z-index: 4;
  opacity: .7;
  background-image:
    linear-gradient(180deg, transparent 55%, rgba(42, 109, 255, .14) 100%),
    repeating-linear-gradient(0deg, transparent 0 .95px, rgba(40, 48, 58, .55) .95px 1.25px),
    repeating-linear-gradient(60deg, transparent 0 .95px, rgba(40, 48, 58, .48) .95px 1.25px),
    repeating-linear-gradient(120deg, transparent 0 .95px, rgba(40, 48, 58, .48) .95px 1.25px);
  background-size: auto, 2.6px 4.5px, 2.6px 4.5px, 2.6px 4.5px;
}
/* Hot saturated orange cathode — vivid, tight glow (no white / amber wash) */
.nixie__fil {
  position: relative; z-index: 3; display: block;
  font-style: normal; font-weight: 400; font-size: 1.05em; line-height: 1;
  color: var(--nixie-hot);
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0 0 .02em #ff9a28,
    0 0 .06em var(--nixie),
    0 0 .12em rgba(255, 69, 0, .95);
  filter: saturate(1.4) brightness(1.22);
  transform: translateY(-4%);
}
.nixie__colon {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .28em; width: .42em; height: 1.5em; flex: 0 0 auto; align-self: center;
}
.nixie__colon b {
  display: block; width: .18em; height: .18em; border-radius: 50%;
  background: var(--nixie-hot);
  box-shadow:
    0 0 .025em #ff9a28,
    0 0 .08em var(--nixie),
    0 0 .14em rgba(255, 69, 0, .92);
}

/* ─────────── surfaces and buttons (v2: fill only, no edges) ─────────── */
.glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); min-width: var(--btn-w); padding: 0 var(--f34); border-radius: var(--r-btn);
  font-size: var(--t-small); line-height: 1; font-weight: 500; letter-spacing: 0;
  transition: background-color var(--dur-press) var(--ease-expo), color var(--dur-press) var(--ease-expo), scale var(--dur-press) var(--ease-expo);
}
.btn:active { scale: .98; }
.btn--primary { background: var(--fg); color: var(--void); }
.btn--primary:hover { background: #fff; }
.btn--text { min-width: 0; padding: 0 var(--f21); color: var(--ink-2); }
.btn--text:hover { color: var(--ink-1); }

/* ─────────── hero v4 (stage 2) — header after the user's ref, a sticky glowing tick ring, a 3D flying title lockup.
   Everything flush to --edge (16). ─────────── */
.hero { position: fixed; inset: 0; overflow: hidden; background: var(--void); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; transition: opacity .18s var(--ease-expo);
}
.hero.is-orbiting .hero__still { opacity: 0; }
.hero__fade { display: none; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 8, .618) 0%, rgba(8, 8, 8, 0) 21%, rgba(8, 8, 8, 0) 61.8%, rgba(8, 8, 8, .618) 100%);
}

/* header: a square logo tile and two smaller buttons (no action yet) */
.hero__head, .game__head {   /* one header for both screens, in the same spot: across the launch cut it reads as one */
  position: absolute; inset: var(--edge) var(--edge) auto; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hero__head > *, .game__head > * { pointer-events: auto; }
.tile {
  display: grid; place-items: center; width: var(--f55); height: var(--f55); border-radius: var(--r-panel);
  background: var(--fg); color: var(--void);
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-heading); line-height: 1;
  text-decoration: none;
}
button.tile {
  border: 0; padding: 0; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  font: inherit; color: inherit;
}
.tile--ave {
  width: auto; min-width: 0; height: auto; padding: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
.tile__logo { display: block; width: var(--f34); height: var(--f34); color: var(--void); }
.tile--ave .tile__logo {
  width: auto; height: calc(var(--f55) * 1.15); max-width: calc(var(--f55) * 3.4);
  object-fit: contain;
}
.hero__btns, .game__btns { display: flex; gap: var(--f5); }
.hbtn {
  height: var(--f34); padding: 0 var(--f21); border-radius: var(--f8);
  background: rgba(238, 244, 248, .854); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  color: var(--void); font-family: var(--font-sans); font-size: var(--t-small); font-weight: 500; line-height: 1;
  transition: background-color var(--dur-press) var(--ease-expo), scale var(--dur-press) var(--ease-expo);
}
.hbtn:hover { background: #fff; }
.hbtn:active { scale: .98; }
.hbtn:disabled { opacity: .382; cursor: default; }
.hbtn:disabled:hover { background: rgba(238, 244, 248, .854); }
.hbtn:disabled:active { scale: 1; }

/* the tick ring: a Ø 610 hover zone around a Ø 377 ring (445 drawing box), centred in the right golden column */
.ring {
  position: absolute; z-index: 1; width: calc(var(--u) * 610); height: calc(var(--u) * 610); border-radius: 50%;
  left: calc(80.9vw - var(--edge) / 2 - var(--u) * 305); top: calc(38.2% - var(--u) * 305); touch-action: none;
}
.hero .ring { left: calc(50% - var(--u) * 305); }   /* «Поехали» on the horizontal center of the hero */
.ring:focus-visible { outline: none; }
.ring__tilt {
  position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 678); height: calc(var(--u) * 678);   /* the Ø 610 zone + 34 pad */
  margin: calc(var(--u) * -339) 0 0 calc(var(--u) * -339);
}
.ring__tilt::before {   /* a soft darkening so the ticks read over any frame */
  content: ""; position: absolute; inset: calc(var(--u) * 95); border-radius: 50%; pointer-events: none;   /* around the Ø 377 ring */
  background: radial-gradient(closest-side, rgba(8, 8, 8, .382), rgba(8, 8, 8, 0));
}
.ring__ticks, .ring__bloom { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ring__bloom { filter: blur(calc(var(--u) * 34)); mix-blend-mode: plus-lighter; }   /* additive, sweeping light on top of the ticks */
@supports not (mix-blend-mode: plus-lighter) { .ring__bloom { mix-blend-mode: screen; } }
.disc {
  position: absolute; left: 50%; top: 50%; width: var(--disc); height: var(--disc); border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink-5); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  font-family: var(--font-display); font-size: var(--t-body); font-weight: 500; letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--ink-1);
  transition: background-color var(--dur-press) var(--ease-expo), color var(--dur-press) var(--ease-expo), scale var(--dur-press) var(--ease-expo), opacity var(--dur-press) var(--ease-expo);
}
.disc:hover { background: var(--fg); color: var(--void); }
.disc:active { scale: .98; }
.disc:disabled { opacity: .382; cursor: default; }
.disc:disabled:hover { background: var(--ink-5); color: var(--ink-1); }

/* the title lockups: small 55 over big 144 (MUSTANG / FASTBACK), flying through 3D space (lib/titles.js writes --e) */
.titles { position: absolute; left: var(--edge); bottom: var(--edge); perspective: calc(var(--u) * 987); perspective-origin: 0 100%; pointer-events: none; }
.lockup {
  display: grid; justify-items: start; margin: 0; transform-origin: 0 50%;
  font-family: var(--font-display); text-transform: uppercase; color: var(--ink-1);
}
.lockup + .lockup { position: absolute; left: 0; bottom: 0; }
.lockup__sm { font-weight: 400; font-size: var(--t-display); line-height: 1; letter-spacing: var(--tr-wordmark); margin-bottom: var(--f13); }
.lockup__lg {
  position: relative; white-space: nowrap; margin-bottom: -.082em;   /* the letters sit on the 16 edge */
  font-weight: 300; font-size: var(--t-giant); line-height: var(--lh-giant); letter-spacing: var(--tr-giant);
}
.lockup__ghost {
  position: absolute; left: calc(100% + var(--f34)); bottom: 0;
  color: rgba(238, 244, 248, .28);   /* was --ink-6 (.09): near-invisible on dark ground; still secondary to УШЛА */
  text-shadow: 0 0 1px rgba(0, 0, 0, .45);
}
[data-title="a"] {   /* exits: swings up-left and away */
  transform: translate3d(calc(var(--e, 0) * -89 * var(--u)), calc(var(--e, 0) * -233 * var(--u)), calc(var(--e, 0) * -377 * var(--u)))
             rotateX(calc(var(--e, 0) * 34deg)) rotateY(calc(var(--e, 0) * -55deg));
}
[data-title="b"] {   /* enters: from huge and tilted at the upper left, close to the camera */
  opacity: 0;
  transform: translate3d(calc(var(--e, 1) * -55 * var(--u)), calc(var(--e, 1) * -377 * var(--u)), calc(var(--e, 1) * 377 * var(--u)))
             rotateX(calc(var(--e, 1) * -34deg)) rotateY(calc(var(--e, 1) * 21deg));
}

/* ─────────── the site cursor (lib/cursor.js): a 34 white circle, difference blend; ×1.618 over buttons, .8 pressed ─────────── */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none;
  mix-blend-mode: difference; opacity: 0; transition: opacity var(--dur-press) var(--ease-expo);
}
.cursor.is-on { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: calc(var(--f34) / -2); top: calc(var(--f34) / -2);
  width: var(--f34); height: var(--f34); border-radius: 50%; background: var(--fg);
  transition: scale var(--dur-press) var(--ease-expo);
}
.cursor.is-hover::before { scale: 1.618; }
.cursor.is-down::before { scale: .8; }
.cursor.is-hover.is-down::before { scale: 1.3; }

/* ─────────── screens: Start blurs the hero out and the game in; Menu runs it back ─────────── */
.screen { transition: opacity var(--dur-in) var(--ease-expo), filter var(--dur-in) var(--ease-expo), transform var(--dur-in) var(--ease-expo); }
[data-screen="game"] .hero { opacity: 0; filter: blur(var(--f21)); transform: scale(1.055); pointer-events: none; }
[data-screen="hero"] .game { opacity: 0; filter: blur(var(--f21)); transform: scale(.97); pointer-events: none; }
body:not(.is-anim)[data-screen="game"] .hero,
body:not(.is-anim)[data-screen="hero"] .game { visibility: hidden; }   /* not rendered at rest: the blur keeps no surface alive */
/* launch (START, stage 8): the dive (lib/wipe.js) sits over the clip, under the hero UI, and pulls the clip's frame
   toward the Roadster, then opens the game's from it; the hero UI flies past the camera on an ease-in over .45 s (the
   ring grows through us, the lockup rushes off to the lower left, the header simply goes); at the end the screens cut
   (is-cut: no crossfade, the dive's last frame is the game) and the game's header and telemetry arrive in steps */
.hero__wipe {   /* fades in over .2 s so a sub-percent difference between the GL frame and the compositor's video never steps */
  position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; opacity: 0;
  transition: opacity .2s var(--ease-expo), visibility 0s .2s;
}
.is-launch .hero__wipe { visibility: visible; opacity: 1; transition: opacity .2s var(--ease-expo); }
.hero__scrim, .hero__head, .hero .ring, .titles {
  transition: opacity var(--dur-in) var(--ease-expo), filter var(--dur-in) var(--ease-expo), transform var(--dur-in) var(--ease-expo);
}
.is-launch .hero__still,
.is-launch .hero__scrim, .is-launch .hero__head, .is-launch .hero .ring, .is-launch .titles {
  opacity: 0; filter: blur(var(--f13)); pointer-events: none;
  transition: opacity .45s var(--ease-in), filter .45s var(--ease-in), transform .45s var(--ease-in);
}
.is-launch .hero__head { transition-duration: .25s; }
.is-launch .hero .ring { transform: scale(2.2); }                        /* we fly through the ring */
.is-launch .titles { transform: translate(-8%, 6%) scale(1.6); }        /* the lockup rushes past to the lower left */
.is-cut .screen { transition: none; }
.game__head { transition: opacity .61s var(--ease-expo), filter .61s var(--ease-expo); }
.telemetry { transition: opacity .61s var(--ease-expo) var(--stagger), filter .61s var(--ease-expo) var(--stagger), transform .61s var(--ease-expo) var(--stagger); }
.is-launch .game__head, .is-launch .telemetry { opacity: 0; filter: blur(var(--f13)); }   /* they arrive in steps after the cut */
.is-launch .telemetry { transform: translateY(var(--f34)); }

/* ─────────── the game screen · UI v5.2 Niva cluster (lib/game/telemetry.js draws, hud.js writes) ─────────── */
.game { position: fixed; inset: 0; overflow: hidden; background: var(--void); }
.game__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: none; transition: opacity var(--dur-press) var(--ease-expo); }
/* Magical fireflies over the forest road (AVE magic/forest mood) — float independently of canvas plates */
.game__sparks {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
  opacity: .85; mix-blend-mode: screen;
}
.game__sparks i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #ffd36a 0%, #ff9a2a 45%, transparent 70%);
  box-shadow: 0 0 8px rgba(255, 170, 50, .55);
  animation: spark-drift var(--spark-dur, 9s) linear infinite;
  animation-delay: var(--spark-delay, 0s);
  left: var(--spark-x, 10%); top: var(--spark-y, 40%);
  opacity: .55;
}
.game__sparks i:nth-child(1)  { --spark-x: 8%;  --spark-y: 28%; --spark-dur: 11s; --spark-delay: -1s; }
.game__sparks i:nth-child(2)  { --spark-x: 22%; --spark-y: 46%; --spark-dur: 8s;  --spark-delay: -3s; width: 3px; height: 3px; }
.game__sparks i:nth-child(3)  { --spark-x: 38%; --spark-y: 22%; --spark-dur: 13s; --spark-delay: -5s; }
.game__sparks i:nth-child(4)  { --spark-x: 55%; --spark-y: 38%; --spark-dur: 9s;  --spark-delay: -2s; width: 5px; height: 5px; }
.game__sparks i:nth-child(5)  { --spark-x: 68%; --spark-y: 18%; --spark-dur: 12s; --spark-delay: -7s; }
.game__sparks i:nth-child(6)  { --spark-x: 82%; --spark-y: 42%; --spark-dur: 10s; --spark-delay: -4s; width: 3px; height: 3px; }
.game__sparks i:nth-child(7)  { --spark-x: 14%; --spark-y: 58%; --spark-dur: 14s; --spark-delay: -6s; }
.game__sparks i:nth-child(8)  { --spark-x: 47%; --spark-y: 52%; --spark-dur: 7s;  --spark-delay: -1.5s; }
.game__sparks i:nth-child(9)  { --spark-x: 73%; --spark-y: 56%; --spark-dur: 11s; --spark-delay: -8s; width: 3px; height: 3px; }
.game__sparks i:nth-child(10) { --spark-x: 91%; --spark-y: 30%; --spark-dur: 9s;  --spark-delay: -2.5s; }
.game__sparks i:nth-child(11) { --spark-x: 31%; --spark-y: 34%; --spark-dur: 15s; --spark-delay: -9s; }
.game__sparks i:nth-child(12) { --spark-x: 60%; --spark-y: 24%; --spark-dur: 8s;  --spark-delay: -4.5s; width: 5px; height: 5px; }
.game__sparks i:nth-child(13) { --spark-x: 3%;  --spark-y: 14%; --spark-dur: 12s; --spark-delay: -0.5s; width: 3px; height: 3px; }
.game__sparks i:nth-child(14) { --spark-x: 17%; --spark-y: 8%;  --spark-dur: 10s; --spark-delay: -6.5s; }
.game__sparks i:nth-child(15) { --spark-x: 27%; --spark-y: 50%; --spark-dur: 14s; --spark-delay: -2.2s; width: 5px; height: 5px; }
.game__sparks i:nth-child(16) { --spark-x: 43%; --spark-y: 6%;  --spark-dur: 9s;  --spark-delay: -10s; }
.game__sparks i:nth-child(17) { --spark-x: 51%; --spark-y: 16%; --spark-dur: 13s; --spark-delay: -3.8s; width: 3px; height: 3px; }
.game__sparks i:nth-child(18) { --spark-x: 64%; --spark-y: 44%; --spark-dur: 7s;  --spark-delay: -7.5s; }
.game__sparks i:nth-child(19) { --spark-x: 77%; --spark-y: 10%; --spark-dur: 11s; --spark-delay: -1.2s; width: 3px; height: 3px; }
.game__sparks i:nth-child(20) { --spark-x: 86%; --spark-y: 54%; --spark-dur: 15s; --spark-delay: -5.5s; width: 5px; height: 5px; }
.game__sparks i:nth-child(21) { --spark-x: 5%;  --spark-y: 40%; --spark-dur: 8s;  --spark-delay: -11s; }
.game__sparks i:nth-child(22) { --spark-x: 34%; --spark-y: 12%; --spark-dur: 12s; --spark-delay: -4.2s; width: 3px; height: 3px; }
.game__sparks i:nth-child(23) { --spark-x: 96%; --spark-y: 20%; --spark-dur: 10s; --spark-delay: -8.5s; }
.game__sparks i:nth-child(24) { --spark-x: 70%; --spark-y: 32%; --spark-dur: 14s; --spark-delay: -0.8s; width: 3px; height: 3px; }
@keyframes spark-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .25; }
  25%  { opacity: .85; }
  50%  { transform: translate3d(28px, -36px, 0) scale(1.15); opacity: .55; }
  75%  { opacity: .9; }
  100% { transform: translate3d(-18px, -72px, 0) scale(.85); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .game__sparks i { animation: none; opacity: .4; }
}
.game__scrim {   /* Busted only: the hero's scrim, so the lockup and the ring read over the crash */
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .377s var(--ease-expo); z-index: 2;
  background: linear-gradient(180deg, rgba(8, 8, 8, .382) 0%, rgba(8, 8, 8, 0) 21%, rgba(8, 8, 8, 0) 50%, rgba(8, 8, 8, .618) 100%);
}

/* the cluster: speed Ø · LCD · altitude Ø · timeline under, on the road band. Positions mirror GEO (design px). */
.telemetry {
  position: absolute; left: 50%; bottom: var(--edge); width: calc(var(--u) * 966); height: var(--f144);
  margin-left: calc(var(--u) * -483); pointer-events: none; z-index: 3;
}
.telemetry::before {   /* soft darkening under the cluster so orange ticks read over any plate */
  content: ""; position: absolute; inset: calc(var(--u) * -55) calc(var(--u) * -144); pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 8, 8, .55), rgba(8, 8, 8, 0));
}
.telemetry__ticks, .telemetry__bloom {
  position: absolute; left: calc(var(--u) * -34); top: calc(var(--u) * -34);
  width: calc(100% + var(--u) * 68); height: calc(100% + var(--u) * 68);
}
.telemetry__bloom { filter: blur(var(--f8)); mix-blend-mode: plus-lighter; opacity: .85; }
@supports not (mix-blend-mode: plus-lighter) { .telemetry__bloom { mix-blend-mode: screen; } }

/* center LCD strip — Niva cluster: nixie banks (clock · км/ч · distance), dark well for blue under-glow */
.tele-lcd {
  /* lift ~14·--u (~12–18px) so LCD clears the timeline dashes under the cluster */
  position: absolute; left: 50%; top: calc(var(--u) * -10); z-index: 2;
  width: calc(var(--u) * 168); height: calc(var(--u) * 84);
  margin-left: calc(var(--u) * -84); display: grid; grid-template-rows: 1fr 1fr 1fr; align-items: center;
  padding: calc(var(--u) * 4) calc(var(--u) * 8); box-sizing: border-box;
  background: linear-gradient(180deg, #12161c 0%, #080a0e 100%);
  border: 1px solid rgba(42, 109, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(238, 244, 248, .05),
    inset 0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 -12px 28px rgba(42, 109, 255, .08);
}
.tele-lcd__row {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 5); line-height: 1;
  border-bottom: 1px solid rgba(238, 244, 248, .1);
  min-height: 0; padding: 1px 0;
}
.tele-lcd__row:last-child { border-bottom: 0; }
.tele-lcd__t {
  font-family: var(--font-display); font-size: calc(var(--u) * 9); letter-spacing: var(--tr-label);
  color: var(--ink-3); text-transform: uppercase; align-self: center;
}
.tele-lcd .nixie { font-size: calc(var(--u) * 14); }
.tele-lcd__dist .nixie { font-size: calc(var(--u) * 12); }   /* room for longer meter counts */
.tele-lcd small {
  font-family: var(--font-sans); font-size: calc(var(--u) * 9); color: var(--ink-3); margin-left: 0;
  align-self: center;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.timeline__dist { display: none; }
.timeline__nodes { list-style: none; position: absolute; left: 0; top: calc(var(--u) * 96); }
.timeline__nodes li {
  position: absolute; top: 0; white-space: nowrap; line-height: 1; color: var(--ink-3);
  transition: color .377s var(--ease-expo);
}
.timeline__nodes [data-node="0"] { left: calc(var(--u) * 178); }
.timeline__nodes [data-node="1"] { left: calc(var(--u) * 381.3); transform: translateX(-50%); }
.timeline__nodes [data-node="2"] { left: calc(var(--u) * 584.7); transform: translateX(-50%); }
.timeline__nodes [data-node="3"] { left: calc(var(--u) * 788); transform: translateX(-100%); }
.timeline__nodes [data-state="past"] { color: var(--ink-2); }
.timeline__nodes [data-state="now"], .timeline__nodes [data-state="beat"] { color: var(--niva); }
.timeline__clock {
  position: absolute; left: calc(var(--u) * 178); width: var(--f610); bottom: 0;
  display: flex; justify-content: center; align-items: baseline; gap: var(--f8); white-space: nowrap;
}
.timeline__hint { font-size: var(--t-body); line-height: 1; color: var(--ink-2); }
.game:not([data-status="ready"]) .timeline__hint { display: none; }
.game[data-captain="1"] .timeline__hint { display: inline; color: var(--ink); }
.dots .colon { font-family: var(--font-display); font-weight: 300; font-variation-settings: normal; color: var(--ink-3); margin: 0 .08em; }
.busted__stats .nixie { font-size: var(--t-body); }
.busted__stats dd { display: inline-flex; align-items: center; gap: .25em; }

/* the phase callout: a lockup flying through 3D like the hero's, mirrored into the free sky at the upper right.
   hud.js writes --e (entering: 1 → 0), --o (leaving: 0 → 1), opacity and blur from world.phaseSteps. */
.callouts {
  position: absolute; right: var(--edge); top: calc(var(--edge) + var(--f55) + var(--f34));
  perspective: calc(var(--u) * 987); perspective-origin: 100% 0; pointer-events: none;
}
.callout {
  justify-items: end; transform-origin: 100% 50%; opacity: 0; visibility: hidden;
  transform: translate3d(calc(var(--e, 1) * 55 * var(--u)), calc(var(--e, 1) * -144 * var(--u)), calc(var(--e, 1) * 377 * var(--u)))
             rotateX(calc(var(--e, 1) * -34deg)) rotateY(calc(var(--e, 1) * -21deg))
             translate3d(calc(var(--o, 0) * 89 * var(--u)), calc(var(--o, 0) * -233 * var(--u)), calc(var(--o, 0) * -377 * var(--u)))
             rotateX(calc(var(--o, 0) * 34deg)) rotateY(calc(var(--o, 0) * 55deg));
}
.callout .lockup__sm { font-size: var(--t-body); letter-spacing: var(--tr-label); margin-bottom: var(--f8); }
.callout .lockup__lg { font-size: var(--t-title); margin-bottom: 0; }

.pause-note {
  position: absolute; left: 50%; top: 38.2%; display: grid; justify-items: center; gap: var(--f13); pointer-events: none;
  transform: translate(-50%, -50%) translateY(var(--in-y)); opacity: 0; filter: blur(var(--in-blur));
}
.pause-note__title {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: var(--t-display); line-height: 1; letter-spacing: var(--tr-wordmark); color: var(--ink-1);
}

/* Busted v2: the hero's layout — the lockup bottom left, the ring + disc in the right golden column, the summary
   under it. hud.js drives the entrance from the game's steps (the title flies in like hero B, the ring fills to
   distance / best, the summary staggers in); Restart is the START disc, enabled at RESTART_LOCK. */
.busted { position: absolute; inset: 0; visibility: hidden; pointer-events: none; perspective: calc(var(--u) * 987); perspective-origin: 0 100%; }
.busted__title {
  position: absolute; left: var(--edge); bottom: var(--edge); opacity: 0;
  max-width: calc(100vw - 2 * var(--edge));
  transform: translate3d(calc(var(--e, 1) * -55 * var(--u)), calc(var(--e, 1) * -377 * var(--u)), calc(var(--e, 1) * 377 * var(--u)))
             rotateX(calc(var(--e, 1) * -34deg)) rotateY(calc(var(--e, 1) * 21deg));
}
/* 4K / wide: giant nowrap lockup would clip — scale to viewport width */
.busted__title .lockup__lg {
  font-size: min(var(--t-giant), calc((100vw - 2 * var(--edge)) / 17));
}
.busted__ring .disc { pointer-events: auto; }
/* ring → 4 nixie stats → «Пока» + offer + CTA (pitch never overlaps the ring) */
.busted__stats {
  position: absolute; left: calc(80.9vw - var(--edge) / 2 - var(--u) * 233); width: calc(var(--u) * 466);
  top: calc(38.2% + var(--u) * 233); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--f21);
}
.busted__stats div { display: grid; gap: var(--f8); justify-items: center; }
.busted__stats dd { font-size: var(--t-body); white-space: nowrap; justify-content: center; }
.busted__pitch {
  position: absolute; left: calc(80.9vw - var(--edge) / 2 - var(--u) * 233); width: calc(var(--u) * 466);
  top: calc(38.2% + var(--u) * 340);
  display: grid; justify-items: center; gap: var(--f13); text-align: center;
  pointer-events: auto;
}
.busted__best { margin: 0; font-size: var(--t-small); color: var(--ink-3); }
.busted__best.is-new { color: var(--ink-1); }

/* local top-15 — centered LCD overlay (no bust-in translateY: transform breaks margin:auto center) */
.busted__board {
  position: absolute; inset: 0;
  width: min(calc(var(--u) * 420), calc(100% - 2 * var(--edge)));
  height: fit-content;
  max-height: min(72dvh, calc(100% - 2 * var(--edge)));
  margin: auto;
  z-index: 4;
  display: flex; flex-direction: column; gap: var(--f8);
  text-align: left;
  padding: var(--f13);
  overflow: hidden; /* title stays; table scrolls inside */
  background: rgba(8, 8, 8, .72);
  border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--ink-6);
  pointer-events: auto;
  opacity: 0;
  transition: opacity .377s var(--ease-expo);
}
.game[data-status="busted"] .busted__board { opacity: 1; }
.busted__board-title {
  margin: 0; flex-shrink: 0;
  text-align: center; color: var(--ink-2);
  font-family: var(--font-display);
  font-size: max(12px, var(--t-small));
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap; /* «Рекорды · Топ-15» не ломается / не «отваливает» */
  line-height: 1.2;
}
.busted__name { display: grid; gap: var(--f5); margin: 0; flex-shrink: 0; }
.busted__name > .caption { color: var(--ink-2); }
.busted__name-row { display: flex; gap: var(--f8); align-items: center; flex-wrap: wrap; }
.busted__input {
  flex: 1; min-width: 0; height: var(--f34); padding: 0 var(--f13);
  border: 0; border-radius: var(--r-btn);
  background: rgba(8, 8, 8, .618); color: var(--ink-1);
  font-family: var(--font-display); font-size: var(--t-small); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px var(--ink-5);
  outline: none;
}
.busted__input:focus { box-shadow: inset 0 0 0 1px var(--nixie); }
.busted__input::placeholder { color: var(--ink-4); }
.busted__name-err { margin: 0; color: var(--signal); min-height: 1.2em; }
.busted__name .hbtn { flex-shrink: 0; min-width: auto; height: var(--f34); padding: 0 var(--f13); }
.busted__name-change {
  flex-shrink: 0; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--t-small); color: var(--ink-3); text-decoration: underline;
  text-underline-offset: .2em;
}
.busted__name-change:hover { color: var(--ink-1); }
.busted__table {
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; min-height: 0;
  max-height: min(calc(var(--u) * 233), 42dvh); overflow-y: auto; overflow-x: hidden;
  font-family: var(--font-display); font-size: max(11px, calc(var(--u) * 12));
  color: var(--ink-2); background: rgba(8, 8, 8, .382);
  border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--ink-6);
}
.busted__row {
  display: grid; grid-template-columns: 1.5em 1fr auto; gap: var(--f8);
  align-items: baseline; padding: var(--f5) var(--f13);
  border-bottom: 1px solid var(--ink-6);
}
.busted__row:last-child { border-bottom: 0; }
.busted__row.is-you { color: var(--nixie); }
.busted__row--empty { display: block; padding: var(--f13); text-align: center; color: var(--ink-4); }
.busted__rank { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.busted__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.busted__how { font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.busted__row.is-you .busted__how { color: var(--nixie); }

.best-offer { margin: 0; width: 100%; }
.best-offer__link {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; text-decoration: none; pointer-events: auto;
  font-family: var(--font-sans); font-size: max(11px, calc(var(--u) * 12));
  font-weight: 400; line-height: 1.382; letter-spacing: 0;
  color: var(--ink-2); text-align: center;
  max-height: calc(1.382em * 2);
  transition: opacity .55s var(--ease-expo), color var(--dur-press) var(--ease-expo);
}
.best-offer__link:hover { color: var(--niva); }
.best-offer__link.is-fade { opacity: 0; }
.busted__go {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; pointer-events: auto;
  min-width: calc(var(--u) * 144); height: var(--f34); padding: 0 var(--f21);
}
[data-bust-in] { opacity: 0; }

/* status-driven visibility */
.game[data-status="paused"] .game__canvas { opacity: .382; }
.game[data-status="paused"] .pause-note {
  opacity: 1; filter: blur(0); transform: translate(-50%, -50%);
  transition: opacity .377s var(--ease-expo), filter .377s var(--ease-expo), transform .377s var(--ease-expo);
}
.game[data-status="busted"] .game__scrim { opacity: 1; }
.game[data-status="busted"] .telemetry { opacity: 0; filter: blur(var(--f13)); transition-duration: .377s; }
.game[data-status="busted"] .busted { visibility: visible; }
.game:not([data-status="busted"]) .busted {   /* Restart: everything leaves in 233 ms */
  opacity: 0; filter: blur(var(--f8));
  transition: opacity .233s var(--ease-expo), filter .233s var(--ease-expo), visibility 0s .233s;
}

/* ─────────── stage 9 · phones ───────────
   Touch: key prompts swap for touch prompts; no double-tap zoom, no callouts. Both phone ranges: the notch and the
   home indicator are kept clear, and the header keeps thumb-sized targets. Portrait re-composes each screen; short
   landscape keeps the desktop composition, scaled by height (tokens.css). */
.t { display: none; }
@media (hover: none) and (pointer: coarse) {
  .k { display: none; }
  .t { display: inline; }
  button { touch-action: manipulation; }
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; position: fixed; inset: 0; width: 100%; }
}
@media (max-width: 767px) and (orientation: portrait), (max-height: 520px) and (orientation: landscape) {
  .hero__head, .game__head {
    inset: max(var(--edge), env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right)) auto max(var(--edge), env(safe-area-inset-left));
  }
  .tile { width: max(40px, var(--f55)); height: max(40px, var(--f55)); border-radius: max(10px, var(--r-panel)); }
  .tile--ave { width: auto; min-width: 0; height: auto; padding: 0; background: transparent; box-shadow: none; }
  .tile__logo { width: max(24px, var(--f34)); height: max(24px, var(--f34)); }
  .tile--ave .tile__logo { width: auto; height: max(40px, calc(var(--f55) * 1.15)); }
  .hbtn { height: max(34px, var(--f34)); padding: 0 max(14px, var(--f21)); }
  .titles, .busted__title { left: max(var(--edge), env(safe-area-inset-left)); bottom: max(var(--edge), env(safe-area-inset-bottom)); }
  .callouts { right: max(var(--edge), env(safe-area-inset-right)); top: calc(max(var(--edge), env(safe-area-inset-top)) + max(40px, var(--f55)) + max(13px, var(--f34))); }
}

/* short landscape: the instruments and the Busted summary get their own, larger design pixel so the text floors fit */
@media (max-height: 520px) and (orientation: landscape) {
  .telemetry {
    --u: calc(100dvh / 700);
    width: calc(var(--u) * 966); height: calc(var(--u) * 144); margin-left: calc(var(--u) * -483);
    bottom: max(calc(var(--u) * 16), env(safe-area-inset-bottom));
  }
  .tele-lcd { width: calc(var(--u) * 168); height: calc(var(--u) * 80); margin-left: calc(var(--u) * -84); }
  .timeline__clock { width: calc(var(--u) * 610); }
  .busted__stats, .busted__pitch, .busted__board { --u: calc(100dvh / 600); }
  .busted__stats { left: calc(80.9vw - var(--edge) / 2 - var(--u) * 233); width: calc(var(--u) * 466); top: calc(38.2% + var(--u) * 210); }
  .busted__pitch { left: calc(80.9vw - var(--edge) / 2 - var(--u) * 233); width: calc(var(--u) * 466); top: calc(38.2% + var(--u) * 310); }
  .busted__board { max-height: min(78dvh, calc(100% - 2 * var(--edge))); }
}

@media (max-width: 767px) and (orientation: portrait) {
  /* the clip: centred, 30 % smaller (the top 70 % of the screen, cover-fit), melting into black at its foot through a
     gradient and a blur; lib/wipe.js reads this box and the fade so the launch starts exactly on it */
  .hero__video, .hero__still { inset: 0 0 auto 0; height: 70%; object-position: 50% 50%; }
  .hero__fade {
    display: block; position: absolute; left: 0; right: 0; top: 42%; height: 28%; pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0), var(--void));
    -webkit-backdrop-filter: blur(var(--f13)); backdrop-filter: blur(var(--f13));
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%);
  }

  /* the ring: centred, a little smaller (its own design pixel), START inside */
  .hero .ring {
    --u: calc(100vw / 520);
    left: calc(50% - var(--u) * 305); top: calc(42% - var(--u) * 305);
  }
  .hero .ring .disc { width: calc(var(--u) * 144); height: calc(var(--u) * 144); }

  /* the lockups: bottom left, sized to the width (ROADSTER fits), the ghost year off */
  .titles { --u: calc(100vw / 800); perspective: calc(var(--u) * 987); }
  .titles .lockup__sm { font-size: calc(var(--u) * 55); margin-bottom: calc(var(--u) * 13); }
  .titles .lockup__lg { font-size: calc(var(--u) * 144); }
  .lockup__ghost { display: none; }

  /* the telemetry: Niva twin dials at the sides, LCD between them, mission timeline across the width under.
     Positions mirror GEO.mob (units: --tu, 1/398 of the box) */
  .telemetry {
    --tu: calc((100vw - 2 * var(--edge)) / 398);
    left: var(--edge); margin-left: 0; width: calc(var(--tu) * 398); height: calc(var(--tu) * 226);
    bottom: calc(var(--edge) + env(safe-area-inset-bottom));
  }
  .telemetry::before { inset: calc(var(--tu) * -34) calc(var(--tu) * -21); }
  .telemetry__ticks, .telemetry__bloom {
    left: calc(var(--tu) * -34); top: calc(var(--tu) * -34);
    width: calc(100% + var(--tu) * 68); height: calc(100% + var(--tu) * 68);
  }
  .tele-lcd {
    left: 50%; top: calc(var(--tu) * -8); width: calc(var(--tu) * 132); height: calc(var(--tu) * 96);
    margin-left: calc(var(--tu) * -66); padding: calc(var(--tu) * 4) calc(var(--tu) * 6);
  }
  .tele-lcd .nixie { font-size: max(11px, calc(var(--tu) * 12)); }
  .tele-lcd__dist .nixie { font-size: max(10px, calc(var(--tu) * 11)); }
  .tele-lcd small, .tele-lcd__t { font-size: max(8px, calc(var(--tu) * 8)); }
  .timeline__nodes { top: calc(var(--tu) * 182); }
  .timeline__nodes [data-node="0"] { left: 0; }
  .timeline__nodes [data-node="1"] { left: calc(var(--tu) * 132.7); }
  .timeline__nodes [data-node="2"] { left: calc(var(--tu) * 265.3); }
  .timeline__nodes [data-node="3"] { left: calc(var(--tu) * 398); }
  .timeline__clock {
    left: 0; width: 100%; bottom: auto; top: calc(var(--tu) * 118);
    flex-direction: column; align-items: center; gap: calc(var(--tu) * 5);
  }
  .timeline__hint { margin: 0; font-size: var(--t-small); white-space: normal; text-align: center; line-height: 1.382; }

  /* the callout: the same flight, smaller */
  .callouts { --u: calc(100vw / 640); perspective: calc(var(--u) * 987); }
  .callout .lockup__lg { font-size: calc(var(--u) * 89); }

  .pause-note__title { font-size: var(--f34); }

  /* Busted: one column (iPhone 15 Pro Max). Absolute % tops stacked and slid over each other. */
  .busted {
    perspective: none;
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
    padding: calc(env(safe-area-inset-top) + 72px) var(--edge) calc(env(safe-area-inset-bottom) + 12px);
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .busted__ring {
    --u: calc(100vw / 720);
    position: relative; left: auto; top: auto;
    width: calc(var(--u) * 280); height: calc(var(--u) * 280);
    flex: 0 0 auto;
  }
  .busted__ring .ring__tilt {
    width: calc(var(--u) * 320); height: calc(var(--u) * 320);
    margin: calc(var(--u) * -160) 0 0 calc(var(--u) * -160);
  }
  .busted__ring .disc { width: calc(var(--u) * 108); height: calc(var(--u) * 108); font-size: 13px; }
  .busted__board {
    position: relative; inset: auto; margin: 0;
    width: 100%; max-width: 420px;
    max-height: none; flex: 0 1 auto;
    opacity: 1;
  }
  .busted__board-title { font-size: 12px; letter-spacing: .06em; }
  .busted__name-row { flex-wrap: wrap; }
  .busted__input { font-size: 16px; } /* iOS zooms the page if input font < 16px */
  .busted__name-change { white-space: nowrap; font-size: 12px; }
  .busted__table { max-height: 28dvh; }
  .busted__stats {
    position: relative; left: auto; top: auto;
    width: 100%; max-width: 420px;
    grid-template-columns: repeat(2, 1fr); row-gap: 8px;
    flex: 0 0 auto;
  }
  .busted__stats .nixie { font-size: 16px; }
  .busted__pitch {
    position: relative; left: auto; top: auto;
    width: 100%; max-width: 420px;
    gap: 8px; flex: 0 0 auto;
  }
  .busted__title {
    --u: calc(100vw / 900);
    position: relative; left: auto; bottom: auto; top: auto;
    order: 8;
    width: 100%; max-width: 100%;
    text-align: center;
    opacity: 1;
    transform: none;
    margin-top: 4px;
  }
  .busted__title .lockup__lg {
    font-size: clamp(22px, 6.2vw, 36px);
    margin-bottom: 0;
    white-space: normal; line-height: 1.05;
  }
  .best-offer__link {
    -webkit-line-clamp: 2; line-clamp: 2; max-height: calc(1.382em * 2);
    font-size: 12px;
  }
}

/* First-visit cookie bar: white card, gray copy, red ПРИНЯТЬ. No Metrika mention. */
.cookie {
  position: fixed; z-index: 40;
  left: auto;
  right: max(var(--edge), env(safe-area-inset-right));
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: min(640px, calc(100vw - 2 * var(--edge)));
  padding: 22px 44px 20px 24px;
  background: #fff;
  color: #6b6b6b;
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  pointer-events: auto;
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; max-width: 42em; }
.cookie a { color: #6b6b6b; text-decoration: underline; text-underline-offset: 3px; }
.cookie__accept {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 12px 26px;
  background: #e30613; color: #fff;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; line-height: 1; text-transform: uppercase;
}
.cookie__accept:hover { background: #c50510; }
.cookie__close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; padding: 0;
  color: #8d8d8d; font-size: 22px; font-weight: 300; line-height: 1;
}
.cookie__close:hover { color: #444; }
.site-legal {
  position: absolute; z-index: 5;
  left: max(var(--edge), env(safe-area-inset-left));
  right: calc(min(640px, calc(100vw - 2 * var(--edge))) + max(var(--edge), env(safe-area-inset-right)) + 12px);
  bottom: max(8px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px 14px;
  margin: 0; pointer-events: auto; white-space: nowrap;
  font-family: var(--font-sans); font-size: 11px; line-height: 1.3;
  letter-spacing: .01em; color: rgba(238, 244, 248, .72);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
}
.site-legal a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.site-legal a:hover { color: rgba(238, 244, 248, .85); }
[data-screen="game"] .site-legal { visibility: hidden; }
.busted__consent {
  display: flex; gap: var(--f8); align-items: flex-start;
  margin: 0; cursor: pointer;
  font-size: max(11px, var(--t-small)); color: var(--ink-3); line-height: 1.4;
}
.busted__consent input { margin-top: .2em; accent-color: var(--nixie); flex: 0 0 auto; }
.busted__consent a { color: var(--ink-2); pointer-events: auto; }
.busted__legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--f8) var(--f13);
  margin: var(--f8) 0 0; pointer-events: auto;
}
.busted__legal a, .busted__legal button {
  color: var(--ink-3); font: inherit; font-size: max(11px, var(--t-small));
  text-decoration: underline; text-underline-offset: .2em;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.busted__legal a:hover, .busted__legal button:hover { color: var(--ink-1); }
@media (max-width: 767px) {
  .cookie {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    width: auto;
  }
  .site-legal {
    left: 8px; right: 8px; justify-content: center;
    bottom: max(6px, env(safe-area-inset-bottom));
  }
  .hero__btns { flex-wrap: wrap; justify-content: flex-end; }
}

