/* e/quacc — Effective Quackelerationism. Archetype I: THE RECORD ATTEMPT (an official speed-record dossier at night).
   Colours measured from the renders: deep water #0a1b31, pond sky #0f4a87, electric cyan #36c9fa / #5dd8fc,
   feather browns #795f48 / #a4825f; the bill orange is the one warm accent (the Buy button and the finish gate).
   Reduced motion = html.rm (boot.js). Hide-until-seen styles are gated on html.js:not(.rm). */
:root {
  --night: #08172b;
  --night-2: #0d2340;
  --deep: #050e1c;
  --panel: #102a4a;
  --ink: #e8f3fa;
  --mist: #9fb8cc;
  --cyan: #36c9fa;
  --cyan-2: #5dd8fc;
  --bill: #e8a13a;
  --feather: #a4825f;
  --rule: rgba(159, 184, 204, .2);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --nav-h: 64px;
  --disp: 'Genos', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Funnel Sans', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Castoro', Georgia, serif;
  --mono: 'Ubuntu Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--deep); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wm { font-family: var(--disp); font-style: italic; font-weight: 800; letter-spacing: .01em; }
.wm b { color: var(--cyan); font-weight: 800; }
.lede, .tenets p, .run p, .steps p { text-wrap: pretty; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--cyan); background: var(--cyan); color: var(--deep); font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -8px rgba(54, 201, 250, .6); }
.btn.buy { background: var(--bill); border-color: var(--bill); color: var(--deep); }
.btn.buy img { background: #fff; border-radius: 50%; padding: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.ghost img[src$="x.svg"], .btn.ghost img[src$="dexscreener.svg"] { filter: invert(1); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(255, 255, 255, .04); color: var(--ink); font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: border-color .2s; }
.chip:hover { border-color: var(--cyan); }
.chip img { background: #fff; border-radius: 50%; padding: 2px; }
.kicker { font: 600 13px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kicker .k-2 { color: var(--mist); }
.lede { font-size: 19px; color: var(--mist); max-width: 38em; margin-top: 16px; }
.sec-head { border-top: 1px solid var(--rule); padding-top: 14px; }
.sec-head h2 { font-size: clamp(38px, 5.4vw, 76px); margin-top: 16px; font-style: italic; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); background: rgba(8, 23, 43, .94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .nav { background: rgba(8, 23, 43, .82); backdrop-filter: blur(12px) saturate(1.3); } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--cyan); }
.brand .wm { font-size: 24px; }
.links { display: flex; gap: 2px; margin: 0 auto; }
.links a { font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 10px 12px; border-radius: 999px; color: var(--mist); transition: color .2s, background-color .2s; }
.links a:hover, .links a.on { color: var(--ink); background: rgba(54, 201, 250, .12); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--deep); }
.motion-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); cursor: pointer; }
.motion-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 2px rgba(54, 201, 250, .6); }
.motion-btn[aria-pressed="false"] .dot { background: transparent; border: 1.5px solid var(--mist); box-shadow: none; }
.nav-right .buy:not([hidden]) ~ .race-nav { display: none; }
.burger { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mist); background: transparent; cursor: pointer; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.bars { width: 16px; height: 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.bars::after { content: ''; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid var(--ink); }
.menu { position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 49; background: var(--night); padding: 18px var(--gutter) 32px; overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: italic 700 30px/1.2 var(--disp); padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.menu-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(580px, min(calc(100svh - var(--nav-h)), 64vw)); display: flex; align-items: center; overflow: hidden; background: var(--deep); }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 14, 28, .88) 0%, rgba(5, 14, 28, .6) 32%, rgba(5, 14, 28, 0) 60%), linear-gradient(0deg, rgba(8, 23, 43, 1) 0%, rgba(8, 23, 43, 0) 18%); pointer-events: none; }
.streak { position: absolute; left: -30%; top: 58%; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan-2), transparent); box-shadow: 0 0 18px 3px rgba(93, 216, 252, .55); opacity: 0; pointer-events: none; }
html.js:not(.rm) .streak { animation: streak 5.5s 1.2s var(--ease) infinite; }
@keyframes streak { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: .9; } 30% { opacity: 0; transform: translateX(160%); } 100% { opacity: 0; transform: translateX(160%); } }
.hero-in { position: relative; z-index: 2; margin-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); padding: 40px 0 72px; width: min(660px, 54%); }
.hero .kicker { justify-content: flex-start; gap: 8px 22px; }
.hero-wm { margin-top: 10px; font-size: clamp(76px, 11vw, 176px); line-height: .82; }
.hero-wm .wm { display: inline-block; text-shadow: 0 0 40px rgba(54, 201, 250, .35); }
html.js:not(.rm) .hero-wm .wm { animation: wmIn 1.1s .15s var(--ease) both; }
@keyframes wmIn { from { opacity: 0; transform: translateX(-40px) skewX(-8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 { font-size: clamp(28px, min(3.4vw, 5.6vh), 50px); margin-top: 16px; font-weight: 600; }
.hero h1 .b1, .hero h1 .b2 { display: block; }
.hero h1 .b2 { color: var(--cyan-2); font-style: italic; }
.readout { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.readout div { padding: 10px 22px 10px 0; margin-right: 22px; border-right: 1px solid var(--rule); }
.readout div:last-child { border-right: 0; margin-right: 0; }
.readout dt { font: 400 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.readout dd { margin: 4px 0 0; font: 700 22px/1 var(--mono); color: var(--ink); }
.ca-row { margin-top: 20px; }
.ca-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(5, 14, 28, .7); color: var(--ink); cursor: pointer; }
.ca-k { font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--cyan); }
.ca-v { font: 400 14px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-h { flex: none; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--cyan); color: var(--deep); padding: 8px 11px; border-radius: 999px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta .buy:not([hidden]) ~ .race-link { background: transparent; color: var(--ink); border-color: var(--mist); }

/* ---------- the attempt (toy) ---------- */
.attempt { padding: 96px 0 72px; background: var(--night); }
.attempt .sec-head h2 { max-width: 16ch; }
.stage { position: relative; margin: 36px auto 0; max-width: calc(var(--maxw) + 2 * var(--gutter)); height: clamp(440px, 62vh, 660px); overflow: hidden; border-radius: 8px; background: var(--deep); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 14, 28, .8) 0%, rgba(5, 14, 28, 0) 38%), linear-gradient(180deg, rgba(5, 14, 28, .6) 0%, rgba(5, 14, 28, 0) 22%); pointer-events: none; }
#wake { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate { position: absolute; top: 34%; bottom: 30%; width: 2px; background: linear-gradient(180deg, transparent, var(--mist), transparent); z-index: 2; }
.gate i { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 700 11px/1 var(--mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.g-start { left: 12%; }
.g-finish { left: 88%; background: linear-gradient(180deg, transparent, var(--bill), transparent); }
.g-finish i { color: var(--bill); }
.duck { position: absolute; left: 0; top: 0; z-index: 3; width: var(--dw, 120px); height: auto; margin: calc(var(--dw, 120px) * -.5) 0 0 calc(var(--dw, 120px) * -.5); pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; pointer-events: none; }
.hud p { display: flex; align-items: baseline; gap: 6px; }
.hud span { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.hud b { font: 700 26px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; }
.hud small { font: 400 12px/1 var(--mono); color: var(--mist); }
.decel { position: absolute; left: 50%; top: 22%; z-index: 4; transform: translateX(-50%); font: italic 800 clamp(20px, 3vw, 34px)/1 var(--disp); color: var(--bill); letter-spacing: .04em; text-transform: uppercase; opacity: 0; pointer-events: none; white-space: nowrap; }
.decel.on { opacity: 1; }
html.js:not(.rm) .decel { transition: opacity .2s; }
.paddle { position: absolute; left: 50%; bottom: 20px; z-index: 5; transform: translateX(-50%); display: grid; place-items: center; gap: 2px; width: min(300px, calc(100% - 40px)); min-height: 76px; border-radius: 999px; border: 2px solid var(--cyan); background: rgba(5, 14, 28, .72); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.paddle:active { transform: translateX(-50%) scale(.97); }
.paddle.hit { box-shadow: 0 0 0 6px rgba(54, 201, 250, .25), 0 0 40px rgba(54, 201, 250, .5); }
.p-big { font: italic 800 26px/1 var(--disp); letter-spacing: .04em; text-transform: uppercase; }
.p-sm { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--mist); }
.result { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); width: min(460px, calc(100% - 28px)); padding: 22px 24px; border-radius: 10px; background: rgba(5, 14, 28, .94); border: 1px solid var(--cyan); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 60px -20px rgba(54, 201, 250, .6); }
html.js:not(.rm) .result { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -42%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.r-time { font: italic 700 22px/1.2 var(--disp); }
.r-time b { display: block; font: 700 54px/1 var(--mono); font-style: normal; color: var(--cyan-2); }
.r-line { font: 400 16px/1.4 var(--mono); color: var(--mist); margin-top: 8px; }
.r-sub { font: italic 400 18px/1.35 var(--serif); color: var(--ink); margin-top: 8px; }
.r-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.tally div { background: var(--night); padding: 14px 16px; }
.tally dt { font: 400 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.tally dd { margin: 6px 0 0; font: 700 24px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- doctrine ---------- */
.doctrine { padding: 110px 0; background: var(--deep); position: relative; overflow: hidden; }
.doctrine::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(54, 201, 250, .35), transparent); }
.tenets { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; position: relative; }
.tenets li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--rule); }
.tenets .n { font: italic 800 44px/1 var(--disp); color: var(--cyan); }
.tenets p { font: italic 400 clamp(22px, 2.3vw, 32px)/1.3 var(--serif); }
.tenets li:last-child p { font-size: clamp(34px, 3.4vw, 52px); color: var(--cyan-2); }

/* ---------- scale ---------- */
.scale { padding: 110px 0; background: var(--night-2); }
.ladder { margin-top: 48px; }
.rail { position: relative; height: 4px; margin: 0 22px; border-radius: 4px; background: var(--rule); }
.rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 4px; background: linear-gradient(90deg, rgba(54, 201, 250, .2), var(--cyan)); box-shadow: 0 0 16px rgba(54, 201, 250, .6); }
.rail img { position: absolute; top: 50%; left: 38%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--cyan), 0 0 24px rgba(54, 201, 250, .7); }
html.js:not(.rm) .ladder .rail i { width: 0; transition: width 1.6s var(--ease); }
html.js:not(.rm) .ladder .rail img { left: 0; transition: left 1.6s var(--ease); }
html.js:not(.rm) .ladder.in .rail i { width: 38%; }
html.js:not(.rm) .ladder.in .rail img { left: 38%; }
.stops { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stops li { border-top: 2px solid var(--rule); padding-top: 16px; }
.stops b { display: block; font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.stops span { display: block; font: italic 700 clamp(26px, 2.8vw, 40px)/1.05 var(--disp); margin-top: 10px; }
.stops small { display: block; font: 400 15px/1.4 var(--sans); color: var(--mist); margin-top: 8px; }
.stops li.now { border-top-color: var(--cyan); }
.stops li.now b, .stops li.now small { color: var(--cyan-2); }

/* ---------- run log ---------- */
.log { padding: 110px 0; background: var(--night); }
.runs { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
.run { grid-column: span 2; }
.run.big { grid-column: span 4; }
.run img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.run.big img { aspect-ratio: 2 / 1; }
.run.big + .run img { aspect-ratio: 1; }
.run p { margin-top: 12px; font: italic 400 19px/1.45 var(--serif); color: var(--ink); max-width: 36em; }
.run .t { display: block; font: 700 12px/1.2 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
html.js:not(.rm) .run img { transition: transform .8s var(--ease), filter .8s; }
html.js:not(.rm) .run:hover img { transform: scale(1.015); filter: saturate(1.15); }

/* ---------- board ---------- */
.board { padding: 110px 0; background: var(--night-2); }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: st; }
.steps li { counter-increment: st; border-top: 1.5px solid var(--cyan); padding-top: 18px; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font: italic 800 56px/1 var(--disp); color: var(--cyan); margin-bottom: 14px; }
.steps img { width: 28px; height: 28px; background: #fff; border-radius: 50%; padding: 3px; }
.step-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); color: var(--deep); font: 700 16px/1 var(--mono); }
.steps h3 { font-size: 26px; margin-top: 14px; font-style: italic; }
.steps p { margin-top: 8px; color: var(--mist); font-size: 16px; }
.ca-block { margin-top: 30px; }
.ca-lbl { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.ca-chip.big { width: 100%; justify-content: space-between; min-height: 58px; padding: 8px 8px 8px 20px; }
.ca-chip.big .ca-v { font-size: clamp(13px, 1.6vw, 18px); }
.ca-soon { margin-top: 30px; font: italic 400 20px/1.4 var(--serif); color: var(--mist); }
.plat { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.honest { margin-top: 26px; font-size: 15px; color: var(--mist); }

/* ---------- kit ---------- */
.kit { padding: 104px 0; background: var(--night); }
.kit-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.kit-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--night-2); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; transition: transform .3s var(--ease), border-color .2s; }
.kit-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.kit-card img { width: 100%; flex: 1; min-height: 0; aspect-ratio: 1; object-fit: cover; }
.kit-grid li:first-child .kit-card img { width: 64%; margin: 18% auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--cyan); flex: none; }
.kit-grid li:nth-child(2) .kit-card img { aspect-ratio: 2 / 1; }
.kit-card span { display: block; padding: 12px 14px; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--deep); min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; }
.foot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .75; }
.foot::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5, 14, 28, .95) 0%, rgba(5, 14, 28, .5) 55%, rgba(5, 14, 28, .2) 100%); }
.foot-in { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 44px; }
.foot-line { font: italic 800 clamp(48px, 7.4vw, 112px)/1 var(--disp); text-shadow: 0 0 40px rgba(54, 201, 250, .35); }
.foot-wm { margin-top: 18px; display: flex; gap: 14px; align-items: baseline; }
.foot-wm .wm { font-size: 30px; }
.foot-wm .tk { font: 700 14px/1 var(--mono); letter-spacing: .14em; color: var(--mist); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.foot-idx { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.foot-idx a { font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-decoration: none; padding: 8px 0; }
.foot-idx a:hover { color: var(--ink); }
.fine { margin-top: 24px; max-width: 48em; font-size: 14px; color: var(--mist); }

/* ---------- toast, click streaks, reveals ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--cyan); color: var(--deep); padding: 12px 18px; border-radius: 999px; font-weight: 700; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.zip { position: fixed; z-index: 70; width: 60px; height: 2px; margin: -1px 0 0 -60px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan-2)); box-shadow: 0 0 10px rgba(93, 216, 252, .8); pointer-events: none; animation: zip .6s var(--ease) forwards; }
@keyframes zip { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(120px); } }
html.js:not(.rm) .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.js:not(.rm) .reveal.in { opacity: 1; transform: none; }
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
html:not(.js) :is(.burger, .motion-btn, .paddle, .hud, .race-nav), html.broken :is(.burger, .motion-btn, .paddle, .hud, .race-nav) { display: none !important; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 48px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.nf img { width: 100%; border-radius: 8px; }
.nf h1 { font-size: clamp(44px, 6vw, 84px); margin-top: 12px; font-style: italic; }
.nf .lede { margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .links { display: none; }
  .burger { display: inline-flex; }
  .nav-right { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenets { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .runs { grid-template-columns: minmax(0, 1fr); }
  .run, .run.big { grid-column: auto; }
  .run.big img, .run.big + .run img { aspect-ratio: 3 / 2; }
  .kit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kit-grid li:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .nf { grid-template-columns: minmax(0, 1fr); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --nav-h: 58px; }
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .brand .wm { font-size: 21px; }
  .nav .motion-btn, .nav-right .ico, .nav-right .race-nav, .burger-lbl { display: none; }
  .menu .motion-btn { display: inline-flex; border: 1px solid var(--rule); }
  .hero { display: block; min-height: 0; }
  .hero-img { position: relative; height: min(118vw, 54svh); }
  .hero-img img { object-position: 74% 50%; }
  .hero-img::after { background: linear-gradient(0deg, var(--deep) 0%, rgba(5, 14, 28, 0) 40%); }
  .hero-in { width: auto; margin: -64px 0 0; padding: 0 var(--gutter) 48px; }
  .hero-wm { font-size: clamp(70px, 23vw, 110px); }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .readout div { padding-right: 14px; margin-right: 14px; }
  .readout dd { font-size: 18px; }
  .attempt, .doctrine, .scale, .log, .board, .kit { padding: 72px 0; }
  .stage { height: 460px; border-radius: 0; }
  .hud { padding: 12px; }
  .hud b { font-size: 20px; }
  .hud span { display: none; }
  .result { padding: 16px; }
  .r-time b { font-size: 42px; }
  .r-btns { flex-wrap: nowrap; }
  .r-btns .btn { flex: 1; justify-content: center; padding: 0 12px; }
  .tenets li { grid-template-columns: 52px minmax(0, 1fr); }
  .tenets .n { font-size: 34px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot { min-height: 560px; }
}

/* ================= review fixes (token-site-review, 2026-09-26) ================= */
/* hero: the og's pairing, Genos wordmark over a Castoro italic punchline (des-0) */
.hero h1 { font: italic 400 clamp(30px, min(3.6vw, 6vh), 54px)/1.12 var(--serif); letter-spacing: 0; margin-top: 18px; }
.hero h1 .b2 { color: var(--cyan-2); }
#heroSpeed { display: inline-block; min-width: 8ch; }
.readout dt.lc, .tally dt.lc { text-transform: none; }
.nav .race-nav { background: transparent; color: var(--ink); border-color: var(--cyan); }
/* section heads: editorial serif, one quiet label, no repeated rule (des-3) */
.sec-head { border-top: 0; padding-top: 0; }
.sec-head h2 { font: italic 400 clamp(40px, 5.4vw, 80px)/1.02 var(--serif); letter-spacing: -.015em; margin-top: 18px; }
.kicker { justify-content: flex-start; gap: 8px 22px; }
/* the attempt: a compact head, and 'Race the duck' lands on the whole stage (des-1, mob-0) */
.attempt { padding-top: 72px; }
.attempt .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26em); column-gap: 56px; align-items: end; }
.attempt .sec-head .kicker { grid-column: 1 / -1; }
.attempt .sec-head h2 { max-width: none; font-size: clamp(34px, 4vw, 58px); }
.attempt .lede { margin-top: 0; font-size: 17px; }
.stage { margin-top: 28px; height: clamp(420px, calc(100svh - var(--nav-h) - 40px), 640px); scroll-margin-top: calc(var(--nav-h) + 16px); }
.stage-bg { transform: scaleX(-1); }                     /* the baked streak now trails behind the start (des-4) */
.hud p:first-child b { font-size: clamp(34px, 4.4vw, 64px); color: var(--cyan-2); text-shadow: 0 0 18px rgba(54, 201, 250, .6); min-width: 4.2ch; }   /* des-10 */
html:not(.js) :is(.duck, #wake), html.broken :is(.duck, #wake) { display: none !important; }   /* mob-8 */
/* doctrine: the glow is a seam, not a strikethrough (des-2); 'Quack.' is the climax (des-5) */
.doctrine::before { top: auto; bottom: 0; }
.tenets li.last { grid-column: 1 / -1; }
.tenets li.last p { font-size: clamp(56px, 7vw, 112px); line-height: 1; }
/* soft seams between the navy bands (des-7) */
.doctrine { background: linear-gradient(180deg, var(--night) 0%, var(--deep) 140px, var(--deep) 100%); }
.scale { background: linear-gradient(180deg, var(--deep) 0%, var(--night-2) 160px, var(--night-2) calc(100% - 160px), var(--night) 100%); }
.board { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 160px, var(--night-2) calc(100% - 160px), var(--night) 100%); }
/* board: one number per step, the logo beside the title (des-9) */
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.steps li::before { grid-column: 1 / -1; }
.steps h3 { margin-top: 0; }
.steps p { grid-column: 1 / -1; }
/* the CA is shown whole, never cut at the end (cod-0, mob-5) */
.ca-v { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; text-align: left; }
.ca-chip { align-items: center; border-radius: 22px; }
/* menu close button inside the dialog (mob-6) */
.menu-close { display: flex; align-items: center; margin: 0 0 8px auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 700 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
/* footer uses the banner (the duck is in it) (des-8) */
.foot-img { object-position: 60% 50%; opacity: .85; }
.foot-idx a { padding: 12px 0; }
html.rm *, html.rm *::before, html.rm *::after { transition-duration: .001ms !important; }   /* mob-11, cod-11 */
@media (max-width: 860px) {
  .attempt .sec-head { display: block; }
  .attempt .lede { margin-top: 16px; }
  .rail { display: none; }                               /* mob-7: the rail cannot match a 2x2 grid */
  .ladder { margin-top: 28px; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(26px, 7.4vw, 36px); }
  .stage { height: 460px; }
}


/* ===== SOULCAT overrides ===== */
:root {
  --night: #070b1d;
  --night-2: #0d1430;
  --deep: #040713;
  --panel: #141b44;
  --ink: #f2f6ff;
  --mist: #b8bfdf;
  --cyan: #8f84ff;
  --cyan-2: #75dfff;
  --bill: #c9a6ff;
  --feather: #a4b7ff;
  --rule: rgba(184, 191, 223, .18);
}
body {
  background:
    radial-gradient(circle at 20% 20%, rgba(98, 59, 196, .22), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(63, 112, 255, .18), transparent 20%),
    linear-gradient(180deg, #070b1d 0%, #050812 100%);
}
.brand img, .rail img, .kit-grid li:first-child .kit-card img { box-shadow: 0 0 0 1.5px var(--cyan-2), 0 0 28px rgba(117,223,255,.35); }
.hero .kicker, .kicker { color: var(--cyan-2); }
.hero h1 .b2, .tenets li:last-child p, .stops li.now b, .stops li.now small { color: var(--cyan-2); }
.btn.buy { background: linear-gradient(135deg, #b68cff, #7ae2ff); border-color: transparent; color: #050712; }
.ca-h { background: linear-gradient(135deg, #8f84ff, #75dfff); }
.stage-bg { filter: saturate(1.15) brightness(.78); }
.g-finish { background: linear-gradient(180deg, transparent, var(--cyan-2), transparent); }
.g-finish i { color: var(--cyan-2); }
.decel { color: #ffb7f1; }
.foot-line { color: var(--cyan-2); }
.honest code, .fine code { font-family: var(--mono); font-size: .95em; color: var(--cyan-2); }

.chart-sec { padding: 110px 0 130px; background: linear-gradient(180deg, var(--night-2) 0%, rgba(9, 14, 36, 1) 100%); }
.chart-card {
  margin-top: 34px;
  border: 1px solid rgba(117,223,255,.22);
  background: linear-gradient(180deg, rgba(16, 22, 57, .86) 0%, rgba(10, 14, 36, .94) 100%);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.chart-topline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.chart-mini { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.chart-topline h3 { font-size: clamp(24px, 2.8vw, 34px); font-style: italic; }
#soulChart { display: block; width: 100%; border-radius: 12px; background: radial-gradient(circle at 50% 0%, rgba(118, 93, 255, .12), rgba(0,0,0,0) 58%); }
.chart-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chart-tags span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(255,255,255,.04); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.chart-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 900px) {
  .chart-topline { grid-template-columns: 1fr; }
}


/* ===== SOULCAT v2 fixes ===== */

/* Hero: always show the complete artwork, including the top of the image. */
.hero {
  background:
    radial-gradient(circle at 70% 35%, rgba(90, 91, 255, .20), transparent 34%),
    #050817;
}
.hero-img {
  overflow: hidden;
}
.hero-img::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("../images/hero.webp") center center / cover no-repeat;
  filter: blur(28px) brightness(.42) saturate(1.25);
  transform: scale(1.05);
  opacity: .9;
}
.hero-img picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}
.hero-img::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 8, 23, .86) 0%, rgba(5, 8, 23, .55) 31%, rgba(5, 8, 23, .08) 58%, rgba(5, 8, 23, .14) 100%),
    linear-gradient(0deg, rgba(7, 11, 29, 1) 0%, rgba(7, 11, 29, 0) 17%);
}

/* Live Dexscreener chart. */
.dex-live {
  margin-top: 34px;
  border: 1px solid rgba(117, 223, 255, .24);
  background: rgba(7, 10, 28, .82);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.dex-frame {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
  border: 0;
  border-radius: 12px;
  background: #080b18;
}
@media (max-width: 700px) {
  .hero { min-height: 780px; }
  .hero-img img { object-fit: contain !important; object-position: center top !important; }
  .hero-in { width: min(92%, 620px); }
  .dex-frame { min-height: 620px; height: 72vh; }
}


/* ===== SOULCAT v3: no-crop image fixes ===== */

/* Never crop key content in gallery images. */
.runs { align-items: start; }
.run img,
.run.big img,
.run.big + .run img {
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(6, 10, 28, .55);
  border-radius: 10px;
}

/* Hero: full image must always be visible, with the same art filling the free space. */
.hero {
  min-height: max(840px, min(calc(100svh - var(--nav-h)), 88vw)) !important;
  background: #050817;
}
.hero-img {
  overflow: hidden;
}
.hero-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 23, .36) 0%, rgba(5, 8, 23, .12) 100%),
    url("../images/hero.webp") center center / cover no-repeat;
  opacity: .92;
  filter: none !important;
  transform: none !important;
}
.hero-img picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 28px 42px 18px;
}
.hero-img::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 8, 23, .82) 0%, rgba(5, 8, 23, .56) 30%, rgba(5, 8, 23, .10) 58%, rgba(5, 8, 23, .24) 100%),
    linear-gradient(0deg, rgba(7, 11, 29, .96) 0%, rgba(7, 11, 29, .16) 19%, rgba(7, 11, 29, 0) 36%);
}

