/* Plica press kit. Colours are the game's ENDESGA 32 master palette (modules/ui/palette.lua). */
@font-face { font-family: "Press Start 2P"; src: url("fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("fonts/VT323-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  /* palette */
  --c-ink: #181425; --c-night: #262b44; --c-slate: #3a4466; --c-steel: #5a6988; --c-mist: #8b9bb4;
  --c-cloud: #c0cbdc; --c-white: #ffffff; --c-wine: #a22633; --c-red: #e43b44; --c-orange: #f77622;
  --c-gold: #feae34; --c-yellow: #fee761; --c-green: #63c74d; --c-leaf: #3e8948; --c-navy: #124e89;
  --c-blue: #0099db; --c-cyan: #2ce8f5; --c-plum: #3e2731; --c-brown: #733e39; --c-caramel: #c28569;
  --c-cream: #ead4aa; --c-tan: #e4a672; --c-purple: #68386c; --c-magenta: #b55088;

  /* light theme: parchment and ink */
  --bg: #efdfbd;
  --bg-dots: rgba(115, 62, 57, .09);
  --paper: #fbf3df;
  --paper-2: #ead4aa;
  --fold: #d9bd8c;
  --text: #181425;
  --text-soft: #3a4466;
  --line: #181425;
  --shadow: #181425;
  --head: #a22633;
  --step: #733e39;
  --link: #124e89;
  --focus: #0099db;
  --chip-bg: rgba(24, 20, 37, .06);
  --rule: rgba(24, 20, 37, .18);
  --stat: #a22633;

  --px: 3px;
  --radius: 0;
  --wrap: 1180px;
  --gutter: 24px;
  --f-pixel: "Press Start 2P", ui-monospace, monospace;
  --f-term: "VT323", ui-monospace, monospace;
  --f-book: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181425;
    --bg-dots: rgba(192, 203, 220, .06);
    --paper: #262b44;
    --paper-2: #3a4466;
    --fold: #3a4466;
    --text: #ead4aa;
    --text-soft: #c0cbdc;
    --line: #5a6988;
    --shadow: #0b0912;
    --head: #feae34;
    --step: #8b9bb4;
    --link: #2ce8f5;
    --focus: #2ce8f5;
    --chip-bg: rgba(234, 212, 170, .08);
    --rule: rgba(192, 203, 220, .16);
    --stat: #fee761;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* No ligatures anywhere: both pixel fonts have an "fi" ligature that squeezes two letters into one cell ("fght").
   !important because every `font:` shorthand on the page would reset these to normal. */
*, *::before, *::after, ::first-letter { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  background-image: radial-gradient(var(--bg-dots) 1px, transparent 1.2px);
  background-size: 12px 12px;
  font: 18px/1.6 var(--f-book);
  overflow-x: hidden;
}
[hidden] { display: none !important; } /* .note, .sub-h etc. set display, which would beat the hidden attribute */
img { max-width: 100%; height: auto; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--c-gold); color: var(--c-ink); padding: 10px 14px; font: 12px var(--f-pixel); }
.skip:focus { top: 8px; }
h1, h2, h3, h4 { margin: 0; font-weight: normal; }

/* ---------- sheets: folded paper ---------- */
.sheet {
  position: relative; background: var(--paper); color: var(--text);
  border: var(--px) solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
}
.dogear::after { /* folded top-right corner */
  content: ""; position: absolute; top: calc(-1 * var(--px)); right: calc(-1 * var(--px));
  width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--bg) 0 50%, var(--fold) 50% 100%);
  border-left: var(--px) solid var(--line); border-bottom: var(--px) solid var(--line);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.dogear::before { /* the cut on the frame behind the fold */
  content: ""; position: absolute; top: calc(-1 * var(--px)); right: calc(-1 * var(--px));
  width: 34px; height: 34px; background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 48px; padding: 12px 18px; text-decoration: none; cursor: pointer;
  font: 12px/1.4 var(--f-pixel); letter-spacing: .02em;
  color: var(--c-cream); background: var(--c-night);
  border: var(--px) solid var(--c-cream); box-shadow: 4px 4px 0 var(--c-ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--c-ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn-gold { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-ink); }
.btn-ghost { background: transparent; }
.btn.sm { min-height: 40px; padding: 8px 12px; font-size: 10px; }
.btn-note { font: 18px/1 var(--f-term); opacity: .85; }
.btn[aria-disabled="true"], .toc-zip[aria-disabled="true"] { opacity: .6; pointer-events: none; cursor: not-allowed; box-shadow: none; }

/* ---------- banner ---------- */
.banner { position: relative; background: var(--c-ink); color: var(--c-cream); padding: 56px 0 64px; isolation: isolate; }
.banner-art {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: url("img/banner-paperleaf.png") center 30% / cover no-repeat;
  image-rendering: pixelated;
}
.banner-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24,20,37,.90) 0%, rgba(24,20,37,.80) 38%, rgba(24,20,37,.55) 58%, var(--c-ink) 88%),
    radial-gradient(ellipse at 50% 20%, rgba(254,174,52,.10), transparent 60%);
}
.banner-inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.banner-copy { text-align: left; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 12px var(--f-pixel); text-transform: uppercase; letter-spacing: .14em;
  color: var(--c-gold); background: rgba(24,20,37,.7); padding: 8px 14px; border: 2px solid var(--c-gold);
}
.logo { margin: 0; max-width: 480px; line-height: 0; }
.logo img { width: 100%; filter: drop-shadow(0 6px 0 rgba(0,0,0,.45)); }
.tagline { margin: 20px 0 0; max-width: 30ch; font: 28px/1.15 var(--f-term); color: var(--c-white); text-shadow: 2px 2px 0 var(--c-ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 0; margin: 18px 0 0; }
.chips li { font: 20px/1 var(--f-term); padding: 6px 10px; background: rgba(38,43,68,.85); border: 2px solid var(--c-slate); color: var(--c-cloud); }
.actions { display: grid; gap: 12px; max-width: 470px; margin: 28px 0 0; }
.actions .btn { justify-content: space-between; }

.trailer { margin: 0; padding: 10px; background: var(--c-night); border-color: var(--c-gold); box-shadow: 8px 8px 0 #0b0912; z-index: 2; }
.trailer.dogear::before { background: var(--c-ink); }
.trailer.dogear::after { background: linear-gradient(225deg, var(--c-ink) 0 50%, var(--c-slate) 50% 100%); border-color: var(--c-gold); }
.trailer-slot { position: relative; aspect-ratio: 16 / 9; background: var(--c-ink); }
.trailer-slot video, .trailer-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-fig { margin: 0; position: relative; height: 100%; }
.soon {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 12px/1.5 var(--f-pixel); color: var(--c-cream); background: rgba(24,20,37,.88);
  border: var(--px) solid var(--c-gold); padding: 10px 16px; box-shadow: 4px 4px 0 var(--c-ink);
}
.soon::before { content: ""; width: 10px; height: 10px; background: var(--c-red); box-shadow: 0 0 0 2px var(--c-ink); }
.trailer-cap { margin: 8px 4px 0; font: 20px/1.2 var(--f-term); color: var(--c-mist); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- sticky nav ---------- */
.toc { position: sticky; top: 0; z-index: 20; background: var(--c-ink); border-top: var(--px) solid var(--c-gold); border-bottom: var(--px) solid var(--c-gold); }
.toc-inner { display: flex; align-items: center; gap: 8px; }
.toc ol {
  list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
  scroll-snap-type: x proximity; scroll-padding-inline: 18px 0;
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
}
.toc ol.fade-l { --fl: 16px; }
.toc ol.fade-r { --fr: 36px; }
.toc ol li { scroll-snap-align: start; }
.toc ol::-webkit-scrollbar { display: none; }
.toc a { color: var(--c-cloud); text-decoration: none; }
.toc ol a { display: block; white-space: nowrap; padding: 14px 10px 12px; font: 22px/1 var(--f-term); border-bottom: 3px solid transparent; }
.toc ol a:hover { color: var(--c-white); }
.toc ol a[aria-current="true"] { color: var(--c-gold); border-bottom-color: var(--c-gold); }
.toc-home { display: grid; place-items: center; width: 40px; height: 44px; flex: none; }
.toc-home img { width: 21px; height: 27px; }
.toc-zip { flex: none; font: 10px var(--f-pixel); padding: 9px 10px; background: var(--c-gold); color: var(--c-ink) !important; border: 2px solid var(--c-cream); }

/* ---------- sections ---------- */
.section { padding: 72px 0 8px; }
#facts { padding-top: 56px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 14px; border-bottom: var(--px) dashed var(--rule); }
.sec-head h2 { font: 26px/1.3 var(--f-pixel); color: var(--head); text-shadow: 3px 3px 0 var(--rule); }
.step { font: 22px/1 var(--f-term); color: var(--step); letter-spacing: .08em; text-transform: uppercase; }
.sub-h { font: 14px/1.4 var(--f-pixel); color: var(--head); margin: 44px 0 16px; }
.lede { margin: -8px 0 22px; color: var(--text-soft); max-width: 62ch; }
.note { display: flex; gap: 10px; align-items: baseline; font: 20px/1.25 var(--f-term); color: var(--text-soft); background: var(--chip-bg); border-left: 4px solid var(--c-gold); padding: 10px 14px; margin: -6px 0 22px; max-width: 80ch; }
.note::before { content: "!"; font: 12px var(--f-pixel); color: var(--c-ink); background: var(--c-gold); padding: 3px 7px 2px; }

/* facts */
.facts-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.facts-sheet { padding: 6px 22px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 2px dotted var(--rule); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; padding-right: 16px; font: 22px/1.1 var(--f-term); color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.facts td { font-size: 17px; line-height: 1.5; }
.facts tr.confirm td, .facts tr.confirm th { background: repeating-linear-gradient(135deg, transparent 0 10px, var(--chip-bg) 10px 20px); }
.flag { display: inline-block; margin-top: 6px; font: 9px/1.4 var(--f-pixel); text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink); background: var(--c-gold); padding: 3px 6px 2px; }

.fold-card { padding: 22px 22px 18px; }
.fold-card h3 { font: 13px/1.5 var(--f-pixel); color: var(--head); margin-bottom: 10px; padding-right: 30px; }
.fold-card p { margin: 0 0 12px; font-size: 17px; }
.fold-chain { list-style: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 18px 4px 14px; margin: 6px 0 12px; border-top: 2px dotted var(--rule); border-bottom: 2px dotted var(--rule); }
.fold-chain li { display: grid; justify-items: center; gap: 6px; flex: 1; position: relative; }
.fold-chain li + li::before { content: "\203A"; position: absolute; left: -10px; bottom: 38%; font: 26px var(--f-term); color: var(--text-soft); }
.fold-chain b { font: 12px var(--f-pixel); }
.fold-chain small { font: 8px var(--f-pixel); color: var(--c-ink); background: var(--c-gold); padding: 3px 4px 2px; white-space: nowrap; }
.mini-card {
  --h: 54px; display: grid; place-items: center; width: calc(var(--h) * .72); height: var(--h);
  background: var(--c-cream); border: 3px solid var(--c-red); box-shadow: 0 0 0 2px var(--c-ink), 3px 3px 0 2px var(--c-ink);
}
.mini-card img { width: 24px; height: 24px; }
.fold-card { position: sticky; top: 84px; }
.fold-chain li:nth-child(2) .mini-card { --h: 62px; }
.fold-chain li:nth-child(3) .mini-card { --h: 70px; } .fold-chain li:nth-child(3) .mini-card img { width: 36px; height: 36px; }
.fold-chain li.max .mini-card { --h: 82px; border-color: var(--c-gold); background: linear-gradient(160deg, #fff6d6, var(--c-cream)); } .fold-chain li.max .mini-card img { width: 48px; height: 48px; }
.fold-chain li.max b { color: var(--head); }
.suits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 4px 0 0; font: 21px/1 var(--f-term); }
.suits li { display: inline-flex; align-items: center; gap: 6px; }
.suits img { width: 24px; height: 24px; }

/* descriptions */
.copy-block { padding: 18px 22px 8px; margin-bottom: 22px; }
.copy-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; padding-right: 26px; }
.copy-block h3, .taglines h3 { font: 12px/1.5 var(--f-pixel); color: var(--head); }
.copy-block p { margin: 0 0 14px; max-width: 75ch; }
#desc-short-text { font-size: 21px; line-height: 1.5; }
.long-text { columns: 2 330px; column-gap: 40px; }
.long-text p { break-inside: avoid; }
.dropcap::first-letter { float: left; font: 44px/1 var(--f-pixel); color: var(--c-red); margin: 6px 10px 0 0; text-shadow: 3px 3px 0 var(--c-ink); }
.btn-copy {
  flex: none; cursor: pointer; font: 10px var(--f-pixel); min-height: 40px; padding: 8px 12px;
  color: var(--text); background: var(--chip-bg); border: 2px solid var(--line);
}
.btn-copy:hover { background: var(--c-gold); color: var(--c-ink); }
.btn-copy.done { background: var(--c-green); color: var(--c-ink); }
.btn-copy.sm { min-height: 36px; padding: 6px 10px; font-size: 9px; }
.taglines { padding: 18px 22px; }
.taglines ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.taglines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 2px dotted var(--rule); }
.taglines li:last-child { border-bottom: 0; }
.taglines q { font: 24px/1.15 var(--f-term); }

/* features */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; border: var(--px) solid var(--line); background: var(--paper); box-shadow: 6px 6px 0 var(--shadow); }
.stats li { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 22px 6px 18px; text-align: center; border-right: 2px dotted var(--rule); }
.stats li:last-child { border-right: 0; }
.stats b { font: 26px/1 var(--f-pixel); color: var(--stat); text-shadow: 3px 3px 0 var(--rule); }
.stats span { font: 20px/1 var(--f-term); color: var(--text-soft); }

.heroes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hero { padding: 0 0 16px; border-top: 10px solid var(--hc); }
.hero .portrait { display: block; width: 100%; aspect-ratio: 1; background: var(--hc); border-bottom: var(--px) solid var(--line); }
.hero > div { padding: 14px 16px 0; }
.hero h4 { font: 13px/1.4 var(--f-pixel); margin-bottom: 8px; }
.hero-line { margin: 0 0 10px; font-style: italic; font-size: 16px; line-height: 1.45; color: var(--text-soft); }
.hero-meta { margin: 0; display: grid; gap: 6px; font: 19px/1.15 var(--f-term); }
.hero-meta span:first-child { justify-self: start; font: 10px var(--f-pixel); color: var(--c-white); background: var(--c-red); padding: 4px 6px 3px; border: 2px solid var(--c-ink); }

.acts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: act; }
.acts li {
  position: relative; display: grid; justify-items: center; align-content: end; text-align: center; gap: 4px;
  padding: 16px 8px 14px; min-height: 230px; background: var(--paper); border: var(--px) solid var(--line); margin-left: calc(-1 * var(--px));
}
.acts li:first-child { margin-left: 0; }
.acts li:nth-child(1) { background: linear-gradient(var(--paper), color-mix(in srgb, var(--c-leaf) 22%, var(--paper))); }
.acts li:nth-child(2) { background: linear-gradient(var(--paper), color-mix(in srgb, var(--c-purple) 26%, var(--paper))); }
.acts li:nth-child(3) { background: linear-gradient(var(--paper), color-mix(in srgb, var(--c-orange) 24%, var(--paper))); }
.acts li:nth-child(4) { background: linear-gradient(var(--paper), color-mix(in srgb, var(--c-blue) 22%, var(--paper))); }
.acts li:nth-child(5) { background: linear-gradient(var(--paper), color-mix(in srgb, var(--c-magenta) 24%, var(--paper))); }
.acts li.final { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-gold); box-shadow: 6px 6px 0 var(--shadow); z-index: 1; }
.acts img { width: 128px; height: 128px; margin-bottom: 6px; }
.acts li.final img { width: 144px; height: 144px; }
.acts b { font: 10px/1.5 var(--f-pixel); }
.acts span { font: 19px/1 var(--f-term); color: var(--text-soft); }
.acts li.final span { color: var(--c-mist); }
.acts em { font: 19px/1.1 var(--f-term); font-style: normal; color: var(--head); }
.acts li.final em { color: var(--c-gold); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feat { padding: 18px 20px 6px; }
.feat img { width: 36px; height: auto; float: right; margin: 0 0 6px 10px; }
.feat h4 { font: 12px/1.5 var(--f-pixel); color: var(--head); margin-bottom: 8px; }
.feat p { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.pets-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 38px 0 0; padding: 14px; border-top: var(--px) dashed var(--rule); border-bottom: var(--px) dashed var(--rule); }
.pets-row img { width: 60px; height: 60px; }

/* media grids */
.clips, .gallery, .assets { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.clips { --cols: 2; display: flex; flex-wrap: wrap; justify-content: center; }
.clips > li { flex: 0 0 calc((100% - (var(--cols) - 1) * 22px) / var(--cols)); min-width: 0; }
.gallery { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; }
.gallery > li { flex: 0 0 calc((100% - (var(--cols) - 1) * 22px) / var(--cols)); min-width: 0; }
.gallery > li.wide { flex-basis: calc((100% - (var(--cols) - 1) * 22px) / var(--cols) * 2 + 22px); }
.gallery-phone { --cols: 2; }
.gallery-wide { --cols: 3; }
.assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.assets-key { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.assets-key .tile-media { aspect-ratio: 1200 / 630; }
.assets.assets-key .tile-media { display: block; }
.assets.assets-key .tile-media img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.assets-sprites { grid-template-columns: 1fr; }
.tile { display: flex; flex-direction: column; padding: 8px; }
.tile-media { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--line); background: var(--c-ink); cursor: zoom-in; overflow: hidden; line-height: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile-media:hover img { transform: scale(1.03); }
/* each slot's tile shape comes from its media (press.js sets --ar on the list and on any item of another shape) */
.gallery .tile-media, .clips .tile-media { aspect-ratio: var(--ar, 16 / 9); }
.tile-media.fit img, .tile-media.fit video { object-fit: contain; }
.clips.clips-vertical > li { flex: 0 1 300px; }
.clips .tile-media.poster img { filter: saturate(.8) brightness(.82); }
.clips .tile-media.poster:hover img { transform: none; }
.clips .tile-media { cursor: default; }
.clips .tile-media.poster { cursor: default; }
.clips video { width: 100%; height: 100%; display: block; background: var(--c-ink); }
.checker { background-color: #e9e2cf; background-image: conic-gradient(#d6ccb2 25%, transparent 0 50%, #d6ccb2 0 75%, transparent 0); background-size: 24px 24px; }
.assets .tile-media { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.assets .tile-media img { width: auto; height: auto; max-width: 86%; max-height: 80%; object-fit: contain; }
.assets .tile-media.dark { background: var(--c-ink); }
.assets-sprites .tile-media { aspect-ratio: auto; padding: 18px; }
.assets-sprites .tile-media img { max-height: 200px; max-width: 100%; }
.tile-body { padding: 10px 4px 2px; display: grid; gap: 4px; flex: 1; }
.tile-title { font: 11px/1.5 var(--f-pixel); margin: 0; }
.tile-cap { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--text-soft); }
.tile-meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font: 19px/1 var(--f-term); color: var(--text-soft); }
.tile-meta a { font: 19px/1 var(--f-term); }
.badge-soon { position: absolute; left: 10px; top: 10px; font: 9px/1.4 var(--f-pixel); color: var(--c-ink); background: var(--c-gold); padding: 4px 6px 3px; border: 2px solid var(--c-ink); }
.fallback { padding: 18px 22px; margin-top: 30px; }
.fallback-list { columns: 2 260px; }

/* developer, credits, contact */
.dev { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; padding: 26px 30px; }
.dev-mark { width: 100%; }
.dev p { margin: 0 0 12px; max-width: 64ch; }
.credits-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.credits { margin: 0; padding: 8px 22px; }
.credits div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 12px 0; border-bottom: 2px dotted var(--rule); }
.credits div:last-child { border-bottom: 0; }
.credits dt { font: 21px/1.15 var(--f-term); text-transform: uppercase; color: var(--text-soft); letter-spacing: .04em; }
.credits dd { margin: 0; font-size: 17px; }
.cast { margin: 0; padding: 26px 24px 20px; text-align: center; }
.cast-row { list-style: none; display: flex; justify-content: center; gap: 12px; padding: 0; margin: 0 0 16px; }
.cast-row li { background: var(--hc); border: var(--px) solid var(--line); box-shadow: 3px 3px 0 var(--shadow); line-height: 0; }
.cast-row img { width: 72px; height: 72px; }
.cast figcaption { display: grid; gap: 8px; }
.cast figcaption b { font: 12px/1.5 var(--f-pixel); font-weight: normal; color: var(--head); }
.cast figcaption span { font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.facts-dl { margin: 0; padding: 12px 0 14px; border-top: 2px dotted var(--rule); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font: 20px/1.2 var(--f-term); color: var(--text-soft); }
.facts-dl a { font: 20px/1.2 var(--f-term); }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 30px 32px; }
.contact-lead { margin: 0; color: var(--text-soft); }
.contact-mail { margin: 8px 0 12px; font: clamp(15px, 3.4vw, 26px)/1.3 var(--f-pixel); word-break: break-all; }
.contact-mail a { color: var(--head); text-decoration: none; border-bottom: 4px solid var(--c-gold); }
.contact-small { margin: 0; font-size: 15px; color: var(--text-soft); max-width: 52ch; }
.contact-actions { display: grid; gap: 14px; }

.foot { margin-top: 80px; padding: 26px 0 34px; background: var(--c-ink); color: var(--c-mist); border-top: var(--px) solid var(--c-gold); }
.foot-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font: 20px var(--f-term); }
.foot-inner p { margin: 0; flex: 1; }
.foot-inner img { width: 24px; height: 24px; }
.foot a { color: var(--c-cloud); }

/* lightbox */
.lightbox { width: min(1280px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: var(--px) solid var(--c-gold); background: var(--c-ink); color: var(--c-cream); box-shadow: 8px 8px 0 #000; }
.lightbox::backdrop { background: rgba(11, 9, 18, .88); }
.lb-inner { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(96vh - 6px); }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 2px solid var(--c-slate); }
.lb-title { flex: 1; margin: 0; font: 11px/1.5 var(--f-pixel); color: var(--c-gold); }
.lb-count { margin: 0; font: 20px var(--f-term); color: var(--c-mist); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 12px 56px; }
.lb-img { max-width: 100%; max-height: calc(96vh - 190px); width: auto; height: auto; object-fit: contain; background: var(--c-night); }
.lb-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer; font: 30px/1 var(--f-term); color: var(--c-cream); background: var(--c-night); border: 2px solid var(--c-slate); }
.lb-btn:hover { border-color: var(--c-gold); color: var(--c-gold); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px 14px; border-top: 2px solid var(--c-slate); flex-wrap: wrap; }
.lb-cap { margin: 0; flex: 1 1 300px; font-size: 16px; color: var(--c-cloud); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); margin: 0; z-index: 60; font: 11px var(--f-pixel); color: var(--c-ink); background: var(--c-green); border: var(--px) solid var(--c-ink); padding: 12px 16px; box-shadow: 4px 4px 0 var(--c-ink); transition: transform .2s; }
.toast:not(.show) { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li:nth-child(4) { border-right: 0; }
  .stats li:nth-child(-n+4) { border-bottom: 2px dotted var(--rule); }
  .heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { display: grid; grid-template-columns: 112px 1fr; }
  .hero .portrait { height: 100%; border-bottom: 0; border-right: var(--px) solid var(--line); aspect-ratio: auto; object-fit: cover; }
  .hero > div { padding-bottom: 0; }
  .acts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  .acts li { margin-top: calc(-1 * var(--px)); }
  .acts li:nth-child(4) { margin-left: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gallery, .gallery-wide { --cols: 2; }
  .gallery > li.wide { flex-basis: 100%; }
  .pets-row { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; }
}
@media (max-width: 960px) {
  .banner-inner { grid-template-columns: 1fr; gap: 34px; }
  .banner-copy { text-align: center; }
  .logo { margin: 0 auto; }
  .tagline { margin-inline: auto; }
  .chips { justify-content: center; }
  .actions { margin-inline: auto; }
}
@media (max-width: 860px) {
  .facts-grid, .credits-grid { grid-template-columns: 1fr; }
  .fold-card { position: relative; top: 0; }
  .assets, .assets-key { grid-template-columns: 1fr 1fr; }
  .dev { grid-template-columns: 1fr; }
  .dev-mark { max-width: 260px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .banner { padding: 28px 0 40px; }
  .kicker { font-size: 10px; margin-bottom: 14px; }
  .tagline { font-size: 24px; }
  .chips li { font-size: 18px; }
  .actions { flex-direction: column; align-items: stretch; margin: 22px 0 0; }
  .btn { font-size: 11px; }
  .trailer { padding: 6px; box-shadow: 5px 5px 0 #0b0912; }
  .dogear::before, .dogear::after { width: 24px; height: 24px; }
  .soon { font-size: 9px; padding: 8px 10px; gap: 8px; bottom: 6%; }
  .soon::before { width: 8px; height: 8px; }
  .trailer-cap { font-size: 18px; }
  .toc ol a { font-size: 20px; padding: 13px 8px 11px; }
  .toc-zip { display: none; }
  .section { padding-top: 54px; }
  .sec-head { gap: 6px 12px; margin-bottom: 20px; }
  .sec-head h2 { font-size: 17px; }
  .step { font-size: 19px; }
  .sub-h { font-size: 12px; margin-top: 36px; }
  .facts-sheet { padding: 2px 14px; }
  .facts th, .facts td { display: block; width: auto; padding: 0; border: 0; }
  .facts th { padding-top: 12px; font-size: 19px; }
  .facts td { padding: 2px 0 12px; border-bottom: 2px dotted var(--rule); font-size: 16px; }
  .facts tr:last-child td { border-bottom: 0; }
  .fold-card { padding: 18px 16px 14px; }
  .mini-card { --h: 44px; }
  .fold-chain li:nth-child(2) .mini-card { --h: 50px; } .fold-chain li:nth-child(3) .mini-card { --h: 56px; } .fold-chain li.max .mini-card { --h: 66px; }
  .fold-chain small { font-size: 7px; }
  .copy-block { padding: 14px 14px 4px; }
  .copy-head { padding-right: 18px; }
  #desc-short-text { font-size: 19px; }
  .dropcap::first-letter { font-size: 34px; }
  .taglines { padding: 14px; }
  .taglines li { align-items: flex-start; }
  .taglines q { font-size: 21px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-right: 2px dotted var(--rule); border-bottom: 2px dotted var(--rule); padding: 16px 4px 14px; }
  .stats li:nth-child(2n) { border-right: 0; }
  .stats li:nth-last-child(-n+2) { border-bottom: 0; }
  .stats b { font-size: 22px; }
  .heroes { grid-template-columns: 1fr; gap: 16px; }
  .hero { grid-template-columns: 92px 1fr; }
  .hero > div { padding: 12px 12px 0; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts li { min-height: 190px; }
  .acts li:nth-child(odd) { margin-left: 0; }
  .acts li:nth-child(4) { margin-left: calc(-1 * var(--px)); }
  .acts img { width: 96px; height: 96px; }
  .acts li.final img { width: 112px; height: 112px; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .pets-row img { width: 44px; height: 44px; }
  .clips { --cols: 1; gap: 16px; }
  .gallery, .gallery-phone, .gallery-wide { --cols: 1; gap: 16px; }
  .gallery > li { flex-basis: 100%; }
  .assets, .assets-key { grid-template-columns: 1fr; }
  .dev { padding: 20px 16px; gap: 16px; }
  .credits { padding: 4px 14px; }
  .credits div { grid-template-columns: 1fr; gap: 2px; }
  .cast { padding: 20px 14px 16px; }
  .cast-row { gap: 8px; }
  .cast-row img { width: 56px; height: 56px; }
  .contact { padding: 22px 16px; }
  .contact-actions { width: 100%; }
  .lb-stage { padding: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-img { max-height: calc(96vh - 240px); }
  .lb-stage { padding-bottom: 60px; }
}

/* ---------- strategy guide (the PDF from tools/manual) ---------- */
.guide { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 40px; align-items: center; padding: 32px 36px; }
.guide-cover { display: block; line-height: 0; border: var(--px) solid var(--c-ink); box-shadow: 6px 6px 0 var(--shadow); transform: rotate(-2deg); transition: transform .12s; }
.guide-cover:hover { transform: rotate(-1deg) translate(-2px, -2px); }
.guide-cover img { display: block; width: 100%; height: auto; }
.guide-kicker { margin: 0 0 12px; font: 11px/1.6 var(--f-pixel); color: var(--step); }
.guide-title { margin: 0 0 14px; font: clamp(15px, 2.6vw, 22px)/1.4 var(--f-pixel); color: var(--head); }
.guide-copy p { max-width: 60ch; }
.guide-parts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 22px; padding: 0; }
.guide-parts li { font: 20px/1 var(--f-term); padding: 6px 10px 5px; background: var(--chip-bg); border: 2px solid var(--rule); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.guide-small { margin: 18px 0 0; font-size: 15px; color: var(--text-soft); }
@media (max-width: 860px) {
  .guide { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px; }
  .guide-cover { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .guide-actions { flex-direction: column; align-items: stretch; }
}
