/* MEGASPEED · THE RUN. Tokens, type and the HUD come from version B; the film stage,
   the docks and the static page are this version's own. */
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 400 900; font-display: optional; src: url(assets/fonts/exo2-latin.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 400 900; font-display: optional; src: url(assets/fonts/exo2-italic-latin.woff2) format('woff2'); }
:root {
  --void: #000302; --deep: #03170D; --trace: #39FF14; --trace-dim: #0E5A1E; --mint: #B6FFD0;
  --cyan: #19E3C0; --chrome: #D9DEE3; --steel: #7C8791; --white: #FFFFFF; --ember: #FF9D2E;
  --glass: rgba(10, 36, 22, .6); --hud: #2BD95A;
  --display: 'Exo 2', 'Trebuchet MS', sans-serif;
  --hud-h: 52px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --chrome-fill: linear-gradient(176deg, #FFFFFF 0%, #D9DEE3 38%, #7C8791 52%, #E9EDF0 64%, #B9C1C8 100%);
  --dock-l: max(22px, 3.4vw);
  --dock-b: calc(var(--hud-h) + var(--safe-b) + 26px);
  view-transition-name: none; /* the film canvas never freezes inside a view transition */
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--chrome); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); font: 400 16px/1.5 var(--display); overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---- film mode: no page scroll; the wheel, the finger and the keys are the throttle ---- */
.film, .film body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.film body { touch-action: none; }
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--void); pointer-events: none; }
.stage picture, .stage .stage-poster, .stage .stage-video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.stage-poster.is-gone { visibility: hidden; }
.stage[data-mode] .stage-video { visibility: hidden; }
.stage[data-mode="gpu"] #film2d, .stage:not([data-mode="gpu"]) #filmgpu { visibility: hidden; }
.stage-shake { transform-origin: 50% 47%; }
.flash { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 47%, #FFFFFF 0%, #F2FFF6 30%, rgba(182, 255, 208, .7) 60%, rgba(182, 255, 208, 0) 90%); }
.static .stage { display: none; }

/* ---- HUD: lines at the viewport edges ---- */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; font-weight: 600; font-style: italic; }
.hud-line { position: absolute; left: 10px; right: 10px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 217, 90, .55) 12%, rgba(43, 217, 90, .55) 88%, transparent); }
.hud-line-top { top: calc(var(--hud-h) + var(--safe-t)); animation: breathe 3.6s ease-in-out infinite; }
.hud-line-bottom { bottom: calc(var(--hud-h) + var(--safe-b)); transition: opacity .4s; }
.hud-tl { position: absolute; top: calc(9px + var(--safe-t)); left: 12px; display: flex; align-items: center; gap: 10px; }
.rail { display: flex; gap: 4px; pointer-events: auto; }
.rail-btn, .surge-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; text-decoration: none; cursor: pointer;
  background: rgba(3, 23, 13, .78); border: 1px solid rgba(43, 217, 90, .55); color: var(--steel); letter-spacing: .08em; font-size: 12px; font-style: italic; font-weight: 600;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.rail-btn b { font-weight: 900; color: var(--mint); font-size: 13px; }
.rail-btn span { display: none; }
.rail-btn.is-on { border-color: var(--trace); color: var(--chrome); background: rgba(14, 90, 30, .62); }
.rail-btn.is-on span { display: inline; }
.rail-btn:hover, .surge-btn:hover { border-color: var(--trace); color: var(--white); }
.surge-btn { pointer-events: auto; color: var(--mint); border-color: var(--hud); }
.surge-btn i { width: 14px; height: 10px; background: var(--trace); clip-path: polygon(0 0, 45% 50%, 0 100%, 20% 100%, 65% 50%, 20% 0, 55% 0, 100% 50%, 55% 100%, 75% 100%, 100% 60%, 100% 40%, 75% 0); }
.surge-btn.is-firing { border-color: var(--ember); color: var(--white); }
.demo-tag { position: absolute; top: calc(17px + var(--safe-t)); left: 50%; translate: -50% 0; margin: 0; pointer-events: none;
  padding: 3px 10px; font-size: 11px; line-height: 1.4; letter-spacing: .12em; color: var(--void); background: var(--ember); font-style: normal; font-weight: 600; }
.demo-tag::before { content: 'DEMO DATA'; }
.hud-vel { position: absolute; top: calc(8px + var(--safe-t)); right: 14px; text-align: right; line-height: 1.15; pointer-events: auto;
  text-shadow: 0 0 6px rgba(0, 3, 2, .95), 0 0 2px rgba(0, 3, 2, .95); }
