/* =========================================================
   PIXELGO — STYLES
   Colors live in :root. Fonts: Press Start 2P (display) + VT323 (body).
   ========================================================= */
:root {
  --bg: #070a16;
  --bg2: #0d1430;
  --panel: #111a3c;
  --panel2: #182350;
  --line: #2a3a7a;
  --ink: #05070f;
  --text: #e8eeff;
  --muted: #93a0cc;
  --green: #3ee06a;
  --green-d: #1a9c44;
  --blue: #33b6ff;
  --blue-d: #1d6fd6;
  --yellow: #ffd23f;
  --yellow-d: #d99a00;
  --pink: #ff4fd8;
  --violet: #8b5cff;
  --px: "Press Start 2P", ui-monospace, monospace;
  --vt: "VT323", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(51,182,255,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(62,224,106,.10), transparent 60%),
    linear-gradient(rgba(42,58,122,.18) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(42,58,122,.18) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  color: var(--text);
  font: 22px/1.25 var(--vt);
}
img { image-rendering: pixelated; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--px); font-weight: 400; margin: 0; letter-spacing: .02em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ---------- buttons ---------- */
.btn {
  --c: var(--yellow); --cd: var(--yellow-d); --t: #14110a;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 18px;
  background: var(--c); color: var(--t);
  font: 11px/1.2 var(--px); text-transform: uppercase; text-decoration: none; letter-spacing: .04em;
  border: 3px solid var(--ink); border-radius: 0; cursor: pointer; user-select: none;
  box-shadow: inset -3px -3px 0 var(--cd), inset 3px 3px 0 rgba(255,255,255,.35), 4px 4px 0 var(--ink);
  transition: transform .06s, box-shadow .06s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translate(3px,3px); box-shadow: inset -3px -3px 0 var(--cd), inset 3px 3px 0 rgba(255,255,255,.35), 1px 1px 0 var(--ink); }
.btn.blue { --c: var(--blue); --cd: var(--blue-d); --t: #04101f; }
.btn.green { --c: var(--green); --cd: var(--green-d); --t: #04150a; }
.btn.dark { --c: #1d2a5c; --cd: #111a3c; --t: var(--text); }
.btn.ghost { --c: transparent; --cd: transparent; --t: var(--text); border-color: var(--line); box-shadow: 3px 3px 0 var(--ink); }
.btn.sm { min-height: 40px; padding: 10px 14px; font-size: 10px; }
.btn.xs { min-height: 34px; padding: 8px 10px; font-size: 9px; box-shadow: inset -2px -2px 0 var(--cd), inset 2px 2px 0 rgba(255,255,255,.35), 3px 3px 0 var(--ink); }
.btn.lg { min-height: 54px; padding: 16px 24px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.icon svg { width: 18px; height: 18px; }
.btn.soon, .btn[aria-disabled="true"] { filter: saturate(.55) brightness(.9); cursor: not-allowed; }
.mini {
  background: #0b1130; border: 2px solid var(--line); color: var(--muted);
  font: 8px/1 var(--px); padding: 6px 8px; cursor: pointer; letter-spacing: .05em;
}
.mini:hover { color: var(--text); border-color: var(--blue); }
.mini.armed { background: var(--pink); color: #200016; border-color: var(--ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter);
  background: rgba(7,10,22,.86); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border: 2px solid var(--ink); }
.brand-name { font: 14px var(--px); }
.brand-name b { color: var(--green); font-weight: 400; }
.brand-tick { font: 9px var(--px); color: var(--yellow); padding: 4px 6px; border: 2px solid var(--yellow-d); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 22px; }
.nav a:hover { color: var(--text); }
.wallet-btn { margin-left: 4px; }
.wdot { width: 8px; height: 8px; background: #04101f; flex: none; }
.wallet-btn.on { --c: #1d2a5c; --cd: #111a3c; --t: var(--text); }
.wallet-btn.on .wdot, .wdot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 48px;
}
.hero-copy { position: relative; padding-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font: 9px var(--px); color: var(--muted); letter-spacing: .08em;
  padding: 8px 10px; border: 2px solid var(--line); background: rgba(17,26,60,.7);
}
.sol-dot { width: 10px; height: 10px; background: linear-gradient(135deg, #9945ff, #14f195); }
.logo {
  font-size: clamp(34px, 11vw, 92px); line-height: .95; color: var(--text);
  text-shadow: 4px 4px 0 var(--blue-d), 8px 8px 0 var(--ink);
}
.logo span { color: var(--green); text-shadow: 4px 4px 0 var(--green-d), 8px 8px 0 var(--ink); }
.ticker {
  display: inline-block; margin: 18px 0 0; padding: 6px 10px;
  font: 14px var(--px); color: #14110a; background: var(--yellow);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.tagline { font: clamp(15px, 2vw, 20px)/1.5 var(--px); margin: 26px 0 12px; color: var(--text); }
.tagline em { font-style: normal; color: var(--pink); text-shadow: 2px 0 0 rgba(89,227,255,.7), -2px 0 0 rgba(255,79,216,.4); }
.lead { color: var(--muted); max-width: 34em; margin: 0 0 24px; font-size: 24px; }

.ca-box {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 10px 10px 10px 14px; margin-bottom: 18px;
  background: #0a1029; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--line), 5px 5px 0 2px var(--ink);
}
.ca-label { font: 10px var(--px); color: var(--yellow); flex: none; }
.ca-text { flex: 1; min-width: 0; font: 22px var(--vt); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .03em; }
.ca-box:not(.live) .ca-text { font: 12px var(--px); color: var(--green); }
.ca-copy { flex: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); }
.facts b { font: 12px var(--px); color: var(--blue); margin-right: 6px; }

.float { position: absolute; width: 56px; height: 56px; pointer-events: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.float.f1 { right: 0; top: -24px; animation: hop 2.4s steps(4) infinite; }
.float.f2 { right: 12%; top: auto; bottom: -84px; width: 44px; height: 44px; opacity: .85; animation: flick 3.2s steps(2) infinite; }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes flick { 0%,88%,100% { transform: none; opacity: .85; } 90% { transform: translateX(4px); opacity: .3; } 94% { transform: translateX(-3px); opacity: .9; } }

/* ---------- handheld device ---------- */
.hero-game { width: 100%; max-width: 440px; justify-self: end; }
.device {
  position: relative;
  background: linear-gradient(160deg, #23306a, #151d45 60%, #10173a);
  border: 4px solid var(--ink); border-radius: 18px 18px 56px 18px;
  padding: 14px 18px 20px;
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.08), inset -6px -6px 0 rgba(0,0,0,.3), 8px 8px 0 var(--ink), 0 0 60px rgba(51,182,255,.18);
}
.dev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.led { width: 10px; height: 10px; background: #5a1530; border: 2px solid var(--ink); }
.device.unlocked .led { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dev-status { flex: 1; font: 8px var(--px); color: var(--muted); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device.unlocked .dev-status { color: var(--green); }

.bezel { background: #0a0e22; border: 3px solid var(--ink); border-radius: 8px 8px 22px 8px; padding: 12px; box-shadow: inset 0 0 0 2px #1f2a5a; }
.screen { position: relative; aspect-ratio: 1; border: 3px solid var(--ink); overflow: hidden; background: #1b6b33; }
.screen canvas#map { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: pointer; touch-action: manipulation; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 30px rgba(0,0,0,.45); }

.hud { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; z-index: 1; }
.hud > span { background: rgba(7,10,22,.82); border: 2px solid var(--ink); padding: 4px 6px; font: 7px/1 var(--px); color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
.hud .cnt b { color: var(--yellow); font-weight: 400; margin-left: 4px; }
.sig i { width: 3px; background: #2a3566; display: inline-block; }
.sig i:nth-child(1) { height: 3px; } .sig i:nth-child(2) { height: 5px; } .sig i:nth-child(3) { height: 7px; } .sig i:nth-child(4) { height: 9px; }
.sig span { margin-left: 5px; }
.sig[data-level="1"] i:nth-child(-n+1), .sig[data-level="2"] i:nth-child(-n+2) { background: var(--yellow); }
.sig[data-level="3"] i:nth-child(-n+3) { background: var(--green); }
.sig[data-level="4"] i { background: var(--pink); }
.sig[data-level="4"] { animation: blink .3s steps(2) 3; }
@keyframes blink { 50% { opacity: .3; } }

.lock {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px; text-align: center;
  background: rgba(7,10,22,.72); backdrop-filter: blur(2px) saturate(.6);
}
.lock p { margin: 0; font: 10px/1.7 var(--px); max-width: 24ch; text-shadow: 2px 2px 0 var(--ink); }
.lock.nudge { animation: nudge .35s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.lock-ic {
  width: 36px; height: 40px; position: relative;
  background: var(--yellow); border: 3px solid var(--ink); margin-top: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.lock-ic::before { content: ""; position: absolute; left: 4px; right: 4px; top: -19px; height: 16px; border: 4px solid var(--ink); border-bottom: 0; }
.lock-ic::after { content: ""; position: absolute; left: 12px; top: 12px; width: 6px; height: 10px; background: var(--ink); }

/* encounter */
.enc { position: absolute; left: 10px; right: 10px; top: 40px; z-index: 6; animation: encIn .25s steps(4); }
.device:has(.enc:not([hidden])) .screen canvas { filter: brightness(.45) saturate(.6); }
@keyframes encIn { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0); } }
.enc-card { width: 100%; text-align: center; background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--blue), 6px 6px 0 2px var(--ink), 0 0 40px rgba(7,10,22,.8); padding: 14px 16px 16px; }
.enc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.enc-tag { font: 7px var(--px); color: var(--blue); letter-spacing: .06em; }
.enc-stage { position: relative; height: clamp(64px, 20vw, 86px); display: grid; place-items: center; margin: 6px 0 4px; }
.enc-stage canvas { width: clamp(58px, 18vw, 78px); height: auto; image-rendering: pixelated; animation: bob 1s steps(2) infinite; filter: drop-shadow(3px 3px 0 var(--ink)); }
.enc.legendary .enc-stage canvas { animation: bob 1s steps(2) infinite, flick 1.6s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.enc-stage .net { position: absolute; inset: 10% 30%; border: 3px dashed var(--yellow); opacity: 0; pointer-events: none; }
.enc-stage.hit .net { animation: net .5s forwards; }
.enc-stage.miss canvas { animation: dodge .35s; }
@keyframes net { 0% { opacity: 0; transform: scale(1.8); } 60% { opacity: 1; transform: scale(.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes dodge { 30% { transform: translateX(-14px); } 70% { transform: translateX(10px); } }
.phase-won .enc-stage canvas { animation: none; }
.phase-lost .enc-stage canvas { opacity: .15; animation: flick .4s steps(2) 3; }
.enc h3 { font-size: 14px; margin-top: 2px; }
.phase-catch .enc-type { display: none; }
.enc-type { margin: 4px 0 0; font-size: 18px; color: var(--muted); }
.enc-desc { margin: 6px 0 10px; font-size: 18px; line-height: 1.15; color: var(--text); min-height: 2.3em; }
.enc-meter { display: none; margin-top: 8px; }
.phase-catch .enc-meter { display: block; }
.meter { position: relative; height: 18px; background: #0a0e22; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--line); }
.meter .zone { position: absolute; top: 0; bottom: 0; background: var(--green); box-shadow: inset 0 0 0 2px var(--green-d); }
.meter .needle { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--yellow); border: 1px solid var(--ink); }
.nets { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; font-size: 17px; color: var(--muted); }
.nets i { width: 10px; height: 10px; border: 2px solid var(--ink); background: #2a3566; }
.nets i.on { background: var(--yellow); }
.nets span { margin-left: 4px; }
.enc-btns { display: flex; gap: 10px; justify-content: center; }
.enc-btns .btn { min-width: 96px; }
.phase-won .enc-card { box-shadow: 0 0 0 2px var(--green), 4px 4px 0 2px var(--ink), 0 0 30px rgba(62,224,106,.4); }

.rar { font: 7px var(--px); padding: 4px 6px; border: 2px solid var(--ink); color: var(--ink); background: var(--green); letter-spacing: .05em; }
.rar.r-uncommon { background: var(--blue); }
.rar.r-rare { background: var(--yellow); }
.rar.r-legendary { background: var(--pink); }

.dev-msg { min-height: 2.6em; margin: 12px 2px 4px; font-size: 19px; line-height: 1.3; color: var(--text); }
.dev-msg::before { content: "▶ "; color: var(--yellow); }

/* controls */
.controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 4px 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 46px); }
.dpad .d { background: #0c1129; border: 3px solid var(--ink); padding: 0; cursor: pointer; display: grid; place-items: center; touch-action: none; }
.dpad .d i { width: 0; height: 0; border: 7px solid transparent; }
.dpad .up { grid-area: 1/2; border-bottom: 0; border-radius: 6px 6px 0 0; } .dpad .up i { border-bottom-color: var(--muted); margin-top: -7px; }
.dpad .down { grid-area: 3/2; border-top: 0; border-radius: 0 0 6px 6px; } .dpad .down i { border-top-color: var(--muted); margin-bottom: -7px; }
.dpad .left { grid-area: 2/1; border-right: 0; border-radius: 6px 0 0 6px; } .dpad .left i { border-right-color: var(--muted); margin-left: -7px; }
.dpad .right { grid-area: 2/3; border-left: 0; border-radius: 0 6px 6px 0; } .dpad .right i { border-left-color: var(--muted); margin-right: -7px; }
.dpad .mid { grid-area: 2/2; background: #0c1129; border-top: 3px solid #0c1129; }
.dpad .d.held, .dpad .d:active { background: #1d2a5c; }
.dpad .d.held i, .dpad .d:active i { filter: brightness(1.6); }
.ab { display: flex; gap: 16px; align-items: center; transform: rotate(-18deg); padding-right: 4px; }
.round {
  position: relative; width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  font: 14px var(--px); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 3px 3px 0 rgba(255,255,255,.4), 3px 3px 0 var(--ink);
  touch-action: manipulation;
}
.round:active { transform: translate(2px,2px); box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), 1px 1px 0 var(--ink); }
.round.a { background: var(--yellow); margin-top: -26px; }
.round.b { background: var(--blue); }
.round::after { content: attr(data-label); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font: 7px var(--px); color: var(--muted); white-space: nowrap; }
.keys { margin: 22px 0 0; text-align: center; font-size: 17px; color: var(--muted); }

.log { margin-top: 14px; background: #0a0e22; border: 3px solid var(--ink); padding: 10px; }
.log-head { display: flex; justify-content: space-between; align-items: center; font: 8px var(--px); color: var(--muted); }
.log-head b { color: var(--yellow); font-weight: 400; }
.slots { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.slot { background: #111a3c; border: 2px solid #1f2a5a; padding: 6px 2px 4px; text-align: center; }
.slot img { width: 100%; max-width: 36px; aspect-ratio: 1; display: block; margin: 0 auto; }
.slot span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.got { border-color: var(--green-d); background: #13244a; animation: pop .35s steps(3); }
.slot.got span { color: var(--text); }
.slot.got.r-legendary { border-color: var(--pink); }
@keyframes pop { 50% { transform: scale(1.12); } }
.device.complete .log { box-shadow: 0 0 0 2px var(--yellow), 0 0 24px rgba(255,210,63,.35); }

.wallet-bar { margin-top: 22px; }
.wallet-bar .wb-on { display: none; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--green-d), 4px 4px 0 2px var(--ink); }
.wallet-bar.on .wb-on { display: flex; }
.wallet-bar.on .wb-off { display: none; }
.wb-off p { margin: 10px 0 0; text-align: center; font-size: 18px; color: var(--muted); }
.wb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wb-txt small { font: 7px var(--px); color: var(--muted); text-transform: uppercase; }
.wb-txt b { font: 11px var(--px); color: var(--green); font-weight: 400; margin-top: 4px; }

/* ---------- sections ---------- */
.sec { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 0; }
.sec-head { max-width: 640px; margin-bottom: 30px; }
.eyebrow { font: 9px var(--px); color: var(--blue); letter-spacing: .12em; margin: 0 0 12px; }
.sec h2 { font-size: clamp(20px, 3.2vw, 30px); line-height: 1.3; text-shadow: 3px 3px 0 var(--ink); }
.sec-head p:not(.eyebrow) { color: var(--muted); margin: 12px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step, .gcard, .lore-box, .token-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--line), 6px 6px 0 2px var(--ink);
}
.step { position: relative; padding: 20px 18px; }
.step .ic img { width: 48px; height: 48px; }
.step .num { position: absolute; right: 14px; top: 16px; font: 10px var(--px); color: var(--line); }
.step h3 { font-size: 12px; margin: 14px 0 8px; color: var(--yellow); }
.step p { margin: 0; color: var(--muted); font-size: 20px; }

.glitch-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gcard { position: relative; padding: 16px; }
.gart { display: grid; place-items: center; height: 120px; background: radial-gradient(circle, rgba(51,182,255,.18), transparent 70%), #0a0e22; border: 3px solid var(--ink); }
.gart img { width: 84px; height: 84px; animation: bob 1.2s steps(2) infinite; }
.gcard.r-legendary .gart { background: radial-gradient(circle, rgba(255,79,216,.25), transparent 70%), #0a0e22; }
.gcard.r-legendary .gart img { animation: bob 1.2s steps(2) infinite, flick 2.4s steps(2) infinite; }
.gcard.r-rare .gart { background: radial-gradient(circle, rgba(255,210,63,.2), transparent 70%), #0a0e22; }
.gnum { position: absolute; top: 24px; left: 24px; font: 8px var(--px); color: var(--muted); }
.gcard h3 { font-size: 13px; margin: 14px 0 8px; }
.gmeta { display: flex; gap: 8px; align-items: center; }
.gtype { font-size: 18px; color: var(--muted); }
.gcard p { margin: 10px 0 0; color: var(--muted); font-size: 20px; }

.lore-box { padding: clamp(22px, 4vw, 40px); max-width: 860px; margin: 0 auto; text-align: center; border-color: var(--ink); box-shadow: 0 0 0 2px var(--violet), 6px 6px 0 2px var(--ink), 0 0 50px rgba(139,92,255,.2); }
.lore-box p:not(.eyebrow) { color: var(--muted); max-width: 40em; margin: 14px auto 0; }
.lore .eyebrow { color: var(--pink); }

.token-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(22px, 4vw, 40px); }
.token-card h2 { color: var(--yellow); }
.token-l p:not(.eyebrow) { color: var(--muted); margin: 14px 0 0; }
.token-r .ca-box { max-width: none; }

.footer { max-width: 1200px; margin: 0 auto; padding: 64px var(--gutter) 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 3px solid var(--line); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; cursor: pointer; }
.foot-links a:hover { color: var(--text); }
.fine { color: #6b77a6; font-size: 17px; margin: 14px 0 0; max-width: 60em; }

/* ---------- wallet modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4,6,14,.78); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 400px; background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--blue), 8px 8px 0 2px var(--ink); padding: 20px; animation: encIn .2s steps(4); }
.modal-box h3 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
#wClose { background: none; border: 2px solid var(--line); color: var(--muted); width: 34px; height: 34px; cursor: pointer; font-size: 14px; }
#wClose:hover { color: var(--text); border-color: var(--text); }
.msub { color: var(--muted); margin: 12px 0 14px; font-size: 19px; }
.wlist { display: grid; gap: 8px; }
.wopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: #0a0e22; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--line); color: var(--text); text-decoration: none; cursor: pointer; text-align: left; font: 22px var(--vt); }
.wopt:hover, .wopt:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.wopt img, .wopt .wi { width: 30px; height: 30px; flex: none; image-rendering: auto; }
.wopt .wi { display: grid; place-items: center; background: var(--panel2); font: 11px var(--px); }
.wopt span:not(.wi) { flex: 1; }
.wopt small { font: 7px var(--px); color: var(--green); }
.wopt small.get { color: var(--yellow); }
.wfoot { margin: 14px 0 0; padding: 10px 12px; font-size: 18px; color: var(--text); background: rgba(255,210,63,.08); border: 2px dashed var(--yellow-d); }
.wfoot b { color: var(--yellow); font-weight: 400; }
.wnote { margin: 14px 0 0; font-size: 17px; color: var(--muted); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); pointer-events: none; }
.toast { max-width: 420px; padding: 10px 14px; background: var(--panel); color: var(--text); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--green-d), 4px 4px 0 2px var(--ink); font-size: 19px; text-align: center; animation: encIn .2s steps(3); transition: opacity .3s, transform .3s; }
.toast.err { box-shadow: 0 0 0 2px var(--pink), 4px 4px 0 2px var(--ink); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero-copy .ca-box { margin-left: auto; margin-right: auto; }
  .cta-row, .facts { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-game { justify-self: center; }
  .float.f1 { right: 2%; top: 0; } .float.f2 { left: 2%; right: auto; top: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .glitch-grid { grid-template-columns: repeat(2, 1fr); }
  .token-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .wallet-btn { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 20px; }
  .topbar { gap: 10px; padding: 10px 16px; }
  .brand-tick { display: none; }
  .brand-name { font-size: 12px; }
  .wallet-btn { font-size: 8px; padding: 8px 10px; min-height: 38px; }
  .hero { padding: 24px 16px 32px; }
  .float { display: none; }
  .logo { text-shadow: 3px 3px 0 var(--blue-d), 6px 6px 0 var(--ink); }
  .logo span { text-shadow: 3px 3px 0 var(--green-d), 6px 6px 0 var(--ink); }
  .ticker { font-size: 12px; }
  .lead { font-size: 21px; }
  .ca-box { gap: 8px; padding: 8px 8px 8px 10px; }
  .ca-text { font-size: 19px; }
  .cta-row .btn.lg { flex: 1 1 100%; }
  .cta-row .btn.icon { flex: 1; }
  .device { padding: 12px 12px 18px; border-radius: 16px 16px 44px 16px; }
  .bezel { padding: 8px; }
  .dpad { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); }
  .round { width: 54px; height: 54px; }
  .ab { gap: 12px; }
  .slot span { font-size: 12px; }
  .steps, .glitch-grid { grid-template-columns: 1fr; }
  .sec { padding-left: 16px; padding-right: 16px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 360px) {
  .controls { gap: 8px; padding: 6px 0 0; }
  .dpad { grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); }
  .round { width: 48px; height: 48px; font-size: 12px; }
  .ab { gap: 10px; padding-right: 6px; }
  .round.a { margin-top: -20px; }
  .ca-label { display: none; }
}
#play, #how, #glitches, #token { scroll-margin-top: 72px; }
.wallet-btn.on .wtxt { text-transform: none; font-family: var(--px); }
.hero-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero-top .chip { margin: 0; }
.hero-logo { width: 112px; height: 112px; image-rendering: auto; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--line), 5px 5px 0 2px var(--ink), 0 0 30px rgba(89,227,255,.25); animation: hop 2.4s steps(4) infinite; }
.brand img { image-rendering: auto; }
@media (max-width: 1000px) { .hero-top { flex-direction: column; } }
@media (max-width: 560px) { .hero-logo { width: 88px; height: 88px; } }
@media (max-width: 420px) { .ca-box:not(.live) .ca-text { font-size: 10px; } }
