/* ============================================================
   GameDings site - shared styles
   Same DNA as the influence and pathlaid sites, in the GameDings app's style:
   dark slabs with 2px black edges, bevel, outlined green for active, tinted bands, blooms.
   ============================================================ */
@font-face { font-family: 'Titan One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/titan-one-latin-400-normal.woff2') format('woff2'); }
/* motifs.svg asks for this family name */
@font-face { font-family: 'GD Titan One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/titan-one-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #0A0A0C;
  --bg-deep: #0E0E1A;
  --slab-1: #1a1a1a;
  --slab-2: #222;
  --slab-3: #2a2a2a;
  --edge: #000;
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.15);
  --gold: #d4af37;
  /* text versions of the accents (darker in light mode for contrast) */
  --green-text: var(--green);
  --gold-text: var(--gold);
  /* light mode lifts slabs with a soft drop; dark relies on the black edge */
  --lift: 0 0 0 transparent;
  --band-alpha: .12;
  /* landing stage */
  --stage-bg: var(--bg);
  --stage-dot: rgba(255, 255, 255, .045);
  --text: #f2f2f2;
  --text-dim: #a8a8a8;
  --text-faint: #6e6e6e;
  --brand-white: #FFFFFF;
  --brand-yellow: #FFD60A;
  --brand-red: #FF2D3D;
  /* category colours */
  --cat-arcade: #FF9500;
  --cat-words: #FFD60A;
  --cat-strategy: #FF2D3D;
  --bevel: inset 0 1px 1px rgba(255, 255, 255, .1), inset 0 -1px 2px rgba(0, 0, 0, .4);
  --rule: #000;
  --bar-bg: #000;
  --nav-bg: #111;
  --row-line: #1f1f1f;
  --heading: #fff;
  --placeholder-line: #3a3a3a;
  /* game art (motifs.svg reads the --gd-m-* names) */
  --art-bg: #111;
  --gd-m-bg: #141414;
  --gd-m-ink: #f2f2f2;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Titan One', var(--font-main);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: var(--font-main);
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green-text); }
svg.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   WORDMARK: "GameDings!"
   ============================================================ */
.wordmark {
  --o: 0.055em;
  font-family: 'Titan One', var(--font-main);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-bottom: 0.13em;
  text-shadow:
    var(--o) 0 0 #000, calc(-1 * var(--o)) 0 0 #000, 0 var(--o) 0 #000, 0 calc(-1 * var(--o)) 0 #000,
    var(--o) var(--o) 0 #000, calc(-1 * var(--o)) var(--o) 0 #000, var(--o) calc(-1 * var(--o)) 0 #000,
    calc(-1 * var(--o)) calc(-1 * var(--o)) 0 #000, 0 0.13em 0 #000;
}
.w-game { color: var(--brand-white); }
.w-dings { color: var(--brand-yellow); }
.w-bang { color: var(--brand-red); }

/* Big titles use Titan One with the same outline */
.title, h1, .section-h, .get-h, .gd-title {
  --o: 0.045em;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow:
    var(--o) 0 0 #000, calc(-1 * var(--o)) 0 0 #000, 0 var(--o) 0 #000, 0 calc(-1 * var(--o)) 0 #000,
    var(--o) var(--o) 0 #000, calc(-1 * var(--o)) var(--o) 0 #000, var(--o) calc(-1 * var(--o)) 0 #000,
    calc(-1 * var(--o)) calc(-1 * var(--o)) 0 #000, 0 0.1em 0 #000;
}
.yellow { color: var(--brand-yellow); }
.green { color: var(--green); }

/* ============================================================
   BUTTONS + CHIPS (2px black edge, bevel, pressed scale)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  border: 2px solid var(--edge);
  background: var(--slab-2);
  color: var(--text);
  font-family: inherit; font-size: 0.82rem; font-weight: 700;
  text-decoration: none;
  box-shadow: var(--bevel), var(--lift);
  transition: transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:active { transform: scale(.95); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--slab-1); border-color: var(--green); color: var(--green-text); }
body.has-mouse .btn-primary:hover { background: var(--green-dim); }

/* Store buttons: not released yet, so they read as "Coming soon" */
.store-btn { cursor: default; color: var(--text-dim); background: var(--slab-1); }
.store-btn:active { transform: none; }
.store-btn .soon {
  font-size: 0.62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-text); border: 1px solid var(--gold); border-radius: 4px; padding: 0.05rem 0.35rem;
}

.gold-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-text); border: 1px solid var(--gold); border-radius: 4px; padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

