/* ==========================================================================
   GATOR RUN — STYLES
   ========================================================================== */
:root {
  --bg: #070a1f;
  --bg-2: #0c1233;
  --panel: #0f1838;
  --panel-2: #131f47;
  --line: #24346b;
  --swamp: #12382a;
  --lime: #b6ff3b;
  --lime-d: #6fae16;
  --amber: #ffb547;
  --amber-d: #b9741a;
  --pink: #ff4fa3;
  --text: #eef5ea;
  --muted: #b3c0d6;
  --ink: #0a1610;
  --display: 'Press Start 2P', ui-monospace, monospace;
  --body: 'Pixelify Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--lime); }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; font-family: var(--display); font-size: 11px; text-decoration: none; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px dashed var(--lime); outline-offset: 3px; }
.game:focus-visible { outline: 3px dashed var(--lime); outline-offset: 4px; }

/* ---------- Type ---------- */
.h2 { font-family: var(--display); font-size: clamp(20px, 3.4vw, 32px); line-height: 1.35; margin: 0 0 14px; letter-spacing: 1px; text-shadow: 3px 3px 0 #000; }
.h3 { font-family: var(--display); font-size: 14px; line-height: 1.5; margin: 0 0 10px; letter-spacing: 1px; }
.h4 { font-family: var(--display); font-size: 10px; color: var(--amber); margin: 22px 0 10px; letter-spacing: 1px; }
.eyebrow { font-family: var(--display); font-size: 10px; letter-spacing: 2px; color: var(--lime); text-transform: uppercase; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 19px; }
.lead-narrow { max-width: 640px; margin: 0 auto; }
.fine { font-size: 15px; color: #93a2bd; margin-top: 18px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--lime); --cd: var(--lime-d); --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 18px;
  font-family: var(--display); font-size: 11px; letter-spacing: 1px; line-height: 1.2;
  color: var(--t); background: var(--c); text-decoration: none; text-align: center;
  border: 3px solid var(--ink);
  box-shadow: inset -3px -3px 0 var(--cd), inset 3px 3px 0 rgba(255,255,255,.35), 0 4px 0 #000;
  cursor: pointer; user-select: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset -3px -3px 0 var(--cd), inset 3px 3px 0 rgba(255,255,255,.35), 0 1px 0 #000; }
.btn--lg { min-height: 54px; padding: 16px 22px; font-size: 12px; }
.btn--sm { min-height: 38px; padding: 9px 12px; font-size: 10px; }
.btn--amber { --c: var(--amber); --cd: var(--amber-d); }
.btn--ghost { --c: transparent; --cd: transparent; --t: var(--text); border-color: var(--lime); box-shadow: 0 4px 0 #000; background: rgba(8, 14, 36, .55); }
.btn--ghost:hover { background: rgba(182,255,59,.12); }
.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] {
  --c: #2a3352; --cd: #1c2340; --t: #9aa6c2; border-color: #11172e; cursor: not-allowed; filter: none; transform: none;
}
.btn--ghost.is-disabled { background: #1a2242; border-color: #3a4670; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--line); background: var(--panel); color: var(--text); box-shadow: 0 3px 0 #000; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn:hover { border-color: var(--lime); color: var(--lime); }
.icon-btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background .2s, border-color .2s; border-bottom: 3px solid transparent; }
.nav.is-scrolled, body.menu-open .nav { background: rgba(7, 10, 31, .92); border-color: #151e44; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo__icon { width: 33px; height: auto; aspect-ratio: 22 / 21; }
.logo__word { font-family: var(--display); font-size: 14px; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; }
.logo__word span { color: var(--lime); margin-left: 6px; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--text); text-decoration: none; font-family: var(--display); font-size: 10px; letter-spacing: 1px; padding: 8px 2px; border-bottom: 3px solid transparent; }
.nav__links a:hover { color: var(--lime); border-color: var(--lime); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 46px; height: 46px; background: var(--panel); border: 3px solid var(--line); cursor: pointer; place-items: center; box-shadow: 0 3px 0 #000; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 3px; background: var(--text); position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px var(--gutter) 26px;
    background: rgba(7, 10, 31, .98); border-bottom: 3px solid #151e44;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links a { display: block; padding: 14px 4px; font-size: 12px; border-bottom: 2px solid #151e44; }
  .nav__actions { justify-content: space-between; }
  .nav__actions .btn { flex: 1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(760px, calc(100svh - var(--nav-h))); margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 100%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,10,31,.92) 0%, rgba(7,10,31,.72) 42%, rgba(7,10,31,.1) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(7,10,31,0) 22%); }
.hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 72px; }
.status-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 9px; letter-spacing: 1.5px; color: var(--lime); background: rgba(10, 22, 16, .75); border: 2px solid #2b5a24; padding: 8px 12px; margin-bottom: 22px; }
.status-dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero__title { font-family: var(--display); font-size: clamp(26px, 5.4vw, 56px); line-height: 1.25; margin: 0 0 22px; letter-spacing: 1px; text-shadow: 4px 4px 0 #000; }
.hero__title span { display: block; }
.hero__title .hl { color: var(--lime); text-shadow: 4px 4px 0 #000, 0 0 24px rgba(182,255,59,.35); }
.hero__lead { font-size: clamp(18px, 2vw, 22px); color: #d6e0ee; max-width: 520px; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; padding: 4px 10px; border: 2px solid #2a3a6e; background: rgba(12, 18, 51, .75); color: #c9d4e8; }
.chip--sol { border-color: #6a3a8f; color: #f0d9ff; }
.hero-ca { display: flex; align-items: center; gap: 10px; margin-top: 18px; max-width: 620px; padding: 8px 8px 8px 12px; background: rgba(5, 8, 23, .82); border: 2px solid #2f5a2a; box-shadow: 0 4px 0 #000; }
.hero-ca__k { flex: none; font-family: var(--display); font-size: 9px; color: var(--ink); background: var(--lime); padding: 5px 6px; }
.hero-ca__v { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--lime); word-break: break-all; line-height: 1.35; }
.hero-ca .btn { flex: none; }
@media (max-width: 480px) { .hero-ca { flex-wrap: wrap; } .hero-ca .btn { width: 100%; } }
.hero__mascot { position: relative; justify-self: center; display: grid; justify-items: center; }
.hero__gator { width: min(384px, 70vw); height: auto; aspect-ratio: 64 / 40; filter: drop-shadow(0 0 22px rgba(182,255,59,.18)); }
.hero__plinth { width: 70%; height: 10px; margin-top: -6px; background: repeating-linear-gradient(90deg, #3d2a1a 0 12px, #4e3622 12px 24px); border-top: 3px solid #2f7a2c; box-shadow: 0 6px 0 #000; }
.ticker-badge { position: absolute; top: 2%; right: 4%; z-index: 2; font-family: var(--display); font-size: clamp(12px, 1.6vw, 16px); color: var(--ink); background: var(--amber); padding: 10px 12px; border: 3px solid var(--ink); box-shadow: inset -3px -3px 0 var(--amber-d), 0 4px 0 #000; transform: rotate(4deg); animation: bob 2.4s steps(4) infinite; }
.ticker-badge--sm { position: static; transform: none; animation: none; font-size: 10px; padding: 6px 8px; }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-6px); } }

@media (max-width: 899px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 48px; }
  .hero__mascot { order: -1; }
  .hero__bg { object-position: 84% 100%; }
  .hero__gator { width: min(260px, 64vw); }
  .hero__shade { background: linear-gradient(0deg, rgba(7,10,31,.95) 0%, rgba(7,10,31,.75) 55%, rgba(7,10,31,.35) 100%); }
}
@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section__head { text-align: center; margin-bottom: 36px; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 3px solid var(--line); box-shadow: 0 6px 0 #000, inset 0 0 0 3px rgba(255,255,255,.03); padding: clamp(20px, 3.4vw, 36px); }

/* ---------- Token ---------- */
.token { padding-top: 24px; }
.token__panel { position: relative; border-color: #2f5a2a; box-shadow: 0 6px 0 #000, 0 0 0 3px rgba(182,255,59,.06), 0 0 60px rgba(182,255,59,.08); }
.token__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.pill { flex: none; font-family: var(--display); font-size: 9px; padding: 8px 10px; color: var(--amber); border: 2px solid var(--amber-d); background: rgba(255,181,71,.08); }
.pill--live { color: var(--lime); border-color: var(--lime-d); background: rgba(182,255,59,.08); }
.token__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }
.fact { border: 2px solid var(--line); background: rgba(5, 8, 24, .5); padding: 12px 14px; }
.fact dt { font-family: var(--display); font-size: 9px; color: var(--muted); margin-bottom: 6px; letter-spacing: 1px; }
.fact dd { margin: 0; font-size: 20px; font-weight: 600; }
.ca__label { display: block; font-family: var(--display); font-size: 9px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.ca__row { display: flex; gap: 12px; align-items: stretch; }
.ca__value { flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px 14px; background: #050817; border: 2px dashed #3a4670; font-family: var(--mono); font-size: 15px; color: #9aa6c2; word-break: break-all; }
.ca__value.is-live { color: var(--lime); border-style: solid; border-color: #2f5a2a; }
.ca__status { min-height: 26px; margin-top: 8px; color: var(--lime); font-size: 16px; }
.token__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.token__ctas .btn { min-width: 210px; }
@media (max-width: 640px) {
  .token__head { flex-direction: column; }
  .token__facts { grid-template-columns: 1fr 1fr; }
  .token__facts .fact:last-child { grid-column: span 2; }
  .ca__row { flex-direction: column; }
  .token__ctas .btn { flex: 1 1 100%; }
}

/* ---------- Game ---------- */
.game-section { background: radial-gradient(ellipse at 50% 0%, rgba(18, 56, 42, .55), transparent 60%), linear-gradient(180deg, var(--bg), #08102a 50%, var(--bg)); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.game { position: relative; background: #050817; border: 4px solid #000; outline-offset: 4px; box-shadow: 0 0 0 3px #2f5a2a, 0 10px 0 #000, 0 0 70px rgba(182,255,59,.1); }
.game__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #060920; }
.game__canvas { width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; pointer-events: none; font-family: var(--display); }
.hud__item { display: flex; flex-direction: column; gap: 4px; background: rgba(5, 8, 23, .62); border: 2px solid rgba(182,255,59,.25); padding: 6px 8px; min-width: 76px; }
.hud__k { font-size: 8px; color: var(--muted); letter-spacing: 1px; display: flex; align-items: center; gap: 4px; }
.hud__v { font-size: clamp(11px, 1.6vw, 15px); color: var(--text); text-shadow: 2px 2px 0 #000; font-variant-numeric: tabular-nums; }
.hud__item:nth-child(2) .hud__v { color: var(--amber); }
.hud__item:nth-child(3) .hud__v { color: #ff8cc6; }
.game[data-state="idle"] .hud { display: none; }
.berry-ico { display: inline-block; width: 6px; height: 6px; background: var(--pink); box-shadow: 0 0 6px var(--pink); }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(5, 8, 23, .55); }
.overlay--start { background: linear-gradient(180deg, rgba(5,8,23,.2), rgba(5,8,23,.65)); cursor: pointer; }
.overlay--count { background: transparent; pointer-events: none; }
.overlay__card { text-align: center; display: grid; justify-items: center; gap: 12px; max-width: 520px; }
.overlay--over .overlay__card, .overlay[data-g="ov-pause"] .overlay__card { background: rgba(8, 12, 32, .92); border: 3px solid var(--line); box-shadow: 0 6px 0 #000; padding: clamp(12px, 3vw, 24px); max-height: 100%; overflow: auto; }
.overlay__kicker { font-family: var(--display); font-size: 9px; color: var(--amber); letter-spacing: 2px; }
.overlay__title { font-family: var(--display); font-size: clamp(16px, 3.6vw, 30px); line-height: 1.3; color: var(--lime); text-shadow: 3px 3px 0 #000; }
.overlay__title--pink { color: var(--pink); font-size: clamp(13px, 2.6vw, 22px); }
.overlay__sub { color: #d6e0ee; font-size: 17px; margin-top: -4px; }
.overlay__hint { font-size: 15px; color: #d6e0ee; text-shadow: 1px 1px 0 #000; }
.overlay__best { font-family: var(--display); font-size: 9px; color: var(--amber); }
.overlay__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.new-best { font-family: var(--display); font-size: 10px; color: var(--ink); background: var(--lime); padding: 6px 10px; animation: blink .9s steps(2) infinite; }
.results { display: flex; gap: 10px; margin: 0; }
.results div { border: 2px solid var(--line); padding: 6px 10px; min-width: 72px; }
.results dt { font-family: var(--display); font-size: 8px; color: var(--muted); }
.results dd { margin: 4px 0 0; font-family: var(--display); font-size: 13px; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 15px; padding: 4px; }
.linkish:hover { color: var(--lime); }
.share-box { display: grid; gap: 8px; width: 100%; }
.share-box textarea { width: 100%; resize: none; background: #050817; color: var(--text); border: 2px solid var(--line); padding: 8px; font-family: var(--mono); font-size: 13px; }
.count { font-family: var(--display); font-size: clamp(40px, 10vw, 88px); color: var(--lime); text-shadow: 5px 5px 0 #000, 0 0 30px rgba(182,255,59,.5); }
.count.pop { animation: pop .5s steps(5); }
@keyframes pop { 0% { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1); } }
.kbd { display: inline-block; min-width: 26px; padding: 3px 6px; font-family: var(--display); font-size: 9px; line-height: 1.4; text-align: center; color: var(--ink); background: #e6edf7; border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 #a6b2c6; }
.kbd--wide { min-width: 42px; }

.game__bar { display: flex; justify-content: flex-end; gap: 8px; padding: 8px; background: #0a0f28; border-top: 3px solid #000; }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; background: var(--panel); border: 2px solid var(--line); font-family: var(--display); font-size: 9px; letter-spacing: 1px; cursor: pointer; }
.tool:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.tool[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.tool:disabled { opacity: .45; cursor: not-allowed; }
.tool__ico { font-size: 14px; font-family: system-ui, sans-serif; }

.touch { display: none; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px; background: #0a0f28; border-top: 3px solid #000; }
.touch__btn { min-height: 72px; font-family: var(--display); font-size: 13px; letter-spacing: 1px; border: 3px solid var(--ink); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 5px 0 #000; }
.touch__btn--jump { background: var(--lime); color: var(--ink); box-shadow: inset -4px -4px 0 var(--lime-d), 0 5px 0 #000; }
.touch__btn--duck { background: var(--amber); color: var(--ink); box-shadow: inset -4px -4px 0 var(--amber-d), 0 5px 0 #000; }
.touch__btn.is-down { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
@media (pointer: coarse), (max-width: 760px) { .touch { display: grid; } }

.howto .keys { display: grid; gap: 10px; }
.howto .keys li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 16px; }
.howto .keys li > span:last-child { margin-left: 4px; color: #d6e0ee; }
.legend { display: grid; gap: 8px; font-size: 16px; color: #d6e0ee; }
.legend li { display: flex; align-items: center; gap: 10px; }
.lg { flex: none; width: 18px; height: 14px; display: inline-block; border: 2px solid #000; }
.lg--root { background: linear-gradient(180deg, transparent 30%, #4a321c 30%); border-color: transparent; box-shadow: inset 0 -10px 0 #4a321c; clip-path: polygon(0 100%, 25% 20%, 50% 100%, 70% 0, 100% 100%); background: #6b4a2a; }
.lg--mud { background: #2a1a0e; box-shadow: inset 0 3px 0 #5a3f27; border-radius: 0 0 6px 6px; }
.lg--branch { background: #4a311c; height: 8px; box-shadow: 0 -3px 0 #3f7a4e; }
.lg--boat { background: linear-gradient(180deg, #20304e 60%, #ff4fa3 60% 75%, #20304e 75%); }
.lg--coin { width: 14px; background: #ffcf3d; border-color: #7a4d05; box-shadow: inset 2px 2px 0 #fff2a8; }
.lg--berry { width: 14px; background: var(--pink); box-shadow: 0 0 8px var(--pink); }

@media (max-width: 1023px) {
  .game-layout { grid-template-columns: 1fr; }
  .howto { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .howto > .h3, .howto > .fine { grid-column: 1 / -1; }
  .howto .keys { grid-row: 2 / span 5; }
}
@media (max-width: 640px) {
  .howto { display: block; }
  .hud { padding: 6px; }
  .hud__item { min-width: 0; padding: 4px 6px; }
  .hud__k { font-size: 7px; }
  .overlay__sub, .overlay__hint { font-size: 14px; }
  .results div { min-width: 60px; padding: 4px 6px; }
  .results dd { font-size: 11px; }
  .overlay__btns .btn { min-height: 40px; padding: 9px 10px; font-size: 9px; }
  .linkish { font-size: 13px; }
}
@media (max-width: 640px) {
  .overlay--start .overlay__kicker, .overlay--start .overlay__hint { display: none; }
  .overlay--start .overlay__card { gap: 8px; }
}
/* Small screens: pause / game-over panels cover the whole game frame (screen + controls) so nothing is cut off */
@media (max-width: 640px) {
  .game__screen { position: static; }
  .hud, .overlay--start, .overlay--count { inset: 0 0 auto 0; aspect-ratio: 16 / 9; }
  .overlay--over, .overlay[data-g="ov-pause"] { z-index: 5; background: rgba(5, 8, 23, .8); }
  .overlay--over .overlay__card { gap: 10px; width: 100%; }
}

/* ---------- Community ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 3px solid var(--line); box-shadow: 0 6px 0 #000; padding: 26px 22px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--lime-d); }
.card p { color: #d6e0ee; }
.card__ico { display: block; width: 40px; height: 40px; margin-bottom: 18px; border: 3px solid #000; box-shadow: 0 4px 0 #000; }
.card__ico--play { background: var(--lime); clip-path: polygon(0 0, 100% 50%, 0 100%); border: 0; box-shadow: none; }
.card__ico--compete { background: conic-gradient(from 45deg, var(--amber) 0 25%, var(--amber-d) 0 50%, var(--amber) 0 75%, var(--amber-d) 0); }
.card__ico--build { background: repeating-linear-gradient(0deg, var(--pink) 0 8px, #b02a6c 8px 16px); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* ---------- Roadmap ---------- */
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; counter-reset: stop; }
.route::before { content: ''; position: absolute; left: 6%; right: 6%; top: 32px; height: 4px; background: repeating-linear-gradient(90deg, #2f5a2a 0 10px, transparent 10px 18px); z-index: 0; }
.stop { position: relative; z-index: 1; background: var(--panel); border: 3px solid var(--line); padding: 20px; box-shadow: 0 6px 0 #000; }
.stop__tag { display: inline-block; font-family: var(--display); font-size: 12px; padding: 8px 10px; background: #1a2448; border: 2px solid var(--line); margin-bottom: 10px; }
.stop__state { display: block; font-family: var(--display); font-size: 8px; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.stop p { color: #d6e0ee; }
.stop--now { border-color: var(--lime-d); }
.stop--now .stop__tag { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.stop--now .stop__state { color: var(--lime); }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; }
  .route::before { left: 30px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: repeating-linear-gradient(180deg, #2f5a2a 0 10px, transparent 10px 18px); }
}

/* ---------- Footer ---------- */
.footer { border-top: 3px solid #151e44; background: #050817; padding: 44px 0 36px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.footer__links a { font-family: var(--display); font-size: 10px; color: var(--text); text-decoration: none; padding: 6px 0; }
.footer__links a:hover { color: var(--lime); }
.footer__links a.is-disabled { color: #7d89a6; cursor: not-allowed; }
.footer__notes { grid-column: 1 / -1; border-top: 2px solid #151e44; padding-top: 20px; display: grid; gap: 8px; color: #93a2bd; font-size: 15px; }
.copy { font-family: var(--display); font-size: 9px; margin-top: 6px; }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; background: var(--amber); color: var(--ink); font-family: var(--display); font-size: 10px; padding: 12px 16px; border: 3px solid var(--ink); box-shadow: 0 4px 0 #000; max-width: calc(100% - 32px); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
