:root {
  --bg: #0b0710;
  --bg2: #110a18;
  --panel: #160e1f;
  --purple: #2a1838;
  --purple2: #3d2350;
  --line: #2e2140;
  --sand: #b08a5e;
  --sandD: #6d5338;
  --bone: #efe6d2;
  --boneS: #c9bda2;
  --muted: #9a8fa6;
  --dim: #6c6178;
  --red: #d13a44;
  --redD: #7a1a26;
  --green: #4dff7a;
  --ink: #120b16;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --term: 'VT323', ui-monospace, monospace;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--bone);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
:focus-visible { outline: 2px dashed var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- CRT ---------- */
.crt {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.035), rgba(255,255,255,0) 30%);
  animation: flicker 6s infinite steps(1);
}
@keyframes flicker { 0%, 96%, 100% { opacity: 1 } 97% { opacity: .6 } 98% { opacity: 1 } 99% { opacity: .8 } }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--bone);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 14px 20px;
  font: 400 11px/1 var(--pixel); letter-spacing: .02em; white-space: nowrap;
  color: var(--ink); background: var(--c);
  clip-path: var(--notch);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 4px 4px 0 rgba(255,255,255,.4);
  transition: transform .12s steps(2), filter .15s, background .15s, color .15s, box-shadow .15s;
  cursor: pointer; user-select: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); box-shadow: inset 4px 4px 0 rgba(0,0,0,.25); }
