:root {
  --bg: #0b0d2a;
  --bg2: #141446;
  --ink: #f4f1ff;
  --mute: #b9b4e0;
  --blue: #2b62e8;
  --red: #e3262f;
  --yel: #ffd23a;
  --green: #3dff86;
  --cyan: #5ff6ff;
  --pink: #ff5fae;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(24, 20, 72, 0.72);
  --shadow: 0 6px 0 #05061a;
  --r: 18px;
  --head: "Bangers", Impact, "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.6 Nunito, system-ui, sans-serif; overflow-x: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px); background-size: 18px 18px;
}
a { color: var(--cyan); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.02em; line-height: 1; margin: 0 0 0.4em; }
h2 { font-size: clamp(40px, 6vw, 72px); text-shadow: 3px 3px 0 #05061a; }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.small { font-size: 14px; color: var(--mute); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yel); color: #000; padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; }

/* ---------- buttons, chips, CA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; border: 2.5px solid #05061a; cursor: pointer;
  background: #232068; color: var(--ink); font: 900 16px/1 Nunito, sans-serif; text-decoration: none;
  box-shadow: 0 4px 0 #05061a; transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #05061a; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #05061a; }
.btn-main { background: var(--red); color: #fff; }
.btn-main:hover { background: #ff3b45; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.big { padding: 16px 28px; font: 400 30px/1 var(--head); letter-spacing: 0.04em; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.chip { display: inline-block; background: var(--yel); color: #120a00; font: 700 13px/1 var(--mono); padding: 6px 10px; border-radius: 8px; border: 2px solid #05061a; }
.eyebrow { font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ca { display: flex; align-items: center; gap: 0; background: rgba(5, 6, 26, 0.75); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 100%; }
.ca > span { font: 700 13px/1 var(--mono); padding: 0 12px; color: var(--yel); }
.ca code { flex: 1; min-width: 0; font: 500 14px/1 var(--mono); padding: 13px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ca button { border: 0; border-left: 2px solid var(--line); background: var(--blue); color: #fff; font: 800 14px/1 Nunito; padding: 13px 16px; cursor: pointer; }
.ca button:disabled { background: #2a2a55; color: var(--mute); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 10px max(16px, calc((100% - 1180px) / 2)); background: rgba(11, 13, 42, 0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 26px/1 var(--head); letter-spacing: 0.03em; }
.brand img { width: 40px; height: 40px; }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { color: var(--mute); text-decoration: none; font-weight: 800; font-size: 15px; }
.links a:hover { color: var(--ink); }
body.flying .nav { visibility: hidden; }

/* ---------- hero = the game stage */
.hero { position: relative; height: max(640px, min(100svh - 61px, 980px)); overflow: hidden; border-bottom: 3px solid #05061a; }
.stage { position: absolute; inset: 0; background: #1a0f40; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage canvas { display: block; width: 100%; height: 100%; }
body.flying .stage { position: fixed; inset: 0; z-index: 90; height: auto; min-height: 0; }
.hero-copy {
  position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: min(600px, 50%);
  padding: clamp(28px, 6vh, 72px) 0 32px max(24px, calc((100vw - 1180px) / 2));
  display: flex; flex-direction: column; justify-content: center; gap: 18px; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 13, 42, 0.82) 0%, rgba(11, 13, 42, 0.55) 70%, rgba(11, 13, 42, 0) 100%);
  transition: opacity 0.4s;
}
.hero-copy > * { pointer-events: auto; margin: 0; max-width: 520px; }
body.flying .hero-copy { opacity: 0; pointer-events: none; }
h1 { margin: 0; line-height: 0.86; text-shadow: 4px 4px 0 #05061a; }
.h1-a { display: block; font-size: clamp(44px, 6vw, 84px); color: var(--yel); transform: rotate(-3deg); transform-origin: left; -webkit-text-stroke: 2px #05061a; }
.h1-b { display: block; font-size: clamp(64px, 9.4vw, 140px); color: #fff; -webkit-text-stroke: 2px #05061a; }
.lead { font-size: 19px; color: #e2defc; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats > div { background: rgba(5, 6, 26, 0.7); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.stats span { display: block; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.stats b { display: block; font: 700 16px/1.3 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quip {
  position: absolute; z-index: 4; right: 8%; top: 14%; max-width: 300px; margin: 0;
  background: #fff; color: #120a1e; font: 800 16px/1.35 Nunito; padding: 12px 16px; border-radius: 16px; border: 3px solid #05061a;
  box-shadow: 4px 4px 0 #05061a; opacity: 0; transform: translateY(8px) scale(0.96); transition: 0.25s; pointer-events: none;
}
.quip::after { content: ""; position: absolute; left: 34px; bottom: -14px; border: 9px solid transparent; border-top-color: #05061a; }
.quip.on { opacity: 1; transform: none; }
.stage:not(.is-attract) .quip { opacity: 0; }

/* start button on the stage */
.ov-start { position: absolute; z-index: 4; right: 16%; bottom: 9%; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.ov-start > * { pointer-events: auto; }
.ov-start .small { margin: 0; color: #fff; text-shadow: 0 2px 4px #000; }
.fly { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 6px 0 #05061a, 0 0 0 8px rgba(227, 38, 47, 0.25); } }
.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }

/* ---------- HUD */
.hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 0.3s; font-family: var(--mono); }
.stage.is-intro .hud, .stage.is-play .hud, .stage.is-dead .hud { opacity: 1; }
.hud button { pointer-events: auto; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 14px; padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.score-box { background: rgba(5, 6, 26, 0.72); border: 2px solid var(--line); border-radius: 14px; padding: 8px 14px; line-height: 1.1; }
.score-box .lbl { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.score-box b { display: block; font: 400 38px/1 var(--head); letter-spacing: 0.04em; color: var(--yel); text-shadow: 2px 2px 0 #05061a; }
.score-box small { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.nana { width: 16px; height: 16px; display: inline-block; background: radial-gradient(circle at 50% -10%, transparent 52%, var(--yel) 54%, var(--yel) 72%, transparent 74%); }
.lives { display: flex; gap: 6px; padding-top: 8px; }
.lives i { width: 28px; height: 26px; display: block; background: var(--yel); clip-path: polygon(20% 0, 80% 0, 100% 32%, 50% 100%, 0 32%); position: relative; transition: 0.3s; }
.lives i::after { content: "B"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 15px/1 var(--head); color: var(--red); padding-bottom: 4px; }
.lives i.lost { background: #3a3666; transform: scale(0.8); }
.lives i.lost::after { color: #55507f; }
.hud-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hud-right .best { font-size: 13px; background: rgba(5, 6, 26, 0.72); padding: 7px 10px; border-radius: 10px; border: 2px solid var(--line); }
.hud-right button { font: 700 12px/1 var(--mono); padding: 9px 11px; border-radius: 10px; border: 2px solid var(--line); background: rgba(5, 6, 26, 0.72); color: var(--ink); cursor: pointer; }
.hud-rank { position: absolute; left: 16px; top: max(100px, calc(env(safe-area-inset-top) + 86px)); display: flex; flex-direction: column; font-size: 12px; }
.hud-rank b { font: 400 22px/1 var(--head); letter-spacing: 0.05em; color: var(--cyan); text-shadow: 2px 2px 0 #05061a; }
.hud-rank small { color: var(--mute); }
.chips { position: absolute; left: 16px; top: max(150px, calc(env(safe-area-inset-top) + 136px)); display: flex; flex-direction: column; gap: 6px; }
.tchip { --k: 1; position: relative; font: 700 12px/1 var(--mono); padding: 7px 10px; border-radius: 9px; border: 2px solid #05061a; overflow: hidden; color: #05061a; width: 120px; }
.tchip::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--k)); z-index: -1; }
.tchip.shield { background: rgba(111, 243, 255, 0.35); } .tchip.shield::before { background: #6ff3ff; }
.tchip.pump { background: rgba(61, 255, 134, 0.35); } .tchip.pump::before { background: var(--green); }
.tchip { isolation: isolate; }
.banner { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -10px); text-align: center; opacity: 0; transition: 0.25s; background: rgba(227, 38, 47, 0.92); border: 3px solid #05061a; border-radius: 14px; padding: 8px 18px; box-shadow: 4px 4px 0 #05061a; max-width: 86%; }
.banner.on { opacity: 1; transform: translate(-50%, 0); }
.banner b { display: block; font: 400 30px/1.05 var(--head); letter-spacing: 0.05em; color: #fff; }
.banner small { font-size: 13px; color: #ffe3e6; }
.gtoast { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); font: 400 26px/1 var(--head); letter-spacing: 0.05em; color: var(--yel); text-shadow: 2px 2px 0 #05061a; opacity: 0; white-space: nowrap; }
.gtoast.on { animation: toast 2.2s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -14px); } }
.count { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 400 clamp(56px, 12vw, 130px)/1 var(--head); color: var(--yel); -webkit-text-stroke: 3px #05061a; text-shadow: 6px 6px 0 #05061a; opacity: 0; white-space: nowrap; letter-spacing: 0.03em; }
.count.on { animation: count 0.55s ease-out forwards; }
.stage.is-play .count.on { animation: countGo 1.1s ease-out forwards; }
@keyframes count { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.92); } }
@keyframes countGo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-4deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05) rotate(-4deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1.1) rotate(-4deg); } }
.hint { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; font-size: 13px; background: rgba(5, 6, 26, 0.72); padding: 8px 14px; border-radius: 10px; opacity: 0; transition: 0.4s; white-space: nowrap; }
.hint.on { opacity: 1; }
.roll {
  --cd: 0; position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #05061a; font: 400 22px/1 var(--head); letter-spacing: 0.05em; color: #fff; cursor: pointer; touch-action: none;
  background: conic-gradient(rgba(5, 6, 26, 0.75) calc(var(--cd) * 360deg), var(--blue) 0); box-shadow: 0 4px 0 #05061a; display: none;
}
.roll.ready { background: var(--blue); }
@media (pointer: coarse) { .roll { display: block; } }
.flash { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 40px rgba(255, 30, 60, 0.85); }
.flash.on { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- overlays */
.ov[hidden] { display: none !important; }
#gOver, #gPause { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 30, 0.45); }
.card { background: linear-gradient(160deg, #241f74, #15124a); border: 3px solid #05061a; border-radius: 22px; padding: 26px 28px; width: min(440px, 100%); text-align: center; box-shadow: 8px 8px 0 #05061a; max-height: 100%; overflow: auto; }
.card .eyebrow { justify-content: center; color: var(--pink); }
.card h3 { font-size: 38px; }
.big-score { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.big-score b { font: 400 76px/1 var(--head); color: var(--yel); text-shadow: 4px 4px 0 #05061a; letter-spacing: 0.03em; }
.big-score span { font: 700 14px var(--mono); color: var(--mute); }
.over-stats { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.over-stats li { background: rgba(5, 6, 26, 0.5); border-radius: 10px; padding: 8px 4px; }
.over-stats span { display: block; font: 700 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.over-stats b { font: 700 17px/1.3 var(--mono); }
.rank-line { margin: 0 0 4px; }
.rank-line b { font: 400 24px/1 var(--head); letter-spacing: 0.05em; color: var(--cyan); }
.new-best { display: inline-block; background: var(--green); color: #032010; font: 800 13px/1 Nunito; padding: 6px 10px; border-radius: 8px; margin: 4px 0 8px; }
.over-line { color: #e2defc; font-style: italic; }
.card .actions { justify-content: center; margin: 6px 0 10px; }
.small-card { width: min(320px, 100%); }

/* ---------- marquee */
.marquee { overflow: hidden; background: var(--yel); color: #120a00; border-bottom: 3px solid #05061a; transform: rotate(-1deg); margin: -6px -10px 0; }
.marquee div { display: flex; gap: 40px; width: max-content; padding: 12px 0; animation: mq 26s linear infinite; }
.marquee span { font: 400 26px/1 var(--head); letter-spacing: 0.06em; white-space: nowrap; }
.marquee span:nth-child(3n) { color: var(--red); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- sections */
.zone { padding: clamp(56px, 9vw, 110px) 0; border-bottom: 1px solid var(--line); }
.section-lead { font-size: 19px; color: #d8d3f7; max-width: 720px; }
.foes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.foe { background: var(--panel); border: 2.5px solid #05061a; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); transition: transform 0.2s; }
.foe:hover { transform: translateY(-4px) rotate(-0.5deg); }
.foe svg { width: 110px; height: 74px; display: block; margin-bottom: 10px; }
.foe h3 { color: var(--yel); }
.foe p { margin: 0; color: #d8d3f7; font-size: 16px; }
.sub { margin-top: 44px; font-size: 34px; color: var(--green); }
.goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.good { display: flex; gap: 14px; align-items: center; background: rgba(61, 255, 134, 0.07); border: 2px solid rgba(61, 255, 134, 0.3); border-radius: var(--r); padding: 14px 16px; }
.good svg { width: 56px; height: 56px; flex: none; }
.good b { font: 400 22px/1.1 var(--head); letter-spacing: 0.04em; }
.good p { margin: 0; font-size: 15px; color: #d8d3f7; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.how { background: var(--panel); border: 2.5px solid #05061a; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.how > b { font: 400 46px/1 var(--head); color: var(--red); -webkit-text-stroke: 1px #05061a; }
.how p { margin: 0; color: #d8d3f7; }
.ranks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--panel); border: 2.5px solid #05061a; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.panel h3 { font-size: 32px; color: var(--yel); }
.best-big { font: 400 56px/1 var(--head); letter-spacing: 0.03em; margin: 0 0 12px; text-shadow: 3px 3px 0 #05061a; }
.runs, .ranks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.runs li, .ranks li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(5, 6, 26, 0.45); font: 500 14px/1.3 var(--mono); }
.runs li b { color: var(--ink); }
.runs li span { color: var(--mute); text-align: right; }
.runs li.best { outline: 2px solid var(--yel); }
.runs li.empty { color: var(--mute); }
.ranks li span { color: var(--mute); }
.ranks li b { font: 400 19px/1.1 var(--head); letter-spacing: 0.05em; font-weight: 400; }
.ranks li.reached { background: rgba(43, 98, 232, 0.35); }
.ranks li.current { background: var(--blue); outline: 2px solid var(--yel); }
.ape-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.ape-card { position: relative; background: radial-gradient(circle, #3b2a8a, #15124a); border: 3px solid #05061a; border-radius: 28px; padding: 30px; box-shadow: 8px 8px 0 #05061a; display: grid; place-items: center; aspect-ratio: 1; transform: rotate(-2deg); }
.ape-card img { width: 80%; height: auto; filter: drop-shadow(6px 6px 0 #05061a); }
.pow { position: absolute; right: -10px; top: -14px; font: 400 40px/1 var(--head); color: var(--yel); background: var(--red); padding: 10px 16px; border: 3px solid #05061a; clip-path: polygon(0 18%, 18% 20%, 22% 0, 40% 16%, 62% 0, 70% 20%, 100% 14%, 84% 42%, 100% 64%, 76% 72%, 84% 100%, 58% 80%, 40% 100%, 34% 78%, 6% 92%, 16% 62%, 0 44%, 14% 36%); padding: 22px 26px; transform: rotate(8deg); }
.ape-text p { color: #e2defc; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 12px; background: rgba(5, 6, 26, 0.45); border-radius: 10px; }
.facts li > span:first-child { font: 700 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.token-grid div { background: var(--panel); border: 2.5px solid #05061a; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.token-grid span { display: block; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.token-grid b { font: 400 30px/1.1 var(--head); letter-spacing: 0.04em; }
.ca-wide { max-width: 720px; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 2.5px solid #05061a; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); border: 2.5px solid #05061a; font: 400 24px/1 var(--head); margin-bottom: 10px; }
.steps p { margin: 0; color: #d8d3f7; font-size: 15px; }
.foot { padding: 40px 0 60px; color: var(--mute); font-size: 14px; }
.foot .brand { margin-bottom: 14px; }
.foot .domain { font: 700 13px var(--mono); color: var(--cyan); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); }

/* ---------- smaller screens: the game sits on top, copy below */
@media (max-width: 1000px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .foes, .how-grid, .goods { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .token-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { height: auto; overflow: visible; }
  .stage { position: relative; height: min(72svh, 640px); min-height: 420px; }
  .hero-copy { position: static; width: auto; padding: 24px 16px 36px; background: none; }
  .hero-copy > * { max-width: none; }
  body.flying .hero-copy { opacity: 1; }
  .ov-start { left: 0; right: 0; bottom: 6%; }
  .quip { left: 16px; right: 16px; top: 4%; max-width: none; }
  .ranks-grid, .ape-grid { grid-template-columns: 1fr; }
  .ape-card { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: 22px; }
  .foes, .how-grid, .goods, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:first-child { grid-column: span 2; }
  .hud-right .best { display: none; }
  .score-box b { font-size: 30px; }
  .banner b { font-size: 24px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .over-stats b { font-size: 15px; }
  .big-score b { font-size: 60px; }
  .card { padding: 20px 16px; }
  .hint { font-size: 12px; white-space: normal; width: max-content; max-width: 70%; text-align: center; }
}

/* ?og: 1200x630 poster for link previews (rendered with a headless browser) */
body.og { overflow: hidden; background-image: none; }
body.og .nav, body.og .marquee, body.og main > section:not(.hero), body.og .foot, body.og .ov-start, body.og .quip, body.og .skip, body.og .toast, body.og .hero-copy .ca, body.og .hero-copy .actions, body.og .hero-copy .stats { display: none !important; }
body.og .hero { height: 100vh; border: 0; }
body.og .hero-copy { width: 640px; padding-left: 64px; gap: 24px; }
body.og .h1-a { font-size: 96px; }
body.og .h1-b { font-size: 150px; }
body.og .lead { font-size: 26px; }
body.og .eyebrow { font-size: 20px; }
body.og .chip { font-size: 22px; }