.hud-vel-main { display: block; color: var(--mint); font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.hud-vel-main b { font-weight: 900; font-variant-numeric: tabular-nums; }
.hud-vel-main i { font-style: italic; margin-left: 5px; color: var(--hud); font-size: 12px; }
.hud-vel-sub { display: block; color: var(--steel); font-size: 12px; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prelaunch .hud-vel-main, .loading .hud-vel-main { font-size: 12px; letter-spacing: .1em; }
.horizon { position: absolute; top: 50%; width: 30px; height: 2px; }
.horizon-l { left: 8px; } .horizon-r { right: 8px; }
.horizon i { position: absolute; inset: 0; background: var(--hud); rotate: var(--pitch, 0deg); transition: rotate 1.2s; }
.horizon::before { content: ''; position: absolute; top: -10px; bottom: -10px; width: 1px; background: rgba(43, 217, 90, .4); animation: breathe 2.4s ease-in-out infinite; }
.horizon-l::before { left: 0; } .horizon-r::before { right: 0; }
.hud-bottom { position: absolute; left: 12px; right: 12px; bottom: calc(8px + var(--safe-b)); height: 38px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; transition: opacity .4s, visibility .4s; }
.hud-bottom .coords-mini { flex: 0 1 520px; min-width: 0; }
.hud.in-end .hud-bottom, .hud.in-end .hud-line-bottom { opacity: 0; visibility: hidden; }
.hud.dim > * { opacity: .32; transition: opacity .15s; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---- coordinates (contract address) and BUY, from B, plus a slow light sweep ---- */
.coords { pointer-events: auto; min-width: 0; position: relative; }
.coords-btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 12px; cursor: pointer; text-align: left; overflow: hidden;
  background: rgba(3, 23, 13, .86); border: 1px solid rgba(43, 217, 90, .7); color: var(--chrome); font-weight: 600; }
.coords-btn:hover { border-color: var(--trace); }
.coords-k { flex: none; font-size: 11px; letter-spacing: .12em; color: var(--hud); font-style: italic; }
.coords-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.coords-ok { flex: none; margin-left: auto; font-size: 11px; letter-spacing: .1em; color: var(--void); background: var(--trace); padding: 2px 6px; display: none; }
.coords-btn.copied .coords-ok { display: inline; }
.coords-btn.copied { border-color: var(--trace); box-shadow: 0 0 0 1px var(--trace), 0 0 18px rgba(57, 255, 20, .45); }
.coords-locked { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 12px; color: #A3ADB6;
  border: 1px dashed rgba(124, 135, 145, .7); background: rgba(0, 3, 2, .88); font-size: 12px; letter-spacing: .1em; font-style: italic; font-weight: 600; white-space: nowrap; }
.coords-btn::after, .coords-locked::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(182, 255, 208, .14), transparent); animation: sweep 5.5s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { translate: 0 0; } 100% { translate: 480% 0; } }
.lock { flex: none; width: 12px; height: 13px; position: relative; }
.lock::before { content: ''; position: absolute; left: 2px; top: 0; width: 8px; height: 7px; border: 2px solid var(--steel); border-bottom: 0; border-radius: 4px 4px 0 0; }
.lock::after { content: ''; position: absolute; left: 0; bottom: 0; width: 12px; height: 7px; background: var(--steel); }
.buy-slot { pointer-events: auto; flex: none; }
.buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 22px; text-decoration: none; white-space: nowrap;
  font-weight: 900; font-style: italic; letter-spacing: .06em; color: var(--void); background: var(--trace);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.buy:hover { background: var(--mint); }
.buy.inert { background: rgba(0, 3, 2, .88); color: #A3ADB6; border: 1px solid rgba(124, 135, 145, .6); font-weight: 600; cursor: default; clip-path: none; }

/* ---- docks: chamfered dark glass, a trace border, corner brackets (B's gate look) ---- */
.dock { --ch: 18px; }
.film .dock { position: fixed; z-index: 10; left: var(--dock-l); bottom: var(--dock-b); width: min(540px, 38vw);
  padding: 22px 24px 20px; visibility: hidden; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.film .dock.is-on { visibility: visible; pointer-events: auto; }
.dock > :not(.dock-frame) { position: relative; }
.dock-frame { position: absolute; inset: 0; pointer-events: none; }
.dock-frame::before, .dock-frame::after { content: ''; position: absolute; clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch)); }
.dock-frame::before { inset: 0; background: linear-gradient(135deg, var(--trace), rgba(43, 217, 90, .3) 38%, rgba(25, 227, 192, .65) 100%); }
.dock-frame::after { inset: 1.5px; background: linear-gradient(160deg, rgba(6, 26, 15, .9), rgba(2, 16, 9, .86) 55%, rgba(0, 3, 2, .9)); }
.bk { position: absolute; width: 16px; height: 16px; border: 0 solid var(--mint); }
.bk-tl { top: -6px; left: -6px; border-width: 2px 0 0 2px; } .bk-tr { top: -6px; right: -6px; border-width: 2px 2px 0 0; }
.bk-bl { bottom: -6px; left: -6px; border-width: 0 0 2px 2px; } .bk-br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }
.dock-no { margin: 0 0 12px; font-weight: 600; font-style: italic; font-size: 12px; line-height: 1.3; letter-spacing: .14em; color: var(--hud); }

/* 01 · the hero: no box, the wordmark low over the road (the faces own the top third) */
.film .dock-hero { left: 0; right: 0; margin: 0 auto; width: min(64vw, 1000px); padding: 0; text-align: center; bottom: calc(var(--hud-h) + var(--safe-b) + 22px); }
.dock-hero::before { content: ''; position: absolute; inset: -14% -12% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 3, 2, .72), rgba(0, 3, 2, .45) 55%, rgba(0, 3, 2, 0)); }
.kicker { margin: 0 0 4px; font-size: 13px; font-weight: 600; font-style: italic; letter-spacing: .16em; color: var(--mint); text-shadow: 0 0 8px var(--void); }
.wordmark-h { margin: 0; }
.wordmark { width: 100%; height: auto; aspect-ratio: 1800 / 325; }
.tagline { margin: 2px 0 0; font: 900 italic clamp(32px, 4.2vw, 60px)/1.02 var(--display); padding: 0 .12em .06em;
  background: var(--chrome-fill); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(0, 3, 2, .9)); }
