/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #0a0b0f;
  --bg-2: #0e1017;
  --bg-3: #0a0b0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --success: #22c55e;
  --error: #ef4444;
  --text: #e0e4ea;
  --text-muted: #8891a0;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Subtle animated gradient — aveno signature */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(100, 120, 180, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(140, 100, 160, 0.04) 0%, transparent 60%);
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 3%); }
}

/* ── Screens ──────────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100dvh;
}

.screen.active {
  display: flex;
}

/* ── Setup Screen ─────────────────────────────────────────────── */
#setup-screen {
  align-items: center;
  justify-content: safe center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.setup-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.game-title {
  font-size: 2.2rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.game-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.chip:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.preset-chip {
  border-style: dashed;
}

/* Screens need z-index above body::before */
.screen { position: relative; z-index: 1; }

/* ── Teams setup ──────────────────────────────────────────────── */
.teams-section {
  margin-bottom: 1.5rem;
}

.teams-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.team-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-name-input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.team-name-input:focus {
  border-color: var(--primary);
}

.team-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
  flex-shrink: 0;
}

.team-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--error);
  color: var(--error);
}

.btn-add-team {
  width: 100%;
  text-align: center;
}

/* Compact settings row */
.compact-settings {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.compact-setting {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.compact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}

.stepper-btn:hover {
  background: var(--surface-hover);
}

.stepper-value {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 30px;
}

.chip-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
}

.setup-ad, .result-ad { max-width: 600px; margin: 0 auto 1.25rem; }

.song-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
}

.btn-secondary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Game Screen ──────────────────────────────────────────────── */
#game-screen {
  flex-direction: column;
}

/* Loading overlay */
#game-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#game-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-back:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.round {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Turn banner (inline in header) */
.turn-banner {
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.02em;
  border-radius: 999px;
  white-space: nowrap;
}

/* Player section */
.player-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  gap: 1.25rem;
  flex-shrink: 0;
}

.vinyl-container {
  position: relative;
}

.vinyl {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
      circle,
      #444 0%,
      #444 15%,
      transparent 15.5%
    ),
    radial-gradient(circle, transparent 0%, transparent 14%, #222 14.5%, #222 16%, transparent 16.5%),
    repeating-radial-gradient(circle, #1a1a1a 0px, #111 1px, #1a1a1a 2px, #222 3px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  animation: spin 3s linear infinite;
  animation-play-state: paused;
  position: relative;
}

.vinyl::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
}

.vinyl.spinning {
  animation-play-state: running;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.play-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.play-button:hover {
  background: var(--primary-hover);
}

.replay-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.replay-button:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.play-button.spent,
.replay-button.spent {
  opacity: 0.3;
  pointer-events: none;
}

.progress-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.time-display {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

#loading-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mini-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Timelines grid (horizontal split) ────────────────────────── */
.timelines-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.team-tl-section {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  min-height: 0;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, background 0.25s;
}

.team-tl-section.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.04);
}

.team-tl-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.team-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-tl-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.85rem;
}

.team-tl-score {
  font-weight: 800;
  font-size: 1rem;
}

/* Timeline inside each team section */
.timeline-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.75rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.timeline-container::-webkit-scrollbar {
  height: 4px;
}

.timeline-container::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.timeline {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
  position: relative;
  min-width: 100%;
  justify-content: center;
}

/* The connecting line */
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  min-width: 90px;
  max-width: 130px;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: cardAppear 0.3s ease-out;
  overflow: hidden;
  flex-shrink: 0;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.card-year {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  margin-top: 0.15rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-card.correct {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  animation: correctPulse 0.6s ease-out;
}

.timeline-card.incorrect {
  border-color: var(--error);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  animation: incorrectShake 0.5s ease-out;
}

@keyframes correctPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes incorrectShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.timeline-slot {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 64px;
  border: 2px dashed rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin: 0 0.3rem;
  font-family: inherit;
}

.timeline-slot:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.2);
  transform: scaleY(1.1);
  width: 56px;
}

.slot-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
}

.timeline-slot:hover .slot-icon {
  opacity: 1;
}

