/*
 * The covert look: every public page (layouts/site), from 2026-10-19.
 * site.css, the picture-book look before it, is now only the admin's.
 *
 * Dark navy or light, after the esports templates the owner pointed at,
 * with "covert" carried by three devices: case files whose lines are
 * redacted until pointed at, HUD labels and stamps, and the plate drawn as
 * a blueprint that the lens declassifies.
 *
 * Every colour is a light-dark() pair, so one declaration serves both
 * themes: the page follows the device (color-scheme: light dark) until the
 * visitor picks one, which sets data-theme and with it color-scheme.
 * Four accents were tried side by side; purple and orange was chosen.
 *
 * Contents
 *   1. Fonts and tokens   5. Hero and the plate   9. Protocols, briefing
 *   2. Base               6. The drawing          10. Footer, consent
 *   3. Layout             7. Stats               11. Motion
 *   4. Buttons, HUD       8. Case files          12. Inner pages
 */

/* ------------------------------------------------------------------ 1 -- */

/* Self-hosted, SIL Open Font License (LICENSE files beside them). Oxanium
   is the display and HUD face: squared, a little machine-made, and still
   friendly at the sizes a child's grown-up reads it. */
@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/oxanium-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* light, dark */
  --bg: light-dark(#eef0f7, #0a0c1d);
  --bg-2: light-dark(#e3e6f2, #0f1229);
  --panel: light-dark(#ffffff, #131735);
  --panel-2: light-dark(#f5f6fb, #181d42);
  --line: light-dark(#c9cee3, #272d5c);
  --text: light-dark(#10132b, #eef0ff);
  --text-2: light-dark(#3a3f63, #bfc4e8);
  --text-3: light-dark(#555a7e, #9298c4);
  --redact: light-dark(#10132b, #02030a);

  /* --accent: the brand purple (the mark's) - buttons, links, the
     blueprint's lines in the dark. --accent-2: torch orange, for what a
     reveal shows - lifted redactions, stamps, focus. --glow: the light
     behind the headline. --on-accent: text on a button. */
  --accent: light-dark(#5b4bd6, #9d8fff);
  --accent-2: light-dark(#a24f00, #ff9a3d);
  --glow: light-dark(rgba(91, 75, 214, 0.16), rgba(120, 100, 255, 0.28));
  --on-accent: light-dark(#ffffff, #0a0c1d);

  --radius: 6px;
  --font-display: "Oxanium", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 62ch;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* The blueprint's two tones (the #covert-duo filter in layouts/site).
   Light: navy ink on pale paper. Dark: the negative - the drawing's ink
   lines come out in the accent, its daylight goes to the night's navy. */
.duo-ink { flood-color: light-dark(#1b2150, var(--accent)); }
.duo-paper { flood-color: light-dark(#eef0f7, #0d1030); }

/* ------------------------------------------------------------------ 2 -- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(70rem 30rem at 50% -8rem, var(--glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ 3 -- */

.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
/* A section's intro runs the full width of the shell, so a one- or
   two-sentence lede reads as one line on a desktop rather than wrapping
   at a reading measure meant for paragraphs. */
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head > * + * { margin-top: 0.9rem; }
.section-head .lede { max-width: none; }
.lede { font-size: 1.2rem; color: var(--text-2); max-width: var(--measure); }

/* ------------------------------------------------------------------ 4 -- */

/* The button's face is a ::before with cut corners, so the focus outline
   (on the button itself) is never clipped with it. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  background: none;
  color: var(--text);
  font: 700 0.95rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel);
  box-shadow: inset 0 0 0 1.5px var(--line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover::before { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--primary { color: var(--on-accent); }
.btn--primary::before { background: var(--accent); box-shadow: 0 0 1.6rem var(--glow); }
.btn--primary:hover::before { background: var(--accent); box-shadow: 0 0 2.2rem var(--glow); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.8rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn svg { width: 1.1em; height: 1.1em; }
/* A button with a second, smaller line under its label - "See the games",
   and under it the theme's own words for it. */
.btn--stack {
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-block: 0.7rem;
}
.btn--stack small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.8;
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }

/* HUD labels: small, spaced capitals, like a readout. */
.hud {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Corner brackets, drawn as eight thin backgrounds. */
.hud-frame {
  --c: var(--accent);
  --l: 22px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) top left / 2px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) top right / 2px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) bottom left / 2px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 2px,
    linear-gradient(var(--c), var(--c)) bottom right / 2px var(--l);
  background-repeat: no-repeat;
}

/* A game's stage, as a rubber stamp. */
.stamp {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: var(--accent-2);
  font: 800 0.8rem/1.2 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

/* Redacted until pointed at, focused or tapped. The words are always in
   the page - a screen reader reads them, a search finds them - and only
   the bar over them moves. */
.redact {
  position: relative;
  display: inline;
  padding: 0 0.15em;
  color: transparent;
  font-weight: 700;
  cursor: help;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(var(--redact), var(--redact)) left / 100% 100% no-repeat;
  transition: background-size 0.45s cubic-bezier(0.7, 0, 0.2, 1), color 0.2s 0.15s;
}
.redact:hover,
.redact:focus,
.is-revealed .redact { background-size: 0 100%; color: var(--accent-2); }
.redact:focus { outline: none; }
.redact:focus-visible { outline: 2px dashed var(--accent-2); outline-offset: 2px; }


/* ------------------------------------------------------------------ 5 -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font: 800 1.15rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo { width: 2.3rem; height: 2.3rem; flex: none; }
.logo-digit { transition: stroke 0.25s ease; }
.brand:hover .logo-digit,
.brand:focus-visible .logo-digit { stroke: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-link {
  color: var(--text-2);
  font: 600 0.9rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle,
.nav-burger {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover,
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg,
.nav-burger svg { width: 1.25rem; height: 1.25rem; }
/* Show the theme a press would switch to. */
.theme-toggle[aria-pressed="true"] .theme-icon--moon,
.theme-toggle[aria-pressed="false"] .theme-icon--sun { display: none; }
.nav-burger { display: none; }

@media (max-width: 52rem) {
  .nav-burger { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 1rem 1.6rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-tools { margin-left: auto; }
}

.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem); text-align: center; }
.hero-copy { max-width: 54rem; margin-inline: auto; }
.hero-copy > * + * { margin-top: 1.3rem; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .btn-row { justify-content: center; margin-top: 2rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 1.8rem var(--glow);
}

.plate { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.plate-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.4rem 0.6rem;
  font: 600 0.75rem/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plate-bar-dot::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.6rem var(--accent);
  vertical-align: 0.05em;
}
@media (max-width: 40rem) { .plate-bar-mid { display: none; } }
.plate-frame {
  position: relative;
  padding: 6px;
  line-height: 0;
}
.plate-frame .scene {
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 0 4rem var(--glow);
}
.plate-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  margin-top: 1rem;
  color: var(--text-2);
}
.plate-tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-3);
}
@media (hover: none) { .plate-hint--hover { display: none; } }
@media (hover: hover) { .plate-hint--touch { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .plate.is-live:not(.is-revealed) .plate-frame { cursor: none; }
}
.lens-grip {
  position: absolute;
  left: 0; top: 0;
  width: 3.5rem; height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
}
.lens-grip:active { cursor: grabbing; }
.is-revealed .lens-grip { display: none; }
@media (hover: hover) and (pointer: fine) { .lens-grip { display: none; } }

/* ------------------------------------------------------------------ 6 -- */

/* The same drawing as the live site's (components/iso-scene), restyled. */
.scene { display: block; width: 100%; height: auto; }
.scene-duo { filter: url(#covert-duo); }
.scene-grid { opacity: 0.55; pointer-events: none; }
/* Inside the lens is the world in its own colours, dimmed just enough for
   the chalk to read. */
.scene-lens-dim { opacity: 0.42; }

.scene-label text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 2px;
  text-transform: uppercase;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.scene-label path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
}
.scene-secret text {
  font-family: var(--font-display);
  font-weight: 700;
  fill: #fff6dc;
}
.scene-secret-big { font-size: 30px; }
.scene-secret-wall { font-size: 19px; }
.scene-secret .scene-secret-num text { font-weight: 800; font-size: 19px; text-anchor: middle; }
.scene-secret-q text { font-size: 46px; text-anchor: middle; }
.scene-secret-line { fill: none; stroke: #fff6dc; stroke-width: 2.5; stroke-dasharray: 7 6; }
.scene-secret-stamp rect { fill: none; stroke: #fff6dc; stroke-width: 3; }
.scene-secret .scene-secret-stamp-name { font-weight: 800; font-size: 26px; letter-spacing: 6px; }
.scene-secret-stamp-sub { font-size: 18px; }

.scene-lens { pointer-events: none; }
.scene-lens-rim { fill: none; stroke: var(--accent); stroke-width: 8; filter: drop-shadow(0 0 8px var(--accent)); }
.scene-lens-ring { fill: none; stroke: var(--bg); stroke-width: 3; }
.scene-lens-handle { stroke: var(--accent); stroke-width: 22; stroke-linecap: round; }
.scene-lens-handle-grip { stroke: var(--bg); stroke-width: 10; stroke-linecap: round; }

.is-revealed .scene-lens-hole { r: 1400px; }
.is-revealed .scene-lens-all { fill: #fff; }
.is-revealed .scene-magnify { transform: none; }
.scene-lens,
.scene-labels { transition: opacity 0.3s ease; }
.is-revealed .scene-lens,
.is-revealed .scene-labels { opacity: 0; }
@media (max-width: 760px) { .scene-labels { display: none; } }

/* ------------------------------------------------------------------ 7 -- */

.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin: 0;
}
.stats-grid > div {
  display: grid;
  padding: 1.6rem 1.2rem;
  border-left: 1px solid var(--line);
}
.stats-grid > div:first-child { border-left: 0; }
.stats-grid dt { order: 1; font: 600 0.75rem/1.2 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.stats-grid .stat-n { order: 0; margin: 0; font: 800 2.6rem/1 var(--font-display); color: var(--accent); }
.stats-grid .stat-note { order: 2; margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ------------------------------------------------------------------ 8 -- */

.files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.5rem;
  align-items: start;
}
.file {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.file--sealed { border-top-color: var(--accent-2); }
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.file-name { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.file-shot { margin: 0; position: relative; }
.file-shot img,
.file-shot .scene {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}
/* A real picture is shown as surveillance footage - grey, tinted, with
   scanlines - and declassifies to its own colours when pointed at. The
   planned one is a blueprint, because that is all it is. */
.file-shot img { filter: grayscale(1) contrast(1.15) brightness(0.85); transition: filter 0.35s; }
.file-shot:not(.file-shot--sealed)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background:
    repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px),
    var(--accent);
  mix-blend-mode: color;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.35s;
}
.file-shot:hover img { filter: none; }
.file-shot:hover::after { opacity: 0; }
.file-shot .scene { filter: url(#covert-duo); }
.file-shot figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-3); }
.file-shot-q {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 5rem/1 var(--font-display);
  color: var(--accent-2);
  text-shadow: 0 0 1.5rem var(--accent-2);
}
.file-fields { display: grid; gap: 0.7rem; margin: 0; }
.file-fields > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-top: 0.7rem; border-top: 1px dashed var(--line); }
.file-fields dt { font: 600 0.75rem/1.9 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.file-fields dd { margin: 0; color: var(--text-2); }
.file-lessons { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
@media (max-width: 30rem) { .file-fields > div { grid-template-columns: 1fr; gap: 0.2rem; } }

.mission { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.mission li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.8rem; }
.mission-n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  height: 2.6rem;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  font: 800 1rem/1 var(--font-display);
  color: var(--accent);
}
.mission p { color: var(--text-2); font-size: 0.98rem; }

/* ------------------------------------------------------------------ 9 -- */

.protocols {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.protocol {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.protocol:hover { border-color: var(--accent); transform: translateY(-3px); }
.protocol h3 { font-size: 1.25rem; }
.protocol p { color: var(--text-2); font-size: 0.98rem; }

.briefing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.8rem, 5vw, 3rem);
  background-color: var(--panel);
}
.briefing > div { max-width: 38rem; }
.briefing > div > * + * { margin-top: 0.7rem; }
.briefing p:not(.hud) { color: var(--text-2); }

/* ----------------------------------------------------------------- 10 -- */

.footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-copy { color: var(--text-3); font-size: 0.95rem; }
.footer-copy .hud { margin-right: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.footer-links a { color: var(--text-2); font-size: 0.95rem; }

/* The consent banner (components/cookie-banner). */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.9rem;
  pointer-events: none;
}
.consent-inner {
  pointer-events: auto;
  width: min(100%, 58rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.3);
}
.consent-copy { flex: 1 1 22rem; font-size: 0.97rem; line-height: 1.5; color: var(--text-2); }
.consent-copy strong { color: var(--text); }
/* Deliberately identical buttons: refusing must not be harder to find, or
   to press, than accepting. */
.consent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
/* The second, optional yes: full width under the question, unticked. */
.consent-extra {
  flex: 1 1 100%;
  order: 1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-2);
}
.consent-extra input { margin-top: 0.2rem; inline-size: 1.05rem; block-size: 1.05rem; accent-color: var(--accent); flex: none; }
.consent-actions { order: 2; }


/* ----------------------------------------------------------------- 12 -- */

/* The inner pages - games, a game, about, contact, newsletter, the legal
   pages, sign-in and errors - moved over from site.css on 2026-10-19.
   Same class names as before, so the Blade did not have to change. */

:root {
  --ok: light-dark(#1d7a48, #7fe0a8);
  --bad: light-dark(#b3261e, #ffb4a6);
}

.shell--narrow { width: min(100% - 2rem, 48rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.stack > * + * { margin-top: var(--gap, 1rem); }
p + p { margin-top: 1em; }
strong { font-weight: 700; color: var(--text); }
::selection { background: var(--accent); color: var(--on-accent); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: "// "; }
.muted { color: var(--text-3); }
.small { font-size: 0.92rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The honeypot. Off-screen rather than display:none, which bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Stamps and pressed toggles keep the reveal colour wherever they are. */
[data-reveal-toggle][aria-pressed="true"] { color: var(--on-accent); }
[data-reveal-toggle][aria-pressed="true"]::before { background: var(--accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Fields */
.field {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field::placeholder { color: var(--text-3); }
.field:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.field[aria-invalid="true"] { border-color: var(--bad); }
textarea.field { min-height: 9rem; resize: vertical; }
select.field { appearance: auto; }
.label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hint { font-size: 0.9rem; color: var(--text-3); margin-top: 0.3rem; }
.error { color: var(--bad); font-weight: 700; font-size: 0.95rem; margin-top: 0.35rem; }

.form { max-width: 40rem; }
.form > * + * { margin-top: 1.25rem; }

.notice {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ok);
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 700;
}
.notice--warn { border-left-color: var(--accent-2); }

/* A single narrow column, for the sign-in pages, errors and one-button pages. */
.single {
  width: min(100% - 2rem, 36rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.single > * + * { margin-top: 1.1rem; }
.single h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* The newsletter form, in the footer, on its own page and on a game's. */
.signup > * + * { margin-top: 0.8rem; }
.signup h2,
.signup h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.signup-blurb { color: var(--text-2); }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 36rem; }
.signup-row .field { flex: 1 1 15rem; }
.signup-fine { font-size: 0.9rem; color: var(--text-3); max-width: 36rem; }
.signup-status { font-weight: 700; color: var(--ok); min-height: 1.6em; }
.signup-status:empty { min-height: 0; margin: 0; }

.footer-signup { padding-block: 0 2.5rem; }
.footer-signup .briefing { display: block; }
.footer:has(.footer-signup) { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* Page heads */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
}
.page-head > .shell > * + * { margin-top: 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .lede { max-width: none; }

/* Long text: the privacy page, the terms, accessibility. */
.prose { max-width: var(--measure); color: var(--text-2); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.6rem; color: var(--text); scroll-margin-top: 5.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; color: var(--text); }
.prose ul,
.prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose th,
.prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border: 1px solid var(--line); }
.prose th { background: var(--bg-2); color: var(--text); font-family: var(--font-display); }
.table-wrap { overflow-x: auto; }
.prose code { font-size: 0.92em; background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 4px; }

/* Two columns that collapse to one. */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* Lists: what is built (ticks) and what is planned (dots). */
.ticks,
.dots { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.ticks li,
.dots li { position: relative; padding-left: 1.9rem; color: var(--text-2); }
.ticks li + li,
.dots li + li { margin-top: 0.7rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.dots li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px dashed var(--accent-2);
  border-radius: 50%;
}

.callout {
  padding: 1.4rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout--leaf { border-top-color: var(--accent-2); }
.callout > * + * { margin-top: 0.7rem; }
.callout p:not(.btn-row) { color: var(--text-2); }

/* The four rules, on the about page: the same cards as the home page's
   protocols. */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}
.rule {
  counter-increment: rule;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rule::before {
  content: "Protocol 0" counter(rule);
  display: block;
  margin-bottom: 0.6rem;
  font: 600 0.8rem/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.rule h3 { font-size: 1.25rem; }
.rule p { margin-top: 0.55rem; color: var(--text-2); font-size: 0.98rem; }

/* How a game plays, as numbered mission steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding: 1.3rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.2rem; }
.step h3::before {
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  font: 800 0.95rem/1 var(--font-display);
  color: var(--accent);
}
.step p { margin-top: 0.6rem; color: var(--text-2); }

/* A game's own page. */
.game-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.game-head > .shell > * + * { margin-top: 1rem; }
.game-head .scene-banner,
.game-head .shot--banner { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.game-head .lede { max-width: none; }

.facts { display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; margin: 1.2rem 0 0; padding: 0; }
.facts div { min-width: 8rem; }
.facts dt {
  font: 600 0.75rem/1.4 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.facts dd { margin: 0.15rem 0 0; font-weight: 700; color: var(--text); }

/* The flat drawing, cropped for banners and cards: a blueprint too. */
.scene-banner {
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 3rem var(--glow);
}
.scene-banner .scene { height: clamp(11rem, 30vw, 21rem); }
.scene-banner .scene,
.game-card-art .scene { filter: url(#covert-duo); }

/* The games, as cards. */
.game-cards {
  display: grid;
  /* auto-fill, not auto-fit: a game shown alone keeps a card's width. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.game-card--surface { border-top-color: var(--accent-2); }
a.game-card:hover { transform: translateY(-3px); box-shadow: 0 0.8rem 2.4rem var(--glow); border-color: var(--accent); }
.game-card-art { line-height: 0; border-bottom: 1px solid var(--line); }
.game-card-art .scene,
.game-card-art img { display: block; width: 100%; height: 12rem; }
.game-card-art img { object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.85); transition: filter 0.35s; }
a.game-card:hover .game-card-art img { filter: none; }
.game-card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.game-card-body > * + * { margin-top: 0.7rem; }
.game-card-body h2,
.game-card-body h3 { font-size: 1.8rem; }
.game-card-body p { color: var(--text-2); }
.game-card-more {
  display: inline-block;
  font: 700 0.85rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* A picture of a game: always captioned with what kind of picture it is. */
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.shot--banner img { box-shadow: 0 0 3rem var(--glow); }
.shot figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-3); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.gallery a { display: block; border-radius: var(--radius); }
.gallery img { transition: transform 0.2s, box-shadow 0.2s; }
.gallery a:hover img { transform: translateY(-3px); box-shadow: 0 0.8rem 2.4rem var(--glow); }

/*
 * The reveal: a picture, numbered pins on it, and what each pin is really
 * teaching. Positions are percentages of the picture, turned into lengths
 * with container units so they follow the picture rather than the window.
 * Every picture here is 16:9, which is where 0.5625 comes from. Narrow: the
 * notes are a numbered list under the picture. From 700px of picture they
 * sit on it, beside their pins.
 */
.reveal { margin: 0; }
.reveal--paper { margin-top: 1.4rem; }
.reveal-stage {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0c1d;
}
.reveal-stage img { display: block; width: 100%; height: auto; transition: filter 0.4s ease; }
.reveal:not([data-ready]) .reveal-stage img,
.reveal.is-revealed .reveal-stage img { filter: brightness(0.6) saturate(0.8); }

.reveal-notes {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  list-style: none;
  counter-reset: note;
  background: #0d1030;
  color: #eef0ff;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.4;
}
.reveal-note { counter-increment: note; display: flex; gap: 0.7rem; align-items: baseline; }
.reveal-note::before {
  content: counter(note);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #ff9a3d;
  color: #0a0c1d;
  font-weight: 800;
  font-size: 0.85rem;
}
.reveal-text strong { color: #ffc98f; }
.reveal-pin {
  position: absolute;
  left: calc(var(--x) * 1cqw);
  top: calc(var(--y) * 0.5625cqw);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: -1.05rem 0 0 -1.05rem;
  border-radius: 50%;
  background: #ff9a3d;
  color: #0a0c1d;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(255, 154, 61, 0.3), 0 0 1.2rem rgba(255, 154, 61, 0.6);
}
@container (min-width: 700px) {
  .reveal-notes { position: absolute; inset: 0; display: block; padding: 0; background: none; border: 0; }
  .reveal-note { position: absolute; left: calc(var(--x) * 1cqw); top: calc(var(--y) * 0.5625cqw); display: block; }
  .reveal-note::before { content: none; }
  .reveal-pin { left: 0; top: 0; }
  .reveal-text {
    position: absolute;
    top: 0;
    left: 1.6rem;
    width: max-content;
    max-width: min(17rem, 30cqw);
    transform: translateY(-50%);
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 154, 61, 0.6);
    border-radius: var(--radius);
    background: rgba(10, 12, 29, 0.93);
  }
  .reveal-note--left .reveal-text { left: auto; right: 1.6rem; }
}
/* Hidden until asked for - but only once the script is there to ask with. */
.reveal[data-ready]:not(.is-revealed) .reveal-note { visibility: hidden; opacity: 0; }
@container (max-width: 699.98px) {
  .reveal[data-ready]:not(.is-revealed) .reveal-notes { display: none; }
}
.reveal-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--text-3);
}

/* Space above the footer belongs to the page, not the footer: a page that
   ends on a full-width band runs straight into it. */
main { padding-bottom: clamp(3rem, 8vw, 6rem); }
main:has(> .band:last-child),
main:has(> .section:last-child) { padding-bottom: 0; }

/* ----------------------------------------------------------------- 11 -- */

@media (prefers-reduced-motion: no-preference) {
  .scene-glow { animation: flicker 3.4s ease-in-out infinite; }
  .scene-glow--late { animation-delay: -1.3s; }
  .scene-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.7s ease-in-out infinite; }
  .scene-cloud { animation: drift 46s linear infinite alternate; }
  .scene-cloud--slow { animation-duration: 70s; }
  .scene-lens-hole { transition: r 0.7s ease; }
  .is-revealed .scene-lens-all { transition: fill 0s linear 0.7s; }
  .plate-bar-dot::before { animation: blink 1.6s steps(2, start) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .redact { transition: none; }
  .scene-lens,
  .scene-labels { transition: none; }
}
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes flame { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.86); } }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes blink { to { visibility: hidden; } }
