/* ==========================================================================
   My City Life website: the shared stylesheet for the static pages in public/
   (about, how-to-play, characters, faq, whats-new, credits, terms, privacy).
   Brand: tools/brand/BRAND.md (Night #1E1A3C, Marigold #FFB238, Cream #FFF6E8,
   Brick #D9553B, Brick Deep #B23F27; Bricolage Grotesque, OFL, self-hosted).
   No route bullets, station-sign bands or transit colours anywhere here.
   Pages link /fonts/bricolage-grotesque/fonts.css before this file.
   No JavaScript: the phone menu is a <details> disclosure (the CSP forbids inline scripts).
   ========================================================================== */

:root {
  color-scheme: light dark;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1120px;
  --measure: 72ch;

  --night: #1e1a3c;
  --night-2: #2a2552;
  --marigold: #ffb238;
  --marigold-hover: #ffc35f;
  --cream: #fff6e8;
  --brick: #d9553b;
  --brick-deep: #b23f27;

  --bg: #fff6e8;
  --surface: #ffffff;
  --surface-2: #fcf0dd;
  --surface-3: #f4e4cb;
  --fg: #1e1a3c;
  --fg-2: #3d385c;
  --fg-3: #5a5672;
  --border: rgba(30, 26, 60, 0.12);
  --border-strong: rgba(30, 26, 60, 0.26);
  --link: #b23f27;
  --focus: #d9553b;
  --accent-ink: #b23f27;
  --note-bg: #ffe9c2;
  --note-fg: #4a3300;
  --good: #0b6e35;
  --good-bg: rgba(11, 110, 53, 0.1);
  --bad: #a3261c;
  --info: #3a3480;
  --info-bg: rgba(58, 52, 128, 0.1);
  --alert: #a3261c;
  --alert-bg: rgba(217, 85, 59, 0.1);
  --shadow: 0 10px 30px rgba(30, 26, 60, 0.1), 0 2px 6px rgba(30, 26, 60, 0.06);
  --shot-shadow: 0 14px 34px rgba(30, 26, 60, 0.18), 0 2px 6px rgba(30, 26, 60, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #13112a;
    --surface: #1e1a3c;
    --surface-2: #26224a;
    --surface-3: #322d5c;
    --fg: #fff6e8;
    --fg-2: #e6ddcc;
    --fg-3: #bdb5c9;
    --border: rgba(255, 246, 232, 0.12);
    --border-strong: rgba(255, 246, 232, 0.26);
    --link: #ffb238;
    --focus: #ffb238;
    --accent-ink: #ffb238;
    --note-bg: #3a2c10;
    --note-fg: #ffe1a6;
    --good: #5fd894;
    --good-bg: rgba(95, 216, 148, 0.14);
    --bad: #ff9b8a;
    --info: #c3beff;
    --info-bg: rgba(195, 190, 255, 0.14);
    --alert: #ff9b8a;
    --alert-bg: rgba(255, 155, 138, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shot-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme='dark'] {
  --bg: #13112a;
  --surface: #1e1a3c;
  --surface-2: #26224a;
  --surface-3: #322d5c;
  --fg: #fff6e8;
  --fg-2: #e6ddcc;
  --fg-3: #bdb5c9;
  --border: rgba(255, 246, 232, 0.12);
  --border-strong: rgba(255, 246, 232, 0.26);
  --link: #ffb238;
  --focus: #ffb238;
  --accent-ink: #ffb238;
  --note-bg: #3a2c10;
  --note-fg: #ffe1a6;
  --good: #5fd894;
  --good-bg: rgba(95, 216, 148, 0.14);
  --bad: #ff9b8a;
  --info: #c3beff;
  --info-bg: rgba(195, 190, 255, 0.14);
  --alert: #ff9b8a;
  --alert-bg: rgba(255, 155, 138, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shot-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: clamp(16px, 0.6vw + 14px, 17px)/1.6 var(--font);
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
main a, footer a { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  padding: 10px 14px; border-radius: 8px;
  background: var(--marigold); color: var(--night); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────────── Site header: the logo on a Night band, the main nav and Play now ───────────── */

.site-head { position: relative; z-index: 20; background: var(--night); color: var(--cream); border-bottom: 1px solid rgba(255, 246, 232, 0.1); }
.head-row { display: flex; align-items: center; gap: 8px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; color: var(--cream); text-decoration: none; border-radius: 6px; }
.brand img { display: block; width: auto; height: clamp(34px, 10vw, 44px); }
.site-head :focus-visible { outline-color: var(--marigold); }

.nav-main { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 999px;
  color: var(--cream); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 246, 232, 0.12); }
.nav a[aria-current='page'] { background: var(--cream); color: var(--night); }

.play-now {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: var(--marigold); color: var(--night); border: 2px solid var(--marigold);
  font-family: var(--display); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.play-now:hover { background: var(--marigold-hover); border-color: var(--marigold-hover); }
.play-now span { font-size: 1.1em; line-height: 1; margin-left: 6px; }

/* Phone menu: a disclosure; its panel drops below the header band. */
.menu { flex: none; }
.menu > summary {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 246, 232, 0.36); color: var(--cream); font-size: 15px; font-weight: 700;
  list-style: none; cursor: pointer; user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: rgba(255, 246, 232, 0.12); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--night); border-top: 1px solid rgba(255, 246, 232, 0.14); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}
.menu-panel ul { margin: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left)) 16px; list-style: none; }
.menu-panel li { margin: 0; border-bottom: 1px solid rgba(255, 246, 232, 0.1); }
.menu-panel li:last-child { border-bottom: 0; }
.menu-panel a {
  display: flex; align-items: center; min-height: 48px; padding: 6px 4px;
  color: var(--cream); font-family: var(--display); font-size: 19px; font-weight: 700; text-decoration: none;
}
.menu-panel a[aria-current='page'] { color: var(--marigold); }
.menu-panel a[aria-current='page']::after { content: '•'; margin-left: 10px; color: var(--marigold); }
.menu-panel .menu-small a { min-height: 44px; font-family: var(--font); font-size: 15px; color: rgba(255, 246, 232, 0.86); }

@media (max-width: 379px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .play-now { padding: 8px 12px; font-size: 14px; }
  .play-now span { display: none; }
}
@media (min-width: 900px) {
  .nav-main { display: block; margin-right: 6px; }
  .menu { display: none; }
}
@media (min-width: 1100px) {
  .brand img { height: 34px; }
}

/* Breadcrumbs: plain text above the page card. */
.crumbs { margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--fg-3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '›'; margin: 0 8px; opacity: 0.7; }
.crumbs a { color: var(--fg-2); }

/* ───────────── Page card and type ───────────── */

main { padding: 14px 0 8px; }
.doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: clamp(18px, 5vw, 48px);
}
.doc--narrow { max-width: 880px; margin: 0 auto; }
.crumbs--narrow { max-width: 880px; margin-left: auto; margin-right: auto; }
.prose > p, .prose > ul, .prose > ol, .prose > dl, .lede, .measure { max-width: var(--measure); }
h1, h2, h3 { font-family: var(--display); }
h1 { margin: 0 0 6px; font-size: clamp(31px, 7vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h2 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 44px 0 12px; padding-top: 16px; border-top: 2px solid var(--fg);
  font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em;
}
h3 { margin: 22px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
h3 .n { color: var(--fg-3); font-weight: 700; margin-right: 4px; }
/* Section numbers in the legal pages: plain numerals, never round coloured bullets. */
.num { flex: none; min-width: 1.3em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin: 0 0 6px; }
li::marker { color: var(--fg-3); }
ol.alpha { list-style: lower-alpha; }
.meta { margin: 0 0 18px; color: var(--fg-3); font-size: 15px; }
.lede { font-size: clamp(17px, 1vw + 14px, 20px); color: var(--fg-2); }
.lede strong { color: var(--fg); }
.small { color: var(--fg-3); font-size: 14px; }
.eyebrow { margin: 0 0 8px; color: var(--accent-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
kbd, code { font-family: var(--mono); font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; font-weight: 700; color: var(--fg); }
address { font-style: normal; }
.top { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 14px; font-size: 15px; font-weight: 700; }
.top::before { content: '↑'; text-decoration: none; }

/* ───────────── Components ───────────── */

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 22px; }
.cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--night); background: var(--marigold); color: var(--night);
  font-family: var(--display); font-size: 17px; font-weight: 800; text-decoration: none;
}
.cta:hover { background: var(--marigold-hover); }
.cta--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.cta--ghost:hover { background: var(--surface-2); }
.cta-note { color: var(--fg-3); font-size: 15px; }
.hero { margin: 0 0 18px; }
.hero img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--border); background: var(--night); }
.hero figcaption { margin-top: 8px; color: var(--fg-3); font-size: 14px; }

