/* =========================================================
   POKEBLITZ — styles
   Palette: red / warm white / near-black + electric yellow
   ========================================================= */
:root {
  --red: #e8322b;
  --red-dk: #a8191a;
  --red-xdk: #6e0f14;
  --white: #fff6e8;
  --cream: #f1e2c8;
  --cream-dk: #d8c3a0;
  --ink: #141018;
  --ink-2: #221b27;
  --ink-3: #352a3c;
  --yellow: #ffd23f;
  --yellow-dk: #e0a400;
  --px: 4px;
  --font-display: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Pixelify Sans", ui-monospace, "Courier New", monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; margin: 0; letter-spacing: .02em; }
p { margin: 0; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-family: var(--font-display); font-size: 11px; text-decoration: none; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Pixel buttons (stepped corners) ---------- */
.btn {
  --bg: var(--red); --fg: var(--white); --edge: var(--ink); --drop: var(--red-xdk);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; line-height: 1; letter-spacing: .04em;
  color: var(--fg); background: var(--bg);
  padding: 16px 20px; min-height: 48px;
  border: 0; cursor: pointer; text-decoration: none; text-transform: uppercase;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--edge),
    0 var(--px) 0 0 var(--edge),
    calc(var(--px) * -1) 0 0 0 var(--edge),
    var(--px) 0 0 0 var(--edge),
    inset 0 calc(var(--px) * -1) 0 0 var(--drop),
    0 calc(var(--px) * 2) 0 0 rgba(0,0,0,.35);
  transition: transform .08s steps(2), filter .1s;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--edge), 0 var(--px) 0 0 var(--edge),
    calc(var(--px) * -1) 0 0 0 var(--edge), var(--px) 0 0 0 var(--edge); }