/* Misses */
.team-misses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.misses-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--error);
  font-weight: 700;
  margin-right: 0.15rem;
}

.miss-chip {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--text-muted);
  white-space: nowrap;
}

.miss-year {
  opacity: 0.6;
}

/* ── Overlays (instructions, star claim, reveal) ─────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.overlay-card {
  background: #14161c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: cardAppear 0.25s ease-out;
  margin: auto;
}

.overlay-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.overlay-card ol {
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.overlay-card ol strong {
  color: var(--text);
}

/* Star claim */
.claim-prompt {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.claim-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.claim-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.claim-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.claim-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.claim-field input:focus {
  border-color: #f59e0b;
}

.claim-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Reveal */
.reveal-year {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--primary-hover);
  margin-bottom: 0.25rem;
}

.reveal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.reveal-artist {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.reveal-result {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.reveal-result.reveal-correct {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.reveal-result.reveal-incorrect {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

/* Reveal guess rows */
.reveal-guesses {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.reveal-guess-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.reveal-guess-row.guess-correct {
  background: rgba(16, 185, 129, 0.12);
}

.reveal-guess-row.guess-wrong {
  background: rgba(239, 68, 68, 0.12);
}

.guess-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.guess-value {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guess-icon {
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.guess-correct .guess-icon { color: var(--success); }
.guess-wrong .guess-icon { color: var(--error); }

/* Stars in team headers */
.team-tl-stars {
  font-size: 0.8rem;
  color: #f59e0b;
  font-weight: 700;
}

/* ── Result Screen ────────────────────────────────────────────── */
#result-screen {
  align-items: center;
  justify-content: safe center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.result-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.result-container h1 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

/* Leaderboard */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.lb-row.lb-winner {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lb-pos {
  font-weight: 800;
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  color: var(--text-muted);
}

.lb-winner .lb-pos {
  color: #f59e0b;
}

.lb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lb-name {
  flex: 1;
  font-weight: 600;
}

.lb-stars {
  font-size: 0.85rem;
  color: #f59e0b;
  font-weight: 700;
}

.lb-score {
  font-weight: 800;
  font-size: 1.1rem;
}

.item-stars {
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
}

/* Song breakdown */
.song-breakdown {
  text-align: left;
  margin-bottom: 2rem;
}

.song-breakdown summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0;
}

.song-breakdown summary:hover {
  color: var(--text);
}

.item-team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.song-list {
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.song-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.item-icon {
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  padding: 0.2rem;
  border-radius: 4px;
  color: var(--success);
  background: rgba(16, 185, 129, 0.15);
}

.item-icon.wrong {
  color: var(--error);
  background: rgba(239, 68, 68, 0.15);
}

.item-year {
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 40px;
}

.item-info {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
}

.result-actions .btn-primary {
  flex: 1;
}

.result-actions .btn-secondary {
  flex: 0;
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 700px) {
  .player-section {
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .vinyl {
    width: 56px;
    height: 56px;
  }

  .player-controls {
    gap: 0.5rem;
    max-width: 280px;
  }

  .play-button {
    width: 36px;
    height: 36px;
  }

  .replay-button {
    width: 30px;
    height: 30px;
  }

  .overlay-card {
    padding: 1.25rem;
  }

  .overlay-card ol {
    font-size: 0.8rem;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .claim-prompt {
    font-size: 1.1rem;
  }

  .reveal-year {
    font-size: 2rem;
  }

  .reveal-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 1.8rem;
  }

  .game-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .timeline-card {
    min-width: 72px;
    padding: 0.35rem 0.45rem;
  }

  .card-year {
    font-size: 0.95rem;
  }

  .card-title {
    font-size: 0.65rem;
  }

  .card-artist {
    font-size: 0.55rem;
  }

  .timeline-slot {
    width: 28px;
    height: 50px;
  }

  .slot-icon {
    font-size: 1rem;
  }

  .team-tl-header {
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
  }

  .team-tl-name {
    font-size: 0.75rem;
  }

  .team-tl-score {
    font-size: 0.85rem;
  }

  .team-misses {
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }

  .btn-back {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .turn-banner {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .round {
    font-size: 0.75rem;
  }

  #skip-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}
