:root {
  color-scheme: dark;
  --bg: #141819;
  --surface: #1c2224;
  --text: #f4f6f4;
  --muted: #b5c3c3;
  --border: #354144;
  --mint: #8ee8ce;
  --gold: #f3cf78;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 20px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0; }
a, a:visited { color: var(--mint); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { color: var(--muted); }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 16px; }
.page-shell { width: min(1240px, 100%); margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 12px calc(32px + env(safe-area-inset-bottom)); }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 2; padding: 10px 16px; background: var(--surface); }
.skip-link:focus { top: 8px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin-bottom: 10px; }
.brand, .brand:visited { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 22px; font-weight: 800; white-space: nowrap; }
.brand-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--mint); }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; font-size: 14px; font-weight: 650; color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--text); }
.intro-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.intro-line p { font-size: 15px; }
.game-first { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.game-column, .game-aside { min-width: 0; }
.game-card { overflow: hidden; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: #10192a; }
.game-frame { display: block; width: 100%; height: min(780px, calc(100svh - 86px)); height: min(780px, calc(100dvh - 86px)); min-height: 640px; border: 0; background: #10192a; }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; padding: 6px 0 0; }
.quick-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.game-aside { display: grid; gap: 24px; }
.download-card { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.download-card h2, .aside-tip h2 { font-size: 21px; }
.download-card p, .aside-tip p { font-size: 14px; }
.eyebrow { color: var(--mint); font-size: 12px; font-weight: 750; margin-bottom: 8px; }
.download-card .eyebrow { margin: 0; }
.store-actions { display: grid; gap: 8px; }
.store-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 44px; font-size: 14px; border: 1px solid var(--border); border-radius: 6px; }
.store-button small { font-size: 12px; white-space: nowrap; }
.store-button.is-disabled { color: var(--muted); }
.store-button.is-live { color: #132522; background: var(--mint); font-weight: 700; text-decoration: none; }
.small-copy, .download-card .small-copy { font-size: 13px; }
.text-link { display: inline-block; font-size: 14px; font-weight: 650; }
.aside-tip { display: none; gap: 12px; border-top: 1px solid var(--border); padding-top: 22px; }
.content-section { padding: 32px 0; border-top: 1px solid var(--border); }
.game-first + .content-section { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.section-heading > p { font-size: 14px; }
.steps { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; }
.steps li { min-width: 0; }
.step-number { display: block; color: var(--gold); font-size: 14px; font-weight: 750; margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }
.steps p, .guide-card p { font-size: 15px; }
.guide-grid { display: grid; gap: 20px; align-items: start; }
.guide-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.guide-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #dce0e2; }
.guide-copy { padding: 20px; }
.guide-copy h3 { margin-bottom: 10px; }
.guide-copy .eyebrow { font-size: 12px; }
.guide-card:nth-child(2) .eyebrow { color: var(--gold); }
.guide-card:nth-child(3) .eyebrow { color: #ffa7b1; }
.guide-copy details { border-top: 1px solid var(--border); margin-top: 18px; }
summary { cursor: pointer; padding: 14px 0; min-height: 48px; color: var(--text); font-size: 15px; font-weight: 650; }
summary::marker { color: var(--mint); }
details[open] summary { color: var(--mint); }
details p { padding-bottom: 12px; }
.rewards-section, .faq-section, .responsible-section { display: grid; gap: 24px; }
.rewards-intro p { margin-top: 14px; }
.rewards-intro .eyebrow { margin-top: 0; }
.worked-example { border-left: 3px solid var(--gold); padding-left: 16px; font-size: 15px; }
.worked-example strong { color: var(--text); }
.reward-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.reward-table caption { text-align: left; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.reward-table th, .reward-table td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; font-size: 15px; }
.reward-table th:first-child { padding-left: 0; }
.reward-table thead th { color: var(--muted); font-size: 12px; }
.reward-table td { text-align: right; color: var(--gold); font-weight: 750; }
.reward-table span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.leaderboard-section { display: grid; gap: 24px; }
.leaderboard-section h2 { margin-bottom: 14px; }
.leaderboard-section .small-copy { margin-top: 10px; }
.leaderboard-actions { display: grid; align-content: center; justify-items: start; gap: 16px; }
.primary-link, .primary-link:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 6px; color: #152420; background: var(--mint); font-size: 15px; font-weight: 750; text-decoration: none; }
.primary-link:hover { background: #b4f3e0; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { padding: 16px 0; }
.faq-list p { font-size: 15px; padding-right: 12px; }
.responsible-section p + p { margin-top: 12px; font-size: 14px; }
.responsible-section .text-link { margin-top: 16px; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-brand { font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (max-width: 640px) {
  .page-shell { padding-top: calc(8px + env(safe-area-inset-top)); }
  .topbar { min-height: 38px; margin-bottom: 6px; }
  .brand { font-size: 18px; }
  .brand-dot { width: 11px; height: 11px; flex-basis: 11px; }
  .topnav a { padding: 4px 7px; font-size: 12px; }
  .intro-line { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .game-first { gap: 12px; }
  .game-card { width: min(90vw, 400px); max-width: 100%; margin: 0 auto; }
  .game-frame { height: clamp(584px, calc(100svh - 176px), 614px); height: clamp(584px, calc(100dvh - 176px), 614px); min-height: 584px; }
  .quick-links { column-gap: 14px; }
  .quick-links a { font-size: 12px; }
  .content-section, .game-aside { margin-left: 10px; margin-right: 10px; }
}
@media (max-width: 420px) {
  .page-shell { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 420px) and (max-height: 740px) {
  .game-frame { height: 574px; min-height: 574px; }
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-section { grid-template-columns: 1fr 1fr; gap: 40px; }
  .faq-section, .responsible-section { grid-template-columns: 1fr 1.5fr; gap: 40px; }
  .leaderboard-section { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
}
@media (min-width: 920px) {
  .page-shell { padding: 18px 18px 40px; }
  .topbar { margin-bottom: 12px; }
  .game-first { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .game-frame { height: min(760px, calc(100vh - 138px)); min-height: 660px; }
  .aside-tip { display: grid; }
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-section { padding: 40px 0; }
  .footer > span { margin-left: auto; }
}
