/* ============================================================
   DANCE DANCE — Design System
   Goth Cyber · The void dances back.
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Type Scale — Major Third (1.25) */
  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-display: 3.815rem;

  /* Spacing — 4px base unit */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Color — Goth Cyber: deep blacks, electric magentas, toxic greens */
  --gray-50: hsl(270 5% 95%);
  --gray-100: hsl(270 5% 88%);
  --gray-200: hsl(270 4% 72%);
  --gray-300: hsl(270 4% 58%);
  --gray-400: hsl(270 3% 45%);
  --gray-500: hsl(270 4% 35%);
  --gray-600: hsl(270 6% 22%);
  --gray-700: hsl(270 10% 14%);
  --gray-800: hsl(270 15% 9%);
  --gray-900: hsl(270 20% 5%);
  --gray-950: hsl(270 25% 3%);

  /* Primary: Electric Magenta */
  --accent: hsl(320 100% 60%);
  --accent-dim: hsl(320 70% 45%);
  --accent-glow: hsla(320 100% 60% / 0.3);
  --accent-subtle: hsla(320 100% 60% / 0.08);

  /* Secondary: Toxic/Acid Green */
  --cyber-green: hsl(150 100% 50%);
  --cyber-green-dim: hsl(150 60% 35%);
  --cyber-green-glow: hsla(150 100% 50% / 0.25);

  /* Tertiary: Deep Violet */
  --cyber-violet: hsl(280 80% 55%);
  --cyber-violet-dim: hsl(280 50% 35%);
  --cyber-violet-glow: hsla(280 80% 55% / 0.25);

  --color-perfect: hsl(320 100% 60%);
  --color-good: hsl(150 100% 50%);
  --color-miss: hsl(0 80% 50%);
  --color-purple: hsl(280 80% 55%);

  /* Lane colors — goth cyber spectrum */
  --lane-1: hsl(350 75% 50%);
  --lane-2: hsl(20 80% 52%);
  --lane-3: hsl(320 100% 60%);
  --lane-4: hsl(150 100% 45%);
  --lane-5: hsl(200 100% 55%);
  --lane-6: hsl(280 80% 55%);

  /* Motion — physics, not math */
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* Surfaces — darker, more opaque */
  --surface-1: hsla(280 20% 100% / 0.03);
  --surface-2: hsla(280 20% 100% / 0.06);
  --surface-3: hsla(280 20% 100% / 0.09);
  --border-subtle: hsla(280 20% 100% / 0.07);
  --border-accent: hsla(320 100% 60% / 0.25);
}

/* --- RESET --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- BASE --- */
body {
  background: var(--gray-950);
  color: var(--gray-100);
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scanline overlay on everything */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    hsla(0 0% 0% / 0.03) 2px,
    hsla(0 0% 0% / 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- SCREENS --- */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hidden {
  display: none !important;
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   START SCREEN
   ============================================================ */
#start-screen {
  background:
    radial-gradient(ellipse at 30% 20%, hsla(320 60% 15% / 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, hsla(280 50% 12% / 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, hsla(150 40% 8% / 0.15) 0%, transparent 40%),
    var(--gray-950);
  overflow-y: auto;
}

.start-content {
  text-align: center;
  max-width: 680px;
  padding: var(--space-10) var(--space-8);
  animation: fadeUp var(--duration-slow) var(--ease-out) both;
}

/* THE REVEAL — content arrives from the void */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gray-50);
  margin-bottom: var(--space-3);
  text-shadow:
    0 0 20px hsla(320 100% 60% / 0.4),
    0 0 60px hsla(320 100% 60% / 0.15),
    0 0 100px hsla(280 80% 55% / 0.1);
}

.subtitle {
  font-size: var(--text-lg);
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 6-LANE INSTRUCTIONS ===== */
.instructions {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-bottom: var(--space-8);
  animation: fadeUp var(--duration-slow) var(--ease-out) 100ms both;
}

.lane-group {
  flex: 1;
  max-width: 300px;
}

.lane-group-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.lane-keys {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.instruction-lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 72px;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.instruction-lane:hover {
  background: var(--surface-2);
  border-color: var(--lane-color, var(--border-subtle));
  transform: translateY(-2px);
  box-shadow: 0 4px 20px hsla(320 100% 50% / 0.1);
}

.key-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--lane-color, var(--gray-600));
  color: var(--gray-950);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 hsla(0 0% 100% / 0.15),
    0 0 12px hsla(320 100% 60% / 0.15);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.instruction-lane:hover .key-badge {
  transform: scale(1.05);
}

.lane-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  white-space: nowrap;
}

.tip {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-8);
  animation: fadeUp var(--duration-slow) var(--ease-out) 200ms both;
}

/* ===== BUTTONS — Goth Glow ===== */
.gold-btn {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-950);
  background: linear-gradient(135deg, var(--accent), hsl(340 100% 55%));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 48px;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  box-shadow: 0 0 20px hsla(320 100% 60% / 0.2);
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px hsla(320 100% 50% / 0.35),
    0 0 40px hsla(320 100% 60% / 0.15);
  background: linear-gradient(135deg, hsl(320 100% 65%), hsl(340 100% 60%));
}

