/* game.css
   Styles for Violin Teaching Game - Warm Musical Theme
*/

/* Game container */
#game-section {
  width: 100%;
  max-width: 800px;
  margin: 1.5em auto;
  background: #FFFBF5;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(92, 61, 46, 0.12);
  border: 1px solid #E8DCC8;
}

#game-section h2 {
  text-align: center;
  color: #8B6914;
  margin-bottom: 0.5em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6em;
  letter-spacing: 0.02em;
}

/* Song selector */
.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}

/* Sound settings collapsible */
.game-settings {
  margin-bottom: 1em;
  border: 1px solid #E8DCC8;
  border-radius: 10px;
  overflow: hidden;
}

.game-settings summary {
  padding: 0.6em 1em;
  background: #FAF3E6;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  color: #8B6914;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.game-settings summary::-webkit-details-marker { display: none; }

.game-settings summary::after {
  content: '\25B6';
  font-size: 0.7em;
  transition: transform 0.2s;
  color: #C4A35A;
}

.game-settings[open] summary::after { transform: rotate(90deg); }

.game-settings summary:hover { background: #F0E6D0; }

.settings-content {
  padding: 0.8em 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  align-items: center;
  justify-content: center;
  background: #FFFBF5;
}

#song-select {
  font-size: 1em;
  padding: 0.4em 1em;
  border-radius: 8px;
  border: 1px solid #D4C4A8;
  min-width: 180px;
  background: #FFFBF5;
  color: #3D2B1F;
}

/* Sound toggle */
.sound-toggle {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.sound-toggle label {
  font-size: 0.95em;
  color: #6B5744;
}

/* Sound controls (volume, tone type) */
.sound-control {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.sound-control label {
  font-size: 0.9em;
  color: #6B5744;
}

.sound-control select {
  font-size: 0.9em;
  padding: 0.3em 0.5em;
  border-radius: 6px;
  border: 1px solid #D4C4A8;
  background: #FFFBF5;
  color: #3D2B1F;
}

.volume-control input[type="range"] {
  width: 80px;
  cursor: pointer;
}

.volume-control #volume-display {
  font-size: 0.85em;
  color: #7A6552;
  min-width: 32px;
}

/* Game buttons */
#game-start-btn, #game-stop-btn {
  padding: 0.6em 1.8em;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

#game-start-btn {
  background: linear-gradient(135deg, #5B8C3E, #4A7C2E);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 124, 46, 0.3);
}

#game-start-btn:hover {
  background: linear-gradient(135deg, #4A7C2E, #3D6B24);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 124, 46, 0.4);
}

#game-start-btn:disabled {
  background: #B5C9A8;
  cursor: not-allowed;
  box-shadow: none;
}

#game-stop-btn {
  background: linear-gradient(135deg, #C04A3E, #B8372B);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184, 55, 43, 0.3);
}

#game-stop-btn:hover {
  background: linear-gradient(135deg, #B8372B, #A02E23);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 55, 43, 0.4);
}

#game-stop-btn:disabled {
  background: #D9A8A3;
  cursor: not-allowed;
  box-shadow: none;
}

