/* Guess the Date — arcade-conformant theme
 * Arcade tokens (--bg, --fg, --accent, etc.) come from tokens.css.
 * This file bridges the game's legacy local names (--text, --text-dim,
 * --bg-elev-2, --font-serif, etc.) onto the arcade tokens so the
 * existing 800+ lines of game styles work unchanged. Per-game accent
 * = indigo tone. Status colours stay distinct (green/yellow/red) but
 * use arcade tone references where possible so dark mode tracks the
 * launcher palette.
 */

:root {
  /* Legacy aliases for the original library-at-night naming — bridge
     to arcade tokens so the rest of this file keeps working. */
  --text: var(--fg);
  --text-dim: var(--fg-muted);
  --text-faint: var(--fg-subtle);
  --bg-elev-2: var(--bg);
  /* Per-game accent: indigo tone. */
  --accent: var(--tone-indigo-fg);
  --accent-dim: var(--fg-muted);
  /* Status colours — slightly muted-arcade so they read with the
     slate/system family rather than the old amber/parchment scheme. */
  --green: #16a34a;
  --yellow: #b45309;
  --gray: var(--fg-subtle);
  --red: #dc2626;
  --blue: var(--accent);
  --shadow: var(--shadow-md);
  --font-serif: var(--font-sans);
}

[data-theme="dark"] {
  --green: #4ade80;
  --yellow: #fcd34d;
  --red: #f87171;
}

* {
  box-sizing: border-box;
}

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

button:focus-visible {
  outline-offset: 3px;
}

/* Skip default outline only when JS-driven focus is moved into inputs */
.date-input input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212, 168, 87, 0.06), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(107, 143, 199, 0.05), transparent 40%);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── Header ───────────────────────────────────────── */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 1px;
  color: var(--accent);
}

h1 .sub {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

.scorebox {
  display: flex;
  align-items: center;
  gap: 20px;
}

.score-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-faint);
}

.score-value {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--accent);
  font-weight: bold;
  min-width: 4ch;
  text-align: right;
}

.score-value.low { color: var(--red); }

.stats {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 2px;
}

.stats-details > summary {
  list-style: none;
  cursor: pointer;
}
.stats-details > summary::-webkit-details-marker { display: none; }
.stats-details[open] > summary { opacity: 0.85; }

.stats-panel {
  position: absolute;
  right: 0;
  margin-top: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  box-shadow: var(--shadow);
  z-index: 50;
  min-width: 220px;
}
.stats-panel div { margin: 2px 0; }
.stats-panel strong {
  color: var(--text);
  font-family: var(--font-mono);
}

.stats-wrap { position: relative; }

.btn-link {
  background: none;
  border: none;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  padding: 6px 0 2px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: left;
}
.btn-link:hover { color: #e08080; }

/* ── Panels ───────────────────────────────────────── */

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-dim);
}
.panel-sub {
  font-size: 12px;
  color: var(--text-faint);
  margin: -6px 0 12px;
}
.panel-sub strong { color: var(--text-dim); }

/* ── Category buttons ─────────────────────────────── */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.cat-btn {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-serif);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
}

.cat-btn:hover:not(:disabled) {
  background: #2a3340;
  border-color: var(--accent-dim);
}

.cat-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.cat-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cat-btn .cat-label {
  flex: 1;
}

.cat-btn .cat-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.cat-btn .cost {
  color: var(--accent);
  font-weight: bold;
}

.cat-btn .muted {
  color: var(--text-faint);
  font-size: 11px;
}

/* ── Revealed clues ────────────────────────────────── */