/* Page intro: text beside a screenshot on wide screens. */
.intro { display: grid; grid-template-columns: 1fr; gap: 8px 36px; align-items: center; }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.intro .cta-row { margin-bottom: 8px; }

/* Screenshots of the game: real captures (public/screens), framed, with a caption. */
.shot { margin: 18px 0 22px; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--night); box-shadow: var(--shot-shadow);
}
.shot figcaption { margin-top: 10px; color: var(--fg-3); font-size: 14px; line-height: 1.45; }
.shot--phone { max-width: 300px; margin-left: auto; margin-right: auto; }
.shot--phone img { border-radius: 26px; border: 6px solid var(--night); }

/* A row of phone-size screenshots. */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin: 18px 0 22px; padding: 0; list-style: none; }
@media (min-width: 760px) { .phones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phones li { margin: 0; }
.phones figure { margin: 0; }
.phones img { display: block; width: 100%; height: auto; border-radius: 22px; border: 5px solid var(--night); background: var(--night); box-shadow: var(--shot-shadow); }
.phones figcaption { margin-top: 8px; color: var(--fg-2); font-size: 14px; line-height: 1.4; }
.phones figcaption strong { display: block; color: var(--fg); font-family: var(--display); font-size: 16px; }

/* Feature tour: text and a screenshot side by side, alternating, stacked on phones. */
.feature { display: grid; grid-template-columns: 1fr; gap: 4px 36px; align-items: center; margin: 8px 0 26px; }
.feature .shot { margin: 8px 0 4px; }
.feature .shot--phone { margin-left: auto; margin-right: auto; }
.feature h3 { margin-top: 8px; font-size: clamp(20px, 3vw, 24px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin-bottom: 34px; }
  .feature:nth-of-type(even) > .feature-text { order: 2; }
}

/* On-page contents: a wrapping row of links (about, faq, how-to-play) or two columns (legal). */
ul.toc { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0 8px; padding: 0; list-style: none; font-size: 15px; font-weight: 700; }
ul.toc li { margin: 0; }
ul.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none; color: var(--fg); background: var(--surface-2); }
ul.toc a:hover { border-color: var(--fg-3); }
.toc-box { margin: 22px 0 8px; padding: 16px 18px 6px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-2); }
.toc-title { display: block; margin: 0 0 10px; padding: 0; border: 0; font-size: 18px; }
ol.toc { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 24px; }
ol.toc li { break-inside: avoid; margin: 0 0 6px; }
ol.toc a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 30px; text-decoration: none; color: var(--fg); font-weight: 600; }
ol.toc a:hover span:last-child { text-decoration: underline; }