.subline { margin: 4px 0 0; font-weight: 600; font-style: italic; color: var(--mint); font-size: clamp(15px, 1.3vw, 19px); letter-spacing: .03em; text-shadow: 0 0 10px #000302, 0 0 3px #000302; }
.hint { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 3px 10px; font-size: 11px; letter-spacing: .18em; font-style: italic; font-weight: 600;
  color: var(--chrome); background: rgba(0, 3, 2, .66); border: 1px solid rgba(43, 217, 90, .45); transition: opacity .5s, visibility .5s; }
.hint i { width: 8px; height: 12px; border: 1.5px solid var(--mint); border-radius: 4px; position: relative; }
.hint i::after { content: ''; position: absolute; left: 1.5px; top: 2px; width: 2px; height: 3px; background: var(--mint); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { translate: 0 4px; opacity: .2; } }
.has-input .hint { opacity: 0; visibility: hidden; }
.film .dock-hero > * { opacity: 0; }
.film.is-intro .dock-hero > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.film.is-intro .dock-hero > :nth-child(2) { animation-delay: .08s; }
.film.is-intro .dock-hero > :nth-child(3) { animation-delay: .22s; }
.film.is-intro .dock-hero > :nth-child(4) { animation-delay: .32s; }
.film.is-intro .dock-hero > :nth-child(5) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.sr-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; rotate: none; }

/* 02 · what it is, then the instruments */
.what-line { margin: 0; padding: .4em 0; font: 900 italic clamp(21px, 2.1vw, 32px)/1.12 var(--display); color: var(--chrome); }
.what-line + .what-line { border-top: 1px solid rgba(43, 217, 90, .35); }
.what-2 { color: var(--mint); }
.ro-vel { margin: 0; line-height: .95; color: var(--mint); font-style: italic; }
.ro-vel b { font-weight: 900; font-size: clamp(48px, 5.4vw, 84px); font-variant-numeric: tabular-nums; }
.ro-unit { margin-left: .3em; font-weight: 600; font-size: clamp(16px, 1.5vw, 22px); color: var(--hud); }
.prelaunch .ro-unit, .loading .ro-unit, .prelaunch .ro-vel, .loading .ro-vel { display: none; }
.ro-sub { margin: 6px 0 12px; color: #A3ADB6; font-size: 14px; font-variant-numeric: tabular-nums; }
.scale { margin-bottom: 14px; }
.scale-track { position: relative; height: 6px; background: rgba(14, 90, 30, .55); overflow: hidden; }
.scale-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--trace-dim), var(--trace)); transform-origin: 0 50%; transform: scaleX(var(--s01, 0)); transition: transform 1.2s; }
.scale-mark { position: absolute; inset: 0; transform: translateX(calc(var(--s01, 0) * (100% - 3px))); transition: transform 1.2s; }
.scale-mark::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--white); }
.scale-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #A3ADB6; letter-spacing: .06em; font-style: italic; }
.ro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 12px; background: rgba(43, 217, 90, .3); }
.ro-cell { background: rgba(0, 3, 2, .78); padding: 8px 10px; }
.ro-cell dt { font-weight: 600; font-style: italic; font-size: 12px; letter-spacing: .1em; color: var(--hud); }
.ro-cell dt small { display: block; font-style: normal; font-weight: 400; letter-spacing: .02em; color: #A3ADB6; font-size: 12px; }
.ro-cell dd { margin: 4px 0 0; font: 900 italic clamp(18px, 1.8vw, 26px)/1.1 var(--display); color: var(--chrome); font-variant-numeric: tabular-nums; }
.ro-buy dd { color: var(--trace); } .ro-sell dd { color: var(--white); }
.ro-status { margin: 0; color: #A3ADB6; font-size: 13px; }

/* 03 · how to buy: a gear indicator and steps that land on fully formed vehicles */
.dock-steps { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; }
.dock-steps .dock-no { grid-column: 1 / -1; }
.gear { grid-column: 2; grid-row: 2 / span 2; align-self: start; display: grid; justify-items: center; gap: 2px; }
.gear-k { font-size: 11px; letter-spacing: .16em; color: var(--hud); font-weight: 600; font-style: italic; }
.gear-win { display: block; width: 64px; height: 76px; overflow: hidden; border: 1px solid var(--hud); background: rgba(0, 3, 2, .8); }
.gear-drum { display: block; transform: translateY(calc(var(--gear, 0) * -76px)); transition: transform .26s cubic-bezier(.7, 0, .2, 1.25); }
.gear-drum i { display: block; height: 76px; font: 900 italic 62px/76px var(--display); text-align: center; color: var(--trace); }
.steps { grid-column: 1; margin: 0; padding: 0 0 0 1.6em; display: grid; gap: 8px; counter-reset: s; }
.step { font-weight: 600; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.3; color: var(--chrome); }
.step::marker { color: var(--trace); font-weight: 900; font-style: italic; }
.film .step { visibility: hidden; opacity: 0; transform: translateX(-14px); transition: opacity .25s, transform .25s, color .25s; }
.film .step.is-in { visibility: visible; opacity: .58; transform: none; }
.film .step.is-now { opacity: 1; color: var(--white); }
.step-hold { grid-column: 1; margin: 12px 0 0; font: 900 italic clamp(22px, 2vw, 30px)/1.1 var(--display); color: var(--mint); }
.film .step-hold { visibility: hidden; opacity: 0; transition: opacity .3s; }
.film .step-hold.is-in { visibility: visible; opacity: 1; }

/* 03 · THE HALL: the instruments power on with the racks. --pw (0..1, the gold-lit share of
   the frame on screen, set by docks.js from the film position) passes each part's --k in
   turn; without the film (static page, reduced motion) --pw stays 1 and all are on. */
.dock-gauges { --pw: 1; }
.dock-gauges [style*="--k"] { --on: clamp(0, (var(--pw) * 1.12 - var(--k)) * 9, 1); opacity: calc(.6 + .4 * var(--on)); }
.dock-gauges .scale-track { box-shadow: 0 0 calc(var(--on, 1) * 10px) rgba(255, 196, 92, calc(var(--on, 1) * .55)); }
.dock-gauges .ro-grid { background: rgba(43, 217, 90, calc(.12 + .18 * var(--pw))); }
.ro-facts { margin: 0 0 8px; }
/* 04 · THE MACHINE: one line alone, on the flare */
.film .dock-ticker { padding: 0; width: min(48vw, 680px); bottom: calc(var(--dock-b) + 6vh); }
.ticker { margin: 0; font: 900 italic clamp(34px, 4.6vw, 76px)/1.02 var(--display); padding: 0 .1em .06em;
  background: var(--chrome-fill); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 14px rgba(0, 3, 2, .85)); }

/* 06 · the meme kit, the climb, the end pose */
.memes-hint { margin: -4px 0 10px; color: var(--mint); font-style: italic; font-weight: 600; font-size: 14px; }
.memes { list-style: none; margin: 0 -24px 0 0; padding: 4px 24px 8px 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; touch-action: pan-x; scrollbar-width: thin; scrollbar-color: var(--hud) transparent; }
.memes li { flex: none; scroll-snap-align: start; }
/* the static page scrolls natively: a vertical flick that starts on the strip must move the page */
.static .memes { touch-action: pan-x pan-y; }
.meme { display: block; padding: 0; border: 1px solid rgba(43, 217, 90, .55); background: var(--void); cursor: pointer; }
.meme img { width: 150px; height: auto; aspect-ratio: 480 / 269; object-fit: cover; }
.meme-sq img { width: 84px; aspect-ratio: 1; }
.meme:hover, .meme:focus-visible { border-color: var(--trace); }
.film .dock-climb { padding: 0; width: auto; bottom: calc(var(--dock-b) + 4vh); }
.climb { margin: 0; font: 900 italic clamp(46px, 7.2vw, 120px)/1 var(--display); padding: 0 .1em .06em;
  background: var(--chrome-fill); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 14px rgba(0, 3, 2, .85)); }
