.audio-settings { container-type: inline-size; color: #eee4cd; font: 14px/1.5 'Microsoft YaHei', system-ui, sans-serif; text-align: left; }
.audio-settings summary { display: list-item; min-height: 44px; padding: 10px 12px; box-sizing: border-box; color: #edcd83; cursor: pointer; touch-action: manipulation; }
.audio-settings-content { padding: 0 12px 8px; }
.audio-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.audio-settings-row + .audio-settings-row { border-top: 1px solid #4b4537; }
.audio-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; cursor: pointer; }
.audio-toggle input { width: 20px; height: 20px; margin: 0; accent-color: #c2a365; }
.audio-volume { display: flex; align-items: center; gap: 8px; min-width: 0; }
.audio-volume input { width: 120px; max-width: 24vw; min-width: 0; height: 44px; margin: 0; accent-color: #c2a365; touch-action: pan-y; }
.audio-volume output { width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.audio-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.audio-settings :focus-visible { outline: 2px solid #ffe2a0; outline-offset: 2px; }
.audio-settings summary:hover { color: #fff3d1; background: #302c21; }
.audio-settings ::selection { background: #796336; color: #fff3d1; }
#game-entry-overlay [data-audio-settings] { width: min(340px, 100%); margin: 4px auto 0; }
#fullscreen-controls [data-audio-settings] { width: 300px; max-width: calc(100vw - 24px); background: #151c20; border: 1px solid #927447; border-radius: 6px; margin-top: 6px; }
body.mobile-layout #fullscreen-controls [data-audio-settings] { display: none; }
#hero-selection-modal [data-audio-settings] { border-bottom: 1px solid #4b4537; }
.run-selection-body > [data-audio-settings] { grid-column: 1 / -1; }
@container (max-width: 320px) {
  .audio-settings-row { flex-wrap: wrap; gap: 0; padding: 4px 0; }
  .audio-volume { width: 100%; }
  .audio-volume input { flex: 1; width: 100%; max-width: none; }
  .audio-volume output { flex: 0 0 4ch; }
}
