/* game-styles.css — Label Detective UI Components */

/* ── Grain Overlay ────────────────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Particles ────────────────────────────────────────────────────────── */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ── Site Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-accent);
  transition: color var(--transition-interactive), opacity var(--transition-interactive);
  padding: var(--space-1) 0;
}
.logo-btn:hover { color: var(--color-accent-hover); }
.logo-btn:active { opacity: 0.8; }
.logo-icon { color: var(--color-accent); }
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text);
}
.header-actions { display: flex; gap: var(--space-2); align-items: center; }
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
  cursor: pointer;
}
.icon-btn:hover { background: var(--color-surface-offset); color: var(--color-text); }

/* ── Screen System ────────────────────────────────────────────────────── */
.screen {
  min-height: calc(100dvh - 56px);
  opacity: 1;
  transition: opacity 250ms var(--ease-out);
}
.screen.hidden {
  display: none;
  opacity: 0;
}
.screen-enter {
  animation: screenEnter 350ms var(--ease-out) both;
}
@keyframes screenEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Site Footer ──────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

/* ════════════════════════════════════════════════════════════════════════
   TITLE SCREEN
════════════════════════════════════════════════════════════════════════ */
#titleScreen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-5) var(--space-4) var(--space-8);
}
.title-container {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding-top: var(--space-4);
}

/* Title vinyl */
.title-vinyl-wrap {
  position: relative;
  width: clamp(160px, 28vw, 240px);
  height: clamp(160px, 28vw, 240px);
}
.title-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #2a2520 0%,
    #1a1510 30%,
    #0f0d0a 60%,
    #080604 100%
  );
  position: relative;
  box-shadow:
    0 0 0 2px rgba(200, 135, 42, 0.15),
    0 20px 60px rgba(0,0,0,0.8),
    inset 0 0 40px rgba(0,0,0,0.5);
}
.title-vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0px,
    transparent 2.5px,
    rgba(255,255,255,0.018) 2.5px,
    rgba(255,255,255,0.018) 3px,
    transparent 3px,
    transparent 5px
  );
}
.title-vinyl-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 42%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.title-vinyl-label svg { display: block; }

/* Title text */
.title-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.title-heading {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  gap: var(--space-1);
}
.title-h1-main {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color-text);
  display: block;
}
.title-h1-sub {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  display: block;
  font-style: italic;
}
.title-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 50ch;
}

/* Difficulty selector */
.difficulty-section { width: 100%; }
.difficulty-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.difficulty-choices {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}
.diff-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-interactive);
  min-width: 130px;
}
.diff-btn:hover {
  border-color: oklch(from var(--color-accent) l c h / 0.4);
  background: var(--color-surface-offset);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.diff-btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.diff-btn.active {
  border-color: var(--color-accent);
  background: var(--color-accent-highlight);
  color: var(--color-accent-bright);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.diff-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: inherit;
}
.diff-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.4;
  text-align: center;
}
.diff-btn.active .diff-desc { color: color-mix(in oklch, var(--color-accent) 60%, var(--color-text-muted)); }

/* Best score */
.best-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.best-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.best-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold);
}

/* Start button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all var(--transition-interactive);
  text-decoration: none;
}
.btn:disabled { cursor: not-allowed; opacity: 0.5; pointer-events: none; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 16px oklch(from var(--color-accent) l c h / 0.35);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px oklch(from var(--color-accent) l c h / 0.45);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-secondary {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.btn-secondary:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }
.btn-start {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: var(--space-4) var(--space-12);
}
.btn-lg { padding: var(--space-4) var(--space-10); font-size: var(--text-base); }

/* Game info */
.game-info {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════════════════
   VINYL RECORD COMPONENT
════════════════════════════════════════════════════════════════════════ */
.vinyl-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vinyl-record {
  position: relative;
  width: clamp(220px, 40vw, 380px);
  height: clamp(220px, 40vw, 380px);
}
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #2a2520 0%,
    #1a1510 30%,
    #0e0c0a 70%,
    #060504 100%
  );
  position: relative;
  box-shadow:
    0 0 0 1px rgba(200, 135, 42, 0.1),
    0 20px 60px rgba(0,0,0,0.8),
    inset 0 0 50px rgba(0,0,0,0.6);
  transform-origin: center;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}