.btn:focus-visible { outline-offset: 8px; }
.btn--red { --bg: var(--red); --fg: var(--white); --drop: var(--red-dk); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); --drop: var(--yellow-dk); }
.btn--white { --bg: var(--white); --fg: var(--ink); --drop: var(--cream-dk); }
.btn--ghost { --bg: transparent; --fg: var(--white); --edge: var(--white); --drop: transparent; box-shadow: 0 -3px 0 0 var(--white), 0 3px 0 0 var(--white), -3px 0 0 0 var(--white), 3px 0 0 0 var(--white); }
.btn--sm { font-size: 10px; padding: 10px 12px; min-height: 36px; }
.btn--lg { font-size: 14px; padding: 20px 26px; min-height: 56px; }
.btn.is-ok { --bg: #3ccf6e; --drop: #1f8f45; --fg: var(--ink); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Eyebrows / section heads ---------- */
.eyebrow { font-family: var(--font-display); font-size: 10px; letter-spacing: .1em; color: var(--yellow); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.eyebrow--dark { color: var(--red); }
.eyebrow--light { color: var(--yellow); }
.eyebrow .dot { width: 8px; height: 8px; background: var(--yellow); animation: blink 1s steps(1) infinite; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(22px, 4.2vw, 40px); }
.sec-head--light h2 { color: var(--white); }
.sec-lead { margin: 16px auto 0; max-width: 560px; font-size: 20px; color: var(--ink-3); }
.sec-lead--light { color: var(--cream); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 16, 24, .92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 4px solid var(--red);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__orb { width: 32px; height: 32px; }
.brand__name { font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; }
.brand__name span { color: var(--red); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { font-family: var(--font-display); font-size: 10px; text-decoration: none; padding: 10px 12px; color: var(--cream); }
.nav a:hover { color: var(--yellow); background: var(--ink-2); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; background: var(--ink-2); border: 0; padding: 12px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 4px; background: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 70%, rgba(232,50,43,.18) 100%),
    var(--ink);
  padding: 56px 0 0;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; opacity: .7;
  background-image:
    linear-gradient(var(--white), var(--white)), linear-gradient(var(--yellow), var(--yellow)),
    linear-gradient(var(--white), var(--white)), linear-gradient(var(--white), var(--white)),
    linear-gradient(var(--yellow), var(--yellow)), linear-gradient(var(--white), var(--white)),
    linear-gradient(var(--white), var(--white)), linear-gradient(var(--yellow), var(--yellow));
  background-size: 4px 4px, 4px 4px, 4px 4px, 8px 8px, 4px 4px, 4px 4px, 4px 4px, 8px 8px;
  background-position: 8% 18%, 22% 70%, 40% 12%, 55% 82%, 68% 30%, 84% 14%, 92% 60%, 3% 88%;
  background-repeat: no-repeat;
  animation: twinkle 2.4s steps(2) infinite;
}
.cloud { position: absolute; width: 128px; opacity: .14; }
.cloud--1 { top: 12%; left: -10%; animation: drift 38s linear infinite; }
.cloud--2 { top: 58%; left: -20%; width: 96px; animation: drift 52s linear infinite -20s; }
.cloud--3 { top: 30%; left: -15%; width: 176px; opacity: .08; animation: drift 70s linear infinite -40s; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; min-height: 520px; }
.hero__title { font-size: clamp(30px, 6vw, 64px); line-height: 1.2; text-shadow: 4px 4px 0 var(--red-xdk); }
.hero__title span { display: inline-block; }
.hero__title .hl { color: var(--yellow); text-shadow: 4px 4px 0 var(--red); animation: jolt 2.6s steps(1) infinite; }
.hero__lead { margin-top: 24px; font-size: clamp(20px, 2.2vw, 24px); max-width: 520px; color: var(--cream); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.hero__small { margin-top: 24px; font-family: var(--font-display); font-size: 10px; color: var(--cream-dk); letter-spacing: .06em; line-height: 1.8; }

.hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.burst { position: absolute; inset: 8%;
  background: repeating-conic-gradient(from 0deg, rgba(255,210,63,.13) 0 10deg, transparent 10deg 20deg);
  border-radius: 50%; animation: spin 30s linear infinite; }
.orb-wrap { position: absolute; left: 50%; top: 48%; width: 60%; transform: translate(-50%, -50%); }
.hero-orb { width: 100%; height: auto; animation: bob 1.2s steps(2) infinite;
  filter: drop-shadow(6px 0 0 #fff6e8) drop-shadow(-6px 0 0 #fff6e8) drop-shadow(0 6px 0 #fff6e8) drop-shadow(0 -6px 0 #fff6e8) drop-shadow(8px 10px 0 rgba(232,50,43,.45)); }
.orb-shadow { width: 70%; height: 10px; margin: 18px auto 0; background: rgba(0,0,0,.55); animation: shadow 1.2s steps(2) infinite; }
.critter { position: absolute; width: 22%; }
.critter--blip { left: 2%; bottom: 10%; animation: hop 0.9s steps(2) infinite; }
.critter--volt { right: 0; top: 10%; width: 20%; animation: hop 1.1s steps(2) infinite -.4s; }
.spark { position: absolute; width: 9%; animation: blink 0.8s steps(1) infinite; }
.spark--1 { left: 12%; top: 14%; }
.spark--2 { right: 8%; bottom: 22%; animation-delay: -.4s; }
.spark--3 { left: 78%; top: 52%; width: 5%; animation-delay: -.2s; }
.speed-lines { position: absolute; left: -6%; top: 40%; display: grid; gap: 14px; }
.speed-lines i { display: block; height: 6px; background: var(--white); opacity: .5; animation: zip .6s steps(3) infinite; }
.speed-lines i:nth-child(1) { width: 60px; }
.speed-lines i:nth-child(2) { width: 90px; animation-delay: -.2s; }
.speed-lines i:nth-child(3) { width: 40px; animation-delay: -.4s; }
.bubble { position: absolute; right: 14%; top: 26%; font-family: var(--font-display); font-size: 14px; color: var(--ink); background: var(--yellow); padding: 10px 12px;
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink); animation: blink 1.2s steps(1) infinite; }

.ticker-strip { margin-top: 48px; background: var(--red); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); overflow: hidden; }
.ticker-strip__track { display: flex; gap: 28px; width: max-content; padding: 14px 0; font-family: var(--font-display); font-size: 12px; animation: marquee 26s linear infinite; }
.ticker-strip__track span:nth-child(even) { color: var(--yellow); }

/* ---------- Game section ---------- */
.game-sec { padding: 88px 0 72px; background:
  radial-gradient(circle at 50% 0%, rgba(232,50,43,.25), transparent 60%), var(--ink-2); scroll-margin-top: 64px; }
.cabinet {
  position: relative; max-width: 880px; margin: 0 auto;
  background: var(--red); padding: 0 20px 20px;
  box-shadow:
    0 -6px 0 0 var(--ink), 0 6px 0 0 var(--ink), -6px 0 0 0 var(--ink), 6px 0 0 0 var(--ink),
    inset 8px 0 0 0 #f2574f, inset -8px 0 0 0 var(--red-dk),
    0 20px 0 0 rgba(0,0,0,.35);
}
.cabinet__marquee { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0 16px; }
.cabinet__title { font-family: var(--font-display); font-size: clamp(12px, 2.6vw, 20px); color: var(--white); text-shadow: 3px 3px 0 var(--ink); text-align: center; }
.bulbs { flex: 1; max-width: 120px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 16px);
  animation: bulbs .5s steps(1) infinite; }

.screen { position: relative; background: var(--ink); padding: 12px; box-shadow: inset 0 0 0 4px #000, inset 0 0 0 8px var(--ink-3); }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; padding: 6px 8px 10px; }
.hud__cell { display: flex; flex-direction: column; gap: 6px; }
.hud__cell--mid { align-items: center; }
.hud__cell--right { align-items: flex-end; }
.hud__label { font-family: var(--font-display); font-size: 9px; color: var(--cream-dk); letter-spacing: .1em; }
.hud__val { font-family: var(--font-display); font-size: clamp(14px, 3vw, 22px); color: var(--white); }
.hud__cell--mid .hud__val { color: var(--yellow); }
.hud__val.pop { animation: pop .25s steps(3); }
.timebar { height: 12px; background: var(--ink-3); margin: 0 8px 10px; box-shadow: 0 0 0 2px #000; }
.timebar__fill { height: 100%; width: 100%; background: var(--yellow); transform-origin: left center; }
.timebar__fill.low { background: var(--red); }

.arena {
  position: relative; overflow: hidden;
  height: clamp(320px, 58vh, 500px);
  background:
    linear-gradient(rgba(255,246,232,.04) 2px, transparent 2px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,246,232,.04) 2px, transparent 2px) 0 0 / 32px 32px,
    radial-gradient(circle at 50% 40%, #2a1f30, #120e16 75%);
  box-shadow: inset 0 0 0 2px var(--ink-3);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: default;
}
.arena.is-live { cursor: crosshair; touch-action: none; }
.arena.flash-miss { animation: flashRed .35s steps(2); }
.screen.shake { animation: shake .25s steps(4); }
.scanlines { position: absolute; inset: 12px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }

.target {
  --size: 72px;
  position: absolute; left: 0; top: 0; width: var(--size); height: var(--size);
  padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 3;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
.target[hidden] { display: none; }
.target__img { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,210,63,.8)); animation: appear .12s steps(2); }
.target__ring { position: absolute; inset: -10px; pointer-events: none;
  box-shadow: 0 -4px 0 var(--yellow), 0 4px 0 var(--yellow), -4px 0 0 var(--yellow), 4px 0 0 var(--yellow);
  animation: ring .6s steps(3) infinite; }
.target:focus-visible { outline: 3px dashed var(--white); outline-offset: 12px; }

.panel {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; padding: 20px;
  background: rgba(20,16,24,.82);
}
.panel[hidden] { display: none; }
.panel__orb { width: 64px; height: 64px; animation: bob 1s steps(2) infinite; }
.panel__title { font-size: clamp(16px, 3.4vw, 26px); color: var(--white); text-shadow: 3px 3px 0 var(--red); }
.panel__text { max-width: 420px; font-size: 19px; color: var(--cream); }
.panel__best { font-family: var(--font-display); font-size: 10px; color: var(--cream-dk); letter-spacing: .08em; }
.panel__best strong { color: var(--yellow); }
.panel__reason { font-family: var(--font-display); font-size: 12px; color: var(--ink); background: var(--yellow); padding: 8px 10px; }
.panel__rank { font-family: var(--font-display); font-size: 10px; color: var(--cream); letter-spacing: .06em; }
.panel__rank strong { color: var(--yellow); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(420px, 100%); }
.results__cell { background: var(--ink-2); padding: 10px 6px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 2px var(--ink-3); }
.results__cell span { font-family: var(--font-display); font-size: 8px; color: var(--cream-dk); }
.results__cell strong { font-family: var(--font-display); font-size: clamp(14px, 3vw, 20px); color: var(--white); font-weight: 400; }
.newbest { font-family: var(--font-display); font-size: 12px; color: var(--yellow); animation: blink .5s steps(1) infinite; }
.newbest[hidden] { display: none; }

.countdown { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(48px, 12vw, 96px); color: var(--yellow); text-shadow: 6px 6px 0 var(--red); }
.countdown[hidden] { display: none; }
.countdown.tick { animation: zoom .4s steps(3); }

.fx { position: absolute; z-index: 4; pointer-events: none; }
.fx-pop { font-family: var(--font-display); font-size: 14px; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); transform: translate(-50%, -50%); animation: rise .6s steps(6) forwards; white-space: nowrap; }
.fx-bit { width: 8px; height: 8px; background: var(--yellow); animation: bit .45s steps(5) forwards; }
.fx-bit.w { background: var(--white); }
.fx-bit.r { background: var(--red); }
.fx-miss { font-family: var(--font-display); font-size: 28px; color: var(--red); text-shadow: 3px 3px 0 var(--white); transform: translate(-50%, -50%); }

.cabinet__panel { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 22px 0 6px; }
.stick { width: 24px; height: 40px; position: relative; }
.stick::before { content: ""; position: absolute; left: 8px; top: 16px; width: 8px; height: 24px; background: var(--ink); }
.stick::after { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--ink); box-shadow: inset -4px -4px 0 #000, inset 4px 4px 0 var(--ink-3); }
.pbtn { width: 28px; height: 28px; box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink); }
.pbtn--r { background: var(--red-dk); }
.pbtn--y { background: var(--yellow); }
.pbtn--w { background: var(--white); }
.game-tip { text-align: center; margin: 36px auto 0; max-width: 620px; color: var(--cream-dk); font-size: 16px; }

/* ---------- How ---------- */
.how { background: var(--white); color: var(--ink); padding: 88px 0; scroll-margin-top: 64px;
  background-image: radial-gradient(var(--cream) 2px, transparent 2px); background-size: 24px 24px; }
.how .sec-head h2 { color: var(--ink); text-shadow: 4px 4px 0 var(--cream-dk); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; background: #fff; padding: 36px 20px 26px; text-align: center;
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink), 8px 12px 0 0 var(--cream-dk); }
.step__num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 14px;
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink); }
.step__icon { width: 64px; height: 64px; margin: 6px auto 18px; }
.step h3 { font-size: 16px; color: var(--red); margin-bottom: 10px; }
.step p { font-size: 18px; color: var(--ink-3); }

