:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #55655d;
  --line: #d8e0da;
  --chip: #e6ece8;
  --accent: #0b7f57;          /* emerald: brand colour */
  --accent-ink: #ffffff;
  --cta: #ffb627;             /* gold: download buttons only */
  --cta-ink: #1d1400;
  --cta-hover: #ffc54f;
  --band: #0f1a15;            /* hero band, dark in both themes */
  --band-2: #17271f;
  --band-ink: #f1f6f3;
  --band-muted: #a8bab0;
  --star: #f2a900;
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1210; --surface: #151e1a; --ink: #e6eee9; --muted: #98a9a0; --line: #26322c; --chip: #1f2a25;
    --accent: #3fcb91; --accent-ink: #06130d; --cta: #ffbf3f; --cta-ink: #1d1400; --cta-hover: #ffcf6b;
    --band: #111c17; --band-2: #1a2b23; --band-ink: #f1f6f3; --band-muted: #a8bab0; --star: #ffc23d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1210; --surface: #151e1a; --ink: #e6eee9; --muted: #98a9a0; --line: #26322c; --chip: #1f2a25;
  --accent: #3fcb91; --accent-ink: #06130d; --cta: #ffbf3f; --cta-ink: #1d1400; --cta-hover: #ffcf6b;
  --band: #111c17; --band-2: #1a2b23; --band-ink: #f1f6f3; --band-muted: #a8bab0; --star: #ffc23d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; text-wrap: balance; margin: 0; line-height: 1.08; }
p { margin: 0; }
.pixel { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.section { padding-block: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 56ch; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand .word { font-family: var(--font-display); font-size: 25px; line-height: 1; letter-spacing: .01em; }
.brand .word span { color: var(--accent); }
nav.main { display: flex; gap: 24px; align-items: center; font-weight: 600; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: 0; cursor: pointer; font: 700 16px/1.1 var(--font-body); border-radius: 12px; padding: 13px 20px; }
.btn-cta, nav.main a.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--cta) 55%, #000); }
.btn-cta:hover, nav.main a.btn-cta:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cta) 55%, #000); }
.btn-ghost { background: transparent; color: var(--band-ink); border: 1.5px solid color-mix(in srgb, var(--band-ink) 35%, transparent); }
.btn-ghost:hover { border-color: var(--band-ink); }
.btn small { display: block; font-weight: 600; font-size: 11px; opacity: .75; letter-spacing: .03em; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.hero::before { /* faint pixel-dirt texture, a nod to the mine */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(45deg, var(--band-ink) 25%, transparent 25%, transparent 75%, var(--band-ink) 75%), linear-gradient(45deg, var(--band-ink) 25%, transparent 25%, transparent 75%, var(--band-ink) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding-block: 56px 64px; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .pixel { color: var(--cta); }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); }
.hero h1 em { font-style: normal; color: var(--cta); }
.hero-sub { font-size: 18px; color: var(--band-muted); max-width: 44ch; }
.hero-sub strong { color: var(--band-ink); }
.perks { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.perks li { background: var(--band-2); border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 600; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rating { display: flex; align-items: center; gap: 10px; color: var(--band-muted); font-size: 14px; flex-wrap: wrap; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 16px; }
.rating strong { color: var(--band-ink); }

.device { position: relative; background: #050807; border-radius: 30px; padding: 12px 12px 12px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 2px #2a2f2d; transform: rotate(-2deg); max-width: 100%; }
.device::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #1c2421; }
.device img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 18px; }
.device-wrap { position: relative; min-width: 0; }
.sticker { position: absolute; right: -6px; top: -18px; background: var(--cta); color: var(--cta-ink); font-family: var(--font-display); font-size: 20px; line-height: 1; padding: 12px 14px; border-radius: 14px; transform: rotate(6deg); box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); text-align: center; }
.sticker small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 11px; }

/* Proof bar */
.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.proof div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof strong { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof span { font-size: 14px; color: var(--muted); }

/* Editor pitch */
.editor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.editor img { width: 100%; max-width: 100%; height: auto; border-radius: 20px; aspect-ratio: 1024 / 500; object-fit: cover; display: block; }
.editor-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor-copy h2 { font-size: clamp(30px, 4vw, 42px); }
.editor-copy p { color: var(--muted); font-size: 17px; max-width: 50ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.ticks li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--accent); transform: rotate(45deg) translateY(-1px); border-radius: 2px; }

/* Catalogue */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font: 600 14px var(--font-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.card .shot { display: block; aspect-ratio: 1024 / 500; width: 100%; max-width: 100%; height: auto; object-fit: cover; background: #000; }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--cta); color: var(--cta-ink); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.ribbon.hit { background: var(--accent); color: var(--accent-ink); }
.card-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.card-top { display: flex; gap: 12px; align-items: flex-end; margin-top: -30px; }
.card-top img { width: 68px; height: 68px; border-radius: 16px; border: 3px solid var(--surface); background: var(--surface); flex: none; }
.card-top div { min-width: 0; padding-bottom: 2px; }
.card h3 { font-size: 23px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.genre { color: var(--muted); }
.card p { color: var(--muted); font-size: 15px; }
.stats { display: flex; gap: 6px; flex-wrap: wrap; }
.stats span { background: var(--chip); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.stats .s { color: var(--star); }
.card-stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.store { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 7px 12px 7px 10px; line-height: 1.1; font-weight: 700; font-size: 14px; }
.store small { display: block; font-weight: 500; font-size: 10px; opacity: .8; letter-spacing: .03em; }
.store svg { width: 18px; height: 18px; flex: none; }
.store:hover { background: var(--accent); color: var(--accent-ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 8px; }

/* Inner pages: game detail, privacy, contact */
.page-hero { background: var(--band); color: var(--band-ink); }
.page-hero .wrap { padding-block: 40px 44px; display: flex; flex-direction: column; gap: 10px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.page-hero .pixel { color: var(--cta); }
.page-hero p { color: var(--band-muted); max-width: 60ch; font-size: 17px; }
.back { color: var(--band-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back:hover { color: var(--band-ink); }

.game { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.game .shot { width: 100%; height: auto; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 20px; display: block; background: #000; }
.game-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.game-title { display: flex; gap: 14px; align-items: center; }
.game-title img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.game-title h2 { font-size: clamp(28px, 3.6vw, 38px); }
.game-info .about { display: grid; gap: 10px; color: var(--muted); font-size: 17px; }
.game-info .card-stores { margin-top: 4px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose p, .prose ul { color: var(--muted); margin: 0 0 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 32px 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; font-weight: 600; }
footer.site nav a:hover { color: var(--ink); }
.email { font-weight: 700; color: var(--ink); }

/* Sticky mobile download bar */
.mbar { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .editor, .game { grid-template-columns: 1fr; }
  .hero .wrap { gap: 36px; padding-block: 36px 48px; }
  .device { transform: none; }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); }
  nav.main .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  nav.main { gap: 14px; font-size: 14px; }
  .brand .word { font-size: 21px; }
  .brand .mark { width: 34px; height: 34px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3); }
  .mbar img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
  .mbar div { flex: 1; min-width: 0; line-height: 1.2; }
  .mbar strong { display: block; font-size: 15px; }
  .mbar span { font-size: 12.5px; color: var(--muted); }
  body.has-mbar footer.site { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .card, .card:hover, .btn-cta:active { transition: none; transform: none; } }