/* Score display */
.game-score-display {
  text-align: center;
  margin: 1em 0;
  padding: 1em;
  background: linear-gradient(135deg, #FAF3E6, #F0E6D0);
  border-radius: 12px;
  border: 1px solid #E8DCC8;
}

.game-score-display .score-label {
  font-size: 0.85em;
  color: #7A6552;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.game-score-display .score-value {
  font-size: 2.2em;
  font-weight: bold;
  color: #8B6914;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Progress bar */
.game-progress {
  width: 100%;
  height: 10px;
  background: #E8DCC8;
  border-radius: 5px;
  overflow: hidden;
  margin: 0.5em 0;
}

.game-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8B6914, #C4A35A);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 5px;
}

/* Sheet music container */
.game-score-container {
  position: relative;
  width: 100%;
  min-height: 150px;
  max-height: 180px;
  margin: 1em 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #D4C4A8;
  border-radius: 10px;
  background: #FFFEF8;
  padding: 0.5em 0;
}

.game-score-container::-webkit-scrollbar {
  height: 8px;
}

.game-score-container::-webkit-scrollbar-track {
  background: #F0E6D0;
  border-radius: 4px;
}

.game-score-container::-webkit-scrollbar-thumb {
  background: #C4A35A;
  border-radius: 4px;
}

.game-score-container::-webkit-scrollbar-thumb:hover {
  background: #8B6914;
}

/* Custom SVG score styles */
.music-score .staff-line {
  stroke: #8A7E6B;
  stroke-width: 1;
}

.music-score .ledger-line {
  stroke: #8A7E6B;
  stroke-width: 1;
}

.music-score .clef-symbol {
  fill: #3D2B1F;
}

.music-score .time-sig {
  fill: #3D2B1F;
  font-family: Georgia, 'Times New Roman', serif;
}

.music-score .notehead {
  fill: #3D2B1F;
  stroke: #3D2B1F;
  stroke-width: 0.5;
  transition: fill 0.15s, stroke 0.15s, filter 0.15s;
}

.music-score .notehead.open {
  fill: #FFFEF8;
  stroke: #3D2B1F;
  stroke-width: 2;
}

.music-score .stem {
  stroke: #3D2B1F;
  stroke-width: 1.5;
  transition: stroke 0.15s, filter 0.15s;
}

.music-score .flag {
  fill: none;
  stroke: #3D2B1F;
  stroke-width: 2;
  stroke-linecap: round;
}

.music-score .accidental {
  fill: #3D2B1F;
}

/* Note highlighting states */
.note.note-active {
  transition: all 0.15s ease;
}

/* Active note - blue pulse */
.note.note-active .notehead {
  fill: #2B6CA3 !important;
  stroke: #1E5A8A !important;
  filter: drop-shadow(0 0 8px rgba(43, 108, 163, 0.6));
  animation: pulse-active 0.8s ease-in-out infinite;
}
.note.note-active .notehead.open {
  fill: #FFFEF8 !important;
  stroke: #2B6CA3 !important;
}
.note.note-active .stem {
  stroke: #1E5A8A !important;
  filter: drop-shadow(0 0 8px rgba(43, 108, 163, 0.6));
  animation: pulse-active 0.8s ease-in-out infinite;
}
.note.note-active .flag {
  stroke: #1E5A8A !important;
}
.note.note-active .accidental {
  fill: #2B6CA3 !important;
}
.note.note-active .ledger-line {
  stroke: #2B6CA3 !important;
}

@keyframes pulse-active {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(43, 108, 163, 0.6)); }
  50% { filter: drop-shadow(0 0 14px rgba(43, 108, 163, 0.9)); }
}

/* Correct note - green glow */
.note.note-correct .notehead {
  fill: #4A7C2E !important;
  stroke: #3D6B24 !important;
  transition: filter 0.1s ease;
}
.note.note-correct .notehead.open {
  fill: #FFFEF8 !important;
  stroke: #4A7C2E !important;
}
.note.note-correct .stem {
  stroke: #3D6B24 !important;
}
.note.note-correct .flag {
  stroke: #3D6B24 !important;
}
.note.note-correct .accidental {
  fill: #4A7C2E !important;
}

/* Glow levels */
.note.note-correct.glow-1 .notehead,
.note.note-correct.glow-1 .stem {
  filter: drop-shadow(0 0 4px rgba(74, 124, 46, 0.4));
}

.note.note-correct.glow-2 .notehead,
.note.note-correct.glow-2 .stem {
  filter: drop-shadow(0 0 8px rgba(74, 124, 46, 0.6));
}

.note.note-correct.glow-3 .notehead,
.note.note-correct.glow-3 .stem {
  filter: drop-shadow(0 0 12px rgba(74, 124, 46, 0.8));
}

.note.note-correct.glow-full .notehead,
.note.note-correct.glow-full .stem {
  filter: drop-shadow(0 0 18px rgba(74, 124, 46, 1));
  animation: glow-complete 0.5s ease-out;
}

@keyframes glow-complete {
  0% { filter: drop-shadow(0 0 25px rgba(74, 124, 46, 1)); }
  100% { filter: drop-shadow(0 0 18px rgba(74, 124, 46, 1)); }
}

/* Missed note - red */
.note.note-missed .notehead {
  fill: #B8372B !important;
  stroke: #9E2E23 !important;
  opacity: 0.7;
}
.note.note-missed .notehead.open {
  fill: #FFFEF8 !important;
  stroke: #B8372B !important;
}
.note.note-missed .stem {
  stroke: #9E2E23 !important;
  opacity: 0.7;
}
.note.note-missed .flag {
  stroke: #9E2E23 !important;
  opacity: 0.7;
}
.note.note-missed .accidental {
  fill: #B8372B !important;
  opacity: 0.7;
}

