/* games.css · the game pages of Restless Lab (game-*.html), 2026-11-22.
   The shell is the process dossiers' (copied from process-world.html), the games add a screen frame,
   a play button, a why-it-is-art plate, rule cards, a world strip and a decisions log. */
/* ───────────────────────────────────────────────────────────
   RAGHAVA KK · PROCESS DOSSIER № 05 · THE WORLD
   The site as a place you walk through, photographed inside the
   world. Same shell as the other dossiers, the one dossier in colour.
   The log lives in data/world-log.js and grows.
   ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --edge:clamp(1rem,2.6vw,2.4rem);
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
}

html { font-size: 16.5px; scroll-behavior: smooth; }
@media (min-width: 1280px) { html { font-size: 17.5px; } }

html, body {
  background: var(--paper); color: var(--ink);
  font-family: var(--serif);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh; cursor: none;
  background-image:
    radial-gradient(rgba(14,14,12,0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-size: 3px 3px, auto;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  z-index: 1; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* CURSOR */
.cursor { position: fixed; top:0; left:0; width:18px; height:18px; border-radius:50%; background: var(--ink); mix-blend-mode: difference; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease); }
.cursor.is-link { width: 56px; height: 56px; background: var(--red); mix-blend-mode: normal; }
.cursor.is-view { width: 88px; height: 88px; background: var(--red); mix-blend-mode: normal; }
.cursor.is-view::after { content: "open"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--paper); }
@media (hover: none), (pointer: coarse) { body { cursor: auto; } .cursor { display: none; } }

/* TAPE */
.tape { position: relative; z-index: 3; width: 100%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: var(--mono-a); letter-spacing: var(--mono-a-track); text-transform: uppercase; overflow: hidden; border-bottom: 1px solid var(--ink); }
.tape-track { display: flex; gap: 4rem; padding: 0.6rem 0; white-space: nowrap; animation: tape-scroll 60s linear infinite; width: max-content; }
.tape-track > span { display: inline-flex; align-items: center; gap: 1rem; }
.tape-track .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
@keyframes tape-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* MASTHEAD */
.masthead { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; padding: 1.2rem var(--edge) 0.9rem; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: var(--mono-a); letter-spacing: var(--mono-a-track); text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 640px) {
  .masthead { grid-template-columns: 1fr; gap: 0.4rem; padding: 0.9rem var(--edge) 0.7rem; }
  .masthead .left, .masthead .right { justify-content: flex-start; }
  .masthead .center { text-align: left; }
}
.masthead .left, .masthead .right { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.masthead .right { justify-content: flex-end; }
.masthead .center { font-family: var(--display); font-style: italic; font-size: clamp(0.95rem, 1.1vw, 1.05rem); letter-spacing: 0.04em; text-transform: none; color: var(--ink); }
.masthead .stamp { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.5rem; border: 1px solid var(--rule); border-radius: 999px; }
.masthead .stamp.live::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.masthead a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
.masthead a:hover { color: var(--red); }

/* PAGE HEAD */
.page-head {
  position: relative; z-index: 2;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--edge) 1.6rem;
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem;
  align-items: end;
}
.page-head .titleblock { grid-column: 1 / span 7; }
.page-head .meta { grid-column: 9 / span 4; align-self: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.65rem; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: var(--mono-a);
  letter-spacing: var(--mono-a-track); text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.eyebrow .num { font-weight: 600; color: var(--red); }
.page-title {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 0.95;
  letter-spacing: -0.01em; color: var(--ink);
}
.page-title em { color: var(--red); font-style: normal; }
.page-lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45;
  color: var(--ink-2); margin-top: 1rem; max-width: 60ch;
}
.page-lede em { font-style: normal; color: var(--red); }
.meta-block {
  font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track);
  text-transform: uppercase; color: var(--ink-2);
  border-top: 1px solid var(--rule); padding-top: 0.9rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.meta-block .accent { color: var(--red); }
