/* =========================================================
   PIKAPIXEL — STYLES
   ========================================================= */
:root {
  --yellow: #ffd60a; --yellow-2: #fff3a0; --yellow-d: #c9a400;
  --ink: #07080f; --navy: #0b1026; --navy-2: #121a3d; --blue: #1d2b53; --blue-2: #2a3a73;
  --red: #ff3b3b; --red-d: #b8222a; --purple: #8b2cff; --magenta: #ff2bd6; --cyan: #00f0ff;
  --text: #e9ecff; --muted: #9aa3c7;
  --pix: 'Press Start 2P', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--navy); color: var(--text); font: 16px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, canvas, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--pix); font-weight: 400; line-height: 1.35; margin: 0; letter-spacing: .02em; }
.y { color: var(--yellow); }
.p { color: var(--magenta); }
.kicker { font: 10px/1.6 var(--pix); color: var(--yellow); letter-spacing: .08em; margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink); --sh: var(--yellow-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 11px/1 var(--pix); letter-spacing: .04em; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 0; padding: 13px 16px; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--sh), 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
  margin: 3px; transition: transform .08s, filter .15s; user-select: none;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--sh), 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn svg { width: 16px; height: 16px; }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); --sh: var(--yellow-d); }
.btn-red { --bg: var(--red); --fg: #fff; --sh: var(--red-d); }
.btn-blue { --bg: #2f7dff; --fg: #fff; --sh: #1d4fb0; }
.btn-ghost { --bg: var(--blue); --fg: var(--text); --sh: #111a3a; }
.btn-ghost.is-on { --bg: #14532d; --fg: #b7ffcf; --sh: #0b331b; }
.btn-pump { --bg: #8bf3a8; --fg: var(--ink); --sh: #3fb86a; width: calc(100% - 6px); }
.btn-sm { font-size: 9px; padding: 10px 12px; }
.btn-lg { font-size: 13px; padding: 17px 22px; }
.is-soon { position: relative; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter);
  background: rgba(7, 8, 15, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 var(--blue);
}
.logo { display: flex; align-items: center; gap: 10px; font: 15px/1 var(--pix); color: var(--yellow); text-decoration: none; text-shadow: 3px 3px 0 var(--red-d); }
.logo-bolt { width: 20px; height: 20px; background: url(../img/favicon.svg) center/contain no-repeat; image-rendering: pixelated; }
.ticker { font: 9px/1 var(--pix); background: var(--red); color: #fff; padding: 6px 7px; box-shadow: 0 0 0 3px var(--ink); }
.nav { display: flex; gap: 18px; margin-left: 12px; }
.nav a { font: 9px/1 var(--pix); text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--yellow); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; background: var(--blue); color: var(--text); box-shadow: 0 0 0 3px var(--ink); margin: 3px; text-decoration: none; }
.icon-btn:hover { background: var(--yellow); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
#heroBg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); }
.hero-inner { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) var(--gutter) 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(22px, 3.6vw, 46px); color: #fff; text-shadow: 4px 4px 0 var(--ink); }
.hero h1 span { color: var(--yellow); text-shadow: 4px 4px 0 var(--red-d), 8px 8px 0 var(--ink); }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: #d5daf5; max-width: 34em; margin: 22px 0 26px; text-shadow: 0 2px 0 var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.ca-box { max-width: 640px; background: rgba(7, 8, 15, .82); padding: 16px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--blue), 8px 8px 0 6px rgba(0,0,0,.35); }
.ca-label { font: 9px/1 var(--pix); color: var(--muted); margin-bottom: 10px; letter-spacing: .1em; }
.ca-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ca-row code { flex: 1; min-width: 0; font: 11px/1.7 var(--pix); color: var(--yellow); background: var(--ink); padding: 12px; overflow-wrap: anywhere; word-break: break-all; box-shadow: inset 0 0 0 2px var(--blue); user-select: all; }
.hero-art { position: relative; display: grid; justify-items: center; }
#heroPika { width: min(340px, 70vw); height: auto; image-rendering: pixelated; position: relative; z-index: 1; }
.pedestal { width: min(220px, 46vw); height: 22px; margin-top: -18px; background: rgba(0,0,0,.4); border-radius: 50%; filter: blur(2px); }
.bubble { font: 10px/1.7 var(--pix); color: var(--ink); background: #fff; padding: 12px 14px; position: relative; margin-bottom: 4px; box-shadow: 0 0 0 3px var(--ink); animation: bob 3s ease-in-out infinite; text-align: center; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 12px; height: 12px; background: #fff; box-shadow: 3px 3px 0 var(--ink); transform: translateX(-50%) rotate(45deg); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.marquee { background: var(--yellow); color: var(--ink); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); overflow: hidden; }
.track { display: flex; gap: 26px; width: max-content; padding: 12px 0; font: 11px/1 var(--pix); animation: marq 38s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 110px) var(--gutter); }
.sec-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.sec-head h2, .about h2 { font-size: clamp(18px, 2.6vw, 30px); color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.sec-head p:not(.kicker) { color: var(--muted); margin: 14px 0 0; }

/* ---------- Play area ---------- */
.play { background: linear-gradient(180deg, var(--navy) 0%, #0e1533 100%); }
.play-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.handheld { background: var(--yellow); padding: 14px 14px 18px; border-radius: 10px 10px 34px 10px; box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px rgba(0,0,0,.45), inset 0 -6px 0 var(--yellow-d); }
.handheld-top { display: flex; align-items: center; gap: 10px; font: 8px/1.4 var(--pix); color: var(--ink); opacity: .8; margin: 0 4px 10px; }
.led { width: 9px; height: 9px; background: var(--red); box-shadow: 0 0 0 2px var(--ink), 0 0 10px var(--red); animation: led 1.4s steps(2) infinite; }
@keyframes led { 50% { opacity: .35; } }
.screen { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 78vh; background: var(--ink); overflow: hidden; box-shadow: 0 0 0 4px var(--ink), 0 0 0 10px #1a1430; border-radius: 4px; outline: none; }
.screen:focus-visible { box-shadow: 0 0 0 4px var(--ink), 0 0 0 10px var(--cyan); }
.screen.playing { touch-action: none; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px; pointer-events: none; font-family: var(--pix); }
.hud-l { display: flex; gap: 8px; }
.stat, .hud-r, .hud-zone { background: rgba(7,8,15,.78); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px rgba(255,214,10,.25); padding: 7px 9px; }
.stat small, .hud-r small { display: block; font-size: 7px; color: var(--muted); margin-bottom: 5px; }
.stat b { font-size: 12px; color: var(--yellow); font-weight: 400; }
.hud-zone { font-size: 8px; color: #fff; align-self: center; }
.hud-r { min-width: 150px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; }
.hud-r small { grid-column: 1 / -1; }
.hud-r b { font-size: 9px; color: #fff; font-weight: 400; }
.ebar { height: 10px; background: #1a1430; box-shadow: 0 0 0 2px var(--ink); overflow: hidden; }
.ebar i { display: block; height: 100%; width: 70%; background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, var(--yellow-2) 6px 8px); transition: width .2s; }
.ebar i.low { background: repeating-linear-gradient(90deg, var(--red) 0 6px, #ff8a8a 6px 8px); animation: led .5s steps(2) infinite; }
#minimap { position: absolute; right: 10px; bottom: 10px; width: 180px; height: 64px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px rgba(255,214,10,.45); opacity: .9; pointer-events: none; }
.banner { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -10px) scale(.9); opacity: 0; pointer-events: none; text-align: center; transition: opacity .25s, transform .25s; }
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner b { display: block; font: 400 clamp(14px, 3vw, 28px)/1.2 var(--pix); color: var(--yellow); text-shadow: 3px 3px 0 var(--red-d), 6px 6px 0 var(--ink); white-space: nowrap; }
.banner small { display: inline-block; margin-top: 10px; font: 8px/1.5 var(--pix); color: #fff; background: rgba(7,8,15,.8); padding: 6px 8px; }
.banner.purple b { color: #ff7bf0; text-shadow: 3px 3px 0 #5a0d80, 6px 6px 0 var(--ink); }
.banner.blue b { color: #8fe6ff; text-shadow: 3px 3px 0 #1d4fb0, 6px 6px 0 var(--ink); }
.banner.red b { color: #fff; text-shadow: 3px 3px 0 var(--red), 6px 6px 0 var(--ink); }
.dialog { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 220px)); background: #fff; color: var(--ink); padding: 10px 12px 12px; box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px rgba(0,0,0,.4); pointer-events: none; }
.dialog b { display: inline-block; font: 8px/1 var(--pix); background: var(--ink); color: var(--yellow); padding: 5px 6px; margin-bottom: 7px; }
.dialog span { display: block; font: 600 14px/1.4 var(--sans); min-height: 1.4em; }
.joy { position: absolute; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(255,214,10,.5); opacity: 0; pointer-events: none; transition: opacity .1s; }
.joy.on { opacity: 1; }
.joy i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--ink); transform: translate(-50%, -50%); }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(7, 8, 15, .62); backdrop-filter: blur(1px); }
.overlay[hidden] { display: none; }
.ov-card { text-align: center; max-width: 440px; background: rgba(11,16,38,.92); padding: 24px 22px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow), 10px 10px 0 6px rgba(0,0,0,.4); }
.ov-card h3 { font-size: clamp(18px, 3vw, 26px); color: var(--yellow); text-shadow: 3px 3px 0 var(--red-d); margin-bottom: 12px; }
.ov-card p { margin: 0 0 16px; color: #d5daf5; font-size: 15px; }
.ov-kicker { font: 9px/1.5 var(--pix) !important; color: var(--magenta) !important; margin-bottom: 10px !important; }
.ov-ctl { font: 8px/1.6 var(--pix) !important; color: var(--muted) !important; margin: 14px 0 0 !important; }
.ov-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.ov-stats div { background: var(--ink); padding: 10px 6px; }
.ov-stats small { display: block; font: 7px/1 var(--pix); color: var(--muted); margin-bottom: 6px; }
.ov-stats b { font: 400 14px/1 var(--pix); color: var(--yellow); }
.pad { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.hint { text-align: center; font: 8px/1.6 var(--pix); color: var(--ink); opacity: .75; margin: 10px 0 0; }
.hint .mob { display: none; }
@media (pointer: coarse) { .hint .mob { display: inline; } .hint .desk { display: none; } }

.side { display: grid; gap: 22px; }
.panel { background: var(--navy-2); padding: 18px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--blue), 8px 8px 0 6px rgba(0,0,0,.35); }
.panel h3 { font-size: 11px; color: var(--yellow); margin-bottom: 14px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-grid div { background: var(--ink); padding: 10px; }
.ps-grid small, .name-field span { display: block; font: 7px/1 var(--pix); color: var(--muted); margin-bottom: 7px; }
.ps-grid b { font: 400 15px/1 var(--pix); color: #fff; }
.ps-zone { font: 8px/1.6 var(--pix); color: var(--muted); margin: 12px 0; }
.ps-zone b { color: var(--yellow); font-weight: 400; }
.name-field { display: block; margin-bottom: 12px; }
.name-field input { width: 100%; font: 12px/1 var(--pix); color: var(--yellow); background: var(--ink); border: 0; padding: 12px; box-shadow: inset 0 0 0 2px var(--blue); text-transform: uppercase; }
.name-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--yellow); }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.lb-head h3 { margin: 0; }
.lb-mode { font: 7px/1 var(--pix); color: var(--ink); background: var(--cyan); padding: 5px 6px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.lb-list li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; background: var(--ink); padding: 9px 10px; font-size: 13px; }
.lb-list li:nth-child(1) .rk { color: var(--yellow); }
.lb-list li:nth-child(2) .rk { color: #d6dcf0; }
.lb-list li:nth-child(3) .rk { color: #e8a060; }
.lb-list li.me { box-shadow: inset 0 0 0 2px var(--yellow); }
.lb-list .rk { font: 10px/1 var(--pix); color: var(--muted); }
.lb-list .nm { font: 9px/1.4 var(--pix); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list .nm small { display: block; font: 11px/1.2 var(--sans); color: var(--muted); }
.lb-list .zn { font: 6px/1.3 var(--pix); color: var(--muted); max-width: 64px; text-align: right; }
.lb-list .sc { font: 400 11px/1 var(--pix); color: var(--yellow); }
.lb-list .lb-empty { display: block; text-align: center; color: var(--muted); padding: 18px 10px; }
.lb-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- How ---------- */
.how { background: #0e1533; }
.cards { list-style: none; padding: 0; margin: 0 auto; max-width: 1180px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: c; }
.card { position: relative; background: var(--navy-2); padding: 22px 18px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--blue); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow); }
.card-ico { width: 64px; height: 64px; image-rendering: pixelated; margin-bottom: 14px; background: var(--ink); box-shadow: 0 0 0 3px var(--blue); }
.card .num { position: absolute; top: 18px; right: 16px; font: 18px/1 var(--pix); color: var(--blue-2); }
.card h3 { font-size: 11px; color: var(--yellow); margin-bottom: 10px; line-height: 1.6; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, #0e1533, var(--navy)); }
.about-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; }
.about-art { background: var(--yellow); padding: 20px; box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px var(--red-d); }
#aboutPika { width: 100%; height: auto; image-rendering: pixelated; background: var(--navy-2); }
.about p:not(.kicker) { color: #d5daf5; font-size: 17px; margin: 18px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { background: var(--navy-2); padding: 12px 14px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--blue); margin: 5px; }
.facts small { display: block; font: 7px/1 var(--pix); color: var(--muted); margin-bottom: 7px; }
.facts b { font: 400 11px/1 var(--pix); color: var(--yellow); }

/* ---------- Community ---------- */
.community { background: var(--navy); position: relative; }
.comm-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.foot { padding: 40px var(--gutter) 60px; text-align: center; background: var(--ink); border-top: 3px solid var(--blue); color: var(--muted); font-size: 14px; }
.foot .logo { justify-content: center; margin-bottom: 18px; }
.foot p { max-width: 720px; margin: 0 auto 10px; }
.foot .small { font-size: 12px; opacity: .8; }

/* ---------- Wallet modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(7,8,15,.75); }
.modal.open { display: grid; }
.modal-card { position: relative; width: min(420px, 100%); background: var(--navy-2); padding: 24px 20px 20px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow); }
.modal-card h3 { font-size: 12px; color: var(--yellow); margin-bottom: 10px; padding-right: 30px; }
.modal-sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; background: var(--blue); color: #fff; cursor: pointer; font-size: 14px; }
.wlist { display: grid; gap: 8px; }
.wopt { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--ink); color: var(--text); border: 0; text-decoration: none; cursor: pointer; font: 600 15px/1 var(--sans); text-align: left; box-shadow: inset 0 0 0 2px var(--blue); }
.wopt:hover, .wopt:focus-visible { box-shadow: inset 0 0 0 2px var(--yellow); }
.wopt img, .wopt .wi { width: 28px; height: 28px; flex: none; }
.wopt .wi { display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 11px/1 var(--pix); }
.wopt small { margin-left: auto; font: 7px/1 var(--pix); color: #8bf3a8; }
.wopt small.get { color: var(--muted); }
.wfoot { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--yellow); color: var(--ink); font: 600 14px/1.4 var(--sans); padding: 12px 14px; box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px rgba(0,0,0,.4); animation: tin .2s ease-out; transition: opacity .35s, transform .35s; }
.toast.err { background: var(--red); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .play-grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 24px; padding-top: 28px; }
  .hero-art { order: -1; }
  #heroPika { width: min(220px, 56vw); }
  .cta { justify-content: center; }
  .ca-box { margin: 0 auto; text-align: left; }
  .side { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-art { width: 200px; margin: 0 auto; }
  .facts { justify-content: center; }
  .wallet-btn { display: none; }
}
@media (max-width: 600px) {
  :root { --header: 58px; }
  .top { gap: 8px; }
  .logo { font-size: 11px; gap: 7px; }
  .logo-bolt { width: 16px; height: 16px; }
  .ticker { display: none; }
  .icon-btn { width: 32px; height: 32px; margin: 3px 2px; }
  .icon-btn svg { width: 14px; height: 14px; }
  .hide-xs { display: none; }
  .top .btn-sm { font-size: 8px; padding: 9px 9px; }
  .handheld { padding: 10px 10px 14px; border-radius: 8px 8px 24px 8px; }
  .handheld-top { font-size: 6px; }
  .screen { aspect-ratio: 4 / 5; max-height: 70vh; }
  .hud { padding: 6px; gap: 5px; }
  .hud-zone { display: none; }
  .stat, .hud-r { padding: 5px 6px; }
  .stat b { font-size: 10px; }
  .hud-r { min-width: 104px; }
  #minimap { width: 120px; height: 43px; right: 6px; bottom: 6px; }
  .dialog { width: calc(100% - 16px); bottom: 56px; }
  .cards { grid-template-columns: 1fr; }
  .btn-lg { font-size: 11px; padding: 15px 16px; }
  .ov-card { padding: 18px 14px; }
}
@media (max-width: 400px) {
  .top { gap: 4px; padding: 0 10px; }
  .logo { font-size: 9px; gap: 5px; }
  .top-actions { gap: 0; }
  .icon-btn { width: 28px; height: 28px; }
  .top .btn-sm { font-size: 7px; padding: 8px 7px; }
  .hero h1 { font-size: 18px; }
  .kicker { font-size: 8px; }
  .ca-row code { font-size: 9px; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 600px) {
  .overlay { padding: 10px; overflow: auto; }
  .ov-card { padding: 16px 12px; }
  .ov-card h3 { font-size: 16px; margin-bottom: 8px; }
  .ov-card p { font-size: 13px; margin-bottom: 10px; }
  .ov-stats { margin: 4px 0 10px; }
  .ov-stats b { font-size: 11px; }
  .ov-card .btn-lg { font-size: 10px; padding: 13px 14px; }
}
