/* ===== COMPRESSOR EAR TRAINING STYLES ===== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Unified Theme Variables */
  --bg-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --bg-secondary: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-primary: #4f46e5;
  --accent-secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 50px rgba(79, 70, 229, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Game Specific Colors */
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --blue-400: #60a5fa;
  --pink-400: #f472b6;
  --green-400: #4ade80;
  --orange-400: #fb923c;
  --text-muted: #94a3b8;
}

html, body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UNIFIED NAVIGATION ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.current-game {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-content {
    justify-content: space-between;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .current-game {
    font-size: 0.8rem;
  }
}

/* ===== VOLUME CONTROL ===== */
.volume-control {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-primary);
  z-index: 1000;
}

.volume-control label {
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-secondary);
}

.volume-control input[type="range"] {
  width: 80px;
  height: 4px;
  background: var(--purple-600);
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--cyan-400);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--cyan-400);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.volume-control span {
  font-size: 0.8rem;
  min-width: 35px;
  color: var(--text-muted);
}

/* ===== GAME WRAPPER ===== */
.game-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px 20px;
}

/* Allow answer box to show above everything */
body.show-answer {
  overflow: visible;
}

/* No backdrop overlay needed - answer box positioned naturally below sliders */

/* ===== GAME CONTAINER ===== */
.game-container {
  width: 100%;
  height: 100vh;
  margin: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-primary), var(--shadow-glow);
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0.8);
  transform-origin: center;
}

/* Responsive scaling */
@media (max-width: 768px) {
  .game-container {
    transform: scale(0.9);
  }
  
  .volume-control {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .game-container {
    transform: scale(1);
    height: 100vh;
  }
}

.game-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* ===== HEADER ===== */
.game-header {
  text-align: center;
  flex-shrink: 0;
}

.game-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan-400), var(--purple-500));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1rem 0;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0.5rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--cyan-400);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

/* ===== CONTROLS SECTION ===== */
.controls-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== MODERN BUTTONS ===== */
.btn-modern {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-icon {
  font-size: 1.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400));
  color: white;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
}

.btn-tertiary {
  background: linear-gradient(135deg, var(--orange-400), #f97316);
  color: white;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.4);
}

.btn-tertiary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 146, 60, 0.6);
}

.btn-action {
  background: linear-gradient(135deg, var(--green-400), #22c55e);
  color: white;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
}

.btn-next {
  background: linear-gradient(135deg, var(--blue-400), #3b82f6);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.btn-restart {
  background: linear-gradient(135deg, var(--pink-400), #ec4899);
  color: white;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.4);
  font-size: 1.125rem;
}

.btn-restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 114, 182, 0.6);
}

/* ===== COMPRESSOR SECTION ===== */
.compressor-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 1rem 0;
}

.compressor-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  padding: 2rem;
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: visible; /* Allow correct answer box to show fully */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.compressor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* ===== CONTROL GROUPS ===== */
.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.control-group.vertical {
  flex: 1;
}

.control-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
}

/* ===== PLUGIN INTERFACE ===== */
.plugin-interface {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  flex-grow: 1;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== PROFESSIONAL VERTICAL FADERS ===== */
.fader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 220px;
  position: relative;
}

.vertical-fader {
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical; /* WebKit */
  width: 10px;
  height: 180px;
  background: linear-gradient(180deg, 
    var(--cyan-400) 0%, 
    var(--purple-500) 50%, 
    var(--pink-400) 100%);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(124, 58, 237, 0.2);
  transition: all 0.2s ease;
}

.vertical-fader:hover {
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.3),
    0 2px 12px rgba(124, 58, 237, 0.4);
  transform: scale(1.02);
}

.vertical-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  cursor: pointer;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 2px var(--purple-500);
  border: none;
  transition: all 0.2s ease;
}

.vertical-fader::-webkit-slider-thumb:hover {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 0 3px var(--cyan-400);
  transform: scale(1.1);
}

.vertical-fader::-moz-range-thumb {
  width: 24px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  cursor: pointer;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 2px var(--purple-500);
  border: none;
  transition: all 0.2s ease;
}

.fader-label {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  font-weight: 600;
  color: var(--cyan-400);
  min-width: 80px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* ===== VERTICAL GR METER ===== */
.gr-meter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 220px;
  position: relative;
}

.gr-meter {
  position: relative;
  width: 30px;
  height: 160px;
  background: linear-gradient(180deg, 
    rgba(34, 197, 94, 0.1) 0%,    /* Green at top (0dB) */
    rgba(251, 146, 60, 0.15) 30%,  /* Orange */
    rgba(239, 68, 68, 0.2) 70%,    /* Red */
    rgba(220, 38, 38, 0.3) 100%);  /* Dark red at bottom (-20dB) */
  border-radius: 15px;
  border: 3px solid var(--border-glass);
  overflow: hidden;
  box-shadow: 
    inset 0 4px 15px rgba(0, 0, 0, 0.6),
    inset 0 -2px 8px rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(251, 146, 60, 0.3);
  
  /* Subtle gradient overlay for depth */
  background-image: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.gr-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, 
    #22c55e 0%,    /* Green at top */
    #4ade80 20%,
    #f59e0b 40%,   /* Orange in middle */
    #fb923c 60%,
    #ef4444 80%,   /* Red */
    #dc2626 100%); /* Dark red at bottom */
  transition: height 0.1s ease-out;
  border-radius: 12px;
  box-shadow: 
    0 0 15px rgba(239, 68, 68, 0.7),
    0 0 25px rgba(251, 146, 60, 0.5),
    inset 0 2px 6px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
  
  /* Animated glow effect */
  filter: saturate(1.3) brightness(1.2);
}