/* Two-column facts list that stacks on phones (no tables, so no sideways scrolling). */
.facts { margin: 12px 0 18px; padding: 0; border-top: 1px solid var(--border-strong); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px 18px; padding: 10px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .facts > div { grid-template-columns: minmax(160px, 30%) 1fr; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--fg-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 10px; padding: 0; list-style: none; }
.stats li { margin: 0; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-2); color: var(--fg-2); font-size: 15px; line-height: 1.35; }
.stats b { display: block; color: var(--fg); font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

/* Grid of small cards (neighborhoods, apps, policies). */
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 18px; padding: 0; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tiles > li { margin: 0; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
.tiles h3, .tiles h4 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; line-height: 1.25; }
.tiles p { margin: 0; color: var(--fg-2); font-size: 15px; }
.tiles .em { margin-right: 6px; font-family: var(--font); }
.tiles .sub { display: block; margin-bottom: 4px; color: var(--fg-3); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.roster { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 18px; padding: 0; list-style: none; }
@media (min-width: 700px) { .roster { grid-template-columns: 1fr 1fr; } }
.roster li { margin: 0; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px; }
.roster h3 { margin: 0 0 2px; font-size: 17px; }
.roster p { margin: 0; color: var(--fg-2); font-size: 15px; }
.roster .tier { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--fg-2); font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }

/* Numbered steps: plain numerals in brand ink. */
ol.steps { margin: 14px 0 18px; padding: 0; list-style: none; counter-reset: step; }
ol.steps > li { position: relative; margin: 0 0 14px; padding-left: 46px; counter-increment: step; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; text-align: right;
  color: var(--accent-ink); font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
ol.steps h3 { margin: 4px 0 4px; }
ol.steps p { margin: 0 0 6px; }

/* Guide chapters (how to play): a big numeral beside each chapter title. */
.chapter-n { flex: none; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

.soon { margin: 12px 0 16px; padding: 12px 16px 4px; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--note-bg); color: var(--note-fg); }
.soon a { color: inherit; }
.soon-label { display: inline-block; margin: 0 0 8px; padding: 1px 8px; border-radius: 4px; background: var(--night); color: var(--marigold); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.qa { padding: 2px 0 4px; border-bottom: 1px solid var(--border); }
.qa:last-of-type { border-bottom: 0; }
.qa h3 { margin-top: 18px; }
.qa p { max-width: var(--measure); }
.callout { margin: 16px 0; padding: 12px 16px; border-left: 6px solid var(--marigold); border-radius: 10px; background: var(--surface-2); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { margin: 0 0 4px; font-weight: 800; }

/* Keyboard shortcuts. */
.keys { margin: 12px 0 18px; padding: 0; border-top: 1px solid var(--border-strong); }
.keys > div { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.keys dt { margin: 0; }
.keys dd { margin: 0; color: var(--fg-2); }

/* Plain-language summary box (legal pages). */
.short { margin: 22px 0 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.short-label {
  display: block; margin: 0; padding: 8px 16px; border-top: 0; background: var(--night); color: var(--cream);
  font-family: var(--font); font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase;
}
.short ul { margin: 0; padding: 14px 18px 6px 36px; }
.short p { margin: 0; padding: 0 18px 14px; color: var(--fg-2); font-size: 15px; }

/* Important notice (arbitration) and conspicuous clauses: bold in a ruled box, not all caps. */
.notice {
  margin: 18px 0; padding: 14px 16px; border: 2px solid var(--fg); border-left-width: 8px; border-radius: 12px;
  background: var(--surface); font-weight: 600;
}
.notice p:last-child { margin-bottom: 0; }
.notice-label {
  display: inline-block; margin: 0 0 6px; padding: 1px 8px; border-radius: 4px;
  background: var(--fg); color: var(--surface); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.conspicuous {
  margin: 0 0 14px; padding: 12px 16px; border-left: 4px solid var(--brick); border-radius: 8px;
  background: var(--alert-bg); font-weight: 700;
}
.conspicuous p:last-child, .conspicuous ul:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0 18px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { min-width: 0; padding: 16px 16px 6px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
.card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 0; }
.card dl { margin: 0; }
.card dt { margin: 10px 0 2px; color: var(--fg-3); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.card dd { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.card.wide { grid-column: 1 / -1; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5;
  background: var(--surface-3); color: var(--fg-2);
}
.tag-public { background: var(--info-bg); color: var(--info); }
.tag-private { background: var(--good-bg); color: var(--good); }
.tag-optional { background: var(--note-bg); color: var(--note-fg); }
.tag-strict { background: var(--alert-bg); color: var(--alert); }
div.steps { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin: 0 0 14px; }
div.steps p:last-child, div.steps ul:last-child { margin-bottom: 0; }

/* Characters: one card per archetype. */
.chars { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0 22px; padding: 0; list-style: none; }
@media (min-width: 820px) { .chars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.char { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 18px 18px 8px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); scroll-margin-top: 16px; }
.char-head { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; margin-bottom: 10px; }
.char-emoji { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 30px; line-height: 1; }
.char h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.char .tier { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--fg); color: var(--surface); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.char .tagline { margin: 0 0 8px; color: var(--fg); font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.char .bio { color: var(--fg-2); font-size: 15px; }
.char dl { margin: 0 0 8px; padding: 0; border-top: 1px solid var(--border); }
.char dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
@media (min-width: 480px) { .char dl > div { grid-template-columns: 7.5em 1fr; gap: 10px; } }
.char dt { color: var(--fg-3); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.char dd { margin: 0; color: var(--fg); }
.char dd ul { margin: 0; padding-left: 1.1em; }
.char dd li { margin: 0 0 2px; }
.char .pros li::marker { content: '+  '; color: var(--good); font-weight: 800; }
.char .cons li::marker { content: '−  '; color: var(--bad); font-weight: 800; }
.dream { margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--note-bg); color: var(--note-fg); }
.dream-title { margin: 0 0 4px; font-family: var(--display); font-size: 17px; font-weight: 800; }
.dream p { margin: 0 0 8px; font-size: 15px; }
.dream ol { margin: 0; padding-left: 1.3em; font-size: 15px; }
.dream li { margin: 0 0 2px; }
.dream li::marker { color: inherit; }

/* What's new: dated releases. */
.releases { margin: 18px 0 0; padding: 0; list-style: none; }
.release { position: relative; margin: 0 0 24px; padding: 0 0 4px 22px; border-left: 3px solid var(--border-strong); }
.release::before { content: ''; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--marigold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.release h2 { display: block; margin: 0 0 6px; padding: 0; border: 0; font-size: clamp(21px, 3.6vw, 26px); }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; color: var(--fg-3); font-size: 14px; font-weight: 700; }
.release-meta .tag { background: var(--fg); color: var(--surface); }
.release ul { margin-bottom: 8px; }
.release .shot { max-width: 720px; }

/* Credits: licence and trademark lists. */
.marks { margin: 10px 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.marks li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--fg-2); }
.marks li strong { color: var(--fg); }
.marks .how { display: block; color: var(--fg-3); font-size: 14px; }
.pkg { columns: 2 240px; column-gap: 24px; margin: 10px 0 18px; padding: 0; list-style: none; font-size: 15px; }
.pkg li { break-inside: avoid; margin: 0 0 6px; color: var(--fg-2); }
.pkg code { background: none; padding: 0; color: var(--fg); }
details { margin: 10px 0 16px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); }
details > summary { cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 8px; }
.site-head details { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.site-head details[open] > summary { margin-bottom: 0; }
pre.license {
  max-height: 22em; overflow: auto; margin: 0; padding: 12px; border-radius: 8px; background: var(--surface);
  font: 13px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ───────────── Footer ───────────── */

.site-foot { margin-top: 28px; padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--fg-3); font-size: 14px; }
.site-foot p { margin: 0 0 8px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 18px 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 17px; text-decoration: none; }
.foot-brand img { width: 22px; height: auto; }
.foot-tag { color: var(--fg-2); }
.foot-play { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: var(--marigold); color: var(--night); border: 2px solid var(--night); font-family: var(--display); font-weight: 800; font-size: 15px; text-decoration: none; }
.foot-play:hover { background: var(--marigold-hover); }
.foot-h { margin: 0 0 4px; color: var(--fg); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-links { margin: 0; padding: 0; list-style: none; font-weight: 700; }
.foot-links li { margin: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--fg-2); }
.foot-links a:hover { color: var(--fg); }
.foot-links a[aria-current='page'] { color: var(--fg); text-decoration-thickness: 2px; }
.foot-base { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--border); }
.disclaimer { max-width: 80ch; }

@media print {
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .skip, .nav-main, .menu, .play-now, .cta-row, .top, .foot-play { display: none; }
  .site-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc { box-shadow: none; border: 0; padding: 0; }
  .card, .short, .notice, .conspicuous, .char, .shot { break-inside: avoid; }
  a { color: #000000; }
}
