/* The look: a small daily treat. Cream paper, plum ink, and three layers
   (jam, custard, sage) for the three games, like the pudding of the name.
   Colours are tokens here; a light set and a dark set. */
:root {
  --bg: #fbf6ec;
  --bg-deep: #f3ead9;
  --surface: #fffdf8;
  --text: #2a1f2d;
  --muted: #5d5262;
  --line: #e2d6c3;
  --line-strong: #c9b9a2;
  --accent: #4a2559;          /* plum: links, the main buttons */
  --accent-text: #fffaf0;
  --right: #1d6638;
  --right-bg: #e3f1e6;
  --wrong: #9d2a24;
  --wrong-bg: #f9e6e1;
  --focus: #c25e00;
  --gold: #835500;
  --pick: #4a2559;
  --pick-bg: #efe4f3;
  --door: #4a2559; --door-text: #fffaf0;
  /* The three layers. --x is text and marks; --x-bg a tint behind text; --x-fill a bright band. */
  --shelf: #a3264b;  --shelf-bg: #f9e4ea;  --shelf-fill: #d9476f;
  --vintage: #835500; --vintage-bg: #fbeec8; --vintage-fill: #f0c24f;
  --carbon: #2c6957; --carbon-bg: #dceee5; --carbon-fill: #6fb59c;
  --game: var(--accent); --game-bg: var(--pick-bg); --game-fill: var(--accent);
  --on-game: #fffaf0;
  --shadow: 0 1px 1px rgba(60, 35, 30, .06), 0 3px 10px rgba(60, 35, 30, .07);
  --shadow-up: 0 2px 2px rgba(60, 35, 30, .07), 0 10px 26px rgba(60, 35, 30, .12);
  --title: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18131b;
    --bg-deep: #120e14;
    --surface: #231c27;
    --text: #f3ece1;
    --muted: #c4b8c3;
    --line: #3b3140;
    --line-strong: #56495c;
    --accent: #e3c3f0;
    --accent-text: #22102b;
    --right: #8fd6a6;
    --right-bg: #173023;
    --wrong: #f5a99c;
    --wrong-bg: #3a1f1c;
    --focus: #ffb35c;
    --gold: #f1c868;
    --pick: #e3c3f0;
    --pick-bg: #33233b;
    --door: #3a2646; --door-text: #f3ece1;
    --shelf: #f4a3b9;  --shelf-bg: #3a1a27;  --shelf-fill: #d9476f;
    --vintage: #f1c868; --vintage-bg: #362a10; --vintage-fill: #c99a2a;
    --carbon: #8fd4ba; --carbon-bg: #15302a; --carbon-fill: #3f8f75;
    --on-game: #1b1016;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow-up: 0 6px 22px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
[data-view="shelf"], .tile--shelf, .tt--shelf, .wl--shelf { --game: var(--shelf); --game-bg: var(--shelf-bg); --game-fill: var(--shelf-fill); }
[data-view="vintage"], .tile--vintage, .tt--vintage, .wl--vintage { --game: var(--vintage); --game-bg: var(--vintage-bg); --game-fill: var(--vintage-fill); }
[data-view="carbon"], .tile--carbon, .tt--carbon, .wl--carbon { --game: var(--carbon); --game-bg: var(--carbon-bg); --game-fill: var(--carbon-fill); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.55;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.12; margin: 0; font-optical-sizing: auto; }
button { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.muted { color: var(--muted); }

/* ----- The layers: three bands, used for the wordmark and Wits' End ----- */
.layers { display: block; height: 9px; border-radius: 5px; overflow: hidden;
  background: linear-gradient(to bottom, var(--shelf-fill) 0 33.4%, var(--vintage-fill) 33.4% 66.7%, var(--carbon-fill) 66.7% 100%); }

/* ----- Header and the wordmark ----- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.site-name { display: inline-grid; gap: 2px; color: var(--text); text-decoration: none; line-height: 1; padding: .15rem 0; }
.wordmark { font-family: var(--title); font-style: italic; font-weight: 700; font-size: 2.15rem; letter-spacing: -.01em; line-height: 1; }
.wordmark .wm-dot { color: var(--shelf); font-style: normal; }
.site-name .layers { width: 100%; height: 7px; border-radius: 4px; }
.site-name:hover .wordmark { color: var(--accent); }
.top-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
/* Job 10: Easy or Hard */
.mode-switch { display: inline-flex; border: 2px solid var(--accent); border-radius: 999px; overflow: hidden; flex: none; }
.mode-switch button { background: transparent; color: var(--accent); border: 0; min-height: 40px; min-width: 3.6rem; padding: .2rem .8rem; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.mode-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: -5px; }
.mode-switch-about { margin: 0 .4rem; vertical-align: middle; }
.mode-switch-about button { min-height: 36px; }
.about-mode-h { margin: 1.2rem 0 .3rem; font-size: 1.05rem; }
.link-btn { background: none; border: 0; padding: .35rem 0; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; font-size: 1rem; min-height: 44px; }
.link-btn:hover { text-decoration-thickness: 2px; }

.epigraph { margin: 1.4rem 0 .9rem; text-align: right; font-family: var(--title); font-style: italic; font-size: 1.15rem; color: var(--muted); line-height: 1.35; }
.epigraph q { color: var(--text); }
.epigraph q::before { content: "\201C"; }
.epigraph q::after { content: "\201D"; }
.epigraph cite { display: block; font-style: normal; font-family: var(--body); font-size: .9rem; margin-top: .1rem; }

.dayline { margin: 1.1rem 0 .4rem; color: var(--muted); font-size: 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; align-items: baseline; }
.dayline [data-dayline] { font-weight: 700; color: var(--text); letter-spacing: .02em; }
.view-title { font-size: 2.3rem; margin: .2rem 0 0; letter-spacing: -.01em; }
.view-title:focus { outline: none; }
[data-view="home"] .view-title { font-style: italic; font-size: 2.6rem; }
.game-no { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-right: .4rem; border-radius: 50%; background: var(--game); color: var(--on-game); font-size: 1.35rem; vertical-align: .18em; font-family: var(--title); font-style: italic; font-weight: 700; }
.crumb { margin: .5rem 0 .25rem; font-size: 1rem; }
.crumb a::before { content: "\2190\00a0"; text-decoration: none; display: inline-block; }
.lede { margin: .3rem 0 1rem; }

/* ----- Shelf Life cards ----- */
.end-label { margin: .3rem 0; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.end-label::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem .6rem .7rem .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--game-fill);
  border-radius: 12px;
  box-shadow: var(--shadow);
  touch-action: none; /* the card takes the gesture; the page scrolls from outside the cards */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.card .move { cursor: pointer; }
.cards { position: relative; }
.card.dragging { z-index: 5; box-shadow: var(--shadow-up); cursor: grabbing; scale: 1.03; }
.card.slide { transition: transform .18s ease; }
.card.landing { transition: transform .2s ease; }
.cards.is-dragging, .cards.is-dragging .card { cursor: grabbing; }
.drop-place { position: absolute; list-style: none; border: 2px dashed var(--game); border-radius: 12px; background: var(--game-bg); opacity: .8; pointer-events: none; z-index: 0; }
.cards .card { z-index: 1; }
.cards .card.dragging { z-index: 5; }
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.handle {
  width: 44px; min-height: 56px; border: 0; background: none; cursor: grab;
  display: grid; place-items: center; color: var(--muted); border-radius: 8px;
}
.handle svg { width: 16px; height: 26px; }
.card-body { min-width: 0; }
.kind { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.kind svg { width: 16px; height: 16px; flex: none; color: var(--game); }
.card-title { font-family: var(--title); font-size: 1.32rem; font-weight: 600; line-height: 1.2; margin: .15rem 0 0; overflow-wrap: anywhere; }
.card-author { margin: .1rem 0 0; color: var(--muted); font-style: italic; }
.moves { display: flex; flex-direction: column; gap: .35rem; }
.move {
  width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.move:hover:not(:disabled) { border-color: var(--game); color: var(--game); }
.move svg { width: 18px; height: 18px; }
.move:disabled { opacity: .3; cursor: default; }

.actions { margin: 1.25rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.primary {
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 999px;
  padding: .75rem 1.8rem; font-weight: 700; cursor: pointer; min-height: 50px; font-size: 1.125rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18); letter-spacing: .01em;
}
.game .primary { background: var(--game); color: var(--on-game); }
.primary:hover { filter: brightness(1.08); }
.primary:active { translate: 0 1px; box-shadow: none; }

/* ----- The score: a library stamp ----- */
.score { margin: .6rem 0 1.1rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.1rem; align-items: center; }
.score:focus { outline: none; }
.score:focus-visible { outline: 3px solid var(--focus); }
.score-big { grid-row: span 2; font-family: var(--mono); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--game); border: 3px solid var(--game); border-radius: 10px; padding: .45rem .7rem .4rem; rotate: -4deg; white-space: nowrap; background: var(--game-bg); }
.score-sub { margin: 0; color: var(--muted); grid-row: span 2; }
.score-strip-row { margin: .35rem 0 0; color: var(--muted); }

.revealed .card { grid-template-columns: auto 1fr; padding-left: .75rem; }
.verdict { display: grid; justify-items: center; gap: .15rem; width: 4.6rem; font-size: .85rem; font-weight: 700; text-align: center; line-height: 1.1; }
.verdict svg { width: 24px; height: 24px; }
.card.is-right { border-color: var(--right); border-left-color: var(--right); background: var(--right-bg); }
.card.is-right .verdict { color: var(--right); }
.card.is-wrong { border-color: var(--wrong); border-left-color: var(--wrong); background: var(--wrong-bg); border-style: dashed; }
.card.is-wrong .verdict { color: var(--wrong); }
.card-date { margin: .25rem 0 0; font-weight: 700; font-variant-numeric: lining-nums; }
.card-full { margin: .1rem 0 0; color: var(--muted); font-size: 1rem; }

.truth { margin: 1.5rem 0; }
.truth-list { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: .1rem; }
.truth-list li { counter-increment: t; position: relative; padding: .4rem 0 .4rem 2.2rem; border-bottom: 1px dotted var(--line-strong); }
.truth-list li::before { content: counter(t); position: absolute; left: .2rem; top: .3rem; font-family: var(--title); font-style: italic; font-weight: 700; color: var(--game); font-size: 1.25rem; }
.truth-list .t-date { font-weight: 700; }
.truth-list .t-who { color: var(--muted); }

/* ----- Marginalia: a note in the margin ----- */
.talk { position: relative; margin: 1.6rem 0; padding: 1.1rem 1.2rem 1.2rem 1.3rem; background: var(--game-bg); border-radius: 4px var(--radius) var(--radius) 4px; border-left: 4px solid var(--game); }
.talk h2 { font-family: var(--body); font-size: .85rem !important; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--game); margin-bottom: .35rem !important; }
.talk p { margin: 0; font-family: var(--title); font-style: italic; font-size: 1.42rem; line-height: 1.32; }

.share-status { color: var(--muted); }
.share-box { margin: 0 0 1rem; display: grid; gap: .35rem; }
.share-box textarea { width: 100%; font-family: var(--mono); font-size: 1rem; padding: .7rem; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--bg); color: var(--text); resize: vertical; }
.come-back { color: var(--muted); margin: .5rem 0 0; }

.foot { margin: 2.5rem auto 2.5rem; color: var(--muted); font-size: 1rem; }
.foot .layers { width: 4.5rem; height: 6px; margin-bottom: .8rem; }

/* ----- Pop-outs ----- */
.pop { border: 0; border-radius: 18px; padding: 0; background: var(--surface); color: var(--text); width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 16px 50px rgba(0, 0, 0, .35); }
.pop::backdrop { background: rgba(24, 12, 28, .58); }
.pop-inner { padding: 1.3rem 1.3rem 1.6rem; position: relative; }
.pop h2 { font-size: 1.95rem; font-style: italic; margin: 0 5rem .75rem 0; }
.close { position: absolute; top: .9rem; right: .9rem; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; min-height: 44px; }
.pop p { margin: 0 0 .75rem; }
.pop h3 { font-size: 1.3rem; margin: 1.1rem 0 .3rem; }
.past-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.past-list a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1rem; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.past-list a:hover { border-color: var(--accent); }
.past-list .played { color: var(--right); font-weight: 700; }
.past-list .unplayed { color: var(--muted); }
.past-list .today { font-weight: 700; }
.pd { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pscores { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .95rem; }
.ps.played { color: var(--right); font-weight: 700; }

/* ----- Home: Today's Trifle ----- */
.tiles { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.tile-link {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  padding: 1rem 1rem 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-height: 6rem; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile-link::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--game-fill); }
.tile-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--game); }
.tile-no { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--game-bg); color: var(--game); font-family: var(--title); font-style: italic; font-weight: 700; font-size: 1.7rem; line-height: 1; }
.tile-body { display: grid; gap: .05rem; min-width: 0; }
.tile-name { font-family: var(--title); font-size: 1.6rem; font-weight: 650; line-height: 1.1; }
.tile-blurb { color: var(--muted); font-size: 1rem; line-height: 1.35; }
.tile-status { display: grid; justify-items: end; gap: .35rem; text-align: right; }
.tile-score { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: var(--game); border: 2px solid var(--game); border-radius: 8px; padding: .15rem .5rem; rotate: -4deg; background: var(--game-bg); }
.tile-score svg { width: 16px; height: 16px; }
.tile-act { color: var(--accent); font-size: .95rem; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.tile-play { background: var(--game); color: var(--on-game); text-decoration: none; font-weight: 700; padding: .55rem 1.2rem; border-radius: 999px; font-size: 1.05rem; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.tile.is-done .tile-no { background: var(--game); color: var(--on-game); }

.crown { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold); font-family: var(--body); font-style: normal; font-size: 1rem; font-weight: 700; vertical-align: middle; }
.crown svg { width: 34px; height: 26px; flex: none; }
.crown-mark { margin-left: .4rem; }

/* ----- Wits' End: the three layers in a glass ----- */
.wits { margin: 2rem 0 1rem; padding: 1.3rem 1.2rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-up); }
.wits h2 { font-size: 2.3rem; font-style: italic; }
.wits h3 { font-family: var(--body); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 1.4rem 0 .6rem; }
.wits-crown { margin: .5rem 0 0; }
.wits-scores { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0; border-radius: 8px 8px 30px 30px; overflow: hidden; border: 2px solid var(--line-strong); }
.wits-scores li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--game-bg); border-top: 3px solid var(--game-fill); }
.wits-scores li:first-child { border-top: 0; }
.ws-name { font-family: var(--title); font-size: 1.35rem; font-weight: 600; }
.ws-score { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; white-space: nowrap; color: var(--game); }
.wits-talk { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.wits-talk li { font-family: var(--title); font-style: italic; font-size: 1.25rem; line-height: 1.3; padding-left: .9rem; border-left: 3px solid var(--game-fill); }
.wt-game { display: block; font-family: var(--body); font-style: normal; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ----- Table Talk's way in ----- */
.more { margin: 2.2rem 0 1rem; }
.tt-door { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--door); color: var(--door-text); border: 2px solid var(--accent); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.tt-door:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.tt-door svg { width: 46px; height: 38px; grid-row: span 2; }
.tt-door-name { font-family: var(--title); font-style: italic; font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.tt-door-blurb { font-size: 1rem; line-height: 1.35; opacity: .95; }

.next .actions { margin-top: 1.5rem; }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; }
.quiet-link { color: var(--accent); }

/* ----- Vintage: the year as a bookplate ----- */
.plate { margin: .8rem 0 .3rem; padding: .7rem 1rem .8rem; text-align: center; border: 4px double var(--game); border-radius: 6px; background: var(--game-bg); position: relative; }
.plate-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .25em; font-weight: 700; color: var(--game); }
.plate .big-year { margin: 0; color: var(--text); }
.big-year { display: block; font-family: var(--title); font-weight: 700; font-size: 4.8rem; line-height: 1; margin: .5rem 0 .25rem; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.picks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pick { width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; text-align: left; padding: .75rem .8rem; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; min-height: 4.6rem; transition: border-color .12s ease, background-color .12s ease; }
.pick:hover { border-color: var(--game); }
.pick.is-on { border-color: var(--pick); background: var(--pick-bg); border-width: 3px; padding: calc(.75rem - 1px) calc(.8rem - 1px); }
.pick-box { width: 30px; height: 30px; border: 2px solid var(--muted); border-radius: 8px; display: grid; place-items: center; color: var(--pick); flex: none; }
.pick.is-on .pick-box { border-color: var(--pick); background: var(--surface); }
.pick-box svg { width: 20px; height: 20px; }
.pick-body { display: grid; gap: .1rem; min-width: 0; }
.pick-body .card-title { display: block; margin: 0; }
.pick-body .card-author { display: block; margin: 0; }
.pick-word { font-size: .9rem; font-weight: 700; color: var(--pick); min-width: 3.6rem; text-align: right; }
.picked-count { color: var(--muted); margin: .6rem 0 0; }
.pick-out { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); height: 100%; }
.pick-out.is-right { border-color: var(--right); background: var(--right-bg); }
.pick-out.is-right .verdict { color: var(--right); }
.pick-out.is-wrong { border-color: var(--wrong); background: var(--wrong-bg); border-style: dashed; }
.pick-out.is-wrong .verdict { color: var(--wrong); }
.pick-out .verdict { padding-top: .2rem; }
.card-you { margin: .2rem 0 0; font-size: 1rem; }

.meanwhile { margin: 1.6rem 0; }
.meanwhile h2, .truth h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.meanwhile h2 { font-style: italic; }
.mw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mw-list li { padding: .45rem .8rem; border-left: 3px solid var(--game-fill); }
.mw-date { font-weight: 700; margin-right: .35rem; }
.mw-list .kind { margin-right: .25rem; }
.mw-title { font-family: var(--title); font-size: 1.2rem; }

/* ----- Carbon Dating: the passage as a page ----- */
.passage { position: relative; margin: 1.1rem 0 1.3rem; padding: 1.6rem 1.3rem 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px 6px var(--radius) var(--radius); box-shadow: var(--shadow), 6px 6px 0 -1px var(--bg-deep), 6px 6px 0 0 var(--line); }
.passage::before { content: "\201C"; position: absolute; top: -.35em; left: .2em; font-family: var(--title); font-weight: 700; font-size: 4.6rem; line-height: 1; color: var(--game-fill); }
.passage p { margin: 0; font-family: var(--title); font-size: 1.38rem; line-height: 1.5; font-optical-sizing: auto; }
.guess { padding: 1rem 0 .25rem; }
.guess-label { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.guess .big-year { margin: .05rem 0 .6rem; color: var(--game); }
.year-slider { width: 100%; margin: 0; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 50%; }
.year-slider::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--game) var(--fill), var(--line-strong) var(--fill)); }
.year-slider::-moz-range-track { height: 10px; border-radius: 5px; background: var(--line-strong); }
.year-slider::-moz-range-progress { height: 10px; border-radius: 5px; background: var(--game); }
.year-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: var(--surface); border: 4px solid var(--game); box-shadow: var(--shadow-up); }
.year-slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 4px solid var(--game); }
.year-slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.ticks { position: relative; height: 1.6rem; margin: 0 17px; font-size: .85rem; color: var(--muted); }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ticks span::before { content: ""; display: block; width: 1px; height: 6px; background: var(--muted); margin: 0 auto 2px; }
.nudge { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.nudge button { min-width: 3.4rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.nudge button:hover { border-color: var(--game); color: var(--game); }
.work-card { padding: 1rem 1.1rem; border-radius: 12px; background: var(--game-bg); border: 1px solid var(--line); }
.work-card .card-title { font-size: 1.55rem; font-style: italic; }
.line { margin: 1.25rem 0 .5rem; padding: 2.4rem 0 0; }
.line-track { position: relative; height: 10px; border-radius: 5px; background: var(--line-strong); margin: 0 1.5rem; }
.line-gap { position: absolute; top: 0; height: 10px; background: var(--game-fill); border-radius: 5px; }
.line-pin { position: absolute; top: -6px; width: 0; }
.line-pin::before { content: ""; position: absolute; left: -11px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--game); background: var(--surface); }
.pin-true::before { background: var(--game); }
.line-pin span { position: absolute; bottom: 24px; transform: translateX(-50%); white-space: nowrap; font-size: .95rem; font-weight: 700; }
.pin-guess span { bottom: auto; top: 26px; color: var(--muted); }
.line-ends { display: flex; justify-content: space-between; margin-top: 1.9rem; color: var(--muted); font-size: .9rem; }
.date-note { font-weight: 400; color: var(--muted); }

/* ----- Motion on reveal: small and quick ----- */
@keyframes stamp { 0% { opacity: 0; transform: scale(1.5); } 70% { opacity: 1; transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.just-revealed .score-big { animation: stamp .38s cubic-bezier(.2, .9, .3, 1.2) both; }
.just-revealed .revealed > li, .just-revealed .work-card, .just-revealed .talk, .just-revealed .meanwhile { animation: rise .32s ease-out both; }
.just-revealed .revealed > li:nth-child(2) { animation-delay: .05s; }
.just-revealed .revealed > li:nth-child(3) { animation-delay: .1s; }
.just-revealed .revealed > li:nth-child(4) { animation-delay: .15s; }
.just-revealed .revealed > li:nth-child(5) { animation-delay: .2s; }
.just-revealed .revealed > li:nth-child(6) { animation-delay: .25s; }
.just-revealed .meanwhile { animation-delay: .25s; }
.just-revealed .talk { animation-delay: .32s; }
.wits.is-new { animation: rise .4s ease-out both; }

@media (min-width: 640px) {
  .picks { grid-template-columns: 1fr 1fr; }
  .big-year { font-size: 5.6rem; }
  .wordmark { font-size: 2.4rem; }
}
@media (min-width: 900px) {
  .wrap { max-width: 50rem; }
  .view-title { font-size: 2.7rem; }
  [data-view="home"] .view-title { font-size: 3.1rem; }
  .card-title { font-size: 1.45rem; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile-link { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-items: start; height: 100%; padding: 1.2rem 1.2rem 1.2rem 1.4rem; gap: .7rem; }
  .tile-link::before { inset: 0 0 auto 0; width: auto; height: 8px; }
  .tile-status { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; gap: 1rem; }
  .passage p { font-size: 1.5rem; }
}
@media (min-width: 1600px) {
  body { font-size: 1.25rem; }
  .wrap { max-width: 56rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card.dragging { scale: none; }
}

/* =================== Table Talk: the big screen =================== */
/* Sized from the screen: at 1920x1080 the body is 33px; everything fits, nothing scrolls. */
body.is-tv { overflow: hidden; }
body.is-tv .top, body.is-tv .foot, body.is-tv .dayline, body.is-tv .skip { display: none; }
body.is-tv main.wrap { max-width: none; padding: 0; }
.tv-frame {
  position: fixed; inset: 0; z-index: 20; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto auto;
  font-size: min(3.05vh, 1.72vw); line-height: 1.35;
  padding: 1.1em 2.2em 1em; background: var(--bg);
  background-image: radial-gradient(ellipse at 100% 0%, var(--game-bg), transparent 55%);
}
.tv { --game: var(--accent); --game-bg: var(--pick-bg); --game-fill: var(--accent); }
.tv-top { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.2em; padding-bottom: .6em; border-bottom: 2px solid var(--line); }
.tv-mark { display: inline-grid; gap: .12em; }
.tv-mark .wordmark { font-size: 1.5em; }
.tv-mark .layers { height: .22em; }
.tv-where { font-family: var(--body); font-size: .8em !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 !important; font-style: normal !important; }
.tv-btn { font-size: .85em; min-height: 2.2em; padding: .35em 1.1em; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 700; }
.tv-btn:hover:not(:disabled) { border-color: var(--game); }
.tv-btn:disabled { opacity: .35; cursor: default; }
.tv-main { background: var(--game); border-color: var(--game); color: var(--on-game); font-size: 1em; padding: .4em 1.6em; min-width: 7em; }
.tt-step-intro .tv-main, .tt-step-close .tv-main { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.tv-btn:focus-visible { outline: .14em solid var(--focus); outline-offset: .14em; }
.tv-controls { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding-top: .6em; }
.tv-stage { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: .6em 0; --fit: 1; }
.tv--shelf, .tt--shelf { --game: var(--shelf); --game-bg: var(--shelf-bg); --game-fill: var(--shelf-fill); }
.tt--vintage { --game: var(--vintage); --game-bg: var(--vintage-bg); --game-fill: var(--vintage-fill); }
.tt--carbon { --game: var(--carbon); --game-bg: var(--carbon-bg); --game-fill: var(--carbon-fill); }

.tv-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8em; padding-top: .4em; color: var(--muted); font-size: .7em; }
.tv-bar-track { height: .35em; border-radius: 1em; background: var(--line); overflow: hidden; }
.tv-bar-fill { display: block; height: 100%; background: var(--game-fill); transform-origin: left center; transition: transform .25s linear; }
.tv-bar-secs { font-variant-numeric: tabular-nums; min-width: 3em; text-align: right; }

.tt-kicker { margin: 0 0 .6em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .6em; font-family: var(--title); font-weight: 700; font-size: 1.9em; line-height: 1.1; }
.tt-no { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--game); color: var(--on-game); font-style: italic; font-size: .8em; align-self: center; }
.tt-sub { flex-basis: 100%; font-family: var(--body); font-weight: 400; font-size: .5em; color: var(--muted); }

.tt-title { font-size: 3.6em; font-style: italic; letter-spacing: -.015em; }
.tt-title:focus { outline: none; }
.tt-title-sm { font-size: 2.2em; margin-bottom: .6em; }
.tt-intro { display: grid; gap: .7em; max-width: 34em; }
.tt-lead { margin: 0; font-size: 1.25em; }
.tt-note { margin: 0; padding: .5em .8em; border-left: .18em solid var(--accent); background: var(--surface); border-radius: 0 .4em .4em 0; }
.tt-options { display: flex; flex-wrap: wrap; gap: .6em; margin-top: .3em; }
.tt-toggle { display: inline-flex; align-items: center; gap: .6em; font-size: .9em; min-height: 2.4em; padding: .3em 1em; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.tt-switch { width: 2em; height: 1.1em; border-radius: 1em; background: var(--line-strong); position: relative; flex: none; }
.tt-switch::after { content: ""; position: absolute; top: .15em; left: .15em; width: .8em; height: .8em; border-radius: 50%; background: var(--surface); transition: left .15s ease; }
.tt-toggle[aria-pressed="true"] .tt-switch { background: var(--accent); }
.tt-toggle[aria-pressed="true"] .tt-switch::after { left: 1.05em; }
.tt-keys { margin: 0; color: var(--muted); font-size: .8em; }
.tt-linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 1em; }

.tt-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; font-size: max(1em, calc(1.05em * var(--fit))); }
.tt-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3em .8em; padding: .45em .8em .45em .5em; background: var(--surface); border: 2px solid var(--line); border-left: .25em solid var(--game-fill); border-radius: .45em; box-shadow: var(--shadow); }
.tt-letter { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: .35em; background: var(--game-bg); color: var(--game); font-family: var(--title); font-weight: 700; font-size: 1.15em; }
.tt-card-body { display: grid; min-width: 0; }
.tt-card .kind { font-size: .55em; }
.tt-card .kind svg { width: 1.1em; height: 1.1em; }
.tt-card-title { font-family: var(--title); font-weight: 600; font-size: 1.05em; line-height: 1.15; }
.tt-card-author { color: var(--muted); font-style: italic; font-size: .8em; }
.tt-answer .tt-card { grid-template-columns: auto auto 1fr; }
.tt-date { font-weight: 700; font-size: 1em; min-width: 5em; white-space: nowrap; color: var(--game); }

.tt-vintage { display: grid; grid-template-columns: auto 1fr; gap: 1.2em; align-items: center; }
.tt-plate { text-align: center; padding: .4em .7em .5em; border: .2em double var(--game); border-radius: .2em; background: var(--game-bg); }
.tt-plate .plate-label { font-size: .5em; }
.tt-year { display: block; font-family: var(--title); font-weight: 700; font-size: 4.6em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tt-six { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5em; font-size: max(1em, calc(1em * var(--fit))); }
.tt-six .tt-card { align-items: start; height: 100%; }
.tt-mark { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; font-size: .7em; text-transform: uppercase; letter-spacing: .06em; }
.tt-mark svg { width: 1.3em; height: 1.3em; }
.tt-card.is-in { background: var(--right-bg); border-color: var(--right); border-left-color: var(--right); }
.tt-card.is-in .tt-mark { color: var(--right); }
.tt-card.is-out { background: var(--wrong-bg); border-color: var(--wrong); border-left-color: var(--wrong); border-style: dashed; }
.tt-card.is-out .tt-mark { color: var(--wrong); }
.tt-card-when { font-weight: 700; font-size: .8em; }

.tt-passage { position: relative; margin: 0; padding: .9em 1.2em .9em 1.4em; background: var(--surface); border: 2px solid var(--line); border-radius: .3em .3em .6em .6em; box-shadow: var(--shadow), .3em .3em 0 -.05em var(--bg-deep); font-size: max(1em, calc(1.35em * var(--fit))); }
.tt-passage::before { content: "\201C"; position: absolute; top: -.32em; left: .12em; font-family: var(--title); font-weight: 700; font-size: 3em; line-height: 1; color: var(--game-fill); }
.tt-passage p { margin: 0; font-family: var(--title); line-height: 1.42; }

.tt-work { display: grid; justify-items: start; gap: .15em; }
.tt-year-xl { font-size: 5.5em; color: var(--game); }
.tt-work-title { font-family: var(--title); font-style: italic; font-weight: 700; font-size: 2.1em; line-height: 1.1; }
.tt-work-author { font-size: 1.3em; }
.tt-work-note { color: var(--muted); font-size: .8em; }

.tt-talk { display: grid; gap: .5em; font-size: max(1em, calc(1em * var(--fit))); }
.tt-mw h2 { font-size: 1em; font-style: italic; margin-bottom: .2em; }
.tt-mw ul { list-style: none; margin: 0 0 .6em; padding: 0; display: grid; gap: .2em; }
.tt-mw li { padding-left: .6em; border-left: .15em solid var(--game-fill); font-size: .85em; }
.tt-mw-date { font-weight: 700; }
.tt-mw-who { color: var(--muted); }
.tt-label { margin: 0; font-size: .65em; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--game); }
.tt-q { margin: 0; font-family: var(--title); font-style: italic; font-size: 2.15em; line-height: 1.22; max-width: 26em; }

.tt-close { list-style: none; margin: 0; padding: 0; display: grid; gap: .7em; font-size: max(1em, calc(1.25em * var(--fit))); }
.tt-close li { font-family: var(--title); font-style: italic; line-height: 1.25; padding-left: .7em; border-left: .2em solid var(--game-fill); }
.tt-close-game { display: block; font-family: var(--body); font-style: normal; font-size: .5em; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--game); }

@keyframes tt-in { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
.tv-stage > * { animation: tt-in .3s ease-out both; }
.tt-step-answer .tt-card { animation: tt-in .3s ease-out both; }
.tt-step-answer .tt-card:nth-child(2) { animation-delay: .06s; }
.tt-step-answer .tt-card:nth-child(3) { animation-delay: .12s; }
.tt-step-answer .tt-card:nth-child(4) { animation-delay: .18s; }
.tt-step-answer .tt-card:nth-child(5) { animation-delay: .24s; }
.tt-step-answer .tt-card:nth-child(6) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .tv-bar-fill { transition: none; } }
@media (max-aspect-ratio: 4/5) {
  /* A phone held upright: still usable, one column. */
  .tv-frame { font-size: 4.4vw; padding: 1em; overflow-y: auto; }
  .tv-stage { overflow: visible; justify-content: flex-start; }
  .tt-vintage { grid-template-columns: 1fr; }
  .tt-six { grid-template-columns: 1fr; }
  .tt-year { font-size: 3em; }
}
/* Shelf Life on the big screen: the kind sits at the right, so each card is two lines. */
.tt-cards .tt-card-body { grid-template-columns: 1fr auto; column-gap: 1em; align-items: center; }
.tt-cards .tt-card-body .kind { grid-column: 2; grid-row: 1 / span 2; }
.tt-cards .tt-card { padding-top: .35em; padding-bottom: .35em; }
/* Big-screen sizes: secondary lines no smaller than the body, near enough. */
.tt-card-title { font-size: 1.12em; }
.tt-card-author { font-size: .95em; }
.tt-card .kind { font-size: .62em; }
.tt-card-when { font-size: .95em; }
.tt-mark { font-size: .75em; }
.tt-mw li { font-size: .95em; }
.tt-work-note { font-size: .9em; }
.tt-close + .tt-keys { margin-top: 1.2em; }
.tt-sub { font-size: .55em; }
/* A little tighter, so the longest days fit in the web fonts too. */
.tt-kicker { font-size: 1.75em; margin-bottom: .45em; }
.tt-six { gap: .4em; }
.tt-six .tt-card { padding-top: .32em; padding-bottom: .32em; }
.tt-cards { gap: .38em; }
.wits-sub { margin: .2rem 0 0; color: var(--muted); }

/* =================== Wide screens (Job 3) =================== */
/* The top day line lives in the header on wide screens only. */
.top-day { display: none; }
.wits-soon { display: none; }
@media (min-width: 1100px) {
  /* The type grows a little with the screen, and the page fits the window: at
     1280x720 to 1920x1080 no screen scrolls. Table Talk keeps its own sizes. */
  html:not(.is-tv) { font-size: clamp(16px, min(1.2vw, 2.1vh), 22px); }
  body:not(.is-tv) { font-size: 1.125rem; display: flex; flex-direction: column; min-height: 100vh; }
  .wrap { max-width: 86rem; padding: 0 2rem; }
  body:not(.is-tv) main.wrap { flex: 1 0 auto; padding-top: .7rem; padding-bottom: .4rem; }
  body:not(.is-tv) main.wrap { display: flex; flex-direction: column; }
  /* The home page sits in the middle of the window; the games start at the top. */
  [data-view="home"] { margin: auto 0; padding-bottom: 1.5vh; }
  main > .view { width: 100%; }
  .top-row { flex-wrap: nowrap; padding-top: .35rem; padding-bottom: .35rem; }
  .wordmark { font-size: 2rem; }
  .site-name .layers { height: 6px; }
  .top-day { display: flex; gap: 1rem; align-items: baseline; margin: 0 auto 0 2.5rem; color: var(--muted); font-size: 1rem; }
  .top-day [data-dayline] { font-weight: 700; color: var(--text); letter-spacing: .02em; }
  .top-nav { gap: 0 1.5rem; }
  main > .dayline { display: none; }
  .foot { margin: 0 auto; padding-top: .3rem; padding-bottom: .55rem; display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
  .foot .layers { margin: 0; width: 3.5rem; }
  .foot p { margin: 0; }
  .view-title { font-size: 2.4rem; }
  .crumb { margin: 0 0 .1rem; }
  .lede { margin: .2rem 0 .6rem; }
  .actions { margin: .8rem 0; }

  /* ----- Home: the three layers side by side, Table Talk beside them ----- */
  [data-view="home"] {
    display: grid; grid-template-columns: 1fr 1fr 1fr 15rem; column-gap: 1.1rem;
    grid-template-areas: "title title epi epi" "lede lede epi epi" "tiles tiles tiles door" "wits wits wits wits" "trolley trolley trolley trolley";
    align-content: start;
  }
  [data-view="home"] .view-title { grid-area: title; font-size: 3rem; margin-top: .3rem; }
  [data-view="home"] .lede { grid-area: lede; margin-bottom: 1rem; }
  .epigraph { grid-area: epi; align-self: center; margin: .4rem 0 0; font-size: 1.2rem; }
  .tiles { grid-area: tiles; margin: 0; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .tile-link { grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; height: 100%; min-height: 0; padding: 1.3rem 1.2rem 1rem 1.3rem; gap: .5rem .9rem; }
  .tile-link::before { inset: 0 0 auto 0; width: auto; height: 9px; }
  .tile-body { align-self: center; }
  .tile-status { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; gap: 1rem; }
  .more { grid-area: door; margin: 0; }
  [data-view="home"].is-full .tile-blurb { display: none; }
  [data-view="home"].is-full .tile-link { padding-top: 1.1rem; padding-bottom: .8rem; }
  [data-view="home"].is-full .view-title { font-size: 2.6rem; margin-top: 0; }
  [data-view="home"].is-full { padding-bottom: 0; }
  [data-view="home"].is-full .lede { margin-bottom: .7rem; }
  /* Before the three are played: an empty glass waiting to be filled */
  .wits-soon { grid-area: wits; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; margin: 1.4rem 0 0; padding: 1.2rem 1.6rem; border: 2px dashed var(--line-strong); border-radius: 22px; }
  .wits-soon h2 { font-size: 2rem; font-style: italic; }
  .wits-soon p { margin: .3rem 0 0; color: var(--muted); max-width: 46rem; }
  .soon-glass { display: grid; width: 9rem; border: 2px solid var(--line-strong); border-top: 0; border-radius: 4px 4px 26px 26px; overflow: hidden; }
  .sg { height: 2.1rem; border-top: 2px dashed var(--line-strong); }
  .sg:first-child { border-top: 0; }
  .sg.is-in { border-top: 0; }
  .sg--1.is-in { background: var(--shelf-fill); }
  .sg--2.is-in { background: var(--vintage-fill); }
  .sg--3.is-in { background: var(--carbon-fill); }
  .tt-door { height: 100%; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-content: start; padding: 1.1rem 1.1rem; }
  .tt-door svg { grid-row: auto; width: 40px; height: 34px; }
  .tt-door-blurb { grid-column: 1 / -1; }

  /* Wits' End: the glass, the three questions, the share line, side by side */
  .wits { grid-area: wits; margin: .9rem 0 0; padding: .9rem 1.4rem .9rem; display: grid; grid-template-columns: minmax(15rem, 21rem) 1fr minmax(17rem, 23rem); gap: 0 2.2rem; align-items: start; }
  .wits h2 { font-size: 2.1rem; }
  .wits h3 { margin: .35rem 0 .6rem; }
  .wits-sub { font-size: 1rem; }
  .wits-scores { margin-top: .7rem; }
  .wits-scores li { padding: .5rem 1rem; }
  .wits-talk { gap: .55rem; }
  .wits-talk li { font-size: 1.15rem; }
  .wits-share .actions { margin: .5rem 0 .7rem; }
  .share-box textarea { font-size: .95rem; resize: none; }

  /* ----- Shelf Life: five cards standing on a shelf, earliest at the left ----- */
  [data-view="shelf"] { display: grid; grid-template-columns: auto 1fr; column-gap: 1.6rem; align-items: end; }
  [data-view="shelf"] > .crumb { grid-column: 1 / -1; }
  [data-view="shelf"] > .lede { margin: 0 0 .35rem; }
  [data-view="shelf"] > [data-play], [data-view="shelf"] > [data-reveal] { grid-column: 1 / -1; }
  .shelf-play { display: grid; grid-template-columns: auto 1fr auto; column-gap: .8rem; align-items: stretch; margin-top: .9rem; }
  .shelf-play .end-label { writing-mode: vertical-rl; margin: 0; padding-bottom: 1.2rem; justify-content: center; }
  .shelf-play .end-first { rotate: 180deg; }
  .shelf-play .end-label::after { display: none; }
  .shelf-play .actions { grid-column: 1 / -1; justify-content: center; margin: 1rem 0 0; }
  .shelf-play .cards, .shelf-reveal .cards {
    grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; align-items: stretch;
    padding: 0 .4rem 1rem; border-bottom: 10px solid var(--line-strong); border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 0 -2px var(--bg-deep);
  }
  .shelf-play .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-items: start; gap: .3rem; padding: .3rem .9rem .8rem; border-left-width: 1px; border-top: 7px solid var(--game-fill); min-height: clamp(14rem, 100vh - 27rem, 23rem); }
  .shelf-play .handle { width: auto; min-height: 0; height: 1.4rem; justify-self: center; }
  .shelf-play .handle svg { rotate: 90deg; width: 12px; height: 22px; }
  .shelf-play .moves { flex-direction: row; justify-content: space-between; }
  .shelf-play .move { width: 48px; height: 44px; }
  .shelf-play .move svg { rotate: -90deg; }
  .shelf-play .card-title, .shelf-reveal .card-title { font-size: 1.3rem; }
  .drop-place { border-radius: 12px; }

  .shelf-reveal { display: grid; grid-template-columns: 15rem 1fr 1fr; gap: 0 2rem; grid-template-areas: "cards cards cards" "score truth talk" "score truth next"; align-items: start; }
  .shelf-reveal .revealed { grid-area: cards; margin-top: .6rem; }
  .shelf-reveal .score { grid-area: score; margin: 1rem 0 0; grid-template-columns: 1fr; justify-items: start; }
  .shelf-reveal .score-big, .shelf-reveal .score-sub { grid-row: auto; }
  .shelf-reveal .truth { grid-area: truth; margin: .9rem 0 0; }
  .shelf-reveal .talk { grid-area: talk; margin: 1rem 0 0; }
  .shelf-reveal .next { grid-area: next; }
  .shelf-reveal .next .actions { margin: .8rem 0 0; }
  .shelf-reveal .revealed .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: .3rem; padding: .6rem .9rem .7rem; cursor: default; }
  .shelf-reveal .verdict { width: auto; grid-auto-flow: column; justify-content: start; align-items: center; gap: .4rem; font-size: .95rem; }
  .shelf-reveal .card-full { font-size: .9rem; line-height: 1.35; }
  .truth h2, .meanwhile h2 { font-size: 1.35rem; }
  .truth-list li { padding: .22rem 0 .22rem 2rem; font-size: 1rem; line-height: 1.4; }
  .truth-list li::before { top: .12rem; }
  .talk { padding: .8rem 1.1rem .9rem 1.2rem; }
  .talk p { font-size: 1.25rem; }

  /* ----- Vintage and Carbon Dating: a side column and a main one ----- */
  .g-split { display: grid; column-gap: 2.4rem; align-items: start; }
  [data-view="vintage"] { grid-template-columns: 19rem 1fr; }
  [data-view="carbon"] { grid-template-columns: 1fr 27rem; }
  .g-side, .g-main { min-width: 0; }
  .g-spare .talk { margin: 1rem 0 0; }
  .g-spare .next .actions { margin: .9rem 0 0; flex-direction: column; align-items: flex-start; gap: .6rem; }

  .plate { margin: .7rem 0 .5rem; }
  .plate .big-year { font-size: 5rem; }
  [data-view="vintage"] .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: .3rem; }
  .pick { grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-items: start; min-height: clamp(9rem, 50vh - 11rem, 11.5rem); padding: .9rem .9rem .7rem; gap: .2rem .7rem; }
  .pick.is-on { padding: calc(.9rem - 1px) calc(.9rem - 1px) calc(.7rem - 1px); }
  .pick-word { grid-column: 1 / -1; text-align: left; min-height: 1.3em; }
  [data-view="vintage"] [data-play] { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
  [data-view="vintage"] [data-play] .picks { grid-column: 1 / -1; }
  [data-view="vintage"] [data-play] .picked-count { margin: .7rem 0 0; }
  [data-view="vintage"] [data-play] .actions { margin: .7rem 0 0; }
  [data-view="vintage"] .score { margin: .3rem 0 .7rem; padding: .6rem 1rem; }
  [data-view="vintage"] .score-big, [data-view="vintage"] .score-sub { grid-row: auto; }
  .picks.revealed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .pick-out { grid-template-columns: 1fr; align-content: start; gap: .15rem; padding: .6rem .85rem .7rem; }
  .pick-out .verdict { width: auto; grid-auto-flow: column; justify-content: start; align-items: center; gap: .4rem; padding: 0; font-size: .95rem; }
  .pick-out .card-title { font-size: 1.2rem; }
  .pick-out .card-full { font-size: .9rem; line-height: 1.35; }
  .card-you { font-size: .9rem; color: var(--muted); }
  [data-view="vintage"] .meanwhile { margin: .9rem 0 0; }
  [data-view="vintage"] .mw-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .mw-list li { padding: .25rem .7rem; font-size: 1rem; line-height: 1.4; }
  .mw-title { font-size: 1.1rem; }

  [data-view="carbon"] .passage { margin: 1.7rem 0 0; padding: 1.8rem 1.6rem 1.5rem 1.8rem; }
  .passage p { font-size: 1.6rem; line-height: 1.5; }
  .passage[data-size="short"] p { font-size: 1.9rem; }
  [data-view="carbon"] .g-main { padding: .9rem 1.3rem 1rem; margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  [data-view="carbon"] .guess { padding: 0; }
  [data-view="carbon"] .guess .big-year { font-size: 6rem; margin: .1rem 0 .7rem; }
  [data-view="carbon"] .actions { margin: 1rem 0 .2rem; }
  [data-view="carbon"] .score { margin: 0 0 .7rem; padding: 0; border: 0; background: none; }
  [data-view="carbon"] .work-card { padding: .7rem .9rem; }
  [data-view="carbon"] .work-card .card-title { font-size: 1.4rem; }
  [data-view="carbon"] .line { margin: .6rem 0 .2rem; padding-top: 2.2rem; }
  [data-view="carbon"] .line-ends { margin-top: 1.7rem; }
  [data-view="carbon"] .talk { margin: .8rem 0 0; }
  [data-view="carbon"] .next .actions { margin: .8rem 0 0; }
  .g-spare .meanwhile { margin: 1rem 0 0; }

  /* ----- Pop-outs: wider, How to play in two columns, Pastime a grid of days ----- */
  .pop { width: min(64rem, calc(100vw - 4rem)); max-height: calc(100vh - 3rem); }
  .pop-inner { padding: 1.4rem 1.8rem 1.6rem; }
  #how .pop-inner { column-count: 2; column-gap: 2.6rem; }
  #how h2 { column-span: all; }
  #how h3 { break-after: avoid; margin-top: .7rem; }
  #how p { break-inside: avoid; }
  /* Job 10: About is two columns on a wide screen, so the Easy and Hard note fits. */
  #about { width: min(64rem, calc(100vw - 4rem)); }
  #about .pop-inner { column-count: 2; column-gap: 2.4rem; }
  #about h2 { column-span: all; }
  #about p, #about .forget { break-inside: avoid; }
  #past { width: min(76rem, calc(100vw - 4rem)); }
}
/* Pastime: a grid of days on any screen wide enough for two. */
@media (min-width: 640px) {
  .past-list { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .55rem; }
  .past-list a { display: grid; align-content: start; justify-content: stretch; gap: .25rem; height: 100%; padding: .55rem .75rem .6rem; }
  .pscores { display: grid; gap: 0; font-size: .9rem; line-height: 1.35; }
  .pscores .ps { display: flex; justify-content: space-between; gap: .5rem; }
  .pscores .ps-line { display: grid; gap: 0; }
}

/* ===== Job 4: layers keep their colours; the Sweet Trolley; Household Words ===== */
/* The layer colours, whichever game sits in a layer: 1 When raspberry, 2 Words
   custard, 3 World sage. A game's view takes the colour it wears today
   (data-colour, set by app.js: its layer's in the Trifle, its own from the Trolley). */
.lay-1, [data-colour="1"], .tv.lay-1, .tt-close .lay-1 { --game: var(--shelf); --game-bg: var(--shelf-bg); --game-fill: var(--shelf-fill); }
.lay-2, [data-colour="2"], .tv.lay-2, .tt-close .lay-2 { --game: var(--vintage); --game-bg: var(--vintage-bg); --game-fill: var(--vintage-fill); }
.lay-3, [data-colour="3"], .tv.lay-3, .tt-close .lay-3 { --game: var(--carbon); --game-bg: var(--carbon-bg); --game-fill: var(--carbon-fill); }
.tile-layer { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--game); margin-bottom: .1rem; }
.preview-tag { display: inline-block; margin-left: .4rem; padding: 0 .45rem; border: 1.5px dashed var(--accent); border-radius: 6px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: .1em; }

/* The Sweet Trolley: a small cart of the other games, wheeled round after the meal. */
.trolley { margin: 1.6rem 0 .6rem; padding: .9rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.trolley h2 { font-size: 1.5rem; font-style: italic; }
.trolley-sub { margin: .15rem 0 .7rem; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.trolley-row { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.trolley-link { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .8rem .6rem 1rem; min-height: 3.2rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--game-fill); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.trolley-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--game); border-left-color: var(--game-fill); }
.trolley-name { font-family: var(--title); font-weight: 650; font-size: 1.25rem; line-height: 1.15; }
.trolley-act { flex: none; font-size: .95rem; font-weight: 700; color: var(--game); border: 2px solid var(--game); border-radius: 999px; padding: .2rem .8rem; }
.trolley .tile-score { font-size: 1rem; }
.from-trolley .crumb a::after { content: " (from the Sweet Trolley)"; color: var(--muted); }

/* Household Words: the phrase on a sampler, four works to choose from. */
.sampler { margin: .8rem 0 .4rem; padding: .7rem 1rem 1rem; text-align: center; background: var(--game-bg); border: 2px dashed var(--game); border-radius: 10px; outline: 4px solid var(--game-bg); outline-offset: 0; }
.sampler .plate-label { margin-bottom: .2rem; }
.hw-phrase { margin: 0; font-family: var(--title); font-style: italic; font-weight: 600; font-size: 2.3rem; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.hw-phrase::before { content: "\201C"; color: var(--game); }
.hw-phrase::after { content: "\201D"; color: var(--game); }
.hw-options { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.hw-option { width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8rem; text-align: left; padding: .75rem .9rem; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; min-height: 4.4rem; transition: border-color .12s ease, transform .12s ease; }
.hw-option:hover:not([disabled]) { border-color: var(--game); transform: translateY(-1px); }
.hw-option.is-tried { cursor: default; border-style: dashed; border-color: var(--wrong); background: var(--wrong-bg); box-shadow: none; }
.hw-option.is-tried .hw-title { text-decoration: line-through; text-decoration-thickness: 2px; }
.hw-letter { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--game-bg); color: var(--game); font-family: var(--title); font-style: italic; font-weight: 700; font-size: 1.25rem; }
.hw-body { display: grid; gap: .05rem; min-width: 0; }
.hw-title { font-family: var(--title); font-weight: 650; font-size: 1.25rem; line-height: 1.2; color: var(--text); }
.hw-by { color: var(--muted); font-size: 1rem; }
.hw-not { display: inline-flex; align-items: center; gap: .3rem; color: var(--wrong); font-weight: 700; font-size: .9rem; }
.hw-not svg { width: 18px; height: 18px; }
.hw-tries { margin: .7rem 0 0; color: var(--muted); }
.hw-found { padding: 1rem 1.1rem; border-radius: 12px; background: var(--game-bg); border: 1px solid var(--line); }
.hw-found-label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; color: var(--game); }
.hw-found .card-title { font-size: 1.55rem; font-style: italic; margin: .1rem 0 0; }
.hw-found .card-author { margin: 0; }
.hw-place { margin: .35rem 0 0; font-weight: 700; }
.hw-line { margin: .6rem 0 0; padding: .7rem 1rem; background: var(--surface); border-left: 4px solid var(--game-fill); border-radius: 4px 10px 10px 4px; }
.hw-line p { margin: 0; font-family: var(--title); font-size: 1.3rem; line-height: 1.45; }
.hw-line mark { background: var(--game-bg); color: var(--text); padding: 0 .12em; border-radius: 3px; box-shadow: inset 0 -.18em 0 var(--game-fill); }
.hw-diff { margin: .5rem 0 0; font-size: 1rem; }
.hw-edition { margin: .45rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.hw-options.revealed { margin-top: .8rem; }
.hw-out { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.hw-out .verdict { width: auto; grid-auto-flow: column; justify-content: start; align-items: center; gap: .35rem; font-size: .9rem; }
.hw-out .verdict svg { width: 20px; height: 20px; }
.hw-out.is-right { border-color: var(--right); background: var(--right-bg); }
.hw-out.is-right .verdict { color: var(--right); }
.hw-out.is-wrong { border-color: var(--wrong); border-style: dashed; }
.hw-out.is-wrong .verdict { color: var(--wrong); }
.hw-out .card-you { margin: 0; font-size: .9rem; color: var(--muted); }
.just-revealed .hw-found { animation: rise .32s ease-out both; }
.just-revealed .hw-out { animation: rise .3s ease-out both; animation-delay: .12s; }
.tt-phrase { font-family: var(--title); font-style: italic; font-weight: 600; font-size: 2.6em; line-height: 1.1; margin: .1em 0 .4em; text-align: center; }
.tt-phrase::before { content: "\201C"; color: var(--game); }
.tt-phrase::after { content: "\201D"; color: var(--game); }
.tt-passage mark { background: var(--game-bg); color: inherit; box-shadow: inset 0 -.15em 0 var(--game-fill); padding: 0 .1em; }
@media (prefers-reduced-motion: reduce) { .just-revealed .hw-found, .just-revealed .hw-out { animation: none; } .hw-option, .trolley-link { transition: none; } }
@media (min-width: 640px) {
  .hw-options { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  [data-view="home"] .trolley { grid-area: trolley; margin: .9rem 0 0; padding: .55rem 1rem .6rem 1.2rem; display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: 0 1.4rem; align-items: center; }
  .trolley h2 { font-size: 1.35rem; }
  .trolley-sub { margin: 0; font-size: .88rem; line-height: 1.3; }
  .trolley-row { grid-template-columns: repeat(auto-fit, minmax(12rem, 16rem)); justify-content: start; }
  .trolley-link { min-height: 2.8rem; padding: .4rem .7rem .4rem .9rem; }
  [data-view="home"].is-full.has-trolley .wits { padding-top: .6rem; padding-bottom: .6rem; }
  [data-view="household"] { grid-template-columns: 24rem 1fr; }
  [data-view="household"] .sampler { margin: .9rem 0 .5rem; padding: 1rem 1rem 1.3rem; }
  [data-view="household"] .hw-phrase { font-size: 2.6rem; }
  [data-view="household"] [data-play] .hw-options { margin-top: 1.2rem; gap: 1rem; }
  [data-view="household"] [data-play] .hw-option { min-height: clamp(7rem, 50vh - 12rem, 10rem); padding: 1rem 1.1rem; }
  [data-view="household"] [data-play] .hw-title { font-size: 1.45rem; }
  [data-view="household"] .score { margin: .3rem 0 .6rem; padding: .5rem 1rem; }
  [data-view="household"] .score-big, [data-view="household"] .score-sub { grid-row: auto; }
  [data-view="household"] .hw-found { padding: .7rem 1rem .8rem; }
  [data-view="household"] .hw-line p { font-size: 1.2rem; }
  [data-view="household"] .hw-options.revealed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .7rem; }
  [data-view="household"] .hw-out { grid-template-columns: 1fr; gap: .1rem; padding: .45rem .7rem .55rem; }
  [data-view="household"] .hw-out .hw-letter { display: none; }
  [data-view="household"] .hw-out .hw-title { font-size: 1.05rem; }
  [data-view="household"] .hw-out .hw-by { font-size: .88rem; }
  [data-view="household"] .g-spare .meanwhile { margin: .9rem 0 0; }
}
@media (min-width: 1100px) {
  /* With the rotation's notes, How to play is set a little smaller so it still fits. */
  #how.has-more .pop-inner { font-size: 1rem; line-height: 1.45; }
  #how.has-more h3 { font-size: 1.25rem; margin-top: .5rem; }
  #how.has-more p { margin: .35rem 0 .5rem; }
}

.tt-hw-answer + .tt-passage { margin-top: 1.1em; }
.tt-hw-answer .tt-work-note { font-size: .8em; }

/* ===== Job 5: the World layer, Lay of the Land and Plot Twist (sage when in layer 3) ===== */
[data-view="land"], [data-view="plot"] { --game: var(--carbon); --game-bg: var(--carbon-bg); --game-fill: var(--carbon-fill); }
.quiet-btn { min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 700; }
.quiet-btn:hover { border-color: var(--game); color: var(--game); }

/* The map */
.map-fig { position: relative; margin: .6rem 0 .8rem; }
.map-scroll { display: flex; overflow: auto; height: min(78vh, 30rem); background: #cfe6f3; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); touch-action: pan-x pan-y; overscroll-behavior: contain; }
.map-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.map-scroll.is-zoomed { cursor: grab; }
.map-scroll.is-panning { cursor: grabbing; }
.map-img { display: block; margin: auto; flex: none; max-width: none; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.map-tools { position: absolute; top: .5rem; right: .5rem; display: flex; gap: .35rem; }
.map-btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .55rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; font-weight: 700; }
.map-btn svg { width: 22px; height: 22px; }
.map-btn:hover:not(:disabled) { border-color: var(--game); color: var(--game); }
.map-btn:disabled { opacity: .45; cursor: default; }
.map-note { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; font-style: italic; }
.land-line { position: relative; margin: .4rem 0 .9rem; padding: 1rem 1.1rem 1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--game-fill); border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow); }
.land-line p { margin: 0; font-family: var(--title); font-size: 1.35rem; line-height: 1.45; }
.land-found { padding: .9rem 1rem; border-radius: 12px; background: var(--game-bg); border: 1px solid var(--line); }
.land-when { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.land-year { font-family: var(--title); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--game); font-variant-numeric: lining-nums; }
.land-title { margin: .3rem 0 0; font-family: var(--title); font-style: italic; font-weight: 650; font-size: 1.2rem; }
.land-caption { margin: .15rem 0 0; font-size: .95rem; line-height: 1.4; }
.land-work { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.land-work .card-title { font-size: 1.3rem; font-style: italic; margin: .1rem 0 0; }
.land-work .card-author { margin: 0; }
.land-revealed { margin-top: .7rem; }
.map-credit { margin: .7rem 0 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.map-credit-label { font-weight: 700; }
.just-revealed .land-found { animation: rise .32s ease-out both; }

/* The chart */
.pt-ask { margin: .2rem 0 0; font-family: var(--title); font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
.pt-fig { margin: .6rem 0 .6rem; padding: .6rem .5rem .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.pt-unit { margin: 0 0 .2rem .4rem; font-weight: 700; font-size: .9rem; color: var(--muted); }
.pt-chart { position: relative; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.pt-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pt-caption { margin: .35rem .4rem 0; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.pt-svg text { fill: var(--muted); font-family: var(--body); }
.pt-svg .pt-grid { stroke: var(--line); stroke-width: 1; }
.pt-svg .pt-xt { stroke: var(--line-strong); }
.pt-svg .pt-hidden { fill: var(--game-bg); stroke: var(--game-fill); stroke-dasharray: 5 4; }
.pt-svg .pt-was-hidden { fill: var(--game-bg); opacity: .55; }
.pt-svg .pt-hidden-label { fill: var(--game); font-weight: 700; font-style: italic; }
.pt-svg .pt-cut { stroke: var(--game-fill); stroke-width: 1.5; }
.pt-svg .pt-line { fill: none; stroke: var(--text); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pt-svg .pt-dot { fill: var(--text); }
.pt-svg .pt-truth { fill: none; stroke: var(--text); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pt-svg .pt-guess { fill: none; stroke: var(--game); stroke-width: 3; stroke-dasharray: 7 5; stroke-linejoin: round; stroke-linecap: round; }
.pt-svg .pt-guess-dot { fill: var(--surface); stroke: var(--game); stroke-width: 2.5; }
.pt-svg .pt-hit { fill: transparent; }
.pt-svg .pt-knob { fill: var(--surface); stroke: var(--game); stroke-width: 3; }
.pt-svg .pt-handle.is-set .pt-knob { fill: var(--game); }
.pt-svg .pt-handle { cursor: ns-resize; outline: none; }
.pt-svg .pt-handle:focus-visible .pt-knob { stroke: var(--focus); stroke-width: 4; }
.pt-svg .pt-handle:focus-visible .pt-hit { fill: none; stroke: var(--focus); stroke-width: 2.5; }
.pt-svg .pt-n { fill: var(--muted); font-variant-numeric: tabular-nums; }
.pt-svg .pt-pin line { stroke: var(--gold); stroke-width: 2; }
.pt-svg .pt-pin circle { fill: var(--gold); }
.pt-svg .pt-pin text { fill: var(--surface); font-weight: 700; }
.pt-chart.is-drawing { cursor: crosshair; }
.just-revealed .pt-truth, .just-revealed .pt-dot-truth, .just-revealed .pt-pin { animation: pt-in .5s ease-out both; }
@keyframes pt-in { from { opacity: 0; } to { opacity: 1; } }
.pt-how { margin: .2rem 0 .3rem; font-size: 1rem; color: var(--muted); }
.pt-pins h2 { font-size: 1.2rem; font-style: italic; margin: .9rem 0 .35rem; }
.pt-pin-list { margin: 0; padding-left: 1.6rem; display: grid; gap: .2rem; }
.pt-pin-list li::marker { color: var(--gold); font-weight: 700; }
.pt-pin-t { font-family: var(--title); font-style: italic; font-weight: 650; }
.pt-pin-v { font-size: .9rem; color: var(--muted); }
.pt-numbers { margin: .9rem 0 0; font-size: .95rem; }
.pt-numbers summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.pt-numbers table { border-collapse: collapse; margin-top: .3rem; }
.pt-numbers th, .pt-numbers td { padding: .15rem .7rem .15rem 0; text-align: left; font-variant-numeric: tabular-nums; }
.pt-numbers thead th { font-size: .85rem; color: var(--muted); }
.pt-row-hidden td { color: var(--game); }
@media (prefers-reduced-motion: reduce) { .just-revealed .pt-truth, .just-revealed .pt-dot-truth, .just-revealed .pt-pin, .just-revealed .land-found { animation: none; } }

@media (min-width: 1100px) {
  /* The map or chart large at the left, the question and answers at the right. */
  .g-world { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; grid-template-rows: auto 1fr; grid-template-areas: "fig head" "fig panel"; column-gap: 2rem; align-items: start; }
  .g-world.is-revealed { grid-template-columns: minmax(0, 1fr) 31rem; }
  .w-head { grid-area: head; }
  .w-panel { grid-area: panel; min-width: 0; }
  .g-world.is-revealed { grid-template-rows: auto auto 1fr; grid-template-areas: "fig head" "fig panel" "under panel"; }
  .w-under { grid-area: under; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; min-width: 0; }
  .w-under .map-credit { grid-column: 1; margin: .4rem 0 0; }
  .w-under .meanwhile { grid-column: 1; }
  .w-under .talk { grid-column: 2; grid-row: 1 / span 2; }
  .g-world.is-revealed .map-scroll { height: calc(100vh - 19rem); }
  .g-world.is-revealed .pt-fig { height: calc(100vh - 17rem); }
  .g-world > figure { grid-area: fig; margin: .2rem 0 0; min-width: 0; }
  .map-scroll { height: calc(100vh - 8.6rem); max-height: 64rem; }
  .map-note { font-size: .85rem; margin-top: .2rem; }
  .w-head .lede { margin: .3rem 0 .5rem; }
  .land-options { grid-template-columns: 1fr; gap: .6rem; }
  [data-view="land"] [data-play] .hw-option { min-height: 4.2rem; }
  .land-line p { font-size: 1.3rem; }
  [data-view="land"] .guess .big-year { font-size: 3.8rem; margin: .05rem 0 .35rem; }
  [data-view="land"] .nudge { margin-top: .2rem; }
  [data-view="land"] [data-play] .actions { margin: .7rem 0 0; }
  .land-line { margin: .2rem 0 .7rem; padding: .75rem 1rem .75rem 1.2rem; }
  [data-view="land"] .score, [data-view="plot"] .score { margin: .2rem 0 .6rem; padding: .5rem .9rem; }
  [data-view="land"] .score-big, [data-view="land"] .score-sub, [data-view="plot"] .score-big, [data-view="plot"] .score-sub { grid-row: auto; }
  .land-found { padding: .5rem .9rem .6rem; }
  .is-revealed .w-head .lede { display: none; }
  .is-revealed .w-head .view-title { margin-bottom: .3rem; }
  .land-work { margin-top: .4rem; padding-top: .35rem; }
  .land-work .card-author { font-size: .95rem; }
  .land-work .date-note { font-size: .9rem; }
  .land-title { font-size: 1.1rem; margin-top: .15rem; }
  .land-caption { line-height: 1.35; }
  .land-year { font-size: 2.1rem; }
  .land-caption { font-size: .9rem; }
  .land-work .card-title { font-size: 1.15rem; }
  [data-view="land"] .hw-line p { font-size: 1.05rem; }
  [data-view="land"] .hw-edition { font-size: .78rem; }
  .land-revealed { grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .55rem; }
  .land-revealed .hw-out { grid-template-columns: 1fr; gap: 0; padding: .35rem .6rem .45rem; }
  .land-revealed .hw-letter { display: none; }
  .land-revealed .hw-title { font-size: .98rem; }
  .land-revealed .hw-by, .land-revealed .card-you, .land-revealed .verdict { font-size: .82rem; }
  .land-revealed .card-you { display: inline; }
  .map-credit { margin-top: .5rem; font-size: .76rem; }
  .g-world .meanwhile { margin: .6rem 0 0; }
  .g-world .meanwhile h2 { font-size: 1.1rem; margin-bottom: .25rem; }
  .g-world .mw-list li { font-size: .92rem; padding: .15rem .6rem; }
  .g-world .talk { margin: .6rem 0 0; padding: .55rem .9rem .6rem 1rem; }
  .g-world .talk h2 { font-size: 1.05rem; }
  .g-world .talk p { font-size: 1.08rem; }
  .g-world .next .actions { margin: .6rem 0 0; }
  .pt-fig { display: flex; flex-direction: column; height: calc(100vh - 8.6rem); max-height: 52rem; padding: .7rem .7rem .55rem; }
  .pt-chart { flex: 1 1 auto; min-height: 0; }
  .pt-chart svg { height: 100%; }
  .pt-ask { font-size: 1.35rem; }
  .pt-pins h2 { font-size: 1.05rem; margin: .5rem 0 .2rem; }
  .pt-pin-list li { font-size: .92rem; line-height: 1.3; }
  .pt-pin-v { font-size: .82rem; }
  .pt-pins h2 { margin-top: .3rem; }
  .pt-numbers { margin-top: .5rem; font-size: .88rem; }
  .pt-numbers summary { min-height: 2rem; }
  .pt-numbers[open] table { max-height: 12rem; display: block; overflow: auto; }
}
#how.has-most .pop-inner { font-size: .95rem; }
@media (min-width: 1100px) {
  #how.has-most .pop-inner { font-size: .9rem; line-height: 1.38; columns: 2; column-gap: 2rem; }
  #how.has-most h3 { font-size: 1.12rem; margin-top: .3rem; break-after: avoid; }
  #how.has-most p { margin: .25rem 0 .45rem; }
  #how.has-most section { break-inside: avoid; }
}

/* Table Talk: Lay of the Land and Plot Twist */
.tt--land, .tt--plot { --game: var(--carbon); --game-bg: var(--carbon-bg); --game-fill: var(--carbon-fill); }
.tt-land { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.1em; align-items: center; min-height: 0; }
.tt-map { display: block; width: 100%; height: auto; max-height: 54vh; object-fit: contain; background: #cfe6f3; border-radius: .4em; border: 2px solid var(--line); }
.tt-land .tt-passage { margin: 0; }
.tt-pt-ask { margin: 0 0 .3em; font-family: var(--title); font-size: 1.15em; }
.tt-chart svg { display: block; width: 100%; height: auto; }
.tt-chart .pt-svg text { fill: var(--muted); }
.tt-pt-pins { margin: .3em 0 0; padding-left: 1.4em; display: flex; flex-wrap: wrap; gap: .1em 1.6em; font-size: .8em; }
.tt-pt-pins li::marker { color: var(--gold); font-weight: 700; }
@media (max-aspect-ratio: 4/5) { .tt-land { grid-template-columns: 1fr; } .tt-map { max-height: 40vh; } }
.tt-chart .pt-svg .pt-pin text { fill: var(--surface); font-weight: 700; }
.tt-chart .pt-svg .pt-hidden-label { fill: var(--game); }
.tt-land .tt-work { font-size: calc(1em * var(--fit)); }
.tt-land .tt-year-xl { font-size: 3.2em; line-height: 1; }
@media (min-width: 1100px) {
  .trolley-name { white-space: nowrap; }
  .trolley-row { grid-template-columns: repeat(auto-fit, minmax(11rem, 15rem)); }
}
@media (min-width: 1100px) {
  .land-revealed { gap: .35rem; margin-top: .45rem; }
  .land-revealed .hw-out { padding: .28rem .55rem .35rem; }
  .is-revealed .w-head .crumb { margin-bottom: 0; }
}

/* =================== Job 6 =================== */
[data-view="household"], .tile--household { --game: var(--vintage); --game-bg: var(--vintage-bg); --game-fill: var(--vintage-fill); }

/* Links to the English Academy, and quotes that open fuller (on reveals only) */
.read-link { display: inline-flex; align-items: center; gap: .3rem; margin: .35rem 0 0; font-size: .9rem; font-weight: 700; color: var(--accent); text-underline-offset: .18em; }
.read-link::after { content: "\2197"; font-weight: 400; text-decoration: none; display: inline-block; }
blockquote.has-more { cursor: pointer; position: relative; }
blockquote.has-more:hover { box-shadow: 0 0 0 2px var(--game-fill); }
.more-btn { display: block; margin: .5rem 0 0; padding: .1rem 0; background: none; border: 0; color: var(--accent); font: inherit; font-family: var(--body); font-size: .88rem; font-weight: 700; font-style: normal; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; text-align: left; }
.more-btn:hover { text-decoration-thickness: 2px; }
.passage .more-btn { font-size: .95rem; }
.pop-quote { width: min(44rem, calc(100vw - 2rem)); }
.pop-quote .pop-inner { max-height: calc(100vh - 3rem); overflow-y: auto; }
.pop-quote h2 { font-size: 1.6rem; margin-right: 5rem; margin-bottom: .1rem; }
.q-by { color: var(--muted); font-style: italic; }
.q-text { margin: .6rem 0 .9rem; padding: .8rem 1.1rem; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 4px 12px 12px 4px; }
.q-text p { font-family: var(--title); font-size: 1.15rem; line-height: 1.5; margin: 0 0 .6rem; }
.q-text p:last-child { margin-bottom: 0; }
.q-text mark { background: var(--pick-bg); color: var(--text); box-shadow: inset 0 -.18em 0 var(--accent); padding: 0 .1em; border-radius: 3px; }
.q-cut { color: var(--muted); }
.q-go { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; }
.q-note { color: var(--muted); font-size: .9rem; }

/* Shelf Life's (and Hand-Me-Down's) answer in the same form, right under the player's */
.compare { margin: .4rem 0 0; }
.cmp { display: grid; gap: .45rem .6rem; }
.cmp-label { margin: .2rem 0 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--game); }
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cmp-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.cmp-row .cmp-label { grid-column: 1 / -1; }
.cmp-row .cmp-list { grid-column: 1 / -1; grid-template-columns: subgrid; }
.cmp-col { grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(var(--n), auto); }
.cmp-col .cmp-l1 { grid-column: 1; grid-row: 1; }
.cmp-col .cmp-l2 { grid-column: 2; grid-row: 1; }
.cmp-col .cmp-list { grid-row: 2 / span var(--n); grid-template-rows: subgrid; }
.cmp-col .cmp-mine { grid-column: 1; }
.cmp-col .cmp-truth { grid-column: 2; }
.cmp-card.card { display: block; position: relative; padding: .5rem .65rem .6rem; cursor: default; min-width: 0; touch-action: auto; }
.cmp-card .verdict { width: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; margin: 0 0 .1rem 1.6rem; }
.cmp-card .verdict svg { width: 18px; height: 18px; }
.cmp-no { position: absolute; top: .45rem; left: .55rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--game-bg); color: var(--game); font-size: .78rem; font-weight: 700; }
.cmp-truth .cmp-card .card-body { margin-left: 1.6rem; }
.cmp-card .card-title { font-size: 1.08rem; }
.cmp-card .card-author { font-size: .9rem; }
.cmp-card .card-date { font-size: .95rem; }
.cmp-card.is-truth { border-style: solid; border-color: var(--game); background: var(--surface); }
.cmp-col .cmp-card .kind { font-size: .7rem; letter-spacing: .06em; }
.cmp-col .cmp-card .card-title { font-size: 1rem; }

/* Sets of four: the running tally */
.set-tally { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .4rem 0 0; color: var(--muted); font-size: 1rem; min-height: 1.6rem; }
.tally-q { font-weight: 700; color: var(--text); }
.tally-dots { display: inline-flex; gap: .3rem; }
.tdot { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); }
.tdot svg { width: 13px; height: 13px; }
.tdot.is-now { border-color: var(--game); box-shadow: 0 0 0 2px var(--game-bg); }
.tdot.is-right { border-color: var(--right); background: var(--right-bg); color: var(--right); }
.tdot.is-wrong { border-color: var(--wrong); border-style: dashed; background: var(--wrong-bg); }
.set-options .hw-option.is-right { border-color: var(--right); background: var(--right-bg); }
.set-options .hw-option.is-wrong { border-color: var(--wrong); border-style: dashed; background: var(--wrong-bg); }
.set-options .hw-option.is-wrong .hw-title { text-decoration: line-through; }
.set-options .hw-option.is-off { opacity: .7; box-shadow: none; }
.set-options .hw-option[disabled] { cursor: default; }
.set-options .verdict, .bf-pair .verdict { width: auto; display: inline-flex; align-items: center; gap: .3rem; justify-items: start; font-size: .9rem; margin-top: .15rem; }
.set-options .is-right .verdict, .bf-pair.is-right .verdict { color: var(--right); }
.set-options .is-wrong .verdict, .bf-pair.is-wrong .verdict { color: var(--wrong); }
.set-options .verdict svg, .bf-pair .verdict svg { width: 18px; height: 18px; }
.q-after { margin: .8rem 0 0; }
.q-after .actions { margin: .7rem 0 0; }
.q-found { padding: .7rem .9rem .8rem; border-radius: 12px; background: var(--game-bg); border: 1px solid var(--line); }
.q-found .card-title { font-size: 1.35rem; font-style: italic; margin: .05rem 0 0; }
.q-found .card-author { margin: 0; font-style: normal; }
.q-found .hw-line { margin-top: .45rem; }
.q-found .hw-line p { font-size: 1.15rem; }
.set-sum { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.sum-item { padding: .55rem .8rem .65rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sum-item.is-right { border-color: var(--right); }
.sum-item.is-wrong { border-color: var(--wrong); border-style: dashed; }
.sum-item .verdict { width: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
.sum-item.is-right .verdict { color: var(--right); }
.sum-item.is-wrong .verdict { color: var(--wrong); }
.sum-item .verdict svg { width: 18px; height: 18px; }
.sum-q { margin: .1rem 0 0; font-family: var(--title); font-style: italic; font-weight: 600; font-size: 1.15rem; }
.sum-a { margin: .1rem 0 0; font-size: .98rem; }
.sum-item .hw-line { margin-top: .35rem; padding: .4rem .7rem; }
.sum-item .hw-line p { font-size: 1rem; }
.sum-item .hw-edition { margin-top: .2rem; font-size: .8rem; }

/* Strange Bedfellows */
.bf-ask { margin: .8rem 0 .2rem; font-family: var(--title); font-style: italic; font-size: 1.6rem; line-height: 1.2; }
.bf-pairs { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.bf-pair { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; align-items: center; text-align: left; padding: .8rem .9rem; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; color: var(--text); font: inherit; transition: border-color .12s ease, transform .12s ease; }
.bf-pair:hover:not([disabled]) { border-color: var(--game); transform: translateY(-1px); }
.bf-pair[disabled] { cursor: default; }
.bf-pair.is-right { border-color: var(--right); background: var(--right-bg); }
.bf-pair.is-wrong { border-color: var(--wrong); border-style: dashed; background: var(--wrong-bg); }
.bf-pair.is-off { box-shadow: none; }
.bf-pair .verdict { grid-column: 2; }
.bf-items { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .3rem .7rem; min-width: 0; }
.bf-item { display: grid; gap: .05rem; min-width: 0; }
.bf-item .card-title { font-size: 1.15rem; margin: 0; }
.bf-item .card-author { margin: 0; font-size: .92rem; }
.bf-item .card-date { margin: .1rem 0 0; }
.bf-and { color: var(--muted); font-style: italic; font-size: .9rem; }
.bf-line { position: relative; margin: .5rem 0 .2rem; padding: .2rem 0; }
.bf-track { position: relative; height: 2.9rem; margin: .1rem .6rem; border-bottom: 2px solid var(--line-strong); }
.bf-span { position: absolute; bottom: -2px; height: 8px; background: var(--game-fill); border-radius: 4px; }
.bf-t1 .bf-span { background: var(--line-strong); }
.bf-gap { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .85rem; font-weight: 700; color: var(--text); }
.bf-pin { position: absolute; bottom: -7px; width: 2px; height: 12px; background: var(--text); }
.bf-pin span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: .8rem; color: var(--muted); font-variant-numeric: lining-nums; white-space: nowrap; }
.bf-track + .bf-track { margin-top: 1.4rem; }
.bf-line { padding-bottom: 1.1rem; }
.bf-links { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: .9rem; }
.bf-links li:empty { display: none; }
.bf-links .t-who { display: none; }
.bf-sum-pair { display: block; font-size: .92rem; }
.sum-item .bf-line { margin: .2rem 0 0; }

/* Hand-Me-Down */
.hm-ask { margin: .8rem 0 .3rem; padding: .7rem 1rem .9rem; background: var(--game-bg); border: 2px solid var(--game); border-radius: 12px; }
.hm-ask .card-title { font-size: 1.6rem; font-style: italic; margin: .1rem 0 0; }
.hm-ask .card-author { margin: 0; }
.hm-ev { margin: 0; }
.hm-rel { margin: 0; font-size: 1rem; line-height: 1.4; }
.hm-rel em { color: var(--game); font-weight: 700; }
.hm-quote { margin-top: .4rem; }
.hm-quote p { font-size: 1.1rem; }
.hm-reads { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.hm-cards { list-style: none; padding: 0; }

/* Encore */
.encore { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.encore-btn { font: inherit; font-weight: 700; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--game); background: var(--game-bg); color: var(--game); cursor: pointer; }
.encore-btn:hover { background: var(--surface); }
.encore-note, .encore-count, .encore-done { margin: 0; font-size: .92rem; color: var(--muted); }
.encore-done { font-style: italic; }
.is-encore .view-title::after { content: "Encore"; margin-left: .7rem; vertical-align: middle; font-family: var(--body); font-size: .9rem; font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--game); border: 2px dashed var(--game); border-radius: 999px; padding: .1rem .6rem; }

@media (min-width: 640px) {
  .bf-pairs { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .set-game { grid-template-columns: 22rem 1fr; }
  [data-view="household"] { grid-template-columns: 22rem 1fr; }
  .set-game [data-play] .hw-option { min-height: clamp(4.6rem, 30vh - 6rem, 7rem); padding: .8rem 1rem; }
  [data-view="household"] [data-play] .hw-option { min-height: clamp(4.6rem, 30vh - 6rem, 7rem); padding: .8rem 1rem; }
  .set-game [data-play] .hw-options { margin-top: .9rem; gap: .7rem; }
  .set-game .score { margin: .3rem 0 .5rem; padding: .5rem 1rem; }
  .set-game .score-big, .set-game .score-sub { grid-row: auto; }
  .set-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .6rem; }
  [data-view="bedfellows"] .set-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-pair { padding: 1rem 1.1rem; min-height: clamp(6rem, 24vh, 9rem); }
  .bf-item .card-title { font-size: 1.3rem; }
  .sum-item { padding: .45rem .7rem .5rem; }
  .sum-item .hw-line p, .sum-item .hm-quote p { font-size: .95rem; }
  .sum-item .hm-rel { font-size: .92rem; }
  .shelf-reveal { display: grid; grid-template-columns: 1fr 1fr auto; grid-template-areas: "cmp cmp cmp" "score talk next"; column-gap: 1.6rem; align-items: start; }
  .shelf-reveal .compare { grid-area: cmp; }
  .shelf-reveal .talk { grid-area: talk; }
  .shelf-reveal .score { grid-area: score; }
  .shelf-reveal .next { grid-area: next; }
  .cmp-card .card-title { font-size: 1.15rem; }
  .hm-chain .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
  [data-view="handme"] .compare .cmp-card .card-title { font-size: 1.1rem; }
  .pop-quote { width: min(50rem, calc(100vw - 4rem)); }
}
@media (prefers-reduced-motion: reduce) { .bf-pair { transition: none; } }
@media (prefers-color-scheme: dark) {
  .read-link, .more-btn { color: var(--accent); }
}
@media (min-width: 1100px) {
  [data-view="home"] .trolley { grid-template-columns: minmax(12rem, 17rem) 1fr; }
  .trolley-row { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; }
  .trolley-link { padding: .35rem .55rem .35rem .75rem; gap: .4rem; flex-wrap: wrap; }
  .trolley-name { font-size: 1.05rem; white-space: normal; }
  .trolley-act { font-size: .8rem; padding: .1rem .55rem; }
}
.read-link { display: inline; }
.read-link::after { margin-left: .2rem; }
.cmp-card .read-link { display: inline-block; font-size: .85rem; }
@media (min-width: 1100px) {
  [data-view="handme"] .set-sum[data-n] { grid-template-columns: repeat(var(--hm-n, 3), minmax(0, 1fr)); }
  [data-view="handme"] .set-sum[data-n="3"] { --hm-n: 3; }
  [data-view="handme"] .set-sum[data-n="2"] { --hm-n: 2; }
  [data-view="handme"] .is-revealed .set-sum[data-n] .hm-quote p, [data-view="handme"] .set-sum[data-n] .hm-quote p { font-size: .9rem; }
  [data-view="handme"] .set-sum[data-n] .sum-item { padding: .35rem .6rem .45rem; }
  [data-view="handme"] .set-sum[data-n] .hw-edition { font-size: .78rem; margin-top: .15rem; }
  [data-view="handme"] .compare { margin-top: .2rem; }
  [data-view="handme"] .cmp-card { padding: .4rem .6rem .45rem; }
  [data-view="carbon"].is-revealed .passage, [data-view="carbon"] .passage.has-more { margin-top: 1.2rem; padding-bottom: 1rem; }
  .passage .more-btn { margin-top: .3rem; }
}
@media (min-width: 1100px) {
  .encore { margin: .6rem 0 0; gap: .15rem .8rem; }
  .encore-btn { padding: .35rem .95rem; font-size: .98rem; }
  .encore-note, .encore-count, .encore-done { font-size: .85rem; }
  [data-view="carbon"] .next .actions { margin: .55rem 0 0; }
  [data-view="carbon"] .talk { margin: .6rem 0 0; }
}

/* ----- Table Talk, Job 6: answer on the screen; the question kept with the answer ----- */
.tt--household, .tt--handme { --game: var(--vintage); --game-bg: var(--vintage-bg); --game-fill: var(--vintage-fill); }
.tt--bedfellows { --game: var(--shelf); --game-bg: var(--shelf-bg); --game-fill: var(--shelf-fill); }
.tt-qno { font-family: var(--body); font-size: .5em; font-weight: 700; color: var(--game); letter-spacing: .08em; text-transform: uppercase; }
.tt-choice { width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; position: relative; }
.tt-choice:hover { border-color: var(--game); }
.tt-choice:focus-visible, .tt-order .tt-card:focus-visible, .tt-slider:focus-visible { outline: .14em solid var(--focus); outline-offset: .1em; }
.tt-choice.is-on { border-color: var(--game); background: var(--game-bg); box-shadow: 0 0 0 .12em var(--game); }
.tt-choices { list-style: none; }
.tt-picked { grid-column: 1 / -1; justify-self: start; font-size: .62em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--game); border: .12em solid var(--game); border-radius: 1em; padding: .05em .6em; }
.tt-card.is-mine { box-shadow: 0 0 0 .14em var(--game); }
.tt-said { margin: .5em 0 0; font-size: .85em; font-weight: 700; color: var(--game); }
.tt-order .tt-card { grid-template-columns: auto 1fr auto; cursor: grab; touch-action: none; }
.tt-order .tt-card.is-held { box-shadow: 0 0 0 .16em var(--focus); background: var(--game-bg); }
.tt-moves { display: flex; gap: .3em; }
.tt-moves .move { font-size: .8em; width: 1.9em; height: 1.9em; border-radius: .4em; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.tt-moves .move:disabled { opacity: .3; }
.tt-order.is-dragging .tt-card { transition: transform .18s ease; }
.tt-order .drop-place { list-style: none; position: absolute; border: .12em dashed var(--game); border-radius: .45em; pointer-events: none; }
.tt-order { position: relative; }
.tt-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2em; align-items: center; }
.tt-guess { display: grid; gap: .3em; padding: .6em .9em .8em; background: var(--surface); border: 2px solid var(--line); border-radius: .5em; }
.tt-guess-label { font-size: .7em; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--game); }
.tt-guess-year { font-family: var(--title); font-weight: 700; font-size: 3.2em; line-height: 1; color: var(--game); font-variant-numeric: lining-nums tabular-nums; }
.tt-slider { width: 100%; height: 2.2em; }
.tt-ends { display: flex; justify-content: space-between; font-size: .7em; color: var(--muted); }
.tt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; align-items: start; font-size: max(.85em, calc(1em * var(--fit))); }
.tt-two .tt-card { padding-top: .3em; padding-bottom: .3em; }
.tt-two .tt-card-title { font-size: .95em; }
.tt-two .tt-answer .tt-card { grid-template-columns: auto auto 1fr; }
.tt-label { margin: 0 0 .3em; font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--game); }
.tt-talk { grid-template-columns: 1fr 1.25fr; gap: 1.4em; align-items: start; }
.tt-brief { padding: .6em .9em; background: var(--surface); border: 2px solid var(--line); border-radius: .5em; }
.tt-brief ol { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: .25em; font-size: .82em; }
.tt-bq { font-weight: 700; }
.tt-ba { color: var(--muted); }
.tt-talk-side { display: grid; gap: .3em; }
.tt-bf-pairs { gap: .7em; }
.tt-bf { grid-template-columns: 1fr auto 1fr; align-items: center; gap: .2em .8em; }
.tt-bf-item { display: grid; }
.tt-bf-item .tt-date { min-width: 0; }
.tt-bf-and { color: var(--muted); font-style: italic; font-size: .8em; }
.tt-bf-line { margin: .8em .4em 0; font-size: .8em; padding-bottom: 1.2em; }
.tt-bf-line .bf-track { height: 2.6em; }
.tt-bf-line .bf-gap, .tt-bf-line .bf-pin span { font-size: .85em; }
.tt-hm { display: grid; grid-template-columns: minmax(0, 1fr) 2fr; gap: 1em; align-items: center; }
.tt-hm-ask { text-align: left; display: grid; gap: .1em; }
.tt-hm-ask .tt-card-title { font-size: 1.6em; font-style: italic; }
.tt-four-sm { font-size: max(.85em, calc(.95em * var(--fit))); gap: .3em; }
.tt-hw .tt-four-sm { grid-template-columns: 1fr 1fr; margin-bottom: .5em; }
.tt-phrase-sm { font-size: 1.8em; margin-bottom: .2em; }
.tt-land-side { display: grid; gap: .5em; align-content: start; }
.tt-land-when { display: grid; gap: .6em; }
.tt-step-answer .tt-hw .tt-passage, .tt-step-answer > .tt-passage { margin-top: .3em; }
@media (max-aspect-ratio: 4/5) { .tt-split, .tt-hm, .tt-talk, .tt-two { grid-template-columns: 1fr; } }
.tt-choices .tt-card-body { grid-template-columns: 1fr; }
.tt-choices .tt-card-body .kind { grid-column: auto; grid-row: auto; }
.tt-choices > li > .tt-card, .tt-choices > li.tt-card { grid-template-columns: auto 1fr; }
.tt-choices li.tt-card .tt-mark, .tt-choice .tt-picked { grid-column: 2; }
.tt-choices .tt-bf { grid-template-columns: 1fr auto 1fr; }
.tt-order .tt-card { padding-top: .25em; padding-bottom: .25em; }
.tt-moves { flex-direction: row; }
.tt-moves .move { width: 1.6em; height: 1.6em; font-size: .75em; }
.tt-land-side .tt-four-sm { font-size: max(.75em, calc(.85em * var(--fit))); }
.tt-land-side .tt-four-sm .tt-card { padding: .2em .6em; }
.tt-land-side .tt-year-xl { font-size: 2.4em; }
.tt-land-side .tt-work-title { font-size: 1.5em; }
.tt-land-side .tt-work-author { font-size: 1em; }
.tt-hm .tt-four-sm { grid-template-columns: 1fr 1fr; }
.tt-bf-pairs { font-size: max(.8em, calc(1em * var(--fit))); }
.tt-bf-pairs .tt-card { padding-top: .3em; padding-bottom: .3em; }
.tt-step-answer .tt-passage { font-size: max(.85em, calc(1.2em * var(--fit))); }
@media (min-width: 1100px) {
  .encore { margin: .5rem 0 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .7rem; }
  .encore-count { grid-column: 1 / -1; }
  .encore-done { grid-column: 1 / -1; }
  .encore-note { font-size: .8rem; line-height: 1.25; }
}
.title-link { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .15em; }
.title-link:hover { text-decoration-thickness: 2.5px; }
.title-go { font-family: var(--body); font-size: .8em; color: var(--accent); }
@media (min-width: 1100px) {
  [data-view="vintage"] .mw-list { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
.tt-bf-line { margin-top: .4em; padding-bottom: 1em; }
.tt-bf-line .bf-track + .bf-track { margin-top: 1.1em; }
.tt-said { margin-top: .3em; }
.q-text .q-edition { font-family: var(--body); font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.sum-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.sum-head .sum-q { margin: 0; }
.sum-line p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1100px) {
  [data-view="household"] .set-sum .sum-item { padding: .35rem .65rem .4rem; }
  [data-view="household"] .sum-a { font-size: .9rem; line-height: 1.35; }
  [data-view="household"] .sum-q { font-size: 1.05rem; }
  [data-view="household"] .sum-line { margin-top: .25rem; padding: .3rem .6rem; }
  [data-view="household"] .sum-line p { font-size: .92rem; line-height: 1.35; -webkit-line-clamp: 2; }
  [data-view="household"] .sum-line .more-btn { margin-top: .15rem; font-size: .8rem; }
  [data-view="household"] .meanwhile .mw-list li { font-size: .9rem; }
  [data-view="carbon"] .encore-note, [data-view="vintage"] .encore-note, [data-view="land"] .encore-note { display: none; }
  [data-view="carbon"] .encore, [data-view="vintage"] .encore { margin-top: .35rem; }
}
@media (min-width: 1100px) {
  /* In the narrow reveal columns the crumb at the top already goes back to Today's Trifle. */
  [data-view="carbon"] .next .quiet-link, [data-view="vintage"] .g-spare .next .quiet-link { display: none; }
}
.cmp-no { left: auto; right: .5rem; top: .45rem; }
.cmp-card .verdict { margin-left: 0; }
.cmp-truth .cmp-card .card-body { margin-left: 0; }
.cmp-truth .cmp-card .kind, .cmp-mine .cmp-card .verdict { padding-right: 1.6rem; }

/* Forget my results (Job 7) */
.forget { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); break-inside: avoid; }
.forget-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: .7rem .9rem; background: var(--surface); }
.forget-box p { margin: 0 0 .5rem; }
.forget-btns { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0; }

/* ===== Figure of Speech (Job 7) ===== */
.fos-ask { margin: .6rem 0 .2rem; }
.fos-fig { margin: .3rem 0 .6rem; padding: .9rem 1rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.fos-shape { display: flex; flex-direction: column; gap: calc(var(--bg) * 3.2); }
.fos-st { display: flex; flex-direction: column; gap: var(--bg); }
.fos-bar { display: block; height: var(--bh); min-width: 3px; border-radius: 3px; background: var(--game); opacity: .85; }
.fos-cap { margin-top: .55rem; font-size: .9rem; color: var(--muted); }
.fos-poem { margin: .5rem 0 .6rem; padding: .8rem 1rem; background: var(--game-bg); border-radius: 12px; border-left: 4px solid var(--game); }
.fos-poem-title { font-family: var(--title); font-size: 1.3rem; font-style: italic; margin: 0; }
.fos-poem .card-author { margin: 0 0 .4rem; }
.fos-stanza { margin: 0; }
.fos-stanza p { font-family: var(--title); font-size: 1.02rem; line-height: 1.45; }
.fos-note { margin: .3rem 0 0; font-size: .95rem; color: var(--muted); }
.just-revealed .fos-poem { animation: rise .35s ease both; }
@media (prefers-reduced-motion: reduce) { .just-revealed .fos-poem { animation: none; } }

/* ===== Lion's Share (Job 7) ===== */
:root {
  --ls1: #a3264b; --ls2: #2c6957; --ls3: #835500; --ls4: #4a2559; --ls5: #1f5f8b; --ls6: #6b6170;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ls1: #f4a3b9; --ls2: #8fd4ba; --ls3: #f1c868; --ls4: #e3c3f0; --ls5: #9cc8ef; --ls6: #b9adbd; }
}
:root[data-theme="dark"] { --ls1: #f4a3b9; --ls2: #8fd4ba; --ls3: #f1c868; --ls4: #e3c3f0; --ls5: #9cc8ef; --ls6: #b9adbd; }
.ls-c1 { --c: var(--ls1); } .ls-c2 { --c: var(--ls2); } .ls-c3 { --c: var(--ls3); } .ls-c4 { --c: var(--ls4); } .ls-c5 { --c: var(--ls5); } .ls-c6 { --c: var(--ls6); }
.ls-rest .ls-key, .ls-rest .ls-fill { --c: var(--ls6); }
.ls-card .ls-total { margin: .2rem 0 0; font-size: .95rem; color: var(--muted); }
.ls-whole { margin: .4rem 0 .9rem; }
.ls-stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--line); border: 1px solid var(--line-strong); }
.ls-seg { display: block; height: 100%; background: var(--c); }
.ls-seg + .ls-seg { border-left: 2px solid var(--surface); }
.ls-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ls-row { display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr 3.4rem; align-items: center; gap: .3rem .8rem; }
.ls-name { font-weight: 700; display: flex; align-items: center; gap: .45rem; line-height: 1.2; }
.ls-key { display: inline-block; width: .85rem; height: .85rem; border-radius: 3px; background: var(--c); flex: none; }
.ls-val { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.ls-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.ls-slider::-webkit-slider-runnable-track { height: 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: linear-gradient(to right, var(--c) var(--v), var(--bg-deep) var(--v)); }
.ls-slider::-moz-range-track { height: 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: linear-gradient(to right, var(--c) var(--v), var(--bg-deep) var(--v)); }
.ls-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); box-shadow: var(--shadow); }
.ls-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); }
.ls-slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.ls-fixed { height: 16px; border-radius: 8px; border: 1px dashed var(--line-strong); background: var(--bg-deep); overflow: hidden; }
.ls-fill { display: block; height: 100%; background: var(--c); }
.ls-result { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.ls-wholes { display: grid; grid-template-columns: auto 1fr; gap: .35rem .7rem; align-items: center; margin-bottom: .2rem; }
.ls-wl { font-size: .9rem; color: var(--muted); }
.ls-out-head { margin: 0; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ls-out-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.ls-out-you { color: var(--muted); font-size: .92rem; }
.ls-quote { margin: .15rem 0 0 1.3rem; }
.ls-quote p { font-size: .98rem; }
.ls-src { font-size: .9rem; color: var(--muted); }
@media (max-width: 520px) {
  .ls-row { grid-template-columns: 1fr 3.2rem; }
  .ls-row .ls-name { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  [data-view="lion"] .ls-result { grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; }
  [data-view="lion"] .ls-wholes, [data-view="lion"] .ls-src { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  [data-view="lion"] { grid-template-columns: 21rem 1fr; }
  [data-view="lion"] .ls-card { margin-top: .6rem; }
  [data-view="lion"] [data-play] { padding-top: .6rem; }
  [data-view="lion"] .score { margin: .3rem 0 .6rem; padding: .5rem 1rem; }
  [data-view="lion"] .score-big, [data-view="lion"] .score-sub { grid-row: auto; }
  [data-view="lion"] .g-spare .meanwhile .mw-list li { font-size: .95rem; }
}

/* Table Talk: Figure of Speech and Lion's Share (Job 7) */
.tt-fos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2vw; align-items: start; }
.tt-fos-fig { margin: 0; padding: 1.2vh 1.2vw; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tt-fos-fig .fos-bar { background: var(--game); }
.tt-fos-a .tt-passage { margin: 0; }
.tt-ls-play { margin: 0 0 1.2vh; }
.tt-ls-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1vh; }
.tt-ls-list li { display: flex; align-items: center; gap: 1vw; font-size: 1.2em; }
.tt-ls-out li { display: grid; grid-template-columns: auto minmax(8em, 14em) 1fr 4em; }
.tt-ls-bar { height: 1.1em; background: var(--line); border-radius: .55em; overflow: hidden; }
.tt-ls-bar span { display: block; height: 100%; background: var(--game); }
.tt-ls-n { font-weight: 700; text-align: right; }
/* Job 7: seven games on the Trolley. On a wide screen the heading sits on one line above a
   single row of seven small tiles, so the home page still fits the window. */
@media (min-width: 1100px) {
  [data-view="home"] .trolley { grid-template-columns: 1fr; gap: .35rem 0; padding: .45rem .9rem .55rem 1rem; }
  [data-view="home"] .trolley-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: nowrap; min-width: 0; }
  [data-view="home"] .trolley-head h2 { flex: none; font-size: 1.2rem; }
  [data-view="home"] .trolley-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-view="home"] .trolley-row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
  [data-view="home"] .trolley-link { min-height: 2.5rem; padding: .3rem .5rem .3rem .65rem; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; }
  [data-view="home"] .trolley-name { font-size: 1rem; white-space: normal; }
  [data-view="home"] .trolley-act { font-size: .75rem; padding: 0 .5rem; border-width: 1.5px; }
  [data-view="home"] .trolley .tile-score { font-size: .85rem; }
}
/* Job 7: How to play holds ten games; on a wide screen it sets a little smaller to fit. */
@media (min-width: 1100px) {
  #how.has-most .pop-inner { font-size: .84rem; line-height: 1.34; column-gap: 1.8rem; padding-top: 1rem; padding-bottom: 1rem; }
  #how.has-most h2 { margin-bottom: .2rem; }
  #how.has-most h3 { font-size: 1.05rem; margin: .2rem 0 0; }
  #how.has-most p { margin: .18rem 0 .35rem; }
}
/* Job 7: the wide pages fit after an answer. */
@media (min-width: 1100px) {
  [data-view="figure"] .g-side:has(.fos-poem) .lede { display: none; }
  [data-view="figure"] .fos-poem { padding: .55rem .8rem; margin: .35rem 0 .4rem; }
  [data-view="figure"] .fos-poem-title { font-size: 1.15rem; }
  [data-view="figure"] .fos-stanza { padding: .4rem .7rem; }
  [data-view="figure"] .fos-stanza p { font-size: .9rem; line-height: 1.3; }
  [data-view="figure"]:has(.fos-poem) [data-play] .hw-option { min-height: 3.2rem; padding: .45rem .8rem; }
  [data-view="figure"]:has(.fos-poem) [data-play] .hw-options { margin-top: .5rem; gap: .5rem; }
  [data-view="lion"] .ls-result { gap: .3rem 1.2rem; }
  [data-view="lion"] .ls-quote { padding: .3rem .7rem; margin-top: .1rem; }
  [data-view="lion"] .ls-quote p { font-size: .9rem; line-height: 1.3; margin: 0; }
  [data-view="lion"] .ls-quote .more-btn { font-size: .78rem; margin-top: .1rem; }
  [data-view="lion"] .ls-wholes .ls-stack { height: 14px; }
}
/* Job 7: a long Household Words line, or Figure of Speech's stanza beside its four choices, fits the TV. */
.tt-hw .tt-four-sm { margin-bottom: .3em; }
.tt-hw .tt-phrase-sm { font-size: max(1.4em, calc(1.8em * var(--fit))); margin-bottom: .1em; }
.tt-fos .tt-four-sm { font-size: max(.8em, calc(.95em * var(--fit))); }
.tt-fos .tt-four-sm .tt-card { padding: .25em .6em; }
.tt-step-answer .tt-hw .tt-passage, .tt-fos-a .tt-passage { padding: .55em 1em .6em 1.2em; }
.tt-step-answer .tt-hw .tt-passage p, .tt-fos-a .tt-passage p { line-height: 1.32; }
.tt-fos-a .tt-passage { font-size: max(.8em, calc(1.1em * var(--fit))); }

/* =================== Job 8: Grand Tour =================== */
:root { --sea: #d4e7ef; --land: #f1e7d0; --coast: #9c8a66; --route: #8c2a3c; --yours: #4a2559; --pin-bg: #fffdf8; }
@media (prefers-color-scheme: dark) { :root { --sea: #1b2a33; --land: #3a3328; --coast: #8a7a5c; --route: #f4a3b9; --yours: #e3c3f0; --pin-bg: #231c27; } }
.tour-form { margin: 0; font-weight: 700; color: var(--game); font-size: .95rem; letter-spacing: .02em; }
.tour-fig { position: relative; margin: .6rem 0 .8rem; }
.tour-map { position: relative; width: 100%; height: 22rem; background: var(--sea); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tour-svg, .tour-leaders { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tour-leaders { pointer-events: none; }
.tour-leaders line { stroke: var(--text); stroke-width: 1.2; opacity: .55; }
.tour-sea { fill: var(--sea); }
.tour-land { fill: var(--land); stroke: var(--coast); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tour-dot { fill: var(--route); stroke: var(--pin-bg); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tour-dot.is-q { fill: var(--gold); }
/* Job 11: a wrong place marked by an Easy hint: a ring, no fill, and its name in a dashed label */
.tour-mark { fill: none; stroke: var(--wrong); stroke-width: 3; vector-effect: non-scaling-stroke; }
.tour-pin.is-mark { border: 2px dashed var(--wrong); color: var(--wrong); padding: .1rem .5rem; }
.tour-leg { fill: none; stroke: var(--route); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tour-leg.is-drawn { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tour-draw .45s ease-in-out forwards; animation-delay: calc(var(--i) * .45s); }
@keyframes tour-draw { to { stroke-dashoffset: 0; } }
.tour-yours-line { fill: none; stroke: var(--yours); stroke-width: 2.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.tour-labels { position: absolute; inset: 0; }
.tour-pin { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .3rem; min-height: 28px; padding: .1rem .5rem .1rem .2rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--pin-bg); color: var(--text); font: 700 .86rem/1.1 var(--body); white-space: nowrap; box-shadow: var(--shadow); }
button.tour-pin { cursor: pointer; min-height: 32px; }
button.tour-pin:hover { border-color: var(--game); }
button.tour-pin:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; z-index: 2; }
.tour-pin.is-set { border-color: var(--yours); }
.tour-no { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; border-radius: 999px; background: var(--bg-deep); color: var(--muted); font-size: .8rem; font-variant-numeric: lining-nums; }
.tour-pin.is-set .tour-no, .tour-pin.is-label .tour-no { background: var(--route); color: var(--pin-bg); }
.tour-pin.is-set .tour-no { background: var(--yours); }
.tour-pin.is-q { border-color: var(--gold); }
.tour-pin.is-q .tour-nm { color: var(--gold); font-size: 1rem; }
.tour-pin.is-label { padding-right: .45rem; }
.tour-card .card-title { font-size: 1.35rem; font-style: italic; margin: .1rem 0 0; }
.tour-card .card-author { margin: 0; }
.tour-traveller { margin: .3rem 0 0; font-size: .98rem; }
.tour-yours { margin: .7rem 0 .2rem; min-height: 3em; }
.tour-options { margin-top: .7rem; }
.tour-found { padding: .7rem 1rem; border-radius: 12px; background: var(--game-bg); border: 1px solid var(--line); }
.tour-work .card-title { font-size: 1.25rem; font-style: italic; margin: .05rem 0 0; }
.tour-work .card-author { margin: 0; }
.tour-revealed { margin-top: .6rem; }
.tour-stops { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.tour-stop { padding: .3rem .55rem .35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tour-stop.is-asked { border-color: var(--gold); }
.tour-stop-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; font-size: .95rem; }
.tour-stop-head .tour-no { background: var(--route); color: var(--pin-bg); align-self: center; }
.tour-where { color: var(--muted); font-size: .8rem; }
.tour-you { font-size: .8rem; font-weight: 700; color: var(--wrong); }
.tour-you.is-in { color: var(--right); }
.tour-quote { margin: .15rem 0 0; }
.tour-quote p { font-size: .95rem; line-height: 1.4; }
.tour-same { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); font-style: italic; }
.tour-note { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.35; font-style: italic; }
.just-revealed .tour-found { animation: rise .32s ease-out both; }
@media (prefers-reduced-motion: reduce) { .tour-leg.is-drawn { animation: none; stroke-dashoffset: 0; } .just-revealed .tour-found { animation: none; } }
@media (min-width: 1100px) {
  .g-tour > figure { grid-area: fig; margin: .2rem 0 0; min-width: 0; }
  .tour-map { height: calc(100vh - 8.6rem); max-height: 64rem; }
  .g-world.is-revealed .tour-map { height: calc(100vh - 15rem); }
  .tour-pin { font-size: .9rem; }
  .tour-stops { gap: .25rem; margin-top: .45rem; }
  .tour-stop { padding: .2rem .5rem .25rem; }
  .tour-stop-head { font-size: .88rem; }
  .tour-quote p { font-size: .86rem; line-height: 1.32; }
  .tour-where { font-size: .74rem; }
  .tour-found { padding: .45rem .8rem .5rem; }
  .tour-work .card-title { font-size: 1.1rem; }
  .tour-work .card-author, .tour-traveller { font-size: .88rem; }
  .tour-traveller { margin-top: .15rem; }
  [data-view="tour"] .score { margin: .2rem 0 .5rem; padding: .45rem .9rem; }
  [data-view="tour"] .score-big, [data-view="tour"] .score-sub { grid-row: auto; }
  .tour-revealed { grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .45rem; }
  .tour-revealed .hw-out { grid-template-columns: 1fr; gap: 0; padding: .28rem .55rem .35rem; }
  .tour-revealed .hw-letter { display: none; }
  .tour-revealed .hw-title { font-size: .95rem; }
  .tour-revealed .hw-by, .tour-revealed .card-you, .tour-revealed .verdict { font-size: .8rem; }
  .tour-options { grid-template-columns: 1fr; gap: .6rem; }
  [data-view="tour"] [data-play] .hw-option { min-height: 4rem; }
}
.tour-pin.is-tap { cursor: pointer; }
.tour-pin.is-tap:hover { border-color: var(--game); }
.tour-stoplist { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tour-stopbtn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .3rem .9rem .3rem .45rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 700 1rem/1.1 var(--body); cursor: pointer; }
.tour-stopbtn:hover { border-color: var(--game); color: var(--game); }
.tour-stopbtn.is-set { border-color: var(--yours); }
.tour-stopbtn.is-set .tour-no { background: var(--yours); color: var(--pin-bg); }
@media (max-width: 599px) { .tour-pin { font-size: .76rem; min-height: 24px; padding: .05rem .4rem .05rem .15rem; } .tour-pin .tour-no { min-width: 1.2rem; height: 1.2rem; font-size: .7rem; } }
@media (min-width: 1100px) { .tour-stopbtn { min-height: 40px; font-size: .95rem; } .tour-stoplist { gap: .4rem; margin-top: .5rem; } }
.tour-quote .more-btn.tour-more, .tour-same .more-btn.tour-more { display: inline; margin: 0 0 0 .2rem; font-size: .8rem; }
@media (min-width: 1100px) {
  .g-tour.is-revealed { grid-template-columns: minmax(0, 1fr) 46rem; }
  .tour-stops { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tour-stop { min-width: 0; }
  .tour-where { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tour-stop .tour-quote { padding: .25rem .55rem; }
  .g-tour.is-revealed .w-under { grid-template-columns: 1fr; }
  .g-tour.is-revealed .w-under .talk { grid-column: 1; grid-row: auto; }
}
@media (min-width: 1100px) {
  .g-tour.is-revealed .w-under .tour-revealed { grid-column: 1; margin: .45rem 0 0; }
  .g-tour.is-revealed .w-under { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-tour.is-revealed .w-under .map-credit { grid-column: 1 / -1; }
  .g-tour.is-revealed .w-under .meanwhile { grid-column: 1; }
  .g-tour.is-revealed .w-under .talk { grid-column: 2; grid-row: auto; }
  .g-tour.is-revealed .w-under .tour-revealed { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tour-stop-head { font-size: .86rem; }
  .tour-quote p { font-size: .84rem; }
}
@media (min-width: 1100px) {
  /* the score beside the book, and each stop's place in the book on its name's line */
  .g-tour.is-revealed [data-reveal="tour"] { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: stretch; }
  .g-tour.is-revealed [data-reveal="tour"] > * { grid-column: 1 / -1; }
  .g-tour.is-revealed [data-reveal="tour"] > .score { grid-column: 1; margin: 0; display: flex; flex-direction: column; justify-content: center; max-width: 13rem; }
  .g-tour.is-revealed [data-reveal="tour"] > .tour-found { grid-column: 2; }
  .g-tour.is-revealed [data-reveal="tour"] > .score .score-sub { font-size: .85rem; margin: .2rem 0 0; }
  .g-tour.is-revealed [data-reveal="tour"] > .score .score-big { font-size: 1.6rem; }
  .tour-stop-head { flex-wrap: nowrap; }
  .tour-stop-head > strong, .tour-stop-head > .tour-you, .tour-stop-head > .tour-no { flex: none; }
  .tour-where { display: inline; flex: 1 1 auto; min-width: 0; width: auto; }
}
/* Table Talk: Grand Tour */
.tt--tour { --game: var(--carbon); --game-bg: var(--carbon-bg); --game-fill: var(--carbon-fill); }
.tt-tour-map { display: block; width: 100%; height: auto; max-height: 46vh; background: var(--sea); border-radius: .4em; border: 2px solid var(--line); }
.tt-tour-name { font-family: var(--body); font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--pin-bg); stroke-linejoin: round; }
.tt-tour-name.is-q { fill: var(--gold); }
.tt-tour-map { overflow: hidden; }
.tt-tour .tour-dot { r: 9; }
@media (min-width: 1100px) {
  [data-view="tour"] .tour-yours { margin: .45rem 0 .1rem; min-height: 0; font-size: .95rem; }
  [data-view="tour"] [data-play] .actions { margin-top: .5rem; }
  .tour-stopbtn { min-height: 36px; padding: .2rem .75rem .2rem .35rem; }
  .tour-card { padding-top: .5rem; padding-bottom: .55rem; }
}
@media (min-width: 1100px) {
  /* Job 8: eight on the Trolley, still one row */
  [data-view="home"] .trolley-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: .4rem; }
  [data-view="home"] .trolley-link { padding: .3rem .4rem .3rem .55rem; }
  [data-view="home"] .trolley-name { font-size: .92rem; line-height: 1.15; }
}
@media (min-width: 1100px) {
  .tour-stops { gap: .2rem; }
  .tour-stop { padding: .15rem .5rem .2rem; }
  .tour-stop .tour-quote { margin-top: .08rem; padding: .18rem .5rem; }
  .tour-quote p { line-height: 1.27; }
}
.tt-tour-a .tt-tour-map { max-height: 42vh; }
.tt-tour .tt-said { margin-top: .25em; }
.tt-tour .tt-work-note { margin-top: .3em; }
@media (min-width: 1100px) {
  /* Job 9: Grand Tour's Encore sits beside Next on a computer screen, so seven stops still fit. */
  [data-view="tour"] .next { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
  [data-view="tour"] .next .actions { margin: .6rem 0 0; }
  [data-view="tour"] .next .encore { margin: .6rem 0 0; display: flex; }
  [data-view="tour"] .next .encore-note { display: none; }
}

/* Job 10: Easy's hints */
.hints { margin: .1rem 0 .6rem; }
.hint-btn { background: transparent; color: var(--game, var(--accent)); border: 2px dashed currentColor; border-radius: 999px; min-height: 40px; padding: .25rem .9rem; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.hint-btn:hover { border-style: solid; }
.hint-left { font-weight: 400; }
.hint-list { list-style: none; margin: 0 0 .45rem; padding: 0; }
.hint-list li { margin: 0 0 .3rem; padding: .35rem .6rem; border-left: 3px solid var(--game, var(--accent)); background: var(--surface); font-size: .95rem; line-height: 1.35; }
.hint-n { font-weight: 700; }
.pt-pinned { margin: .1rem 0 .5rem; font-size: .95rem; line-height: 1.35; }
.tv-top .tv-mode { align-self: center; font-size: 1rem; }
.ps-line { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.pscores .ps-line + .ps-line { margin-top: .25rem; }
.ps-mode { font-weight: 700; margin-right: .5em; }
/* Job 10: Hard's re-deal put Napoleon's long map note into a Trolley day; on a short desktop
   window the reveal's notes give a little room. */
@media (min-width: 1100px) and (max-height: 760px) {
  [data-view="land"] .land-found { font-size: .92em; line-height: 1.32; }
  [data-view="land"] .land-revealed { gap: .35rem; }
  [data-view="land"] .land-revealed .hw-out { padding: .25rem .55rem .35rem; }
  [data-view="land"] .score { margin: .1rem 0 .4rem; }
  [data-view="tour"] [data-tour-reveal] .hw-out { padding: .3rem .5rem .35rem; }
  [data-view="tour"] [data-tour-reveal] .hw-title { font-size: .95rem; line-height: 1.2; }
  [data-view="tour"] [data-tour-reveal] .hw-by { font-size: .78rem; }
  .g-tour .w-under .talk p { font-size: .98rem; line-height: 1.28; }
  .wits-talk { gap: .4rem; }
  .wits-talk li { font-size: 1.08rem; }
}