.btn-primary:hover { --c: #fffaf0; box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 4px 4px 0 rgba(255,255,255,.4), 0 0 0 99px rgba(77,255,122,0); }
.btn-primary .tri { width: 0; height: 0; border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn-outline { background: rgba(239,230,210,.02); color: var(--bone); box-shadow: inset 0 0 0 3px var(--bone); }
.btn-outline:hover { color: var(--green); box-shadow: inset 0 0 0 3px var(--green); background: rgba(77,255,122,.07); }
.btn-soon {
  background: #1e1527; color: var(--muted); cursor: not-allowed;
  box-shadow: inset 0 0 0 3px #3a2c47, inset -3px -6px 0 rgba(0,0,0,.25);
}
.btn-soon:hover { transform: none; filter: none; color: var(--boneS); }
.btn-sm { min-height: 38px; padding: 10px 14px; font-size: 10px; }
.btn-block { width: 100%; }
.btn .ix { width: 14px; height: 14px; }
.pill {
  font-size: 8px; padding: 4px 6px 3px; color: var(--ink); background: var(--green);
  box-shadow: 0 0 10px rgba(77,255,122,.45); animation: pulse 1.6s steps(2) infinite;
}
@keyframes pulse { 50% { opacity: .55 } }

.tip-wrap { position: relative; display: inline-flex; }
.tip-wrap.block { display: flex; }
.tip-wrap[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px);
  font: 400 9px/1 var(--pixel); color: var(--ink); background: var(--green);
  padding: 8px 10px; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .15s, transform .15s; z-index: 20;
  box-shadow: 4px 4px 0 var(--ink);
}
.tip-wrap[data-tip]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--green); border-bottom: 0;
  opacity: 0; transition: opacity .15s; z-index: 20;
}
.tip-wrap[data-tip]:hover::after, .tip-wrap[data-tip]:focus-within::after, .tip-wrap.tip-on::after { opacity: 1; transform: translate(-50%, 0); }
.tip-wrap[data-tip]:hover::before, .tip-wrap[data-tip]:focus-within::before, .tip-wrap.tip-on::before { opacity: 1; }
.nav .tip-wrap[data-tip]::after { bottom: auto; top: calc(100% + 10px); }
.nav .tip-wrap[data-tip]::before { bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom: 6px solid var(--green); border-top: 0; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .2s, box-shadow .2s; }
.nav.scrolled, .nav.open { background: rgba(11,7,16,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 0 var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 12px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-bone { width: 32px; height: 18px; flex: none; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(239,230,210,.25)); }
.brand-name { font: 400 11px/1.2 var(--pixel); letter-spacing: .02em; white-space: nowrap; }
.badge { font: 400 8px/1 var(--pixel); padding: 5px 6px 4px; color: var(--green); box-shadow: inset 0 0 0 2px rgba(77,255,122,.5); white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu > a:not(.x-link) { font: 400 10px/1 var(--pixel); color: var(--boneS); position: relative; padding: 6px 0; transition: color .15s; }
.menu > a:not(.x-link)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--green); transition: right .2s steps(4); }
.menu > a:not(.x-link):hover { color: var(--bone); }
.menu > a:not(.x-link):hover::after { right: 0; }
.x-link { display: grid; place-items: center; width: 36px; height: 36px; color: var(--boneS); transition: color .15s, transform .15s; }
.x-link svg { width: 17px; height: 17px; }
.x-link:hover { color: var(--green); transform: translateY(-2px); }
.menu-btn { display: none; width: 42px; height: 38px; padding: 9px 9px; background: #1a1124; clip-path: var(--notch); flex: none; }
.menu-btn span { display: block; height: 3px; background: var(--bone); margin: 0 0 5px; transition: transform .15s, opacity .15s; }
.menu-btn span:last-child { margin: 0; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: flex; align-items: center; background: #05030a; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,3,10,.82) 0%, rgba(5,3,10,.45) 38%, rgba(5,3,10,0) 60%); }
.hero-copy { position: relative; z-index: 4; width: 100%; max-width: 1240px; margin: 0 auto; padding: 80px var(--gut) 40px; }
.hero-copy > * { max-width: 560px; }
.kicker { line-height: 1.6 !important; display: flex; align-items: center; gap: 10px; font: 400 9px/1 var(--pixel); color: var(--muted); letter-spacing: .08em; margin-bottom: 22px; }
.blip { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.2s steps(2) infinite; }
.title { font: 400 clamp(28px, 5vw, 58px)/1.12 var(--pixel); letter-spacing: -.01em; color: var(--bone); text-shadow: 4px 4px 0 var(--ink), 0 0 30px rgba(239,230,210,.18); }
.title span { display: block; }
.title span:last-child { color: #fffaf0; }
.slogan { margin-top: 22px; font: 400 clamp(13px, 1.6vw, 17px)/1.7 var(--pixel); color: var(--green); text-shadow: 0 0 14px rgba(77,255,122,.45), 3px 3px 0 var(--ink); }
.hero-quote { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); color: var(--boneS); font-style: italic; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ctas.center { justify-content: center; }
.status { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; font: 400 18px/1.2 var(--term); color: var(--muted); letter-spacing: .04em; }
.status .dot { display: inline-block; width: 6px; height: 6px; background: var(--red); margin-right: 8px; vertical-align: middle; animation: pulse 1s steps(2) infinite; }
.status b, .soon { color: var(--green); font-weight: 400; }
.bubble {
  position: absolute; z-index: 4; transform: translate(-30%, -100%);
  font: 400 9px/1.5 var(--pixel); color: var(--ink); background: var(--bone);
  padding: 9px 11px; max-width: 220px; width: max-content;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px rgba(0,0,0,.45);
  transition: opacity .3s, transform .3s;
}
.bubble::after { content: ""; position: absolute; left: 22%; top: 100%; width: 8px; height: 8px; background: var(--bone); box-shadow: 3px 0 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink); }
.bubble.out { opacity: 0; transform: translate(-30%, calc(-100% + 6px)); }
.scroll-hint { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 8px/1 var(--pixel); color: var(--dim); }
.scroll-hint i { width: 4px; height: 12px; background: var(--boneS); animation: drop 1.4s steps(4) infinite; }
@keyframes drop { 0% { transform: translateY(-4px); opacity: 0 } 50% { opacity: 1 } 100% { transform: translateY(8px); opacity: 0 } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 5; overflow: hidden; background: var(--bone); color: var(--ink); border-block: 3px solid var(--ink); }
.ticker-track { display: flex; width: max-content; gap: 26px; padding: 11px 0; animation: tick 34s linear infinite; font: 400 11px/1 var(--pixel); }
.ticker-track b { font-weight: 400; color: var(--redD); display: flex; align-items: center; }
.ticker-track .tb { width: 22px; height: 12px; }
.ticker-track span, .ticker-track b { flex: none; }
@keyframes tick { to { transform: translateX(-50%) } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { font: 400 9px/1 var(--pixel); color: var(--red); letter-spacing: .14em; margin-bottom: 18px; }
h2 { font: 400 clamp(22px, 3.6vw, 40px)/1.25 var(--pixel); text-shadow: 4px 4px 0 var(--ink); }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Game ---------- */
.play { background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(61,35,80,.35), transparent 70%), var(--bg); }
.cabinet {
  max-width: 980px; margin: 0 auto; padding: 14px; background: #1a1124;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  box-shadow: inset 0 0 0 4px #2d2040, inset 0 -10px 0 rgba(0,0,0,.25);
}
.hud { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 14px; font: 400 10px/1 var(--pixel); color: var(--muted); }
.hud b { color: var(--bone); font-weight: 400; margin-left: 6px; font-size: 13px; }
.hud-right { display: flex; align-items: center; gap: 14px; }
.hud-mult { position: absolute; left: 50%; top: 4px; translate: -50% 0; color: var(--ink); background: var(--green); padding: 6px 8px 5px; font-size: 9px; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s steps(2); box-shadow: 0 0 14px rgba(77,255,122,.5); }
.hud-mult.show { opacity: 1; transform: none; animation: pulse 0.5s steps(2) infinite; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 8px; justify-content: center; font: 400 9px/1 var(--pixel); color: var(--boneS); background: #241834; clip-path: var(--notch); transition: color .15s, background .15s; }
.icon-btn:hover { color: var(--green); background: #2d1f40; }
.icon-btn svg { width: 16px; height: 16px; }
.snd .w { display: none; }
.snd.on .w { display: inline; }
.snd.on .m { display: none; }
.snd.on { color: var(--green); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #06030b; overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 3px var(--ink); }
#game { width: 100%; height: 100%; }
.overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; background: rgba(6,3,11,.55); transition: opacity .25s; }
.overlay.over { background: rgba(14,4,8,.72); }
.overlay.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.ov-title { font: 400 clamp(14px, 2.6vw, 24px)/1.3 var(--pixel); text-shadow: 3px 3px 0 var(--ink); }
.ov-title.red { color: #ff5a64; text-shadow: 3px 3px 0 var(--ink), 0 0 20px rgba(255,60,70,.5); }
.ov-sub { color: var(--bone); font-size: clamp(14px, 1.8vw, 17px); }
.ov-cause { font: 400 17px/1 var(--term); color: var(--muted); margin-top: -4px; }
.ov-score { font: 400 clamp(10px, 1.4vw, 12px)/1 var(--pixel); color: var(--muted); }
.ov-score b { color: var(--bone); font-weight: 400; font-size: 1.3em; }
.ov-score span { margin: 0 6px; }
.newbest { font: 400 10px/1 var(--pixel); color: var(--green); animation: pulse .6s steps(2) infinite; }
.newbest.hidden { display: none; }
.ov-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.ov-hint { font: 400 18px/1.3 var(--term); color: var(--boneS); letter-spacing: .03em; }
kbd { font: inherit; color: var(--ink); background: var(--boneS); padding: 0 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 16px 6px 4px; font: 400 18px/1 var(--term); color: var(--boneS); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend canvas { width: 24px; height: 24px; }
.legend b { font-weight: 400; color: var(--bone); }
.legend b.g { color: var(--green); }
.legend .bad { color: #e88a90; }
.fine { max-width: 640px; margin: 28px auto 0; text-align: center; color: var(--dim); font-size: 14px; }

/* ---------- Story ---------- */
.story { background: linear-gradient(to bottom, var(--bg), #0e0815 50%, var(--bg)); }
.panel { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(28px, 5vw, 64px); margin-bottom: clamp(56px, 8vw, 96px); }
.panel.flip .panel-art { order: 2; }
.panel-art { position: relative; transform: translateY(var(--py, 0)); transition: transform .1s linear; }
.panel-art canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px #241834, 12px 12px 0 8px rgba(0,0,0,.4); }
.panel-num { position: absolute; top: -14px; left: -10px; font: 400 12px/1 var(--pixel); color: var(--ink); background: var(--bone); padding: 7px 8px 6px; box-shadow: 3px 3px 0 var(--ink); }
.panel.flip .panel-num { left: auto; right: -10px; }
.panel h3 { font: 400 clamp(15px, 2vw, 20px)/1.5 var(--pixel); text-shadow: 3px 3px 0 var(--ink); }
.panel p { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--boneS); line-height: 1.7; }
.panel:nth-of-type(3) h3 { color: var(--green); text-shadow: 3px 3px 0 var(--ink), 0 0 18px rgba(77,255,122,.3); }
.big-quote { margin: clamp(30px, 6vw, 70px) auto 0; text-align: center; font: 400 clamp(20px, 4vw, 44px)/1.4 var(--pixel); color: var(--bone); text-shadow: 4px 4px 0 var(--ink), 0 0 40px rgba(239,230,210,.15); }

/* ---------- Token ---------- */
.token { background: radial-gradient(ellipse 60% 60% at 75% 50%, rgba(77,255,122,.05), transparent 70%), var(--bg); }
.token-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.token-copy h2 { margin-bottom: 26px; }
.token-copy p { color: var(--boneS); font-size: 17px; max-width: 440px; }
.token-copy p + p { margin-top: 12px; color: var(--muted); }
.terminal { background: #0a0d0b; padding: 0 0 22px; clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)); box-shadow: inset 0 0 0 3px #22352a, inset 0 0 60px rgba(77,255,122,.06); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #12201a; font: 400 9px/1 var(--pixel); color: #7ad99a; box-shadow: inset 0 -3px 0 #22352a; }
.lights { display: flex; gap: 5px; }
.lights i { width: 8px; height: 8px; background: var(--red); }
.lights i:nth-child(2) { background: var(--sand); }
.lights i:nth-child(3) { background: var(--green); }
.cursor { animation: pulse 1s steps(2) infinite; }
.term-list { padding: 14px 22px 4px; font: 400 21px/1 var(--term); }
.term-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dashed #1d2b23; }
.term-list dt { color: #6b8f78; letter-spacing: .04em; }
.term-list dd { color: var(--bone); text-align: right; }
.ca-field { margin: 16px 22px 18px; padding: 14px; background: #060807; box-shadow: inset 0 0 0 2px #22352a; }
.ca-label { display: block; font: 400 8px/1.4 var(--pixel); color: #6b8f78; margin-bottom: 10px; }
.ca-row { display: flex; align-items: center; gap: 12px; }
.ca-row code { flex: 1; min-width: 0; font: 400 20px/1.2 var(--term); color: var(--bone); overflow-wrap: anywhere; }
.copy { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: #16231c; color: var(--green); clip-path: var(--notch); transition: background .15s; }
.copy svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.copy .c2 { display: none; }
.copy.ok .c1 { display: none; }
.copy.ok .c2 { display: block; }
.copy:not(:disabled):hover { background: #1f3428; }
.copy:disabled { color: #3a4a40; cursor: not-allowed; }
.terminal .tip-wrap { margin: 0 22px; }
.warn { display: flex; gap: 10px; margin: 16px 22px 0; font-size: 13px; color: #e8a0a5; line-height: 1.5; }
.warn span { flex: none; display: grid; place-items: center; width: 18px; height: 18px; background: var(--red); color: var(--ink); font: 400 9px/1 var(--pixel); margin-top: 1px; }

/* ---------- Final ---------- */
.final { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; background: #04020a; }
.final-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-copy { position: relative; z-index: 4; text-align: center; padding: clamp(90px, 14vh, 150px) var(--gut) 40px; max-width: 900px; }
.final-copy h2 { font-size: clamp(18px, 3.2vw, 36px); line-height: 1.5; }
.final-copy h2 span { color: var(--green); text-shadow: 4px 4px 0 var(--ink), 0 0 26px rgba(77,255,122,.35); }
.final-copy h2, .final-copy p { text-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(4,2,10,.9); }
.final-copy p { margin-top: 22px; font-size: clamp(16px, 1.8vw, 19px); color: var(--boneS); font-style: italic; }
.final-copy .ctas { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { background: #07040b; border-top: 3px solid var(--ink); box-shadow: inset 0 3px 0 #1c1327; padding: 40px 0 28px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand b { display: block; font: 400 11px/1.4 var(--pixel); font-weight: 400; }
.foot-brand span { font: 400 17px/1.3 var(--term); color: var(--muted); }
.foot-line { font: 400 9px/1.6 var(--pixel); color: var(--boneS); }
.foot-social { display: flex; gap: 6px; }
.term-list dd a { color: var(--green); }
.term-list dd a:hover { text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 2px dashed #1c1327; font-size: 12px; color: var(--dim); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .panel.reveal .panel-txt { opacity: 0; transform: translateX(18px); transition: opacity .7s .15s, transform .7s .15s cubic-bezier(.2,.7,.2,1); }
.js .panel.reveal.in .panel-txt { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,7,16,.97); padding: 8px var(--gut) 20px; box-shadow: 0 3px 0 var(--line);
    display: none;
  }
  .nav.open .menu { display: flex; }
  .menu > a:not(.x-link) { font-size: 12px; padding: 16px 0; border-bottom: 2px dashed var(--line); }
  .menu > a:not(.x-link)::after { display: none; }
  .menu .x-link { width: auto; justify-content: flex-start; padding: 14px 0; height: auto; }
  .menu .tip-wrap { margin-top: 8px; }
  .menu .tip-wrap .btn { width: 100%; }
  .nav .tip-wrap[data-tip]::after { top: auto; bottom: calc(100% + 10px); }
  .nav .tip-wrap[data-tip]::before { display: none; }
}
@media (max-width: 860px) {
  .panel, .token-grid { grid-template-columns: 1fr; }
  .panel.flip .panel-art { order: 0; }
  .panel.flip .panel-num { right: auto; left: -6px; }
  .panel-num { left: -6px; }
}
@media (max-width: 759px) {
  .hero { align-items: flex-start; min-height: 640px; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,3,10,.8) 0%, rgba(5,3,10,.55) 55%, rgba(5,3,10,0) 75%); }
  .hero-copy { padding-top: 92px; }
  .kicker { margin-bottom: 16px; }
  .ctas { margin-top: 24px; }
  .ctas .btn, .ctas .tip-wrap { flex: 1 1 100%; }
  .status { font-size: 16px; margin-top: 18px; }
  .scroll-hint { display: none; }
  .bubble { font-size: 8px; max-width: 160px; }
  .hud { flex-wrap: wrap; font-size: 9px; }
  .hud-mult { order: 3; }
  .icon-btn span { display: none; }
  .cabinet { padding: 8px; }
  .legend { font-size: 16px; gap: 8px 14px; }
  .ov-btns .btn { flex: 1 1 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .screen { aspect-ratio: 4 / 3; }
  .overlay { gap: 10px; padding: 14px; }
  .ov-btns { gap: 8px; width: 100%; max-width: 320px; }
  .ov-btns .btn { min-height: 40px; padding: 12px 14px; }
}
@media (max-width: 420px) {
  .ov-cause { display: none; }
  .ov-sub { font-size: 13px; }
  .brand-name { font-size: 9px; }
  .badge { display: none; }
  .btn { font-size: 10px; padding: 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .pill, .blip, .crt::after { animation: none; }
  .js .reveal, .js .panel.reveal .panel-txt { transition: none; opacity: 1; transform: none; }
}
