/* Questhold website: the "Book" look from Wireframes/handoff/Book UI v2 spec.md.
   Paper, ink and one accent colour (rubric). Hierarchy from type and hairlines, not boxes. */

/* ---------- Fonts (self-hosted, so no visitor data goes to Google) ---------- */
/* Literata (variable: every weight, and optical sizes so headings get finer detail) for everything.
   IM Fell English only for the "Questhold" name, to match the logo. */
@font-face { font-family: "Literata"; src: url("../fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/im-fell-english-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f1e4;
  --paper-edge: #ebe1cc;
  --ink: #1f1b16;
  --rubric: #9b2a1c;
  --text-2: #3d352b;
  --text-3: #5e5344;
  --text-past: #7a6f5e;
  --disabled: #8a7f6e;
  --blocked: #b3a790;
  --rule: #cbbfa8;
  --rule-soft: #ddd2bd;
  --leader: #a89b84;
  --image-ground: #dccfb5;
  --scrim: rgba(60, 50, 38, .55);
  --stripe: rgba(31, 27, 22, .45);

  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --logo: "IM Fell English", "Iowan Old Style", Georgia, serif;

  --page-max: 1120px;
  --gutter: 24px;
  color-scheme: light dark;
}
/* Dark mode follows the browser unless the visitor picks one with the footer switch (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1914;
    --paper-edge: #120f0c;
    --ink: #e9e0cc;
    --rubric: #e07a62;
    --text-2: #cfc5b0;
    --text-3: #b0a58f;
    --text-past: #958a76;
    --disabled: #7d735f;
    --blocked: #5a5246;
    --rule: #463d32;
    --rule-soft: #332c24;
    --leader: #5e5446;
    --image-ground: #2a251e;
    --scrim: rgba(10, 9, 8, .72);
    --stripe: rgba(233, 224, 204, .4);
  }
}
:root[data-theme="dark"] {
  --paper: #1d1914;
  --paper-edge: #120f0c;
  --ink: #e9e0cc;
  --rubric: #e07a62;
  --text-2: #cfc5b0;
  --text-3: #b0a58f;
  --text-past: #958a76;
  --disabled: #7d735f;
  --blocked: #5a5246;
  --rule: #463d32;
  --rule-soft: #332c24;
  --leader: #5e5446;
  --image-ground: #2a251e;
  --scrim: rgba(10, 9, 8, .72);
  --stripe: rgba(233, 224, 204, .4);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, var(--paper) 55%, var(--paper-edge) 100%) fixed, var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  /* Literata's lower-case letters are tall; this evens them out so the px sizes below read as intended. */
  font-size-adjust: 0.45;
  line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--rubric); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.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 to content": invisible until someone presses Tab, so it can't show when the page bounces at the top. */
