/* Music and sound-effects volume sliders (public/audio-controls.js), injected
   under the three Audio switches in Settings. Dark-first: the pink fill and the
   gold focus ring are the game's own tokens (--accent-pink, --accent-gold). Each
   row stacks label over slider, so nothing can overflow at 320 px. */
/* Two classes: game.html's inline .setting-row {align-items:center} loads after this sheet and would win a single-class rule. */
.setting-row.audio-vol-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 8px;
  padding-bottom: 4px;
}
.audio-vol-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}
.audio-vol-head label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.audio-vol-head output {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.audio-vol {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: pan-y;
}
.audio-vol::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-pink, #f093fb) var(--fill, 60%),
    rgba(255, 255, 255, 0.45) var(--fill, 60%)
  );
}
.audio-vol::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-pink, #f093fb) var(--fill, 60%),
    rgba(255, 255, 255, 0.45) var(--fill, 60%)
  );
}
.audio-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 2px solid var(--accent-pink, #f093fb);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.audio-vol::-moz-range-thumb {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent-pink, #f093fb);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.audio-vol:focus-visible {
  outline: 3px solid var(--accent-gold, #fbbf24);
  outline-offset: -2px; /* inside the box: at 320 px an outer ring cuts through the label above */
  border-radius: 6px;
}
/* The row's switch is off (Music off, or Sound Effects off, which mutes everything): the slider reads as inactive.
   Only the control dims; the label keeps full contrast. It stays operable so the level can be set in advance. */
.setting-row.audio-vol-row.is-off .audio-vol,
.setting-row.audio-vol-row.is-off .audio-vol-head output {
  opacity: 0.5;
}