@media (max-width: 920px) {
  .page-head .titleblock, .page-head .meta { grid-column: 1 / -1; }
}

/* HERO */
.hero {
  max-width: 1040px; margin: 0 auto;
  padding: 0 var(--edge) 0.4rem;
}
.hero .img-wrap { border: 1px solid var(--rule); }
.hero figcaption {
  font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track);
  text-transform: uppercase; color: var(--muted); margin-top: 0.45rem;
}
.hero-quote {
  max-width: 1480px; margin: 0 auto;
  padding: 1.8rem var(--edge) 2.4rem;
  display: grid; grid-template-columns: repeat(12,1fr); gap: 1.4rem;
}
.hero-quote blockquote {
  grid-column: 3 / span 8;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3;
  color: var(--ink); text-align: center;
}
.hero-quote blockquote em { color: var(--red); font-style: normal; }
.hero-quote cite {
  display: block; margin-top: 0.8rem;
  font-family: var(--mono); font-style: normal; font-size: var(--mono-b);
  letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--ink-2);
}
@media (max-width: 920px) { .hero-quote blockquote { grid-column: 1 / -1; } }

/* IMG WRAP (shared) */
.img-wrap {
  position: relative; overflow: hidden; background: var(--paper-2);
  display: block; cursor: pointer;
  border: 1px solid rgba(14,14,12,0.18);
  transition: transform .35s var(--ease-out), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.img-wrap:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 14px 32px rgba(0,0,0,0.12); }
.img-wrap img { display: block; width: 100%; height: auto; }

/* PROSE SECTIONS */
.prose-section {
  max-width: 1480px; margin: 0 auto;
  padding: clamp(2.4rem,5vh,4rem) var(--edge);
  display: grid; grid-template-columns: repeat(12,1fr); gap: 1.4rem;
  border-top: 1px solid var(--rule);
}
.prose-section .sec-label {
  grid-column: 1 / span 3;
  font-family: var(--serif); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.12em;
  font-variant-caps: small-caps; text-transform: lowercase; color: var(--ink-2);
}
.prose-section .sec-label .n { font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; font-variant-caps: normal; color: var(--red); font-weight: 600; display: block; margin-bottom: 0.3rem; }
.prose-section .sec-body { grid-column: 4 / span 6; }
.prose-section .sec-side { grid-column: 10 / span 3; }
.prose-section h2 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05;
  margin-bottom: 1rem; color: var(--ink);
}
.prose-section h2 em { color: var(--red); font-style: normal; }
.prose-section p {
  font-family: var(--serif); font-size: var(--text); line-height: 1.65;
  color: var(--ink-2); margin-bottom: 0.9rem; max-width: 62ch;
}
.prose-section p em { color: var(--red); font-style: italic; }
.prose-section p strong { font-weight: 600; color: var(--ink); }
.p--follow { margin-top: 1rem; }
@media (max-width: 920px) {
  .prose-section .sec-label, .prose-section .sec-body, .prose-section .sec-side { grid-column: 1 / -1; }
}

/* ─── THE STEPS · museum rooms ─── */
.step {
  max-width: 1480px; margin: 0 auto;
  padding: clamp(2.8rem,6vh,4.6rem) var(--edge);
  display: grid; grid-template-columns: repeat(12,1fr); gap: 1.4rem;
  border-top: 1px solid var(--rule);
}
.step .s-head { grid-column: 1 / span 3; }
.step .s-num {
  font-family: var(--display); font-style: italic;
  font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.9; color: var(--red);
}
.step .s-name {
  font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track);
  text-transform: uppercase; color: var(--ink-2); margin-top: 0.7rem; line-height: 1.7;
}
.step .s-name b { display: block; color: var(--ink); font-weight: 600; }
.step .s-main { grid-column: 4 / span 9; min-width: 0; }
.step h2 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.02;
  color: var(--ink); margin-bottom: 0.9rem; max-width: 24ch;
}
.step h2 em { color: var(--red); font-style: normal; }
.step .wall {
  font-family: var(--serif); font-size: var(--text); line-height: 1.66;
  color: var(--ink-2); max-width: 62ch; margin-bottom: 0.9rem;
}
.step .wall em { color: var(--red); font-style: italic; }
.step .wall strong { font-weight: 600; color: var(--ink); }
.pull {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; line-height: 1.55; color: var(--ink);
  border-left: 2px solid var(--red);
  padding: 0.35rem 0 0.35rem 0.9rem;
  max-width: 52ch; margin: 1.1rem 0;
}
.pull .p-label {
  display: block; font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 0.82rem; letter-spacing: 0.12em;
  font-variant-caps: small-caps; text-transform: lowercase;
  color: var(--red); margin-bottom: 0.25rem;
}
@media (max-width: 920px) {
  .step { grid-template-columns: 1fr; }
  .step .s-head, .step .s-main { grid-column: 1 / -1; }
  .step .s-head { display: flex; align-items: baseline; gap: 1rem; }
  .step .s-name { margin-top: 0; }
}

