/* Trivia (w3.6.63). Sizes are in em so the suite text-size setting
   (--text-scale on the body font) scales the question and answers.
   Tap targets: every button at least 48px, answer buttons at least 56px. */
.tv-chooser { display: flex; flex-direction: column; gap: var(--space); padding: var(--space); }
.tv-today-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 72px; padding: 14px 20px; text-align: left; width: min(100%, 560px);
}
.tv-today-title { font-size: 1.35em; font-weight: 800; }
.tv-today-line { font-size: 1em; opacity: 0.92; }
.tv-chooser-note { margin: 0; color: var(--fg-dim); font-size: 1.05em; }
.tv-cat-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tv-cat-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: 10px 16px; text-align: left;
}
.tv-cat-name { font-weight: 700; font-size: 1.15em; }
.tv-cat-note { font-size: 0.92em; color: var(--focus); font-weight: 700; }
.tv-categories-btn { min-height: 48px; }

.tv-play { width: min(100%, 820px); margin: 0 auto; padding: var(--space); display: flex; flex-direction: column; gap: 14px; }
.tv-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.tv-progress { font-size: 1.15em; font-weight: 700; }
.tv-category { font-size: 1em; color: var(--fg-dim); }
.tv-question { margin: 0; font-size: 1.75em; line-height: 1.3; font-weight: 700; }
.tv-answers { display: flex; flex-direction: column; gap: 12px; }
.tv-answer {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 10px 16px;
  background: rgba(255,255,255,0.12); color: var(--fg);
  border-radius: var(--radius-lg);
  font-size: 1.3em; font-weight: 600; text-align: left;
  border: 2px solid transparent;
}
.tv-answer:hover { background: rgba(255,255,255,0.2); }
.tv-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.9em; height: 1.9em; border-radius: 8px;
  background: var(--focus); color: #111; font-weight: 800;
}
.tv-answer-text { flex: 1 1 auto; }
.tv-answer-mark { flex: 0 0 auto; font-size: 0.8em; font-weight: 700; }
.tv-answer.is-right { background: #2f8f57; border-color: #8fe0ad; color: #fff; }
.tv-answer.is-wrong { background: #6b3a3a; border-color: #e0a0a0; color: #fff; }
.tv-answer.is-dim { background: rgba(255,255,255,0.06); color: var(--fg-dim); }
.tv-answer.is-dim .tv-chip { opacity: 0.75; }
.tv-answer[aria-disabled="true"] { cursor: default; }
.tv-fact {
  background: rgba(78,194,122,0.12); border: 2px solid rgba(78,194,122,0.5);
  border-radius: var(--radius-lg); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.tv-verdict { font-size: 1.4em; font-weight: 800; }
.tv-verdict.is-right { color: #8fe0ad; }
.tv-verdict.is-wrong { color: #ffd9a0; }
.tv-fact-label { font-size: 0.95em; color: var(--fg-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tv-fact-text { font-size: 1.2em; line-height: 1.45; }
.tv-next-btn { align-self: flex-end; min-height: 56px; min-width: 200px; font-size: 1.15em; margin-top: 6px; }

.tv-results-wrap { padding: var(--space); }
.tv-results-wrap:empty { display: none; }
.tv-results { max-width: 560px; }
.tv-results-title { margin: 0; }
.tv-results-score { font-size: 1.9em; font-weight: 800; }
.tv-results-kind { font-size: 1.2em; }
.tv-results-coins, .tv-results-note { color: var(--fg-dim); font-size: 1.05em; }
.tv-results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tv-play-again, .tv-back { min-height: 56px; min-width: 160px; font-size: 1.1em; }

@media (max-width: 520px) {
  .tv-question { font-size: 1.45em; }
  .tv-answer { font-size: 1.15em; padding: 8px 12px; }
  .tv-next-btn { align-self: stretch; }
}
