/* Trivia game styles */

.tv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.tv-back-btn {
  color: var(--color-accent); text-decoration: none; font-size: 14px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
}
.tv-header-info { text-align: right; }
.tv-bankroll-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-neutral-400); display: block; }
.tv-bankroll-val { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; }
.tv-bankroll-val::before { content: '$'; }

.tv-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Difficulty picker */
.tv-difficulty {
  text-align: center;
}
.tv-difficulty h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.tv-difficulty p {
  color: var(--color-neutral-400);
  font-size: 14px;
  margin-bottom: 32px;
}
.tv-diff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tv-diff-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-align: center;
}
.tv-diff-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.tv-diff-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.tv-diff-label {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
  margin-bottom: 8px;
}
.tv-diff-payout {
  font-size: 28px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  color: var(--color-accent);
  margin-bottom: 4px;
}
.tv-diff-desc {
  font-size: 12px;
  color: var(--color-neutral-400);
}

/* Cooldown */
.tv-cooldown {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.tv-cooldown-label {
  font-size: 13px;
  color: var(--color-neutral-400);
  margin-bottom: 4px;
}
.tv-cooldown-count {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 16px;
}

/* Question area */
.tv-question-area {
  display: none;
}
.tv-question-area.active {
  display: block;
}
.tv-timer-bar {
  height: 4px;
  background: var(--color-divider);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.tv-timer-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s linear;
  width: 100%;
}
.tv-timer-fill.warning { background: #e0a05c; }
.tv-timer-fill.danger { background: #e05c5c; }

.tv-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.tv-question-text {
  font-size: 22px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.4;
  margin-bottom: 28px;
}
.tv-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tv-answer-btn {
  background: var(--color-surface);
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  line-height: 1.3;
}
.tv-answer-btn:hover:not(.locked) {
  border-color: var(--color-accent);
  background: rgba(145, 132, 217, 0.08);
}
.tv-answer-btn.locked { cursor: default; }
.tv-answer-btn.correct {
  border-color: #5cb85c;
  background: rgba(92, 184, 92, 0.15);
}
.tv-answer-btn.wrong {
  border-color: #e05c5c;
  background: rgba(224, 92, 92, 0.15);
}

/* Result */
.tv-result {
  display: none;
  text-align: center;
  margin-top: 28px;
}
.tv-result.active { display: block; }
.tv-result-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.tv-result-text {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 24px;
  margin-bottom: 4px;
}
.tv-result-sub {
  font-size: 14px;
  color: var(--color-neutral-400);
  margin-bottom: 24px;
}
.tv-next-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  font-size: 15px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  cursor: pointer;
  transition: opacity 0.15s;
}
.tv-next-btn:hover { opacity: 0.85; }

@media (max-width: 520px) {
  .tv-diff-cards { grid-template-columns: 1fr; }
  .tv-answers { grid-template-columns: 1fr; }
  .tv-question-text { font-size: 18px; }
  .tv-difficulty h1 { font-size: 28px; }
}