/* Small uppercase tracked grey label with an icon */
.band-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.band-label svg { width: 16px; height: 16px; }

/* Outline icon in a bordered square button */
.ic-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border: 2px solid var(--edge); border-radius: 8px;
  background: var(--slab-2); box-shadow: var(--bevel);
  color: var(--text);
}
.ic-box svg { width: 20px; height: 20px; }

/* ============================================================
   STORE BAR
   ============================================================ */
.store-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 52px; display: flex; align-items: center; background: var(--bar-bg); border-bottom: 2px solid var(--rule); padding: 0 1rem; }
.store-bar-inner { width: 100%; }
.store-bar .btn { padding: 0.28rem 0.7rem; font-size: 0.78rem; }
.store-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.store-bar-brand { text-decoration: none; font-size: 1.45rem; display: inline-flex; align-items: center; }
.bar-logo { width: 1.75em; height: auto; flex-shrink: 0; margin-right: 0.45rem; }
.store-bar-links { display: flex; align-items: center; gap: 0.5rem; }

/* ============================================================
   NAV BAR
   ============================================================ */
.nav-bar { position: fixed; left: 0; right: 0; z-index: 999; background: var(--nav-bg); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.nav-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.4rem 1rem; flex-wrap: wrap; }
.nav-link { padding: 0.35rem 0.75rem; border-radius: 6px; border: 2px solid transparent; font-size: 0.8rem; font-weight: 700; color: var(--text-dim); text-decoration: none; transition: all .2s ease; }
body.has-mouse .nav-link:hover { color: var(--text); background: var(--slab-2); border-color: var(--edge); }
.nav-link-active, body.has-mouse .nav-link-active:hover { color: var(--green-text); background: var(--green-dim); border-color: var(--edge); }
.nav-divider { width: 2px; height: 1.2rem; background: var(--rule); margin: 0 0.25rem; }

/* Sub-pages: nav sits under the store bar */
.page .nav-bar { top: 52px; }
.page main { padding-top: 120px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.section-wrap { max-width: 1000px; margin: 0 auto; padding: 5rem 1.75rem; }
.section-h { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
.section-lede { font-size: 1rem; color: var(--text-dim); line-height: 1.7; max-width: 60ch; margin-bottom: 2.5rem; }

/* Tinted bands between black rules */
.band {
  position: relative;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: rgba(var(--tint, 0, 255, 136), var(--band-alpha));
}
.band + .band { border-top: none; }
.band-inner { max-width: 1000px; margin: 0 auto; padding: 2.75rem 1.75rem; }

/* Blooms: big soft glow behind the thing that matters */
.bloom { position: relative; isolation: isolate; }
.bloom::before {
  content: ''; position: absolute; z-index: -1;
  left: 50%; top: 50%; width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--tint, 0, 255, 136), .32), rgba(var(--tint, 0, 255, 136), 0));
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { margin-top: 4rem; padding: 2rem 1.5rem; border-top: 2px solid var(--rule); background: var(--bar-bg); text-align: center; font-size: 0.8rem; color: var(--text-faint); }
footer a { color: var(--green-text); text-decoration: none; }
body.has-mouse footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
@media (max-width: 640px) { .footer-links a { display: inline-block; padding: 0.35rem 0; } }

/* ============================================================
   SUB-PAGE CONTENT (about, contact, privacy, licences)
   ============================================================ */