/* Partial note - orange */
.note.note-partial .notehead {
  fill: #C67A1F !important;
  stroke: #A86618 !important;
  filter: drop-shadow(0 0 6px rgba(198, 122, 31, 0.5));
}
.note.note-partial .notehead.open {
  fill: #FFFEF8 !important;
  stroke: #C67A1F !important;
}
.note.note-partial .stem {
  stroke: #A86618 !important;
}
.note.note-partial .flag {
  stroke: #A86618 !important;
}
.note.note-partial .accidental {
  fill: #C67A1F !important;
}

/* Completed note */
.note.note-completed .notehead {
  fill: #7BA86A !important;
  stroke: #64914F !important;
  opacity: 0.85;
}
.note.note-completed .notehead.open {
  fill: #FFFEF8 !important;
  stroke: #7BA86A !important;
}
.note.note-completed .stem {
  stroke: #64914F !important;
  opacity: 0.85;
}
.note.note-completed .flag {
  stroke: #64914F !important;
  opacity: 0.85;
}
.note.note-completed .accidental {
  fill: #7BA86A !important;
  opacity: 0.85;
}

/* Current note indicator bar */
.note-cursor {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, #2B6CA3, #1E5A8A);
  top: 30px;
  height: 140px;
  z-index: 10;
  border-radius: 2px;
  transition: left 0.15s ease-out;
  box-shadow: 0 0 8px rgba(43, 108, 163, 0.5);
}

/* Feedback message */
.game-feedback {
  text-align: center;
  min-height: 2em;
  font-size: 1.25em;
  font-weight: 600;
  margin: 0.5em 0;
  transition: color 0.2s;
}

.game-feedback.feedback-good {
  color: #4A7C2E;
}

.game-feedback.feedback-great {
  color: #3D6B24;
  animation: pop 0.3s ease-out;
}

.game-feedback.feedback-miss {
  color: #B8372B;
}