.clues {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clue-block {
  background: var(--bg-elev-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 10px 14px;
  animation: fadeIn 0.3s ease-out;
}

.clue-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.clue-block-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.clue-block-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.clue-line {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.clue-line:first-of-type {
  margin-top: 2px;
}

.clue-dot {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 1.6em;
  flex-shrink: 0;
  padding-top: 2px;
}

.clue-text {
  flex: 1;
}

.clue-line.is-reveal {
  background: rgba(212, 96, 96, 0.08);
  border-radius: 3px;
  margin-left: -6px;
  margin-right: -6px;
  padding: 4px 6px;
}

.reveal-badge {
  flex-shrink: 0;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid #5a3a3a;
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 8px;
  white-space: nowrap;
}

/* ── Post-game clue review ─────────────────────────── */

.clue-review {
  margin-top: 18px;
  text-align: left;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
}

.clue-review > summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 0;
}

.clue-review[open] > summary {
  margin-bottom: 8px;
}

.review-block {
  margin: 10px 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.review-block:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.review-line.unseen {
  opacity: 0.5;
}

.review-line.unseen .clue-text {
  font-style: italic;
}

.review-line.seen .clue-text {
  color: var(--text);
}

.clues-empty {
  color: var(--text-faint);
  font-style: italic;
  padding: 8px 0;
}

.tutorial-nudge {
  background: rgba(212, 168, 87, 0.08);
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.tutorial-nudge strong { color: var(--accent); }
.tutorial-nudge code {
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── Guess input ───────────────────────────────────── */

.guess-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-input {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  gap: 4px;
}

.date-input input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 18px;
  text-align: center;
  outline: none;
  padding: 6px 2px;
  -moz-appearance: textfield;
}
.date-input input::-webkit-outer-spin-button,
.date-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.date-input input.year { width: 5ch; }
.date-input input.month,
.date-input input.day  { width: 3ch; }

.date-input .sep {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 18px;
}

.btn {
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
}

.btn:hover:not(:disabled) { background: #e6bd6c; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn.secondary:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent-dim);
  background: var(--bg-elev-2);
}

.btn.danger {
  background: transparent;
  color: var(--red);
  border: 1px solid #5a3a3a;
}
.btn.danger:hover:not(:disabled) {
  background: #2a1f1f;
  border-color: var(--red);
}

.input-error {
  color: var(--red);
  font-size: 13px;
  min-height: 1.2em;
  margin-top: 8px;
}

/* ── Guess history ─────────────────────────────────── */

.guesses {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guess-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.guess {
  background: var(--bg-elev-2);
  border-radius: 4px;
  padding: 12px 14px;
  animation: fadeIn 0.3s ease-out;
}

.guess.correct {
  border: 1px solid var(--green);
  background: rgba(107, 191, 107, 0.08);
}

.guess-tiles {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  border-radius: 3px;
  background: var(--gray);
  color: white;
  font-weight: bold;
}
.tile.green { background: var(--green); color: #0d1f0d; }
.tile.yellow { background: var(--yellow); color: #2a1f06; }
.tile.gray { background: var(--gray); color: #d0d0d0; }
.tile.sep {
  background: transparent;
  color: var(--text-faint);
  width: 14px;
}

.guess-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.guess-summary .part {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guess-summary .arrow {
  font-family: var(--font-mono);
  font-weight: bold;
}
.guess-summary .arrow.up { color: var(--blue); }
.guess-summary .arrow.down { color: var(--yellow); }
.guess-summary .arrow.ok { color: var(--green); }

.guess-summary .offset {
  color: var(--text-faint);
  font-size: 12px;
}

/* ── Game-over banner ──────────────────────────────── */

.endgame {
  text-align: center;
  padding: 22px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  animation: fadeIn 0.5s ease-out;
}

.endgame.win {
  background: rgba(107, 191, 107, 0.1);
  border: 1px solid var(--green);
}

.endgame.lose {
  background: rgba(212, 96, 96, 0.08);
  border: 1px solid #5a3a3a;
}

.endgame h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.endgame.win h2 { color: var(--green); }
.endgame.lose h2 { color: var(--red); }

.endgame .answer-date {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--text);
  margin: 6px 0 12px;
  letter-spacing: 2px;
}

.endgame .answer-event {
  color: var(--text);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 12px;
  font-size: 15px;
}

.endgame .final-score {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 14px;
}
.endgame .final-score strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
}

/* ── Action bar ────────────────────────────────────── */

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-right: auto;
}

.mode-btn {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 8px 14px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.mode-btn:hover { color: var(--text); background: var(--bg-elev-2); }

.mode-btn.active {
  background: var(--accent);
  color: #1a1206;
  font-weight: bold;
}

.share-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* ── Footer / how-to ───────────────────────────────── */

.howto {
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.howto summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.howto[open] summary {
  margin-bottom: 8px;
}

.howto .legend {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.howto .legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.howto .swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.howto .swatch.green { background: var(--green); }
.howto .swatch.yellow { background: var(--yellow); }
.howto .swatch.gray { background: var(--gray); }

footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 32px;
}

/* ── Reveal toast ──────────────────────────────────── */

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, #5a1a1a, #3a1010);
  color: var(--text);
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-serif);
  box-shadow: 0 10px 30px rgba(212, 96, 96, 0.4);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: bold;
}

.toast-text {
  font-size: 14px;
  color: var(--text);
}
.toast-text strong {
  color: var(--red);
  font-family: var(--font-mono);
}

/* ── Guess cost annotation ─────────────────────────── */

.guess-cost {
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 4px;
}

/* ── Mobile (≤ 600px) ──────────────────────────────── */

@media (max-width: 600px) {
  .container { padding: 14px 12px 40px; }

  /* The arcade topbar already shows "Guess the Date" — collapse the
     in-page h1 to a one-line score header on mobile so the Event +
     Place-your-guess panels are pulled up above the fold. */
  h1 { font-size: 18px; margin: 0; }
  h1 .sub { display: none; }

  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 14px;
    gap: 12px;
  }

  .scorebox {
    width: auto;
    justify-content: flex-end;
    gap: 12px;
  }
  .stats {
    padding-left: 12px;
    gap: 10px;
  }
  /* Keep the score easy to read at a glance even with the compact
     mobile header — it's the running tally the player cares about. */
  .score-value { font-size: 24px; }
  .score-label { font-size: 10px; }

  .panel { padding: 12px 14px; }

  .categories {
    grid-template-columns: 1fr;
  }

  .cat-btn { padding: 12px 14px; }

  .guess-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .date-input { justify-content: center; }
  .btn { width: 100%; }

  .guess-tiles { font-size: 16px; }
  .tile { width: 22px; height: 28px; }

  .guess-summary { gap: 8px; flex-direction: column; }
  .guess-cost { border-left: none; padding-left: 0; margin-left: 0; }

  .toast {
    top: 12px;
    right: 12px;
    left: 12px;
    padding: 10px 14px;
  }

  .actions {
    justify-content: stretch;
  }
  .actions .btn { width: 100%; }

  .reveal-badge {
    margin-left: 0;
    margin-top: 4px;
    align-self: flex-start;
  }
  .clue-line.is-reveal { flex-wrap: wrap; }
}

/* ── Event panel (top) ───────────────────────────────────────
 * Shows the event we're aiming the date for. The clues below
 * are time-period hints to help narrow the year/month/day.
 */
.event-panel { border-left: 3px solid var(--accent); }
.event-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 600;
}
.event-text {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--fg);
  font-weight: 500;
}
.event-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 4px 0 0;
}
@media (max-width: 540px) {
  .event-text { font-size: 16px; }
}

/* ── Date picker + timeline display ─────────────────────────
 * The INPUT is two coordinated native controls:
 *   - <input type="number"> for YEAR — typeable. iOS shows the
 *     numeric keypad, desktop accepts direct text. Lets the player
 *     jump straight to any year without scrolling the date wheel.
 *   - <input type="date"> for MONTH & DAY — full native picker.
 *     Calendar popup on desktop, wheel picker on iOS, dialog on
 *     Android.
 * They sync via the timeline module's setMarkerMs: changing one
 * updates the other.
 *
 * The SVG timeline below is the OUTPUT — it shows the current
 * selection as an indigo flag, and after commit also shows the
 * truth as a green flag with a dashed connector.
 */
.dp-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 4px;
}
.dp-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dp-field-year { flex: 0 0 110px; }
.dp-field-date { flex: 1 1 200px; min-width: 180px; }

.dp-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-subtle);
  font-weight: 600;
  margin-bottom: 6px;
}
.dp-year-input,
.dp-date-input {
  display: block;
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  /* Keep the browser's native calendar-picker indicator visible
     and readable in both light and dark themes. */
  color-scheme: light dark;
  /* Reset Safari/iOS rounded-corner overrides on number inputs. */
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.dp-year-input { text-align: center; }
.dp-year-input::-webkit-outer-spin-button,
.dp-year-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dp-year-input:focus-visible,
.dp-date-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dp-year-input:disabled,
.dp-date-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Timeline (display-only) */
.tl-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 6px;
  flex-wrap: wrap;
}
.tl-label {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tl-distance {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}
.tl-svg {
  display: block;
  width: 100%;
  height: 64px;
}

@media (max-width: 540px) {
  .dp-year-input,
  .dp-date-input { font-size: 16px; padding: 9px 10px; }
  .dp-field-year { flex: 0 0 96px; }
}

/* ── Result breakdown (after commit) ───────────────────────── */
.result-breakdown {
  display: grid;
  gap: 6px;
  background: var(--bg-elev-2);
  border-radius: 6px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
}
.rb-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.rb-row-zero { opacity: 0.55; }
.rb-label {
  font-size: 14px;
  color: var(--fg);
}
.rb-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}
.rb-value.rb-neg { color: var(--red); }
.rb-row.rb-row-zero .rb-value { color: var(--fg-muted); }
/* Your guess + Truth rows at the top of the breakdown. The truth is
   the headline — the answer the player was hunting for — so it gets
   the largest type in the breakdown, the accent color, and extra
   bottom spacing to read as a banner. */
.rb-row.rb-dates {
  align-items: center;
  padding: 4px 0;
}
.rb-row.rb-dates .rb-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  font-weight: 600;
}
.rb-row.rb-dates .rb-value {
  color: var(--fg);
  font-size: 17px;
}
.rb-row.rb-dates.rb-truth {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.rb-row.rb-dates.rb-truth .rb-value {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}
.rb-row.rb-divider {
  margin-top: 8px;
}
.rb-row.rb-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.rb-row.rb-total .rb-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--fg-subtle);
}
.rb-row.rb-total .rb-value {
  font-size: 22px;
  color: var(--accent);
}