.page h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.15; margin: 0.75rem 0 1rem; }
.page-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.page-lede { color: var(--text-dim); max-width: 560px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.65; }
.page section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.prose h2 { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin: 1.25rem 0 0.5rem; }
.prose p, .prose li { color: var(--text-dim); line-height: 1.7; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose strong { color: var(--heading); }
.updated { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 1.5rem; }

.slab {
  background: var(--slab-1);
  border: 2px solid var(--edge);
  border-radius: 8px;
  box-shadow: var(--bevel), var(--lift);
  padding: 1.25rem 1.35rem;
}
.callout { background: rgba(0, 255, 136, .08); }
.callout p { margin: 0; }

/* Contact grid (influence pattern) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.cat-heading { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); padding-bottom: 0.6rem; margin-bottom: 0.25rem; border-bottom: 2px solid var(--rule); }
.cat-heading svg { width: 16px; height: 16px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--row-line); }
.contact-row:last-child { border-bottom: none; }
.contact-row-left { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 700; font-size: 0.92rem; }
.contact-row-left svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.contact-row-right { font-size: 0.85rem; color: var(--text-dim); text-align: right; }
.contact-row-right a { color: var(--text-dim); text-decoration: none; }
body.has-mouse .contact-row-right a:hover { color: var(--green-text); }
.address { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; margin: 0.85rem 0; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .store-bar-brand { font-size: 1.15rem; }
  .store-bar-links .btn > span:not(.soon) { display: none; }
  .store-bar-links .btn { padding: 0.4rem 0.55rem; }
  .store-bar-links .btn .soon { display: none; }
  .store-bar-links { gap: 0.35rem; }
  .store-bar-links .gold-tag { font-size: 0.58rem; padding: 0.1rem 0.35rem; letter-spacing: .08em; }
  .nav-bar-inner { gap: 0.2rem; padding: 0.3rem 0.5rem; }
  .nav-link { padding: 0.3rem 0.5rem; font-size: 0.74rem; }
  .page main { padding-top: 140px; }
}

/* ============================================================
   GAME DETAILS POPUP (games.js)
   ============================================================ */
.gd-modal {
  width: min(920px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  /* Fixed height, so the bar and its arrows stay put when the next game is shorter or longer */
  height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--bevel), 0 30px 90px -20px rgba(0, 0, 0, .7);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.gd-modal::backdrop { background: rgba(0, 0, 0, .72); }
.gd-modal[open] { animation: gdPop .3s var(--ease-pop); }
.gd-modal[open]::backdrop { animation: gdFade .2s ease; }
@keyframes gdPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gdFade { from { opacity: 0; } to { opacity: 1; } }
.gd-modal-inner { position: relative; min-height: 100%; display: flex; flex-direction: column; }
.gd-modal-inner > .gd-layout { flex: 1; }

.gd-modal-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem;
  background: var(--nav-bg);
  border-bottom: 2px solid var(--rule);
}
.gd-modal-count { font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; color: var(--text-faint); margin-left: 0.35rem; }
.gd-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 2px solid var(--edge); border-radius: 8px;
  background: var(--slab-2); box-shadow: var(--bevel);
  color: var(--text); cursor: pointer;
  transition: transform .08s ease, color .2s ease;
}
.gd-icon-btn svg { width: 18px; height: 18px; }
.gd-icon-btn:active { transform: scale(.95); }
body.has-mouse .gd-icon-btn:hover { color: var(--green-text); }
.gd-icon-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gd-close { margin-left: auto; }

.gd-hero { position: relative; background: var(--gd-m-bg); border-bottom: 2px solid var(--rule); overflow: hidden; }
.gd-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(55% 70% at 50% 60%, rgba(var(--tint), .4), rgba(var(--tint), 0)); }
.gd-hero svg { display: block; width: 100%; height: auto; max-height: 340px; aspect-ratio: 16 / 7; }
.gd-hero.has-shot { background: #000; }
.gd-hero.has-shot::before { display: none; }
.gd-hero-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gd-hero .shot-note { position: absolute; z-index: 2; right: 10px; bottom: 10px; font-size: 0.62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #cfcfcf; background: rgba(0,0,0,.75); border: 1px solid #333; border-radius: 4px; padding: 0.1rem 0.4rem; }

.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "info" "media"; background: rgba(var(--tint), .06); }
.gd-hero { grid-area: hero; }
.gd-info { grid-area: info; padding: 1.5rem 1.75rem 0.5rem; }
.gd-media { grid-area: media; padding: 0.5rem 1.75rem 2rem; }
.gd-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 0.6rem; }
.gd-line { color: var(--text-dim); font-size: 1.02rem; line-height: 1.6; max-width: 62ch; margin-bottom: 1.5rem; }
.gd-cols { display: block; }
.gd-media .gd-side { margin-bottom: 1.5rem; }
.gd-h { font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 1.5rem 0 0.75rem; }
.gd-cols .gd-h:first-child, .gd-media .gd-h:first-child { margin-top: 0; }
.gd-about p { color: var(--text-dim); line-height: 1.7; margin-bottom: 0.85rem; }