.vinyl-disc.spinning {
  animation: vinylSpin 1.8s linear infinite;
}
.vinyl-disc.lifted {
  transform: scale(1.04) translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(200, 135, 42, 0.15),
    0 40px 80px rgba(0,0,0,0.9),
    var(--shadow-glow);
  animation: none;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0px,
    transparent 2.5px,
    rgba(255,255,255,0.02) 2.5px,
    rgba(255,255,255,0.02) 3px,
    transparent 3px,
    transparent 5px
  );
}
.vinyl-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.vinyl-label svg { display: block; width: 100%; height: 100%; }
.vinyl-spindle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0a0808;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
  z-index: 5;
}

/* Tonearm */
.tonearm {
  position: absolute;
  top: 5%;
  right: -5%;
  width: 35%;
  height: 80%;
  pointer-events: none;
  transform-origin: top right;
  transform: rotate(-20deg);
  transition: transform 0.8s var(--ease-out);
  z-index: 10;
}
.tonearm.playing {
  transform: rotate(-5deg);
}
.tonearm-base {
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a7060, #4a3020);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.tonearm-arm {
  position: absolute;
  top: 7px; right: 7px;
  width: 3px;
  height: calc(100% - 14px);
  background: linear-gradient(to bottom, #9a8070, #6a5040);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(5deg);
  box-shadow: 1px 0 4px rgba(0,0,0,0.4);
}
.tonearm-head {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 6px;
  background: #5a4030;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════════════════
   GAME SCREEN
════════════════════════════════════════════════════════════════════════ */
#gameScreen {
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  /* Override .screen min-height so game content sits at top without excess space */
  min-height: auto;
}
.game-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in oklch, var(--color-surface) 80%, transparent);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.hud-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.hud-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}
.hud-streak-wrap { display: flex; align-items: center; gap: var(--space-1); }
.streak-fire {
  font-size: var(--text-base);
  animation: fireFlicker 0.6s ease-in-out infinite alternate;
  line-height: 1;
}
.streak-fire.hidden { display: none; }
@keyframes fireFlicker {
  from { transform: scale(1) rotate(-3deg); }
  to   { transform: scale(1.1) rotate(3deg); }
}

/* Timer */
.timer-bar {
  height: 5px;
  background: var(--color-surface-3);
  overflow: hidden;
}
.timer-bar.hidden { display: none; }
.timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear, background-color 0.3s;
}
.timer-green  { background: var(--color-success); }
.timer-yellow { background: var(--color-gold); }
.timer-red    { background: var(--color-error-bright); box-shadow: 0 0 8px var(--color-error-bright); }

/* Genre hint */
.genre-hint {
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: oklch(from var(--color-accent) l c h / 0.06);
  border-bottom: 1px solid oklch(from var(--color-accent) l c h / 0.12);
}
.genre-hint.hidden { display: none; }

/* Game layout */
.game-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
  width: 100%;
  align-items: start;
  min-height: 0;
}

/* Vinyl area */
.vinyl-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Answer area */
.answer-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4) 0;
}