/* figures */
.figs { display: grid; gap: 0.55rem; margin-top: 1.4rem; }
.figs.c2 { grid-template-columns: 1fr 1fr; }
.figs.c3 { grid-template-columns: 1fr 1fr 1fr; }
.figs.c4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.figs.c2-1 { grid-template-columns: 2fr 1fr; align-items: start; }
.figs figure { margin: 0; min-width: 0; }
.figs figcaption {
  font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track);
  text-transform: uppercase; color: var(--muted);
  margin-top: 0.35rem; line-height: 1.45;
}
.figs figcaption em {
  font-family: var(--serif); font-style: italic; text-transform: none;
  letter-spacing: 0.01em; color: var(--ink-2); font-size: 11px;
  display: block; margin-bottom: 0.1rem;
}
@media (max-width: 720px) {
  .figs.c2, .figs.c3, .figs.c4, .figs.c2-1 { grid-template-columns: 1fr 1fr; }
  .figs.c2, .figs.c2-1 { grid-template-columns: 1fr; }
}

/* COLOPHON */
.colophon {
  position: relative; z-index: 2;
  padding: clamp(3rem, 7vh, 5rem) var(--edge) clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; align-items: start;
  font-family: var(--serif); font-size: 0.88rem; letter-spacing: 0.01em;
  text-transform: none; color: var(--ink-2);
}
.colophon .col { display: flex; flex-direction: column; gap: 0.35rem; }
.colophon .col.c-c { align-items: flex-end; }
.colophon h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--ink); text-transform: none; margin-bottom: 0.2rem; }
.colophon a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-soft); transition: color .2s var(--ease), border-color .2s var(--ease); }
.colophon a:hover { color: var(--red); border-color: var(--red); }
.colophon .seal { width: 60px; height: 60px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; background: var(--paper); margin-bottom: 0.6rem; }
.colophon .seal img { width: 70%; height: 70%; object-fit: contain; }
@media (max-width: 920px) {
  .colophon { grid-template-columns: 1fr; }
  .colophon .col.c-c { align-items: flex-start; }
}


/* ─── DOSSIER № 04 · specimens ─── */
.hero .strike-stack { max-width: 62ch; margin: 0 auto; padding: 0.4rem 0 0; }
.hero .strike-stack p {
  display: grid; grid-template-columns: 4.2rem 1fr; align-items: baseline; gap: 0.6rem;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem); line-height: 1.25; color: var(--ink-2);
  padding: 0.45rem 0; border-bottom: 1px solid var(--rule-soft);
}
.hero .strike-stack p .yr { font-family: var(--mono); font-style: normal; font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--muted); }
.hero .strike-stack p del { color: var(--ink-2); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.hero .strike-stack p.last { border-bottom: 2px solid var(--ink); }
.hero .strike-stack p.last .yr { color: var(--red); }
.hero .strike-stack p.last ins { text-decoration: none; color: var(--ink); font-size: 1.15em; }
.hero .hero-cap { max-width: 62ch; margin: 0.8rem auto 0; font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--muted); line-height: 1.5; }

