/* Hollow Soul Studios: site styles. Mobile first, no framework. */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --font-head: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* brand */
  --navy-950: #070b1f;
  --navy-900: #0d1330;
  --navy-800: #141b3d;
  --navy-700: #1d2650;
  --amber-300: #ffd27a;
  --amber-400: #ffbf5a;
  --amber-500: #f5a524;
  --amber-800: #7a4500;
  --cream: #f6efe3;

  /* pastel card surfaces, same in both themes */
  --pastel-peach: #ffd8c2;
  --pastel-lavender: #ddd5ff;
  --pastel-mint: #c8efdc;
  --pastel-sky: #cde4ff;
  --pastel-butter: #fff0b5;
  --pastel-rose: #ffd3e2;
  --on-pastel: #1b2142;
  --on-pastel-muted: #3d4466;

  /* hero dusk (art, kept dusky in both themes) */
  --hero-text: #f7f3ff;
  --hero-muted: #dcd8f2;

  --radius-s: .75rem;
  --radius: 1.25rem;
  --radius-l: 2rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 72rem;

  /* light theme (default when no preference) */
  color-scheme: light;
  --bg: #f8f4ec;
  --bg-alt: #f1ebf7;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --border: #e0d8ca;
  --text: #1b2142;
  --text-muted: #4b5275;
  --link: #8a4b00;
  --link-hover: #5f3300;
  --accent: var(--amber-400);
  --on-accent: #2a1a00;
  --focus: #a35200;
  --header-bg: rgb(248 244 236 / .86);
  --shadow: 0 12px 32px -14px rgb(27 33 66 / .28);
  --hero-top: #1e2556;
  --hero-mid: #3b3a78;
  --hero-bottom: #8a5f8f;
  --hero-horizon: #f0a76b;
  --note-bg: #fff3d6;
  --note-border: #e9b860;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1330;
    --bg-alt: #111a3c;
    --surface: #172049;
    --surface-2: #1c2655;
    --border: #2d3870;
    --text: #eef0fb;
    --text-muted: #b9c0e0;
    --link: #ffc766;
    --link-hover: #ffe2a8;
    --focus: #ffc766;
    --header-bg: rgb(13 19 48 / .84);
    --shadow: 0 14px 34px -14px rgb(0 0 0 / .65);
    --hero-top: #060a1d;
    --hero-mid: #161c4a;
    --hero-bottom: #3d2f62;
    --hero-horizon: #b5643a;
    --note-bg: #2a2a3f;
    --note-border: #a8782c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1330;
  --bg-alt: #111a3c;
  --surface: #172049;
  --surface-2: #1c2655;
  --border: #2d3870;
  --text: #eef0fb;
  --text-muted: #b9c0e0;
  --link: #ffc766;
  --link-hover: #ffe2a8;
  --focus: #ffc766;
  --header-bg: rgb(13 19 48 / .84);
  --shadow: 0 14px 34px -14px rgb(0 0 0 / .65);
  --hero-top: #060a1d;
  --hero-mid: #161c4a;
  --hero-bottom: #3d2f62;
  --hero-horizon: #b5643a;
  --note-bg: #2a2a3f;
  --note-border: #a8782c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
main { flex: 1; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--link-hover); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: .35rem;
}
::selection { background: var(--amber-300); color: var(--navy-900); }
.sr-only {
  position: absolute; 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: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: .75rem; color: var(--on-accent); }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.muted { color: var(--text-muted); }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--text-muted); max-width: 40rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500;
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .6rem;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .btn-row { justify-content: center; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: .5rem; min-height: 4rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem; margin-right: auto;
  color: var(--text); text-decoration: none; font-family: var(--font-head);
  font-weight: 600; font-size: 1.12rem; line-height: 1.1; padding: .35rem 0;
}
.brand:hover { color: var(--text); }
.brand .logo-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--focus); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; order: 1; }
.theme-toggle { order: 2; }
.site-nav { width: 100%; order: 3; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none;
  color: var(--text); font-weight: 700;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--bg-alt); box-shadow: inset 0 -3px 0 var(--accent); }

/* with JS on small screens the nav collapses behind a button */
@media (max-width: 55.99rem) {
  .js .nav-toggle { display: inline-grid; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .8rem 1rem; }
}
@media (min-width: 56rem) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; order: 0; }
  .site-nav ul { padding: 0; }
  .theme-toggle { order: 4; }
}