/* ── Choice Mode ────────────────────────────────────────────────────── */
.choice-mode { display: flex; flex-direction: column; gap: var(--space-4); }
.choice-instructions {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-interactive);
  min-height: 80px;
}
.choice-btn:hover:not(:disabled) {
  border-color: oklch(from var(--color-accent) l c h / 0.5);
  background: var(--color-surface-offset);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.choice-btn:active:not(:disabled) { transform: translateY(0); }
.choice-btn:disabled { cursor: not-allowed; opacity: 0.6; }
.choice-album {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.choice-artist {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ── Type Mode ──────────────────────────────────────────────────────── */
.type-mode { display: flex; flex-direction: column; gap: var(--space-4); }
.type-instructions {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}
.type-fields { display: flex; flex-direction: column; gap: var(--space-3); }
.field-group { display: flex; flex-direction: column; gap: var(--space-2); }
.field-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.input-wrap { position: relative; }
.text-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.text-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.2);
}
.text-input::placeholder { color: var(--color-text-faint); }
.text-input:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-btn { align-self: flex-start; margin-top: var(--space-2); }
.type-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── Reveal Overlay ─────────────────────────────────────────────────── */
.reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.reveal-overlay.hidden { display: none; }
.reveal-overlay.visible { opacity: 1; }
.reveal-overlay.reveal-correct { background: oklch(from var(--color-bg) l c h / 0.94); }
.reveal-overlay.reveal-wrong   { background: oklch(from var(--color-bg) l c h / 0.94); }

.reveal-content {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.reveal-verdict {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.verdict-correct { color: var(--color-success-bright); }
.verdict-wrong   { color: var(--color-error-bright); }
.reveal-points {
  font-size: var(--text-base);
  color: var(--color-gold);
  font-family: var(--font-body);
}

/* Now Playing */
.now-playing {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.now-playing-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.now-playing-artist {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.now-playing-album {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-muted);
}
.now-playing-meta {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  flex-wrap: wrap;
}

/* Answer checks */
.reveal-answer-check {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.answer-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.check-ok {
  border-color: oklch(from var(--color-success) l c h / 0.3);
  background: var(--color-success-bg);
}
.check-no {
  border-color: oklch(from var(--color-error) l c h / 0.3);
  background: var(--color-error-bg);
}
.check-icon { font-weight: 700; font-size: var(--text-sm); }
.check-ok .check-icon  { color: var(--color-success-bright); }
.check-no .check-icon  { color: var(--color-error-bright); }
.check-label { color: var(--color-text-faint); }
.check-value { font-weight: 600; color: var(--color-text); }

/* Label description */
.reveal-label-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.reveal-label-desc strong { color: var(--color-text-muted); }

/* ════════════════════════════════════════════════════════════════════════
   RESULTS SCREEN
════════════════════════════════════════════════════════════════════════ */
#resultsScreen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}
.results-container {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.results-header { text-align: center; }
.results-overline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.results-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
}
.new-best-badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: oklch(from var(--color-gold) l c h / 0.15);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.3);
  color: var(--color-gold-light);
  font-size: var(--text-sm);
  font-weight: 700;
}
.new-best-badge.hidden { display: none; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.stat-card.stat-primary {
  border-color: oklch(from var(--color-accent) l c h / 0.25);
  background: var(--color-accent-highlight);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}
.stat-card.stat-primary .stat-value { color: var(--color-accent-bright); }

/* Results sections */
.results-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.results-section-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.results-empty {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-4);
}

/* Genre breakdown */
.genre-breakdown { display: flex; flex-direction: column; gap: var(--space-2); }
.genre-row {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  gap: var(--space-3);
  align-items: center;
}
.genre-name { font-size: var(--text-sm); color: var(--color-text-muted); }
.genre-bar-wrap {
  height: 6px;
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.genre-bar {
  height: 100%;
  background: linear-gradient(in oklab, var(--color-accent), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-out);
}
.genre-pct {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  text-align: right;
}

/* Round breakdown */
.round-breakdown { display: flex; flex-direction: column; gap: var(--space-2); }
.round-result {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.round-correct { border-color: oklch(from var(--color-success) l c h / 0.2); }
.round-wrong   { border-color: oklch(from var(--color-error) l c h / 0.15); opacity: 0.7; }
.round-num {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 700;
}
.round-name {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.round-pts {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gold);
  white-space: nowrap;
}
.round-wrong .round-pts { color: var(--color-text-faint); }

/* Results actions */
.results-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: var(--space-8);
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Title */
  #titleScreen { padding: var(--space-5) var(--space-4); }
  .title-container { gap: var(--space-4); }
  .difficulty-choices { flex-direction: column; align-items: stretch; }
  .diff-btn { min-width: unset; flex-direction: row; justify-content: space-between; }
  
  /* Game layout */
  .game-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
  }
  .vinyl-area { margin-bottom: var(--space-2); }
  .vinyl-record {
    width: clamp(180px, 60vw, 280px);
    height: clamp(180px, 60vw, 280px);
  }
  
  /* HUD */
  .game-hud { gap: var(--space-5); }
  
  /* Choice grid */
  .choice-grid { grid-template-columns: 1fr; }
  
  /* Results */
  #resultsScreen { padding: var(--space-5) var(--space-3); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .genre-row { grid-template-columns: 100px 1fr 36px; }
  
  /* Reveal */
  .reveal-overlay { padding: var(--space-3); }
  
  /* Game info */
  .game-info { flex-direction: column; gap: var(--space-1); }
  .game-info span:nth-child(even) { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .round-result { grid-template-columns: 24px 1fr auto; }
  .genre-row { grid-template-columns: 85px 1fr 32px; }
}

/* ── Active states for touch ────────────────────────────────────────── */
.choice-btn:active:not(:disabled),
.diff-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.btn:active:not(:disabled) { transform: scale(0.98); }

/* ── Accessibility: reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vinyl-disc.spinning,
  .title-vinyl-disc.spinning {
    animation: none;
  }
  .streak-fire { animation: none; }
}