/* Game area: preserve the full artwork and fill the sides with the same image, not a blur. */
.stage {
  min-height: clamp(560px, 62vw, 940px);
  background: #060a1b;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 8, 23, .36), rgba(5, 8, 23, .36)),
    url("../images/pond.webp") center center / cover no-repeat;
  opacity: .88;
  z-index: 0;
}
.stage-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1;
  padding: 18px 26px;
}
.stage::after {
  z-index: 2;
}
#wake, .gate, .duck, .hud, .decel, .paddle, .result {
  z-index: 3;
}

/* On smaller screens keep full image visible too. */
@media (max-width: 900px) {
  .hero {
    min-height: 980px !important;
  }
  .hero-img img {
    padding: 18px 14px 12px;
    object-position: center top !important;
  }
  .stage {
    min-height: 720px;
  }
  .stage-bg {
    padding: 14px 10px;
    object-position: center top !important;
  }
}


/* ===== FINAL IMAGE FIX: one seamless image, no overlays/duplication, no crop ===== */

/* HERO */
.hero {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1672 / 941;
  background: #050817 !important;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.hero-img picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-img::after {
  /* only a soft readability gradient, not another copy of the image */
  background:
    linear-gradient(90deg, rgba(5,8,23,.76) 0%, rgba(5,8,23,.42) 28%, rgba(5,8,23,.05) 56%, rgba(5,8,23,.04) 100%),
    linear-gradient(0deg, rgba(7,11,29,.64) 0%, rgba(7,11,29,0) 18%) !important;
}

/* GAME BACKGROUND */
.stage {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1672 / 941;
  background: #060a1b !important;
  overflow: hidden;
}
.stage::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.stage-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}
.stage::after {
  background:
    linear-gradient(0deg, rgba(5,8,23,.55) 0%, rgba(5,8,23,0) 34%),
    linear-gradient(180deg, rgba(5,8,23,.30) 0%, rgba(5,8,23,0) 20%) !important;
}

/* Keep all actual image content visible on phones too. */
@media (max-width: 900px) {
  .hero,
  .stage {
    aspect-ratio: 1672 / 941;
    min-height: 0 !important;
    height: auto !important;
  }
  .hero-img img,
  .stage-bg {
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
  }
}