.gold-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px hsla(320 100% 50% / 0.2);
}

.gold-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.mode-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp var(--duration-slow) var(--ease-out) 300ms both;
}

.sim-btn {
  background: linear-gradient(135deg, var(--cyber-violet), hsl(260 70% 50%));
  color: var(--gray-50);
  box-shadow: 0 0 20px hsla(280 80% 55% / 0.2);
}

.sim-btn:hover {
  background: linear-gradient(135deg, hsl(280 85% 62%), hsl(260 75% 58%));
  box-shadow:
    0 8px 24px hsla(280 80% 50% / 0.35),
    0 0 40px hsla(280 80% 55% / 0.15);
}

/* Camera Status */
.camera-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-500);
  min-height: 1.5em;
  transition: color var(--duration-fast) var(--ease-out);
}

.camera-status.ready {
  color: var(--cyber-green);
  text-shadow: 0 0 8px var(--cyber-green-glow);
}

.camera-status.error {
  color: var(--color-miss);
  text-shadow: 0 0 8px hsla(0 80% 50% / 0.3);
}

/* Controls Hint */
.controls-hint {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: hsla(280 40% 50% / 0.06);
  border: 1px solid hsla(280 40% 50% / 0.12);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--gray-400);
  animation: fadeUp var(--duration-normal) var(--ease-out) both;
}

.controls-hint strong {
  color: var(--gray-100);
  font-weight: 600;
}

/* Camera Selector */
.camera-select-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  animation: fadeUp var(--duration-normal) var(--ease-out) both;
}

.camera-select-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-300);
  white-space: nowrap;
}

.camera-select {
  flex: 1;
  max-width: 360px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--gray-100);
  background: var(--gray-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.camera-select:hover {
  border-color: var(--accent-dim);
}

.camera-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.camera-select option {
  background: var(--gray-800);
  color: var(--gray-100);
  padding: var(--space-2);
}

/* Camera Tips */
.camera-tips {
  margin-top: var(--space-3);
}

.camera-tip {
  font-size: var(--text-xs);
  color: var(--gray-500);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.camera-tip strong {
  color: var(--gray-300);
  font-weight: 600;
}

/* ============================================================
   SONG SELECT SCREEN
   ============================================================ */
#song-select-screen {
  background:
    radial-gradient(ellipse at 50% 30%, hsla(320 40% 12% / 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, hsla(280 30% 10% / 0.3) 0%, transparent 50%),
    var(--gray-950);
}

.song-select-content {
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: var(--space-10);
  animation: fadeUp var(--duration-slow) var(--ease-out) both;
}

.song-select-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--gray-50);
  margin-bottom: var(--space-8);
  text-shadow:
    0 0 15px hsla(320 100% 60% / 0.3),
    0 0 40px hsla(280 80% 55% / 0.1);
}

.song-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.song-card {
  padding: var(--space-5) var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  min-width: 200px;
  text-align: left;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.song-card:hover {
  background: var(--surface-2);
  border-color: hsla(320 100% 60% / 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px hsla(320 100% 50% / 0.1);
}

.song-card.selected {
  background: var(--accent-subtle);
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 24px hsla(320 100% 50% / 0.15);
  transform: translateY(-2px);
}

.song-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-50);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

.song-card-artist {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-3);
}

