/* Sound control: a round speaker whose waves show the state (no 켬/끔 word) and a small cream panel inside the stage. */
.sound-control{position:relative;display:flex}
.sound-open{position:relative;display:grid;place-items:center;width:34px;height:30px;border-radius:10px;color:var(--ink);background:var(--cream);border:2.5px solid var(--ink);box-shadow:0 2px 0 var(--ink)}
.sound-open[aria-expanded=true]{background:var(--yellow)}
.sound-open .icon{width:20px;height:20px;pointer-events:none}
.sound-open .sound-off{display:none}
.sound-open[data-muted=true] .sound-on{display:none}.sound-open[data-muted=true] .sound-off{display:block}.sound-open[data-muted=true]{background:var(--paper-deep)}
.sound-popover{position:absolute;right:max(10px,env(safe-area-inset-right));top:44px;z-index:60;width:240px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;background:var(--cream);color:var(--ink);border:3px solid var(--ink);border-radius:16px;box-shadow:0 4px 0 var(--ink),0 12px 30px #0007;font-size:13px;transform-origin:calc(100% - 22px) -6px}
.sound-popover:not([hidden]){animation:popover-in var(--t-quick) var(--ease-out) both}
.sound-popover.closing{animation:popover-out var(--t-tap) var(--ease-in) both}
@keyframes popover-in{from{opacity:0;transform:translateY(-6px) scale(.96)}}
@keyframes popover-out{to{opacity:0;transform:translateY(-4px) scale(.97)}}
.sound-popover[hidden]{display:none}
.sound-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--font-display);font-weight:900}
.sound-heading .icon-button{width:44px;height:44px;margin:-8px -10px -8px 0;box-shadow:0 2px 0 var(--ink)}.sound-heading .icon-button .icon{width:22px;height:22px}
.sound-popover label.volume{display:flex;justify-content:space-between;font-size:12px;font-weight:800;color:var(--ink-soft)}
.sound-popover input[type=range]{width:100%;accent-color:var(--teal);height:24px;margin:0}
.sound-popover .text-button{align-self:flex-start}
/* Small bar controls keep a 44px touch area without growing the bar. */
.touch-pad{position:relative}.touch-pad:before{content:'';position:absolute;inset:-7px -5px}