.spec { margin-top: 1.4rem; max-width: 62ch; border: 1px solid var(--ink); padding: 0.9rem 1rem 1rem; background: var(--paper); position: relative; }
.spec::before { content: "exhibit"; position: absolute; top: -0.55rem; left: 0.8rem; padding: 0 0.35rem; background: var(--paper); font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--red); }
.spec .sp-src { display: block; font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; line-height: 1.5; }
.spec .sp-line { display: block; font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.25; color: var(--ink); }

.never { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.4rem 0 0.4rem; max-width: 720px; }
.never .nv-col { border-top: 2px solid var(--ink); padding-top: 0.7rem; }
.never .nv-head { display: block; font-family: var(--serif); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.12em; font-variant-caps: small-caps; text-transform: lowercase; color: var(--ink-2); margin-bottom: 0.5rem; }
.never ul { list-style: none; }
.never li { font-family: var(--serif); font-size: var(--text); line-height: 1.6; color: var(--ink-2); padding: 0.15rem 0; border-bottom: 1px solid var(--rule-soft); }
.never .nv-col:not(.nv-site) li { text-decoration: line-through; text-decoration-color: var(--red); }
.never .nv-site .nv-head { color: var(--red); }
.never .nv-site li { color: var(--ink); }
.never .nv-site li em { color: var(--red); font-style: italic; }
.never a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.never a:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 720px) { .never { grid-template-columns: 1fr; } }

.log { max-width: 62ch; margin: 1.2rem 0 0; border-top: 1px solid var(--ink); }
.log > div { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule-soft); }
.log dt { font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--red); padding-top: 0.2rem; }
.log dd { font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: var(--ink-2); }
.log dd .log-note { display: block; margin-top: 0.3rem; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink); }

