/* Since When?: a premium "vintage ad" look to match the 1980s airbrush art.
   Cream paper with a fine grain, deep navy ink, the art's signature red,
   and a little brass for the finest details. Editorial serif headings,
   tabular numbers, soft layered shadows. The stage restyles to the decade
   on the year slider (see "Decades" at the bottom). Closeness runs green →
   gold → orange → red, always with an icon and words too.
   Mobile first; wider screens just get more breathing room. */

:root {
  color-scheme: light;
  --bg: #f3ece0;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --surface: #fbf7ef;
  --surface-2: #efe6d6;
  --ink: #1b2236;
  --ink-2: #5b5f6d;
  --line: #ddd1bd;
  --accent: #b3271f;
  --accent-deep: #7f1813;
  --accent-ink: #fff8ee;
  --accent-soft: #f5ddd3;
  --navy: #1f3a6b;
  --brass: #b08a45;
  --spot: rgba(255, 255, 255, 0.6);
  --shadow: 0 1px 1px rgba(27, 34, 54, 0.04), 0 2px 4px rgba(27, 34, 54, 0.05), 0 12px 32px -12px rgba(27, 34, 54, 0.22);
  --shadow-lift: 0 2px 4px rgba(27, 34, 54, 0.08), 0 18px 40px -14px rgba(27, 34, 54, 0.32);

  --exact: #2f7d4f;
  --exact-soft: #e1f0e5;
  --close: #9a7416;
  --close-soft: #f6ecd0;
  --near: #c4561b;
  --near-soft: #fbe3d4;
  --far: #b3271f;
  --far-soft: #f8dcd8;
  --off: #73778a;
  --off-soft: #e9e7e6;
  --on-band: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1424;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .85 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --surface: #161c30;
    --surface-2: #1e263f;
    --ink: #f3ece0;
    --ink-2: #aab0c2;
    --line: #2d3652;
    --accent: #e4553f;
    --accent-deep: #b3271f;
    --accent-ink: #1a0b08;
    --accent-soft: #3a2026;
    --navy: #8fb0e8;
    --brass: #d4ad66;
    --spot: rgba(160, 185, 240, 0.14);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 34px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 20px 44px -14px rgba(0, 0, 0, 0.7);
    --exact: #63c886;
    --exact-soft: rgba(99, 200, 134, 0.14);
    --close: #e8c05a;
    --close-soft: rgba(232, 192, 90, 0.14);
    --near: #ff9150;
    --near-soft: rgba(255, 145, 80, 0.14);
    --far: #ff6f5e;
    --far-soft: rgba(255, 111, 94, 0.14);
    --off: #a3a8ba;
    --off-soft: rgba(163, 168, 186, 0.14);
    --on-band: #0f1424;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1424;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .85 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --surface: #161c30;
  --surface-2: #1e263f;
  --ink: #f3ece0;
  --ink-2: #aab0c2;
  --line: #2d3652;
  --accent: #e4553f;
  --accent-deep: #b3271f;
  --accent-ink: #1a0b08;
  --accent-soft: #3a2026;
  --navy: #8fb0e8;
  --brass: #d4ad66;
  --spot: rgba(160, 185, 240, 0.14);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 34px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 20px 44px -14px rgba(0, 0, 0, 0.7);
  --exact: #63c886;
  --exact-soft: rgba(99, 200, 134, 0.14);
  --close: #e8c05a;
  --close-soft: rgba(232, 192, 90, 0.14);
  --near: #ff9150;
  --near-soft: rgba(255, 145, 80, 0.14);
  --far: #ff6f5e;
  --far-soft: rgba(255, 111, 94, 0.14);
  --off: #a3a8ba;
  --off-soft: rgba(163, 168, 186, 0.14);
  --on-band: #0f1424;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  /* Fine paper grain, and a soft light from above. */
  background-image: var(--grain), radial-gradient(ellipse 120% 60% at 50% -10%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
svg { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Small capitals with wide spacing: labels, kickers and meta lines. */
.puzzle-meta,
.stage__kicker,
.year-form__question,
.step__name,
.answer__label,
.dist-title {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brass) 35%, transparent);
}
.topbar__inner {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* The logo (2026-11-15): the name in the masthead's italic, with the question clock as its question mark. */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Playfair Display", var(--serif);
  font-size: 1.45rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark__mark { flex: none; width: 0.92em; height: 1.3em; margin: 0 0 0.12em 0.03em; color: var(--ink); }
/* Always a ™ after the logo (Ryan, 2026-11-15), small and up by the clock's top. */
.wordmark__tm {
  align-self: flex-start;
  margin: 0.26em 0 0 0.05em;
  font-family: var(--serif);
  font-size: 0.42em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  vertical-align: baseline;
  color: var(--ink);
}
.topbar__actions { display: flex; gap: 0.125rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Layout ---------- */

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.1rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
#game { display: flex; flex-direction: column; gap: 1.1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  font-size: 0.9rem;
}
.banner a { font-weight: 700; margin-left: 0.25rem; }
.loading { color: var(--ink-2); text-align: center; padding: 3rem 0; font-family: var(--serif); font-style: italic; }
.notice { padding: 1.75rem 1.5rem; text-align: center; display: grid; gap: 0.6rem; }
.notice h2 { font-family: var(--serif); font-size: 1.5rem; }

/* "SINCE WHEN? #1 · SUN, NOV 1" between two hairlines. */
.puzzle-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-2);
  justify-content: center;
}
.puzzle-meta::before,
.puzzle-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

/* ---------- The four steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.step {
  --band: transparent;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.25rem 0.45rem;
  border-radius: 12px;
  line-height: 1.15;
  text-align: center;
  color: var(--ink-2);
}
.step__icon svg { width: 1.3rem; height: 1.3rem; }
.step__name { font-size: 0.62rem; letter-spacing: 0.12em; }
.step__pts {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.step--done .step__pts { color: var(--band); }
.step--done::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: var(--band);
}
.step.is-current {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -6px rgba(127, 24, 19, 0.6);
}
.step.is-current .step__pts { color: var(--accent-ink); }
.step.is-current::after { display: none; }

/* ---------- The stage (restyled per decade at the bottom of this file) ---------- */

.stage {
  /* The base values: a lit showcase on cream. The starting look (below) and each decade override these. */
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--spot), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  --st-spot: var(--spot);
  --st-ink: var(--ink);
  --st-ink-2: var(--ink-2);
  --st-accent: var(--accent);
  --st-accent-deep: var(--accent-deep);
  --st-accent-ink: var(--accent-ink);
  --st-panel: color-mix(in srgb, var(--surface) 92%, transparent);
  --st-panel-ink: var(--ink);
  --st-panel-line: var(--line);
  --st-display: var(--serif);
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.6);
  /* The containers keep the art's red, cream and navy in every decade, like the real pictures. */
  --art-1: #b3271f;
  --art-2: #1f3a6b;
  --label: #f3e6cf;
  --label-ink: #1b2236;
  --window: #1b2236;

  position: relative;
  display: grid;
  gap: 0.85rem;
  /* Room for the starting look's bulb frame, kept in every decade so nothing jumps when the slider moves. */
  padding: 1.75rem 1.55rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--st-bg);
  background-size: cover;
  background-position: center;
  color: var(--st-ink);
  scroll-margin-top: 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
/* A thin brass frame inside the card edge. */
.stage::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- The starting look ----------
   Until a year is picked (no data-era), the stage is a dark plum wall where a lit question mark
   roams like a spotlight, inside a frame of marquee bulbs with two bright sweeps chasing round
   (Ryan, 2026-11-15: take 3 of the "game show, but mysterious" drafts). It's the same for every
   item, so it hints at no decade; the decade looks replace it as soon as the slider moves. */
.stage:not([data-era]) {
  --st-bg:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 3px, transparent 3px 11px, rgba(0, 0, 0, 0.12) 11px 20px, transparent 20px 26px),
    radial-gradient(ellipse 120% 90% at 50% 18%, #43173a, #0e0611 72%);
  --st-spot: rgba(255, 230, 190, 0.14);
  --st-ink: #fff6e4;
  --st-ink-2: #f1cf7a;
  --st-panel: rgba(10, 8, 22, 0.86);
  --st-panel-ink: #fff6e4;
  --st-panel-line: rgba(241, 207, 122, 0.38);
  --st-glow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9);
}
/* The bulb frame takes the place of the thin brass one. */
.stage:not([data-era])::before { display: none; }
.stage__mystery { display: none; }
.stage:not([data-era]) .stage__mystery {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
/* The roaming spotlight: a glowing question mark in a soft pool of light, wandering the wall. */
.stage__roam {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92%;
  aspect-ratio: 1;
  left: 22%;
  top: 16%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 238, 200, 0.2) 0 30%, rgba(255, 238, 200, 0.07) 52%, transparent 68%);
  animation: stage-roam 15s ease-in-out infinite;
}
.stage__roam b {
  font: italic 900 13rem / 1 "Playfair Display", Georgia, serif;
  color: rgba(255, 240, 205, 0.5);
  text-shadow: 0 0 30px rgba(255, 226, 160, 0.75), 0 0 80px rgba(255, 210, 120, 0.4);
  filter: blur(0.6px);
  translate: 0 4%;
}
@keyframes stage-roam {
  0% { left: 22%; top: 16%; }
  22% { left: 80%; top: 12%; }
  45% { left: 64%; top: 52%; }
  68% { left: 24%; top: 46%; }
  85% { left: 50%; top: 28%; }
  100% { left: 22%; top: 16%; }
}
/* The same path, moved by transform where the browser has container units (all phones since iOS 16), so
   the graphics chip slides the spotlight round instead of the phone redrawing it every frame. cqw and cqh
   are hundredths of the wall's width and height; the negative margins centre the spotlight, as the
   translate above does. */
@supports (width: 1cqw) {
  .stage:not([data-era]) .stage__mystery { container-type: size; }
  .stage__roam {
    left: 0;
    top: 0;
    width: 92cqw;
    margin: -46cqw 0 0 -46cqw;
    translate: none;
    transform: translate(22cqw, 16cqh);
    animation-name: stage-roam-moved;
  }
  @keyframes stage-roam-moved {
    0% { transform: translate(22cqw, 16cqh); }
    22% { transform: translate(80cqw, 12cqh); }
    45% { transform: translate(64cqw, 52cqh); }
    68% { transform: translate(24cqw, 46cqh); }
    85% { transform: translate(50cqw, 28cqh); }
    100% { transform: translate(22cqw, 16cqh); }
  }
}
/* The marquee frame: unlit bulbs on a red band (a ring, cut out with a mask), and over them a lit
   copy masked to the same bulbs, where two bright sweeps turn round. */
.stage__bulbs {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 13px;
  background:
    radial-gradient(circle, #a8823f 0 2.3px, #5a3f18 3.3px, transparent 4.2px) 0 0 / 15px 15px round,
    linear-gradient(180deg, #8e1c16, #5a0e0b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.stage__lit {
  position: absolute;
  inset: 0;
  -webkit-mask: radial-gradient(circle, #000 0 3.3px, transparent 6px) 0 0 / 15px 15px round;
  mask: radial-gradient(circle, #000 0 3.3px, transparent 6px) 0 0 / 15px 15px round;
}
.stage__glint {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(#fffbe6, #ffd25e 7%, rgba(255, 196, 70, 0.3) 22%, rgba(255, 196, 70, 0.3) 50%, #fffbe6 50.2%, #ffd25e 57%, rgba(255, 196, 70, 0.3) 72%, rgba(255, 196, 70, 0.3));
  animation: stage-sweep 3.2s linear infinite;
}
@keyframes stage-sweep { to { rotate: 1turn; } }

.stage__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--st-ink-2);
  font-family: var(--font);
}
.stage__kicker svg { width: 1.1rem; height: 1.1rem; }
.stage__clue {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--st-ink);
  text-shadow: var(--st-glow);
}

.panel {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: 16px;
  background: var(--st-panel);
  color: var(--st-panel-ink);
  border: 1px solid var(--st-panel-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

/* The container the item is drawn on, with the title printed on its label. There is one per
   category, the same every day, so the picture never hints at the year. Each is drawn in code as
   separate pieces (tools/draw-neutral-containers-full.py) that open when the answer comes up.
   It sits under a soft spotlight with a contact shadow, like a product in a vintage ad. */
.art {
  position: relative;
  aspect-ratio: 4 / 3;
  width: min(100%, 26rem);
  justify-self: center;
}
.art::before {
  content: "";
  position: absolute;
  inset: -6% -10% 0;
  background: radial-gradient(ellipse 55% 50% at 50% 48%, var(--st-spot), transparent 70%);
  z-index: -1;
}
.art::after {
  content: "";
  position: absolute;
  left: var(--shadow-x, 22%);
  right: var(--shadow-x, 22%);
  bottom: var(--floor, 1%);
  height: 7%;
  background: radial-gradient(ellipse at center, rgba(15, 20, 36, 0.4), transparent 70%);
  z-index: -1;
  animation: shadow-breathe 5s ease-in-out infinite alternate;
}
.art__body {
  position: absolute;
  inset: 0;
  animation: float 5s ease-in-out infinite alternate;
}
/* Every piece is drawn on the same canvas, so they stack exactly. */
.art__layer,
.art__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.art__img { filter: drop-shadow(0 10px 14px rgba(15, 20, 36, 0.22)); }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes shadow-breathe { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0.9); opacity: 0.75; } }
/* "Multiply" lets the paper's grain show through, so the title looks printed on the label. */
.art__label,
.art__press {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.art__label {
  color: var(--label-ink);
  mix-blend-mode: multiply;
  line-height: 1.08;
  font-size: clamp(1rem, 6vw, 1.7rem);
}
/* The label boxes, floors and pivots below come from Design/neutral-containers/layout.json. */

/* Movies: a paper ticket. With the answer, the stub tears off, hinged at the foot of the perforation. */
.art[data-container="ticket"] { --floor: 27.4%; --shadow-x: 12.3%; }
.art[data-container="ticket"] .art__label {
  left: 17.3%; top: 36.9%; width: 49.4%; height: 26.2%;
  font-family: Rockwell, "Roboto Slab", "Courier New", Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.art__stub { transform-origin: 74.4% 72.6%; transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
.art[data-state="answer"] .art__stub { transform: translate(3.2%, 2.5%) rotate(11deg); }
.art[data-state="answer"] .art__ticket { animation: ticket-tug 0.45s ease-out; }
@keyframes ticket-tug { 30% { transform: translateX(-1.2%) rotate(-0.8deg); } }

/* Songs: a record in its sleeve. With the answer, the record slides out and turns at 33 1/3
   (one turn every 1.8 seconds). Its shine is a piece of its own, so it stays still, as light does. */
.art[data-container="sleeve"] { --floor: 13.5%; --shadow-x: 17.7%; }
.art[data-container="sleeve"] .art__label {
  left: 19.9%; top: 34.9%; width: 42.4%; height: 31.3%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
}
.art__sleeve,
.art__record { transition: transform 0.7s cubic-bezier(0.3, 0.9, 0.3, 1); }
.art__disc { transform-origin: 60.1% 50%; }
.art__shine { filter: none; }
.art[data-state="answer"] .art__sleeve { transform: translateX(-7%); }
.art[data-state="answer"] .art__record { transform: translateX(9%); }
.art[data-state="answer"] .art__disc { animation: record-spin 1.8s linear 0.25s infinite; }
@keyframes record-spin { to { transform: rotate(360deg); } }

/* Video games: a title screen, the same for every game, before and after the answer. With the
   answer, Start is pressed: the screen flashes and gives a little jump, and PRESS START stops blinking. */
.art[data-container="titlescreen"] { --floor: 11.9%; --shadow-x: 14.7%; }
.art__screen .art__label,
.art__press {
  font-family: Bahnschrift, "DIN Alternate", "Avenir Next Condensed", "Arial Narrow", var(--font);
  font-stretch: condensed;
  text-transform: uppercase;
}
.art__screen .art__label {
  left: 20.8%; top: 25.2%; width: 58.3%; height: 25.6%;
  color: #f6ecd6;
  mix-blend-mode: normal;
  text-shadow: 0 0 10px rgba(120, 170, 255, 0.55), 0 2px 0 #b3271f;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.art__press {
  left: 28%; top: 56%; width: 44%; height: 6.8%;
  color: #e5c27a;
  font-weight: 700;
  font-size: clamp(0.6rem, 2.9vw, 0.85rem);
  line-height: 1;
  letter-spacing: 0.22em;
  animation: press-start 1.1s steps(1) infinite;
}
@keyframes press-start { 50% { opacity: 0; } }
.art__flash {
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, #fff 30%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
}
.art[data-state="answer"] .art__flash { animation: screen-flash 0.6s ease-out; }
.art[data-state="answer"] .art__screen { animation: screen-jump 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
.art[data-state="answer"] .art__press { animation: none; }
@keyframes screen-flash { 0% { opacity: 0; } 30% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes screen-jump { 30% { transform: scale(1.04); } }

/* Toys: a wrapped present with the title on its gift tag (the tag hangs 3 degrees off straight).
   While you guess it gives a little shake now and then; with the answer the lid lifts, light comes
   out and a few stars fly up. */
.art[data-container="present"] { --floor: 8.7%; --shadow-x: 24.8%; }
.art[data-container="present"] .art__label {
  left: 28.8%; top: 58.4%; width: 41.2%; height: 22.4%;
  transform: rotate(3deg);
  font-family: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-weight: 700;
}
.art__present { transform-origin: 50% 88%; animation: present-shake 6s ease-in-out infinite; }
@keyframes present-shake {
  0%, 84%, 100% { transform: rotate(0); }
  87% { transform: rotate(-2.2deg); }
  90% { transform: rotate(2deg); }
  93% { transform: rotate(-1.2deg); }
  96% { transform: rotate(0.6deg); }
}
.art__lid { transform-origin: 50% 38.7%; transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
.art__glow {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 46%;
  background: radial-gradient(ellipse at 50% 70%, #ffe9a8, rgba(255, 214, 120, 0.5) 38%, rgba(255, 214, 120, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s 0.1s;
}
.art__star {
  position: absolute;
  left: var(--x);
  top: 38%;
  width: 5.5%;
  aspect-ratio: 1;
  background: #e5c27a;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0;
}
.art[data-state="answer"] .art__present { animation: none; }
.art[data-state="answer"] .art__lid { transform: translateY(-12%) rotate(-7deg); }
.art[data-state="answer"] .art__glow { opacity: 1; }
.art[data-state="answer"] .art__star { animation: present-star 1.2s ease-out var(--d) both; }
@keyframes present-star {
  0% { opacity: 0; transform: scale(0.3); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(140deg); }
}

/* ---------- Picking a year ---------- */

.year-form__question { text-align: center; color: var(--st-panel-ink); opacity: 0.8; }
.year-readout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.step-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--st-panel-line);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, #ffffff 60%, transparent), transparent 60%), var(--st-panel);
  color: var(--st-panel-ink);
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
.step-btn:hover { border-color: var(--st-accent); }
.step-btn:active { transform: scale(0.94); }
.step-btn svg { width: 1.15rem; height: 1.15rem; }
.year-text {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--st-display);
  font-style: var(--st-display-style);
  font-weight: var(--st-display-weight);
  font-size: clamp(3rem, 16vw, 4rem);
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  text-shadow: var(--st-glow);
  color: var(--st-panel-ink);
  outline: none;
}
.year-text::placeholder { color: var(--st-panel-ink); opacity: 0.22; }
.year-text:focus { text-decoration: underline 2px var(--st-accent); text-underline-offset: 0.12em; }
.era-name {
  text-align: center;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  min-height: 1.5em;
  margin-top: -0.35rem;
  opacity: 0.85;
}

/* The slider: a slim track that fills in red, and a polished knob. */
.year-slider {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.year-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--st-accent) var(--fill), color-mix(in srgb, var(--st-panel-ink) 16%, transparent) var(--fill));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.year-slider::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--st-panel-ink) 16%, transparent);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.year-slider::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--st-accent); }
.year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, #ffb4a3, var(--st-accent) 55%, var(--st-accent-deep));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s;
}
.year-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, #ffb4a3, var(--st-accent) 55%, var(--st-accent-deep));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.year-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
/* Before the first move the knob waits, gently pulsing. */
.year-slider:not(.is-touched)::-webkit-slider-thumb { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 8px color-mix(in srgb, var(--st-accent) 25%, transparent); } }
.year-slider:focus-visible { outline: none; }
.year-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--st-panel), 0 0 0 5px var(--st-accent); }