.film .dock-end { width: min(500px, 36vw); }
.coords-end .coords-btn, .coords-end .coords-locked { min-height: 52px; }
.coords-end .coords-v { font-size: clamp(15px, 1.3vw, 19px); }
.end-actions { display: flex; margin: 10px 0 12px; }
.end-actions .buy { min-height: 46px; padding: 0 28px; font-size: 18px; }
.links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.links a, .links span { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; font-style: italic; letter-spacing: .06em; font-size: 14px; }
.links a { color: var(--mint); text-decoration: none; border-bottom: 1px solid var(--hud); }
.links span { color: #A3ADB6; }
.facts { margin: 0 0 10px; color: #A3ADB6; font-size: 12px; letter-spacing: .1em; font-style: italic; }
.disclaimer p { margin: 0; color: #A3ADB6; font-size: 12px; line-height: 1.5; }

/* ---- meme viewer: the tile morphs into it (view transition), save link included ---- */
.viewer { padding: 0; border: 1px solid var(--hud); background: var(--void); color: var(--chrome); max-width: min(94vw, 1200px); width: 100%; }
.viewer::backdrop { background: rgba(0, 3, 2, .9); }
.viewer img { width: 100%; height: auto; max-height: 78svh; object-fit: contain; aspect-ratio: 1600 / 894; }
.viewer.is-sq img { aspect-ratio: 1; max-width: min(78svh, 100%); margin: 0 auto; }
.viewer-bar { display: flex; justify-content: space-between; gap: 10px; padding: 8px; }
.viewer-save, .viewer-close { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-weight: 600; font-style: italic; letter-spacing: .06em;
  border: 1px solid var(--hud); background: transparent; color: var(--mint); text-decoration: none; cursor: pointer; }
.viewer-save { background: var(--trace); color: var(--void); border-color: var(--trace); }

/* view transitions (vercel-react-view-transitions css recipes, plain browser API) */
::view-transition { pointer-events: none; }
::view-transition-group(meme-hero) { animation-duration: 400ms; animation-timing-function: cubic-bezier(.3, 0, .1, 1); }
::view-transition-image-pair(meme-hero) { animation-name: via-blur; animation-duration: 400ms; }
@keyframes via-blur { 30% { filter: blur(3px); } }
::view-transition-old(dock-swap) { animation: 150ms ease-in both vt-fade reverse; }
::view-transition-new(dock-swap) { animation: 210ms ease-out 150ms both vt-fade, 400ms cubic-bezier(.2, .8, .2, 1) both vt-rise; }
::view-transition-group(coords-strip) { animation-duration: 300ms; }
::view-transition-new(coords-strip) { animation: 300ms ease-out both vt-flare; }
@keyframes vt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-rise { from { translate: 0 18px; } to { translate: 0 0; } }
@keyframes vt-flare { from { filter: brightness(2.2) saturate(1.6); } to { filter: none; } }
/* the meme thumbnails load only when the film nears chapter 04 (first-play budget) */
.film .dock-memes:not(.is-near) .memes img { display: none; }

/* ---- desktop sizes ---- */
@media (min-width: 1100px) { .rail-btn span { display: inline; } .rail-btn:not(.is-on) span { display: none; } }
@media (max-height: 760px) and (min-width: 721px) {
  .film .dock { padding: 16px 20px 14px; }
  .ro-vel b { font-size: clamp(40px, 4.6vw, 64px); }
  .ro-cell dt small, .ro-status { display: none; }
  .scale { margin-bottom: 10px; }
  .film .dock-hero { width: min(58vw, 900px); }
}

/* ---- phones: docks are a bottom panel, never taller than 42% of the screen ---- */
@media (max-width: 720px) {
  :root { --hud-h: 54px; }
  .film .dock { left: 10px; right: 10px; width: auto; bottom: calc(var(--hud-h) + var(--safe-b) + 10px); max-height: 42svh; padding: 16px 16px 14px; }
  .film .dock-hero { width: auto; left: 12px; right: 12px; bottom: calc(var(--hud-h) + var(--safe-b) + 12px); }
  .kicker { font-size: 11px; letter-spacing: .12em; }
  .tagline { font-size: 34px; }
  .subline { font-size: 15px; }
  /* Six chips and tools keep 6 px clear of the unchanged 108 px velocity readout. */
  .hud-tl { left: 8px; gap: 4px; }
  .rail { gap: 4px; }
  .rail-btn { padding: 0 3px; min-width: clamp(28px, calc((100vw - 190px) / 6), 32px); min-height: 40px; justify-content: center; }
  .hud-tl .surge-btn { display: none; }
  .surge-btn .surge-label { display: none; }
  .rail-btn span, .rail-btn.is-on span { display: none; }
  .surge-btn { padding: 0 8px; gap: 5px; min-width: 36px; justify-content: center; }
  .hud-vel { top: calc(5px + var(--safe-t)); right: 8px; max-width: 108px; padding: 3px 7px 4px; }
  .hud-vel-main, .hud-vel-sub { white-space: normal; }
  .hud-vel-main { font-size: 13px; }
  .prelaunch .hud-vel-main, .loading .hud-vel-main { font-size: 11px; letter-spacing: .06em; }
  .hud-vel-sub { font-size: 11px; }
  .demo-tag { top: calc(var(--hud-h) + var(--safe-t) + 6px); left: auto; right: 8px; translate: none; padding: 1px 6px; font-size: 10px; }
  .hud-bottom { left: 8px; right: 8px; bottom: calc(6px + var(--safe-b)); height: 44px; }
  .hud-bottom .buy, .hud-bottom .coords-btn, .hud-bottom .coords-locked { min-height: 44px; }
  .hud-bottom .coords-k { display: none; }
  .coords-locked { font-size: 11px; letter-spacing: .06em; padding: 6px 10px; }
  .buy { padding: 0 14px; }
  .horizon { display: none; }
  .what-line { font-size: 21px; }
  .ro-vel b { font-size: 44px; }
  .ro-cell { padding: 6px 8px; }
  .ro-cell dt small { display: none; }
  .ro-cell dd { font-size: 19px; }
  .ro-sub { margin: 4px 0 8px; font-size: 13px; }
  .gear-win { width: 48px; height: 56px; }
  .gear-drum { transform: translateY(calc(var(--gear, 0) * -56px)); }
  .gear-drum i { height: 56px; font-size: 44px; line-height: 56px; }
  .step { font-size: 16px; }
  .steps { gap: 5px; }
  .step-hold { font-size: 21px; margin-top: 8px; }
  .meme img { width: 120px; }
  .meme-sq img { width: 67px; }
  .memes { margin-right: -16px; padding-right: 16px; }
  .film .dock-climb { bottom: calc(var(--dock-b) + 10svh); }
  .film .dock-ticker { top: calc(var(--hud-h) + var(--safe-t) + 118px); bottom: auto; }
  .ticker { font-size: clamp(34px, 10vw, 46px); }
  .film .dock-end { width: auto; }
  .coords-end .coords-btn, .coords-end .coords-locked { min-height: 44px; }
  .end-actions { margin: 8px 0; }
  .end-actions .buy { min-height: 44px; font-size: 16px; }
  .links { gap: 0 20px; margin-bottom: 4px; }
  .links a, .links span { min-height: 28px; font-size: 13px; }
  .links a { min-height: 44px; }
  .facts { margin-bottom: 6px; font-size: 11px; }
  .disclaimer p { font-size: 11px; line-height: 1.4; }
}

/* ---- the static page: reduced motion and no JS. Four poster stills, all the copy ---- */
.film .still { display: none; }
.static .hud { position: relative; inset: auto; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: calc(12px + var(--safe-t)) 14px 12px; border-bottom: 1px solid rgba(43, 217, 90, .45); background: var(--void); }
.static .hud-line, .static .horizon, .static .surge-btn { display: none; }
.static .hud-tl, .static .hud-vel, .static .demo-tag, .static .hud-bottom { position: static; translate: none; }
.static .hud-bottom { flex: 1 1 100%; height: auto; justify-content: flex-start; }
.static .hud-vel { width: 250px; min-height: 34px; }
/* slots filled by script after first paint keep their size from the start: no layout shift */
.coords, .buy-slot { min-height: 38px; }
.buy-slot { display: inline-block; }
.static .hud-bottom { min-height: 38px; }
.coords-end { min-height: 52px; }
.end-actions .buy-slot { min-height: 46px; }
.links { min-height: 32px; }
.facts { min-height: 1.5em; }
.static .rail-btn span { display: inline; }
.static .ch { position: relative; max-width: 1120px; margin: 0 auto; padding: 28px 14px 36px; }
.static .still { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.static .dock { position: relative; margin: -56px 18px 0; padding: 22px 24px 20px; }
.static .dock + .dock { margin-top: 18px; }
.static .dock-hero { margin: 18px auto 0; padding: 0; text-align: center; max-width: 960px; }
.static .dock-hero::before, .static .hint, .static .gear { display: none; }
.static .dock-steps { display: block; }
.static .dock-climb, .static .dock-ticker { margin: 18px 18px 0; padding: 0; }
.static .ticker { font-size: clamp(34px, 6vw, 72px); }
.static .climb { font-size: clamp(40px, 8vw, 96px); }
@media (max-width: 720px) {
  .static .still { aspect-ratio: 4 / 5; object-position: var(--fx, 50%) 50%; }
  .static #road .still { --fx: 33%; } .static #shift .still { --fx: 47%; }
  .static .dock { margin: -40px 6px 0; padding: 18px 16px 16px; }
  .static .ro-grid { grid-template-columns: 1fr; }
  .static .hud-tl { flex-wrap: wrap; max-width: 100%; }
  .static .rail { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(*), ::view-transition-new(*), ::view-transition-group(*) { animation-duration: 0s !important; animation-delay: 0s !important; }
}

/* ---- critic fix round (2026-11-11) ---- */
/* rail and surge: the chamfered plate moves to ::before so ::after can widen the tap area
   (clip-path on the element itself would clip hit testing too); the look is unchanged */
.rail-btn, .rail-btn.is-on, .rail-btn:hover, .surge-btn, .surge-btn:hover, .surge-btn.is-firing { position: relative; isolation: isolate; background: none; border-color: transparent; clip-path: none; }
.rail-btn::before, .surge-btn::before { content: ''; position: absolute; inset: -1px; z-index: -1; background: rgba(3, 23, 13, .78); border: 1px solid rgba(43, 217, 90, .55);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.rail-btn::after, .surge-btn::after { content: ''; position: absolute; inset: -6px -1px; }
.rail-btn.is-on::before { border-color: var(--trace); background: var(--trace); }
.rail-btn.is-on, .rail-btn.is-on b { color: var(--void); }
@media (max-width: 720px) { .rail-btn::after { inset: -4px -2px; } }
.surge-btn::before { border-color: var(--hud); }
.rail-btn:hover::before, .surge-btn:hover::before { border-color: var(--trace); }
.surge-btn.is-firing::before { border-color: var(--ember); }
/* velocity readout: a dark chamfered plate keeps it legible over the white-out and the moon */
.hud-vel { top: calc(6px + var(--safe-t)); padding: 4px 9px 5px; background: rgba(0, 3, 2, .86);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.hud-vel-sub { color: #A3ADB6; }
/* the contract address: wraps whole in the end dock */
.coords-end .coords-v { white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; }
/* links: two balanced rows of two */
.links { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 28px; }
@media (max-width: 720px) {
  .coords, .buy-slot, .static .hud-bottom { min-height: 44px; }
  .hud-vel { top: calc(5px + var(--safe-t)); padding: 3px 7px 4px; }
  .links { column-gap: 20px; }
}
@media (max-width: 374px) { .surge-label { display: none; } .surge-btn { gap: 0; } }
/* static page: the climb line's glyphs start on the panels' text edge, not at their frame */
.static .dock-climb, .static .dock-ticker { padding: 0 14px; }
/* ==== F · OVERDRIVE: the second speed and everything it drives ==== */
/* YOU: the visitor's own speed, an LED bar under the market velocity; ember at the redline */
.hud-you { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 3px; height: 8px; }
.you-k { font-size: 10px; line-height: 1; letter-spacing: .16em; color: var(--hud); font-style: italic; font-weight: 600; }
.you-bar { position: relative; width: 94px; height: 6px; flex: none;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); }
.you-bar::before, .you-bar::after { content: ''; position: absolute; inset: 0; }
.you-bar::before { background: rgba(43, 217, 90, .2); }
.you-bar::after { background: linear-gradient(90deg, var(--hud) 0 66%, var(--trace) 66% 84%, var(--ember) 84%);
  clip-path: inset(0 calc((1 - var(--you, 0)) * 100%) 0 0); }
.you-bar.is-rev::after { background: linear-gradient(270deg, var(--white) 0 70%, var(--steel)); clip-path: inset(0 0 0 calc((1 - var(--you, 0)) * 100%)); }
.you-bar.is-red::after { background: var(--ember); }
.hud.is-red .you-k { color: var(--ember); }
@media (max-width: 720px) { .you-bar { width: 62px; } .hud-you { gap: 4px; } }
.static .hud-you { display: none; }

/* +N OVERTAKES: a short tick under the velocity with each poll's buys */
.hud-tick { position: absolute; top: calc(var(--hud-h) + var(--safe-t) + 8px); right: 14px; margin: 0; padding: 2px 8px; font-size: 12px; letter-spacing: .12em;
  color: var(--trace); background: rgba(0, 3, 2, .86); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; white-space: nowrap; }
.hud-tick.is-on { visibility: visible; opacity: 1; }
@media (max-width: 720px) { .hud-tick { top: calc(var(--hud-h) + var(--safe-t) + 30px); right: 8px; font-size: 11px; } }

/* THE JUMP's white-out: the HUD inverts to dark on white and one line sits centred */
.whiteout { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; margin: 0; padding: 0 20px; text-align: center; visibility: hidden;
  font: 900 italic clamp(22px, 2.6vw, 40px)/1.1 var(--display); color: #000302; letter-spacing: .02em; }
.is-whiteout .whiteout { visibility: visible; }
.is-whiteout .hud-line { background: linear-gradient(90deg, transparent, rgba(0, 3, 2, .7) 12%, rgba(0, 3, 2, .7) 88%, transparent); }
.is-whiteout .rail-btn, .is-whiteout .rail-btn b, .is-whiteout .surge-btn { color: #000302; }
.is-whiteout .rail-btn::before, .is-whiteout .surge-btn::before { background: rgba(255, 255, 255, .6); border-color: #000302; }
.is-whiteout .surge-btn i { background: #000302; }
.is-whiteout .hud-vel { background: rgba(255, 255, 255, .7); text-shadow: none; }
.is-whiteout .hud-vel-main, .is-whiteout .hud-vel-main i, .is-whiteout .hud-vel-sub, .is-whiteout .you-k { color: #000302; }
.is-whiteout .horizon i { background: #000302; }

/* LIQUID CHROME: while the compositor draws the wordmark, the <img> keeps its slot, its
   hit box and its alt text but paints nothing */
.chrome-on [data-dock="hero"] .wordmark { filter: opacity(0); }

/* the strip: one line of HUD messages under the top line (YOU BLINKED, AUTOPILOT, ...) */
.hud-msg { position: absolute; top: calc(var(--hud-h) + var(--safe-t) + 10px); left: 12px; margin: 0; padding: 4px 12px; max-width: min(520px, calc(100% - 300px));
  font-size: 13px; line-height: 1.35; letter-spacing: .12em; color: var(--mint); background: rgba(0, 3, 2, .88); border: 1px solid rgba(43, 217, 90, .55);
  text-align: left; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.hud-msg.is-on { visibility: visible; opacity: 1; }
.is-auto .hud-msg { color: var(--trace); border-color: var(--trace); }
@media (max-width: 720px) { .hud-msg { left: 8px; max-width: calc(100% - 118px); font-size: 11px; letter-spacing: .08em; } }

/* THE BUTTON: bottom right, above BUY; a ring charges while it is held */
.the-button { position: absolute; right: 14px; bottom: calc(var(--hud-h) + var(--safe-b) + 14px); display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 8px; pointer-events: auto; cursor: pointer; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none;
  border: 1px solid transparent; background: none; color: var(--chrome); font-size: 12px; font-weight: 600; font-style: italic; letter-spacing: .14em; }
.the-button::before { content: ''; position: absolute; inset: -1px; z-index: -1; background: rgba(3, 23, 13, .82); border: 1px solid rgba(43, 217, 90, .55);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.the-button:hover::before, .the-button.is-charging::before { border-color: var(--trace); }
.the-button.is-full::before { border-color: var(--ember); background: rgba(40, 20, 4, .86); }
.tb-ring { width: 26px; height: 26px; flex: none; rotate: -90deg; }
.tb-ring circle { fill: none; stroke-width: 3; }
.tb-track { stroke: rgba(43, 217, 90, .28); }
.tb-fill { stroke: var(--trace); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--charge, 0) * 100); }
.is-full .tb-fill, .press-ring.is-full .tb-fill { stroke: var(--ember); }
.the-button .tb-label { min-width: 9.2em; text-align: left; }
@media (max-width: 720px) { .the-button { display: none; } }
.press-ring { position: absolute; left: 0; top: 0; width: 76px; height: 76px; translate: -50% -50%; visibility: hidden; pointer-events: none; display: grid; place-items: center; }
.press-ring.is-on { visibility: visible; }
.press-ring .tb-ring { width: 76px; height: 76px; filter: drop-shadow(0 0 6px rgba(0, 3, 2, .9)); }
.pr-hint { position: absolute; top: -26px; white-space: nowrap; font-size: 11px; letter-spacing: .14em; color: var(--mint); background: rgba(0, 3, 2, .86); padding: 2px 7px; visibility: hidden; }
.press-ring.is-hint .pr-hint { visibility: visible; }

/* NO BRAKES: a small brake pedal drops off the bottom of the screen, behind the HUD */
.pedal { position: fixed; z-index: 15; left: 22%; top: 38%; width: 54px; height: 72px; pointer-events: none; visibility: hidden; }
.pedal i { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #3a4148 0 5px, #7C8791 5px 8px); border: 2px solid #D9DEE3;
  clip-path: polygon(14% 0, 86% 0, 100% 14%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 14%); }
.pedal::after { content: ''; position: absolute; left: 50%; top: -64px; width: 6px; height: 66px; translate: -50% 0; background: #7C8791; }
.pedal.is-drop { visibility: visible; animation: pedal-drop 1.3s cubic-bezier(.55, 0, .9, .45) forwards; }
@keyframes pedal-drop { from { transform: translateY(0) rotate(0); } to { transform: translateY(80vh) rotate(38deg); visibility: hidden; } }
.static .hud-msg, .static .the-button, .static .press-ring, .static .pedal, .static .hud-tick, .static .whiteout { display: none; }
.chrome-on .dock-hero::before { visibility: hidden; }

/* the ignition: HUD segments power on in sequence (the coordinates strip and BUY are
   never part of it: they are there from the first paint) */
@keyframes power { 0% { opacity: 0; } 35% { opacity: 1; } 48% { opacity: .15; } 62%, 100% { opacity: 1; } }
.film.is-intro .rail-btn, .film.is-intro .surge-btn, .film.is-intro .hud-vel, .film.is-intro .horizon, .film.is-intro .the-button { animation: power .42s steps(6, end) both; }
.film.is-intro .hud-line-top { animation: power .42s steps(6, end) both, breathe 3.6s ease-in-out .6s infinite; }
.film.is-intro .hud-line-bottom { animation: power .42s steps(6, end) .3s both; }
.film.is-intro .rail-btn:nth-child(2) { animation-delay: .06s; } .film.is-intro .rail-btn:nth-child(3) { animation-delay: .12s; }
.film.is-intro .rail-btn:nth-child(4) { animation-delay: .18s; } .film.is-intro .rail-btn:nth-child(5) { animation-delay: .24s; }
.film.is-intro .rail-btn:nth-child(6) { animation-delay: .3s; } .film.is-intro .surge-btn { animation-delay: .36s; }
.film.is-intro .hud-vel { animation-delay: .3s; } .film.is-intro .horizon { animation-delay: .36s; } .film.is-intro .the-button { animation-delay: .42s; }

/* 02: the horizon ticks pulse as each tunnel ring passes the edge of the picture */
@keyframes tick-pulse { 0% { scale: 1 1; filter: brightness(2.2); } 100% { scale: 1 1; filter: none; } 30% { scale: 1.9 2.2; } }
.horizon.is-pulse i { animation: tick-pulse .32s ease-out; }
.horizon.is-pulse::before { animation: tick-pulse .32s ease-out, breathe 2.4s ease-in-out infinite; }

/* 03: the GEAR indicator turns over like a mechanical counter: digits on a drum */
.film .gear-win { perspective: 240px; overflow: clip; }
.film .gear-drum { position: relative; height: 100%; transform: none; transform-style: preserve-3d; transition: none; }
.film .gear-drum i { position: absolute; inset: 0; backface-visibility: hidden; transform-origin: 50% 50% -38px;
  transform: rotateX(calc((var(--gear, 0) - var(--i)) * 90deg)); transition: transform .34s cubic-bezier(.6, 0, .25, 1.35); }
@media (max-width: 720px) { .film .gear-drum i { transform-origin: 50% 50% -28px; } }

/* the velocity odometer */
.odo { display: inline-flex; }
.odo-d { display: inline-block; height: 1.15em; overflow: clip; vertical-align: top; line-height: 1.15; }
.odo-c { display: block; text-align: center; }

/* streak type (docks): characters arrive as streaks from ahead and resolve; leaving, they
   are left behind. Scrubbed by the film position through --e and --x on each dock. */
.film .st-w { display: inline-block; white-space: nowrap; }
.film .st-c { display: inline-block; transform-origin: 0 50%;
  --p: clamp(0, calc(var(--e, 1) * 1.7 - var(--c, 0) * .7), 1);
  --q: clamp(0, calc(var(--x, 0) * 1.7 - (1 - var(--c, 0)) * .7), 1);
  opacity: calc(var(--p) * (1 - var(--q)) * 1.25 - .25);
  transform: translateX(calc((1 - var(--p)) * 52px - var(--q) * 80px)) scaleX(calc(1 + (1 - var(--p)) * 2.4 + var(--q) * 2.8)); }
/* the toys' markup waits for late.css (loaded with the toys after the hero plays) */
:is(.static, .film:not(.f-ready)) :is(.ctl-col, .cup-btn, .tray, .logbook, .cam-card, .cam-flash, .tools-btn, .offmap) { display: none !important; }
/* HUD text that is showing wins hit testing over the film behind it (a pointer-events:
   none HUD would make its own words read as covered) */
.hud-msg.is-on, .hud-tick.is-on, .is-whiteout .whiteout { pointer-events: auto; }
