/* Tietovisa — pelishow-teema (ylikirjoittaa juomapelit.css:n korttinäkymän) */
body:has(#tvGameView) .jp-card-display {
  background: linear-gradient(145deg, #1a2848, #0f1828);
  border-color: rgba(126, 176, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(91, 141, 239, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:has(#tvGameView) .jp-card-display .jp-prompt {
  color: #f0f4ff;
}

body:has(#tvGameView) .jp-quiz-opt:hover:not(:disabled) {
  transform: translateX(4px);
}

body:has(#tvGameView) .jp-quiz-options {
  max-width: min(32rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.tv-genre-chip:has(input:checked) {
  background: rgba(91, 141, 239, 0.1);
}

.tv-genre-badge {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.tv-genre-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 0.75rem 0;
}

.tv-genre-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-size: 0.9rem;
}

.tv-genre-chip:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.2);
}

.tv-genre-chip input {
  flex-shrink: 0;
}

.tv-genre-label {
  line-height: 1.3;
}

.tv-genre-badge {
  text-align: center;
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.tv-remaining {
  text-align: center;
  margin: 0 0 0.5rem;
}

.tv-final-list {
  margin: 1rem auto;
  max-width: min(24rem, 100%);
  padding-left: 1.25rem;
  line-height: 1.6;
}

@media (min-width: 1400px) {
  .tv-genre-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.65rem;
  }
  .tv-genre-chip {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1800px) {
  .tv-genre-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .tv-final-list {
    max-width: min(28rem, 100%);
  }
}