.skip { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

/* ---------- Book components ---------- */
.caps { font-variant-caps: all-small-caps; letter-spacing: .14em; }
.label {
  display: flex; align-items: center; gap: 14px;
  font-variant-caps: all-small-caps; letter-spacing: .18em; font-size: 18px;
  color: var(--rubric); margin: 0 0 18px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.label--centre::before { content: ""; flex: 1; height: 1px; background: var(--rule); }
.double-rule { border: 0; height: 5px; margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ornament { text-align: center; color: var(--rubric); font-size: 22px; margin: 8px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-family: var(--serif); font-size: 18px; font-variant-caps: all-small-caps; letter-spacing: .14em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: var(--text-2); border-color: var(--text-2); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--rubric);
  font-variant-caps: all-small-caps; letter-spacing: .14em; text-decoration: underline; text-underline-offset: 3px;
}

.stripes {
  background-color: var(--image-ground);
  background-image: repeating-linear-gradient(90deg, var(--stripe) 0 1px, transparent 1px 4px);
}
.framed { outline: 1px solid var(--ink); outline-offset: 3px; border: 1px solid var(--ink); }

/* App Store badge */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }

/* ---------- Header ---------- */
.site-header { padding-top: 18px; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border: 1px solid var(--ink); }
.brand span { font-family: var(--logo); font-size-adjust: none; font-size: 28px; line-height: 1; letter-spacing: .01em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .16em; font-size: 18px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rubric); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: center; }
/* The headline fills the text column on one line: its size follows the column's width. */
.hero-copy { container-type: inline-size; }
.hero h1 { white-space: nowrap; font-size: min(66px, calc(100cqi / 11.8)); letter-spacing: -.005em; margin-bottom: 26px; }
.hero h1 em { color: var(--rubric); font-style: italic; }
.hero .lede { font-size: 21px; color: var(--text-2); max-width: 32em; margin-bottom: 30px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 36px; }
.hero .cta .meta { font-style: italic; color: var(--text-3); font-size: 17px; }
.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 34em; }
.ways li { display: grid; grid-template-columns: 54px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.ways .num { font-family: var(--serif); font-size: 23px; color: var(--rubric); }
.ways b { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .12em; margin-right: 6px; }
.ways span { color: var(--text-2); }

/* Hero trailer: a phone for a portrait video, a wide frame for a landscape one */
.device-col { display: flex; justify-content: center; }
.device-col--wide { display: block; }
.device {
  position: relative; width: 340px; max-width: 100%;
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px;
  border-radius: 44px; padding: 10px; background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(31, 27, 22, .55);
}
.device .frame { border-radius: 34px; }
.wide-frame { border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; box-shadow: 0 30px 60px -30px rgba(31, 27, 22, .55); }
.device .frame, .wide-frame .frame { position: relative; aspect-ratio: var(--aspect, 9 / 16); overflow: hidden; background: #000; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; color: var(--text-2); }
.yt-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play .inner { position: relative; background: var(--paper); padding: 10px 16px; border: 1px solid var(--rule); font-style: italic; font-size: 16px; }
.yt-play:hover .inner { border-color: var(--rubric); color: var(--rubric); }

/* ---------- Library (Netflix-style row) ---------- */
.library { padding: 24px 0 88px; scroll-margin-top: 20px; }
.library h2.label { font-family: inherit; line-height: inherit; margin-bottom: 24px; }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.tile { scroll-snap-align: start; }
.tile-button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.cover {
  --cloth: #6e2420; --tint: #e8d3a0; --tint-2: #d9bf86;
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  background-color: var(--cloth);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 4px),
                    radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.07), rgba(0,0,0,.28));
  color: var(--tint);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: 30px 22px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .6);
}
.cover::before, .cover::after { content: ""; position: absolute; pointer-events: none; border: 1px solid var(--tint-2); }
.cover::before { inset: 10px; }
.cover::after { inset: 14px; }
.cover img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .kicker { font-variant-caps: all-small-caps; letter-spacing: .24em; font-size: 15px; color: var(--tint-2); }
.cover .title { font-family: var(--serif); font-size: 40px; line-height: 1.02; }
.cover .title small { display: block; font-family: var(--serif); font-style: italic; font-size: 18px; margin-top: 10px; color: var(--tint-2); }
.cover .emblem { display: block; width: 26px; height: 26px; margin: 16px auto 0; color: var(--tint-2); }
.cover .emblem svg { width: 100%; height: 100%; }
.cover .title { display: block; }
.cover .genre { font-variant-caps: all-small-caps; letter-spacing: .2em; font-size: 15px; color: var(--tint-2); }
.tile-button:hover .cover, .tile-button:focus-visible .cover { transform: translateY(-6px); box-shadow: 0 26px 36px -22px rgba(0, 0, 0, .7); }
.tile-meta { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px 0; font-size: 17px; }
.tile-meta .price { color: var(--rubric); font-variant-caps: all-small-caps; letter-spacing: .12em; }
.tile-meta .more { color: var(--text-3); font-style: italic; }
.tile-button:hover .tile-meta .more { color: var(--rubric); }
.tile--soon .cover { background: transparent; box-shadow: none; color: var(--text-3); border: 1px dashed var(--leader); justify-content: center; gap: 12px; }
.tile--soon .cover::before, .tile--soon .cover::after { display: none; }
.tile--soon .cover .title { font-size: 28px; color: var(--text-2); }
.tile--soon .tile-meta { color: var(--text-3); font-style: italic; }