/* Wide screens: art and media on the left, info pinned on the right */
@media (min-width: 1100px) {
  .gd-modal { width: min(1320px, calc(100% - 4rem)); max-height: calc(100% - 3rem); height: calc(100% - 3rem); }
  .gd-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
    grid-template-areas: "hero info" "media info";
    grid-template-rows: auto 1fr;
  }
  .gd-hero { border-right: 2px solid var(--rule); }
  .gd-media { border-right: 2px solid var(--rule); padding: 1.5rem 1.75rem 2rem; }
  .gd-info { position: sticky; top: 58px; align-self: start; padding: 1.75rem 1.75rem 2rem; }
  .gd-cols { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .gd-side { margin-top: 0.5rem; }
  .gd-shots { grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); }
}
/* Very wide: room for screenshots to sit larger */
@media (min-width: 1500px) {
  .gd-layout { grid-template-columns: minmax(0, 1.5fr) minmax(400px, 1fr); }
}
/* Short screens (landscape laptops, tablets): keep the art from eating the view */
@media (max-height: 760px) and (min-width: 721px) {
  .gd-hero svg { max-height: 42vh; }
}
.gd-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.gd-shot { width: 100%; aspect-ratio: 16 / 9; border: 2px solid var(--edge); border-radius: 12px; background: var(--slab-1); object-fit: cover; }
.gd-shot-empty, .gd-video-empty { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-faint); font-size: 0.75rem; line-height: 1.5; border: 2px dashed var(--placeholder-line); background: var(--slab-1); }
.gd-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; border: 2px solid var(--edge); background: #000; }
.gd-video.gd-video-empty { display: flex; flex-direction: column; gap: 0.5rem; background: var(--slab-1); border: 2px dashed var(--placeholder-line); }
.gd-video-empty svg { width: 28px; height: 28px; }

.gd-side { align-self: start; background: var(--slab-1); border: 2px solid var(--edge); border-radius: 8px; box-shadow: var(--bevel), var(--lift); padding: 1.1rem 1.15rem 1.25rem; }
.gd-facts > div { padding: 0.55rem 0; border-bottom: 1px solid var(--row-line); }
.gd-facts > div:last-child { border-bottom: none; }
.gd-facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.gd-facts dd { font-size: 0.9rem; color: var(--text); }
.gd-features { list-style: none; margin-bottom: 1.1rem; }
.gd-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.86rem; color: var(--text-dim); padding: 0.3rem 0; }
.gd-features svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15rem; color: var(--green); }

@media (max-width: 720px) {
  .gd-modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: none; }
  .gd-cols { grid-template-columns: 1fr; gap: 0.5rem; }
  .gd-info { padding: 1.25rem 1.1rem 0.5rem; }
  .gd-media { padding: 0.5rem 1.1rem 2rem; }
}

/* ============================================================
   LIGHT THEME (auto, light or dark)
   ============================================================ */
/* Auto follows the device; the toggle can force light or dark (personal site pattern) */
:root.light-mode {
  --bg: #f0efe8;
  --bg-deep: #e6e5dd;
  --slab-1: #fbfaf5;
  --slab-2: #f4f3ec;
  --slab-3: #e9e8e0;
  --edge: #cdd2d7;
  --rule: #b8bfc6;
  --bar-bg: #f0efe8;
  --nav-bg: #fbfaf5;
  --row-line: #dcdfe2;
  --heading: #111;
  --placeholder-line: #b8bfc6;
  --art-bg: #e6e5dd;
  --gd-m-bg: #ecebe3;
  --gd-m-ink: #1c1c1c;
  --green: #00cc66;
  --green-dim: rgba(0, 204, 102, 0.15);
  --green-text: #007a3d;
  --gold-text: #8a6d00;
  --lift: 0 2px 0 rgba(0, 0, 0, .07), 0 6px 16px -10px rgba(0, 0, 0, .25);
  --band-alpha: .18;
  --stage-bg: #e7e5d9;
  --stage-dot: rgba(0, 0, 0, .07);
  --text: #161616;
  --text-dim: #4a4a4a;
  --text-faint: #7a7a7a;
  --bevel: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -1px 2px rgba(0, 0, 0, .08);
}
:root.light-mode .callout { background: rgba(0, 204, 102, .1); }
@media (prefers-color-scheme: light) {
  :root:not(.dark-mode) {
    --bg: #f0efe8;
    --bg-deep: #e6e5dd;
    --slab-1: #fbfaf5;
    --slab-2: #f4f3ec;
    --slab-3: #e9e8e0;
    --edge: #cdd2d7;
    --rule: #b8bfc6;
    --bar-bg: #f0efe8;
    --nav-bg: #fbfaf5;
    --row-line: #dcdfe2;
    --heading: #111;
    --placeholder-line: #b8bfc6;
    --art-bg: #e6e5dd;
    --gd-m-bg: #ecebe3;
    --gd-m-ink: #1c1c1c;
    --green: #00cc66;
    --green-dim: rgba(0, 204, 102, 0.15);
    --green-text: #007a3d;
    --gold-text: #8a6d00;
    --lift: 0 2px 0 rgba(0, 0, 0, .07), 0 6px 16px -10px rgba(0, 0, 0, .25);
    --band-alpha: .18;
    --stage-bg: #e7e5d9;
    --stage-dot: rgba(0, 0, 0, .07);
    --text: #161616;
    --text-dim: #4a4a4a;
    --text-faint: #7a7a7a;
    --bevel: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -1px 2px rgba(0, 0, 0, .08);
  }
  :root:not(.dark-mode) .callout { background: rgba(0, 204, 102, .1); }
}