/* Scale markings (properly aligned 0dB top to -60dB bottom) */
.gr-scale {
  position: absolute;
  right: -50px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.scale-mark {
  position: relative;
  text-align: left;
  padding-left: 14px;
  line-height: 1;
  /* Align marks with precise meter positions */
}

/* Individual scale mark positioning for accurate alignment */
.scale-mark[data-db="0"] { margin-top: -0.35em; } /* 0dB at top */
.scale-mark[data-db="-3"] { margin-top: -0.35em; } /* -3dB position */
.scale-mark[data-db="-6"] { margin-top: -0.35em; } /* -6dB position */
.scale-mark[data-db="-12"] { margin-top: -0.35em; } /* -12dB position */
.scale-mark[data-db="-20"] { margin-top: -0.35em; } /* -20dB position */
.scale-mark[data-db="-40"] { margin-top: -0.35em; } /* -40dB position */
.scale-mark[data-db="-60"] { margin-top: -0.35em; margin-bottom: 0; } /* -60dB at bottom */

/* Scale tick marks */
.scale-mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: rgba(148, 163, 184, 0.8);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Professional Digital GR Display */
.gr-digital-display {
  background: 
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
    linear-gradient(0deg, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 2px solid var(--border-glass);
  min-width: 85px;
  text-align: center;
  font-family: 'Courier New', 'Lucida Console', monospace;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  
  box-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.1),
    inset 0 -1px 3px rgba(0, 0, 0, 0.4);
  
  /* Subtle LCD pattern */
  background-image: 
    repeating-linear-gradient(90deg, 
      transparent 0px, 
      rgba(251, 146, 60, 0.02) 1px, 
      transparent 2px);
}

.gr-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: -0.1rem;
}

#gr-value {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--orange-400);
  letter-spacing: 0.1em;
  
  /* Professional GR readout glow */
  text-shadow: 
    0 0 6px var(--orange-400),
    0 0 12px rgba(251, 146, 60, 0.5);
}

/* ===== ACTION SECTION ===== */
.action-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== RESULT DISPLAY ===== */
.result-display {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  min-height: 1.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* ===== COMPRESSOR ICON ===== */
.compressor-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
}

.plugin-window {
  width: 80px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px;
  backdrop-filter: blur(10px);
}

.plugin-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan-400);
  text-align: center;
  margin-bottom: 4px;
}

.plugin-knobs {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}

.mini-knob {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
  border: 1px solid var(--border-glass);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-primary);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.final-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan-400);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.final-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.final-details {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-footer {
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: center;
}

/* ===== CORRECT ANSWER DISPLAY ===== */
.correct-answer-display {
  /* Positioned below sliders, not overlapping */
  position: absolute;
  bottom: 120px; /* Above action buttons */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  
  /* Beautiful neon/glow styling */
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--green-400);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  color: white;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(34, 197, 94, 0.4),
    0 0 20px rgba(34, 197, 94, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Sizing and layout */
  width: auto;
  max-width: 600px;
  min-width: 380px;
  text-align: center;
  
  /* Smooth appearance animation */
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.correct-answer-display h3 {
  margin: 0 0 1rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-400);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Comparison Table Styling */
.comparison-table-container {
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-primary);
  font-size: 0.9rem;
}

.comparison-table th {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green-400);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(34, 197, 94, 0.3);
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.comparison-table tbody tr:hover {
  background: rgba(34, 197, 94, 0.1);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Parameter names column */
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
}

/* User values styling */
.user-value {
  color: var(--cyan-400);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

/* Correct values styling */
.correct-value {
  color: var(--green-400);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Accuracy highlighting for user values */
.user-value.accurate {
  color: var(--green-400);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
}

.user-value.close {
  color: #fbbf24; /* yellow-400 */
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
}

.user-value.far {
  color: #f87171; /* red-400 */
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.correct-answer-display h4 {
  margin: 0 0 1rem 0;
  color: var(--green-400);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Old answer grid styling removed - replaced with comparison table */

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .game-container {
      padding: 12px;
    }
    
    .game-title {
      font-size: 1.75rem;
    }
    
    .game-stats {
      gap: 2rem;
    }
  
      .plugin-interface {
      flex-wrap: wrap;
      gap: 1rem;
      padding: 0.5rem;
    }
    
    .fader-container {
      height: 180px;
    }
    
    .vertical-fader {
      height: 140px;
    }
    
    .analog-vu-container {
      height: 180px;
    }
    
    .gr-meter {
      width: 28px;
      height: 140px;
    }
    
    .gr-digital-display {
      font-size: 0.8rem;
      min-width: 80px;
      padding: 0.5rem 1rem;
    }
  
  .compressor-card {
    padding: 1rem;
  }
  
  /* Correct Answer Display Mobile Styling */
  .correct-answer-display {
    bottom: 80px;
    max-width: 95vw;
    min-width: 300px;
    padding: 1rem 1.5rem;
  }
  
  .comparison-table {
    font-size: 0.8rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .comparison-table th {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .game-container {
    padding: 8px;
  }
  
  .game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .game-stats {
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .controls-section {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 200px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
      .plugin-interface {
      flex-direction: column;
      align-items: center;
      padding: 0.25rem;
    }
    
    .fader-container {
      height: 150px;
    }
    
    .vertical-fader {
      height: 120px;
    }
    
    .analog-vu-container {
      height: 150px;
    }
    
    .gr-meter {
      width: 25px;
      height: 120px;
    }
    
    .gr-digital-display {
      font-size: 0.75rem;
      min-width: 70px;
      padding: 0.4rem 0.8rem;
    }
  
  .compressor-icon {
    bottom: 10px;
    left: 10px;
  }
  
  .plugin-window {
    width: 60px;
    height: 45px;
  }
}