.song-card-info {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.song-bpm {
  font-size: var(--text-xs);
  color: var(--gray-500);
  padding: var(--space-1) var(--space-2);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.song-difficulty {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.song-difficulty.easy {
  background: hsla(150 100% 50% / 0.1);
  color: var(--cyber-green);
}

.song-difficulty.medium {
  background: hsla(320 100% 60% / 0.1);
  color: var(--accent);
}

.song-difficulty.hard {
  background: hsla(0 80% 50% / 0.12);
  color: var(--color-miss);
}

.song-select-controls {
  margin-bottom: var(--space-4);
}

.song-select-hint {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown-screen {
  background: hsla(270 25% 3% / 0.92);
  z-index: 20;
}

.countdown-number {
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  animation: countPulse 0.9s var(--ease-out) both;
  text-shadow:
    0 0 30px hsla(320 100% 60% / 0.6),
    0 0 80px hsla(320 100% 60% / 0.2);
}

@keyframes countPulse {
  0% {
    transform: scale(1.8);
    opacity: 0;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.3;
  }
}

/* ============================================================
   GAME SCREEN
   ============================================================ */
#game-screen {
  z-index: 5;
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- HUD --- */
#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(180deg, hsla(270 25% 3% / 0.8) 0%, transparent 100%);
  z-index: 15;
  pointer-events: none;
  gap: var(--space-4);
}

#score-display,
#combo-display,
#wealth-level {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#score-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: 0 0 12px hsla(320 100% 60% / 0.4);
}

#combo-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--lane-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

#health-bar-container {
  width: 140px;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

#health-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-miss), var(--accent), var(--cyber-green));
  border-radius: var(--radius-pill);
  transition: width var(--duration-normal) var(--ease-out);
}

#wealth-text {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  text-shadow: 0 0 8px hsla(320 100% 60% / 0.3);
}

#song-info-hud {
  display: flex;
  align-items: center;
}

.song-title-hud {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-style: italic;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Lane Indicator --- */
#lane-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-5);
  background: hsla(270 25% 3% / 0.75);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-pill);
  z-index: 15;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 15px hsla(320 100% 60% / 0.1);
}

#current-lane {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* --- Hit Feedback --- */
#hit-feedback {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-3xl);
  font-weight: 800;
  z-index: 15;
  pointer-events: none;
  animation: hitPop 0.5s var(--ease-out) forwards;
}

#hit-feedback.perfect {
  color: var(--color-perfect);
  text-shadow:
    0 0 16px hsla(320 100% 60% / 0.7),
    0 0 40px hsla(320 100% 60% / 0.3);
}

#hit-feedback.good {
  color: var(--color-good);
  text-shadow:
    0 0 16px hsla(150 100% 50% / 0.7),
    0 0 40px hsla(150 100% 50% / 0.3);
}

#hit-feedback.miss {
  color: var(--color-miss);
  text-shadow:
    0 0 16px hsla(0 80% 50% / 0.6),
    0 0 40px hsla(0 80% 50% / 0.2);
}

@keyframes hitPop {
  0% {
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
  }
  25% {
    transform: translateX(-50%) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1) translateY(-32px);
    opacity: 0;
  }
}

/* ============================================================
   RESULTS SCREEN
   ============================================================ */
#results-screen {
  background:
    radial-gradient(ellipse at 50% 40%, hsla(320 40% 12% / 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, hsla(280 30% 10% / 0.2) 0%, transparent 50%),
    var(--gray-950);
  z-index: 25;
}

.results-content {
  text-align: center;
  max-width: 480px;
  padding: var(--space-10);
  animation: fadeUp var(--duration-slow) var(--ease-out) both;
}

.results-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gray-50);
  margin-bottom: var(--space-2);
  text-shadow:
    0 0 20px hsla(320 100% 60% / 0.4),
    0 0 60px hsla(280 80% 55% / 0.15);
}

.wealth-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-8);
  color: var(--accent);
  text-shadow: 0 0 12px hsla(320 100% 60% / 0.3);
}

.results-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.stat:hover {
  background: var(--surface-2);
  border-color: var(--border-accent);
  box-shadow: 0 0 15px hsla(320 100% 60% / 0.08);
}

.stat:first-child {
  grid-column: 1 / -1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-value.perfect-stat {
  color: var(--color-perfect);
}

.stat-value.good-stat {
  color: var(--color-good);
}

.stat-value.miss-stat {
  color: var(--color-miss);
}

.results-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .title {
    font-size: var(--text-3xl);
  }

  .subtitle {
    font-size: var(--text-base);
  }

  .instructions {
    flex-direction: column;
    align-items: center;
  }

  .lane-keys {
    gap: var(--space-1);
  }

  .instruction-lane {
    padding: var(--space-2) var(--space-3);
    min-width: 56px;
  }

  .key-badge {
    width: 36px;
    height: 36px;
    font-size: var(--text-sm);
  }

  .gold-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  #score-value,
  #combo-value {
    font-size: var(--text-xl);
  }

  #health-bar-container {
    width: 100px;
  }

  .song-card {
    min-width: 160px;
    padding: var(--space-4) var(--space-5);
  }

  .results-title {
    font-size: var(--text-3xl);
  }

  .stat-value {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  .start-content,
  .song-select-content,
  .results-content {
    padding: var(--space-6) var(--space-4);
  }

  .title {
    font-size: var(--text-2xl);
  }

  .mode-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gold-btn {
    width: 100%;
    max-width: 280px;
  }
}