.coda .coda-link { margin-top: 1.4rem; }
.coda .coda-link a { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
.coda .coda-link a:hover { color: var(--red); }
.meta-block a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.meta-block a:hover { color: var(--red); }
.prose-section p a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.prose-section p a:hover { color: var(--red); border-color: var(--red); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .masthead .stamp.live::before { animation: none; }
  .img-wrap, .reveal { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
  
/* ───────────────────────────────────────────────────────────
   № 05 · THE WORLD · the one dossier in colour.
   The shell stays ink and paper. The pictures are the world's own
   wrong colours, and the temple's palette (gold, magenta, violet,
   teal) marks the sections and the log, on purpose, once.
   ─────────────────────────────────────────────────────────── */
:root { --w-gold:#F2B51A; --w-magenta:#E8309A; --w-violet:#6A3BD6; --w-teal:#1FB8B0; --w-night:#2A1F38; --w-ground:#4A3A66; }

.t-gold { color: var(--w-gold) !important; } .t-magenta { color: var(--w-magenta) !important; }
.t-violet { color: var(--w-violet) !important; } .t-teal { color: var(--w-teal) !important; } .t-red { color: var(--red) !important; }
.b-gold { border-color: var(--w-gold) !important; } .b-magenta { border-color: var(--w-magenta) !important; }
.b-violet { border-color: var(--w-violet) !important; } .b-teal { border-color: var(--w-teal) !important; } .b-red { border-color: var(--red) !important; }

/* the band of five colours under the page head, the only decoration */
.w-band { max-width: 1480px; margin: 0 auto; padding: 0 var(--edge); }
.w-band div { height: 6px; background: linear-gradient(90deg, var(--w-gold) 0 20%, var(--w-magenta) 20% 40%, var(--w-violet) 40% 60%, var(--w-teal) 60% 80%, var(--red) 80% 100%); }

/* hero: one picture, full width, framed in night */
.hero.w-hero { padding-top: 1.6rem; }
.hero.w-hero .img-wrap { border: 0; background: var(--w-night); padding: 8px; }
.hero.w-hero .img-wrap img { border: 1px solid rgba(255,255,255,0.08); }
.hero.w-hero .hero-cap { text-align: center; }
.w-open { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1.4rem auto 0; }
.w-open a { font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; text-decoration: none; color: var(--paper); background: var(--ink); padding: 0.75rem 1.2rem; border: 1px solid var(--ink); }
.w-open a.alt { color: var(--ink); background: transparent; }
.w-open a:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* the brief, as his lines, one per card, each in a colour */
.brief { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; max-width: 1480px; margin: 0 auto; padding: 0.4rem var(--edge) 2.2rem; }
.brief div { border: 2px solid var(--ink); padding: 1rem 1rem 1.1rem; background: var(--paper); font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.18; color: var(--ink); position: relative; }
.brief div::before { content: attr(data-n); position: absolute; top: -0.7rem; left: 0.8rem; padding: 0 0.35rem; background: var(--paper); font-family: var(--mono); font-style: normal; font-size: var(--mono-c); letter-spacing: var(--mono-c-track); }
.brief div small { display: block; margin-top: 0.6rem; font-family: var(--mono); font-style: normal; font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--muted); }
@media (max-width: 920px) { .brief { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .brief { grid-template-columns: 1fr; } }

/* pictures in the step sections */
.step .figs { margin-top: 1.3rem; }
.figs .img-wrap { background: var(--w-night); border: 1px solid var(--rule); }
.figs .img-wrap img { aspect-ratio: 16 / 10; object-fit: cover; }
.figs.tall .img-wrap img { aspect-ratio: auto; }
.figs figure.phone { max-width: 320px; }
.figs figcaption b { display: block; font-family: var(--display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.15rem; }
.figs figcaption .key { display: inline-block; font-family: var(--mono); border: 1px solid var(--ink); padding: 0 0.3em; margin: 0 0.1em; color: var(--ink); text-transform: none; letter-spacing: 0; }
.step .figs.c3 .img-wrap, .step .figs.c4 .img-wrap { border-width: 2px; }
.w-wide .s-main { grid-column: 1 / -1 !important; }
.w-wide h2 { max-width: 30ch; }
.w-wide .wall { max-width: 72ch; }

/* the weather strip: five frames in a row that read as one sky */
.sky { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 1.4rem; background: var(--w-night); padding: 6px; }
.sky figure { margin: 0; min-width: 0; }
.sky img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sky figcaption { padding: 0.5rem 0.6rem 0.4rem; font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: rgba(252,252,250,0.75); line-height: 1.45; }
.sky figcaption b { display: block; color: var(--w-gold); font-weight: 600; }
@media (max-width: 720px) { .sky { grid-template-columns: 1fr 1fr; } .sky figure:last-child { grid-column: 1 / -1; } }

/* the temple, week by week */
.weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 1.4rem; background: var(--w-night); padding: 6px; }
.weeks figure { margin: 0; min-width: 0; position: relative; }
.weeks img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 45%; }
.weeks figure.gone img { filter: saturate(0.25) brightness(0.75); }
.weeks figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.4rem 0.5rem; background: linear-gradient(180deg, transparent, rgba(20,14,30,0.85)); font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--paper); }
.weeks figcaption b { display: block; color: var(--w-gold); }
.weeks figure.now::after { content: "now"; position: absolute; top: 0.4rem; left: 0.4rem; padding: 0.1rem 0.4rem; background: var(--red); color: var(--paper); font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; }
.board { margin-top: 1rem; height: 14px; border: 1px solid var(--ink); background: var(--paper); position: relative; max-width: 62ch; }
.board i { position: absolute; inset: 0; width: 0; background: var(--w-gold); transition: width 1.2s var(--ease-out); }
.board b { position: absolute; top: -1.6rem; left: 0; font-family: var(--mono); font-weight: 400; font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--ink-2); }

