/* 게임 화면 안의 소리 크기 + 재생 중(그리고 낮은 가로 화면)에는 한 줄로 줄어드는 재생칸.
   모드 줄 버튼 공통 규칙(#sound-dialog .battle-mode-picker button)보다 구체적인 선택자를 쓴다. */
#sound-dialog #scene-volume{position:relative;margin-left:auto;flex:none}
#sound-dialog #scene-volume-toggle{position:relative;display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:4px 10px;font:inherit;font-size:12px;border:1px solid #c9b47a;background:#3d5546;color:#f4e6b8;cursor:pointer;white-space:nowrap}
#sound-dialog #scene-volume-toggle::before{content:'';position:absolute;inset:-6px -3px}   /* 손가락 닿는 범위를 44px 이상으로 */
#sound-dialog #scene-volume-toggle b{font-weight:700;min-width:3.4ch;text-align:right}
#sound-dialog #scene-volume-toggle[aria-expanded="true"]{background:#d4c08b;color:#253b31;border-color:#e3d29d}
#sound-dialog #scene-volume.is-muted #scene-volume-toggle{border-color:#e39a7d;color:#ffd8c8}
#sound-dialog #scene-volume-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:400;box-sizing:border-box;width:min(260px,calc(100vw - 28px));padding:10px;display:flex;flex-direction:column;gap:8px;background:#20352f;border:1px solid #c9b47a;box-shadow:0 10px 28px rgba(0,0,0,.45);color:#efe6c6}
#sound-dialog #scene-volume .scene-volume-quiet{min-height:44px;margin:0;padding:6px 10px;font:inherit;font-size:15px;font-weight:700;border:0;background:#d4c08b;color:#253b31;cursor:pointer}
#sound-dialog #scene-volume .scene-volume-quiet small{font-size:12px;font-weight:600;opacity:.8}
#sound-dialog #scene-volume .scene-volume-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center}
#sound-dialog #scene-volume .scene-volume-row button{min-height:44px;margin:0;padding:0;font:inherit;font-size:22px;line-height:1;border:1px solid #879577;background:#314840;color:#f2e5ba;cursor:pointer}
#sound-dialog #scene-volume .scene-volume-row input{width:100%;min-height:44px;margin:0;accent-color:#d4c08b}
#sound-dialog #scene-volume button:disabled{opacity:.45;cursor:default}
#sound-dialog #scene-volume-note{margin:0;font-size:12px;line-height:1.5;color:#dcd5b6}
#sound-dialog #scene-volume button:focus-visible,#sound-dialog #scene-volume input:focus-visible{outline:3px solid #f0d48a;outline-offset:2px}
@media(max-width:720px){
 #sound-dialog #scene-volume-toggle{min-height:29px;padding:3px 8px;font-size:11px}
 #sound-dialog #scene-volume-toggle::before{inset:-8px -4px}
}
[data-camp-theme="night"] #sound-dialog #scene-volume-panel{background:#1b2c28}