/* ---------- Game detail (dialog) ---------- */
.game-dialog {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); margin: auto; overflow: visible;
}
.game-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.game-dialog[open] { animation: open .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes open { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Each game's page uses that game's accent colour (games.js: accent, accentDark) in place of the site's red. */
.sheet { --rubric: var(--accent, #9b2a1c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sheet { --rubric: var(--accent-dark, #e07a62); } }
:root[data-theme="dark"] .sheet { --rubric: var(--accent-dark, #e07a62); }
.sheet { position: relative; background: var(--paper); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; }
.close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--tint-2, var(--ink)); background: rgba(0, 0, 0, .25); color: var(--tint, var(--paper)); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.close svg { width: 16px; height: 16px; }
.banner {
  --cloth: #6e2420; --tint: #e8d3a0; --tint-2: #d9bf86;
  background-color: var(--cloth);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 4px), radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.07), rgba(0,0,0,.3));
  color: var(--tint); padding: 44px 40px 34px; position: relative;
}
.banner .kicker { font-variant-caps: all-small-caps; letter-spacing: .22em; font-size: 16px; color: var(--tint-2); display: flex; align-items: center; gap: 10px; }
.banner .kicker svg { width: 18px; height: 18px; }
.banner h2 { font-size: clamp(38px, 6vw, 58px); margin: 0 0 12px; padding-right: 48px; }
.banner .tagline { font-style: italic; font-size: 21px; max-width: 34em; color: var(--tint); margin-bottom: 22px; }
.banner .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.banner .facts-line { font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--tint-2); font-size: 16px; }
.banner .close { --tint: inherit; }
/* Slim red bar: sits over the top of the page and fades in once the banner has scrolled away */
.minibar {
  --cloth: #6e2420; --tint: #e8d3a0; --tint-2: #d9bf86;
  position: sticky; top: 0; z-index: 3; height: 64px; margin-bottom: -64px;
  display: flex; align-items: center; gap: 16px; padding: 0 14px 0 40px;
  background-color: var(--cloth);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 4px), linear-gradient(rgba(255,255,255,.04), rgba(0,0,0,.2));
  color: var(--tint); border-bottom: 1px solid rgba(0, 0, 0, .35);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s .18s;
}
.minibar.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s; }
.minibar-title { flex: 1; min-width: 0; margin: 0; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minibar .store-badge img { height: 36px; }
.minibar .close { position: static; flex: none; width: 40px; height: 40px; }
.detail-body { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 36px 40px 10px; }
.trailer { align-self: start; }
.trailer .frame { position: relative; aspect-ratio: var(--aspect, 9 / 16); width: 100%; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; overflow: hidden; background: #000; }
.trailer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.placeholder { display: grid; place-items: center; text-align: center; color: var(--text-2); }
.placeholder .inner { background: var(--paper); padding: 10px 16px; border: 1px solid var(--rule); font-style: italic; font-size: 16px; }
.placeholder .play, .yt-play .play { display: block; margin: 0 auto 6px; width: 0; height: 0; border-left: 16px solid var(--rubric); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.frame.placeholder { background-color: var(--image-ground); background-image: repeating-linear-gradient(90deg, var(--stripe) 0 1px, transparent 1px 4px); }
.trailer .caption { font-style: italic; color: var(--text-3); font-size: 16px; margin-top: 12px; }
.about h3 { font-size: 28px; margin-bottom: 14px; }
.about p { color: var(--text-2); }
.about p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 58px; line-height: .85; padding: 6px 8px 0 0; color: var(--rubric); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.pills li { border: 1px solid var(--rule); border-radius: 999px; padding: 5px 16px; font-size: 16px; color: var(--text-2); background: var(--paper); }
.index { margin: 24px 0 0; padding: 0; }
.index div { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.index dt { white-space: nowrap; }
.index div::after { content: none; }
.index .leader { flex: 1; border-bottom: 1px dotted var(--leader); transform: translateY(-5px); min-width: 20px; }
.index dd { margin: 0; text-align: right; color: var(--text-2); }
.shots { padding: 22px 40px 40px; }
.shots-row { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.shot { scroll-snap-align: start; margin: 0; }
.shot .frame { aspect-ratio: 9 / 19.5; border: 1px solid var(--ink); overflow: hidden; border-radius: 14px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { font-style: italic; color: var(--text-3); font-size: 15px; margin-top: 8px; }
.shot-open { display: block; width: 100%; padding: 0; background: none; color: inherit; cursor: zoom-in; transition: transform .15s ease-out; }
.shot-open:hover { transform: translateY(-3px); }
.shot-open:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; }

/* Screenshot viewer: the picture as big as the screen allows, dark around it in both themes */
.shot-viewer {
  padding: 0; border: 0; margin: 0; background: rgba(14, 12, 10, .96); color: #f2ead8;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  display: none; align-items: center; justify-content: center; gap: 24px;
}
.shot-viewer[open] { display: flex; animation: rise .2s ease-out; }
.shot-viewer::backdrop { background: transparent; }
.viewer-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer-figure img {
  display: block; height: min(calc(100dvh - 96px), 900px); width: auto; max-width: calc(100vw - 32px);
  object-fit: contain; border-radius: 22px; border: 1px solid rgba(242, 234, 216, .35); background: var(--image-ground);
}
.viewer-count { font-size: 15px; letter-spacing: .14em; color: rgba(242, 234, 216, .75); min-height: 1.2em; }
.viewer-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(242, 234, 216, .55); background: rgba(0, 0, 0, .35); color: #f2ead8;
  display: grid; place-items: center;
}
.viewer-btn svg { width: 18px; height: 18px; }
.viewer-btn:hover { background: rgba(242, 234, 216, .12); }
.viewer-btn:focus-visible { outline: 2px solid #f2ead8; outline-offset: 3px; }
.viewer-btn[hidden] { visibility: hidden; display: grid; }
.viewer-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .shot-viewer { gap: 0; }
  .viewer-prev, .viewer-next { position: absolute; bottom: 14px; }
  .viewer-prev { left: 16px; }
  .viewer-next { right: 16px; }
  .viewer-figure img { height: auto; max-height: calc(100dvh - 150px); max-width: calc(100vw - 32px); border-radius: 18px; }
  .viewer-count { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; }
}

/* ---------- Legal and support pages ---------- */
.doc { max-width: 760px; padding-top: 46px; padding-bottom: 90px; }
.doc h1 { font-size: clamp(38px, 6vw, 54px); margin-bottom: 10px; }
.doc .updated { font-style: italic; color: var(--text-3); margin-bottom: 32px; }
.doc h2 { font-size: 30px; margin: 44px 0 14px; }
.doc h3 { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: .14em; font-size: 20px; color: var(--rubric); margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--rubric); }
.doc .summary { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0 6px; margin: 0 0 30px; }
.doc .summary ul { list-style: none; padding: 0; }
.doc .summary li { padding-left: 26px; position: relative; }
.doc .summary li::before { content: "❦"; position: absolute; left: 0; color: var(--rubric); font-size: 15px; top: 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 17px; }
.doc th { text-align: left; font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--rubric); border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; }
.doc td { border-bottom: 1px solid var(--rule-soft); padding: 10px 10px 10px 0; vertical-align: top; color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 540px; }
.doc .contact { border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; padding: 22px 24px; margin: 26px 4px; }
.doc .contact .big { font-family: var(--serif); font-size: 26px; }
.toc { list-style: none; padding: 0; margin: 0 0 10px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }
mark.fill { background: #f0d9a0; color: #1f1b16; padding: 0 4px; font-style: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark.fill { background: #6b5320; color: #f7f1e4; } }
:root[data-theme="dark"] mark.fill { background: #6b5320; color: #f7f1e4; }
.consent-state { font-style: italic; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-size: 20px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-family: var(--serif); font-size: 26px; color: var(--rubric); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 40px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; padding-top: 28px; }
.site-footer .tag { font-style: italic; color: var(--text-3); margin-top: 8px; font-size: 17px; max-width: 24em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 36px; }
.foot-links a, .foot-links button { color: var(--ink); text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .14em; font-size: 17px; background: none; border: 0; padding: 0; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.foot-links a:hover, .foot-links button:hover { color: var(--rubric); }
.theme-switch { gap: 12px; }
.theme-switch .track { position: relative; width: 38px; height: 22px; border: 1px solid var(--ink); border-radius: 11px; flex: none; }
.theme-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.theme-switch[aria-checked="true"] .track { background: var(--ink); }
.theme-switch[aria-checked="true"] .track::after { transform: translateX(16px); background: var(--paper); }
.fine { margin-top: 30px; font-size: 15px; color: var(--text-3); }
.fine p { margin-bottom: .4em; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px;
  padding: 20px 22px 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
  animation: rise .35s ease-out;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .label { margin-bottom: 8px; }
.cookie-banner p { font-size: 17px; color: var(--text-2); margin-bottom: 14px; }
.cookie-banner .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookie-banner .btn { min-height: 46px; padding: 0 14px; }
.cookie-banner .more { margin-top: 12px; font-size: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 17px; z-index: 60; max-width: calc(100vw - 32px); text-align: center; animation: rise .3s ease-out; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { padding: 30px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .detail-body { grid-template-columns: 1fr; padding: 28px 24px 4px; gap: 30px; }
  .trailer { max-width: 320px; width: 100%; margin: 0 auto; }
  .banner { padding: 40px 24px 28px; }
  .minibar { padding: 0 12px 0 24px; gap: 12px; height: 60px; margin-bottom: -60px; }
  .minibar-title { font-size: 20px; }
  .minibar .store-badge img { height: 32px; }
  .shots { padding: 18px 24px 32px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; }
  .site-nav { gap: 16px; }
  .brand span { font-size: 24px; }
  .brand img { width: 30px; height: 30px; }
  .hero .lede { font-size: 19px; }
  .label { font-size: 16px; letter-spacing: .14em; }
  .row { grid-auto-columns: 72%; gap: 18px; }
  .cover .title { font-size: 34px; }
  .trailer { max-width: 250px; }
  .banner .kicker { letter-spacing: .14em; }
  .game-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .sheet { max-height: 100dvh; height: 100dvh; border: 0; outline: 0; }
  .toc { columns: 1; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px 18px 16px; }
}
.nowrap { white-space: nowrap; }