/* the log: dated entries with a picture, newest last, each with a colour stamp */
.wlog { max-width: 1100px; margin: 1.2rem 0 0; border-top: 2px solid var(--ink); }
.wlog .e { display: grid; grid-template-columns: 7rem 1fr 300px; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule-soft); align-items: start; }
.wlog .e.no-img { grid-template-columns: 7rem 1fr; }
.wlog .stamp { font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; line-height: 1.5; padding-top: 0.25rem; }
.wlog .stamp b { display: block; font-weight: 600; padding: 0.15rem 0.45rem; border: 2px solid currentColor; display: inline-block; margin-bottom: 0.3rem; }
.wlog .asked { font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.25; color: var(--ink); margin-bottom: 0.55rem; }
.wlog .asked::before { content: "“"; } .wlog .asked::after { content: "”"; }
.wlog .did { font-family: var(--serif); font-size: var(--text); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.wlog .did::before { content: "What changed"; display: block; font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.12em; font-variant-caps: small-caps; text-transform: lowercase; color: var(--red); margin-bottom: 0.2rem; }
.wlog .pic { background: var(--w-night); border: 2px solid var(--rule); padding: 4px; }
.wlog .pic img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wlog .pic.tall img { aspect-ratio: 9 / 16; object-fit: contain; }
.wlog .e.latest .stamp b { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wlog .e.latest .stamp small { display: block; color: var(--red); margin-top: 0.3rem; }
@media (max-width: 920px) { .wlog .e, .wlog .e.no-img { grid-template-columns: 1fr; gap: 0.6rem; } .wlog .pic { max-width: 420px; } }
.w-last { font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--ink-2); margin-top: 0.4rem; }
.w-last a { color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); }

/* a mono spec list for the colophon section */
.w-spec { list-style: none; max-width: 62ch; margin-top: 1rem; border-top: 1px solid var(--ink); }
.w-spec li { display: grid; grid-template-columns: 9rem 1fr; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule-soft); font-family: var(--serif); font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }
.w-spec li b { font-family: var(--mono); font-weight: 400; font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--red); padding-top: 0.15rem; }
@media (max-width: 520px) { .w-spec li { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ───────────────────────────────────────────────────────────
   GAMES · added 2026-11-22
   Each page sets --g-a (accent), --g-b (second accent) and --g-night (the screen's own dark)
   on <body>. Everything that is the game is shown on a screen of its own dark;
   everything that is about the game stays ink on paper.
   ─────────────────────────────────────────────────────────── */
@font-face { font-family: "Press Start 2P"; src: url("../fonts/gods-home/press-start-2p-latin-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DotGothic16"; src: url("../fonts/gods-home/dotgothic16-latin-400.woff2") format("woff2"); font-display: swap; }
body { --g-a: var(--red); --g-b: var(--w-gold); --g-night: #120c1a; --pixel: "Press Start 2P", var(--mono); }

.g-kicker { font-family: var(--pixel); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-a); display: inline-block; margin-bottom: 0.9rem; }
.g-kicker b { color: var(--ink); font-weight: 400; margin-right: 0.6rem; }

/* the screen: a picture of the game on its own dark, a scanline, a corner label */
.screen { position: relative; background: var(--g-night); padding: 10px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--g-a); }
.screen img { display: block; width: 100%; height: auto; image-rendering: auto; }
.screen::after { content: ""; position: absolute; inset: 10px; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,0.0) 0 2px, rgba(0,0,0,0.10) 2px 3px); mix-blend-mode: multiply; }
.screen .tag { position: absolute; top: -0.8rem; left: 1rem; z-index: 2; padding: 0.2rem 0.5rem; background: var(--ink); color: var(--paper); font-family: var(--pixel); font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase; }
.g-hero { max-width: 1180px; margin: 0 auto; padding: 1.8rem var(--edge) 0.4rem; }
.g-hero .hero-cap { text-align: center; margin-top: 1.2rem; max-width: 70ch; }

/* the play button, the one loud thing on the page */
.g-play { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem auto 0; }
.g-play a { font-family: var(--pixel); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.4rem; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.g-play a.go { background: var(--g-a); border-color: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.g-play a.go::before { content: "▶ "; }
.g-play a:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.g-play a.go:hover { background: var(--ink); }
.g-play .later { font-family: var(--mono); font-size: var(--mono-b); letter-spacing: var(--mono-b-track); text-transform: uppercase; color: var(--muted); align-self: center; }

/* why it is an art piece: one line, framed */
.g-why { max-width: 1480px; margin: 0 auto; padding: 2.6rem var(--edge) 2.6rem; display: grid; grid-template-columns: repeat(12,1fr); gap: 1.4rem; }
.g-why .plate { grid-column: 3 / span 8; border: 2px solid var(--ink); background: var(--paper); padding: 1.6rem 1.8rem 1.5rem; position: relative; text-align: center; }
.g-why .plate::before { content: "Why it is an art piece"; position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); padding: 0 0.6rem; background: var(--paper); font-family: var(--pixel); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g-a); white-space: nowrap; }
.g-why p { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2.15rem); line-height: 1.25; color: var(--ink); }
.g-why p em { color: var(--g-a); font-style: normal; }
@media (max-width: 920px) { .g-why .plate { grid-column: 1 / -1; } }

