:root {
  color-scheme: dark;
  --bg: #091d19;
  --panel: #102b25;
  --panel-light: #173b31;
  --cream: #faf0d8;
  --gold: #e8c17c;
  --orange: #cd8b43;
  --muted: #b5c1b2;
  --quiet: #92a596;
  --line: rgba(232, 193, 124, .27);
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0, #15362b 0, transparent 650px), var(--bg);
  color: var(--cream);
  font: 19px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--bg); }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; left: 24px; top: -80px; padding: 10px 18px; background: var(--gold); color: var(--bg); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold); padding: 2px; background: #0c2b25; }
.brand > span { font: 700 22px/1.15 var(--serif); }
.brand b { font-weight: inherit; color: var(--gold); }
.brand small { display: block; margin-top: 6px; font: 12px/1.2 var(--sans); letter-spacing: .23em; color: var(--muted); }
.site-header nav { margin-left: auto; }
.site-header nav, .footer-main nav { display: flex; align-items: center; gap: 30px; }
.site-header nav > a:not(.button) { padding-block: 12px; font-size: 17px; color: var(--muted); }
.site-header nav > a[aria-current="page"] { color: var(--gold); }
.site-header nav > a:not(.button):hover, .footer-main nav a:hover { color: var(--cream); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 52px; padding: 12px 22px; border: 1px solid #dfad69; border-radius: 9px; background: linear-gradient(#d5964c, #c4853d); color: #fff5e0; box-shadow: 0 4px 0 #704821, 0 9px 20px #0003; font-size: 18px; font-weight: 700; line-height: 1.3; transition: background .18s, transform .18s, box-shadow .18s; }
.button:hover { background: #dda05b; transform: translateY(-2px); box-shadow: 0 6px 0 #704821, 0 12px 20px #0003; }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 #704821; }
.button-small { min-height: 40px; padding: 10px 20px; font-size: 17px; gap: 15px; }
.button-secondary { background: #20473c; border-color: #53765a; box-shadow: 0 4px 0 #0c211b; }
.button-secondary:hover { background: #2b5748; box-shadow: 0 6px 0 #0c211b; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 17px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-button { background: none; border: 0; color: var(--gold); padding: 6px 0; font-size: 17px; font-weight: 600; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .6; cursor: wait; }
.eyebrow { margin: 0; color: var(--gold); font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: .16em; }
.global-total { position: relative; margin-top: 24px; padding: 20px 30px 0; border: 1px solid #8c784b; border-radius: 18px; background: radial-gradient(ellipse at 50% 34%, #244b39a8, transparent 64%), linear-gradient(145deg, #102e26, #0b211d); box-shadow: 0 16px 50px #0003, inset 0 0 0 5px #cda35808; overflow: hidden; }
.global-total::after { content: ""; pointer-events: none; position: absolute; inset: 6px; border: 1px solid #d7b47312; border-radius: 12px; }
.counter-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.counter-top .eyebrow { color: #b6c4ae; font-size: 13px; letter-spacing: .15em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a9ac8d; }
.status[data-state="ready"]::before { background: #a4cf9e; box-shadow: 0 0 10px #8fb88455; }
.status[data-state="error"] { color: var(--gold); }
.status[data-state="error"]::before { background: var(--orange); }
.counter-focus { text-align: center; padding: 5px 0 19px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 10px; color: var(--gold); font-size: 15px; }
.ornament span { width: 42px; height: 1px; background: var(--line); }
.counter-focus h1 { margin: 0 0 5px; color: var(--gold); font: 700 22px/1.3 var(--serif); text-transform: uppercase; letter-spacing: .065em; }
.counter-number { display: block; margin: 4px 0; font: 700 clamp(88px, 11vw, 144px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.055em; color: #fff2ce; text-shadow: 0 5px 0 #0002, 0 0 46px #f2c56b19; }
.counter-number.long-total { font-size: clamp(52px, 8vw, 104px); }
.counter-caption { margin: 2px 0 0; color: #c5cdb9; font-size: 17px; }
.counter-secondary { display: grid; grid-template-columns: 1fr 1fr; max-width: 690px; margin: 0 auto; border-top: 1px solid var(--line); padding: 16px 0 13px; text-align: center; }
.counter-secondary > div { min-width: 0; padding: 0 20px; }
.counter-secondary > div + div { border-left: 1px solid var(--line); }
.counter-secondary dt { color: var(--muted); font-size: 15px; line-height: 1.4; }
.counter-secondary dd { margin: 3px 0 0; font: 700 28px/1.3 var(--serif); color: var(--cream); overflow-wrap: anywhere; }
.stat-detail { display: block; margin-top: 3px; color: var(--quiet); font-size: 14px; }
.counter-footer { margin-top: 0; padding: 13px 0; border-top: 1px solid #e8c17c16; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--quiet); }
.counter-footer .text-link { font-size: 15px; }
.summary-error { margin: 0; padding: 12px 0; text-align: center; font-size: 16px; color: var(--gold); border-top: 1px solid var(--line); }
.game-intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; padding-block: 64px; }
.intro-copy h2 { margin: 12px 0 18px; font: 700 clamp(32px, 3.7vw, 48px)/1.13 var(--serif); letter-spacing: -.03em; }
em { color: var(--gold); font-style: normal; }
.intro-copy > p:not(.eyebrow) { max-width: 470px; margin: 0 0 26px; color: var(--muted); font-size: 19px; line-height: 1.75; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.game-art { margin: 0; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: #0a2520; box-shadow: 0 20px 45px #0003; overflow: hidden; transform: rotate(1deg); }
.game-art img { width: 100%; height: auto; border-radius: 10px; }
.game-art figcaption { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 12px 8px 6px; font-size: 14px; line-height: 1.5; color: #c2c9b4; text-align: center; }
.game-art figcaption span { color: var(--gold); }
.video-section { padding-block: 16px 58px; }
.video-heading { margin-bottom: 20px; }
.video-heading h2 { margin: 8px 0 0; font: 700 clamp(30px, 3.2vw, 40px)/1.15 var(--serif); letter-spacing: -.025em; }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #8c784b; border-radius: 16px; background: #071712; box-shadow: 0 16px 40px #0003; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.how-section { padding-block: 48px 60px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-heading h2, .leaderboard-teaser h2 { font: 700 clamp(30px, 3.2vw, 40px)/1.15 var(--serif); letter-spacing: -.025em; margin: 10px 0 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 17px; text-align: right; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card { position: relative; padding: 25px 24px 22px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(140deg, #15342b, #0d2721); }
.step-number { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #b0935660; border-radius: 50%; color: var(--gold); background: #d1aa5420; font: 700 18px var(--serif); }
.step-card h3 { font: 700 25px/1.2 var(--serif); margin: 22px 0 12px; }
.step-card p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0 0 22px; }
.step-foot { display: block; padding-top: 15px; border-top: 1px solid #d1aa5420; color: var(--quiet); font-size: 12px; line-height: 1.5; letter-spacing: .07em; }
.leaderboard-teaser { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px; margin-bottom: 64px; border: 1px solid var(--line); border-radius: 14px; background: #15342b; }
.leaderboard-teaser h2 { font-size: 32px; }
.leaderboard-teaser p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.leaderboard-teaser .button { flex-shrink: 0; }
.site-footer { background: #071712; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding-block: 30px; }
.footer-main .brand img { width: 40px; height: 40px; }
.footer-main .brand > span { font-size: 20px; }
.footer-main .brand small { font-size: 11px; letter-spacing: .1em; }
.footer-main nav { font-size: 16px; color: var(--muted); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px 20px; border-top: 1px solid #e8c17c16; font-size: 14px; color: var(--quiet); }
.footer-bottom b { margin-left: 7px; color: var(--gold); }
.studio-credit { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #e8c17c24; border-radius: 8px; background: #e8c17c08; color: var(--muted); font-size: 13px; transition: border-color .2s, color .2s, background .2s; }
.studio-credit:hover { border-color: #e8c17c70; background: #e8c17c12; color: var(--cream); }
.studio-credit img { display: block; width: 20px; height: 20px; }
.page-main { min-height: calc(100vh - 260px); padding-block: 60px 72px; }
.page-heading { margin-bottom: 36px; }
.page-heading h1 { margin: 14px 0 18px; font: 700 clamp(38px, 4.5vw, 58px)/1.1 var(--serif); letter-spacing: -.04em; }
.page-heading > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 20px; max-width: 670px; line-height: 1.75; }
.board-shell { padding: 0 26px; border: 1px solid #8c784b; border-radius: 16px; background: linear-gradient(135deg, #15332a, #0c231d); box-shadow: 0 16px 40px #0002; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.board-top .eyebrow { font-size: 13px; }
.board-top h2 { margin: 5px 0 0; font: 700 28px/1.25 var(--serif); }
.summary-columns { display: flex; justify-content: space-between; gap: 20px; padding: 16px; color: var(--quiet); font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.summary-list { margin: 0 0 14px; }
.summary-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: center; background: #e8edd909; padding: 17px 16px; margin-bottom: 7px; border: 1px solid #e8edd908; border-radius: 9px; }
.summary-row:first-child { background: #e8c17c0e; border-color: #e8c17c28; }
.summary-label { display: flex; align-items: center; gap: 14px; font-size: 19px; }
.summary-icon { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 20px; }
.summary-value { min-width: 0; margin: 0; color: var(--gold); font: 700 26px/1.3 var(--serif); text-align: right; overflow-wrap: anywhere; }
.summary-value small { display: block; color: var(--quiet); margin-top: 3px; font: 14px/1.4 var(--sans); }
.score-loading, .score-empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 18px; }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 15px; }
.board-privacy { margin: 18px 0 0; color: var(--quiet); font-size: 16px; line-height: 1.8; }
.board-privacy a { color: var(--gold); }
.board-callout { display: flex; align-items: center; gap: 20px; padding-top: 40px; }
.board-callout img { width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--line); }
.board-callout h2 { margin: 0; font: 700 30px/1.3 var(--serif); }
.board-callout p { color: var(--muted); font-size: 18px; margin: 4px 0 0; }
.board-callout .button { margin-left: auto; }
.policy-layout { max-width: 810px; margin: 0 auto; }
.policy-updated { display: block; margin-top: 22px; color: var(--quiet); font-size: 15px; }
.policy-content { border-top: 1px solid var(--line); }
.policy-content section { display: grid; grid-template-columns: 36px 1fr; gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.policy-number { font-size: 15px; color: var(--gold); padding-top: 5px; }
.policy-content h2 { font: 700 28px/1.3 var(--serif); margin: 0 0 10px; }
.policy-content p { color: var(--muted); font-size: 19px; line-height: 1.85; margin: 0; }
.policy-back { margin-top: 28px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .site-header nav { gap: 20px; }
  .brand > span { font-size: 20px; }
  .game-intro { gap: 28px; }
  .intro-actions { gap: 20px; }
  .step-card { padding: 22px 18px; }
  .step-card h3 { font-size: 24px; }
  .leaderboard-teaser { padding: 28px; }
  .leaderboard-teaser h2 { font-size: 28px; }
  .footer-main nav { gap: 20px; }
}
@media (max-width: 680px) {
  body { font-size: 18px; }
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 116px; padding-block: 14px 12px; flex-wrap: wrap; gap: 10px; }
  .brand > span { font-size: 22px; }
  .brand img { width: 42px; height: 42px; }
  .brand small { font-size: 11px; margin-top: 5px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 12px; }
  .site-header nav > a:not(.button) { padding-block: 7px; font-size: 16px; }
  .button-small { min-height: 34px; padding: 7px 15px; font-size: 16px; }
  .global-total { margin-top: 18px; padding: 16px 17px 0; border-radius: 15px; }
  .counter-top { flex-direction: column; gap: 5px; }
  .counter-top .eyebrow { font-size: 12px; letter-spacing: .1em; }
  .status { font-size: 13px; }
  .counter-focus { padding-top: 5px; padding-bottom: 16px; }
  .ornament { margin: 4px 0 10px; }
  .counter-focus h1 { font-size: 19px; letter-spacing: .025em; }
  .counter-number { font-size: clamp(80px, 22vw, 116px); }
  .counter-number.long-total { font-size: clamp(30px, 8.5vw, 56px); padding-block: 16px; }
  .counter-caption { font-size: 15px; margin-top: 3px; }
  .counter-secondary { padding-top: 14px; padding-bottom: 11px; }
  .counter-secondary > div { padding-inline: 9px; }
  .counter-secondary dt { font-size: 13px; }
  .counter-secondary dd { font-size: 24px; }
  .stat-detail { font-size: 13px; }
  .counter-footer { justify-content: center; padding-block: 12px; }
  .counter-footer > span { display: none; }
  .counter-footer .text-link { font-size: 15px; }
  .game-intro { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .intro-copy h2 { font-size: 36px; }
  .intro-copy > p:not(.eyebrow) { font-size: 18px; }
  .intro-actions { gap: 18px; }
  .intro-actions .button { font-size: 17px; padding-inline: 18px; gap: 12px; }
  .game-art { transform: none; }
  .game-art figcaption { font-size: 13px; }
  .video-section { padding-block: 4px 36px; }
  .video-heading { margin-bottom: 14px; }
  .video-frame { border-radius: 12px; }
  .how-section { padding-block: 32px 36px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p { text-align: left; margin-top: 12px; font-size: 17px; }
  .section-heading > p br { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-card { padding: 22px; }
  .step-card h3 { margin-top: 16px; font-size: 26px; }
  .step-card p { margin-bottom: 16px; }
  .step-foot { font-size: 12px; }
  .leaderboard-teaser { display: block; padding: 25px; margin-bottom: 40px; }
  .leaderboard-teaser .button { margin-top: 22px; font-size: 17px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 26px; }
  .footer-main nav { justify-content: space-between; width: 100%; gap: 12px; font-size: 15px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 13px; }
  .page-main { padding-block: 34px 44px; }
  .page-heading { margin-bottom: 26px; }
  .page-heading h1 { font-size: 38px; }
  .page-heading > p:not(.eyebrow) { font-size: 18px; }
  .board-shell { padding-inline: 14px; }
  .board-top { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 21px; }
  .board-top h2 { font-size: 28px; }
  .summary-columns { padding: 14px 10px; font-size: 12px; }
  .summary-row { gap: 12px; padding: 15px 10px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .summary-label { font-size: 16px; }
  .summary-icon { display: none; }
  .summary-value { font-size: 22px; }
  .summary-value small { font-size: 13px; }
  .board-foot { flex-wrap: wrap; font-size: 13px; gap: 8px; }
  .board-foot .text-button { font-size: 15px; }
  .board-privacy { font-size: 15px; }
  .board-callout { display: grid; grid-template-columns: 60px 1fr; gap: 15px; padding-top: 30px; }
  .board-callout img { width: 60px; height: 60px; }
  .board-callout h2 { font-size: 26px; }
  .board-callout p { font-size: 16px; }
  .board-callout .button { grid-column: 1 / -1; margin: 4px 0 0; justify-self: start; }
  .policy-content section { grid-template-columns: 25px 1fr; gap: 12px; padding-block: 23px; }
  .policy-content h2 { font-size: 26px; }
  .policy-content p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Keep both store badges together at the right edge of the header. */
.store-links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.appstore-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: #071712; color: var(--cream); transition: border-color .18s, background .18s; }
.appstore-link:hover { border-color: var(--gold); background: var(--panel-light); }
.appstore-link svg { flex-shrink: 0; }
.appstore-link span { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.appstore-link small { display: block; font-size: 9px; font-weight: 400; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 1150px) {
  .appstore-link { padding: 9px; }
  .appstore-link span { display: none; }
}
@media (max-width: 680px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .store-links { grid-column: 2; grid-row: 1; gap: 8px; }
}
