/* Guessworks: the studio shell and each game's skin (design pass 1, approved 10-16; tokens and contrast in
   design/DESIGN_PASS_2026_10_16.md). Glass only on the top bar; flat panels; hairline rules; a serif display with
   monospaced digits. Each game sets its colors through a theme class on <body>. */

/* The three faces, served from our own domain (downloaded 10-18 on his OK; sources and hashes in SUPPLY_CHAIN.md, each
   licence beside its files). Apple devices draw the display face with their own Charter, the same design. */
@font-face { font-family: 'IBM Plex Mono'; src: url(/assets/fonts/IBMPlexMono-Regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/assets/fonts/IBMPlexMono-Medium.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/assets/fonts/IBMPlexMono-SemiBold.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/assets/fonts/IBMPlexMono-Bold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url(/assets/fonts/LibreFranklin-Variable.ttf) format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: XCharter; src: url(/assets/fonts/XCharter-Roman.otf) format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: XCharter; src: url(/assets/fonts/XCharter-Italic.otf) format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: XCharter; src: url(/assets/fonts/XCharter-Bold.otf) format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: XCharter; src: url(/assets/fonts/XCharter-BoldItalic.otf) format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --display: Charter, 'Bitstream Charter', XCharter, 'Iowan Old Style', 'Sitka Text', Cambria, Georgia, serif;
  --ui: 'Libre Franklin', -apple-system, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --screen: #f6f4ee;
  --panel: #fbfaf7;
  --rule: #d9d5c8;
  --rule-strong: #16181d;
  --ink: #16181d;
  --dim: #5a6070;
  --accent: #1f5fbf;
  --amber: var(--accent);
  --phosphor: #1f7a4a;
  --crowd: #6b7280;
  --down: #b3261e;
  --on-accent: #ffffff;
}

/* Chartbreaker: the terminal. Text contrast on the screen: ink 16.6:1, dim 7.7:1, amber 10.9:1, phosphor 11.8:1. */
.theme-terminal {
  --screen: #0a0d0c;
  --panel: #111715;
  --rule: #22302b;
  --rule-strong: #34463f;
  --amber: #ffb33f;
  --phosphor: #4be38b;
  --crowd: #8e9c97;
  --ink: #e7eeea;
  --dim: #94a79e;
  --down: #ff6e5a;
  --accent: var(--amber);
  --on-accent: #0a0d0c;
  color-scheme: dark;
}

/* The studio: drafting film with a non-photo-blue grid. */
.theme-studio {
  --screen: #eef2f3;
  --panel: #f7f9fa;
  --rule: #b9c6ce;
  --rule-strong: #13202b;
  --ink: #13202b;
  --dim: #4d5b66;
  --accent: #b83a26;
  --amber: #b83a26;
  --on-accent: #ffffff;
  color-scheme: light;
  background-image: linear-gradient(rgba(70, 140, 185, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 140, 185, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Stalagmight: the cave (design pass 2, approved 10-18). The page is the cave's darkest step; the lantern is the one
   warm light; the gems are the only saturated colors. Text contrast: ink 15.9:1, dim 8.3:1, amber 9.7:1, ember 6.9:1. */
.theme-cave {
  --screen: #0d0c18;
  --panel: #15142a;
  --rule: #2a2742;
  --rule-strong: #433d66;
  --ink: #efe8d8;
  --dim: #aea6c2;
  --amber: #f2a93b;
  --accent: #f2a93b;
  --on-accent: #1a1206;
  --ember: #ff6b4a;
  --quartz: #e4dff2;
  --amethyst: #bc9bff;
  --emerald: #52da96;
  --ruby: #ff7585;
  --diamond: #a8edff;
  color-scheme: dark;
}

/* Guessus: ink on a cool white (design pass 3b, approved 10-18). The one color is the crowd's answer, in red. Contrast:
   ink 16.0:1, dim 5.7:1, answer red 5.0:1 (5.6:1 on white), white on an ink button 17.8:1. */
.theme-poll {
  --screen: #f1f3f4;
  --panel: #ffffff;
  --rule: #d3d9de;
  --rule-strong: #1a1f25;
  --ink: #14181d;
  --dim: #57616c;
  --accent: #14181d;
  --amber: #14181d;
  --on-accent: #ffffff;
  --truth: #c62a1e;
  --rest: #c5ccd3;
  color-scheme: light;
}

/* The other games keep plain colors until their own design passes. */
.theme-almanac { --screen: #eceaef; --panel: #ffffff; --rule: #d4d0da; --rule-strong: #1b1922; --ink: #17151c; --dim: #5c5866; --accent: #17151c; --amber: #17151c; --on-accent: #ffffff; --truth: #5a2ca0; color-scheme: light; }
.theme-atlas { --screen: #e5edf0; --panel: #ffffff; --rule: #c7d4da; --rule-strong: #14222b; --ink: #13202a; --dim: #46555f; --accent: #13202a; --amber: #13202a; --on-accent: #ffffff; --thin: #d3dde2; color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background-color: var(--screen); color: var(--ink); font: 16px/1.5 var(--ui); }
/* No word left alone on a last line (browsers without it wrap as before). */
p, h1, h2, h3, li { text-wrap: pretty; }
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
[tabindex='-1']:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 40; padding: 8px 12px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 8px; }

/* The one piece of glass: the top bar. */
.chrome {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--screen) 72%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.wordmark { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; text-transform: uppercase; font: 600 14px/1 var(--mono); letter-spacing: 0.18em; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--amber); }
.meta { display: inline-flex; align-items: center; gap: 14px; color: var(--dim); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; }
.pips { display: inline-flex; gap: 4px; }
.pips i { display: block; width: 12px; height: 4px; border-radius: 1px; background: var(--rule-strong); }
.pips i.done { background: var(--dim); }
.pips i.now { background: var(--amber); }

/* Columns. */
.column, .round, .report, .archive, .archive-day, .info, .desk, .lab, .practice-done { max-width: 780px; margin: 0 auto; padding: 22px 16px 56px; }
.report { padding-top: 22px; }

/* Chartbreaker's signature: the tape. */
.tape {
  overflow: hidden; height: 38px; border-bottom: 1px solid var(--rule); background: var(--panel);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tape-run { display: inline-flex; align-items: center; gap: 26px; height: 38px; padding: 0 16px; white-space: nowrap; font: 500 12.5px/1 var(--mono); letter-spacing: 0.06em; transition: transform 0.4s ease; }
@media (max-width: 719px) { .tape-run { transform: translateX(var(--shift, 0)); } }
.tick-item b { font-weight: 600; color: var(--ink); }
.tick-item .q { color: var(--dim); }
.tick-item.now b { color: var(--amber); text-decoration: underline 2px; text-underline-offset: 7px; }
.up { color: var(--phosphor); }
.down { color: var(--down); }

/* The play screen. */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--dim); font: 500 12px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 10px; vertical-align: 2px; background: var(--amber); }
.eyebrow .flag { color: var(--amber); }
.chart-title { margin: 8px 0 4px; font: 400 34px/1.08 var(--display); letter-spacing: -0.015em; }
.chart-title.small { font-size: 26px; }
.chart-sub { margin: 0; color: var(--dim); font-size: 15px; }
/* The Start before a game's first round, and the round clock (his call 10-20: every game under the gun). */
.start .start-title { margin: 8px 0 0; font: 400 34px/1.08 var(--display); letter-spacing: -0.015em; }
.start .start-line { margin: 10px 0 0; color: var(--dim); font-size: 17px; }
.round-clock { position: relative; height: 22px; margin: 0 0 12px; }
.round-clock::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--rule); }
.round-clock .bar { position: absolute; left: 0; bottom: 0; width: calc(var(--left) * 100%); height: 3px; border-radius: 2px; background: var(--accent); transition: width 0.1s linear; }
.round-clock .secs { position: absolute; right: 0; top: 0; color: var(--dim); font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.round-clock.low .bar { background: var(--truth, var(--accent)); }
.round-clock.low .secs { color: var(--truth, var(--ink)); }
.out-of-time { margin: 6px 0 0; color: var(--dim); font: 600 13px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.chart-panel { margin: 18px 0 0; padding: 10px 2px 4px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.chart-wrap { width: 100%; }
.chart, .mini { display: block; width: 100%; height: auto; }
.chart.drawing { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .tick, .volume .tick { fill: var(--dim); font: 500 10.5px var(--mono); }
.zone { fill: var(--amber); fill-opacity: 0.045; stroke: var(--amber); stroke-opacity: 0.35; stroke-dasharray: 3 4; }
.zone-label { fill: var(--amber); font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }
.real, .you, .crowd { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .real { stroke: var(--phosphor); stroke-width: 2.5; }
.chart .truth { stroke-width: 3; filter: drop-shadow(0 0 4px rgba(75, 227, 139, 0.45)); }
/* On the live reveal the real line draws in like a tape (shown at once with reduced motion). */
.chart.revealed .truth { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tape 900ms ease-out forwards; }
.chart .you { stroke: var(--amber); stroke-width: 2.5; }
.chart .crowd { stroke: var(--crowd); stroke-width: 2; stroke-dasharray: 5 5; }
.anchor { fill: var(--phosphor); }
.crosshair { stroke: var(--amber); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 2 3; }
.pen { fill: var(--screen); stroke: var(--amber); stroke-width: 2.5; }
.readout { fill: var(--amber); }
.readout-text { fill: var(--on-accent); font: 600 11px var(--mono); white-space: pre; }
.focus-mark { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.tag text { fill: #0a0d0c; font: 600 11px var(--mono); }
.tag-real rect { fill: var(--phosphor); }
.tag-you rect { fill: var(--amber); }
.tag-crowd rect { fill: var(--crowd); }
.mini .real { stroke: var(--phosphor); stroke-width: 2; }
.mini .you { stroke: var(--amber); stroke-width: 2; }
.mini .crowd { stroke: var(--crowd); stroke-width: 1.5; stroke-dasharray: 3 3; }
@keyframes tape { to { stroke-dashoffset: 0; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 20px 0 8px; }
button.primary, a.primary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--amber); color: var(--on-accent); font: 600 16px/1 var(--ui); letter-spacing: 0.01em; text-decoration: none; }
button.primary:disabled { border: 1px dashed var(--rule-strong); background: transparent; color: var(--dim); cursor: default; }
button.text, a.text { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ink); font: 500 15px/1 var(--ui); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
button.text:disabled { color: var(--dim); text-decoration: none; cursor: default; }
.alert { margin: 12px 0 0; color: var(--down); font-size: 15px; }
.status { margin: 22px auto; max-width: 780px; padding: 0 16px; color: var(--dim); font: 500 14px/1.5 var(--mono); }

/* The reveal. */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 8px 12px 6px; font: 500 12px var(--mono); color: var(--dim); }
.legend .k::before { content: ''; display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: 3px; border-radius: 1px; }
.legend .real::before { background: var(--phosphor); }
.legend .you::before { background: var(--amber); }
.legend .crowd::before { background: repeating-linear-gradient(90deg, var(--crowd) 0 4px, transparent 4px 7px); }
.verdict { margin-top: 18px; }
.chart-score { display: flex; align-items: baseline; gap: 6px; margin: 0; font-family: var(--mono); }
.chart-score b { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.chart-score span { color: var(--dim); font-size: 20px; }
.context { margin: 14px 0 0; font: 400 19px/1.4 var(--display); }
.source { margin: 8px 0 0; color: var(--dim); font-size: 13px; }

/* The report: the frame every game shares. */
.kicker { margin: 0; color: var(--amber); font: 600 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.report-title { margin: 6px 0 2px; font: 400 36px/1.06 var(--display); letter-spacing: -0.015em; }
.report-sub { margin: 0; color: var(--dim); font-size: 16px; }
.lede { max-width: 60ch; margin: 8px 0 0; color: var(--ink); font-size: 17px; }
.big { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 0; font-family: var(--mono); }
.big b { font-size: 76px; line-height: 0.9; font-weight: 600; letter-spacing: -0.04em; }
.big span { color: var(--dim); font-size: 22px; white-space: nowrap; }
.big.long b { font-size: 60px; }
.standing { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 12px 0 0; }
.standing div { display: grid; gap: 5px; }
.standing dt { color: var(--dim); font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.standing dd { margin: 0; font: 600 22px/1 var(--mono); }
.standing b { color: var(--amber); font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 22px 0 0; }
a.next { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--amber); border-radius: 8px; color: var(--ink); font: 600 16px/1 var(--ui); text-decoration: none; }
.share-note { min-height: 1.5em; margin: 6px 0 0; color: var(--dim); font: 500 13px var(--mono); }
.manual-copy { width: 100%; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); font: 14px/1.5 var(--mono); }
.section { margin: 30px 0 12px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--dim); font: 600 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.volume { margin: 14px 0 0; }
.volume svg { display: block; width: 100%; height: auto; }
.volume .bar { fill: var(--dim); fill-opacity: 0.35; }
.volume .mine { fill: var(--amber); fill-opacity: 1; }
.volume .base { stroke: var(--rule-strong); }
.watchlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.watch { display: grid; grid-template-columns: 8.5em 1fr 2.6em; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.watch .sym { font: 600 12px var(--mono); letter-spacing: 0.08em; }
.watch .mini { height: 40px; }
.watch .pts { color: var(--amber); font: 600 18px var(--mono); text-align: right; }
.logbook { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; }
.logbook div { margin: 0; }
.logbook dt { color: var(--dim); font: 600 10.5px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.logbook dd { margin: 4px 0 0; font: 600 26px/1 var(--mono); }
.countdown { margin: 16px 0 0; color: var(--dim); font: 500 14px var(--mono); }
.countdown b { color: var(--ink); font-weight: 600; }
.bonus { margin-top: 30px; padding: 4px 16px 16px; border: 1px solid var(--rule); border-radius: 10px; }
.bonus .section { margin-top: 12px; padding-top: 0; border-top: 0; }
.bonus .question { margin: 0 0 12px; font-size: 18px; }
.bonus .fine { margin: 10px 0 0; color: var(--dim); font-size: 13px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
button.option { min-width: 96px; min-height: 48px; padding: 0 22px; border: 1px solid var(--amber); border-radius: 8px; background: transparent; color: var(--ink); font: 600 16px/1 var(--ui); }
button.option:disabled { opacity: 0.5; cursor: default; }
.split { margin: 0; padding: 0; list-style: none; }
.split li { margin: 4px 0; font-size: 16px; }
.split strong { font-family: var(--mono); }
.muted { color: var(--dim); }
.also ul { margin: 0; padding: 0; list-style: none; }
.also li { border-bottom: 1px solid var(--rule); }
.also a { display: block; margin: 10px 0; padding: 2px 0 2px 14px; border-left: 4px solid var(--swatch, var(--rule)); font: 400 21px/1.25 var(--display); text-decoration: none; }
.swatch-terminal, .plate-terminal { --swatch: #ffb33f; }
.swatch-cave, .plate-cave { --swatch: #3a2f66; }
.swatch-poll, .plate-poll { --swatch: #b3261e; }
.swatch-almanac, .plate-almanac { --swatch: #5a2ca0; }
.swatch-atlas, .plate-atlas { --swatch: #e69f00; }
.turnstile-slot { position: fixed; bottom: 12px; left: 50%; z-index: 10; transform: translateX(-50%); }

/* The studio's signature: the title block. */
.title-block { display: grid; grid-template-columns: repeat(2, 1fr); margin: 30px 0 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); font: 500 13px/1.3 var(--mono); }
.title-block div { padding: 8px 10px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.title-block dt { margin-bottom: 3px; color: var(--dim); font: 600 9.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.title-block dd { margin: 0; }
.title-block .tb-studio dd { font: 400 19px/1.1 var(--display); }
.title-block .tb-studio a, .colophon a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.title-block .tb-span { grid-column: span 2; }

/* Tables: the archive list, and every chart's "Show as table". */
.ledger { width: 100%; margin-top: 22px; border-collapse: collapse; }
.ledger th { padding: 8px; border-bottom: 1px solid var(--rule-strong); color: var(--dim); text-align: left; font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.ledger td { padding: 14px 8px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.ledger td a { font: 400 19px/1.2 var(--display); }
.ledger td small { display: block; margin-top: 3px; color: var(--dim); font: 500 12px var(--mono); }
.ledger .wide { display: none; }
.num { font-family: var(--mono); text-align: right; }
.ledger th:first-child, .ledger th:nth-child(n + 3) { text-align: right; }
.ledger.values { max-width: 420px; margin-top: 4px; }
.ledger.values th, .ledger.values td { padding: 6px 8px; font: 500 13px var(--mono); }
.ledger.values thead th { font-size: 11px; }
.ledger.values th:first-child { text-align: left; }
.ledger.values thead th + th { text-align: right; }
.ledger.values tbody th { border-bottom: 1px solid var(--rule); color: var(--dim); letter-spacing: 0; text-transform: none; }
.ledger tr.mine th, .ledger tr.mine td { color: var(--amber); }
.data summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); cursor: pointer; font: 500 15px/1 var(--ui); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; list-style: none; }
.data summary::-webkit-details-marker { display: none; }

/* The archive day. */
.day-grid { display: grid; gap: 28px; margin-top: 24px; }
.day-chart { padding-top: 16px; border-top: 1px solid var(--rule); }
.day-chart .chart { margin-top: 10px; }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }

/* The studio home. */
.hub { max-width: 920px; margin: 0 auto; padding: 56px 20px 72px; }
.hub-mark { margin: 8px 0 6px; font: 400 64px/0.95 var(--display); letter-spacing: -0.03em; }
.index { width: 100%; margin-top: 36px; border-collapse: collapse; border-top: 2px solid var(--ink); }
.index th { padding: 10px 8px; border-bottom: 1px solid var(--rule); color: var(--dim); text-align: left; font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.index td { padding: 16px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.index .num { width: 36px; text-align: left; font: 600 20px var(--mono); }
.index .wide { display: none; }
.index a { display: block; padding-left: 16px; border-left: 6px solid var(--swatch, var(--ink)); text-decoration: none; }
.index a b { display: block; font: 400 27px/1.15 var(--display); letter-spacing: -0.01em; }
.index a .line { display: block; color: var(--dim); font-size: 15px; }
.index a .rev { margin-top: 10px; }
.rev { display: inline-block; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 3px; color: var(--dim); font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

/* The written pages. */
.info h1 { margin: 6px 0 12px; font: 400 36px/1.08 var(--display); letter-spacing: -0.015em; }
.info h2 { margin: 28px 0 8px; font: 600 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.info p, .info li { max-width: 62ch; }
.info h3 { margin: 20px 0 6px; font-size: 1em; font-weight: 600; }
.legal .table-scroll { overflow-x: auto; margin: 8px 0; }
.privacy-control { margin: 12px 0; }
.faq div { margin: 16px 0; }
.faq dt { font-weight: 600; }
.faq dd { margin: 4px 0 0; }

/* The footer: a colophon in plain text, then the links. */
.site-foot { width: 100%; max-width: 780px; margin: 0 auto; padding: 28px 16px 12px; border-top: 1px solid var(--rule); }
.theme-studio .site-foot { max-width: 920px; padding-left: 20px; padding-right: 20px; }
.colophon { max-width: 60ch; margin: 0 0 14px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font: 500 13px/1.25 var(--ui); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* Test builds and the engine's test rig (local and staging only). */
.test-build { max-width: 780px; margin: 16px auto 0; padding: 8px 12px; border: 1px dashed var(--accent); border-radius: 8px; font: 13px/1.4 var(--mono); color: var(--accent); }
.probe-reveal { font: 14px var(--mono); }
.probe-round { display: grid; gap: 8px; max-width: 320px; margin: 16px 0; }
.probe-round input { padding: 8px; font: 20px var(--mono); }

/* The desk (private). */
.desk-table { width: 100%; margin: 12px 0 20px; border-collapse: collapse; font-size: 15px; }
.desk-table th, .desk-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.desk-table thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.desk-table tr.warn td { color: var(--accent); }
.desk-table tr.past { opacity: 0.65; }
.desk-alert, .desk-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; }
.desk-alert { border-color: var(--accent); color: var(--accent); }
.desk-alert p, .desk-note p { margin: 0; }
.desk .status { display: inline-block; margin: 0; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 999px; font: 12px var(--mono); }
.status-approved { border-color: var(--ink); }
.status-checked { color: var(--dim); }
.status-draft { border-style: dashed; color: var(--accent); }
.status-killed { text-decoration: line-through; color: var(--dim); }
form.inline { display: inline; margin-right: 6px; }
button.small { min-height: 36px; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--ink); font: 14px var(--ui); }
.flash { padding: 8px 12px; border-left: 3px solid var(--accent); }
.warn-line { color: var(--accent); }
.problem { padding: 8px 12px; border-left: 3px solid #e5484d; }
form.edit { display: grid; gap: 6px; }
form.edit label { margin-top: 8px; font-size: 14px; color: var(--dim); }
form.edit textarea { width: 100%; padding: 8px; border: 1px solid var(--rule); border-radius: 6px; background: transparent; color: var(--ink); font: 13px/1.4 var(--mono); }
form.edit button { justify-self: start; margin-top: 8px; }

/* Stalagmight's screens (design pass 2). Pixel art stays crisp at whole-number scales. */
.theme-cave .px { display: block; max-width: none; image-rendering: pixelated; shape-rendering: crispEdges; }
.theme-cave .wordmark { gap: 0; }
.theme-cave .wordmark .px { width: 128px; height: 16px; }
/* The bar: ten chambers, each lit in the color of the gem found there. */
.theme-cave .depth { display: inline-flex; gap: 3px; }
.theme-cave .depth i { display: block; width: 8px; height: 4px; border-radius: 1px; background: var(--rule-strong); }
.theme-cave .depth i.now { background: var(--amber); }
.theme-cave .depth i.quartz { background: var(--quartz); }
.theme-cave .depth i.amethyst { background: var(--amethyst); }
.theme-cave .depth i.emerald { background: var(--emerald); }
.theme-cave .depth i.ruby { background: var(--ruby); }
.theme-cave .depth i.diamond { background: var(--diamond); }
.theme-cave .depth i.caved { background: var(--ember); }
.theme-cave .depth i.pop { animation: pip-pop 420ms ease-out; }
@keyframes pip-pop { 50% { transform: scaleY(2.2); } }

/* The scene: drawn on a canvas at 3x on a phone (as many art pixels as the width holds), 4x on a desktop. */
.theme-cave .scene { position: relative; width: 100%; max-width: 880px; margin: 0 auto; overflow: hidden; }
.theme-cave .scene canvas { display: block; margin: 0 auto; image-rendering: pixelated; }
.theme-cave .scene.shake canvas { animation: cave-shake 480ms steps(6); }
@keyframes cave-shake { 20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(2px, -1px); } }

/* A chamber: the question and the answer box, which stays above the phone's keyboard. */
.theme-cave .stage { max-width: 880px; margin: 0 auto; padding: 10px 16px 12px; }
/* A chamber and its find take the same height, so the picture above keeps one size through the descent (spec 3.4). */
.theme-cave .stage.descent { min-height: 196px; }
.theme-cave .prompt { margin: 0; font: 400 26px/1.15 var(--display); letter-spacing: -0.01em; }
.theme-cave .cave-status { min-height: 24px; margin: 6px 0 0; color: var(--ember); font: 600 14px/24px var(--mono); letter-spacing: 0.02em; }
.theme-cave .answer-row { display: flex; gap: 8px; margin-top: 2px; }
.theme-cave .answer { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 2px solid var(--amber); border-radius: 8px; background: var(--panel); color: var(--ink); font: 500 20px/1 var(--ui); caret-color: var(--amber); }
.theme-cave .answer:focus { outline: none; box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.28); }
.theme-cave .answer.missed { border-color: var(--ember); color: var(--dim); text-decoration: line-through; text-decoration-color: var(--ember); text-decoration-thickness: 2px; box-shadow: none; }
.theme-cave .go { flex: none; width: 64px; height: 52px; border: 0; border-radius: 8px; background: var(--amber); color: var(--on-accent); font: 600 17px/1 var(--ui); }
.theme-cave .go:disabled { opacity: 0.6; cursor: default; }

/* A gem found, and the blind choice: Bank and Dive at equal weight, the gauge between them. */
.theme-cave .find { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-items: center; margin-top: 6px; }
.theme-cave .find .gem-art { grid-row: span 3; width: 44px; height: auto; }
.theme-cave .find .grade { margin: 0; font: 600 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.theme-cave .find .found { margin: 0; font: 400 28px/1.1 var(--display); }
.theme-cave .find .why { margin: 0; color: var(--dim); font: 500 13px/1.4 var(--mono); }
.theme-cave .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 12px 0 6px; }
.theme-cave .choice button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; border: 2px solid var(--amber); border-radius: 8px; background: transparent; color: var(--ink); font: 600 18px/1 var(--ui); }
.theme-cave .choice button:disabled { opacity: 0.6; cursor: default; }
.theme-cave .choice button .px { width: 14px; height: 14px; }
.theme-cave .choice .gauge { grid-column: 1 / -1; margin: 0; color: var(--dim); text-align: center; font: 500 13px/1.3 var(--mono); }
.theme-cave .choice .gauge b { color: var(--ink); font-weight: 600; }
.theme-cave .find-actions { margin: 22px 0 6px; }
/* Holds the phone's keyboard open between chambers (focused only inside a tap, never seen). */
.theme-cave .keeper { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; font-size: 16px; }

/* The cave mouth. */
.theme-cave .mouth .title { margin: 6px 0 2px; font: 400 40px/1.05 var(--display); letter-spacing: -0.015em; }
.theme-cave .mouth .date { margin: 0; color: var(--dim); font-size: 16px; }
.theme-cave .ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 22px 0 0; padding: 12px 0 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.theme-cave .ladder figure { display: grid; justify-items: center; gap: 6px; margin: 0; }
.theme-cave .ladder .px { width: 33px; height: 33px; }
.theme-cave .ladder figcaption { font: 600 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.theme-cave .ladder-ends { display: flex; justify-content: space-between; margin: 6px 0 0; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.theme-cave .rules { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.theme-cave .rules li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.theme-cave .rules .ico { display: grid; flex: none; place-items: center; width: 34px; }
.theme-cave .mouth .enter { width: 100%; justify-content: center; margin-top: 22px; }

/* The report: the studio frame in the cave's colors, opened by the climb-out or the cave-in. */
.theme-cave .end-scene { margin-bottom: 4px; }
.theme-cave .kicker.caved { color: var(--ember); }
.theme-cave .standing .gem-name { font-weight: 600; }
.theme-cave .quartz-t { color: var(--quartz); }
.theme-cave .amethyst-t { color: var(--amethyst); }
.theme-cave .emerald-t { color: var(--emerald); }
.theme-cave .ruby-t { color: var(--ruby); }
.theme-cave .diamond-t { color: var(--diamond); }
.theme-cave .volume .bust { fill: var(--ember); fill-opacity: 0.55; }
.theme-cave .volume .bust.mine { fill: var(--ember); fill-opacity: 1; }

/* "Your cave": the cutaway's surface, then one row per chamber with its band of the cutaway beside the words. A band
   stretches with its row, so long words grow the chamber and are never clipped. */
.theme-cave .log { margin-top: 6px; }
.theme-cave .log .surface { display: block; width: 150px; height: auto; }
.theme-cave .log ol { margin: 0; padding: 0; list-style: none; }
.theme-cave .log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 12px; min-height: 60px; }
.theme-cave .log .band { display: block; width: 150px; height: 100%; }
.theme-cave .log .words { align-self: center; padding: 3px 0; }
.theme-cave .log .q { margin: 0; font: 400 15px/1.18 var(--display); }
.theme-cave .log .q .n { margin-right: 6px; color: var(--dim); font: 600 11px var(--mono); }
.theme-cave .log .a { margin: 2px 0 0; font-size: 13.5px; line-height: 1.3; }
/* The answer moves to its own line whole, never split from the middle; its gem follows after a space. */
.theme-cave .log .a .yours { display: inline-block; margin-right: 3px; }
.theme-cave .log .a b { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.theme-cave .log li.unseen .q { color: var(--dim); font: 500 12px/1.3 var(--mono); }
.theme-cave .log li.lost-row .a { color: var(--ember); font: 600 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.theme-cave .log li.crowd .a { color: var(--dim); font: 500 13px/1.3 var(--mono); }
.theme-cave .log li.crowd .n { margin-right: 8px; color: var(--ink); font: 600 11px var(--mono); }

/* Report a right answer we missed: the form never runs past a phone's width. */
.theme-cave .report-miss { margin-top: 14px; }
.theme-cave .report-miss form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 420px; margin: 4px 0 0; }
.theme-cave .report-miss label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; color: var(--dim); font-size: 14px; }
.theme-cave .report-miss select, .theme-cave .report-miss input { width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); color: var(--ink); font: 16px var(--ui); }
.theme-cave .report-miss .fine { margin: 2px 0 0; color: var(--dim); font-size: 13px; }
.theme-cave .report-miss button.small { justify-self: start; min-height: 44px; padding: 0 18px; border-color: var(--amber); }

/* Today in the cave, and an archive day's numbers: three crowd figures. */
.theme-cave .cave-day, .theme-cave .day-stats { grid-template-columns: repeat(3, 1fr); }
.theme-cave .cave-day div, .theme-cave .day-stats div { display: flex; flex-direction: column; justify-content: flex-end; }
.theme-cave .cave-day dd { font-size: 22px; }

/* The archive day: the crowd's cave (laid out as "Your cave" is), then each chamber with its answers. */
.theme-cave .chamber-day { padding: 16px 0 4px; border-top: 1px solid var(--rule); }
.theme-cave .chamber-day h2 { margin: 6px 0 8px; font: 400 24px/1.15 var(--display); }
.theme-cave .chamber-day .said { margin: 0; font-size: 15px; }
.theme-cave .chamber-day .said b { font-family: var(--mono); font-weight: 600; }
.theme-cave .chamber-day .rare { margin: 4px 0 0; font-size: 15px; }
.theme-cave .answer-list { columns: 2; column-gap: 18px; margin: 4px 0 8px; padding: 0; list-style: none; font-size: 14.5px; }
.theme-cave .answer-list li { break-inside: avoid; padding: 2px 0; }

@media (min-width: 720px) {
  .theme-cave .stage { padding: 22px 24px 28px; }
  .theme-cave .prompt { font-size: 44px; }
  .theme-cave .answer-row { max-width: 560px; margin-top: 6px; }
  .theme-cave .find { grid-template-columns: 66px 1fr; margin-top: 18px; }
  .theme-cave .find .gem-art { width: 66px; }
  .theme-cave .find .found { font-size: 40px; }
  .theme-cave .choice { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; max-width: 720px; }
  .theme-cave .choice .gauge { margin: 0; }
  .theme-cave .mouth .title { font-size: 56px; }
  .theme-cave .ladder, .theme-cave .ladder-ends { max-width: 560px; }
  .theme-cave .mouth .enter { width: auto; padding: 0 36px; }
  .theme-cave .log li { grid-template-columns: 200px minmax(0, 1fr); column-gap: 20px; min-height: 80px; }
  .theme-cave .log .surface, .theme-cave .log .band { width: 200px; }
  .theme-cave .log .q { font-size: 19px; }
  .theme-cave .log .a { font-size: 15px; }
  .theme-cave .answer-list { columns: 3; }
}

/* Guessus's screens (design pass 3b). The bar: the wordmark with one raised hand; five pips. */
.theme-poll .wordmark { gap: 6px; }
.theme-poll .wordmark .hand { width: 9px; height: 17px; color: var(--truth); }
.theme-poll .pips i { background: var(--rule); }
.theme-poll .pips i.done { background: var(--dim); }
.theme-poll .pips i.now { background: var(--ink); }

/* A round: the percent question over the hundred. */
.theme-poll .poll .question { margin: 6px 0 0; font: 400 30px/1.12 var(--display); letter-spacing: -0.012em; }
.theme-poll .poll .question.small { font-size: 22px; line-height: 1.2; }
.theme-poll .group { margin: 12px 0 0; color: var(--dim); font: 600 11.5px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.theme-poll .guess-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.theme-poll .guess-num { display: flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 2.6em; margin: 0; font-family: var(--mono); }
.theme-poll .guess-num b { min-width: 3ch; text-align: right; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.theme-poll .guess-num span { color: var(--dim); font-size: 28px; font-weight: 500; }
.theme-poll .guess-num.empty b { color: var(--rest); }
.theme-poll button.step { flex: none; width: 48px; height: 48px; border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--panel); color: var(--ink); font: 500 24px/1 var(--mono); }
.theme-poll button.step:disabled { border-color: var(--rule); color: var(--rest); cursor: default; }

/* The hundred: 20 columns of 5, one figure a percent. While guessing, the crowd is the slider. */
.theme-poll .crowd { position: relative; margin: 26px 0 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.theme-poll .crowd[role='slider'] { cursor: ew-resize; }
.theme-poll .crowd[role='slider']:focus-visible { outline: 3px solid var(--ink); outline-offset: 10px; border-radius: 4px; }
.theme-poll .people { position: relative; }
/* The ground the crowd stands on marks the slider's extent at 5.7:1 (the grey figures are texture). */
.theme-poll .people::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--dim); }
.theme-poll .hundred { display: block; width: 100%; height: auto; overflow: visible; }
.theme-poll .hundred .rest { color: var(--rest); }
.theme-poll .hundred .guess { color: var(--ink); }
.theme-poll .hundred .truth { color: var(--truth); }
.theme-poll .crowd.revealed .hundred .truth { animation: hands-up 260ms calc(var(--i, 0) * 26ms) both; }
@keyframes hands-up { from { color: var(--rest); } }
.theme-poll .cue { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--ink); font: 600 13px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; text-shadow: 0 0 6px var(--screen), 0 0 2px var(--screen); }
.theme-poll .handle, .theme-poll .tick { position: absolute; top: -8px; bottom: -8px; left: calc(var(--at) * 1%); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.theme-poll .handle::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--screen); }

/* The reveal: the points first, two labels over the crowd, the gap under it. */
.theme-poll .chart-score.headline { margin: 14px 0 0; }
.theme-poll .chart-score.headline b { font-size: 72px; }
.theme-poll .crowd.revealed { margin-top: 44px; }
.theme-poll .marks { position: absolute; left: 0; right: 0; top: -32px; height: 20px; }
.theme-poll .mark { position: absolute; left: calc(var(--at) * 1%); transform: translateX(-50%); white-space: nowrap; font: 600 15px/20px var(--mono); }
.theme-poll .mark.end { transform: translateX(calc(-100% - 5px)); }
.theme-poll .mark.start { transform: translateX(5px); }
.theme-poll .mark.you { color: var(--ink); }
.theme-poll .mark.truth { color: var(--truth); }
.theme-poll .mark.shared .you { color: var(--ink); }
.theme-poll .mark.shared .truth { color: var(--truth); }
.theme-poll .mark.shared span + span { margin-left: 8px; }
.theme-poll .gap { position: relative; height: 38px; margin-top: 12px; }
.theme-poll .gap .span { position: absolute; top: 0; left: calc(var(--at) * 1%); width: calc(var(--w) * 1%); height: 9px; border: 2px solid var(--ink); border-top: 0; }
.theme-poll .gap-text { position: absolute; top: 15px; left: clamp(44px, calc(var(--at) * 1%), calc(100% - 44px)); transform: translateX(-50%); white-space: nowrap; font: 600 13px/1.3 var(--mono); }
.theme-poll .crowd.locked { margin-top: 24px; }
.theme-poll .crowd.locked .hundred { opacity: 0.55; }
.theme-poll .your-guess { margin: 18px 0 0; font: 600 16px/1.3 var(--mono); }
.theme-poll .and-you { margin: 22px 0 0; font: 400 30px/1.12 var(--display); letter-spacing: -0.012em; }
.theme-poll .and-you + .votes { margin-top: 14px; }
.theme-poll .you-line { margin: 8px 0 0; font: 400 19px/1.3 var(--display); }
.theme-poll .you-line + .votes { margin-top: 16px; }
.theme-poll .side { margin: 8px 0 0; font-size: 17px; }
.theme-poll .side b { font-family: var(--mono); font-weight: 600; }
.theme-poll .blend { margin: 6px 0 0; color: var(--dim); font-size: 13.5px; }
.theme-poll .poll .source { margin-top: 6px; }

/* Yes and No: two equal buttons. */
.theme-poll .votes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.theme-poll button.vote { min-height: 60px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); color: var(--ink); font: 600 20px/1 var(--ui); }
.theme-poll button.vote.chosen { background: var(--ink); color: var(--on-accent); }
.theme-poll button.vote:disabled:not(.chosen) { opacity: 0.55; cursor: default; }
.theme-poll .votes.small { gap: 10px; margin-top: 10px; }
.theme-poll .votes.small button.vote { min-height: 48px; font-size: 17px; }

/* The warm-ups. */
.theme-poll .warm-line { margin: 6px 0 0; color: var(--dim); font-size: 15px; }
.theme-poll .warmups { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.theme-poll .warm { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.theme-poll .warm-q { margin: 0; font: 400 19px/1.25 var(--display); }
.theme-poll .warm.answered .warm-q { color: var(--dim); }

/* "Your five" on the report. */
.theme-poll .five { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.theme-poll .five li { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.theme-poll .five .q { margin: 0; font: 400 16px/1.25 var(--display); }
.theme-poll .five .n { margin-right: 8px; color: var(--dim); font: 600 11px var(--mono); }
.theme-poll .five .tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--ink); border-radius: 3px; font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; }
.theme-poll .five .row { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 12px; margin-top: 8px; }
.theme-poll .mini-hundred { display: block; width: 118px; height: auto; overflow: visible; }
.theme-poll .mini-hundred .rest { fill: var(--rest); }
.theme-poll .mini-hundred .truth { fill: var(--truth); }
.theme-poll .mini-hundred .tick-you { stroke: var(--ink); stroke-width: 1.6; }
.theme-poll .five .vals { color: var(--dim); font: 500 13px var(--mono); }
.theme-poll .five .vals i { margin: 0 6px; font-style: normal; }
.theme-poll .five .vals b { color: var(--truth); font-weight: 600; }
.theme-poll .five .pts { font: 600 18px var(--mono); text-align: right; }

/* The archive day. */
.theme-poll .day-list { margin-top: 8px; }
.theme-poll .question-day { padding: 18px 0 10px; border-top: 1px solid var(--rule); }
.theme-poll .question-day h2 { margin: 6px 0 12px; font: 400 24px/1.18 var(--display); }
.theme-poll .question-day .mini-hundred { width: 180px; }
.theme-poll .question-day .said { margin: 10px 0 0; font-size: 16px; }
.theme-poll .question-day .said + .said { margin-top: 2px; }
.theme-poll .question-day b { font-family: var(--mono); font-weight: 600; }
.theme-poll .question-day b.truth { color: var(--truth); }
.theme-poll .question-day .avg { margin: 2px 0 0; color: var(--dim); font-size: 15px; }
.theme-poll .day-stats { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 720px) {
  .theme-poll .poll .question { font-size: 46px; }
  .theme-poll .poll .question.small { font-size: 30px; }
  .theme-poll .votes { max-width: 520px; }
  .theme-poll .guess-num b { font-size: 84px; }
  .theme-poll .chart-score.headline b { font-size: 96px; }
  .theme-poll .and-you { font-size: 40px; }
  .theme-poll .poll .crowd { max-width: 720px; }
  .theme-poll .five .row { grid-template-columns: 180px 1fr auto; }
  .theme-poll .five .mini-hundred { width: 180px; }
  .theme-poll .five .q { font-size: 18px; }
}

/* Mapinion (design pass 5, approved 10-19): the page is the sea, the tiles are the land, and the only colors are the
   crowd's answers, in the order a question asks them. Every rule sits under the theme: the names are shared. */
.theme-atlas .mark-tiles { width: 22px; height: 14px; }
.theme-atlas .mark-tiles rect { fill: var(--ink); }
.theme-atlas .mark-tiles .hot { fill: #e69f00; }
.theme-atlas .home-chip { padding: 3px 6px; border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; }
.theme-atlas .pips i { background: var(--rule); }
.theme-atlas .pips i.done { background: var(--dim); }
.theme-atlas .pips i.now { background: var(--ink); }
.theme-atlas .question { margin: 4px 0 0; font: 400 30px/1.12 var(--display); letter-spacing: -0.012em; }
.theme-atlas .question.small { font-size: 24px; line-height: 1.2; }
.theme-atlas .meta-line { margin: 6px 0 0; color: var(--dim); font: 500 13px var(--mono); letter-spacing: 0.02em; }
.theme-atlas .prompt { margin: 18px 0 0; font-size: 17px; line-height: 1.35; }
.theme-atlas .prompt b { font-weight: 700; }
.theme-atlas .map-wrap { margin: 16px 0 0; }
.theme-atlas .tiles { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.theme-atlas .tiles .tile { stroke-width: 0.03; }
.theme-atlas .tiles .tile.open { fill: var(--panel); stroke: var(--rule); }
.theme-atlas .tiles .tile.picked { fill: var(--ink); stroke: var(--ink); }
.theme-atlas .tiles .tile.thin { fill: var(--thin); stroke: none; }
.theme-atlas .tiles .tile.strong { fill: var(--c); stroke: none; }
.theme-atlas .tiles .tile.tint { fill: color-mix(in srgb, var(--c) 42%, #ffffff); stroke: none; }
.theme-atlas .tiles g.tap { cursor: pointer; }
.theme-atlas .tiles .t-us { font: 600 0.33px var(--mono); letter-spacing: 0.01px; }
.theme-atlas .tiles .t-world { font: 600 0.15px var(--ui); }
.theme-atlas .tiles text { pointer-events: none; }
.theme-atlas .tiles .ink { fill: var(--ink); }
.theme-atlas .tiles .white { fill: #ffffff; }
.theme-atlas .tiles .dim { fill: var(--dim); }
.theme-atlas .tiles .badge { fill: var(--ink); stroke: var(--screen); stroke-width: 0.045; }
.theme-atlas .tiles .t-badge { fill: #ffffff; font: 700 0.24px var(--mono); }
.theme-atlas .tiles .mine { fill: none; stroke: var(--ink); stroke-width: 0.075; }
.theme-atlas .tiles.quiet { max-width: 360px; margin-top: 18px; }
.theme-atlas .tiles.mini { width: 120px; }
.theme-atlas .tiles.mini .t-us, .theme-atlas .tiles.mini .t-world { display: none; }
.theme-atlas .tiles.mini .mine { stroke-width: 0.16; }
.theme-atlas .tiles.world .tile.open { stroke-width: 0.02; }
.theme-atlas .pick-row { margin-top: 18px; }
.theme-atlas .legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink); font: 500 13px/1.3 var(--ui); }
.theme-atlas .legend-row li { display: inline-flex; align-items: center; gap: 6px; }
.theme-atlas .legend-row i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.theme-atlas .legend-row .thin-key { color: var(--dim); }
.theme-atlas .legend-row .thin-key i { background: var(--thin); }
.theme-atlas .atlas .chart-score { margin-top: 16px; }
.theme-atlas .result-line { margin: 6px 0 0; font: 600 16px/1.3 var(--mono); }
.theme-atlas .top-three { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: top; color: var(--dim); font-size: 14px; }
.theme-atlas .top-three li { counter-increment: top; }
.theme-atlas .top-three li::before { content: counter(top); display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: #ffffff; font: 700 11px/1 var(--mono); vertical-align: 1px; }
.theme-atlas .top-three b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.theme-atlas .table-link { margin: 8px 0 0; font-size: 13px; }
.theme-atlas .votes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.theme-atlas button.vote { min-height: 60px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); color: var(--ink); font: 600 18px/1.2 var(--ui); }
.theme-atlas button.vote.chosen { background: var(--ink); color: var(--on-accent); }
.theme-atlas button.vote:disabled:not(.chosen) { opacity: 0.55; cursor: default; }
.theme-atlas .splits { display: grid; gap: 10px; margin-top: 22px; }
.theme-atlas .split { display: grid; grid-template-columns: 6.5em 1fr 3em; align-items: center; gap: 10px; font-size: 15px; }
.theme-atlas .split .bar { height: 12px; border-radius: 3px; background: var(--thin); overflow: hidden; }
.theme-atlas .split .bar i { display: block; width: var(--w); height: 100%; background: var(--ink); }
.theme-atlas .split .pct { font: 600 15px var(--mono); text-align: right; }
.theme-atlas .take-line { margin: 14px 0 0; color: var(--dim); font-size: 14px; }
.theme-atlas .splits.narrow { max-width: 520px; }
.theme-atlas .split.waiting .wait { grid-column: 2 / 4; color: var(--dim); font: 500 13px/1.3 var(--mono); }
.theme-atlas .reveal-table { margin-top: 10px; }
/* A data round's reveal (his yes 10-19): each place shaded by its figure, one hue (the first answer color) in four steps by
   the open places' quartiles, pass 5b's look. */
.theme-atlas .tiles .tile.ramp { stroke: none; }
.theme-atlas .tiles .tile.r0 { fill: color-mix(in srgb, #e69f00 10%, #ffffff); }
.theme-atlas .tiles .tile.r1 { fill: color-mix(in srgb, #e69f00 32%, #ffffff); }
.theme-atlas .tiles .tile.r2 { fill: color-mix(in srgb, #e69f00 62%, #ffffff); }
.theme-atlas .tiles .tile.r3 { fill: #e69f00; }
.theme-atlas .legend-row .ramp.r0 { background: color-mix(in srgb, #e69f00 10%, #ffffff); box-shadow: inset 0 0 0 1px var(--rule); }
.theme-atlas .legend-row .ramp.r1 { background: color-mix(in srgb, #e69f00 32%, #ffffff); }
.theme-atlas .legend-row .ramp.r2 { background: color-mix(in srgb, #e69f00 62%, #ffffff); }
.theme-atlas .legend-row .ramp.r3 { background: #e69f00; }
.theme-atlas .ramp-row { margin-top: 6px; }
.theme-atlas .home-card { padding: 22px 20px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.theme-atlas .home-line { margin: 8px 0 0; color: var(--dim); font-size: 16px; }
.theme-atlas .home-card .tiles.quiet .tile.open { fill: var(--screen); stroke: none; }
.theme-atlas .five-maps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.theme-atlas .five-maps li { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.theme-atlas .five-maps .q { margin: 0; font: 400 16px/1.25 var(--display); }
.theme-atlas .five-maps .n { margin-right: 8px; color: var(--dim); font: 600 11px var(--mono); }
.theme-atlas .five-maps .row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; margin-top: 8px; }
.theme-atlas .five-maps .vals { color: var(--dim); font: 500 13px var(--mono); }
.theme-atlas .five-maps .vals b { color: var(--ink); font-weight: 600; }
.theme-atlas .five-maps .vals i { margin: 0 6px; font-style: normal; }
.theme-atlas .board-line { margin: 0 0 8px; color: var(--dim); font-size: 14px; }
.theme-atlas .map-day { padding: 18px 0 12px; border-top: 1px solid var(--rule); }
.theme-atlas .day-list .map-day:first-child { border-top: 0; }
.theme-atlas .map-day h2 { margin: 6px 0 0; font: 400 24px/1.18 var(--display); }
.theme-atlas .five-maps .pts { font: 600 18px var(--mono); text-align: right; }
.theme-atlas .ledger tr.mine td { color: var(--ink); font-weight: 700; background: var(--panel); }
/* "Pick from a list": a search box over the places still open, one list the arrow keys walk. */
.theme-atlas .pick-list { margin: 14px 0 0; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); }
.theme-atlas .pick-list label { display: block; margin-bottom: 6px; color: var(--dim); font: 500 13px var(--ui); }
.theme-atlas .pick-list input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); color: var(--ink); font: 16px var(--ui); }
.theme-atlas .pick-list ul { max-height: 240px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.theme-atlas .pick-list li { padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.theme-atlas .pick-list li[aria-selected='true'] { background: var(--ink); color: var(--on-accent); }
.theme-atlas .pick-list .none { color: var(--dim); cursor: default; }
@media (min-width: 720px) {
  .theme-atlas .question { font-size: 44px; }
  .theme-atlas .question.small { font-size: 30px; }
  .theme-atlas .map-wrap { max-width: 640px; }
  .theme-atlas .votes { max-width: 520px; }
  .theme-atlas .five-maps .row { grid-template-columns: 180px 1fr auto; }
  .theme-atlas .tiles.mini { width: 180px; }
  .theme-atlas .five-maps .q { font-size: 18px; }
  .theme-atlas .pick-list { max-width: 520px; }
}

/* Whendunit (design pass 4, approved; the year as 4b draws it, 10-19): ink on white cards over a grey with violet in
   it; the one color is the real year. Every rule sits under the theme: the names are shared. */
.theme-almanac .mark-ruler { width: 22px; height: 12px; fill: none; stroke: var(--truth); stroke-width: 1.8; vertical-align: -1px; }
.theme-almanac .pips { gap: 3px; }
.theme-almanac .pips i { width: 10px; background: var(--rule); }
.theme-almanac .pips i.done { background: var(--dim); }
.theme-almanac .pips i.now { background: var(--ink); }
.theme-almanac .when { max-width: 600px; }
.theme-almanac .card { position: relative; overflow: hidden; margin: 2px 0 0; padding: 20px 18px 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
.theme-almanac .timer { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.theme-almanac .timer .bar { position: absolute; left: 0; top: 0; height: 3px; width: calc(var(--left) * 100%); background: var(--ink); }
.theme-almanac .timer .secs { position: absolute; right: 14px; top: 10px; color: var(--dim); font: 600 13px/1 var(--mono); }
.theme-almanac .event { margin: 10px 0 0; padding-right: 22px; font: 400 28px/1.14 var(--display); letter-spacing: -0.012em; }
.theme-almanac .event.small { margin-top: 0; padding-right: 0; font-size: 22px; line-height: 1.2; }
.theme-almanac .start-line { margin: 8px 0 0; color: var(--dim); font-size: 16px; }
/* The year: four digit cells while you type, your year in ink; on the reveal the real year in violet. The field itself
   is an input over the cells (inputmode none keeps the phone keyboard down; our pad types). */
.theme-almanac .stamp { display: inline-flex; align-items: flex-end; margin: 20px 0 0; color: var(--ink); font: 600 52px/1 var(--mono); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.theme-almanac .stamp.entry { position: relative; gap: 8px; }
.theme-almanac .stamp.entry.blank { color: var(--dim); }
.theme-almanac .stamp.entry:focus-within { outline: 3px solid var(--ink); outline-offset: 8px; border-radius: 4px; }
.theme-almanac .year-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.theme-almanac .stamp .slot { position: relative; display: block; width: 0.64em; height: 1.12em; text-align: center; }
.theme-almanac .stamp.entry .slot::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: 0; height: 3px; border-radius: 1px; background: var(--rule); }
.theme-almanac .stamp.entry:focus-within .slot.caret::after { background: var(--ink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.theme-almanac .stamp.truth { color: var(--truth); animation: land 180ms cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes land { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
.theme-almanac .verdict-row { display: flex; align-items: center; gap: 14px; }
.theme-almanac .bull { width: 30px; height: 30px; margin-top: 20px; fill: none; stroke: var(--truth); stroke-width: 2; }
.theme-almanac .bull .dot { fill: var(--truth); stroke: none; }
.theme-almanac .you-line { margin: 14px 0 0; font: 500 15px/1.3 var(--mono); }
.theme-almanac .you-line i { margin: 0 8px; color: var(--dim); font-style: normal; }
.theme-almanac .you-line b { font-weight: 600; }
/* Our own number pad: three by four, flat keys; Lock in is the last key. */
.theme-almanac .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.theme-almanac .key { min-height: 54px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); font: 500 25px/1 var(--mono); }
.theme-almanac .key:active { background: var(--rule); }
.theme-almanac .key.del { display: grid; place-items: center; }
.theme-almanac .key.del svg { width: 28px; height: 20px; }
.theme-almanac .key.go { border-color: var(--ink); background: var(--ink); color: var(--on-accent); font: 600 16px/1 var(--ui); }
.theme-almanac .key.go:disabled { border: 1px dashed var(--rule-strong); background: transparent; color: var(--dim); cursor: default; }
/* The reveal: the points, then the crowd on the ruler. */
.theme-almanac .when .chart-score { margin-top: 18px; }
.theme-almanac .ruler { display: block; width: 100%; height: auto; margin: 16px 0 0; overflow: visible; }
.theme-almanac .ruler .hatch { stroke: var(--dim); stroke-width: 1.1; stroke-opacity: 0.6; }
.theme-almanac .ruler .hill { stroke: var(--dim); stroke-width: 1; stroke-linejoin: round; }
.theme-almanac .ruler .axis { stroke: var(--rule-strong); stroke-width: 1; }
.theme-almanac .ruler .minor { stroke: var(--dim); stroke-width: 1; }
.theme-almanac .ruler .major { stroke: var(--rule-strong); stroke-width: 1; }
.theme-almanac .ruler .lbl { fill: var(--dim); font: 500 10.5px var(--mono); }
.theme-almanac .ruler .truth-line { stroke: var(--truth); stroke-width: 2.5; }
.theme-almanac .ruler .truth-dot { fill: var(--truth); stroke: var(--screen); stroke-width: 2; }
.theme-almanac .ruler .pin { stroke: var(--ink); stroke-width: 2; }
.theme-almanac .ruler .pin-dot { fill: var(--ink); stroke: var(--screen); stroke-width: 2; }
.theme-almanac .ruler .avg-line { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 3 3; }
.theme-almanac .ruler .tag { font: 600 12.5px var(--mono); }
.theme-almanac .ruler .tag.you { fill: var(--ink); }
.theme-almanac .ruler .tag.avg { fill: var(--dim); }
.theme-almanac .table-link { margin: 6px 0 0; font-size: 13px; }
.theme-almanac .crowd-table { margin-top: 10px; }
.theme-almanac .stamp.truth.mid { margin-top: 12px; font-size: 38px; animation: none; }
/* The archive day: every event with its year, the crowd's average guess, the ruler, the why and the sources. */
.theme-almanac .day-list { margin-top: 8px; }
.theme-almanac .event-day { padding: 18px 0 12px; border-top: 1px solid var(--rule); }
.theme-almanac .day-list .event-day:first-child { border-top: 0; }
.theme-almanac .event-day h2 { margin: 6px 0 0; font: 400 24px/1.18 var(--display); }
.theme-almanac .event-day .avg { margin: 12px 0 0; color: var(--dim); font-size: 15px; }
.theme-almanac .event-day .avg b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.theme-almanac .event-day .ruler { margin-top: 6px; }
.theme-almanac .event-day .context { margin-top: 10px; }
.theme-almanac .eyebrow span + span::before { background: var(--truth); }
/* "Your seven" on the report: each event on the day's one line of years. */
.theme-almanac .seven { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.theme-almanac .seven li { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.theme-almanac .seven .q { margin: 0; font: 400 16px/1.25 var(--display); }
.theme-almanac .seven .n { margin-right: 8px; color: var(--dim); font: 600 11px var(--mono); }
.theme-almanac .seven .tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--ink); border-radius: 3px; font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; }
.theme-almanac .seven .row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; margin-top: 8px; }
.theme-almanac .strip { display: block; width: 150px; height: auto; overflow: visible; }
.theme-almanac .seven-scale { margin: -4px 0 4px; }
.theme-almanac .strip.scale text { fill: var(--dim); font: 500 9.5px var(--mono); }
.theme-almanac .strip .axis { stroke: var(--rule-strong); stroke-width: 1; }
.theme-almanac .strip .span { stroke: var(--dim); stroke-width: 2.4; }
.theme-almanac .strip .you { stroke: var(--ink); stroke-width: 2; }
.theme-almanac .strip .ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.theme-almanac .strip .truth { fill: var(--truth); }
.theme-almanac .seven .vals { color: var(--dim); font: 500 13px var(--mono); }
.theme-almanac .seven .vals i { margin: 0 6px; font-style: normal; }
.theme-almanac .seven .vals b { color: var(--truth); font-weight: 600; }
.theme-almanac .seven .pts { font: 600 18px var(--mono); text-align: right; }
@media (min-width: 720px) {
  .theme-almanac .seven .row { grid-template-columns: 240px 1fr auto; }
  .theme-almanac .seven .strip, .theme-almanac .seven-scale .strip { width: 240px; }
  .theme-almanac .seven .q { font-size: 18px; }
  .theme-almanac .stamp.truth.mid { font-size: 44px; }
}
/* The why line, upright in the body face (4b: the shared italic is decorative here). */
.theme-almanac .context { margin-top: 16px; font: 400 17px/1.4 var(--ui); }
@media (min-width: 720px) {
  .theme-almanac .card { padding: 28px 28px 30px; }
  .theme-almanac .event { font-size: 40px; }
  .theme-almanac .event.small { font-size: 28px; }
  .theme-almanac .stamp { font-size: 72px; }
  .theme-almanac .pad { max-width: 400px; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .round-clock .bar { transition: none; }
  .theme-almanac .stamp.truth { animation: none; }
  .theme-almanac .stamp.entry:focus-within .slot.caret::after { animation: none; }
}

@media (min-width: 720px) {
  .chrome { padding: 0 24px; }
  .chart-title, .start .start-title { font-size: 44px; }
  .report-title, .info h1 { font-size: 46px; }
  .big b { font-size: 96px; }
  .big.long b { font-size: 80px; }
  .watchlist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; border-top: 0; }
  .watch { display: block; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
  .watch .sym { display: block; margin-bottom: 6px; }
  .watch .mini { height: auto; }
  .watch .pts { display: block; margin-top: 6px; text-align: left; }
  .title-block { grid-template-columns: repeat(4, 1fr); }
  .title-block.six { grid-template-columns: repeat(3, 1fr); }
  .ledger .wide, .index .wide { display: table-cell; }
  .index .num { width: 64px; font-size: 22px; }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-mark { font-size: 96px; }
}
@media (max-width: 719px) {
  .only-wide { display: none !important; }
}
@media (min-width: 720px) {
  .only-phone { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .chart.revealed .truth { stroke-dashoffset: 0; }
}