/* the rules, as numbered cards */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; margin: 1.4rem 0 0.4rem; }
.rules div { border: 2px solid var(--ink); background: var(--paper); padding: 1.15rem 1rem 1rem; position: relative; font-family: var(--serif); font-size: 1rem; line-height: 1.45; color: var(--ink); }
.rules div::before { content: attr(data-n); position: absolute; top: -0.75rem; left: 0.8rem; padding: 0.15rem 0.4rem; background: var(--g-a); color: var(--paper); font-family: var(--pixel); font-size: 0.6rem; }

/* the screens grid */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.shots.c2 { grid-template-columns: 1fr 1fr; }
.shots figure { margin: 0; min-width: 0; }
.shots .screen { padding: 6px; box-shadow: 5px 5px 0 var(--g-b); }
.shots .screen::after { inset: 6px; }
.shots img { aspect-ratio: 16 / 10; object-fit: cover; }
.shots figcaption { font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; line-height: 1.5; }
.shots figcaption b { display: block; font-family: var(--display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.08rem; color: var(--ink); margin-bottom: 0.15rem; font-weight: 400; }
@media (max-width: 920px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .shots, .shots.c2 { grid-template-columns: 1fr; } }

/* cast table (voices, gods) */
.cast { width: 100%; max-width: 980px; border-collapse: collapse; margin-top: 1.4rem; font-family: var(--serif); font-size: 0.98rem; line-height: 1.45; color: var(--ink-2); }
.cast th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--muted); padding: 0 0.8rem 0.5rem 0; border-bottom: 2px solid var(--ink); }
.cast td { padding: 0.65rem 0.8rem 0.65rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.cast td:first-child { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.cast td.gain { color: var(--g-a); }
@media (max-width: 720px) { .cast thead { display: none; } .cast tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); } .cast td { display: block; border: 0; padding: 0.1rem 0; } .cast td:first-child { white-space: normal; } }

/* the descent: one row per world, each with its screen and its own colour */
.worlds { margin-top: 1.6rem; border-top: 2px solid var(--ink); }
.worlds .wd { display: grid; grid-template-columns: 5.2rem 1fr 420px; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule-soft); align-items: start; }
.worlds .wn { font-family: var(--pixel); font-size: 1.5rem; line-height: 1; color: var(--wc, var(--g-a)); }
.worlds .wn small { display: block; margin-top: 0.6rem; font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); color: var(--muted); text-transform: uppercase; line-height: 1.4; }
.worlds h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.05; color: var(--ink); margin-bottom: 0.5rem; }
.worlds h3 span { font-family: var(--mono); font-style: normal; font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--wc, var(--g-a)); margin-left: 0.5rem; vertical-align: middle; }
.worlds p { font-family: var(--serif); font-size: var(--text); line-height: 1.6; color: var(--ink-2); max-width: 58ch; margin-bottom: 0.6rem; }
.worlds .says { font-family: var(--pixel); font-size: 0.6rem; line-height: 1.8; letter-spacing: 0.03em; color: var(--ink); background: var(--paper-2); border-left: 3px solid var(--wc, var(--g-a)); padding: 0.55rem 0.75rem; max-width: 58ch; }
.worlds .says::before { content: "On arrival · "; color: var(--muted); }
.worlds .screen { padding: 5px; box-shadow: 5px 5px 0 var(--wc, var(--g-a)); }
.worlds .screen::after { inset: 5px; }
.worlds .screen img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 980px) { .worlds .wd { grid-template-columns: 4rem 1fr; } .worlds .wd .screen { grid-column: 1 / -1; } }