.game-feedback.feedback-waiting {
  color: #2B6CA3;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Game over screen */
.game-over {
  text-align: center;
  padding: 2em;
}

.game-over-card {
  background: linear-gradient(135deg, #FAF3E6, #F0E6D0);
  border-radius: 16px;
  padding: 2em;
  border: 1px solid #E8DCC8;
  box-shadow: 0 4px 20px rgba(92, 61, 46, 0.1);
  animation: card-appear 0.5s ease-out;
}

@keyframes card-appear {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.game-over-emoji {
  font-size: 3em;
  margin-bottom: 0.2em;
  animation: bounce-in 0.6s ease-out;
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.game-over h3 {
  font-size: 1.8em;
  color: #5C3D2E;
  margin-bottom: 0.3em;
  font-family: Georgia, 'Times New Roman', serif;
}

.grade-badge {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  font-family: Georgia, serif;
  margin: 0.3em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.grade-s { background: linear-gradient(135deg, #FFD700, #C4A35A); color: #3D2B1F; }
.grade-a { background: linear-gradient(135deg, #8B6914, #C4A35A); color: #fff; }
.grade-b { background: linear-gradient(135deg, #5B8C3E, #7BA86A); color: #fff; }
.grade-c { background: linear-gradient(135deg, #C67A1F, #D4851F); color: #fff; }
.grade-d { background: linear-gradient(135deg, #8B6C5C, #A89880); color: #fff; }
.grade-f { background: linear-gradient(135deg, #B8372B, #C04A3E); color: #fff; }

.grade-stars {
  font-size: 1.5em;
  color: #C4A35A;
  margin: 0.3em 0;
  letter-spacing: 0.1em;
}

.game-over .final-score {
  font-size: 2.5em;
  font-weight: bold;
  color: #8B6914;
  font-family: Georgia, serif;
  margin: 0.2em 0;
}

.game-over .final-percentage {
  font-size: 1.5em;
  color: #6B5744;
  margin-bottom: 0.8em;
}

.game-over .score-breakdown {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 1em;
}

.breakdown-item {
  padding: 0.3em 0.8em;
  border-radius: 6px;
  font-size: 0.95em;
  background: rgba(255,255,255,0.6);
  color: #3D2B1F;
}

.game-over .auto-replay-countdown {
  margin-top: 1.5em;
  font-size: 1.2em;
  color: #8B6914;
  font-weight: bold;
  animation: pulse-countdown 1s ease-in-out infinite;
}

@keyframes pulse-countdown {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Stats display during game */
.game-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0.5em 0;
  font-size: 0.9em;
  color: #6B5744;
}

.game-stats span {
  background: #FAF3E6;
  padding: 0.3em 0.8em;
  border-radius: 6px;
  border: 1px solid #E8DCC8;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #game-section {
    margin: 0.5em;
  }
  
  .game-controls {
    flex-direction: row;
  }
  
  .game-score-display .score-value {
    font-size: 1.6em;
  }
}

/* ===== Fingerboard Diagram ===== */
.fingerboard-container {
  width: 100%;
  max-width: 400px;
  margin: 1.5em auto;
  background: #2d2d2d;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.fingerboard-title {
  text-align: center;
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 0.8em;
  font-weight: 500;
}

.fingerboard {
  position: relative;
  display: flex;
  background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
  border-radius: 8px;
  padding: 0.5em;
  overflow: hidden;
}

.fingerboard-nut {
  width: 8px;
  background: #f5f5dc;
  border-radius: 2px;
  margin-right: 4px;
}

.fingerboard-neck {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.position-labels {
  display: flex;
  justify-content: space-around;
  padding: 0 30px 0 0;
  margin-bottom: 4px;
}

.position-labels span {
  color: #ccc;
  font-size: 0.75em;
  width: 36px;
  text-align: center;
}

.string-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
  transition: background 0.2s;
}

.string-row.active-string {
  background: rgba(255, 235, 59, 0.15);
  border-radius: 4px;
}

.string-name {
  width: 24px;
  color: #fff;
  font-weight: bold;
  font-size: 0.9em;
  text-align: center;
}

.string-line {
  position: absolute;
  left: 28px;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 1px;
}

.string-line.g-string {
  height: 4px;
  background: linear-gradient(180deg, #d4af37 0%, #aa8c2c 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.string-line.d-string {
  height: 3px;
  background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
}

.string-line.a-string {
  height: 2.5px;
  background: linear-gradient(180deg, #c0c0c0 0%, #909090 100%);
}

.string-line.e-string {
  height: 2px;
  background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 100%);
}

.finger-spot {
  position: relative;
  width: 36px;
  height: 28px;
  margin-left: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.finger-spot:first-of-type {
  margin-left: 4px;
}

.finger-spot::after {
  content: attr(data-finger);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(100, 100, 100, 0.3);
  border: 2px solid rgba(150, 150, 150, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.15s ease;
}

.finger-spot[data-finger="0"]::after {
  content: "○";
  font-size: 1em;
}

.finger-spot.active::after {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  border-color: #81c784;
  color: #fff;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.8), 0 0 24px rgba(76, 175, 80, 0.4);
  transform: scale(1.15);
  animation: finger-pulse 0.8s ease-in-out infinite;
}

.finger-spot.next-active::after {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transform: scale(0.9);
}

@keyframes finger-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(76, 175, 80, 0.8), 0 0 24px rgba(76, 175, 80, 0.4); }
  50% { box-shadow: 0 0 16px rgba(76, 175, 80, 1), 0 0 32px rgba(76, 175, 80, 0.6); }
}

.finger-info {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.finger-info span {
  color: #aaa;
  font-size: 0.9em;
}

.finger-info strong {
  color: #fff;
  margin-left: 0.3em;
}

/* Hide fourth finger spots by default, show when needed */
.finger-spot[data-finger="4"] {
  display: none;
}

.fingerboard-container.show-fourth .finger-spot[data-finger="4"] {
  display: flex;
}

/* Pitch Indicator */
.pitch-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 80, 80, 0.8);
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  transition: left 0.1s linear, background 0.2s;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.pitch-indicator::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid rgba(255, 80, 80, 0.8);
}

.pitch-indicator::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 80, 80, 0.8);
}

.pitch-indicator.in-tune {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.pitch-indicator.in-tune::before {
  border-bottom-color: #00e676;
}

.pitch-indicator.in-tune::after {
  border-top-color: #00e676;
}

/* ===== Tuning Hint Panel ===== */
.tuning-hint {
  margin-top: 8px;
  padding: 8px 12px;
  background: #FAF3E6;
  border: 1px solid #C4A35A;
  border-radius: 8px;
  text-align: center;
}

.tuning-hint-bar {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #e57373, #ffb74d 30%, #00e676 45%, #00e676 55%, #ffb74d 70%, #e57373);
  margin: 4px 0 2px;
}

.tuning-hint-needle {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 16px;
  background: #3D2B1F;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.08s ease-out, background 0.2s;
}
.tuning-hint-needle.intune { background: #00c853; }
.tuning-hint-needle.close  { background: #ff9800; }
.tuning-hint-needle.far    { background: #e53935; }

.tuning-hint-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65em;
  color: #8B6914;
  margin-top: 2px;
}

.tuning-hint-text {
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 4px;
  min-height: 1.3em;
  color: #5C3D2E;
  transition: color 0.2s;
}
.tuning-hint-text.intune { color: #00c853; }
.tuning-hint-text.close  { color: #e65100; }
.tuning-hint-text.far    { color: #c62828; }

/* ===== Finger Spot Intonation Coloring ===== */
.finger-spot.active.intune {
  background: #00e676 !important;
  box-shadow: 0 0 8px rgba(0,230,118,0.5);
}
.finger-spot.active.slightly-off {
  background: #ffb74d !important;
  box-shadow: 0 0 8px rgba(255,183,77,0.4);
}
.finger-spot.active.off {
  background: #e57373 !important;
  box-shadow: 0 0 8px rgba(229,115,115,0.4);
}

/* Ensure string row is relative for absolute positioning of indicator */
.string-row {
  position: relative; 
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  #game-section {
    background: #2D2418;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-color: #4A3928;
  }
  
  #game-section h2 {
    color: #C4A35A;
  }

  .game-settings {
    border-color: #4A3928;
  }
  .game-settings summary {
    background: #3D2B1F;
    color: #C4A35A;
  }
  .game-settings summary::after { color: #8B6914; }
  .game-settings summary:hover { background: #4A3928; }
  .settings-content { background: #2D2418; }
  
  #song-select {
    background: #3D2B1F;
    color: #E8DDD0;
    border-color: #5C3D2E;
  }
  
  .sound-toggle label {
    color: #A89880;
  }
  
  .sound-control label {
    color: #A89880;
  }
  
  .sound-control select {
    background: #3D2B1F;
    color: #E8DDD0;
    border-color: #5C3D2E;
  }
  
  .volume-control #volume-display {
    color: #A89880;
  }
  
  .game-score-display {
    background: linear-gradient(135deg, #3D2B1F, #2D2418);
    border-color: #4A3928;
  }
  
  .game-score-display .score-label {
    color: #A89880;
  }
  
  .game-score-display .score-value {
    color: #C4A35A;
  }
  
  .game-progress {
    background: #4A3928;
  }
  
  .game-score-container {
    background: #1A1510;
    border-color: #4A3928;
  }
  
  .game-score-container::-webkit-scrollbar-track {
    background: #2D2418;
  }
  
  .game-score-container::-webkit-scrollbar-thumb {
    background: #8B6914;
  }
  
  .game-score-container::-webkit-scrollbar-thumb:hover {
    background: #C4A35A;
  }
  
  /* Custom SVG dark mode */
  .music-score .staff-line {
    stroke: #5C4E3A;
  }
  
  .music-score .ledger-line {
    stroke: #5C4E3A;
  }
  
  .music-score .clef-symbol {
    fill: #C4A35A;
  }
  
  .music-score .time-sig {
    fill: #C4A35A;
  }
  
  .music-score .notehead {
    fill: #E8DDD0;
    stroke: #C4A35A;
  }
  
  .music-score .notehead.open {
    fill: #1A1510;
    stroke: #E8DDD0;
  }
  
  .music-score .stem {
    stroke: #E8DDD0;
  }
  
  .music-score .flag {
    stroke: #E8DDD0;
  }
  
  .music-score .accidental {
    fill: #E8DDD0;
  }
  
  .game-over h3 {
    color: #C4A35A;
  }
  
  .game-over-card {
    background: linear-gradient(135deg, #3D2B1F, #2D2418);
    border-color: #5C3D2E;
  }
  
  .game-over .final-score {
    color: #C4A35A;
  }
  
  .game-over .final-percentage {
    color: #A89880;
  }
  
  .breakdown-item {
    background: rgba(0,0,0,0.2);
    color: #E8DDD0;
  }
  
  .game-over .score-breakdown {
    color: #A89880;
  }
  
  .game-over .auto-replay-countdown {
    color: #C4A35A;
  }
  
  .game-stats {
    color: #A89880;
  }
  
  .game-stats span {
    background: #3D2B1F;
    border-color: #5C3D2E;
  }
  
  .fingerboard-container {
    background: #1A1510;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  
  .fingerboard {
    background: linear-gradient(180deg, #5a3a20 0%, #402a15 100%);
  }
  
  .fingerboard-nut {
    background: #d0d0c0;
  }

  .tuning-hint {
    background: #2D2418;
    border-color: #4A3928;
  }
  .tuning-hint-labels { color: #C4A35A; }
  .tuning-hint-text { color: #E8DDD0; }
  .tuning-hint-needle { background: #E8DDD0; }
}