/* 재생칸 한 줄: [시간][크기 막대][잠시 멈추기][그만 듣기]. 크기 숫자는 화면 안 스피커 버튼이 보여 준다. */
#sound-dialog.sound-live .sound-console{grid-template-columns:auto minmax(72px,1fr) auto;gap:6px 10px;align-items:center;margin-top:6px;padding:6px 10px}
#sound-dialog.sound-live #sound-clock{font-size:20px;line-height:1}
#sound-dialog.sound-live .sound-volume-control{display:block;min-width:0}
#sound-dialog.sound-live .sound-volume-control label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#sound-dialog.sound-live .sound-volume-control input{width:100%;margin:0}
#sound-dialog.sound-live .sound-playback-controls{grid-column:auto;width:auto;display:flex;flex-wrap:nowrap;gap:6px}
#sound-dialog.sound-live #sound-start{display:none}
#sound-dialog.sound-live .sound-playback-controls .btn{flex:none;width:auto;min-height:40px;margin:0;padding:6px 12px;font-size:12px}
@media(max-width:380px){
 #sound-dialog.sound-live .sound-console{grid-template-columns:auto minmax(0,1fr)}
 #sound-dialog.sound-live .sound-playback-controls{grid-column:1/-1}
 #sound-dialog.sound-live .sound-playback-controls .btn{flex:1}
}
/* 낮은 가로 화면(휴대폰 가로)은 재생 전에도 한 줄: 게임 그림이 사라지지 않게 */
@media(max-height:500px){
 #sound-dialog .sound-console{grid-template-columns:auto minmax(110px,1fr) auto;gap:4px 10px;align-items:center;margin-top:4px;padding:5px 10px}
 #sound-dialog #sound-clock{font-size:19px;line-height:1}
 #sound-dialog .sound-volume-control label{font-size:10px;line-height:1.2}
 #sound-dialog .sound-playback-controls{grid-column:auto;width:auto;display:flex;flex-wrap:nowrap;gap:6px}
 #sound-dialog .sound-playback-controls .btn{flex:none;width:auto;min-height:36px;margin:0;padding:5px 10px;font-size:11px}
 #sound-dialog #sound-status{margin-top:2px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 /* 장소 이름 줄·모드 줄을 좁은 세로 화면처럼 압축(안내 줄은 탐험 버튼이 있어 유지) */
 #sound-dialog .sound-heading{padding-bottom:4px}
 #sound-dialog .battle-heading{padding:3px 8px}#sound-dialog .battle-heading h3{font-size:13px}
 #sound-dialog #battle-profile{width:32px;padding:0}#sound-dialog #battle-profile small{display:none}#sound-dialog #battle-portrait{width:24px;height:28px}
 #sound-dialog #battle-level{font-size:9px;padding:3px 5px}
 #sound-dialog .battle-mode-picker{padding:3px 6px;gap:4px}#sound-dialog .battle-mode-picker button{padding:4px 8px;font-size:10px;min-height:29px}
 #sound-dialog #scene-volume-toggle{min-height:29px;padding:3px 8px;font-size:11px}#sound-dialog #scene-volume-toggle::before{inset:-8px -4px}
 #sound-dialog #scene-volume-panel{top:calc(100% + 4px);gap:6px;padding:8px}
 #sound-dialog #world-strip{font-size:9px;padding:3px 7px;min-height:23px}
 #sound-dialog .battle-walk-hint{display:none}
}
/* 게임 그림 왼쪽의 큰 소리 화살표(10/25): 방향키(오른쪽 아래)와 겹치지 않게 왼쪽 가운데. */
#sound-dialog .scene-volume-arrows{position:absolute;left:8px;top:50%;transform:translateY(-50%);z-index:130;display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:6px 4px;border-radius:10px;background:rgba(16,28,24,.55);border:1px solid rgba(240,212,138,.55)}
#sound-dialog .scene-volume-arrows button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:58px;height:58px;margin:0;padding:2px;
  border:2px solid #f0d48a;border-radius:8px;background:#2f4a40;color:#f6e7b6;font:inherit;cursor:pointer;touch-action:manipulation}
#sound-dialog .scene-volume-arrows svg{width:30px;height:24px;fill:#f6d77a}
#sound-dialog .scene-volume-arrows small{font-size:11px;font-weight:700;line-height:1.1}
#sound-dialog .scene-volume-arrows button:active:not(:disabled){transform:translateY(2px);background:#3d5d50}
#sound-dialog .scene-volume-arrows button:disabled{opacity:.4;cursor:default}
#sound-dialog .scene-volume-arrows button:focus-visible{outline:3px solid #fff2b8;outline-offset:2px}
#sound-dialog .scene-volume-arrows b{font-size:15px;color:#fff2c8;text-shadow:0 1px 2px #000;min-width:4ch;text-align:center}
#sound-dialog .scene-volume-arrows.is-muted b{color:#ffb8a0}
#sound-dialog.game-fitting .scene-volume-arrows{display:none}
@media(max-width:720px),(max-height:500px){
 #sound-dialog .scene-volume-arrows{left:4px;padding:4px 3px;gap:2px}
 #sound-dialog .scene-volume-arrows button{width:48px;height:48px}
 #sound-dialog .scene-volume-arrows svg{width:24px;height:19px}
 #sound-dialog .scene-volume-arrows small{font-size:10px}
}