/* the decisions log: what I said, what changed */
.dlog { max-width: 1000px; margin: 1.4rem 0 0; border-top: 2px solid var(--ink); }
.dlog .e { display: grid; grid-template-columns: 6.6rem 1fr; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); }
.dlog .when { font-family: var(--pixel); font-size: 0.58rem; line-height: 1.7; color: var(--g-a); padding-top: 0.3rem; }
.dlog .said { font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.25; color: var(--ink); margin-bottom: 0.45rem; }
.dlog .said::before { content: "“"; } .dlog .said::after { content: "”"; }
.dlog .did { font-family: var(--serif); font-size: var(--text); line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.dlog .did::before { content: "So"; display: block; font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.12em; font-variant-caps: small-caps; text-transform: lowercase; color: var(--g-a); margin-bottom: 0.15rem; }
@media (max-width: 640px) { .dlog .e { grid-template-columns: 1fr; gap: 0.3rem; } }

/* more games, at the foot of each page */
.more { max-width: 1480px; margin: 0 auto; padding: clamp(2.4rem,5vh,3.6rem) var(--edge); border-top: 1px solid var(--rule); }
.more h2 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; margin-bottom: 1.2rem; }
.more h2 em { color: var(--red); font-style: normal; }
.cart-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .cart-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cart-row { grid-template-columns: 1fr; } }

/* a cartridge: the game as a card (shared with lab.html's shelf, which copies these rules) */
.cart { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cart:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ca, var(--red)); }
.cart .cart-pic { position: relative; background: #120c1a; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--ink); }
.cart .cart-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.cart:hover .cart-pic img { transform: scale(1.04); }
.cart .cart-no { position: absolute; top: 0.55rem; left: 0.55rem; padding: 0.25rem 0.45rem; background: var(--ink); color: var(--paper); font-family: var(--pixel); font-size: 0.52rem; letter-spacing: 0.05em; }
.cart .cart-body { padding: 0.85rem 0.9rem 0.95rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.cart .cart-kind { font-family: var(--mono); font-size: var(--mono-c); letter-spacing: var(--mono-c-track); text-transform: uppercase; color: var(--ca, var(--red)); }
.cart .cart-title { font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.05; }
.cart .cart-line { font-family: var(--serif); font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.cart .cart-go { margin-top: auto; padding-top: 0.5rem; font-family: var(--pixel); font-size: 0.55rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.cart.here { opacity: 0.45; pointer-events: none; }
.screen { display: block; }
.step h2 em, .more h2 em { color: var(--g-a); }
/* the logic (2026-11-22, second pass): principles, not a log of what was said */
.logic .said::before, .logic .said::after { content: none; }
.logic .did::before { content: none; }
.logic .when { font-size: 0.7rem; }
/* phone-size screens, for the games that are played upright */
.shots.phones { grid-template-columns: repeat(5, 1fr); }
.shots.phones.c4 { grid-template-columns: repeat(4, 1fr); }
.shots.phones img { aspect-ratio: 390 / 844; object-fit: cover; }
@media (max-width: 920px) { .shots.phones, .shots.phones.c4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .shots.phones, .shots.phones.c4 { grid-template-columns: 1fr 1fr; } }
