/* Roomful dailies (v2.0): the Daily hub, every daily puzzle and its result and share screens, phone first. One file,
   byte-identical in Roomful Trivia's www/css/ and the umbrella's gamenight/www/css/ (tests/daily_core_test.js checks).
   Its own brand colors (the approved design's hexes) under .d-page, so a party theme or a site.css change can't make a
   daily unreadable. Everything a thumb needs sits low on the screen; 44px targets; motion only without reduced motion. */
.d-page {
  --d-paper: #fff6e5; --d-ink: #0b1450; --d-cobalt: #1d33b8; --d-muted: #4a5290; --d-sky: #c9d0ff;
  --d-sun: #ffd23f; --d-tangerine: #ff7a1a; --d-mint: #22c997; --d-pink: #ff5c9e; --d-lilac: #a98bff; --d-white: #ffffff;
  --d-miss: #e9e3d6;
  background: var(--d-paper); color: var(--d-ink);
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  max-width: 560px; margin: 0 auto; padding: 12px 16px 28px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 18px; min-height: 100vh; min-height: 100svh; overflow-wrap: anywhere;
}
.d-page-body { display: flex; flex-direction: column; gap: 18px; flex: 1; }
body.d-body { background: var(--rf-cream, #fff6e5); margin: 0; }
.d-page *, .d-page *::before, .d-page *::after { box-sizing: border-box; }
.d-page a { color: var(--d-cobalt); }
.d-page a:hover { color: #0f1b6b; }
.d-page h1, .d-page h2, .d-page h3, .d-page p { margin: 0; }
.d-icon { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* header: back, title + date, streak pill */
.d-top { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.d-back { width: 48px; height: 48px; border-radius: 16px; border: 3px solid var(--d-ink); background: var(--d-white); color: var(--d-ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-titles { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; flex: 1; }
.d-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.d-sub { font-size: 15px; font-weight: 600; color: var(--d-muted); }
.d-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--d-sun);
  border: 3px solid var(--d-ink); font-weight: 800; font-size: 16px; color: var(--d-ink); flex-shrink: 0; }

/* cards and buttons */
.d-card { background: var(--d-white); border: 3px solid var(--d-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.d-card.dark { background: var(--d-ink); color: var(--d-white); border-color: var(--d-ink); }
.d-card.dark .d-kicker { color: var(--d-sky); }
.d-kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-muted); }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 18px; border-radius: 18px;
  background: var(--d-white); border: 3px solid var(--d-ink); box-shadow: 0 5px 0 var(--d-ink); font: inherit; font-size: 18px; font-weight: 800;
  color: var(--d-ink); text-decoration: none; cursor: pointer; }
.d-page a.d-btn { color: var(--d-ink); }
.d-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--d-ink); }
.d-btn:focus-visible, .d-answer:focus-visible, .d-tile:focus-visible, .d-word:focus-visible, .d-back:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.d-btn-go { background: var(--d-cobalt); color: var(--d-white); }
.d-page a.d-btn-go { color: var(--d-white); }
.d-btn-go .d-icon { color: var(--d-sun); }
.d-btn-sun { background: var(--d-sun); }
.d-btn-wide { width: 100%; }
.d-btn-big { min-height: 68px; font-size: 21px; border-radius: 22px; }
.d-link-btn { background: none; border: 0; padding: 10px 8px; min-height: 44px; font: inherit; font-weight: 700; color: var(--d-cobalt); text-decoration: underline; cursor: pointer; }
.d-row { display: flex; gap: 10px; flex-wrap: wrap; }
.d-row > * { flex: 1 1 140px; }
.d-note { font-size: 15px; color: var(--d-muted); font-weight: 600; }
.d-center { text-align: center; }
.d-error { color: #a0122f; font-weight: 700; }

/* the five-shape progress / result row */
.d-shapes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.d-shape { width: 44px; height: 44px; }
.d-shape path, .d-shape circle, .d-shape rect { stroke: var(--d-ink); stroke-width: 3; stroke-linejoin: round; }
.d-shape.miss path, .d-shape.miss circle, .d-shape.miss rect { fill: none; stroke-dasharray: 4 3; }
.d-shape.todo { opacity: 0.35; }
.d-shape.todo path, .d-shape.todo circle, .d-shape.todo rect { fill: none; }
.d-shape.now { opacity: 1; }
.d-fill-0 { fill: #ff7a1a; } .d-fill-1 { fill: #ffd23f; } .d-fill-2 { fill: #22c997; } .d-fill-3 { fill: #ff5c9e; }

/* a question and its answers (answers live in the bottom half) */
.d-question { font-size: 23px; font-weight: 800; line-height: 1.2; }
.d-group { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--d-ink); color: var(--d-sun); font-weight: 800; font-size: 14px; }
.d-answers { display: grid; gap: 10px; margin-top: auto; }
.d-answer { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 18px; border: 3px solid var(--d-ink);
  background: var(--d-white); color: var(--d-ink); font: inherit; font-size: 19px; font-weight: 700; text-align: left; cursor: pointer; box-shadow: 0 4px 0 var(--d-ink); }
.d-answer .d-shape { width: 34px; height: 34px; }
.d-answer.right { background: #c8f5e6; }
.d-answer.wrong { background: #ffd9e7; }
.d-answer.right::after, .d-answer.wrong::after { margin-left: auto; font-weight: 800; font-size: 15px; }
.d-answer.right::after { content: 'Right'; }
.d-answer.wrong::after { content: 'Not it'; }
.d-answer[disabled] { cursor: default; }
.d-fact { font-size: 17px; font-weight: 600; background: #fff0c2; border-radius: 16px; padding: 12px 14px; }
.d-verdict { font-size: 28px; font-weight: 800; }

/* the big result */
.d-big { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.d-big-score { font-size: 88px; font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.d-big-side { font-size: 30px; font-weight: 800; color: var(--d-muted); }
.d-share-card { margin: 0; background: var(--d-white); border: 3px solid var(--d-ink); border-radius: 22px 22px 22px 6px; padding: 16px 18px; font: inherit;
  font-size: 19px; font-weight: 700; line-height: 1.35; white-space: pre-wrap; }
.d-share { display: flex; flex-direction: column; gap: 10px; }
.d-share-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.d-share-buttons .d-btn { min-height: 60px; }
.d-share-status { min-height: 1.2em; font-weight: 700; }
.d-share-box { width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 3px solid var(--d-ink); border-radius: 14px; }
.d-count { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--d-ink); color: var(--d-white); }
.d-count .d-icon { color: var(--d-sun); }
.d-count-text { display: flex; flex-direction: column; line-height: 1.1; }
.d-count-label { font-size: 14px; font-weight: 700; color: var(--d-sky); }
.d-count-value { font-size: 28px; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* the hub */
.d-streak { display: flex; align-items: center; gap: 14px; }
.d-flame { width: 64px; height: 64px; border-radius: 20px; background: var(--d-sun); color: var(--d-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-streak-num { display: flex; flex-direction: column; line-height: 1; }
.d-streak-num strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.d-streak-num span { font-size: 16px; font-weight: 700; color: var(--d-sky); }
.d-week { margin-left: auto; display: flex; gap: 6px; }
.d-week span { width: 12px; height: 28px; border-radius: 6px; background: transparent; border: 2px dashed var(--d-sky); }
.d-week span.done { background: var(--d-sun); border: 0; }
.d-week span.frozen { background: var(--d-sky); border: 0; }
.d-week span.off { border-style: dotted; opacity: .45; }
.d-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.d-bar span { height: 12px; border-radius: 999px; background: var(--d-cobalt); }
.d-bar span.done { background: var(--d-mint); }
.d-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.d-tile { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 12px 10px 14px; border-radius: 22px; background: var(--d-white);
  border: 3px solid var(--d-ink); color: var(--d-ink); text-decoration: none; }
.d-page a.d-tile { color: var(--d-ink); }
.d-tile.todo { box-shadow: 0 5px 0 var(--d-ink); }
.d-tile-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; border: 3px solid var(--d-ink); display: flex; align-items: center; justify-content: center; background: var(--d-paper); }
.d-tile-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.d-tile-name { font-size: 20px; font-weight: 800; }
.d-tile-line { font-size: 15px; font-weight: 600; color: var(--d-muted); }
.d-tile-go { min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--d-ink); color: var(--d-white); display: flex; align-items: center; font-weight: 800; font-size: 17px; }
.d-tile-done { width: 40px; height: 40px; border-radius: 999px; background: var(--d-mint); border: 3px solid var(--d-ink); display: flex; align-items: center; justify-content: center; }
.d-bg-sun { background: var(--d-sun); } .d-bg-tangerine { background: var(--d-tangerine); } .d-bg-mint { background: var(--d-mint); }
.d-bg-pink { background: var(--d-pink); } .d-bg-lilac { background: var(--d-lilac); } .d-bg-sky { background: var(--d-sky); }
.d-today { display: flex; flex-direction: column; gap: 10px; }
.d-today .d-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
.d-today .d-tile { min-height: 64px; min-width: 150px; padding: 8px 10px; }
.d-today .d-tile-icon { width: 40px; height: 40px; border-radius: 12px; }
.d-past { display: flex; flex-direction: column; gap: 8px; }
.d-past-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 2px solid var(--d-miss); }
.d-past-row strong { min-width: 110px; }
.d-past-row a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-weight: 700; }

/* number input */
.d-input-row { display: flex; gap: 10px; align-items: center; }
.d-input { flex: 1; min-width: 0; min-height: 60px; font: inherit; font-size: 26px; font-weight: 800; padding: 0 14px; border: 3px solid var(--d-ink); border-radius: 18px; background: var(--d-white); color: var(--d-ink); }
.d-unit { font-weight: 800; font-size: 18px; color: var(--d-muted); }

/* Groups */
.d-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.d-word { min-height: 64px; padding: 4px; border-radius: 14px; border: 3px solid var(--d-ink); background: var(--d-white); color: var(--d-ink);
  font: inherit; font-weight: 800; font-size: clamp(13px, 3.4vw, 16px); text-transform: uppercase; cursor: pointer; overflow-wrap: normal; word-break: normal; line-height: 1.1; }
.d-word.long { font-size: clamp(13px, 3.4vw, 14px); letter-spacing: -0.02em; overflow-wrap: anywhere; } /* 13 px floor (was 9-10 px at 390; P9) */
.d-word.picked { background: var(--d-ink); color: var(--d-white); }
.d-solved { border-radius: 16px; border: 3px solid var(--d-ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.d-solved strong { font-size: 17px; }
.d-solved span { font-weight: 700; font-size: 15px; text-transform: uppercase; }
.d-solved-0 { background: #ffb27a; } .d-solved-1 { background: #ffe68a; } .d-solved-2 { background: #8de6c6; } .d-solved-3 { background: #ffa6c9; }
.d-lives { display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 700; }
.d-lives .d-shape { width: 26px; height: 26px; }

/* Ladder */
.d-rungs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.d-rung { display: flex; gap: 6px; }
.d-rung span { width: 48px; height: 52px; border-radius: 12px; border: 3px solid var(--d-ink); background: var(--d-white); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; text-transform: uppercase; }
.d-rung.end span { background: var(--d-sun); }
.d-rung.start span { background: var(--d-sky); }
.d-rung.typing span { background: var(--d-paper); border-style: dashed; }
.d-rung span.changed { background: #c8f5e6; }
.d-keys { display: flex; flex-direction: column; gap: 6px; }
.d-keyrow { display: flex; gap: 4px; justify-content: center; }
.d-key { flex: 1 1 0; min-width: 0; max-width: 46px; min-height: 52px; border-radius: 10px; border: 2px solid var(--d-ink); background: var(--d-white); color: var(--d-ink);
  font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; padding: 0; }
.d-key.wide { max-width: 72px; flex-grow: 1.6; font-size: 15px; }
.d-key.go { background: var(--d-cobalt); color: var(--d-white); }

/* Mystery */
.d-suspects { display: grid; gap: 10px; }
.d-suspect { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; border: 3px solid var(--d-ink); border-radius: 18px; background: var(--d-white); }
.d-suspect.out { opacity: 0.45; text-decoration: line-through; }
.d-suspect h3 { font-size: 20px; font-weight: 800; }
.d-suspect dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 15px; }
.d-suspect dt { font-weight: 800; color: var(--d-muted); }
.d-suspect dd { margin: 0; font-weight: 600; }
.d-clues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: clue; }
.d-clues li { padding: 10px 12px 10px 44px; border-radius: 14px; background: #fff0c2; font-weight: 600; position: relative; counter-increment: clue; }
.d-clues li::before { content: counter(clue); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; border-radius: 999px; background: var(--d-ink); color: var(--d-white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.d-accuse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-accuse .d-btn { min-height: 56px; font-size: 16px; padding: 0 6px; }

/* Bingo */
.d-bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.d-bingo-head { font-size: 22px; font-weight: 800; text-align: center; }
.d-cell { aspect-ratio: 1 / 1; min-height: 44px; border-radius: 12px; border: 3px solid var(--d-ink); background: var(--d-white); color: var(--d-ink); font: inherit;
  font-size: clamp(16px, 5vw, 24px); font-weight: 800; cursor: pointer; padding: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; box-sizing: border-box; }
.d-cell.marked { background: var(--d-mint); }
/* v2.2 (P15): FREE sits in the middle of its square at every width (the span had no flex centering, so it hugged the top left) */
.d-cell.free { background: var(--d-sun); font-size: clamp(13px, 3.4vw, 15px); letter-spacing: 0.02em; cursor: default; overflow: hidden; }
.d-call { display: flex; align-items: center; gap: 14px; }
.d-ball { width: 84px; height: 84px; border-radius: 999px; background: var(--d-sun); border: 3px solid var(--d-ink); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; flex-shrink: 0; white-space: nowrap; }
.d-called { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; font-weight: 700; color: var(--d-muted); }
.d-called span { white-space: nowrap; }
/* v2.2 (P15): hear the calls (js/voice.js) */
.d-voice { display: grid; gap: 8px; }
.d-voice-toggle { justify-self: start; min-height: 48px; font-size: 16px; }
.d-voice-toggle[aria-pressed="true"] { background: var(--d-ink); color: var(--d-white); }
.d-voice .voice-picker { display: grid; gap: 8px; padding: 12px; border: 3px solid var(--d-ink); border-radius: 18px; background: var(--d-white); color: var(--d-ink); }
.d-voice .voice-picker[hidden] { display: none; }
.d-voice .voice-picker > label:first-child { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.d-voice .voice-row { display: flex; gap: 8px; min-width: 0; }
.d-voice .voice-row select { flex: 1; min-width: 0; min-height: 48px; border: 3px solid var(--d-ink); border-radius: 14px; padding: 0 10px; font: inherit; font-weight: 700;
  background: var(--d-white); color: var(--d-ink); }
.d-voice .voice-row button { min-width: 72px; min-height: 48px; border: 3px solid var(--d-ink); border-radius: 14px; background: var(--d-sun); color: var(--d-ink); font: inherit; font-weight: 800; cursor: pointer; }
.d-voice .voice-picker label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
/* v2.2 (FIX-C, QA-C #9): the Slower tick box drawn on the daily tokens (the native one took site.css's dark color-scheme:
   a solid dark square whether ticked or not). */
.d-voice .voice-picker label.check { cursor: pointer; }
.d-voice .voice-picker label.check input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin: 0;
  border: 3px solid var(--d-ink); border-radius: 7px; background: var(--d-white); cursor: pointer; }
.d-voice .voice-picker label.check input:checked { background: var(--d-ink); }
.d-voice .voice-picker label.check input:checked::after { content: ''; width: 6px; height: 12px; margin-top: -3px; border: solid var(--d-white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.d-voice .voice-picker label.check input:focus-visible { outline: 3px solid var(--d-ink); outline-offset: 2px; }
.d-voice .voice-note { margin: 0; font-size: 14px; color: var(--d-muted); }

/* Charades */
.d-charade { font-size: clamp(30px, 9vw, 46px); font-weight: 800; text-align: center; line-height: 1.1; padding: 26px 10px; }
.d-tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Daily Deal (Klondike) */
.d-table { background: #0f6b4f; border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 10px; border: 3px solid var(--d-ink); }
.d-table-top, .d-table-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.d-pile { position: relative; aspect-ratio: 5 / 7; border-radius: 6px; border: 2px dashed rgba(255, 255, 255, 0.45); padding: 0; background: transparent; cursor: pointer; min-width: 0; }
.d-col { display: flex; flex-direction: column; min-height: 120px; padding: 0 0 8px; min-width: 0; cursor: pointer; }
.d-card-face { display: block; position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.d-col .d-card-face + .d-card-face { margin-top: -108%; }
.d-col .d-card-face.down + .d-card-face { margin-top: -122%; }
.d-pile .d-card-face { position: absolute; inset: 0; }
.d-col .d-card-face:focus-visible { outline: 3px solid var(--d-tangerine); }
.d-card-face svg { width: 100%; height: 100%; display: block; }
.d-card-face.picked { outline: 3px solid var(--d-sun); outline-offset: -1px; }
.d-card-face.back { background: var(--d-cobalt); }
.d-table .card-face-bg { fill: #fdfaf2; stroke: #d9d2bd; stroke-width: 2; }   /* the card art's own rules (cards.css), for this page */
.d-table .card-back-bg { fill: #1d33b8; stroke: #0b1450; stroke-width: 2; }
.d-table .corner-rank { font-size: 46px; font-weight: 700; font-family: Georgia, serif; }
.d-table .corner-suit { font-size: 36px; }
.d-table .pip { font-family: Georgia, serif; }
.d-deal-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 700; }
/* v2.2 (P15): Hint, how to play */
.d-deal-tools > * { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.d-deal-status { font-size: 18px; line-height: 1.3; min-height: 1.3em; }
/* v2.2 review fix (L2): a tighter column on the Deal, so "I'm done" is on a 390 x 844 phone's first screen with How to play open */
.d-page-body:has(> .d-deal-tools) { gap: 10px; }
.d-deal-tools .d-btn, #dealDone { min-height: 48px; }
.d-howto { border: 3px solid var(--d-ink); border-radius: 18px; background: var(--d-white); padding: 0 12px; }
.d-howto summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.d-howto summary:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-howto p { margin: -4px 0 10px; font-size: 15px; line-height: 1.35; }   /* v2.2 (FIX-C): short and tight, so the Deal's tools stay on screen (running text stays 15 px) */
.d-card-face.d-hint-src { outline: 3px solid var(--d-sun); outline-offset: -1px; box-shadow: 0 0 0 3px var(--d-tangerine); }
.d-pile.d-hint-src, .d-pile.d-hint-dst, .d-col.d-hint-dst { outline: 3px solid var(--d-sun); outline-offset: 1px; border-radius: 8px; }
.d-col.d-hint-dst { background: rgba(255, 210, 63, 0.22); }

@media (prefers-reduced-motion: no-preference) {
  .d-hint-src, .d-hint-dst { animation: d-hint 900ms ease-in-out 3; }
  @keyframes d-hint { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) scale(1.04); } }
  .d-pop { animation: d-pop 260ms ease-out; }
  @keyframes d-pop { from { transform: scale(0.92); } to { transform: scale(1); } }
}
/* v2.0 (P12): the party colors (js/theme.js) reach the dailies: the scheme's blue (5:1 or more against white) on buttons, and
   (v2.1) its ground tint for the paper with its muted text and links (site.css :root[data-theme]). */
:root[data-theme] .d-page { --d-cobalt: var(--cobalt); --d-paper: var(--rf-cream); --d-muted: var(--rf-muted-cream); }
:root[data-theme] .d-page a:not([class]), :root[data-theme] .d-link-btn { color: var(--deep); }   /* links: the scheme's darkest shade on its tint */
/* The speaker button in a daily's header: the games' sound on/off (js/fx.js). */
.d-sound { width: 48px; height: 48px; border-radius: 16px; border: 3px solid var(--d-ink); background: var(--d-white); color: var(--d-ink);
  display: inline-grid; place-items: center; flex-shrink: 0; cursor: pointer; padding: 0; }
.d-sound:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-top .d-sound { margin-left: auto; }
.d-top .d-sound + .d-pill { margin-left: 0; }
/* Points that pop in next to a verdict ("+1"). */
.d-points { display: inline-block; margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: var(--d-sun); border: 3px solid var(--d-ink);
  font-size: 22px; font-weight: 800; color: var(--d-ink); vertical-align: middle; }
/* The result screen right after playing (RoomfulDaily.fx.result): the score lands first, big, with its shapes popping in
   one by one; everything under it (share card, countdown, links) rises in after. */
.d-fx-fresh .d-big-score { font-size: min(108px, 22vw); }

@keyframes d-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes d-land { 0% { transform: scale(0.3) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.18) rotate(2deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .d-fx-fresh > * { animation: d-rise 0.45s ease-out both; animation-delay: 0.9s; }
  .d-fx-fresh > :first-child { animation: none; }
  .d-fx-fresh > :nth-child(2) { animation-delay: 0.7s; }
  .d-fx-fresh .d-big-score { animation: d-land 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; display: inline-block; }
  .d-fx-fresh .d-big-side { animation: d-rise 0.4s ease-out 0.3s both; }
  .d-fx-fresh .d-center .d-shapes > * { animation: d-land 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(0.35s + var(--d-i, 0) * 0.09s); }
}
@media (max-width: 360px) {
  .d-big-score { font-size: 72px; }
  .d-rung span { width: 42px; height: 46px; font-size: 21px; }
}
/* inside the umbrella's page frame (tools/build_daily.py: main_class d-shell) the daily is a paper panel */
.d-shell .d-page { border-radius: 28px; margin-top: 8px; margin-bottom: 16px; }

/* Thumb-first on phones (P9, the viewport matrix): the Daily Trivia's Start stays at the bottom of the screen. */
@media (max-width: 767px) {
  #dailyStart { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
}

/* v2.2 (P14): one place for every daily. "All dailies" sits above every daily's title (the header's first row), a done
   daily on the hub has its share text one tap away, and Groups and Word Ladder open with a "How it works" example. */
.d-crumb { display: flex; }
.d-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 3px solid var(--d-ink);
  background: var(--d-white); font-weight: 800; font-size: 16px; text-decoration: none; }
.d-page a.d-all { color: var(--d-ink); }
.d-all:focus-visible, .d-tile-share:focus-visible, .d-how-sum:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-tile-row { display: flex; gap: 8px; align-items: stretch; }
.d-tile-row > .d-tile { flex: 1; min-width: 0; }
.d-tile-share { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 44px;
  border-radius: 18px; border: 3px solid var(--d-ink); background: var(--d-sun); color: var(--d-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.d-how { background: var(--d-white); border: 3px solid var(--d-ink); border-radius: 18px; padding: 0 14px; }
.d-how-sum { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; font-size: 17px; cursor: pointer; }
.d-how[open] { padding-bottom: 14px; }
.d-how-body { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.d-rungs-small .d-rung span { width: 34px; height: 36px; font-size: 18px; border-width: 2px; border-radius: 9px; }

/* v2.3 (P17): the Daily Charades, "Guess the clues" (js/daily-charades.js) */
.d-clue-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 600; }
.d-switch { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 18px; border: 3px solid var(--d-ink);
  background: var(--d-white); color: var(--d-ink); font: inherit; text-align: left; cursor: pointer; }
.d-switch:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-switch-box { flex: none; width: 52px; height: 30px; border-radius: 999px; border: 3px solid var(--d-ink); background: var(--d-miss); position: relative; }
.d-switch-box::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--d-ink); }
.d-switch[aria-checked="true"] .d-switch-box { background: var(--d-mint); }
.d-switch[aria-checked="true"] .d-switch-box::after { left: auto; right: 3px; }
.d-switch-text { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.25; }
.d-switch-text strong { font-size: 18px; font-weight: 800; }
.d-or { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 2px dashed var(--d-muted); }
.d-clue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-clue-lede { font-size: 18px; font-weight: 600; }
.d-clue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-clue { display: flex; gap: 10px; align-items: flex-start; font-size: 19px; font-weight: 700; line-height: 1.3; }
.d-clue-n { flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--d-ink); color: var(--d-white); display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.d-clue-foot { display: flex; justify-content: flex-end; }
.d-worth { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--d-sun); border: 3px solid var(--d-ink); color: var(--d-ink); font-size: 16px; font-weight: 800; }
.d-answer > span { min-width: 0; }
.d-clue-verdict.is-right { background: #c8f5e6; }
.d-clue-verdict.is-missed { background: var(--d-white); }
.d-clue-verdict .d-charade { padding: 10px; }
.d-recap { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.d-recap li { font-size: 17px; }
.d-recap li > span { display: inline-block; }
.d-recap-word { font-weight: 800; margin-right: 8px; }
.d-recap-pts { font-weight: 600; color: var(--d-muted); }
.d-recap li.is-missed .d-recap-word { text-decoration: line-through; text-decoration-thickness: 2px; }

/* v2.3 (P18): the Deal's Pause and I'm done, side by side, each with a second line saying what it does */
.d-deal-leave > .d-btn { min-height: 48px; padding: 0 12px; justify-content: flex-start; }
.d-btn-two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.d-btn-two small { font-size: 14px; font-weight: 600; }
.d-paused { border-style: dashed; }

/* v2.3 (P19): "Post your score" on a result (inside the share card's section), today's boards (/daily/board) and the verify
   page (/daily/verify). The daily palette only (ink on white or paper, white on cobalt, ink on sun): readable in every theme. */
.d-post { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 16px; border: 3px solid var(--d-ink); border-radius: 22px; background: var(--d-white); }
.d-post-points { font-size: 17px; font-weight: 700; }
.d-post-points strong { font-size: 24px; font-weight: 800; }
.d-post-label { font-weight: 800; font-size: 16px; }
.d-page .d-post-name { font-size: 20px; min-height: 52px; flex: none; width: 100%; }
.d-check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
.d-check input { width: 26px; height: 26px; margin: 0; flex-shrink: 0; accent-color: var(--d-cobalt); }
.d-post-status { min-height: 1.2em; font-weight: 700; color: var(--d-ink); }
.d-post-status.d-error { color: #a0122f; }
.d-check input:focus-visible, .d-post-name:focus-visible, .d-tab:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.d-page a.d-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 3px solid var(--d-ink);
  background: var(--d-white); color: var(--d-ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.d-page a.d-tab.on { background: var(--d-cobalt); color: var(--d-white); }
.d-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.d-board li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 6px; border-bottom: 2px solid var(--d-miss); }
.d-board li:last-child { border-bottom: 0; }
.d-board li.me { background: var(--d-sun); border-radius: 14px; border-bottom-color: transparent; }
.d-board-rank { min-width: 42px; font-weight: 800; font-size: 17px; }
.d-board-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.d-board-name { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-board-you { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--d-ink); color: var(--d-white); }
.d-board-line { font-size: 15px; font-weight: 600; color: var(--d-muted); white-space: pre-wrap; }
.d-board li.me .d-board-line { color: var(--d-ink); }
.d-board-score { font-size: 22px; font-weight: 800; min-width: 48px; text-align: right; }

/* v2.7: "Beat my result", the hub's Add to Home Screen card, the family scorecard (/daily/card) */
.d-share-buttons #dailyChallenge { grid-column: 1 / -1; }
.d-beat { padding: 12px 14px; border-radius: 16px; background: var(--d-sun); border: 3px solid var(--d-ink); font-size: 18px; font-weight: 800; }
.d-install { border-style: dashed; }
.d-install-how { font-size: 17px; font-weight: 800; }
.d-bg-coral { background: #ff8a7a; } .d-bg-navy { background: var(--d-cobalt); color: var(--d-white); }
.d-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--d-ink); font-size: 15px; font-weight: 800; white-space: nowrap; color: var(--d-ink); }
.d-chip.d-bg-navy { color: var(--d-white); }
.d-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.d-pick-btn, .d-pick-member { min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 14px; border: 3px solid var(--d-ink); background: var(--d-white);
  font: inherit; font-size: 16px; font-weight: 800; color: var(--d-ink); cursor: pointer; }
.d-pick-btn.d-bg-navy { color: var(--d-white); }
.d-pick-btn[aria-pressed="true"] { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-pick-btn[disabled] { opacity: 0.35; cursor: default; }
.d-pick-member { background: var(--d-paper); padding: 0 8px; }
.d-pick-btn:focus-visible, .d-pick-member:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.d-score-wrap { overflow-x: auto; margin: 0 -6px; }
.d-score-table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.d-score-table td { white-space: nowrap; }
.d-score-table th, .d-score-table td { padding: 6px 4px; text-align: center; border-bottom: 2px solid var(--d-miss); }
.d-score-table thead th { font-size: 13px; color: var(--d-muted); }
.d-score-table thead th.today { color: var(--d-ink); text-decoration: underline; }
.d-score-table tbody th { text-align: left; }
.d-score-table td { font-weight: 800; min-width: 34px; }
.d-score-table tr.me td { background: rgba(255, 210, 63, 0.28); }
.d-scorecard .d-tile-name .d-note { font-size: 14px; }
@media (max-width: 400px) {
  .d-score-table { font-size: 13px; }
  .d-score-table th, .d-score-table td { padding: 5px 2px; }
  .d-score-table .d-chip { font-size: 12px; padding: 2px 6px; white-space: normal; }
}

/* v2.8: the Letter Grid (js/daily-grid.js; the Words race's TV and phones use the same cells). Big cells (64px and up on a
   phone, never under 44px), each with one of the four Roomful shapes in its corner; the traced word lights up in cobalt. */
.g-sizes { display: flex; gap: 8px; }
.g-sizes .d-btn { flex: 1 1 0; min-height: 48px; font-size: 16px; box-shadow: 0 3px 0 var(--d-ink); }
.g-sizes .d-btn.on { background: var(--d-ink); color: var(--d-white); }
.g-grid { display: grid; gap: 8px; width: 100%; max-width: 420px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-grid.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-grid.g-3 { grid-template-columns: repeat(3, 1fr); max-width: 330px; }
.g-cell { position: relative; aspect-ratio: 1; min-width: 44px; min-height: 44px; border-radius: 18px; border: 3px solid var(--d-ink); background: var(--d-white);
  box-shadow: 0 4px 0 var(--d-ink); font: inherit; font-size: clamp(28px, 9vw, 44px); font-weight: 800; color: var(--d-ink); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; touch-action: none; }
.g-cell::after { content: ''; position: absolute; top: 7px; right: 7px; width: 12px; height: 12px; background: var(--d-sun); border: 2px solid var(--d-ink); }
.g-cell.g-c0::after { clip-path: polygon(50% 0, 100% 100%, 0 100%); border: 0; background: var(--d-tangerine); }
.g-cell.g-c1::after { border-radius: 50%; background: var(--d-mint); }
.g-cell.g-c2::after { transform: rotate(45deg); width: 10px; height: 10px; background: var(--d-pink); }
.g-cell.g-c3::after { border-radius: 2px; background: var(--d-sky); }
.g-cell.on { background: var(--d-cobalt); color: var(--d-white); }
.g-cell.last { background: var(--d-ink); }
.g-cell:focus-visible { outline: 4px solid var(--d-tangerine); outline-offset: 2px; }
.g-word { min-height: 48px; text-align: center; font-size: 34px; font-weight: 800; letter-spacing: 0.08em; }
.g-verdict { font-size: 18px; text-align: center; min-height: 24px; }
.g-actions .d-btn { flex: 1 1 90px; }
.g-found { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g-found li { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 12px; background: var(--d-paper); border: 2px solid var(--d-ink); font-weight: 800; }
.g-pts { font-size: 13px; color: var(--d-muted); }
.g-missed summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.g-timer, .g-timer-on { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 18px; min-height: 44px; }
.g-timer-on input { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .g-grid.g-4 { max-width: 460px; }
}

/* v2.8: Country Shape (js/daily-shape.js): the outline big on cream, the list of names to pick from, the guesses with distance,
   an arrow and how close. */
.s-frame { margin: 0 auto; width: 100%; max-width: 340px; aspect-ratio: 1; background: var(--d-white); border: 3px solid var(--d-ink); border-radius: 22px; padding: 18px;
  display: flex; align-items: center; justify-content: center; }
.s-img { width: 100%; height: 100%; object-fit: contain; }
.s-verdict { font-size: 18px; text-align: center; min-height: 24px; }
.s-ask { display: flex; flex-direction: column; gap: 8px; }
.s-input { min-height: 56px; font-size: 20px; }
.s-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.s-pick { width: 100%; justify-content: flex-start; min-height: 48px; font-size: 17px; box-shadow: 0 3px 0 var(--d-ink); }
.s-guesses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.s-guess { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--d-ink); background: var(--d-white); font-weight: 800; }
.s-guess.hit { background: var(--d-mint); }
.s-name { flex: 1 1 140px; }
.s-way { font-size: 26px; line-height: 1; }
.s-pct { min-width: 44px; text-align: right; }
.s-units { display: flex; gap: 8px; justify-content: center; }
.s-units .d-btn { min-height: 44px; font-size: 15px; box-shadow: 0 3px 0 var(--d-ink); }
.s-units .d-btn.on { background: var(--d-ink); color: var(--d-white); }
.s-marks { font-size: 30px; letter-spacing: 0.1em; }

/* ---------- v2.20: the page's static text, the big card, the fold and the More row ---------- */
.d-shell main { display: flex; flex-direction: column; }
.d-intro { max-width: 560px; width: 100%; margin: 0 auto 18px; color: var(--rf-ink); line-height: 1.55; }
.d-intro h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.1; }
.d-intro h2 { margin: 18px 0 6px; font-size: 1.15rem; }
.d-intro p { margin: 0 0 10px; }
.d-intro a { color: var(--rf-link-cream); }
.d-intro-list { margin: 0 0 10px; padding-left: 20px; }
.d-intro-list li { margin-bottom: 6px; }
.d-intro-faq { margin: 0; }
.d-intro-faq dt { font-weight: 800; margin-top: 10px; }
.d-intro-faq dd { margin: 2px 0 0; }
.d-yesterday { padding: 10px 14px; border-radius: 16px; background: var(--rf-white); }
.d-archive-day { padding: 14px 0; border-top: 2px solid var(--rf-line-cream); }
.d-archive-day h2 { margin-top: 0; }
.d-archive-day dt { font-weight: 800; margin-top: 8px; }
.d-archive-day dd { margin: 0; }
/* With the script running the puzzle comes first and the reading matter follows it; without one the text is all there is. */
body.d-ready .d-intro:not(.d-archive) { order: 2; margin-top: 24px; }
body.d-ready .d-shell main > .ad-slot { order: 3; }
.d-hub-lead { font-size: 1.15rem; font-weight: 800; }
.d-bigcard { display: flex; align-items: center; gap: 16px; min-height: 124px; padding: 16px; border: 3px solid var(--d-ink); border-radius: 26px; background: var(--d-white); color: var(--d-ink); text-decoration: none; }
.d-page a.d-bigcard { color: var(--d-ink); }
.d-bigcard .d-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-bigcard .d-tile-name { font-size: 1.4rem; }
.d-fold-summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.d-fold .d-list { margin-top: 8px; }
.d-more { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--d-ink); border-radius: 999px; background: var(--d-white); color: var(--d-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.d-page a.d-chip { color: var(--d-ink); }
.d-past-gone { color: var(--d-ink); }
