.sound-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  z-index: 5;
}
.sound-toggle, .sound-settings-button {
  border: 1px solid #b99bea55;
  color: #c7c0d5;
  background: #100d19b3;
  border-radius: 8px;
  cursor: pointer;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  min-height: 34px;
  padding: 7px 10px;
}
.sound-toggle:hover, .sound-settings-button:hover, .sound-controls[data-active="true"] .sound-toggle {
  border-color: #73dae5aa;
  color: #9ed9e2;
}
.sound-settings-button { padding-inline: 9px; }
.sound-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  padding: 12px;
  border: 1px solid #b99bea55;
  border-radius: 9px;
  background: #0d0b14f5;
  box-shadow: 0 12px 30px #0008;
  color: #c7c0d5;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sound-panel label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sound-panel input[type="range"] { width: 92px; accent-color: #73dae5; }
.sound-panel .sound-ambience { justify-content: flex-start; margin-top: 12px; }
.sound-panel .sound-ambience input { accent-color: #b99bea; }
.sound-panel small { display: block; color: #888391; line-height: 1.5; margin-top: 10px; }
@media (max-width: 850px) {
  .sound-controls { margin-left: auto; }
  .sound-toggle { font-size: 0; padding-inline: 9px; }
  .sound-toggle::before { content: '◌'; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-panel .sound-ambience { opacity: .55; }
}