/* very narrow phones: keep brand, menu and theme button on one row */
@media (max-width: 22.5rem) {
  .header-inner { gap: .35rem; }
  .brand { font-size: .95rem; gap: .4rem; }
  .brand .logo-mark { width: 2rem; height: 2rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 0 rgb(255 191 90 / 0), 0 8px 24px -8px rgb(245 165 36 / .7);
}
.btn-primary:hover { color: var(--on-accent); background: var(--amber-300); box-shadow: 0 0 24px 2px rgb(255 191 90 / .45); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { color: inherit; background: rgb(255 255 255 / .08); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: .75rem; margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(120% 70% at 50% 108%, var(--hero-horizon) 0%, transparent 55%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 55%, var(--hero-bottom) 100%);
  padding-block: clamp(4rem, 12vw, 8rem) clamp(6rem, 14vw, 9rem);
}
/* static soul-lights: the calm fallback for no JS and reduced motion */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgb(255 210 122 / .55) 0 2px, rgb(255 191 90 / .16) 3px 18px, transparent 26px),
    radial-gradient(circle at 78% 22%, rgb(255 236 200 / .6) 0 2px, rgb(255 191 90 / .14) 3px 22px, transparent 30px),
    radial-gradient(circle at 64% 64%, rgb(190 220 255 / .55) 0 2px, rgb(160 200 255 / .12) 3px 16px, transparent 24px),
    radial-gradient(circle at 30% 76%, rgb(255 210 122 / .5) 0 2px, rgb(255 191 90 / .12) 3px 14px, transparent 22px),
    radial-gradient(circle at 90% 70%, rgb(255 210 122 / .45) 0 1.5px, rgb(255 191 90 / .1) 2px 12px, transparent 18px),
    radial-gradient(circle at 45% 18%, rgb(255 236 200 / .45) 0 1.5px, transparent 12px);
}
.hero.has-canvas::before { opacity: 0; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .lead, .hero .eyebrow { color: var(--hero-muted); }
.hero h1 { max-width: 15ch; }
.hero .btn-primary:focus-visible, .hero :focus-visible { outline-color: var(--amber-300); }
.hero a:not(.btn) { color: var(--amber-300); }
.hero-hills {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1;
  width: 100%; height: clamp(3rem, 9vw, 6rem); color: var(--bg);
}
.hero-hills .far-hill { opacity: .45; }
.hero-mark { display: none; }
@media (min-width: 60rem) {
  .hero .container { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem; }
  .hero-mark { display: block; justify-self: center; width: min(20rem, 100%); height: auto; color: var(--hero-text); filter: drop-shadow(0 0 40px rgb(255 191 90 / .35)); }
}
.hero-compact { padding-block: clamp(3rem, 9vw, 5.5rem) clamp(5rem, 11vw, 7rem); }
.hero-compact h1 { max-width: none; }
.status-pill {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0 0 1rem;
  font-weight: 700; font-size: .98rem; color: var(--hero-text);
}
.status-pill span { padding: .15rem .65rem; border-radius: 999px; background: var(--amber-300); color: var(--navy-900); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; max-width: 44rem; }
.section-head.center { margin-inline: auto; }
.page-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) 1rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* ---------- Cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.pastel { color: var(--on-pastel); border: 0; }
.pastel .muted, .pastel p { color: var(--on-pastel-muted); }
.pastel a { color: var(--on-pastel); }
.pastel :focus-visible { outline-color: var(--on-pastel); }
.pastel-peach { background: var(--pastel-peach); }
.pastel-lavender { background: var(--pastel-lavender); }
.pastel-mint { background: var(--pastel-mint); }
.pastel-sky { background: var(--pastel-sky); }
.pastel-butter { background: var(--pastel-butter); }
.pastel-rose { background: var(--pastel-rose); }
.card-icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  background: rgb(255 255 255 / .6); color: var(--on-pastel); margin-bottom: 1rem;
}
.card-icon svg { width: 1.7rem; height: 1.7rem; }