.year-scale {
  position: relative;
  height: 1rem;
  margin: -0.7rem 15px 0;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.year-scale__mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.year-scale__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 1px;
  height: 4px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s, filter 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #ffffff), var(--accent) 45%, var(--accent-deep));
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent-deep) 70%, #000000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -8px rgba(127, 24, 19, 0.65);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--wide { width: 100%; }
.stage .btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-accent) 85%, #ffffff), var(--st-accent) 45%, var(--st-accent-deep));
  color: var(--st-accent-ink);
  border-color: color-mix(in srgb, var(--st-accent-deep) 70%, #000000);
  min-height: 3.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hint { font-size: 0.85rem; color: var(--ink-2); }

/* Customize: light or dark, and the logo's look (Ryan, 2026-11-15). Each choice is a card; the whole card is the radio button. */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.55rem; }
.choices legend { padding: 0; margin-bottom: 0.55rem; font: 700 0.72rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.choices__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.choice { position: relative; display: grid; justify-items: center; align-content: center; gap: 0.3rem; min-height: 3.2rem; padding: 0.65rem 0.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: center; font-size: 0.85rem; line-height: 1.2; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice--theme span { font-weight: 700; }
.choice__icon { width: 3.4rem; height: 3.4rem; border-radius: 22%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); }
.choice b { font-size: 0.95rem; }
.choice small { font-size: 0.72rem; color: var(--ink-2); }
.stage .hint { color: inherit; opacity: 0.65; font-size: 0.78rem; text-align: center; }
.error { font-size: 0.9rem; font-weight: 700; color: var(--far); }
.stage .error { text-align: center; color: inherit; }
.error:empty { display: none; }

/* ---------- The answer, after each guess ---------- */

.answer { animation: rise 0.35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.answer:focus { outline: none; }
.answer__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.answer__points {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--st-panel-ink);
}
.answer__date { font-size: 0.95rem; }
.answer__date strong {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--st-display);
  font-style: var(--st-display-style);
  font-weight: var(--st-display-weight);
  font-size: 2rem;
  line-height: 1.12;
  font-variant-numeric: lining-nums;
  text-shadow: var(--st-glow);
}
.answer__date small { font-size: 0.85rem; font-style: italic; opacity: 0.75; }
.answer__yours { font-weight: 700; }
.answer__fact {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  padding-left: 0.8rem;
  border-left: 2px solid var(--brass);
}
.answer__fact strong { font-family: var(--font); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; display: block; opacity: 0.75; }
.answer__source { font-size: 0.82rem; opacity: 0.8; }
.answer a { color: inherit; font-weight: 700; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

/* Closeness badge: colour + bar count (or a check) + words, so it never relies on colour alone. */
.band {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.45rem;
  border-radius: 999px;
  background: var(--band-soft);
  border: 1px solid var(--band);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.band svg { color: var(--band); width: 1.1rem; height: 1.1rem; }
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.9rem; }
.meter i { width: 4px; border-radius: 1px; border: 1.5px solid var(--band); }
.meter i:nth-child(1) { height: 40%; }
.meter i:nth-child(2) { height: 60%; }
.meter i:nth-child(3) { height: 80%; }
.meter i:nth-child(4) { height: 100%; }
.meter--1 i:nth-child(-n + 1),
.meter--2 i:nth-child(-n + 2),
.meter--3 i:nth-child(-n + 3),
.meter--4 i:nth-child(-n + 4) { background: var(--band); }
/* On the stage the badge keeps the page's own colours, whatever the decade. */
.answer .band { background: var(--surface); }

.band-exact { --band: var(--exact); --band-soft: var(--exact-soft); }
.band-close { --band: var(--close); --band-soft: var(--close-soft); }
.band-near { --band: var(--near); --band-soft: var(--near-soft); }
.band-far { --band: var(--far); --band-soft: var(--far-soft); }
.band-off { --band: var(--off); --band-soft: var(--off-soft); }

/* ---------- The score page (makeover, 2026-11-15) ----------
   After the fourth answer the issue closes on its back page, in the day's own magazine style (data-style, the same
   as the cover's, specials included): the masthead, the issue line, a verdict in the magazine's voice
   (core/issue.js, verdicts), the score printed in the masthead's type, and the four containers, opened, with each
   one's points. On finishing they land one by one while the score counts up (app.js, runTally). Under it, in the
   house style: the four answers on year rulers, sharing, your run and what's next. */

/* The back page carries the issue line and each item's points, so the steps bar and the meta line step aside. */
#game.is-done .steps,
#game.is-done .puzzle-meta { display: none; }

.results { display: grid; gap: 0.85rem; scroll-margin-top: 4.5rem; }
.results:focus { outline: none; }

/* ---- The back page ---- */
.backpage {
  /* The weekly (Sunday) is the house style; each magazine below changes these. */
  --paper: #fbf5e9;
  --c-ink: #1b2236;
  --c-accent: #b3271f;
  --c-rule: var(--c-ink);
  --mast-font: "Playfair Display", var(--serif);
  --mast-style: italic;
  --mast-weight: 900;
  --mast-size: 10cqi;
  --mast-color: var(--c-accent);
  --mast-shadow: 2px 2px 0 var(--c-ink);
  --mast-case: none;
  --issue-font: var(--font);
  --label-color: var(--c-accent);
  --verdict-font: var(--serif);
  --verdict-style: italic;
  --verdict-weight: 700;
  --verdict-size: 8.6cqi;
  --verdict-color: var(--c-ink);
  --verdict-case: none;
  --score-font: var(--mast-font);
  --score-style: var(--mast-style);
  --score-weight: var(--mast-weight);
  --score-size: 36cqi;
  --score-color: var(--c-accent);
  --score-shadow: 4px 4px 0 var(--c-ink);
  --score-tilt: 0deg;
  position: relative;
  container-type: inline-size;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem 0.75rem;
  background: var(--paper);
  color: var(--c-ink);
  border-radius: 3px;
  /* The same paper and stacked-pages edge as the cover. */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 18px 34px -16px rgba(27, 34, 54, 0.45), 6px 6px 0 -1px #efe6d4, 6px 6px 0 0 #d4c7ae;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  animation: rise 0.4s ease-out;
}
/* A holiday special keeps its gold strip, and a theme week its banner, as on the cover. */
.backpage__special {
  justify-self: stretch;
  margin: -0.8rem -0.9rem 0.25rem;
  padding: 0.3rem 0.5rem;
  background: linear-gradient(180deg, #fff1a8, #e2b13c 50%, #a87a17);
  color: #3a2500;
  font: 800 0.64rem/1.15 var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.backpage__head { justify-self: stretch; display: grid; gap: 0.3rem; }
.backpage__mast {
  font-family: var(--mast-font);
  font-style: var(--mast-style);
  font-weight: var(--mast-weight);
  font-size: var(--mast-size);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: var(--mast-case);
  color: var(--mast-color);
  text-shadow: var(--mast-shadow);
  white-space: nowrap;
}
.backpage__issue {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.24rem 0.1rem;
  border-top: 2px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  font-family: var(--issue-font);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.backpage__verse { font-family: var(--serif); font-style: italic; font-size: 0.85rem; line-height: 1.35; color: var(--label-color); }
.backpage__verse cite { display: block; font-style: normal; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.backpage__label {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--label-color);
}
.backpage__verdict {
  max-width: 100%;
  font-family: var(--verdict-font);
  font-style: var(--verdict-style);
  font-weight: var(--verdict-weight);
  font-size: var(--verdict-size);
  line-height: 1.08;
  text-transform: var(--verdict-case);
  color: var(--verdict-color);
  overflow-wrap: break-word;
}
.backpage__score { display: grid; justify-items: center; margin: 0.05rem 0 0.35rem; line-height: 1; }
.backpage__total {
  padding: 0.02em 0.12em 0;
  font-family: var(--score-font);
  font-style: var(--score-style);
  font-weight: var(--score-weight);
  font-size: var(--score-size);
  line-height: 0.95;
  font-variant-numeric: lining-nums;
  color: var(--score-color);
  text-shadow: var(--score-shadow);
  transform: rotate(var(--score-tilt));
}
.backpage__max { margin-top: 0.2rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }

/* Foil and chrome: the 1980s, Christmas, New Year and Halloween print their masthead and score in a metal gradient. */
.backpage:is([data-style="eighties"], [data-style="christmas"], [data-style="newyear"], [data-style="halloween"]) :is(.backpage__mast, .backpage__total) {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  -webkit-text-stroke: var(--foil-stroke, 0);
  filter: var(--foil-shadow);
}

/* The four containers, opened, as stickers on the page: each one's points and how close it was. Stickers are
   always cream, so the closeness colours keep their daytime values in dark mode. */
.tally {
  --exact: #2f7d4f;
  --close: #9a7416;
  --near: #c4561b;
  --far: #b3271f;
  --off: #73778a;
  --on-band: #ffffff;
  list-style: none;
  justify-self: stretch;
  margin: 0.15rem 0 0.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.tally__tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.05rem;
  padding: 0.3rem 0.15rem 0.4rem;
  border-top: 4px solid var(--band);
  border-radius: 6px;
  background: #fffaf0;
  color: #1b2236;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 5px 12px -5px rgba(0, 0, 0, 0.45);
  rotate: -1.6deg;
  transition: opacity 0.25s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tally__tile:nth-child(even) { rotate: 1.4deg; }
.tally__name { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #5b5f6d; }
.tally__pts { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--band); font-variant-numeric: lining-nums tabular-nums; }
.tally__off { display: inline-flex; align-items: center; gap: 0.22rem; font-size: 0.6rem; font-weight: 700; white-space: nowrap; }
.tally__off svg { width: 0.8rem; height: 0.8rem; color: var(--band); }
.tally__off .meter { height: 0.62rem; gap: 1px; }
.tally__off .meter i { width: 3px; border-width: 1.2px; }
/* The smallest phones: the closeness line drops its icon so four stickers still fit across. */
@container (max-width: 300px) {
  .tally { gap: 0.3rem; }
  .tally__off { font-size: 0.56rem; }
  .tally__off svg, .tally__off .meter { display: none; }
  .tally__name { letter-spacing: 0.08em; }
}

/* A container, small, as it stands after the answer: the stub torn, the record out, the lid off. */
.mini-art { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; }
.mini-art .art__img { filter: drop-shadow(0 3px 3px rgba(15, 20, 36, 0.25)); }
.mini-art__ticket-stub { transform-origin: 74.4% 72.6%; transform: translate(3.2%, 2.5%) rotate(11deg); }
.mini-art__sleeve { transform: translateX(-7%); }
.mini-art__record { transform: translateX(9%); }
.mini-art__present-lid { transform-origin: 50% 38.7%; transform: translateY(-12%) rotate(-7deg); }

/* The tally: the stickers wait off the page, land one by one, and the verdict is stamped on last. */
.backpage.is-tallying .tally__tile:not(.is-in) { opacity: 0; transform: translateY(-45%) scale(0.6); }
.backpage.is-tallying .backpage__verdict { opacity: 0; }
.backpage.is-stamped .backpage__verdict { animation: verdict-stamp 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes verdict-stamp { from { opacity: 0; transform: scale(1.9) rotate(-5deg); } }

.backpage__foot {
  justify-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.3rem;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--c-ink) 30%, transparent);
  text-align: left;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.backpage__next time { display: block; margin-top: 0.1rem; font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.04em; text-transform: none; font-variant-numeric: lining-nums tabular-nums; }
.backpage__url { align-self: center; font-family: var(--mono); letter-spacing: 0.04em; text-transform: none; font-size: 0.8rem; }
.backpage__next:not([hidden]) + .backpage__url { display: none; }
.backpage__foot .cover__barcode { flex: none; }

/* Monday, the 1950s fan magazine: script masthead and score, hand-tinted pink and teal, printed dots. */
.backpage[data-style="fifties"] {
  --paper: #fdf1e4; --c-ink: #173f4a; --c-accent: #e2506f;
  --mast-font: Yellowtail, "Brush Script MT", cursive; --mast-style: normal; --mast-weight: 400; --mast-size: 12.5cqi;
  --mast-shadow: 1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 3px 3px 0 var(--c-ink);
  --issue-font: "Abril Fatface", Georgia, serif;
  --verdict-font: "Abril Fatface", Georgia, serif; --verdict-style: normal; --verdict-weight: 400; --verdict-color: var(--c-ink);
  --score-size: 42cqi; --score-tilt: -5deg;
  --score-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 6px 6px 0 var(--c-ink);
  background-image: radial-gradient(rgba(23, 63, 74, 0.12) 1px, transparent 1.4px);
  background-size: 5px 5px;
}
.backpage[data-style="fifties"] .backpage__issue { font-weight: 400; }

/* Tuesday, the 1960s TV listings: a blue pill masthead, typewriter listings, and the score on a TV screen. */
.backpage[data-style="sixties"] {
  --paper: #ffffff; --c-ink: #10204a; --c-accent: #1f4fd1;
  --mast-font: Righteous, "Arial Rounded MT Bold", sans-serif; --mast-style: normal; --mast-weight: 400; --mast-size: 9.5cqi;
  --mast-color: #fff; --mast-shadow: none;
  --issue-font: "Courier Prime", var(--mono);
  --verdict-font: Righteous, sans-serif; --verdict-style: normal; --verdict-weight: 400; --verdict-size: 7.8cqi;
  --score-size: 30cqi; --score-color: #fff; --score-shadow: 0 0 18px rgba(120, 170, 255, 0.85), 0 0 4px rgba(190, 215, 255, 0.9);
}
.backpage[data-style="sixties"] .backpage__mast { justify-self: center; padding: 0.3rem 0.7rem 0.35rem; border-radius: 12px; background: linear-gradient(180deg, #2f62e6, #1636a3); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #0c1d5c; }
.backpage[data-style="sixties"] .backpage__issue { font-weight: 700; letter-spacing: 0.04em; }
.backpage[data-style="sixties"] .backpage__score {
  margin-top: 0.3rem;
  padding: 0.7rem 1.6rem 0.6rem;
  border: 7px solid #15161a;
  border-radius: 18% / 22%;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, #3a4a78, #121a33 75%);
  box-shadow: 0 0 0 2px #b8bcc6, 0 8px 16px -8px rgba(0, 0, 0, 0.6);
  color: #dfe8ff;
}
.backpage[data-style="sixties"] .backpage__max { font-family: "Courier Prime", var(--mono); letter-spacing: 0.12em; }

/* Wednesday, the 1970s rock paper: newsprint, a groovy masthead, heavy rules, and a score with stacked shadows. */
.backpage[data-style="seventies"] {
  --paper: #efe2c4; --c-ink: #4a230a; --c-accent: #d9531e;
  --mast-font: Shrikhand, "Cooper Black", serif; --mast-style: normal; --mast-weight: 400; --mast-size: 9cqi;
  --mast-shadow: 2px 2px 0 #f4b23c, 4px 4px 0 var(--c-ink);
  --issue-font: Oswald, sans-serif;
  --verdict-font: Anton, Impact, sans-serif; --verdict-style: normal; --verdict-weight: 400; --verdict-case: uppercase; --verdict-size: 9.5cqi;
  --score-size: 32cqi; --score-tilt: -3deg; --score-shadow: 4px 4px 0 #f4b23c, 8px 8px 0 var(--c-ink);
  background-image: var(--grain);
}
.backpage[data-style="seventies"] .backpage__issue { border-width: 3px; font-weight: 500; letter-spacing: 0.2em; }

/* Thursday, the 1980s game magazine: a yellow frame, a chrome masthead and score, pixel type. */
.backpage[data-style="eighties"] {
  --paper: #0d0f1f; --c-ink: #ffffff; --c-accent: #ffd400; --c-rule: #33e1ff;
  --mast-font: Bungee, Impact, sans-serif; --mast-style: normal; --mast-weight: 400; --mast-size: 8.6cqi;
  --issue-font: "Press Start 2P", monospace; --label-color: #33e1ff;
  --verdict-font: "Press Start 2P", monospace; --verdict-style: normal; --verdict-weight: 400; --verdict-size: 5.4cqi; --verdict-color: #ffd400;
  --score-size: 28cqi;
  --foil: linear-gradient(180deg, #ffffff 0%, #bfe6ff 40%, #2a4fa8 50%, #ffe08a 60%, #ff8a00 100%);
  --foil-stroke: 1.5px #0a0b18;
  --foil-shadow: drop-shadow(0 3px 0 #e8362a) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  border: 7px solid #ffd400;
  box-shadow: 0 0 0 2px #111, 0 18px 34px -16px rgba(0, 0, 0, 0.6);
}
.backpage[data-style="eighties"] .backpage__issue { font-size: 0.46rem; font-weight: 400; letter-spacing: 0.04em; color: #33e1ff; border-width: 1px; }
.backpage[data-style="eighties"] .backpage__label { font-family: "Press Start 2P", monospace; font-weight: 400; font-size: 0.48rem; letter-spacing: 0.08em; }
.backpage[data-style="eighties"] .backpage__verdict { line-height: 1.5; text-shadow: 3px 3px 0 #e8362a; }
.backpage[data-style="eighties"] .backpage__special { margin: -0.8rem -0.9rem 0.25rem; }

/* Friday, the 1990s teen magazine: hot pink with polka dots, a bubbly masthead, marker-pen highlighter. */
.backpage[data-style="nineties"] {
  --paper: #ff3fa4; --c-ink: #2a0f5c; --c-accent: #7b2cff; --c-rule: #fff;
  --mast-font: "Luckiest Guy", "Arial Black", sans-serif; --mast-style: normal; --mast-weight: 400; --mast-size: 10.5cqi;
  --mast-color: #fff200; --mast-shadow: 2px 2px 0 var(--c-accent), 4px 4px 0 var(--c-ink);
  --issue-font: "Permanent Marker", cursive; --label-color: #fff;
  --verdict-font: "Permanent Marker", cursive; --verdict-style: normal; --verdict-weight: 400; --verdict-size: 8.4cqi;
  --score-size: 34cqi; --score-color: #fff200; --score-tilt: -3deg; --score-shadow: 4px 4px 0 var(--c-accent), 8px 8px 0 var(--c-ink);
  background-image: radial-gradient(#ffd6f0 2px, transparent 2.5px), radial-gradient(#fff200 1.5px, transparent 2px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
.backpage[data-style="nineties"] .backpage__issue { font-weight: 400; letter-spacing: 0.04em; text-transform: none; font-size: 0.8rem; color: #fff; text-shadow: 1px 1px 0 var(--c-ink); }
.backpage[data-style="nineties"] .backpage__label { text-shadow: 1px 1px 0 var(--c-ink); }
.backpage[data-style="nineties"] .backpage__verdict { padding: 0 0.35rem; background: #fff200; transform: rotate(-2deg); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.backpage[data-style="nineties"] .backpage__max,
.backpage[data-style="nineties"] .backpage__foot { color: #fff; text-shadow: 1px 1px 0 var(--c-ink); }

/* Saturday, the 2000s tabloid: black, a pink masthead band, yellow shouting. */
.backpage[data-style="noughties"] {
  --paper: #111111; --c-ink: #ffffff; --c-accent: #ff2d8a; --c-rule: #ffe600;
  --mast-font: Anton, Impact, sans-serif; --mast-style: normal; --mast-weight: 400; --mast-size: 11cqi; --mast-case: uppercase;
  --mast-color: #fff; --mast-shadow: none;
  --label-color: #ffe600;
  --verdict-font: Anton, Impact, sans-serif; --verdict-style: normal; --verdict-weight: 400; --verdict-case: uppercase; --verdict-size: 10cqi;
  --score-font: Anton, Impact, sans-serif; --score-size: 44cqi; --score-color: #ffe600; --score-shadow: 4px 5px 0 var(--c-accent);
}
.backpage[data-style="noughties"] .backpage__mast { margin: 0 -0.9rem; padding: 0.1rem 0 0.15rem; background: var(--c-accent); letter-spacing: 0.01em; }
.backpage[data-style="noughties"] .backpage__head { margin-top: -0.8rem; }
.backpage[data-style="noughties"] .backpage__special + .backpage__head { margin-top: -0.25rem; }
.backpage[data-style="noughties"] .backpage__total { -webkit-text-stroke: 1.5px #000; }

/* The one-off magazines keep their own looks. Christmas: deep green, gold foil, falling snow. */
.backpage[data-style="christmas"] {
  --paper: #0f3d2e; --c-ink: #fff4dc; --c-accent: #d7263d; --c-rule: #ffd86b;
  --mast-size: 10.5cqi; --label-color: #ffd86b; --issue-font: "Abril Fatface", serif;
  --verdict-font: "Abril Fatface", serif; --verdict-style: normal; --verdict-weight: 400;
  --foil: linear-gradient(180deg, #fff6c8 0%, #f2cf6a 38%, #b98a22 52%, #f7dc8a 68%, #9c6b12 100%);
  --foil-shadow: drop-shadow(0 2px 0 #5c0f17) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 0.9px, transparent 1.4px);
  background-size: 34px 34px, 23px 23px;
  background-position: 0 0, 11px 17px;
}
.backpage[data-style="christmas"] .backpage__issue { font-weight: 400; }
/* New Year: black and gold, confetti. */
.backpage[data-style="newyear"] {
  --paper: #08080c; --c-ink: #f6ead0; --c-accent: #c9a24a; --c-rule: rgba(242, 207, 106, 0.6);
  --label-color: #f2cf6a; --issue-font: "Abril Fatface", serif;
  --verdict-font: "Abril Fatface", serif; --verdict-style: normal; --verdict-weight: 400;
  --foil: linear-gradient(180deg, #fff8dc 0%, #f2cf6a 40%, #a87a17 52%, #f7e3a1 68%, #8f6516 100%);
  --foil-shadow: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(242, 207, 106, 0.35));
}
.backpage[data-style="newyear"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/newyear/confetti.svg") 0 0 / 220px auto; opacity: 0.35; }
.backpage[data-style="newyear"] .backpage__issue { font-weight: 400; }
/* Valentine's Day: wine red and pink, hearts. */
.backpage[data-style="valentine"] {
  --paper: #5e0a1f; --c-ink: #fff0f4; --c-accent: #ff8fb1; --c-rule: rgba(255, 179, 201, 0.6);
  --mast-font: Shrikhand, serif; --mast-style: normal; --mast-weight: 400; --mast-size: 9cqi;
  --mast-shadow: 1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 3px 4px 0 #2e0410;
  --label-color: #ffb3c9; --issue-font: Oswald, sans-serif;
  --verdict-font: Yellowtail, cursive; --verdict-style: normal; --verdict-weight: 400; --verdict-size: 11cqi; --verdict-color: #ffb3c9;
  --score-size: 32cqi; --score-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 6px 7px 0 #2e0410;
}
.backpage[data-style="valentine"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/specials/hearts.svg") center / cover; opacity: 0.3; }
/* Easter: lilac, purple and white. */
.backpage[data-style="easter"] {
  --paper: #e6d3f2; --c-ink: #43256f; --c-accent: #4b2a7a;
  --mast-size: 10cqi; --mast-shadow: 0 2px 0 #fff, 0 0 14px rgba(255, 255, 255, 0.8);
  --label-color: #8a5cc4;
  --verdict-font: Yellowtail, cursive; --verdict-style: normal; --verdict-weight: 400; --verdict-size: 11cqi; --verdict-color: #8a5cc4;
  --score-shadow: 0 3px 0 #fff, 0 0 22px rgba(255, 255, 255, 0.9);
  background-image: linear-gradient(180deg, #f3e8fa, #e6d3f2 55%, #d9f0d4);
}
/* The Fourth of July: navy, white and red. */
.backpage[data-style="july4"] {
  --paper: #0a1d3f; --c-ink: #ffffff; --c-accent: #ffffff; --c-rule: rgba(255, 255, 255, 0.5);
  --mast-font: "Abril Fatface", serif; --mast-style: normal; --mast-weight: 400; --mast-size: 10cqi;
  --mast-shadow: 2px 2px 0 #b31942, 4px 4px 0 #04122e;
  --label-color: #ff5a6a;
  --verdict-font: Yellowtail, cursive; --verdict-style: normal; --verdict-weight: 400; --verdict-size: 11cqi; --verdict-color: #ff5a6a;
  --score-size: 34cqi; --score-shadow: 4px 4px 0 #b31942, 8px 8px 0 #04122e;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.6px);
  background-size: 18px 18px;
}
/* Halloween: midnight purple, pumpkin orange. */
.backpage[data-style="halloween"] {
  --paper: #12061f; --c-ink: #f3e8ff; --c-accent: #ff8a1f; --c-rule: rgba(255, 154, 31, 0.6);
  --mast-font: Anton, sans-serif; --mast-style: normal; --mast-weight: 400; --mast-size: 11cqi; --mast-case: uppercase;
  --label-color: #ff9a1f; --issue-font: Oswald, sans-serif;
  --verdict-font: Anton, sans-serif; --verdict-style: normal; --verdict-weight: 400; --verdict-case: uppercase; --verdict-size: 9.6cqi;
  --score-font: Anton, sans-serif; --score-size: 44cqi;
  --foil: linear-gradient(180deg, #fff3a0 0%, #ffb000 45%, #ff5a00 80%, #c21f00 100%);
  --foil-shadow: drop-shadow(0 3px 0 #1a0526) drop-shadow(0 0 10px rgba(255, 140, 30, 0.45));
}
.backpage[data-style="halloween"] .backpage__verdict { text-shadow: 0 0 14px rgba(255, 120, 20, 0.6); }
/* Righteous and Luckiest Guy draw a faint ™; a plain bold one reads better, as on the covers. */
.backpage:is([data-style="sixties"], [data-style="nineties"]) .mast-tm { font-family: system-ui, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 0.32em; }

/* ---- Under the back page, in the house style ---- */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section-title::before,
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent); }

/* The four answers. */
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.answer-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem 0.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.answer-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--band); }
.answer-card__head { display: flex; align-items: center; gap: 0.5rem; }
.answer-card__kind { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: auto; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.answer-card__kind svg { width: 1.15rem; height: 1.15rem; }
.answer-card__head .band { font-size: 0.72rem; padding: 0.18rem 0.55rem 0.18rem 0.4rem; }
.answer-card__pts { min-width: 2.3rem; text-align: right; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--band); font-variant-numeric: lining-nums tabular-nums; }
.answer-card__title { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.answer-card__clue { margin-top: -0.15rem; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink-2); }
.answer-card__yours { font-size: 0.9rem; }
.answer-card__yours strong { font-weight: 800; }
.answer-card__more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.answer-card__more summary::-webkit-details-marker { display: none; }
.answer-card__more summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  font-size: 0.85rem;
  line-height: 1;
  color: var(--brass);
}
.answer-card__more[open] summary::before { content: "–"; }
.answer-card__body { display: grid; gap: 0.45rem; padding-bottom: 0.65rem; font-family: var(--serif); }
.answer-card__note { font-family: var(--font); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.answer-card__fact { padding-left: 0.8rem; border-left: 2px solid var(--brass); line-height: 1.5; }
.answer-card__source { font-family: var(--font); font-size: 0.82rem; color: var(--ink-2); }
.answer-card a { color: inherit; font-weight: 700; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

/* The year ruler: the slider's line and decade marks, the real year as a solid pin with its year above, your
   guess as a ring in the closeness colour with its year below, and the years between shaded. */
.ruler { display: grid; gap: 0.3rem; margin: 0.45rem 0.35rem 0.1rem; }
.ruler__row { position: relative; height: 1.4rem; }
.ruler__track {
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ruler__tick { position: absolute; left: var(--x); top: -4px; bottom: -4px; width: 1px; background: color-mix(in srgb, var(--ink-2) 40%, transparent); }
.ruler__gap { position: absolute; top: -1px; bottom: -1px; border-radius: 4px; background: color-mix(in srgb, var(--band) 55%, transparent); }
.ruler__you {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 15px;
  height: 15px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--band);
}
.ruler__real {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 13px;
  height: 13px;
  translate: -50% -50%;
  rotate: 45deg;
  border-radius: 2px;
  background: var(--ink);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ruler.is-exact .ruler__you { display: none; }
.ruler.is-exact .ruler__real { width: 16px; height: 16px; background: var(--band); }
/* Tags sit over their marks, kept inside the line's ends. */
.ruler__tag {
  position: absolute;
  top: 0;
  left: clamp(var(--half), var(--x), calc(100% - var(--half)));
  translate: -50% 0;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.45rem;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}
.ruler__tag--real { --half: 1.45rem; border-radius: 5px; background: var(--ink); color: var(--surface); }
.ruler.is-exact .ruler__tag--real { --half: 3.7rem; background: var(--band); color: var(--on-band); }
.ruler__tag--you { --half: 2.25rem; border-radius: 999px; border: 2px solid var(--band); background: var(--surface); color: var(--ink); }
.ruler__tag--you small { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.ruler__decade { position: absolute; left: var(--x); top: 0; translate: -50% 0; font-size: 0.66rem; font-weight: 700; line-height: 1.4rem; color: var(--ink-2); }

/* Sharing: the two buttons, and the text as a message bubble, so players see what friends will get. */
.share-box,
.run {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.share-box__label { margin-top: 0.2rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.bubble {
  justify-self: start;
  max-width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: 18px 18px 18px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
  user-select: all;
}
.share-box .hint { font-size: 0.78rem; }
/* On the smallest phones the two buttons stack rather than push the page wider than the screen. */
.share-box .share-row { grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr)); }

/* Your run. */
.run { justify-items: center; text-align: center; }
.run__grid { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.run__grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.run__grid dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.2; }
.run__grid dd { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.run__line { font-family: var(--serif); font-style: italic; font-size: 1rem; }
.run .link-btn { padding: 0.25rem; }

/* What next. */
.results__next { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.6rem; margin-top: 0.25rem; }
.results__next .btn { padding: 0 0.6rem; font-size: 0.92rem; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .backpage, .tally__tile, .backpage.is-stamped .backpage__verdict { animation: none; transition: none; }
}

.countdown { text-align: center; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.countdown__time { display: block; margin-top: 0.15rem; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; text-transform: none; }

.ad-slot:empty { display: none; }
.ad-slot { min-height: 100px; }

.fineprint { font-size: 0.78rem; color: var(--ink-2); text-align: center; line-height: 1.55; }
.fineprint a { color: inherit; text-underline-offset: 2px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.88rem; font-weight: 600; }
.footer-links a,
.link-btn { color: var(--ink); padding: 0.5rem 0.25rem; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.link-btn { border: 0; background: none; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* The development tools: a dashed box under the footer, never shown on the live site. */
.dev-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  padding: 0.7rem 1rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.dev-tools[hidden] { display: none; }
.dev-tools__label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; color: var(--ink-2); }

/* ---------- About page ---------- */

.wordmark--link { color: inherit; text-decoration: none; }
.btn--small { min-height: 2.4rem; padding: 0 1rem; font-size: 0.88rem; }
.prose { padding: 1.5rem 1.35rem 1.75rem; display: grid; gap: 0.9rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }
.prose h1 { font-size: 1.9rem; line-height: 1.15; font-style: italic; }
.prose h2 { font-family: var(--font); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 0.9rem; color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose a { text-underline-offset: 2px; }

/* ---------- Dialogs ---------- */

.sheet {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  background-image: var(--grain);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 14, 28, 0.45);
}
.sheet[open] { display: grid; gap: 1rem; animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.sheet::backdrop { background: rgba(10, 14, 28, 0.55); backdrop-filter: blur(3px); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin: -0.5rem -0.5rem 0 0; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.sheet h2 { font-family: var(--serif); font-style: italic; font-size: 1.55rem; }

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.legend li { display: grid; grid-template-columns: 10rem 1fr; align-items: center; gap: 0.6rem; }
.legend .band { justify-self: start; }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin: 0; text-align: center; }
.stat-grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat-grid dt { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.2; font-weight: 700; }
.stat-grid dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

.dist-title { color: var(--ink-2); }
.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.dist li { display: grid; grid-template-columns: 3.25rem 1fr; align-items: center; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.dist__n { font-weight: 700; text-align: right; font-size: 0.82rem; color: var(--ink-2); }
.dist__bar {
  min-width: 1.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: right;
  font-weight: 700;
  font-size: 0.85rem;
}
.dist li.is-today .dist__bar { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border-color: var(--accent-deep); color: var(--accent-ink); }

/* ---------- The magazine: the cover (menu screen) and its inside pages ----------
   Each day's issue comes out in its weekday's magazine style (core/issue.js): data-style on .cover.
   Each style is a kind of magazine from its decade, not a copy of a real one. The fonts are free
   (SIL Open Font License or Apache 2.0, in fonts/licenses/) and served from this site, not Google's. */

@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/playfair-display-italic-900.woff2") format("woff2"); }
@font-face { font-family: Yellowtail; font-display: swap; src: url("fonts/yellowtail.woff2") format("woff2"); }
@font-face { font-family: "Abril Fatface"; font-display: swap; src: url("fonts/abril-fatface.woff2") format("woff2"); }
@font-face { font-family: Righteous; font-display: swap; src: url("fonts/righteous.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-700.woff2") format("woff2"); }
@font-face { font-family: Shrikhand; font-display: swap; src: url("fonts/shrikhand.woff2") format("woff2"); }
@font-face { font-family: Oswald; font-weight: 500 700; font-display: swap; src: url("fonts/oswald.woff2") format("woff2"); }
@font-face { font-family: Anton; font-display: swap; src: url("fonts/anton.woff2") format("woff2"); }
@font-face { font-family: Bungee; font-display: swap; src: url("fonts/bungee.woff2") format("woff2"); }
@font-face { font-family: "Press Start 2P"; font-display: swap; src: url("fonts/press-start-2p.woff2") format("woff2"); }
@font-face { font-family: "Luckiest Guy"; font-display: swap; src: url("fonts/luckiest-guy.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-display: swap; src: url("fonts/permanent-marker.woff2") format("woff2"); }

/* The cover screen replaces the top bar: the masthead is the page's sign. */
body[data-view="cover"] .topbar { display: none; }
.cover-screen { display: grid; justify-items: center; gap: 0.85rem; }
.cover-screen > * { width: min(100%, calc((100svh - 9.5rem) * 0.66), 30rem); }
.cover-actions { display: grid; gap: 0.5rem; }
.cover-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 0.9rem; font-size: 0.92rem; }
.cover-nav__icons { display: inline-flex; }
.cover-nav .link-btn { color: var(--ink); padding: 0.45rem 0.1rem; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.cover-nav .icon-btn { width: 2.4rem; height: 2.4rem; }
.wordmark__home { display: inherit; align-items: inherit; gap: inherit; color: inherit; text-decoration: none; }

/* ---- The cover (shared by every style) ---- */
.cover {
  --paper: #fbf5e9;
  --c-ink: #1b2236;
  --c-accent: #b3271f;
  --hl: #ffcf5a;
  --burst-bg: radial-gradient(circle at 40% 35%, #ef6a52, #b3271f 60%, #8c1c16);
  --burst-shape: polygon(50% 0%, 57% 13%, 70% 4%, 72% 19%, 87% 15%, 83% 30%, 98% 32%, 89% 45%, 100% 55%, 87% 62%, 94% 76%, 79% 77%, 79% 92%, 65% 86%, 57% 100%, 48% 88%, 36% 98%, 32% 84%, 17% 89%, 19% 74%, 4% 70%, 13% 58%, 0% 47%, 13% 39%, 5% 25%, 20% 24%, 18% 9%, 33% 14%, 38% 0%, 46% 11%);
  --burst-top: 28%;
  --burst-right: -0.3rem;
  /* 1rem on a normal phone (375px) and wider; on a narrower phone the cover's bottom text and Play badge
     shrink with the cover (100vw minus the 32px of gutters, over the 343px cover of a 375px phone), so they
     wrap and sit as they do at 375px instead of crowding each other. */
  --u: min(1rem, calc(4.665vw - 1.493px));
  position: relative;
  container-type: inline-size;
  aspect-ratio: 0.66;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem;
  background: var(--paper);
  color: var(--c-ink);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 18px 34px -16px rgba(27, 34, 54, 0.45), 6px 6px 0 -1px #efe6d4, 6px 6px 0 0 #d4c7ae;
  isolation: isolate;
  font-family: var(--font);
}
.cover__head { position: relative; z-index: 2; display: grid; gap: 0.3rem; }
.cover__kicker { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.cover__mast { text-align: center; line-height: 0.88; margin: 0.05rem 0 0; white-space: nowrap; }
/* Always a ™ by the name on the mastheads (Ryan, 2026-11-15), in the masthead's own type and colours. */
.mast-tm {
  font-size: 0.22em;
  vertical-align: top;
  margin-left: 0.06em;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  -webkit-text-stroke-width: 0;
}
.mini__mast .mast-tm { font-size: 0.5em; margin-left: 0.04em; }
/* Righteous and Luckiest Guy draw a faint ™; a plain bold one reads better on those two covers. */
.cover[data-style="sixties"] .mast-tm,
.cover[data-style="nineties"] .mast-tm { font-family: system-ui, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 0.24em; }
.cover__issue { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cover__stage { position: relative; flex: 1; min-height: 0; }
.cover__photo { position: absolute; inset: 0; overflow: hidden; background: #111; z-index: 0; }
.cover__slide { position: absolute; inset: 0; background: center 30% / cover no-repeat; opacity: 0; transition: opacity 0.9s ease; }
.cover__slide.is-on { opacity: 1; }
.cover__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 16, 0.8) 100%); pointer-events: none; }
/* The picture's caption ("Movies · 1980s"): at the picture's top corner, or, on the full-bleed
   styles, just above the headline (.cover__tag), so a long headline never runs into it. */
.cover__now, .cover__tag {
  padding: 0.18rem 0.5rem; background: var(--c-ink); color: var(--paper);
  font-size: calc(0.6 * var(--u, 1rem)); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: none;
}
.cover__now { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; }
.cover__tag { display: none; }
.cover__lines { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.75rem; z-index: 2; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.cover__big { font-family: Oswald, Bahnschrift, "Arial Narrow", sans-serif; font-weight: 700; font-size: calc(2 * var(--u, 1rem)); line-height: 0.98; text-transform: uppercase; }
.cover__hi { color: var(--hl); }
.cover__small { margin-top: 0.3rem; font-family: var(--serif); font-style: italic; font-size: calc(0.98 * var(--u, 1rem)); line-height: 1.3; }
.cover__small time { font-variant-numeric: lining-nums tabular-nums; }
.cover__rating { display: none; }

/* The whole cover opens the issue; the starburst is the visible button. */
.cover__open { position: absolute; inset: 0; z-index: 4; }
.cover__burst {
  position: absolute; z-index: 5;
  top: var(--burst-top); right: var(--burst-right);
  width: calc(7 * var(--u, 1rem)); height: calc(7 * var(--u, 1rem));
  display: grid; place-items: center; text-align: center; text-decoration: none;
  color: #fff8ee;
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 8px rgba(40, 10, 6, 0.45));
  animation: cover-wobble 2.4s ease-in-out infinite;
}
.cover__burst::before { content: ""; position: absolute; inset: 0; background: var(--burst-bg); clip-path: var(--burst-shape); }
.cover__burst > span { position: relative; font-weight: 800; font-size: calc(0.74 * var(--u, 1rem)); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.05; }
.cover__burst b { display: block; font-family: var(--serif); font-style: italic; font-size: calc(1.6 * var(--u, 1rem)); letter-spacing: 0; text-transform: none; }
.cover__burst:focus-visible { outline-offset: 0; }
@keyframes cover-wobble { 50% { transform: rotate(4deg) scale(1.04); } }

.cover__foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.6rem; }
.cover__teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.12rem; font-size: calc(0.78 * var(--u, 1rem)); line-height: 1.3; }
.cover__teasers b { color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: calc(0.7 * var(--u, 1rem)); margin-right: 0.3rem; }
.cover__listings { display: none; }
.cover__barcode { display: grid; justify-items: center; gap: 2px; padding: 4px 5px 3px; background: #fff; border: 1px solid #ddd2bf; }
.cover__barcode i { display: block; width: 3.9rem; height: 1.55rem; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 7px, #111 7px 10px, transparent 10px 11px, #111 11px 12px, transparent 12px 15px); }
.cover__barcode small { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.1em; color: #111; }

/* Read: after today's puzzle, a rubber stamp across the picture. */
.cover__stamp {
  position: absolute; z-index: 3; left: 50%; top: 34%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: 0.25rem 0.9rem;
  border: 4px double #e8362a; border-radius: 6px;
  color: #e8362a; background: rgba(255, 255, 255, 0.82);
  font-family: Oswald, Bahnschrift, sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Full-bleed styles: the picture fills the whole cover and the type sits on it. */
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) { padding: 0; overflow: hidden; }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__stage { position: static; }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__head { padding: 0.7rem 0.75rem 0; }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__foot { padding: 0 0.75rem 0.7rem; }
/* The cover lines sit on top of the footer instead of a fixed height above the cover's bottom edge, so a footer
   that wraps onto more lines on a narrow phone pushes them up rather than running into them. --lines-bottom is
   still where they sit on a normal phone, where the footer is 4rem tall and the cover's gap is 0.45rem. */
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__stage { display: flex; flex-direction: column; justify-content: flex-end; }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__lines { position: relative; inset: auto; margin: 0 0.8rem calc(var(--lines-bottom, 4.6rem) - 4.45rem); }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__now { display: none; }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__tag { display: inline-block; margin-bottom: 0.45rem; }

/* 1. Sunday, the weekly: a general-interest weekly, the house style. */
.cover[data-style="weekly"] .cover__mast { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 16.4cqi; letter-spacing: -0.03em; color: var(--c-accent); text-shadow: 2px 2px 0 var(--c-ink); }
.cover[data-style="weekly"] .cover__issue { padding: 0.28rem 0.1rem; border-top: 2px solid var(--c-ink); border-bottom: 1px solid var(--c-ink); }

/* 2. Monday, the 1950s: a Hollywood fan magazine. Hand-tinted photo, printed dots, script masthead. */
.cover[data-style="fifties"] { --paper: #fdf1e4; --c-ink: #173f4a; --c-accent: #e2506f; --hl: #ffe08a; --burst-bg: radial-gradient(circle at 40% 35%, #ff9db2, #e2506f 65%); --burst-shape: circle(50%); --burst-top: 23%; }
.cover[data-style="fifties"] .cover__slide { filter: sepia(0.35) saturate(0.85) contrast(0.95) brightness(1.05); }
.cover[data-style="fifties"] .cover__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(rgba(23, 63, 74, 0.25) 1px, transparent 1.3px) 0 0 / 4px 4px; mix-blend-mode: multiply; pointer-events: none; }
.cover[data-style="fifties"] .cover__photo::after { background: linear-gradient(180deg, rgba(253, 241, 228, 0.97) 0%, rgba(253, 241, 228, 0.85) 13%, rgba(253, 241, 228, 0.35) 24%, transparent 32%, transparent 50%, rgba(23, 63, 74, 0.88) 100%); }
.cover[data-style="fifties"] .cover__kicker { font-family: "Abril Fatface", Georgia, serif; font-weight: 400; letter-spacing: 0.14em; }
.cover[data-style="fifties"] .cover__mast { font-family: Yellowtail, "Brush Script MT", cursive; font-weight: 400; font-size: 18.6cqi; color: var(--c-accent); transform: rotate(-5deg); margin: 0.2rem 0 0.35rem; text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 4px 5px 0 var(--c-ink); }
.cover[data-style="fifties"] .cover__issue { font-family: "Abril Fatface", Georgia, serif; font-weight: 400; letter-spacing: 0.1em; }
/* The issue line sits on the picture under the tilted masthead: a cream label behind each half keeps it readable
   over the marquee lights and the jukebox chrome (Ryan, 2026-11-14: "fix the 50s cover text contrast"). */
.cover[data-style="fifties"] .cover__issue span { padding: 0.12rem 0.45rem 0.1rem; border-radius: 2px; background: rgba(253, 241, 228, 0.95); box-shadow: 0 1px 3px rgba(23, 63, 74, 0.35); }
.cover[data-style="fifties"] .cover__big { font-family: "Abril Fatface", Georgia, serif; font-weight: 400; text-transform: none; font-size: calc(2.05 * var(--u, 1rem)); }
.cover[data-style="fifties"] .cover__hi { font-style: italic; }
.cover[data-style="fifties"] .cover__tag { background: var(--c-accent); }
.cover[data-style="fifties"] .cover__burst::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(255, 255, 255, 0.85); border-radius: 50%; }
.cover[data-style="fifties"] .cover__burst b { font-family: Yellowtail, cursive; font-style: normal; font-size: calc(1.9 * var(--u, 1rem)); }
.cover[data-style="fifties"] .cover__teasers { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.cover[data-style="fifties"] .cover__teasers b { color: var(--hl); }

/* 3. Tuesday, the 1960s: a pocket TV-listings digest. The day's four as a schedule. */
.cover[data-style="sixties"] { --paper: #ffffff; --c-ink: #10204a; --c-accent: #1f4fd1; --hl: #ffd23f; --burst-bg: #ffd23f; --burst-shape: circle(50%); --burst-top: 21%; }
.cover[data-style="sixties"] .cover__kicker { font-family: "Courier Prime", var(--mono); letter-spacing: 0.06em; font-size: 0.68rem; }
.cover[data-style="sixties"] .cover__mast {
  font-family: Righteous, "Arial Rounded MT Bold", sans-serif; font-weight: 400; font-size: 13.8cqi; color: #fff; line-height: 1;
  padding: 0.35rem 0.5rem 0.4rem; border-radius: 14px;
  background: linear-gradient(180deg, #2f62e6, #1636a3);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #0c1d5c;
}
.cover[data-style="sixties"] .cover__issue { font-family: "Courier Prime", var(--mono); letter-spacing: 0.04em; font-size: 0.72rem; }
.cover[data-style="sixties"] .cover__photo { border: 6px solid #15161a; border-radius: 16% / 13%; box-shadow: 0 0 0 2px #b8bcc6; }
.cover[data-style="sixties"] .cover__photo::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 50%, rgba(5, 10, 30, 0.8) 100%); }
.cover[data-style="sixties"] .cover__big { font-family: Righteous, sans-serif; font-weight: 400; text-transform: none; font-size: calc(1.75 * var(--u, 1rem)); }
.cover[data-style="sixties"] .cover__small { font-family: "Courier Prime", var(--mono); font-style: normal; font-size: calc(0.82 * var(--u, 1rem)); }
.cover[data-style="sixties"] .cover__now { background: var(--c-accent); border-radius: 4px; top: 0.9rem; left: 1rem; }
.cover[data-style="sixties"] .cover__burst { color: var(--c-ink); }
.cover[data-style="sixties"] .cover__burst b { font-family: Righteous, sans-serif; font-style: normal; font-size: calc(1.45 * var(--u, 1rem)); }
.cover[data-style="sixties"] .cover__teasers { display: none; }
.cover[data-style="sixties"] .cover__listings {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.7rem;
  font-family: "Courier Prime", var(--mono); font-size: 0.74rem; line-height: 1.25;
  list-style: none; margin: 0; padding: 0;
}
.cover__listings b { color: var(--c-accent); margin-right: 0.3rem; }

/* 4. Wednesday, the 1970s: a rock-and-roll newsprint. Duotone photo, groovy masthead. */
.cover[data-style="seventies"] { --paper: #efe2c4; --c-ink: #4a230a; --c-accent: #d9531e; --hl: #ffc93c; --burst-bg: #241309; --burst-shape: circle(50%); --burst-top: 28%; background-image: var(--grain); }
.cover[data-style="seventies"] .cover__kicker { font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: 0.24em; }
.cover[data-style="seventies"] .cover__mast { font-family: Shrikhand, "Cooper Black", serif; font-weight: 400; font-size: 12.7cqi; color: var(--c-accent); text-shadow: 3px 3px 0 #f4b23c, 6px 6px 0 var(--c-ink); transform: rotate(-3deg); margin: 0.15rem 0 0.1rem; }
.cover[data-style="seventies"] .cover__issue { font-family: Oswald, sans-serif; font-weight: 500; border-top: 3px solid var(--c-ink); border-bottom: 3px solid var(--c-ink); padding: 0.2rem 0.1rem; }
.cover[data-style="seventies"] .cover__photo { border: 4px solid var(--c-ink); }
.cover[data-style="seventies"] .cover__slide { filter: grayscale(1) contrast(1.15) brightness(1.15) sepia(0.9) saturate(2.6) hue-rotate(-14deg); }
.cover[data-style="seventies"] .cover__big { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: calc(2.15 * var(--u, 1rem)); letter-spacing: 0.01em; }
.cover[data-style="seventies"] .cover__now { background: var(--c-accent); color: #fff3d6; }
.cover[data-style="seventies"] .cover__burst { color: #ffc93c; }
.cover[data-style="seventies"] .cover__burst b { font-family: Shrikhand, serif; font-style: normal; font-size: calc(1.45 * var(--u, 1rem)); }
.cover[data-style="seventies"] .cover__teasers { font-family: Oswald, sans-serif; font-weight: 500; font-size: calc(0.82 * var(--u, 1rem)); }

/* 5. Thursday, the 1980s: a video game magazine. Chrome masthead, yellow frame, a rating badge. */
.cover[data-style="eighties"] { --paper: #0d0f1f; --c-ink: #ffffff; --c-accent: #ffd400; --hl: #ffd400; --burst-bg: linear-gradient(180deg, #fff35c, #ffbf00); --burst-shape: polygon(50% 0%, 59% 22%, 82% 6%, 75% 31%, 100% 30%, 81% 48%, 99% 66%, 74% 66%, 82% 93%, 59% 76%, 50% 100%, 41% 76%, 17% 94%, 26% 66%, 0% 67%, 19% 48%, 0% 30%, 26% 31%, 17% 6%, 41% 22%); --burst-top: 25%; --lines-bottom: 4.4rem; border: 7px solid #ffd400; box-shadow: 0 0 0 2px #111, 0 18px 34px -16px rgba(0, 0, 0, 0.6); }
.cover[data-style="eighties"] .cover__photo::after { background: linear-gradient(180deg, rgba(13, 15, 31, 0.85) 0%, transparent 30%, transparent 48%, rgba(13, 15, 31, 0.92) 100%); }
.cover[data-style="eighties"] .cover__kicker { font-family: "Press Start 2P", monospace; font-weight: 400; font-size: 0.5rem; letter-spacing: 0.04em; color: #33e1ff; }
.cover[data-style="eighties"] .cover__mast {
  font-family: Bungee, Impact, sans-serif; font-weight: 400; font-size: 12.1cqi; line-height: 1; margin-top: 0.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #bfe6ff 40%, #2a4fa8 50%, #ffe08a 60%, #ff8a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #0a0b18;
  filter: drop-shadow(0 3px 0 #e8362a) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}
.cover[data-style="eighties"] .cover__issue { font-family: "Press Start 2P", monospace; font-weight: 400; font-size: 0.48rem; letter-spacing: 0.05em; }
.cover[data-style="eighties"] .cover__big { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: calc(2.3 * var(--u, 1rem)); -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #e8362a; }
.cover[data-style="eighties"] .cover__small { font-family: Bahnschrift, "Arial Narrow", sans-serif; font-style: normal; font-weight: 700; font-size: calc(0.9 * var(--u, 1rem)); }
.cover[data-style="eighties"] .cover__tag { font-family: "Press Start 2P", monospace; font-size: calc(0.48 * var(--u, 1rem)); background: #e8362a; color: #fff; }
.cover[data-style="eighties"] .cover__burst { color: #d1140a; }
.cover[data-style="eighties"] .cover__burst > span { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: calc(0.95 * var(--u, 1rem)); letter-spacing: 0.06em; }
.cover[data-style="eighties"] .cover__burst b { font-family: Anton, Impact, sans-serif; font-style: normal; font-size: calc(1.6 * var(--u, 1rem)); }
.cover[data-style="eighties"] .cover__teasers { color: #fff; font-family: Bahnschrift, "Arial Narrow", sans-serif; font-weight: 700; }
.cover[data-style="eighties"] .cover__teasers b { color: #ffd400; }
.cover[data-style="eighties"] .cover__rating { display: block; position: absolute; z-index: 3; left: 0.75rem; top: 24%; padding: 0.3rem 0.45rem; background: #e8362a; color: #fff; font-family: Anton, Impact, sans-serif; font-size: 0.85rem; line-height: 1; text-align: center; transform: rotate(-6deg); box-shadow: 3px 3px 0 #000; }
.cover__rating b { display: block; font-size: 1.5rem; }

/* 6. Friday, the 1990s: a teen pop magazine. Polka dots, a taped polaroid, marker pen. */
.cover[data-style="nineties"] { --paper: #ff3fa4; --c-ink: #2a0f5c; --c-accent: #7b2cff; --hl: #ff3fa4; --burst-bg: #00d8d6; --burst-shape: circle(50%); --burst-top: 26%; --burst-right: -0.5rem; background-image: radial-gradient(#ffd6f0 2px, transparent 2.5px), radial-gradient(#fff200 1.5px, transparent 2px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; }
.cover[data-style="nineties"] .cover__kicker { font-family: "Permanent Marker", cursive; font-weight: 400; letter-spacing: 0.04em; text-transform: none; font-size: 0.85rem; color: #fff200; text-shadow: 1px 1px 0 var(--c-ink); }
.cover[data-style="nineties"] .cover__mast { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-weight: 400; font-size: 15.1cqi; color: #fff200; letter-spacing: 0.02em; text-shadow: 3px 3px 0 var(--c-accent), 6px 6px 0 var(--c-ink); transform: rotate(-2deg); }
.cover[data-style="nineties"] .cover__issue { font-family: "Permanent Marker", cursive; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: #fff; }
.cover[data-style="nineties"] .cover__stage { margin: 0.3rem 0.6rem 0.2rem; }
.cover[data-style="nineties"] .cover__photo { border: 9px solid #fff; border-bottom-width: 30px; transform: rotate(-3deg); box-shadow: 0 10px 20px rgba(42, 15, 92, 0.45); }
.cover[data-style="nineties"] .cover__photo::after { background: linear-gradient(180deg, transparent 55%, rgba(42, 15, 92, 0.75) 100%); }
.cover[data-style="nineties"] .cover__stage::before,
.cover[data-style="nineties"] .cover__stage::after { content: ""; position: absolute; z-index: 3; width: 4.2rem; height: 1.1rem; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.cover[data-style="nineties"] .cover__stage::before { top: -0.4rem; left: -0.6rem; transform: rotate(-38deg); }
.cover[data-style="nineties"] .cover__stage::after { top: -0.2rem; right: -0.8rem; transform: rotate(34deg); }
.cover[data-style="nineties"] .cover__lines { bottom: 2.5rem; transform: rotate(-3deg); }
.cover[data-style="nineties"] .cover__big { display: inline; font-family: "Permanent Marker", cursive; font-weight: 400; text-transform: none; font-size: calc(1.55 * var(--u, 1rem)); line-height: 1.2; color: var(--c-ink); text-shadow: none; background: #fff200; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 0.3rem; }
.cover[data-style="nineties"] .cover__small { font-family: var(--font); font-style: normal; font-weight: 800; font-size: calc(0.85 * var(--u, 1rem)); margin-top: 0.45rem; }
.cover[data-style="nineties"] .cover__now { background: var(--c-accent); top: 0.5rem; left: 0.5rem; }
.cover[data-style="nineties"] .cover__burst { color: var(--c-ink); }
.cover[data-style="nineties"] .cover__burst::after { content: ""; position: absolute; inset: 5px; border: 3px solid #fff; border-radius: 50%; }
.cover[data-style="nineties"] .cover__burst b { font-family: "Luckiest Guy", sans-serif; font-style: normal; font-size: calc(1.6 * var(--u, 1rem)); }
.cover[data-style="nineties"] .cover__teasers { font-family: "Permanent Marker", cursive; font-size: calc(0.82 * var(--u, 1rem)); color: #fff; text-shadow: 1px 1px 0 var(--c-ink); }
.cover[data-style="nineties"] .cover__teasers b { color: #fff200; font-family: var(--font); font-weight: 900; }

/* 7. Saturday, the 2000s: a celebrity tabloid. Pink band, yellow shouting. (The red circle is gone, Ryan 2026-11-14.) */
.cover[data-style="noughties"] { --paper: #111; --c-ink: #ffffff; --c-accent: #ff2d8a; --hl: #ffe600; --burst-bg: #ffe600; --burst-shape: circle(50%); --burst-top: 23%; --lines-bottom: 4.3rem; }
.cover[data-style="noughties"] .cover__head { padding: 0; gap: 0; }
.cover[data-style="noughties"] .cover__kicker { padding: 0.3rem 0.6rem; background: #ffe600; color: #111; font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: 0.12em; font-size: 0.78rem; }
.cover[data-style="noughties"] .cover__mast { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 16.4cqi; line-height: 1.08; text-transform: uppercase; letter-spacing: 0.01em; color: #fff; background: var(--c-accent); padding: 0.05rem 0 0.1rem; margin: 0; }
.cover[data-style="noughties"] .cover__issue { padding: 0.25rem 0.6rem; background: #111; color: #fff; }
.cover[data-style="noughties"] .cover__photo::after { background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88) 100%); }
.cover[data-style="noughties"] .cover__big { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: calc(2.45 * var(--u, 1rem)); line-height: 0.95; color: #ffe600; -webkit-text-stroke: 1px #000; text-shadow: 2px 3px 0 #000; }
.cover[data-style="noughties"] .cover__hi { color: #fff; }
.cover[data-style="noughties"] .cover__small { font-family: var(--font); font-style: normal; font-weight: 800; font-size: calc(0.88 * var(--u, 1rem)); }
.cover[data-style="noughties"] .cover__tag { background: var(--c-accent); }
.cover[data-style="noughties"] .cover__burst { color: #e0004f; }
.cover[data-style="noughties"] .cover__burst > span { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: calc(0.9 * var(--u, 1rem)); letter-spacing: 0.06em; }
.cover[data-style="noughties"] .cover__burst b { font-family: Anton, Impact, sans-serif; font-style: normal; font-size: calc(1.7 * var(--u, 1rem)); }
.cover[data-style="noughties"] .cover__teasers { color: #fff; font-weight: 700; }
.cover[data-style="noughties"] .cover__teasers b { color: var(--c-accent); }

/* ---- Special issues (core/issue.js; Ryan, 2026-11-14) ---- */
/* A holiday special keeps the weekday's magazine: a gold strip across the top and a gold badge. */
.cover__special {
  position: relative; z-index: 3; margin: -0.7rem -0.7rem 0; padding: 0.3rem 0.5rem; text-align: center;
  background: linear-gradient(180deg, #fff1a8, #e2b13c 50%, #a87a17);
  color: #3a2500; font: 800 0.64rem/1.15 var(--font); letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"], [data-style="christmas"], [data-style="newyear"], [data-style="valentine"], [data-style="easter"], [data-style="july4"], [data-style="halloween"]) .cover__special { margin: 0; }
.cover__badge {
  position: absolute; z-index: 3; left: 0.6rem; top: 0.6rem;
  padding: 0.3rem 0.5rem; transform: rotate(-6deg);
  background: linear-gradient(180deg, #fff1a8, #e2b13c 55%, #b8861f); color: #3a2500;
  font-family: Anton, Impact, sans-serif; font-size: 0.8rem; line-height: 1; text-align: center; text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.85);
}
.cover__badge b { display: block; font-size: 1.3rem; font-weight: 400; }
.cover:is([data-style="fifties"], [data-style="eighties"], [data-style="noughties"]) .cover__badge { top: 25%; left: 0.75rem; }
.cover.has-badge .cover__now, .cover.has-badge .cover__rating { display: none !important; }

/* A theme week: a banner under the issue line names the week and counts its days. */
.cover__week {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.15rem;
  padding: 0.28rem 0.5rem; background: rgba(15, 12, 8, 0.86); color: #ffd86b;
  font-family: Oswald, Bahnschrift, sans-serif; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.cover__week i { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: rgba(255, 216, 107, 0.3); }
.cover__week i.on { background: #ffd86b; }

/* Christmas Day gets a one-off magazine of its own: the Christmas Special. Gold-foil masthead, falling snow, a ribbon and bow. */
.cover__bow { display: none; }
.cover[data-style="christmas"] { --paper: #0f3d2e; --c-ink: #fff4dc; --c-accent: #d7263d; --hl: #ffd86b; --burst-bg: radial-gradient(circle at 38% 32%, #fff3b0, #e8b93a 45%, #9c6b12); --burst-shape: circle(50%); --burst-top: 31%; --burst-right: 1.2rem; --lines-bottom: 4.6rem; }
.cover[data-style="christmas"] .cover__photo::after { background: linear-gradient(180deg, rgba(15, 61, 46, 0.96) 0%, rgba(15, 61, 46, 0.6) 22%, transparent 36%, transparent 48%, rgba(10, 40, 30, 0.93) 100%); }
.cover[data-style="christmas"] .cover__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle, #fff 1.4px, transparent 2px) 0 0 / 34px 34px,
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1.6px) 17px 11px / 26px 26px,
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.8px, transparent 1.3px) 7px 21px / 19px 19px;
}
.cover[data-style="christmas"] .cover__head { padding-right: 2.4rem; }
.cover[data-style="christmas"] .cover__kicker { color: #ffd86b; font-family: "Abril Fatface", serif; font-weight: 400; letter-spacing: 0.16em; }
.cover[data-style="christmas"] .cover__mast {
  text-align: left; font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; font-size: 12.9cqi; /* name and ™ clear of the ribbon, down to 320px phones */
  background: linear-gradient(180deg, #fff6c8 0%, #f2cf6a 38%, #b98a22 52%, #f7dc8a 68%, #9c6b12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #5c0f17) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.cover[data-style="christmas"] .cover__issue { color: #fff4dc; font-family: "Abril Fatface", serif; font-weight: 400; letter-spacing: 0.1em; }
.cover[data-style="christmas"] .cover__lines { margin-right: 2.2rem; }
.cover[data-style="christmas"] .cover__big { font-family: "Abril Fatface", serif; font-weight: 400; text-transform: none; font-size: calc(2.15 * var(--u, 1rem)); }
.cover[data-style="christmas"] .cover__hi { font-style: italic; }
.cover[data-style="christmas"] .cover__tag { background: var(--c-accent); color: #fff; }
.cover[data-style="christmas"] .cover__burst { color: #5c0f17; }
.cover[data-style="christmas"] .cover__burst::after { content: ""; position: absolute; top: -0.55rem; left: 50%; width: calc(1.4 * var(--u, 1rem)); height: calc(0.9 * var(--u, 1rem)); transform: translateX(-50%); border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #8d8d8d, #e6e6e6, #8d8d8d); }
.cover[data-style="christmas"] .cover__burst b { font-family: Yellowtail, cursive; font-style: normal; font-size: calc(1.9 * var(--u, 1rem)); }
.cover[data-style="christmas"] .cover__foot { padding-right: 2.2rem; }
.cover[data-style="christmas"] .cover__teasers { color: #fff4dc; }
.cover[data-style="christmas"] .cover__teasers b { color: #ffd86b; }
.cover[data-style="christmas"] .cover__bow { display: block; position: absolute; z-index: 4; top: 0; bottom: 0; right: 0.55rem; width: 1rem; background: linear-gradient(90deg, #9e1426, #d7263d 45%, #9e1426); box-shadow: 0 0 6px rgba(0, 0, 0, 0.35); pointer-events: none; }
.cover[data-style="christmas"] .cover__bow::before,
.cover[data-style="christmas"] .cover__bow::after { content: ""; position: absolute; top: 0.35rem; width: 1.9rem; height: 1.2rem; border-radius: 50%; border: 0.36rem solid #d7263d; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); }
.cover[data-style="christmas"] .cover__bow::before { right: 0.45rem; transform: rotate(-24deg); }
.cover[data-style="christmas"] .cover__bow::after { left: 0.45rem; transform: rotate(24deg); }

/* New Year's Day gets the New Year Special: black and gold, falling confetti, a gold-foil masthead,
   and a pocket watch at a minute to midnight to play, with "Ring it in" on its ribbon (Ryan, 2026-11-14). */
.cover[data-style="newyear"] { --paper: #08080c; --c-ink: #f6ead0; --c-accent: #c9a24a; --hl: #f2cf6a; --burst-top: 23%; --burst-right: 0.5rem; --lines-bottom: 4.6rem; }
.cover[data-style="newyear"] .cover__slide { filter: saturate(0.6) brightness(0.8); }
.cover[data-style="newyear"] .cover__photo::after { background: linear-gradient(180deg, rgba(8, 8, 12, 0.96) 0%, rgba(8, 8, 12, 0.55) 24%, transparent 38%, transparent 46%, rgba(8, 8, 12, 0.94) 100%); }
/* Confetti: one tile of pieces at random spots and angles, laid twice at two sizes so no rows show. */
.cover[data-style="newyear"] .cover__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("img/newyear/confetti.svg") 0 0 / 190px 230px, url("img/newyear/confetti.svg") 97px 61px / 127px 154px; }
.cover[data-style="newyear"] .cover__kicker { color: #f2cf6a; font-family: "Abril Fatface", serif; font-weight: 400; letter-spacing: 0.16em; }
.cover[data-style="newyear"] .cover__mast {
  font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; font-size: 14.2cqi;
  background: linear-gradient(180deg, #fff8dc 0%, #f2cf6a 40%, #a87a17 52%, #f7e3a1 68%, #8f6516 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(242, 207, 106, 0.35));
}
.cover[data-style="newyear"] .cover__issue { color: #f6ead0; font-family: "Abril Fatface", serif; font-weight: 400; letter-spacing: 0.12em; border-top: 1px solid rgba(242, 207, 106, 0.6); border-bottom: 1px solid rgba(242, 207, 106, 0.6); padding: 0.2rem 0.05rem; }
.cover[data-style="newyear"] .cover__big { font-family: "Abril Fatface", serif; font-weight: 400; text-transform: none; font-size: calc(2.2 * var(--u, 1rem)); }
.cover[data-style="newyear"] .cover__hi { font-style: italic; }
.cover[data-style="newyear"] .cover__tag { background: #c9a24a; color: #1a1205; }
.cover[data-style="newyear"] .cover__teasers { color: #f6ead0; }
.cover[data-style="newyear"] .cover__teasers b { color: #f2cf6a; }
/* The Play button: the watch swings gently on its loop; the words sit on its ribbon. */
@keyframes newyear-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.cover[data-style="newyear"] .cover__burst { width: calc(7 * var(--u, 1rem)); height: calc(7.95 * var(--u, 1rem)); color: #f2cf6a; transform: none; transform-origin: 50% 4%; animation: newyear-swing 3s ease-in-out infinite; }
.cover[data-style="newyear"] .cover__burst::before { background: url("img/newyear/watch.svg") center / contain no-repeat; clip-path: none; }
.cover[data-style="newyear"] .cover__burst > span { position: absolute; left: 0; right: 0; top: 73.5%; transform: translateY(-52%); font-family: Yellowtail, cursive; font-weight: 400; font-size: calc(1.12 * var(--u, 1rem)); letter-spacing: 0; text-transform: none; line-height: 1; white-space: nowrap; }
.cover[data-style="newyear"] .cover__burst b { display: inline; font: inherit; margin-right: 0.22em; }

/* Four more one-off magazines (2026-11-15; Ryan: "Yes build all of the ones you suggested"). Their art is in
   img/specials/, drawn by tools/draw-holiday-drafts.mjs. A special's own picture has no caption, so its tag hides. */
.cover__tag:empty, .cover__now:empty { display: none !important; }
.cover__deco { display: none; }

/* Easter and Christmas carry a Bible verse under the masthead, from the King James Version (Ryan, 2026-11-15:
   "Yes add religious reference for Easter and Christmas"). */
.cover__verse { margin: 0.05rem 0.2rem 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 0.8rem; line-height: 1.25; }
.cover__verse cite { margin-left: 0.4em; font-family: Oswald, sans-serif; font-style: normal; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.cover__verse cite::before { content: "— "; }
.cover[data-style="easter"] .cover__verse { color: #43256f; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.cover[data-style="christmas"] .cover__verse { color: #fff4dc; }
.cover[data-style="christmas"] .cover__verse cite { color: #ffd86b; }
/* Christmas: the Star of Bethlehem shines over the cover picture. */
@keyframes star-shine { 50% { transform: scale(1.06); filter: drop-shadow(0 0 2px rgba(60, 35, 0, 0.7)) drop-shadow(0 0 18px rgba(255, 230, 140, 1)); } }
.cover[data-style="christmas"] .cover__deco { display: block; position: absolute; left: 0; top: calc(100% - 0.2rem); width: 6.4rem; height: 9rem; filter: drop-shadow(0 0 2px rgba(60, 35, 0, 0.7)) drop-shadow(0 0 12px rgba(255, 220, 120, 0.9)); background: url("img/specials/bethlehem-star.svg") center top / contain no-repeat; pointer-events: none; transform-origin: 50% 33%; animation: star-shine 3.2s ease-in-out infinite; }

/* Valentine's Day: wine red and pink over the jukebox, small hearts drifting up, a candy heart on a paper-lace doily to play. */
.cover[data-style="valentine"] { --paper: #5e0a1f; --c-ink: #fff0f4; --c-accent: #ff5c8a; --hl: #ffb3c9; --burst-top: 21%; --burst-right: 0.2rem; --lines-bottom: 4.6rem; }
.cover[data-style="valentine"] .cover__slide { filter: saturate(0.95) brightness(0.82); }
.cover[data-style="valentine"] .cover__photo::after { background: linear-gradient(180deg, rgba(94, 10, 31, 0.97) 0%, rgba(94, 10, 31, 0.6) 25%, rgba(94, 10, 31, 0.08) 40%, transparent 48%, rgba(64, 5, 20, 0.95) 100%); }
.cover[data-style="valentine"] .cover__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("img/specials/hearts.svg") 0 0 / 200px 240px; animation: hearts-rise 40s linear infinite; }
@keyframes hearts-rise { to { background-position: 0 -240px; } }
.cover[data-style="valentine"] .cover__kicker { color: #ffc2d4; font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: 0.2em; }
.cover[data-style="valentine"] .cover__mast {
  font-family: Shrikhand, serif; font-weight: 400; font-size: 12.7cqi; color: #ff8fb1; letter-spacing: 0.01em;
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 4px 5px 0 #2e0410;
}
.cover[data-style="valentine"] .cover__issue { color: #fff0f4; font-family: Oswald, sans-serif; letter-spacing: 0.16em; border-top: 1px solid rgba(255, 179, 201, 0.6); border-bottom: 1px solid rgba(255, 179, 201, 0.6); padding: 0.18rem 0.05rem; }
.cover[data-style="valentine"] .cover__big { font-family: "Abril Fatface", serif; font-weight: 400; text-transform: none; font-size: calc(2.15 * var(--u, 1rem)); line-height: 1.02; }
.cover[data-style="valentine"] .cover__hi { font-family: Yellowtail, cursive; font-size: 1.32em; line-height: 0.9; }
.cover[data-style="valentine"] .cover__small { margin-top: 0.55rem; }
.cover[data-style="valentine"] .cover__tag { background: #ff5c8a; color: #fff; }
.cover[data-style="valentine"] .cover__teasers { color: #fff0f4; }
.cover[data-style="valentine"] .cover__teasers b { color: #ffb3c9; }
@keyframes heartbeat { 0%, 40%, 100% { transform: rotate(-8deg) scale(1); } 10% { transform: rotate(-8deg) scale(1.07); } 22% { transform: rotate(-8deg) scale(1.02); } 30% { transform: rotate(-8deg) scale(1.06); } }
.cover[data-style="valentine"] .cover__burst { width: calc(7.6 * var(--u, 1rem)); height: calc(7.6 * var(--u, 1rem)); color: #d81b4a; transform: rotate(-8deg); animation: heartbeat 2.2s ease-in-out infinite; }
.cover[data-style="valentine"] .cover__burst::before { background: url("img/specials/doily.svg") center / contain no-repeat; clip-path: none; filter: drop-shadow(0 2px 3px rgba(60, 0, 20, 0.4)); }
.cover[data-style="valentine"] .cover__burst::after { content: ""; position: absolute; inset: 17% 14% 13% 14%; background: url("img/specials/candy-heart.svg") center / contain no-repeat; }
.cover[data-style="valentine"] .cover__burst > span { z-index: 1; margin-top: -0.35rem; font-family: Oswald, sans-serif; font-weight: 700; font-size: calc(0.64 * var(--u, 1rem)); letter-spacing: 0.14em; }
.cover[data-style="valentine"] .cover__burst b { font-family: Anton, sans-serif; font-style: normal; font-weight: 400; font-size: calc(1.55 * var(--u, 1rem)); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; }

/* Easter: a sunrise over green hills with white lilies and pastel eggs, drawn for this cover; a painted egg to play. */
.cover[data-style="easter"] { --paper: #e6d3f2; --c-ink: #43256f; --c-accent: #8a5cc4; --hl: #fff1a6; --burst-top: 29%; --burst-right: 0.9rem; --lines-bottom: 4.6rem; }
.cover[data-style="easter"] .cover__slide { background-position: center bottom; }
.cover[data-style="easter"] .cover__photo::after { background: linear-gradient(180deg, rgba(174, 189, 240, 0.35) 0%, transparent 22%, transparent 68%, rgba(20, 44, 18, 0.45) 81%, rgba(16, 36, 15, 0.9) 100%); }
.cover[data-style="easter"] .cover__kicker { color: #5b3a8c; font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: 0.2em; }
.cover[data-style="easter"] .cover__mast { font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; font-size: 14.4cqi; color: #4b2a7a; text-shadow: 0 2px 0 #fff, 0 0 14px rgba(255, 255, 255, 0.8); }
.cover[data-style="easter"] .cover__issue { color: #43256f; font-family: Oswald, sans-serif; letter-spacing: 0.16em; border-top: 2px solid #e2b13c; border-bottom: 2px solid #e2b13c; padding: 0.18rem 0.05rem; }
.cover[data-style="easter"] .cover__lines { color: #fff; text-shadow: 0 2px 10px rgba(10, 30, 10, 0.75); }
.cover[data-style="easter"] .cover__big { font-family: "Abril Fatface", serif; font-weight: 400; text-transform: none; font-size: calc(2.1 * var(--u, 1rem)); line-height: 1; }
.cover[data-style="easter"] .cover__hi { font-family: Yellowtail, cursive; font-size: 1.45em; line-height: 0.85; }
.cover[data-style="easter"] .cover__tag { background: #8a5cc4; color: #fff; }
.cover[data-style="easter"] .cover__teasers { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.cover[data-style="easter"] .cover__teasers b { color: #fff1a6; }
@keyframes egg-rock { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.cover[data-style="easter"] .cover__burst { width: calc(5.9 * var(--u, 1rem)); height: calc(7.55 * var(--u, 1rem)); color: #6a3fa0; transform-origin: 50% 92%; animation: egg-rock 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(40, 20, 60, 0.35)); }
.cover[data-style="easter"] .cover__burst::before { background: url("img/specials/egg.svg") center / contain no-repeat; clip-path: none; }
.cover[data-style="easter"] .cover__burst > span { position: absolute; left: 0; right: 0; top: 53%; transform: translateY(-50%); font-family: Oswald, sans-serif; font-weight: 700; font-size: calc(0.56 * var(--u, 1rem)); letter-spacing: 0.16em; }
.cover[data-style="easter"] .cover__burst b { font-family: Yellowtail, cursive; font-style: normal; font-weight: 400; font-size: calc(1.6 * var(--u, 1rem)); line-height: 0.9; letter-spacing: 0; text-transform: none; }

/* The Fourth of July: the riveted tin flag, fan bunting under the masthead, a campaign pin to play. */
.cover[data-style="july4"] { --paper: #0a1d3f; --c-ink: #ffffff; --c-accent: #b31942; --hl: #ff5a6a; --burst-top: 31%; --burst-right: 0.5rem; --lines-bottom: 4.6rem; }
.cover[data-style="july4"] .cover__slide { background-position: center 34%; filter: saturate(1.05); }
.cover[data-style="july4"] .cover__photo::after { background: linear-gradient(180deg, rgba(8, 24, 56, 0.97) 0%, rgba(8, 24, 56, 0.88) 22%, rgba(8, 24, 56, 0.1) 34%, transparent 46%, rgba(7, 20, 48, 0.5) 64%, rgba(7, 20, 48, 0.96) 100%); }
.cover[data-style="july4"] .cover__kicker { color: #ffd9de; font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: 0.2em; }
.cover[data-style="july4"] .cover__mast { font-family: "Abril Fatface", serif; font-weight: 400; font-size: 14.6cqi; color: #fff; text-shadow: 3px 3px 0 #b31942, 5px 5px 0 #04122e; }
.cover[data-style="july4"] .cover__issue { color: #fff; font-family: Oswald, sans-serif; letter-spacing: 0.16em; }
.cover[data-style="july4"] .cover__deco { display: block; height: 3.55rem; margin: 0.15rem -0.75rem 0; background: url("img/specials/bunting.svg") center top / 100% 100% no-repeat; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45)); }
.cover[data-style="july4"] .cover__big { font-family: "Abril Fatface", serif; font-weight: 400; text-transform: none; font-size: calc(2.2 * var(--u, 1rem)); line-height: 1.02; }
.cover[data-style="july4"] .cover__hi { font-family: Yellowtail, cursive; font-size: 1.4em; line-height: 0.85; text-shadow: 0 2px 0 #fff, 0 2px 10px rgba(0, 0, 0, 0.6); }
.cover[data-style="july4"] .cover__tag { background: #b31942; color: #fff; }
.cover[data-style="july4"] .cover__teasers { color: #fff; }
.cover[data-style="july4"] .cover__teasers b { color: #ff8a96; }
.cover[data-style="july4"] .cover__burst { width: calc(7 * var(--u, 1rem)); height: calc(7 * var(--u, 1rem)); color: #b31942; transform: rotate(-10deg); }
.cover[data-style="july4"] .cover__burst::before { background: url("img/specials/pin.svg") center / contain no-repeat; clip-path: none; }
.cover[data-style="july4"] .cover__burst > span { font-family: Oswald, sans-serif; font-weight: 700; font-size: calc(0.66 * var(--u, 1rem)); letter-spacing: 0.16em; color: #0a3161; }
.cover[data-style="july4"] .cover__burst b { font-family: "Abril Fatface", serif; font-style: normal; font-weight: 400; font-size: calc(1.62 * var(--u, 1rem)); letter-spacing: 0; text-transform: none; color: #b31942; line-height: 1; }

/* Halloween: a creature-feature magazine. A full moon, bats and a pumpkin patch drawn for this cover; a jack-o'-lantern to play. */
.cover[data-style="halloween"] { --paper: #12061f; --c-ink: #f3e8ff; --c-accent: #ff8a1f; --hl: #ff9a1f; --burst-top: 22%; --burst-right: 0.3rem; --lines-bottom: 4.6rem; }
.cover[data-style="halloween"] .cover__slide { background-position: center bottom; }
.cover[data-style="halloween"] .cover__photo::after { background: linear-gradient(180deg, rgba(11, 4, 32, 0.92) 0%, rgba(11, 4, 32, 0.45) 22%, transparent 34%, transparent 60%, rgba(7, 2, 13, 0.65) 78%, rgba(7, 2, 13, 0.96) 100%); }
.cover[data-style="halloween"] .cover__kicker { color: #ff9a1f; font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: 0.2em; }
.cover[data-style="halloween"] .cover__mast {
  font-family: Anton, sans-serif; font-weight: 400; font-size: 17cqi; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95;
  background: linear-gradient(180deg, #fff3a0 0%, #ffb000 45%, #ff5a00 80%, #c21f00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #1a0526) drop-shadow(0 0 10px rgba(255, 140, 30, 0.45));
}
.cover[data-style="halloween"] .cover__issue { color: #e9d8ff; font-family: Oswald, sans-serif; letter-spacing: 0.16em; border-top: 1px solid rgba(255, 154, 31, 0.6); border-bottom: 1px solid rgba(255, 154, 31, 0.6); padding: 0.18rem 0.05rem; }
.cover[data-style="halloween"] .cover__big { font-family: Anton, sans-serif; font-weight: 400; font-size: calc(2.55 * var(--u, 1rem)); line-height: 0.98; letter-spacing: 0.01em; }
.cover[data-style="halloween"] .cover__hi { text-shadow: 0 0 14px rgba(255, 120, 20, 0.7), 0 2px 8px rgba(0, 0, 0, 0.6); }
.cover[data-style="halloween"] .cover__tag { background: #ff8a1f; color: #1a0526; }
.cover[data-style="halloween"] .cover__teasers { color: #f3e8ff; }
.cover[data-style="halloween"] .cover__teasers b { color: #ff9a1f; }
@keyframes pumpkin-glow {
  0%, 100% { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 6px rgba(255, 154, 31, 0.45)); }
  50% { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(255, 190, 60, 0.85)); }
}
.cover[data-style="halloween"] .cover__burst { width: calc(7.4 * var(--u, 1rem)); height: calc(6.55 * var(--u, 1rem)); color: #3a1200; transform: rotate(-6deg); animation: pumpkin-glow 2.6s ease-in-out infinite; }
.cover[data-style="halloween"] .cover__burst::before { background: url("img/specials/pumpkin.svg") center / contain no-repeat; clip-path: none; }
.cover[data-style="halloween"] .cover__burst > span { position: absolute; left: 0; right: 0; top: 55.5%; font-family: Oswald, sans-serif; font-weight: 700; font-size: calc(0.5 * var(--u, 1rem)); letter-spacing: 0.14em; line-height: 1.5; color: #4a1a00; }
.cover[data-style="halloween"] .cover__burst b { font-family: Anton, sans-serif; font-style: normal; font-weight: 400; font-size: calc(0.98 * var(--u, 1rem)); line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: #3a1200; margin-bottom: 0.18rem; }

/* ---- Inside pages (the dialogs): contents, back issues, subscriber card ---- */
#help-dialog h2, #archive-dialog h2, #stats-dialog h2 { font-family: "Playfair Display", var(--serif); font-weight: 900; font-size: 1.9rem; }

/* Contents: how to play. */
.toc { list-style: none; margin: 0; padding: 0; display: grid; }
.toc li { display: grid; grid-template-columns: 1.6rem auto 1fr; align-items: baseline; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.toc b { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.35rem; color: var(--accent); line-height: 1; }
.toc strong { font-family: Oswald, Bahnschrift, sans-serif; font-weight: 700; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.04em; }
.toc span { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 0.88rem; text-align: right; }
.letter { display: grid; gap: 0.6rem; padding: 0.9rem 1rem 0.8rem; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--serif); line-height: 1.5; }
.letter h3 { font-family: Oswald, Bahnschrift, sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.letter .legend { font-family: var(--font); }
.letter__sign { font-family: Yellowtail, cursive; font-size: 1.55rem; text-align: right; line-height: 1; }

/* Back issues: past puzzles as a rack of small covers, each in its own day's style. */
.rack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem 0.6rem; }
.mini { display: grid; gap: 0.3rem; text-decoration: none; color: var(--ink); }
.mini__cover { position: relative; aspect-ratio: 0.7; overflow: hidden; container-type: inline-size; border-radius: 2px; background: #222 center 30% / cover no-repeat; box-shadow: 0 10px 18px -10px rgba(27, 34, 54, 0.55), 3px 3px 0 -1px #efe6d4, 3px 3px 0 0 #d4c7ae; transition: transform 0.15s; }
.mini:hover .mini__cover { transform: translateY(-2px) rotate(-1deg); }
.mini__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.mini__mast { position: absolute; left: 0; right: 0; top: 0; padding: 0.2rem 0.15rem 0.25rem; text-align: center; font-size: 14cqi; line-height: 1; white-space: nowrap; overflow: hidden; } /* scales with the little cover, so the name and its ™ fit on any phone */
.mini__no { position: absolute; left: 0.3rem; bottom: 0.3rem; padding: 0.05rem 0.3rem; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; }
.mini__stamp { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-14deg); padding: 0.05rem 0.4rem; border: 3px double #e8362a; border-radius: 4px; background: rgba(255, 255, 255, 0.88); color: #e8362a; font-family: Oswald, sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.mini__flag { position: absolute; right: -1.6rem; top: 1.75rem; width: 6rem; transform: rotate(40deg); background: #e8362a; color: #fff; text-align: center; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.12rem 0; }
.mini__flag--started { background: #b8860b; }
.mini__date { font-size: 0.72rem; font-weight: 700; color: var(--ink-2); }
.mini[data-style="weekly"] .mini__mast { background: #fbf5e9; color: #b3271f; font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; }
.mini[data-style="fifties"] .mini__mast { background: #fdf1e4; color: #e2506f; font-family: Yellowtail, cursive; font-size: 18.4cqi; }
.mini[data-style="sixties"] .mini__mast { background: #1f4fd1; color: #fff; font-family: Righteous, sans-serif; }
.mini[data-style="seventies"] .mini__mast { background: #efe2c4; color: #d9531e; font-family: Shrikhand, serif; font-size: 12.6cqi; }
.mini[data-style="eighties"] .mini__mast { background: #0d0f1f; color: #ffd400; font-family: Bungee, sans-serif; font-size: 12cqi; border-bottom: 2px solid #ffd400; }
.mini[data-style="nineties"] .mini__mast { background: #ff3fa4; color: #fff200; font-family: "Luckiest Guy", sans-serif; text-shadow: 1px 1px 0 #2a0f5c; }
.mini[data-style="noughties"] .mini__mast { background: #ff2d8a; color: #fff; font-family: Anton, sans-serif; text-transform: uppercase; }
.mini[data-style="christmas"] .mini__mast { background: #0f3d2e; color: #f2cf6a; font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; }
.mini[data-style="newyear"] .mini__mast { background: #08080c; color: #f2cf6a; font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; border-bottom: 1px solid #c9a24a; }
.mini[data-style="valentine"] .mini__mast { background: #5e0a1f; color: #ff8fb1; font-family: Shrikhand, serif; font-size: 12.6cqi; }
.mini[data-style="easter"] .mini__mast { background: #e6d3f2; color: #4b2a7a; font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; border-bottom: 2px solid #e2b13c; }
.mini[data-style="july4"] .mini__mast { background: #0a1d3f; color: #fff; font-family: "Abril Fatface", serif; border-bottom: 2px solid #b31942; }
.mini[data-style="halloween"] .mini__mast { background: #12061f; color: #ff9a1f; font-family: Anton, sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
/* Specials in the back issues: a gold band and a gold edge; theme-week days are labelled. */
.mini.is-special .mini__cover { box-shadow: 0 0 0 2px #e2b13c, 0 10px 18px -10px rgba(27, 34, 54, 0.55); }
.mini__gold { position: absolute; left: 0; right: 0; bottom: 1.45rem; padding: 0.12rem 0; text-align: center; background: linear-gradient(180deg, #fff1a8, #e2b13c 50%, #a87a17); color: #3a2500; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mini__week { position: absolute; right: 0.25rem; bottom: 0.3rem; padding: 0.05rem 0.25rem; background: #241309; color: #ffd86b; font-size: 0.48rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.rack__empty { grid-column: 1 / -1; color: var(--ink-2); text-align: center; padding: 1rem 0; font-family: var(--serif); font-style: italic; }

/* Subscriber card: your stats. */
.sub { overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-lift); }
.sub__band { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.6rem 0.9rem; background: linear-gradient(180deg, #c33a2c, #8c1c16); color: #fff8ee; }
.sub__band b { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.3rem; }
.sub__band span { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.sub__body { display: grid; gap: 0.75rem; padding: 0.85rem 0.9rem 0.8rem; }
.sub__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.8rem; margin: 0; font-family: "Courier Prime", var(--mono); font-size: 0.82rem; font-weight: 700; }
.sub__fields dt { font-family: var(--font); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.sub__fields dd { margin: 0.1rem 0 0; padding-bottom: 0.15rem; border-bottom: 1px dotted var(--ink-2); }
.sub .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.sub .stat-grid div { padding: 0.5rem 0.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sub .stat-grid dd { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.7rem; line-height: 1.05; }
.sub__stub { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8rem; padding: 0.85rem 0.9rem 0.9rem; border-top: 2px dashed var(--line); background: var(--surface-2); }
.sub__stub::before { content: "Keep this card"; position: absolute; top: -0.6rem; left: 50%; transform: translateX(-50%); padding: 0 0.4rem; background: var(--surface-2); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.sub__stub .countdown { text-align: left; }
.sub__stub .countdown__time { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; }
.postage { width: 4.6rem; padding: 0.35rem 0.3rem; border: 1.5px solid var(--ink); text-align: center; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.25; }
.postage i { display: block; height: 0.9rem; margin: 0.2rem 0; background: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 3px); opacity: 0.7; }

/* ---- The share picture: share the score as text or as a picture of today's cover ---- */
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.share-row[hidden] { display: none; }
.share-row .btn { padding: 0 0.6rem; gap: 0.4rem; font-size: 0.95rem; white-space: nowrap; }
.share-row:has(> [hidden]) { grid-template-columns: 1fr; }
.btn--quiet { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.btn--quiet:hover { border-color: var(--brass); }
.picture { display: grid; place-items: center; min-height: 12rem; }
.picture__img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(10, 14, 28, 0.6); }
.picture__wait { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
#picture-dialog h2 { font-family: "Playfair Display", var(--serif); font-weight: 900; font-size: 1.9rem; }

/* ---------- Turning the page ----------
   Opening the cover, going from one question to the next (or to the score page), and closing the issue
   again are page turns (Ryan, 2026-11-15: "I was thinking of it flipping like a page"), and the page
   bends like paper, not a board (Ryan, the same day: "more of a paper page physics"). app.js (turnPage)
   lays a copy of the page over it as a sheet of narrow upright strips, .turn, hinged edge to edge, and
   moves them: the free edge lifts first, the curl runs back to the spine, and the page rolls over and
   away. Each strip shows its slice of the page on the front and plain paper on the back, and darkens as
   it tips away from the light. The next page is already underneath, in the sheet's shadow. data-turn on
   <html> says which turn: "open" (the cover opens), "next" (a question turns) or "close" (the cover
   comes back down). Players who ask for less motion get the plain switch.
   Kept light for phones (Ryan: "its a little choppy"): only transform and opacity ever change, so the
   phone's graphics chip does all the moving; nothing that moves is clipped with rounded corners, faded as
   a group or masked, all of which make a phone draw it again off-screen every frame. */
.turn {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  perspective: 2200px;
  /* A cover grows and moves from its top left corner to meet the page under it (app.js, meetOf). */
  transform-origin: 0 0;
}
/* A question's page scrolls with the screen, inside a band as wide as the screen that keeps its curl from
   making the page scroll sideways. Tucked under the top bar if it starts there; otherwise over it. */
.turn-band {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
  overflow: clip;
}
.turn-band[data-tucked] { z-index: 9; }
.turn-band > .turn { position: absolute; }
.turn__strip {
  position: absolute;
  top: 0;
  height: 100%;
  transform-origin: 0 50%;
  will-change: transform;
}
/* The front: the strip's slice of a still copy of the page. The copy never moves and nothing in it gets a
   layer of its own, so the strip is one flat picture. */
.turn__face { position: absolute; inset: 0; overflow: hidden; }
.turn__slice { position: absolute; top: 0; height: 100%; }
.turn__slice > * { width: 100% !important; height: 100% !important; margin: 0 !important; }
.turn__slice *,
.turn__slice *::before,
.turn__slice *::after {
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
/* The back of the page, laid over the front once the strip has turned its back, and thin enough for the
   print to show through faintly: a cover's own paper (each magazine has one, --turn-paper), or plain
   magazine paper for a question's page, a little dimmer in dark mode. It reaches a pixel past the front
   all round, so the front's soft edges never show through it as hairlines. Then how dark the strip is:
   an even shade, and one that deepens toward its spine side or its far side. app.js sets all four. */
.turn__paper,
.turn__shade { position: absolute; inset: 0; opacity: 0; }
.turn__paper { inset: -1px; background: var(--turn-paper, #fbf5e9); }
@supports (color: light-dark(#000, #fff)) {
  .turn__paper { background: var(--turn-paper, light-dark(#fbf5e9, #d6cdbd)); }
}
.turn__strip--spine .turn__paper { border-top-left-radius: var(--turn-radius, 0); border-bottom-left-radius: var(--turn-radius, 0); }
.turn__strip--edge .turn__paper { border-top-right-radius: var(--turn-radius, 0); border-bottom-right-radius: var(--turn-radius, 0); }
.turn__shade { background: #06070f; }
/* --turn-strip is a strip's own width: past it, the part tucked under the next strip keeps the shade of the join. */
.turn__shade--near { background: linear-gradient(90deg, #06070f, rgba(6, 7, 15, 0) var(--turn-strip, 100%), rgba(6, 7, 15, 0)); }
.turn__shade--far { background: linear-gradient(90deg, rgba(6, 7, 15, 0), #06070f var(--turn-strip, 100%), #06070f); }
/* The shadow the lifted sheet throws on the page under it, just ahead of the curl, kept to the page's area. */
.turn__floor { position: absolute; inset: 0; overflow: hidden; }
.turn__shadow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 70%;
  opacity: 0;
  background: linear-gradient(90deg, rgba(6, 8, 18, 0.62), rgba(6, 8, 18, 0.3) 28%, rgba(6, 8, 18, 0.1) 60%, rgba(6, 8, 18, 0));
}
/* Opening on a phone: a strip of the screen's own background over what the question page has below the
   cover, sliding away down the screen as the cover lifts (app.js), so the page seems to lengthen. */
.turn__curtain {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: none;
  background: var(--grain), linear-gradient(rgba(0, 0, 0, 0), var(--bg) 28px);
  will-change: transform;
}
/* The top bar and the links under the cover come in softly. */
html[data-turn="open"] .topbar,
html[data-turn="close"] .cover-actions { animation: turn-in 0.3s ease-out both; }
@keyframes turn-in { from { opacity: 0; } }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 1rem);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Decades ----------
   The stage takes on a decade's painted backdrop (img/eras/, made in Midjourney),
   colours and type as the slider moves (and the real year's after each answer).
   A veil over each backdrop keeps the text readable. The containers keep their
   own colours in every decade.
   Each look keeps its text readable on its own background, in light or dark mode. */

.stage[data-era] { transition: color 0.25s; }

.stage[data-era="1950s"] {
  /* Diner: cream and cherry, mint trim, a checkerboard floor fading in */
  --st-spot: rgba(255, 255, 255, 0.6);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(251, 246, 234, 0.74), rgba(251, 246, 234, 0.6)),
    url("img/eras/1950s.webp") center / cover no-repeat,
    #f1e3c8;
  --st-ink: #2b2420;
  --st-ink-2: #8a2f28;
  --st-accent: #c8352f;
  --st-accent-deep: #8a1f1b;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 252, 244, 0.94);
  --st-panel-ink: #2b2420;
  --st-panel-line: #e0cfc0;
  --st-display: Georgia, "Times New Roman", serif;
  --st-display-style: italic;
}

.stage[data-era="1960s"] {
  /* Mod: big warm dots on butter yellow, plum type */
  --st-spot: rgba(255, 255, 255, 0.5);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(251, 233, 200, 0.74), rgba(251, 233, 200, 0.62)),
    url("img/eras/1960s.webp") center / cover no-repeat,
    #f2a35a;
  --st-ink: #3a1d45;
  --st-ink-2: #7a3466;
  --st-accent: #6d2f86;
  --st-accent-deep: #45195a;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 248, 232, 0.94);
  --st-panel-ink: #3a1d45;
  --st-panel-line: #e7c9a9;
  --st-display: Futura, "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --st-display-weight: 600;
}

.stage[data-era="1970s"] {
  /* Wood panelling under a warm lamp, with an orange-and-brown stripe (the flat
     code-drawn look, painted by Midjourney; a light veil, since the wall is already mid-brown) */
  --st-spot: rgba(255, 196, 120, 0.18);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(38, 22, 9, 0.34), rgba(38, 22, 9, 0.22)),
    url("img/eras/1970s.webp") center / cover no-repeat,
    #3a2412;
  --st-ink: #fff1d6;
  --st-ink-2: #f3cf98;
  --st-accent: #f2a03d;
  --st-accent-deep: #b86a1c;
  --st-accent-ink: #2e1a0b;
  --st-panel: rgba(38, 22, 9, 0.86);
  --st-panel-ink: #fff1d6;
  --st-panel-line: #7a5232;
  --st-display: "Cooper Black", "Cooper Std", "Bookman Old Style", Georgia, serif;
  --st-glow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.stage[data-era="1980s"] {
  /* Hi-fi black: a brushed black stereo front with a red LED meter and chrome trim
     (drawn flat, painted by Midjourney). The picture is already near-black, so the veil
     is faint and neutral; the type glows red like the meter. */
  --st-spot: rgba(255, 60, 40, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.06)),
    url("img/eras/1980s.webp") center / cover no-repeat,
    #141518;
  --st-ink: #f4f1ec;
  --st-ink-2: #d9dde3;
  --st-accent: #ff3d2e;
  --st-accent-deep: #b3261c;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(14, 14, 17, 0.84);
  --st-panel-ink: #f4f1ec;
  --st-panel-line: #4b4f58;
  --st-display: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  --st-display-weight: 900;
  --st-display-style: italic;
  --st-glow: 0 0 6px rgba(255, 61, 46, 0.9), 0 0 16px rgba(255, 61, 46, 0.55);
}

.stage[data-era="1990s"] {
  /* Bubbly: a few confetti dots and squiggle stripes, teal and purple */
  --st-spot: rgba(255, 255, 255, 0.6);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 246, 223, 0.7), rgba(255, 246, 223, 0.55)),
    url("img/eras/1990s.webp") center / cover no-repeat,
    #ffd23a;
  --st-ink: #26145a;
  --st-ink-2: #6a2bd1;
  --st-accent: #6a2bd1;
  --st-accent-deep: #43168f;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 255, 255, 0.94);
  --st-panel-ink: #26145a;
  --st-panel-line: #d5c6f5;
  --st-display: "Comic Sans MS", "Chalkboard SE", "Trebuchet MS", sans-serif;
}

.stage[data-era="2000s"] {
  /* Chrome and glossy aqua, with fine pinstripes */
  --st-spot: rgba(255, 255, 255, 0.7);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(242, 246, 250, 0.74), rgba(242, 246, 250, 0.58)),
    url("img/eras/2000s.webp") center / cover no-repeat,
    #5d9fb0;
  --st-ink: #14263a;
  --st-ink-2: #1c5fa8;
  --st-accent: #1a6fd0;
  --st-accent-deep: #0d4c96;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 255, 255, 0.9);
  --st-panel-ink: #14263a;
  --st-panel-line: #a9b9ca;
  --st-display: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
}

.stage[data-era="2010s"] {
  /* Flat design: solid blocks of colour and thin type */
  --st-spot: rgba(255, 255, 255, 0.1);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(30, 44, 58, 0.62), rgba(30, 44, 58, 0.42)),
    url("img/eras/2010s.webp") center / cover no-repeat,
    #2c3e50;
  --st-ink: #ecf0f1;
  --st-ink-2: #48d1b4;
  --st-accent: #e74c3c;
  --st-accent-deep: #b03224;
  --st-accent-ink: #ffffff;
  --st-panel: #3a526a;
  --st-panel-ink: #ecf0f1;
  --st-panel-line: #5d7790;
  --st-display: "Helvetica Neue", "Segoe UI Light", "Segoe UI", Helvetica, Arial, sans-serif;
  --st-display-weight: 300;
  --st-glow: none;
}

.stage[data-era="2020s"] {
  /* Soft gradients and rounded type */
  --st-spot: rgba(255, 255, 255, 0.6);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(251, 248, 255, 0.6), rgba(251, 248, 255, 0.4)),
    url("img/eras/2020s.webp") center / cover no-repeat,
    #e6d9ef;
  --st-ink: #1d1a2b;
  --st-ink-2: #5b3df5;
  --st-accent: #5b3df5;
  --st-accent-deep: #3a20c4;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 255, 255, 0.82);
  --st-panel-ink: #1d1a2b;
  --st-panel-line: #ddd6f7;
  --st-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Per-category backdrops ----------
   A cell (category + decade) with its own kept picture overrides the decade look above:
   img/eras/<category>-<decade>.webp, listed in core/backdrops.js and made by tools/make-art.py.
   The veil, type and button colours are tuned to each picture. Cells without a picture
   keep the decade's look. The container covers the middle of the stage, so each picture's
   signature sits along its top edge or in its lower third. */

.stage[data-category="movie"][data-era="1950s"] {
  /* Movies 1950s: A cinema marquee with its bulbs lit over a red velvet curtain, reframed (tools/reframe-backdrops.py movie-1950s):
     moved up so the marquee's cream sign board sits behind the kicker, and the curtain squeezed so the stage's lit front edge and
     floor show under the container. Drawn full width from the top; it fades into dark brown. Faint veil, cream type that glows
     like the bulbs, buttons in the marquee gold. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(40, 10, 8, 0.06), rgba(40, 10, 8, 0.06)),
    url("img/eras/movie-1950s.webp") center / cover no-repeat,
    #281a0f;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #fff3dc;
  --st-ink-2: #f3c57a;
  --st-accent: #e2b54a;
  --st-accent-deep: #a67a1c;
  --st-accent-ink: #2b1a08;
  --st-panel: rgba(44, 12, 10, 0.93);
  --st-panel-ink: #fff3dc;
  --st-panel-line: #8a4a3a;
  --st-display: Georgia, "Times New Roman", serif;
  --st-display-weight: 700;
  --st-display-style: italic;
  --st-glow: 0 0 3px #1e0806, 0 0 10px rgba(255, 200, 120, 0.45);
}

/* The kicker sits on the marquee's cream sign board, so it is set in dark ink with no glow, like a title on the sign. */
.stage[data-category="movie"][data-era="1950s"] .stage__kicker {
  color: #4a1a10;
  text-shadow: none;
}

/* The clue sits on the curtain's foot and the stage edge, so it gets a dark label. */
.stage[data-category="movie"][data-era="1950s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(30, 8, 6, 0.82);
}

.stage[data-category="movie"][data-era="1960s"] {
  /* Movies 1960s: Drive-in at dusk: the glowing screen behind the container, a row of tail-finned cars with red tail lights just under it.
     A faint navy veil; cream type with a tail-light glow, tail-light red buttons, a dark navy panel, Futura for the decade. */
  --st-spot: rgba(255, 240, 210, 0.12);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(6, 14, 24, 0.22), rgba(6, 14, 24, 0.1)),
    url("img/eras/movie-1960s.webp") center / cover no-repeat,
    #0c1622;
  --st-ink: #fdf3dc;
  --st-ink-2: #ffb49c;
  --st-accent: #e8473a;
  --st-accent-deep: #9e2219;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(10, 20, 32, 0.88);
  --st-panel-ink: #fdf3dc;
  --st-panel-line: #33506a;
  --st-display: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 10px rgba(255, 90, 70, 0.45);
}

.stage[data-category="movie"][data-era="1970s"] {
  /* Movies 1970s: Film strip, drawn in code as 3D ribbons (tools/draw-filmstrip.py): two lengths of glossy amber 35mm film waving over a
     dark brown wall, one above the container and one under it that ends in a curl. The picture fits the stage's width from the top
     (not cover), so its lanes line up on phones and computers, and the wall colour carries on below it.
     A faint veil; cream type with a dark shadow, amber buttons with dark ink, a dark brown panel, Cooper Black. */
  --st-spot: rgba(255, 190, 110, 0.06);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(20, 10, 4, 0.1), rgba(20, 10, 4, 0.02)),
    url("img/eras/movie-1970s.webp") center / cover no-repeat,
    #1e120b;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #fff1d6;
  --st-ink-2: #ffc27a;
  --st-accent: #f2a03d;
  --st-accent-deep: #b86a1c;
  --st-accent-ink: #2e1a0b;
  --st-panel: rgba(34, 19, 9, 0.9);
  --st-panel-ink: #fff1d6;
  --st-panel-line: #7a5232;
  --st-display: "Cooper Black", "Cooper Std", "Bookman Old Style", Georgia, serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 10px rgba(20, 10, 4, 0.8);
}

.stage[data-category="movie"][data-era="1980s"] {
  /* Movies 1980s: Synthwave, drawn in code (tools/draw-synthwave.py): a big striped sun rising behind the container, the horizon just under it,
     a neon grid around the clue. Pink type on deep purple, buttons in the sun's hot pink. */
  --st-spot: rgba(255, 110, 199, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(20, 10, 44, 0.3), rgba(20, 10, 44, 0.14)),
    url("img/eras/movie-1980s.webp") center / cover no-repeat,
    #17132f;
  --st-ink: #fdf2ff;
  --st-ink-2: #ff7bd5;
  --st-accent: #ff5fb0;
  --st-accent-deep: #a8238a;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(22, 12, 48, 0.84);
  --st-panel-ink: #fdf2ff;
  --st-panel-line: #5a3d8a;
  --st-display: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  --st-display-weight: 900;
  --st-display-style: italic;
  --st-glow: 0 0 8px rgba(255, 110, 199, 0.8), 0 0 18px rgba(255, 110, 199, 0.4);
}

.stage[data-category="movie"][data-era="1990s"] {
  /* Movies 1990s: Tracking noise, drawn in code (tools/draw-vhs.py): a VCR's blue screen with PLAY and its triangle in the top left corner,
     bands of tracking noise above and below the container, a bright flicker line and scan lines. The picture fits the stage's width from
     the top (not cover), so PLAY sits beside the kicker on phones and computers, and the blue carries on below it.
     Pale type with a red and cyan fringe, yellow buttons with deep blue ink, a deep blue panel, a monospace face. */
  --st-spot: rgba(120, 150, 255, 0.05);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(6, 10, 70, 0.06), rgba(6, 10, 70, 0.02)),
    url("img/eras/movie-1990s.webp") center / cover no-repeat,
    #0f199f;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #f4f6ff;
  --st-ink-2: #c8ecff;
  --st-accent: #ffe14a;
  --st-accent-deep: #c79a12;
  --st-accent-ink: #0e1670;
  --st-panel: rgba(6, 10, 70, 0.9);
  --st-panel-ink: #f4f6ff;
  --st-panel-line: #3a48d0;
  --st-display: "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 1.5px 0 0 rgba(255, 40, 90, 0.55), -1.5px 0 0 rgba(40, 220, 255, 0.55), 0 0 8px rgba(8, 12, 90, 0.9);
}

.stage[data-category="movie"][data-era="2000s"] {
  /* Movies 2000s: The bouncing screensaver. The picture is a dark TV screen, drawn in code (tools/draw-movie-2000s.py screen), that
     fits the stage's width from the top; the badge that bounces around it and changes colour is .stage__saver below, moved by
     screensaver.js. White type with a dark edge (the badge passes behind it), pink buttons, a near-black panel. */
  --st-spot: rgba(255, 255, 255, 0.02);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(4, 6, 16, 0.06), rgba(4, 6, 16, 0.02)),
    url("img/eras/movie-2000s.webp") center / cover no-repeat,
    #04050a;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #f4f4fa;
  --st-ink-2: #ff6ac0;
  --st-accent: #ff48b0;
  --st-accent-deep: #b01e74;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(10, 10, 18, 0.92);
  --st-panel-ink: #f4f4fa;
  --st-panel-line: #3a3a52;
  --st-display: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --st-display-weight: 700;
  --st-display-style: italic;
  --st-glow: 0 0 3px #04050a, 0 0 8px #04050a, 0 2px 0 rgba(0, 0, 0, 0.6);
}

/* The screensaver's badge. It sits behind the stage's content, like the brass frame, and shows only on this backdrop.
   The outer box is moved (and carries the glow); the inner one is the badge's shape, filled with the current colour. */
.stage__saver { display: none; }
.stage[data-category="movie"][data-era="2000s"] .stage__saver {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 31%;
  aspect-ratio: 481 / 286;
  transform: translate3d(190%, 18%, 0); /* where it rests until the script takes over */
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--saver, #ff48b0) 55%, transparent));
  will-change: transform;
  pointer-events: none;
}
.stage__saver span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--saver, #ff48b0);
  -webkit-mask: url("img/saver-badge.webp") center / contain no-repeat;
  mask: url("img/saver-badge.webp") center / contain no-repeat;
}

.stage[data-category="movie"][data-era="2010s"] {
  /* Movies 2010s: Blu-ray: a blue light band over slate, the disc rising from the corner. Thin white type, a bright blue button. */
  --st-spot: rgba(120, 180, 255, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(10, 20, 30, 0.28), rgba(10, 20, 30, 0.14)),
    url("img/eras/movie-2010s.webp") center / cover no-repeat,
    #1c242a;
  --st-ink: #eaf2fb;
  --st-ink-2: #7fc4ff;
  --st-accent: #1e90ff;
  --st-accent-deep: #0d5cb6;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(16, 26, 38, 0.84);
  --st-panel-ink: #eaf2fb;
  --st-panel-line: #3a5a7a;
  --st-display: "Helvetica Neue", "Segoe UI Light", "Segoe UI", Helvetica, Arial, sans-serif;
  --st-display-weight: 300;
  --st-display-style: normal;
  --st-glow: 0 0 8px rgba(80, 160, 255, 0.6);
}

.stage[data-category="movie"][data-era="2020s"] {
  /* Movies 2020s: An LED volume stage: a curved wall of pixels in pink and plum over a dark studio floor. Rounded type, a hot-pink button. */
  --st-spot: rgba(255, 90, 150, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(20, 8, 14, 0.34), rgba(20, 8, 14, 0.16)),
    url("img/eras/movie-2020s.webp") center / cover no-repeat,
    #311f22;
  --st-ink: #fff0f4;
  --st-ink-2: #ff8ab0;
  --st-accent: #ff3f7a;
  --st-accent-deep: #b01f52;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(30, 12, 20, 0.86);
  --st-panel-ink: #fff0f4;
  --st-panel-line: #6a2a44;
  --st-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 8px rgba(255, 80, 140, 0.6);
}

.stage[data-category="song"][data-era="1950s"] {
  /* Music 1950s: A chrome-and-cherry jukebox, lit from inside. A warm dark veil, cream type with an amber glow, cherry-red buttons. */
  --st-spot: rgba(255, 180, 90, 0.16);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(40, 20, 10, 0.44), rgba(40, 20, 10, 0.3)),
    url("img/eras/song-1950s.webp") center / cover no-repeat,
    #5f2f1d;
  --st-ink: #fff1d6;
  --st-ink-2: #ffd27a;
  --st-accent: #e23b2e;
  --st-accent-deep: #9b1f17;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(40, 20, 10, 0.86);
  --st-panel-ink: #fff1d6;
  --st-panel-line: #8a5a3a;
  --st-display: Georgia, "Times New Roman", serif;
  --st-display-weight: 700;
  --st-display-style: italic;
  --st-glow: 0 0 8px rgba(255, 170, 80, 0.45);
}

.stage[data-category="song"][data-era="1960s"] {
  /* Music 1960s: A record on a cream-and-orange swirl, at full colour: the cream wash that paled it is all but gone (Ryan:
     the colours were too light). Dark brown type, the swirl's orange on the buttons. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(248, 236, 214, 0.05), rgba(248, 236, 214, 0.05)),
    url("img/eras/song-1960s.webp") center / cover no-repeat,
    #c46d54;
  --st-ink: #2b2118;
  --st-ink-2: #c8491f;
  --st-accent: #ee6139;
  --st-accent-deep: #b23a18;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 248, 234, 0.94);
  --st-panel-ink: #2b2118;
  --st-panel-line: #e3c7a3;
  --st-display: Futura, "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --st-display-weight: 600;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The kicker sits on the swirl and the clue on the record, so both get a cream label. */
.stage[data-category="song"][data-era="1960s"] .stage__kicker,
.stage[data-category="song"][data-era="1960s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.94);
}

.stage[data-category="song"][data-era="1970s"] {
  /* Music 1970s: Disco, drawn in code (tools/draw-disco.py): a truss of amber and red stage lamps, a mirror ball at the top left and a lit
     dance floor in perspective. The picture fits the stage's width from the top (not cover), so its lanes line up on phones and computers,
     and the dark colour carries on below it. A faint veil; gold kicker, cream type with a dark shadow, hot-pink buttons, a deep violet
     panel, Cooper Black. */
  --st-spot: rgba(255, 120, 200, 0.05);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(10, 6, 20, 0.08), rgba(10, 6, 20, 0.02)),
    url("img/eras/song-1970s.webp") center / cover no-repeat,
    #0a0714;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #fff3e6;
  --st-ink-2: #ffd166;
  --st-accent: #ff4fa3;
  --st-accent-deep: #b31e6b;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(20, 10, 36, 0.9);
  --st-panel-ink: #fff3e6;
  --st-panel-line: #5b3a86;
  --st-display: "Cooper Black", "Cooper Std", "Bookman Old Style", Georgia, serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 8px rgba(8, 4, 18, 0.95), 0 0 16px rgba(8, 4, 18, 0.8);
}

/* The clue sits over the lit dance floor, so it gets a soft dark pill. */
.stage[data-category="song"][data-era="1970s"] .stage__clue {
  justify-self: center;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 6, 24, 0.62);
  box-shadow: 0 0 12px rgba(12, 6, 24, 0.5);
}

.stage[data-category="song"][data-era="1980s"] {
  /* Music 1980s: Hi-fi black with the red LED meter (the "more glow" render). Near-black already, so a faint neutral veil; red-glowing type and chrome-silver kicker. */
  --st-spot: rgba(255, 60, 40, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.06)),
    url("img/eras/song-1980s.webp") center / cover no-repeat,
    #141518;
  --st-ink: #f4f1ec;
  --st-ink-2: #d9dde3;
  --st-accent: #ff3d2e;
  --st-accent-deep: #b3261c;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(14, 14, 17, 0.84);
  --st-panel-ink: #f4f1ec;
  --st-panel-line: #4b4f58;
  --st-display: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  --st-display-weight: 900;
  --st-display-style: italic;
  --st-glow: 0 0 6px rgba(255, 61, 46, 0.9), 0 0 16px rgba(255, 61, 46, 0.55);
}

.stage[data-category="song"][data-era="1990s"] {
  /* Music 1990s: A compact disc throwing its rainbow over slate blue. Dark veil, pale type, a violet button from the disc's sheen. */
  --st-spot: rgba(180, 200, 255, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(20, 22, 40, 0.44), rgba(20, 22, 40, 0.3)),
    url("img/eras/song-1990s.webp") center / cover no-repeat,
    #4e658d;
  --st-ink: #f0f1ff;
  --st-ink-2: #9fd0ff;
  --st-accent: #8f5cff;
  --st-accent-deep: #5a2fc4;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(24, 26, 46, 0.86);
  --st-panel-ink: #f0f1ff;
  --st-panel-line: #4a4f7a;
  --st-display: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 6px rgba(160, 200, 255, 0.5);
}

.stage[data-category="song"][data-era="2000s"] {
  /* Music 2000s: A graphic equaliser: cyan LED bars on black glass. Faint veil, LED-cyan type in a monospace face, teal buttons. */
  --st-spot: rgba(87, 203, 204, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(0, 10, 14, 0.32), rgba(0, 10, 14, 0.16)),
    url("img/eras/song-2000s.webp") center / cover no-repeat,
    #1f4c45;
  --st-ink: #e6fbff;
  --st-ink-2: #a6f4f5;
  --st-accent: #19c3c9;
  --st-accent-deep: #0d8a90;
  --st-accent-ink: #04272a;
  --st-panel: rgba(4, 20, 24, 0.86);
  --st-panel-ink: #e6fbff;
  --st-panel-line: #1f6366;
  --st-display: "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 8px rgba(87, 203, 204, 0.8);
}

.stage[data-category="song"][data-era="2010s"] {
  /* Music 2010s: A festival stage: an LED wall and lasers over a navy crowd. Thin white type, a magenta button like the lasers. (The duotone poster is the other keep.) */
  --st-spot: rgba(120, 160, 255, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(8, 12, 34, 0.32), rgba(8, 12, 34, 0.16)),
    url("img/eras/song-2010s.webp") center / cover no-repeat,
    #121738;
  --st-ink: #f2f4ff;
  --st-ink-2: #8fb4ff;
  --st-accent: #e94fd0;
  --st-accent-deep: #a3238f;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(10, 14, 40, 0.86);
  --st-panel-ink: #f2f4ff;
  --st-panel-line: #3b4a8a;
  --st-display: "Helvetica Neue", "Segoe UI Light", "Segoe UI", Helvetica, Arial, sans-serif;
  --st-display-weight: 300;
  --st-display-style: normal;
  --st-glow: 0 0 8px rgba(120, 160, 255, 0.6);
}

.stage[data-category="song"][data-era="2020s"] {
  /* Music 2020s: A record on a turntable under a peach sunset, with the turntable raised (tools/raise-turntable.py) so the record's
     label, spindle and grooves show between the cassette and the clue; before, the record lay under the year panel. The picture
     fits the stage's width from the top (not cover) and fades to a dark plum under the record, which carries on behind the year
     panel. Faint veil, plum type, a coral kicker, coral buttons, a cream panel. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 236, 226, 0.06), rgba(255, 236, 226, 0.06)),
    url("img/eras/song-2020s.webp") center / cover no-repeat,
    #261c2a;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #3a2230;
  --st-ink-2: #b63a22;
  --st-accent: #e65a3c;
  --st-accent-deep: #b63a22;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 246, 240, 0.95);
  --st-panel-ink: #3a2230;
  --st-panel-line: #f0c9b8;
  --st-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The clue lies on the record, so it gets a cream label. */
.stage[data-category="song"][data-era="2020s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 246, 240, 0.92);
}

.stage[data-category="game"][data-era="1950s"] {
  /* Games 1950s: Oscilloscope, drawn in code (tools/draw-oscilloscope.py): the stage is the scope's green phosphor screen, with a grid,
     a ground line and net, and a bouncing-ball trace over the container to a bright ball at the top right (a nod to Tennis for Two).
     A faint veil; pale green type with a phosphor glow, green buttons with dark ink, a dark green panel, a typewriter face. */
  --st-spot: rgba(80, 255, 130, 0.06);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(0, 10, 4, 0.12), rgba(0, 10, 4, 0.04)),
    url("img/eras/game-1950s.webp") center / cover no-repeat,
    #04100a;
  --st-ink: #dcffe6;
  --st-ink-2: #7dffa8;
  --st-accent: #3ddc72;
  --st-accent-deep: #1e8a45;
  --st-accent-ink: #03140a;
  --st-panel: rgba(4, 18, 10, 0.88);
  --st-panel-ink: #dcffe6;
  --st-panel-line: #1f5a36;
  --st-display: "Courier New", Courier, monospace;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 8px rgba(80, 255, 130, 0.7);
}

.stage[data-category="game"][data-era="1960s"] {
  /* Games 1960s: Pinball, drawn in code and lit like a photograph (tools/draw-pinball-real.py): an arched steel rail with lamps, pop
     bumpers with lit domed caps, stars, slingshots and flippers raised to just above the year panel, on a lacquered cream playfield
     in a dim arcade light. Hardly any veil; dark ink, cherry buttons, a cream panel, Futura. */
  --st-spot: rgba(255, 250, 235, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.04)),
    url("img/eras/game-1960s.webp") center / cover no-repeat,
    #c8322a;
  --st-ink: #2a1712;
  --st-ink-2: #b8322a;
  --st-accent: #c8322a;
  --st-accent-deep: #8c1c1a;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 248, 234, 0.94);
  --st-panel-ink: #2a1712;
  --st-panel-line: #e2c9a0;
  --st-display: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* The kicker sits on the rollover lanes and the clue on the flippers and stars, so both get a cream label. */
.stage[data-category="game"][data-era="1960s"] .stage__kicker,
.stage[data-category="game"][data-era="1960s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.94);
}

.stage[data-category="game"][data-era="1970s"] {
  /* Games 1970s: A wood-panel TV set, moved up a little (tools/reframe-backdrops.py game-1970s). The picture fits the stage's width
     from the top (not cover), so the whole set shows: the container stands in front of its screen with the wood sides round it,
     and the speaker grille shows under the container on a phone. The wall goes dim toward the top, behind the kicker, and the
     floor fades to dark brown. Faint veil, cream type with a dark outline, orange buttons, a brown panel. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(38, 22, 9, 0.06), rgba(38, 22, 9, 0.06)),
    url("img/eras/game-1970s.webp") center / cover no-repeat,
    #28140b;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #fff1d6;
  --st-ink-2: #f3cf98;
  --st-accent: #f2a03d;
  --st-accent-deep: #b86a1c;
  --st-accent-ink: #2e1a0b;
  --st-panel: rgba(38, 22, 9, 0.93);
  --st-panel-ink: #fff1d6;
  --st-panel-line: #7a5232;
  --st-display: "Cooper Black", "Cooper Std", "Bookman Old Style", Georgia, serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 3px #1c0d05, 0 2px 0 rgba(0, 0, 0, 0.45);
}

/* The clue lies on the set's frame and grille, so it gets a dark label. */
.stage[data-category="game"][data-era="1970s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(38, 22, 9, 0.86);
}

.stage[data-category="game"][data-era="1980s"] {
  /* Games 1980s: Arcade carpet, drawn in code (tools/draw-carpet.py): clean neon shapes on black to every edge, under a pink-and-cyan light strip.
     Barely veiled; cyan type with a double glow, hot-pink buttons, a pixel-ish monospace face. */
  --st-spot: rgba(93, 242, 255, 0.1);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.08)),
    url("img/eras/game-1980s.webp") center / cover no-repeat,
    #07070d;
  --st-ink: #f4f1ff;
  --st-ink-2: #5df2ff;
  --st-accent: #ff2fb0;
  --st-accent-deep: #b0126f;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(10, 6, 20, 0.86);
  --st-panel-ink: #f4f1ff;
  --st-panel-line: #4a2a6a;
  --st-display: "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 6px rgba(93, 242, 255, 0.8), 0 0 14px rgba(255, 47, 176, 0.5);
}

.stage[data-category="game"][data-era="1990s"] {
  /* Games 1990s: A pixel platformer with the ground raised (tools/reframe-backdrops.py game-1990s): blocky clouds and a sun on top,
     then bushes, grass and bricks brought up so the container stands on the grass and the bricks run under the clue; before,
     the ground lay under the year panel. The picture fits the stage's width from the top (not cover) and its bricks fade to a
     brick colour, which carries on below. Faint veil, navy type, a brown kicker, brick-orange buttons, a white panel. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(230, 246, 255, 0.06), rgba(230, 246, 255, 0.06)),
    url("img/eras/game-1990s.webp") center / cover no-repeat,
    #c46034;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #1b2a4a;
  --st-ink-2: #9a4a20;
  --st-accent: #d16b37;
  --st-accent-deep: #9a4a20;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 255, 255, 0.94);
  --st-panel-ink: #1b2a4a;
  --st-panel-line: #bfe0f0;
  --st-display: "Comic Sans MS", "Chalkboard SE", "Trebuchet MS", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* The clue lies on the bricks, so it gets a white label. */
.stage[data-category="game"][data-era="1990s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.stage[data-category="game"][data-era="2000s"] {
  /* Games 2000s: Translucent indigo, reframed (tools/reframe-backdrops.py game-2000s): the dark middle squeezed so the circuit
     traces run beside and under the container instead of under the year panel; the light bar along the top and down the left
     stays. Drawn full width from the top; it fades into deep blue. Faint veil, ice-white type, an electric-blue button. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(2, 10, 40, 0.06), rgba(2, 10, 40, 0.06)),
    url("img/eras/game-2000s.webp") center / cover no-repeat,
    #08285c;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #e8f0ff;
  --st-ink-2: #6fb6ff;
  --st-accent: #2d8cff;
  --st-accent-deep: #0f56b8;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(6, 22, 60, 0.93);
  --st-panel-ink: #e8f0ff;
  --st-panel-line: #2a4e8a;
  --st-display: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 3px #020a28, 0 0 8px rgba(80, 160, 255, 0.6);
}

/* The kicker sits on the light bar and the clue on the circuits, so both get a dark label. */
.stage[data-category="game"][data-era="2000s"] .stage__kicker,
.stage[data-category="game"][data-era="2000s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 22, 60, 0.86);
}

.stage[data-category="game"][data-era="2010s"] {
  /* Games 2010s: A match-three phone game, drawn in code (tools/draw-game-2010s-2020s.py match3): a board of glossy gems eight
     across on teal-to-violet rays, a slim bar on top for the level, the score's stars and the moves left, and a T of five yellow
     gems bursting under the container. Our own gems and colours, not any real game's. The picture fits the stage's width from the
     top (not cover), so the board frames the container on phones and computers, and its violet carries on below it. White type,
     a gold kicker, orange buttons, a deep blue panel, a rounded face. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(20, 10, 60, 0.03), rgba(20, 10, 60, 0.03)),
    url("img/eras/game-2010s.webp") center / cover no-repeat,
    #583096;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #ffffff;
  --st-ink-2: #ffe36a;
  --st-accent: #ff8a1f;
  --st-accent-deep: #c9560a;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(30, 24, 92, 0.93);
  --st-panel-ink: #ffffff;
  --st-panel-line: #7f8cff;
  --st-display: "Arial Rounded MT Bold", "Trebuchet MS", Verdana, sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 3px #1a1250, 0 0 8px #1a1250, 0 2px 0 rgba(10, 6, 50, 0.7);
}

/* The clue lies over the gems, so it gets a dark label. */
.stage[data-category="game"][data-era="2010s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(22, 18, 70, 0.85);
}

.stage[data-category="game"][data-era="2020s"] {
  /* Games 2020s: An RGB keyboard close up, drawn in code (tools/draw-game-2010s-2020s.py keyboard): raised keycaps seen from just
     above the desk, a few big keys in focus, the rows running away to the top right, every key with a lit edge and light shining
     out round its foot, green nearest through teal and blue to violet and pink far away, soft lights of the room above. The
     picture fits the stage's width from the top (not cover), and its near-black carries on below it. Ice-white type, a cyan
     kicker, cyan buttons, a near-black panel, a narrow technical face. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(4, 4, 10, 0.05), rgba(4, 4, 10, 0.05)),
    url("img/eras/game-2020s.webp") center / cover no-repeat,
    #07070c;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #f4f6ff;
  --st-ink-2: #5ef0ff;
  --st-accent: #00d8ff;
  --st-accent-deep: #008fb0;
  --st-accent-ink: #04121a;
  --st-panel: rgba(8, 8, 14, 0.93);
  --st-panel-ink: #f4f6ff;
  --st-panel-line: #33384d;
  --st-display: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 3px #04040a, 0 0 8px #04040a;
}

/* The clue lies over the lit keys, so it gets a dark label. */
.stage[data-category="game"][data-era="2020s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 6, 12, 0.82);
}

.stage[data-category="toy"][data-era="1950s"] {
  /* Toys 1950s: A riveted tin toy, reframed (tools/reframe-backdrops.py toy-1950s): plain cream cut out, six rivets tall, so the
     red and white stripes start under the middle and run behind the toy box and the clue. Drawn full width from the top; it
     fades to cream. Faint veil, navy type, a tin-red button. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 250, 236, 0.06), rgba(255, 250, 236, 0.06)),
    url("img/eras/toy-1950s.webp") center / cover no-repeat,
    #f0e1bf;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #2b2a3a;
  --st-ink-2: #84373f;
  --st-accent: #b8323a;
  --st-accent-deep: #7a1f28;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 252, 244, 0.95);
  --st-panel-ink: #2b2a3a;
  --st-panel-line: #e2cfa6;
  --st-display: Rockwell, "Roboto Slab", Georgia, serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The kicker sits on the navy star band and the clue on the stripes, so both get a cream label. */
.stage[data-category="toy"][data-era="1950s"] .stage__kicker,
.stage[data-category="toy"][data-era="1950s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.94);
}

.stage[data-category="toy"][data-era="1960s"] {
  /* Toys 1960s: Balls, marbles and jacks on a checked kitchen floor, drawn in code (tools/draw-toy-60s-drafts.py floor): swirled
     bouncy balls, glass marbles, jacks, a yo-yo and a spinning top round the toy box. Drawn full width from the top; it fades to
     pale aqua. Hardly any veil, slate type, red buttons, a cream panel, Cooper Black. The rings and daisies it replaced are
     shelved, not deleted (images/backdrop-toy-1960s.png). */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 250, 240, 0.03), rgba(255, 250, 240, 0.03)),
    url("img/eras/toy-1960s.webp") center / cover no-repeat,
    #bed5c5;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #23323a;
  --st-ink-2: #b82a26;
  --st-accent: #d8302c;
  --st-accent-deep: #9a1c1a;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 250, 240, 0.94);
  --st-panel-ink: #23323a;
  --st-panel-line: #b9d6cf;
  --st-display: "Cooper Black", "Bookman Old Style", Georgia, serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The kicker sits among the toys at the top and the clue among those at the foot of the toy box, so both get a cream label. */
.stage[data-category="toy"][data-era="1960s"] .stage__kicker,
.stage[data-category="toy"][data-era="1960s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
}

.stage[data-category="toy"][data-era="1970s"] {
  /* Toys 1970s: Wooden blocks: towers of worn painted blocks against a pine wall, an arch, triangles and a red ball on a pine floor,
     a red and yellow stripe along the top. The picture fits the stage's width from the top (not cover), so the toy box stands between
     the towers on phones and computers, and the floor colour carries on below it. Dark brown type, block-red buttons, a cream panel,
     Cooper Black. */
  --st-spot: rgba(255, 250, 235, 0.14);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 248, 234, 0.04), rgba(255, 248, 234, 0.02)),
    url("img/eras/toy-1970s.webp") center / cover no-repeat,
    #c18143;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #2e1a0e;
  --st-ink-2: #a3221b;
  --st-accent: #d4322a;
  --st-accent-deep: #8f1c16;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 248, 234, 0.94);
  --st-panel-ink: #2e1a0e;
  --st-panel-line: #d9b98a;
  --st-display: "Cooper Black", "Cooper Std", "Bookman Old Style", Georgia, serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 244, 220, 0.8);
}

/* The kicker sits on the red and yellow stripe and the clue over the blocks on the floor, so both get a cream label. */
.stage[data-category="toy"][data-era="1970s"] .stage__kicker,
.stage[data-category="toy"][data-era="1970s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 246, 226, 0.9);
  box-shadow: 0 2px 0 rgba(90, 40, 10, 0.3);
}

.stage[data-category="toy"][data-era="1980s"] {
  /* Toys 1980s: Laser box, drawn in code (tools/draw-laserbox.py): 1980s action-toy box art. A burst of light behind the toy box, blue and
     red lasers crossing from the top corners, a chrome stripe and an orange grid floor, on black. The picture fits the stage's width from
     the top (not cover), so the burst frames the toy box on phones and computers, and black carries on below it.
     Cream type with an orange glow, a yellow kicker, orange-red buttons, a near-black panel, heavy italic sans. */
  --st-spot: rgba(255, 160, 60, 0.05);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(5, 4, 12, 0.1), rgba(5, 4, 12, 0.02)),
    url("img/eras/toy-1980s.webp") center / cover no-repeat,
    #05040c;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #fff6e0;
  --st-ink-2: #ffd23c;
  --st-accent: #ff5a1f;
  --st-accent-deep: #b3300c;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(10, 8, 18, 0.9);
  --st-panel-ink: #fff6e0;
  --st-panel-line: #6a3c1c;
  --st-display: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  --st-display-weight: 900;
  --st-display-style: italic;
  --st-glow: 0 0 8px rgba(255, 120, 40, 0.8), 0 2px 0 rgba(0, 0, 0, 0.6);
}

.stage[data-category="toy"][data-era="1990s"] {
  /* Toys 1990s: Slime, reframed (tools/reframe-backdrops.py toy-1990s): plain purple wall cut out under the drips, so the toy
     box stands in the slime puddle. Drawn full width from the top; it fades into dark purple. Faint veil, pale type with a
     green glow, slime-green buttons with dark ink. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(40, 20, 70, 0.06), rgba(40, 20, 70, 0.06)),
    url("img/eras/toy-1990s.webp") center / cover no-repeat,
    #3e2460;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #f4ecff;
  --st-ink-2: #9cff3a;
  --st-accent: #78de1b;
  --st-accent-deep: #3f9a0a;
  --st-accent-ink: #10260a;
  --st-panel: rgba(40, 22, 70, 0.93);
  --st-panel-ink: #f4ecff;
  --st-panel-line: #6a4a9a;
  --st-display: "Comic Sans MS", "Chalkboard SE", "Trebuchet MS", sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 3px #1c0d33, 0 0 8px rgba(120, 222, 27, 0.5);
}

/* The kicker sits on green slime and the clue on the puddle, so both get a dark label. */
.stage[data-category="toy"][data-era="1990s"] .stage__kicker,
.stage[data-category="toy"][data-era="1990s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(40, 22, 70, 0.9);
}

.stage[data-category="toy"][data-era="2000s"] {
  /* Toys 2000s: Shaped rubber bands, drawn in code (tools/draw-toy-2000s.py bands): the late-2000s wristband craze. Neon bands shaped
     like animals and objects piled down both sides of a page of school notebook paper, a row of small ones over the toy box, a pencil
     under the pile. The picture fits the stage's width from the top (not cover), so the piles frame the toy box on phones and
     computers, and the paper colour carries on below it. Navy pen-ink type, a pink kicker, pink buttons, a white panel, a rounded
     handwriting face. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    url("img/eras/toy-2000s.webp") center / cover no-repeat,
    #f7f5ee;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #1d2a5c;
  --st-ink-2: #d81b84;
  --st-accent: #ff3c96;
  --st-accent-deep: #c01868;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 255, 255, 0.95);
  --st-panel-ink: #1d2a5c;
  --st-panel-line: #a8c6e8;
  --st-display: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Segoe Print", cursive;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stage[data-category="toy"][data-era="2010s"] {
  /* Toys 2010s: Pastel toy shapes in pink and mint. Light veil, soft plum type, a dusty-pink button. */
  --st-spot: rgba(255, 255, 255, 0.5);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(255, 245, 245, 0.4), rgba(255, 245, 245, 0.26)),
    url("img/eras/toy-2010s.webp") center / cover no-repeat,
    #dbc9c7;
  --st-ink: #3a2a3a;
  --st-ink-2: #8a3d52;
  --st-accent: #cf5d74;
  --st-accent-deep: #9e3a52;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(255, 255, 255, 0.86);
  --st-panel-ink: #3a2a3a;
  --st-panel-line: #f0d8da;
  --st-display: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --st-display-weight: 600;
  --st-display-style: normal;
  --st-glow: none;
}

.stage[data-category="toy"][data-era="2020s"] {
  /* Toys 2020s: A claw machine, reframed (tools/reframe-backdrops.py toy-2020s): the dark glass squeezed so the toy box sits in
     the plush pile like a prize. Drawn full width from the top; it fades into dark purple. Faint veil, pale type, a neon-pink
     button. */
  --st-spot: rgba(255, 255, 255, 0);
  --st-bg:
    radial-gradient(ellipse 70% 45% at 50% 30%, var(--st-spot), transparent 70%),
    linear-gradient(rgba(20, 8, 30, 0.06), rgba(20, 8, 30, 0.06)),
    url("img/eras/toy-2020s.webp") center / cover no-repeat,
    #281b41;
  /* One size and position per layer (spot, veil, picture), in place of the stage's cover and center. */
  background-size: cover, cover, 100% auto;
  background-position: center, center, top center;
  --st-ink: #fff0fb;
  --st-ink-2: #ff7ae0;
  --st-accent: #ff4fc8;
  --st-accent-deep: #b31f8a;
  --st-accent-ink: #ffffff;
  --st-panel: rgba(28, 14, 44, 0.93);
  --st-panel-ink: #fff0fb;
  --st-panel-line: #5a3a7a;
  --st-display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --st-display-weight: 700;
  --st-display-style: normal;
  --st-glow: 0 0 3px #14081e, 0 0 8px rgba(255, 79, 200, 0.5);
}

/* The kicker sits on the pink neon tube and the clue on the plush, so both get a dark label. */
.stage[data-category="toy"][data-era="2020s"] .stage__kicker,
.stage[data-category="toy"][data-era="2020s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(28, 14, 44, 0.88);
}

/* ---------- Tuning pass, 2026-11-14: every backdrop checked at phone and computer size with the day's containers. These
   put a label behind type that sat on a busy or same-coloured part of its picture. ---------- */

/* Movies 1960s: on a phone the clue lies across the parked cars and their tail lights. */
.stage[data-category="movie"][data-era="1960s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 16, 26, 0.78);
}

/* Music 1950s: the clue lies across the jukebox's chrome grille. */
.stage[data-category="song"][data-era="1950s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(30, 14, 8, 0.8);
}

/* Music 1970s: the kicker runs into the stage lamps and the clue lies on the lit floor; the clue's first pill was too faint. */
.stage[data-category="song"][data-era="1970s"] .stage__kicker,
.stage[data-category="song"][data-era="1970s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 7, 28, 0.8);
  box-shadow: none;
}

/* Music 2000s: the teal kicker vanished on the blue waveform display, and the clue lies across the equaliser bars. */
.stage[data-category="song"][data-era="2000s"] .stage__kicker,
.stage[data-category="song"][data-era="2000s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(3, 16, 20, 0.82);
}

/* Music 2010s: the kicker lies on the wall of coloured lights. */
.stage[data-category="song"][data-era="2010s"] .stage__kicker {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 10, 32, 0.8);
}

/* Games 1970s: the pale kicker was hard to read on the cream wall above the set. */
.stage[data-category="game"][data-era="1970s"] .stage__kicker {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(38, 22, 9, 0.86);
}

/* Games 1980s: the clue lies across the carpet's neon squiggles. */
.stage[data-category="game"][data-era="1980s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 5, 18, 0.8);
}

/* Games 1990s: the brown kicker was faint on the sky and ran into a cloud. */
.stage[data-category="game"][data-era="1990s"] .stage__kicker {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

/* Toys 1980s: the laser beams cross behind the kicker and the clue. */
.stage[data-category="toy"][data-era="1980s"] .stage__kicker,
.stage[data-category="toy"][data-era="1980s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 6, 16, 0.8);
}

/* Toys 2000s: on a phone the rubber bands crowd the kicker and the clue. */
.stage[data-category="toy"][data-era="2000s"] .stage__kicker,
.stage[data-category="toy"][data-era="2000s"] .stage__clue {
  justify-self: center;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
}

@media (min-width: 40rem) {
  .page { padding-top: 1.6rem; gap: 1.35rem; }
  .stage { padding: 1.9rem 1.8rem 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Friend groups (friends.js, 2026-11-15) ----------
   From draft 1 (the vault's Design/groups-draft/). Friends is one sheet whose body changes: your groups as a
   magazine's staff box (the subscriber card's look), starting and joining, inviting, settings. Also the line
   under the cover and "Your friends today" on the score page. */

#friends-dialog h2 { flex: 1; min-width: 0; font-family: "Playfair Display", var(--serif); font-weight: 900; font-size: 1.9rem; line-height: 1.15; overflow-wrap: anywhere; }
.friends-sheet .sheet__head { gap: 0.25rem; }
.friends-back { margin-left: -0.6rem; }
.friends-body { display: grid; gap: 1rem; min-width: 0; }
.friends-form { display: grid; gap: 0.9rem; }
.friends-center { justify-self: center; text-align: center; }

/* Name discs: the first letter of each name, in one of five colours. */
.disc { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; color: #fff8ee; font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.05rem; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.disc--1 { background: #b3271f; }
.disc--2 { background: #1f3a6b; }
.disc--3 { background: #9a7416; }
.disc--4 { background: #2f7d4f; }
.disc--5 { background: #6b3a8c; }
.disc--sm { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
.discs { display: inline-flex; flex: none; }
.discs:empty { display: none; }
.discs .disc { margin-left: -0.25rem; box-shadow: 0 0 0 2px var(--bg); }
.discs .disc:first-child { margin-left: 0; }

/* Under the cover: who in your group has filed today. */
.cover-friends { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cover-friends:hover { border-color: var(--brass); }
.cover-friends__text { flex: 1; min-width: 0; font-family: var(--serif); font-size: 0.92rem; line-height: 1.3; }
.cover-friends__text small { display: block; font-family: var(--font); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-friends > svg { color: var(--accent); }

/* Group tabs. */
.tabs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin: 0 -0.2rem; padding: 0.15rem 0.2rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab--new { color: var(--accent); border-style: dashed; }

/* The staff box. */
.staff .sub__band b { font-size: 1.45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff .sub__band span { flex: none; }
.staff__week { display: flex; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px dotted var(--ink-2); font-family: "Courier Prime", var(--mono); font-weight: 700; font-size: 0.8rem; }
.staff__list { list-style: none; margin: 0; padding: 0; display: grid; }
.staff__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.staff__row:last-child { border-bottom: 0; }
.staff__row.is-you { margin: 0 -0.9rem; padding-left: 0.9rem; padding-right: 0.9rem; background: color-mix(in srgb, var(--brass) 14%, transparent); }
.staff__who { display: grid; gap: 0.05rem; min-width: 0; }
.staff__name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere; }
.staff__name em { font-style: normal; font-family: var(--font); font-size: 0.7rem; font-weight: 700; color: var(--ink-2); }
.staff__title { font-family: Oswald, Bahnschrift, sans-serif; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.staff__title--plain { color: var(--ink-2); }
.staff__meta { font-size: 0.72rem; color: var(--ink-2); }
.staff__today { display: grid; justify-items: end; gap: 0.1rem; text-align: right; }
.staff__score { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.65rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.staff__filed { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; font-weight: 800; color: var(--exact); --on-band: var(--surface); }
.staff__filed svg { width: 1rem; height: 1rem; }
.staff__hidden { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.4rem; letter-spacing: 0.08em; color: var(--line); line-height: 1; }
.staff__waiting { font-family: var(--serif); font-style: italic; font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; }
.chips { display: flex; gap: 0.2rem; margin-top: 0.1rem; }
.chip { display: inline-grid; place-items: center; min-width: 1.45rem; padding: 0.08rem 0.18rem; border-radius: 5px; background: var(--band-soft); color: var(--band); font-size: 0.66rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.staff .sub__stub { grid-template-columns: auto 1fr; }
.staff .sub__stub::before { content: "Last week"; }
.laurel { font-family: var(--serif); font-size: 0.95rem; line-height: 1.35; }
.laurel b { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; }

/* "File today's issue to see how they scored." */
.peek { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.peek p { font-family: var(--serif); font-style: italic; font-size: 0.95rem; line-height: 1.3; }
.peek .btn { min-height: 2.4rem; padding: 0 1rem; font-size: 0.88rem; }

/* The week, Sunday to Saturday: the seven magazines. */
.week { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; font-size: 0.76rem; }
.week th { padding: 0.25rem 0; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.week th:first-child { width: 4.4rem; text-align: left; }
.week th:last-child { width: 2.6rem; }
.week td { padding: 0.32rem 0; text-align: center; border-top: 1px solid var(--line); }
.week td:first-child { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week td:last-child, .week th:last-child { text-align: right; }
.week td:last-child { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 0.98rem; }
.week .is-today { background: color-mix(in srgb, var(--brass) 16%, transparent); }
.week .miss { color: var(--line); }
.week tr.is-you td:first-child { color: var(--accent); }

.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sheet-actions .btn { padding: 0 0.6rem; font-size: 0.92rem; white-space: nowrap; }

/* Forms: starting, joining, settings. */
.field { display: grid; gap: 0.35rem; }
.field label { font: 700 0.72rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.field input, .inline-row input { width: 100%; min-width: 0; min-height: 3rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-family: var(--serif); font-size: 1.1rem; }
.field input:focus, .inline-row input:focus { border-color: var(--ink-2); }
.field input.is-code { font-family: "Courier Prime", var(--mono); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.field .hint { font-size: 0.78rem; }
.promise { display: grid; gap: 0.35rem; margin: 0; padding: 0.75rem 0.9rem; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 0.85rem; line-height: 1.35; }
.promise li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.45rem; align-items: start; }
.promise svg { width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; color: var(--exact); --on-band: var(--surface-2); }
button[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* The invite code, letter by letter. */
.invite-code { display: flex; justify-content: center; gap: 0.35rem; }
.invite-code span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-family: "Courier Prime", var(--mono); font-weight: 700; font-size: 1.35rem; }
.invite-code i { width: 0.5rem; }

/* Joining from a link. */
.invited { display: grid; justify-items: center; gap: 0.5rem; padding: 1.1rem 1rem 1rem; text-align: center; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.invited__from { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.invited__name { font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 2rem; line-height: 1.05; color: var(--accent); overflow-wrap: anywhere; }
.invited__who { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--ink-2); }

/* Group settings. */
.set-section { display: grid; gap: 0.5rem; }
.set-section h3 { font: 700 0.72rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.setlist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.setlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); }
.setlist small { display: block; font-family: var(--font); font-size: 0.72rem; color: var(--ink-2); }
.setlist .link-btn { padding: 0.2rem; font-size: 0.82rem; color: var(--ink-2); }
.inline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.inline-row .btn { min-height: 3rem; }
.linkbox { display: block; min-width: 0; margin: 0; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-family: "Courier Prime", var(--mono); font-weight: 700; font-size: 0.86rem; line-height: 2.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn.danger, .link-btn.is-armed { color: var(--accent); text-decoration-color: var(--accent); }
.link-btn.danger-quiet { padding: 0; font-weight: 600; color: inherit; }
.btn.is-armed { border-color: var(--accent); color: var(--accent); }

/* On the score page, under "Your run". */
.friends-boards { display: grid; gap: 0.6rem; }
.board { display: grid; gap: 0.6rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.board__line { font-family: var(--serif); font-style: italic; font-size: 1rem; text-align: center; }
.board .staff__list { border-top: 1px solid var(--line); }
.board .staff__row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.board .staff__row.is-you { margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.rank { width: 1.3rem; font-family: "Playfair Display", var(--serif); font-style: italic; font-weight: 900; font-size: 1.15rem; color: var(--accent); text-align: center; }
.board__links { display: flex; justify-content: center; gap: 1.2rem; }
.board__links .link-btn { padding: 0.2rem; font-size: 0.9rem; }
.board__open { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.board__open svg { color: var(--accent); }