.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border: 2px solid var(--edge); border-radius: 6px;
  background: var(--slab-2); box-shadow: var(--bevel);
  color: var(--text-dim);
  font-family: inherit; line-height: 1; cursor: pointer;
  transition: transform .08s ease, color .2s ease;
}
.theme-toggle:active { transform: scale(.95); }
body.has-mouse .theme-toggle:hover { color: var(--green-text); }
.theme-label { font-size: 0.6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* ============================================================
   SPECIAL SITE THEMES (scaffold)
   theme.js sets <html data-site-theme="..."> from a dated schedule or ?site-theme=name.
   Each theme overrides tokens only. Palettes below are PLACEHOLDERS until the app's
   seasonal/launch palettes are supplied; the schedule in theme.js is empty, so nothing
   changes for visitors unless the URL asks for it.
   ============================================================ */
:root[data-site-theme="halloween"] {
  --green: #ff8a00;
  --green-dim: rgba(255, 138, 0, 0.15);
  --brand-yellow: #ff8a00;
}
:root[data-site-theme="christmas"] {
  --green: #3ddc84;
  --green-dim: rgba(61, 220, 132, 0.15);
  --brand-red: #ff3b3b;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Help, accessibility and press pages
   ============================================================ */
.faq { background: var(--slab-1); border: 2px solid var(--edge); border-radius: 8px; box-shadow: var(--bevel), var(--lift); margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; list-style: none; padding: 0.85rem 2.6rem 0.85rem 1.1rem; font-weight: 700; color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; line-height: 1; color: var(--green-text); transition: transform .2s var(--ease-pop); }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.faq-a { padding: 0 1.1rem 0.9rem; }
.faq-a p { margin-bottom: 0; }
.prose-shot { display: block; width: 100%; height: auto; border: 2px solid var(--edge); border-radius: 10px; box-shadow: var(--lift); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 2px solid var(--edge); border-radius: 8px; background: var(--slab-1); box-shadow: var(--bevel), var(--lift); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table-wrap th, .table-wrap td { padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--row-line); color: var(--text-dim); }
.table-wrap thead th { font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.table-wrap tbody th { font-weight: 700; color: var(--text); min-width: 9rem; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: none; }
.facts-table tbody th { width: 34%; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin: 1rem 0 1.25rem; }
.press-item { display: block; background: var(--slab-1); border: 2px solid var(--edge); border-radius: 8px; overflow: hidden; box-shadow: var(--bevel), var(--lift); text-decoration: none; transition: transform .2s var(--ease-pop); }
body.has-mouse .press-item:hover { transform: translateY(-3px); }
.press-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--edge); }
.press-item span { display: block; padding: 0.5rem 0.75rem; font-size: 0.82rem; font-weight: 700; color: var(--text); }

/* Updates and Coming soon */
.release { background: var(--slab-1); border: 2px solid var(--edge); border-radius: 10px; box-shadow: var(--bevel), var(--lift); padding: 1.4rem 1.5rem 1.2rem; margin-bottom: 1.25rem; }
.release h2 { margin-top: 0.75rem !important; }
.release.current { border-color: var(--green); }
.peek-empty { text-align: center; }
.peek-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.peek { background: var(--slab-1); border: 2px solid var(--edge); border-radius: 10px; overflow: hidden; box-shadow: var(--bevel), var(--lift); }
.peek-art { position: relative; border-bottom: 2px solid var(--edge); background: #000; }
.peek-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.peek-art .gold-tag { position: absolute; top: 0.6rem; left: 0.6rem; background: rgba(0,0,0,.75); }
.peek-body { padding: 1rem 1.15rem 1.2rem; }
.peek-name { font-family: var(--font-display); font-size: 1.4rem; margin: 0.4rem 0 0.4rem !important; }

.gd-title { display: flex; align-items: center; gap: 0.75rem; }
.gd-title-tile { width: 52px; height: 52px; flex-shrink: 0; }
/* Narrow phones: logo, wordmark and Coming soon; the store icons return on wider screens */
@media (max-width: 440px) { .store-bar-links .store-btn { display: none; } }
