/* tv.css — TV display visual design (Phase 2, dark/gold system per locked
   mockups — see BreweryTrivia_CLAUDE.md Section 6 auto-pacing note and the
   Phase 2 design reference). Scoped entirely under .tv-shell so it never
   touches the shared .game-screen styles player-view.js/join.html still use
   (those stay their existing light theme — out of scope for this pass).

   Per-event dynamic theming (tying colors to events.theme /
   venues.brand_color, per the locked design decision) is a real follow-up,
   not built here — this is the default dark/gold look every event gets for
   now. */

.tv-shell {
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, #262016 0%, #0d0d0e 55%, #0a0a0a 100%);
  color: #f5f0e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3vh 4vw;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

.tv-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #c9a84c;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  margin-bottom: 1.5vh;
}
.tv-brand svg { width: 34px; height: 34px; flex-shrink: 0; }

.tv-round-label {
  color: #b9ac86;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5vh;
}

.tv-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 20px;
  padding: 3.5vh 4vw;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.tv-question-text {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 3vh;
}

.tv-answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}
@media (max-width: 700px) {
  .tv-answer-grid { grid-template-columns: 1fr; }
}

.tv-answer-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tv-answer-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.18);
  color: #c9a84c;
  font-weight: 700;
  flex-shrink: 0;
}
.tv-answer-option.tv-correct {
  background: rgba(60, 154, 79, 0.18);
  border-color: #3c9a4f;
}
.tv-answer-option.tv-correct .tv-answer-letter {
  background: #3c9a4f;
  color: #fff;
}
.tv-answer-option.tv-incorrect { opacity: 0.55; }

.tv-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3vh;
  flex-wrap: wrap;
}

.tv-timer-ring {
  --pct: 100;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(#c9a84c calc(var(--pct) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: grid;
  place-items: center;
}
.tv-timer-inner {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #14120c;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.tv-teams-answered {
  color: #b9ac86;
  font-size: 1.05rem;
}

.tv-explanation {
  margin-top: 2vh;
  color: #d8cfba;
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tv-leaderboard-heading {
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin: 3vh 0 1rem;
}

.tv-leaderboard {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  text-align: left;
}
.tv-leaderboard li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
}
.tv-leaderboard li.tv-rank-1 { background: rgba(201, 168, 76, 0.2); border: 1px solid rgba(201, 168, 76, 0.5); }
.tv-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.tv-leaderboard li.tv-rank-1 .tv-rank-badge { background: #c9a84c; color: #1a1400; }
.tv-team-name { flex: 1; font-weight: 600; }
.tv-team-score { color: #c9a84c; font-weight: 700; }

.tv-final-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #c9a84c;
  margin-bottom: 1vh;
}

.tv-lobby-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2vh;
}
.tv-lobby-qr {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  display: inline-block;
  margin-bottom: 1.5vh;
}
.tv-join-url {
  color: #d8cfba;
  font-size: 0.95rem;
  margin-bottom: 2vh;
}
.tv-team-count {
  color: #b9ac86;
  font-size: 1rem;
  margin-bottom: 1vh;
}
.tv-roster {
  list-style: none;
  padding: 0;
  margin: 0 0 2vh;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 700px;
}
.tv-roster li {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}
.tv-waiting-line {
  color: #b9ac86;
  font-size: 1.05rem;
}

.tv-wager-prompt {
  font-size: 1.3rem;
  margin-bottom: 2vh;
  color: #f5f0e6;
}
.tv-wager-icon { font-size: 3rem; margin-bottom: 1.5vh; }

.tv-disclosure {
  margin-top: 2.5vh;
  font-size: 0.8rem;
  color: #7a715c;
}