/* ---------- Token ---------- */
.token { background: var(--red); padding: 88px 0; position: relative; overflow: hidden; scroll-margin-top: 64px;
  border-top: 12px solid var(--ink); border-bottom: 12px solid var(--ink); }
.token__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.token__copy h2 { font-size: clamp(22px, 3.6vw, 36px); text-shadow: 4px 4px 0 var(--red-xdk); }
.token__copy .sec-lead { margin-left: 0; }
.card { background: var(--white); color: var(--ink); padding: 28px;
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink), -6px 0 0 var(--ink), 6px 0 0 var(--ink), 12px 16px 0 0 rgba(0,0,0,.35); }
.card__row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.card__orb { width: 56px; height: 56px; flex: none; }
.card__name { font-family: var(--font-display); font-size: 16px; }
.card__ticker { font-family: var(--font-display); font-size: 12px; color: var(--red); margin-top: 8px; }
.chip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); font-family: var(--font-display); font-size: 9px; padding: 8px 10px; }
.chip__dot { width: 8px; height: 8px; background: linear-gradient(90deg, #9945ff 50%, #14f195 50%); }
.ca__label { display: block; font-family: var(--font-display); font-size: 10px; color: var(--ink-3); margin-bottom: 10px; }
.ca { background: var(--ink); padding: 4px; }
.ca__field { width: 100%; min-width: 0; background: var(--ink); color: var(--yellow); border: 0; padding: 12px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 15px; text-overflow: ellipsis; }
.ca__field.is-placeholder { color: var(--cream-dk); font-family: var(--font-display); font-size: 10px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.card__actions .btn { flex: 1 1 180px; }
.card__note { margin-top: 22px; font-size: 15px; color: var(--ink-3); }

/* ---------- Socials ---------- */
.socials { background: var(--ink); padding: 88px 0; scroll-margin-top: 64px; position: relative; overflow: hidden; }
.socials__inner { position: relative; text-align: center; }
.socials__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.socials__critter { position: absolute; width: 72px; left: 4%; top: 0; animation: hop 1s steps(2) infinite; }
.socials__critter--r { left: auto; right: 4%; top: auto; bottom: -10px; animation-delay: -.5s; }

/* ---------- Footer ---------- */
.footer { background: #0c090f; border-top: 4px solid var(--red); padding: 40px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font-family: var(--font-display); font-size: 14px; }
.footer__ticker { font-family: var(--font-display); font-size: 10px; color: var(--yellow); margin-top: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { font-family: var(--font-display); font-size: 10px; text-decoration: none; color: var(--cream); padding: 8px 2px; }
.footer__links a:hover { color: var(--yellow); }
.footer__disc { margin-top: 28px; font-size: 15px; color: var(--cream-dk); }
.footer__copy { margin-top: 10px; font-size: 13px; color: #8a7c8f; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 160%);
  width: max-content; max-width: calc(100% - 32px); background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-size: 11px; line-height: 1.6; padding: 14px 16px; text-align: center;
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink); transition: transform .2s steps(3), visibility 0s .2s; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .2s steps(3); }

/* ---------- Keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes drift { to { transform: translateX(140vw); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes shadow { 50% { transform: scaleX(.85); } }
@keyframes hop { 50% { transform: translateY(-10px); } }
@keyframes zip { 0% { transform: translateX(0); opacity: .6; } 100% { transform: translateX(-40px); opacity: 0; } }
@keyframes jolt { 0%, 88% { transform: none; } 90% { transform: translate(-3px, 2px); } 94% { transform: translate(3px, -2px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bulbs { 50% { background-position: 8px 0; } }
@keyframes pop { 50% { transform: scale(1.35); color: var(--yellow); } }
@keyframes appear { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes rise { to { transform: translate(-50%, -150%); opacity: 0; } }
@keyframes bit { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes zoom { from { transform: scale(1.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake { 25% { transform: translate(-6px, 2px); } 50% { transform: translate(6px, -2px); } 75% { transform: translate(-4px, 0); } }
@keyframes flashRed { 50% { box-shadow: inset 0 0 0 8px var(--red); background-color: rgba(232,50,43,.25); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 4px solid var(--red); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 8px; font-size: 12px; border-bottom: 2px solid var(--ink-2); }
  .menu-btn { display: flex; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; min-height: 0; }
  .hero__copy { order: 1; }
  .hero__art { order: 2; max-width: 300px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .token__grid { grid-template-columns: 1fr; }
  .token__copy { text-align: center; }
  .token__copy .sec-lead { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .header__inner { height: 60px; gap: 10px; }
  .nav { top: 64px; }
  .brand__name { font-size: 11px; }
  .brand__orb { width: 28px; height: 28px; }
  .hero { padding-top: 32px; }
  .hero__art { max-width: 280px; }
  .hero__cta { flex-direction: column; align-items: stretch; padding: 0 6px; }
  .bubble { font-size: 11px; }
  .game-sec, .how, .token, .socials { padding: 64px 0; }
  .cabinet { padding: 0 10px 12px; }
  .screen { padding: 8px; }
  .scanlines { inset: 8px; }
  .arena { height: clamp(300px, 62vh, 480px); height: clamp(300px, calc(100svh - 230px), 480px); }
  .bulbs { display: none; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .card__row { flex-wrap: wrap; }
  .socials__critter { width: 48px; }
  .socials__btns .btn { width: 100%; }
  .results__cell span { font-size: 7px; }
  .panel { gap: 12px; }
  .panel__text { font-size: 17px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-strip__track { animation: none; }
  .target__ring { opacity: 1; animation: none !important; }
}

@media (max-width: 380px) {
  .brand__name { display: none; }
  .header__actions { gap: 10px; }
}

/* ---------- Hero contract bar ---------- */
.hero-ca { display: flex; align-items: stretch; max-width: 520px; margin-top: 28px; background: var(--ink-2);
  box-shadow: 0 -4px 0 var(--yellow), 0 4px 0 var(--yellow), -4px 0 0 var(--yellow), 4px 0 0 var(--yellow); }
.hero-ca__tag { flex: none; display: grid; place-items: center; padding: 0 12px; background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-size: 11px; }
.hero-ca__value { flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px; color: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 1.6; }
.hero-ca__value.is-soon { font-family: var(--font-display); font-size: 10px; color: var(--cream); line-height: 2.3; }
.hero-ca__copy { flex: none; border: 0; cursor: pointer; padding: 0 14px; min-height: 48px; background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 10px; }
.hero-ca__copy:hover { filter: brightness(1.1); }
.hero-ca__copy.is-ok { background: #3ccf6e; color: var(--ink); }
@media (max-width: 960px) { .hero-ca { margin-left: auto; margin-right: auto; } }
.hero__grid > * { min-width: 0; }
.hero-ca { width: 100%; }
