/* Friday Fox Valley Trivia (/trivia/). Builds on css/games.css (wg-* option buttons). */
.tv-wrap { max-width: 50rem; }
.tv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: end; }
.tv-next {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 9.5rem;
  padding: 0.6rem 0.9rem; text-align: center; background: var(--paper); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
}
.tv-next__label { font: 600 0.68rem/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tv-next__when { margin-top: 0.15rem; font: 700 1rem/1.25 var(--font-ui); color: var(--navy); }
.tv-next__count { margin-top: 0.1rem; font: 600 0.85rem/1.25 var(--font-ui); color: var(--gold-text); font-variant-numeric: tabular-nums; }

.tv-card {
  margin-top: 1.25rem; padding: 1.15rem 1.25rem 1.25rem; background: var(--paper);
  border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(11, 61, 92, 0.07);
}
.tv-card[hidden] { display: none; }
.tv-progress { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tv-progress__label { font: 600 0.8rem/1.3 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
.tv-dots { display: inline-flex; gap: 0.4rem; }
.tv-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--cream); border: 2px solid var(--light-line); }
.tv-dot.is-now { border-color: var(--navy); }
.tv-dot.is-right { background: #2E7D4F; border-color: #2E7D4F; }
.tv-dot.is-wrong { background: #B3261E; border-color: #B3261E; }
.tv-town { margin: 0.8rem 0 0; font: 600 0.78rem/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-height: 1.2em; }
.tv-q { margin: 0.3rem 0 0.95rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.tv-opts { grid-template-columns: 1fr 1fr; }
.tv-opt.is-picked { border-color: var(--navy); }
.tv-feedback { margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--card-border); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: center; }
.tv-feedback[hidden] { display: none; }
.tv-verdict { grid-column: 1; margin: 0; font: 700 1.05rem/1.3 var(--font-ui); }
.tv-verdict.is-right { color: #2E7D4F; }
.tv-verdict.is-wrong { color: #B3261E; }
.tv-fact { grid-column: 1; margin: 0; line-height: 1.5; }
.tv-fact a, .tv-recap a { color: var(--navy); }
.tv-nextq { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 0.6rem 1.2rem; white-space: nowrap; }
#tv-msg:empty { display: none; }
#tv-msg { margin-top: 0.75rem; }

.tv-score { text-align: center; border-top: 6px solid var(--gold); }
.tv-score__kicker { margin: 0; font: 600 0.8rem/1.3 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.tv-score__num { margin: 0.2rem 0 0; font: 700 clamp(3rem, 9vw, 4.25rem)/1 var(--font-ui); color: var(--navy); }
.tv-score__row { margin: 0.5rem 0 0; font-size: 1.75rem; line-height: 1.2; letter-spacing: 0.15em; }
.tv-score__rank { margin: 0.45rem 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.25; color: var(--navy); }
.tv-score__meta, .tv-score__crowd { margin: 0.4rem 0 0; color: var(--muted); line-height: 1.5; }
.tv-score__crowd:empty, .tv-share__note:empty { display: none; }
.tv-share { margin: 1rem auto 0; min-height: 52px; min-width: min(100%, 18rem); justify-content: center; padding: 0.75rem 1.6rem; font-size: 1.1rem; }
.tv-share__note { margin: 0.5rem 0 0; font-size: 0.92rem; color: #2E7D4F; font-weight: 600; }
.tv-share__text { display: block; width: 100%; max-width: 26rem; margin: 0.6rem auto 0; padding: 0.6rem; font: 0.95rem/1.4 var(--font-body); border: 1px solid var(--card-border); border-radius: var(--radius-sm); resize: none; }
.tv-share__text[hidden] { display: none; }
.tv-recap { margin: 1.1rem 0 0; text-align: left; border-top: 1px solid var(--card-border); padding-top: 0.6rem; }
.tv-recap summary { display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; font: 600 0.95rem/1.2 var(--font-ui); color: var(--navy); }
.tv-recap__list { margin: 0.4rem 0 0; padding-left: 1.4rem; }
.tv-recap__list li { padding: 0.55rem 0; border-bottom: 1px solid var(--card-border); }
.tv-recap__list li:last-child { border-bottom: 0; }
.tv-recap__q { margin: 0; font-weight: 700; line-height: 1.4; }
.tv-recap__a, .tv-recap__f { margin: 0.2rem 0 0; line-height: 1.45; }
.tv-recap__f { color: var(--muted); font-size: 0.95rem; }

.tv-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; align-items: start; }
.tv-past-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.tv-past {
  display: flex; flex-direction: column; gap: 0.1rem; min-height: 44px; padding: 0.65rem 0.8rem; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
}
.tv-past:hover { border-color: var(--river); color: var(--ink); }
.tv-past:focus-visible { outline: none; box-shadow: var(--focus); }
.tv-past__n { font: 700 1rem/1.2 var(--font-ui); color: var(--navy); }
.tv-past__date, .tv-past__score { font-size: 0.88rem; color: var(--muted); }
.tv-past.is-played .tv-past__score { color: #2E7D4F; font-weight: 600; }


@media (max-width: 760px) {
  .tv-lower { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tv-head { grid-template-columns: 1fr; align-items: start; }
  .tv-next { flex-direction: row; flex-wrap: wrap; gap: 0.2rem 0.6rem; justify-content: flex-start; align-items: baseline; min-width: 0; }
  .tv-next__when, .tv-next__count { margin-top: 0; }
  .tv-card { padding: 1rem; }
  .tv-opts { grid-template-columns: 1fr; }
  .tv-feedback { grid-template-columns: 1fr; }
  .tv-nextq { grid-column: 1; grid-row: auto; width: 100%; justify-content: center; }
  .tv-share { width: 100%; }
}