/* game cards: tilt (JS) and a reveal line on hover or focus */
.game-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-l); color: var(--on-pastel); box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s ease, box-shadow .35s ease;
}
.game-card.is-tilting { transition: transform .08s linear, box-shadow .35s ease; }
.game-card:hover, .game-card:focus-within { box-shadow: 0 22px 44px -18px rgb(13 19 48 / .55), 0 0 0 3px var(--accent); }
.game-card-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.game-card-art img, .game-card-art .art-fill { width: 100%; height: 100%; object-fit: cover; }
.game-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.game-card h3 { font-size: 1.6rem; margin: 0; }
.game-card h3 a { color: inherit; text-decoration: none; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.game-card h3 a:focus-visible { outline: none; }
.game-card p { color: var(--on-pastel-muted); margin: 0; }
.tag {
  align-self: flex-start; display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  font-size: .85rem; font-weight: 800; background: rgb(27 33 66 / .1); color: var(--on-pastel);
}
.game-card-secret {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .35s ease, opacity .35s ease;
}
.game-card-secret > p { overflow: hidden; font-weight: 700; color: var(--on-pastel); }
.game-card-secret > p::before { content: "\2726  "; color: #b06400; }
.game-card:hover .game-card-secret, .game-card:focus-within .game-card-secret { grid-template-rows: 1fr; opacity: 1; }
.game-card:hover .game-card-secret > p, .game-card:focus-within .game-card-secret > p { padding-top: .6rem; }
@media (hover: none) {
  .game-card-secret { grid-template-rows: 1fr; opacity: 1; }
  .game-card-secret > p { padding-top: .6rem; }
}
.card-more { margin-top: auto; padding-top: .8rem; font-weight: 800; }
.soul-card-art {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, #3a2f6e 0%, #141b3d 55%, #070b1f 100%);
  color: #f6efe3;
}
.soul-card-art .logo-mark { width: 38%; height: auto; filter: drop-shadow(0 0 26px rgb(160 200 255 / .55)); }

/* ---------- Values / promise ---------- */
.value-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.circles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.value-list + p, .promise + p { margin-top: 1.5rem; }
.promise { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.promise li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.promise .card-icon { margin: 0; flex: none; background: var(--pastel-butter); }
.promise strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.promise span { color: var(--text-muted); font-size: .98rem; }
.price-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.price-list small { display: block; color: var(--text-muted); font-size: .92rem; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-l); padding: clamp(2rem, 6vw, 3.5rem);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(255 191 90 / .35), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--hero-text);
}
.cta-band p { color: var(--hero-muted); }
.cta-band a:not(.btn) { color: var(--amber-300); }
.cta-band :focus-visible { outline-color: var(--amber-300); }
.email-plain { font-weight: 800; word-break: break-word; }

/* ---------- Timeline (Idle Ages) ---------- */
@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #3a2647; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #e08a5c; }
@property --sun { syntax: "<color>"; inherits: true; initial-value: #ffd38a; }
@property --far { syntax: "<color>"; inherits: true; initial-value: #7b4f57; }
@property --near { syntax: "<color>"; inherits: true; initial-value: #4a3038; }
@property --ground { syntax: "<color>"; inherits: true; initial-value: #2f1f27; }
@property --lm { syntax: "<color>"; inherits: true; initial-value: #24161d; }
@property --glow { syntax: "<color>"; inherits: true; initial-value: #ffb547; }
@property --stars { syntax: "<number>"; inherits: true; initial-value: 0; }

.timeline { display: grid; gap: 1.5rem; }
.scene {
  position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow);
  margin: 0; aspect-ratio: 16 / 9; background: var(--navy-800); touch-action: pan-y; user-select: none;
  transition: --sky-top .8s ease, --sky-bottom .8s ease, --sun .8s ease, --far .8s ease, --near .8s ease,
    --ground .8s ease, --lm .8s ease, --glow .8s ease, --stars .8s ease;
}
.scene-svg { width: 100%; height: 100%; }
/* @scene-css:start (generated by tools/build.mjs) */
.scene .s-top{stop-color:var(--sky-top)}.scene .s-bottom{stop-color:var(--sky-bottom)}.scene .stars{fill:#fff;opacity:var(--stars)}.scene .sun{fill:var(--sun)}.scene .halo{opacity:.25}.scene .far{fill:var(--far)}.scene .near{fill:var(--near)}.scene .ground{fill:var(--ground)}.scene .lm{fill:var(--lm)}.scene .lm .glow{fill:var(--glow)}.scene .lm .halo{opacity:.35}.scene .smoke{fill:var(--far);opacity:.8}.scene .neon rect{stroke:var(--glow);stroke-width:2}.scene .planet{fill:var(--far)}.scene .planet-ring{fill:none;stroke:var(--glow);stroke-width:3;opacity:.7}
.scene[data-age="0"]{--sky-top:#3a2647;--sky-bottom:#e08a5c;--sun:#ffd38a;--far:#7b4f57;--near:#4a3038;--ground:#2f1f27;--lm:#24161d;--glow:#ffb547;--stars:0.25}
.scene[data-age="1"]{--sky-top:#2e2a58;--sky-bottom:#dba25e;--sun:#ffe0a0;--far:#876243;--near:#53392a;--ground:#34241b;--lm:#241912;--glow:#ffc266;--stars:0.2}
.scene[data-age="2"]{--sky-top:#3d63a3;--sky-bottom:#f3d9aa;--sun:#fff4cf;--far:#9db1c7;--near:#5c708a;--ground:#3e4e63;--lm:#2c3a4d;--glow:#fff0b3;--stars:0}
.scene[data-age="3"]{--sky-top:#24375a;--sky-bottom:#93ada6;--sun:#f5e6b4;--far:#557463;--near:#314a3c;--ground:#22362b;--lm:#17251d;--glow:#ffcf73;--stars:0.35}
.scene[data-age="4"]{--sky-top:#4c3264;--sky-bottom:#f2bca3;--sun:#ffe4bf;--far:#a7737f;--near:#61404f;--ground:#432b37;--lm:#2e1d26;--glow:#ffd08a;--stars:0.15}
.scene[data-age="5"]{--sky-top:#2c2c36;--sky-bottom:#a3927f;--sun:#f2c992;--far:#645c58;--near:#3b3533;--ground:#292423;--lm:#1c1817;--glow:#ffb054;--stars:0.1}
.scene[data-age="6"]{--sky-top:#1f5490;--sky-bottom:#acd7f2;--sun:#fffadf;--far:#6596b8;--near:#335a78;--ground:#23425a;--lm:#1a3247;--glow:#fff5c4;--stars:0}
.scene[data-age="7"]{--sky-top:#0e2238;--sky-bottom:#3b92b3;--sun:#c2f3ff;--far:#1f5d74;--near:#12374e;--ground:#0b2536;--lm:#071a28;--glow:#7fe3ff;--stars:0.45}
.scene[data-age="8"]{--sky-top:#1a0e3d;--sky-bottom:#c24c9c;--sun:#ffa3e3;--far:#5d2b7e;--near:#2d1554;--ground:#1e0d3d;--lm:#12082a;--glow:#ff7ad9;--stars:0.6}
.scene[data-age="9"]{--sky-top:#04071a;--sky-bottom:#2b3170;--sun:#ffd884;--far:#1b2050;--near:#0e1335;--ground:#080b24;--lm:#050719;--glow:#ffd27a;--stars:1}
.scene .lm{opacity:0;transition:opacity .6s ease}
.scene[data-age="0"] .lm-0,.scene[data-age="1"] .lm-1,.scene[data-age="2"] .lm-2,.scene[data-age="3"] .lm-3,.scene[data-age="4"] .lm-4,.scene[data-age="5"] .lm-5,.scene[data-age="6"] .lm-6,.scene[data-age="7"] .lm-7,.scene[data-age="8"] .lm-8,.scene[data-age="9"] .lm-9{opacity:1}
/* @scene-css:end */
.scene-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-badge {
  position: absolute; left: 1rem; top: 1rem; padding: .3rem .8rem; border-radius: 999px;
  background: rgb(7 11 31 / .7); color: #fff; font-weight: 800; font-size: .9rem;
}
.ages { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: age; }
.age { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.age h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.age h3::before { counter-increment: age; content: counter(age) ". "; color: var(--text-muted); }
.age p { margin: 0; color: var(--text-muted); }
.timeline-controls { display: none; }
.js .timeline-controls { display: grid; gap: .9rem; }
.js .ages .age:not(.is-active) { display: none; }
.js .ages { min-height: 7.5rem; }
.js .age h3::before { content: none; }
.age-meta { font-size: .9rem; font-weight: 800; color: var(--text-muted); margin-bottom: .2rem; }
.timeline-row { display: flex; align-items: center; gap: .75rem; }
.timeline-row input[type="range"] { flex: 1; min-width: 0; }
input[type="range"] { accent-color: var(--amber-500); height: 2.75rem; cursor: pointer; }
.age-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: .25rem; }
.age-ticks button {
  width: 100%; min-height: 2.75rem; padding: .25rem 0; border: 0; background: none; cursor: pointer;
  color: var(--text-muted); font: 700 .72rem/1.1 var(--font-body); display: grid; justify-items: center; gap: .3rem;
}
.age-ticks button::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--border); transition: transform .3s ease, background-color .3s ease; }
.age-ticks button[aria-pressed="true"] { color: var(--text); }
.age-ticks button[aria-pressed="true"]::before { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 12px var(--accent); }
.age-ticks .tick-label { display: none; }
@media (min-width: 48rem) {
  .age-ticks .tick-label { display: block; }
}
@media (min-width: 60rem) {
  .timeline { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .timeline-controls { grid-column: 1 / -1; }
}

/* ---------- Screenshots ---------- */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) {
  .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.shots figure { margin: 0; }
.shots + p { margin-top: 1.75rem; }
.shots img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; background: var(--navy-800); }
.shots figcaption { font-size: .9rem; color: var(--text-muted); margin-top: .5rem; }

/* ---------- Gallery viewer ---------- */
.gallery-link { display: block; border-radius: var(--radius); }
.gallery-link img { transition: transform .3s ease, box-shadow .3s ease; }
.gallery-link:hover img { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .gallery-link:hover img { transform: translateY(-3px); }
}
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 1rem;
  border: 0; background: transparent; color: #f7f3ff;
  display: none; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(7 11 31 / .92); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .75rem; min-width: 0; touch-action: pan-y; }
.lightbox img { max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); width: auto; max-width: 100%; border-radius: var(--radius); box-shadow: 0 20px 60px rgb(0 0 0 / .6); }
.lightbox figcaption { text-align: center; font-weight: 700; display: grid; gap: .2rem; }
.lb-count { font-size: .85rem; color: #c9c6e4; }
.lightbox .icon-btn { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .3); color: #fff; }
.lightbox .icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox :focus-visible { outline-color: var(--amber-300); }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 1; }
@media (max-width: 47.99rem) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 4.5rem 1rem 1.25rem; row-gap: 1rem; }
  .lightbox img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: end; }
  .lb-next { grid-row: 2; justify-self: start; }
}

/* ---------- Gameplay clip ---------- */
.clip { margin: 0 auto 2rem; max-width: 22rem; text-align: center; }
.clip video { width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow); background: var(--navy-800); }
.clip figcaption { font-size: .9rem; color: var(--text-muted); margin-top: .5rem; }

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.news-card h2, .news-card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.news-card h2 a, .news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { text-decoration: underline; }
.news-date { font-size: .9rem; font-weight: 800; color: var(--text-muted); margin-bottom: .3rem; }
.post h1 { margin-bottom: 1.2rem; }
.post .eyebrow a { color: inherit; }
.post-back { margin-top: 2.5rem; font-weight: 800; }
.feed-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; }
.feed-link svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Store badge ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: .8rem; min-height: 3.5rem; padding: .55rem 1.3rem .55rem 1rem;
  border-radius: 1rem; background: #000; color: #fff; text-decoration: none; border: 1px solid #5c6380;
}
.store-badge:hover { color: #fff; background: #111; }
.store-badge svg { width: 1.8rem; height: 1.8rem; flex: none; }
.store-badge small { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.store-badge b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; line-height: 1.1; }
.store-badge .badge-soon { display: none; }
/* until the store URL placeholder is replaced, the badge shows a coming soon state */
.store-badge[href^="{{"], .store-badge:not([href]) { cursor: default; opacity: .9; border-style: dashed; pointer-events: none; }
.store-badge[href^="{{"] .badge-live, .store-badge:not([href]) .badge-live { display: none; }
.store-badge[href^="{{"] .badge-soon, .store-badge:not([href]) .badge-soon { display: block; }

/* ---------- Pending download links ---------- */
/* Blocks marked when-live show once the {{PLACEHOLDER}} link inside the scope is filled in */
.when-pending { display: none; }
[data-pending-scope]:has(a[href^="{{"], .is-pending) .when-live { display: none; }
[data-pending-scope]:has(a[href^="{{"], .is-pending) .when-pending { display: block; }
.apk-card h2 { margin-bottom: .4rem; }
.apk-card h3 { margin-top: 1.6rem; }
.apk-card .facts { margin-top: 1.25rem; }
.checksum { word-break: break-all; }

/* ---------- Quotes and labels ---------- */
.quote { margin: 1.75rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.quote p { font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; line-height: 1.45; margin-bottom: .5rem; }
.quote footer { color: var(--text-muted); font-weight: 800; font-size: .95rem; }
.quote footer::before { content: "\2215  "; }
.circle-num { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.pastel .circle-num { color: var(--on-pastel-muted); }

/* ---------- Trailer placeholder ---------- */
.trailer {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: radial-gradient(circle at 50% 55%, #2f2763 0%, #10163a 60%, #05081a 100%);
  color: var(--hero-text); border: 2px dashed rgb(255 255 255 / .25);
}
.trailer p { color: var(--hero-muted); margin: 0; }
.trailer .logo-mark { width: 4rem; height: 4rem; margin: 0 auto 1rem; color: var(--hero-text); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: clamp(2rem, 6vw, 3rem); border: 2px dashed var(--border); border-radius: var(--radius-l); background: var(--surface-2); }
.empty-state .logo-mark { width: 5rem; height: 5rem; margin: 0 auto 1.2rem; color: var(--text); }
.tool-list:empty { display: none; }

/* ---------- Definition / fact sheet ---------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.facts div { display: grid; grid-template-columns: 1fr; padding: .85rem 1.2rem; border-top: 1px solid var(--border); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--text-muted); }
@media (min-width: 36rem) {
  .facts div { grid-template-columns: 12rem 1fr; gap: 1rem; }
}
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.download-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.download-preview { display: grid; place-items: center; padding: 1.5rem; min-height: 8rem; }
.download-preview img { max-height: 5rem; width: auto; }
.download-preview.on-light { background: #f8f4ec; }
.download-preview.on-dark { background: #0d1330; }
.download-card .download-body { padding: 1rem 1.2rem 1.2rem; }
.download-card h3 { font-size: 1.1rem; }
.download-links { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; line-height: 1; color: var(--text-muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 1.2rem 1.1rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Notes / draft banner ---------- */
.note {
  border-left: 5px solid var(--note-border); background: var(--note-bg);
  padding: 1rem 1.2rem; border-radius: var(--radius-s); margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
.placeholder { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--note-bg); border: 1px dashed var(--note-border); padding: .05rem .35rem; border-radius: .3rem; font-size: .92em; }
.policy-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.lang-switch { font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #d9dcf0; padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: #f3e6cc; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--amber-300); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.footer-brand .logo-mark { width: 2.5rem; height: 2.5rem; color: #f6efe3; }
.footer-brand:hover { color: #fff; }
.site-footer h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #b9bedb; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer ul a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .95rem; color: #b9bedb; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
/* phones: link lists run side by side with thin dividers instead of one long column */
@media (max-width: 47.99rem) {
  .footer-grid { gap: 1.6rem; }
  .site-footer h2 { margin-bottom: .35rem; }
  /* every item gets a divider; the one that starts a line sits in the negative margin and is clipped */
  .site-footer nav { overflow: hidden; padding: .3rem 0 .3rem .5rem; margin-left: -.5rem; }
  .site-footer ul { display: flex; flex-wrap: wrap; align-items: center; row-gap: .15rem; margin-left: calc(-1.7rem - 1px); }
  .site-footer li { display: flex; align-items: center; }
  .site-footer li::before { content: ""; flex: none; width: 1px; height: 1.1em; margin: 0 .85rem; background: rgb(255 255 255 / .3); }
  .site-footer ul a { padding: .35rem 0; }
}

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost .logo-mark { width: 6rem; height: 6rem; margin: 0 auto 1.5rem; }
.lost .btn-row { justify-content: center; }

/* ---------- Scroll reveal (only with JS and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Reduced motion: calm, static ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .game-card { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero canvas, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
