/* The field and choices share a fixed viewport; only the chosen panel scrolls. */
#sound-dialog{height:96dvh;max-height:96dvh;width:min(1520px,calc(100% - 20px));max-width:none;padding:12px}
#sound-dialog .sound-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:10px;flex:1;min-height:0;overflow:hidden;padding:0;scrollbar-gutter:auto}
#sound-dialog .sound-body[hidden]{display:none}
#sound-dialog .sound-heading{padding-bottom:8px}
#sound-dialog .sound-heading h2{font-size:18px}
#sound-dialog .sound-heading .adventure-kicker{display:none}
#sound-dialog .sound-battle{display:flex;flex-direction:column;align-self:stretch;min-width:0;min-height:0;overflow:hidden;background:#2e4240}
#sound-dialog .battle-heading{flex-shrink:0;padding:8px 12px}
#sound-dialog .battle-heading .adventure-kicker{display:none}
#sound-dialog .battle-heading h3{font-size:17px}
#sound-dialog .battle-mode-picker{padding:6px 10px;flex-shrink:0;background:#273b38}
#sound-dialog .battle-mode-picker>span{display:none}
#sound-dialog #battle-idle[aria-pressed="true"]~#battle-idle-note{display:block;flex-basis:100%;margin:0;color:#dfdfc9;font-size:11px;line-height:1.35}
#sound-dialog .battle-mode-picker button{min-height:34px;font-size:12px}
#sound-dialog #world-toolbar{display:none}
#sound-dialog #world-strip{flex-shrink:0;padding:5px 10px;min-height:28px;font-size:11px}
#sound-dialog #battle-field.battle-stage{flex:1;width:100%;height:auto;min-height:160px;max-height:none;aspect-ratio:auto}
#sound-dialog .battle-walk-hint{flex-shrink:0;font-size:11px;margin:0;padding:6px 10px;line-height:1.5}
#game-notices{flex-shrink:0;min-height:23px;max-height:23px;overflow:hidden;background:#293e37}
#sound-dialog #game-notices p{margin:3px 10px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#edda9e;min-height:0}
#game-notices:has(#arcade-message:not(:empty)) #battle-announcement{display:none}
#game-desk{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #77846e;background:#f2efdf;color:#30483b}
#desk-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#75806b;flex-shrink:0;border-bottom:1px solid #75806b}
#desk-menu button,#desk-secondary button{font:inherit;font-size:12px;min-height:39px;border:0;border-radius:0;cursor:pointer;color:#e6dfc0;background:#304740;padding:6px 4px}
#desk-menu button[aria-pressed="true"],#desk-secondary button[aria-pressed="true"]{background:#d4c08b;color:#263d34;box-shadow:inset 0 -3px #94804f}
#desk-menu .has-loot::after{content:' •';color:#ffe5a1}
#desk-view{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#desk-view>section{padding:13px;overflow:auto;min-height:0;flex:1}
#desk-view>[hidden],#sound-dialog [hidden]{display:none!important}
#desk-secondary{display:flex;flex-wrap:wrap;gap:1px;background:#71806c;border-top:1px solid #71806c;flex-shrink:0}
#desk-secondary button{flex:1;font-size:10px;min-height:32px;white-space:nowrap}
#sound-dialog #desk-view p{font-size:12px;line-height:1.65;margin:10px 0}
#sound-dialog #desk-view small{font-size:11px;line-height:1.65}
.desk-pane-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.desk-pane-heading h3{font-size:16px;white-space:nowrap}.desk-pane-heading span{font-size:10px;color:#6b785d}
#combat-equipped{display:flex;gap:12px;align-items:center;border:1px solid #9f9973;padding:12px;background:#e8e2c8;margin-bottom:16px}
#combat-equipped svg{width:56px;flex-shrink:0;image-rendering:pixelated}
#combat-equipped>span{display:flex;flex-direction:column;gap:4px}#combat-equipped b{font-size:15px}#combat-equipped span span{font-size:12px}
#combat-weapons{display:flex;flex-direction:column;gap:7px}
#combat-weapons button{display:flex;align-items:center;gap:9px;text-align:left;width:100%;padding:8px;border:1px solid #acb197;background:#faf6e7;color:#304838;font:inherit;cursor:pointer;min-height:62px}
#combat-weapons button[aria-pressed="true"]{background:#dfe7ce;border-color:#80936b;cursor:default;opacity:1}
#combat-weapons svg{width:32px;flex-shrink:0}#combat-weapons button>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#combat-weapons b{font-size:12px}#combat-weapons small{font-size:10px!important;white-space:nowrap;color:#637450}#combat-weapons strong{font-size:11px;white-space:nowrap;color:#768163}#combat-weapons .upgrade{color:#3f743a}
#combat-gear-status:not(:empty){padding:8px;background:#e2e8cf;border-left:3px solid #819362}
#desk-forge-slot{margin:12px 0}#world-forge-open{font:inherit;font-size:12px;cursor:pointer;padding:9px 12px;background:#354f40;border:1px solid #83946c;color:#f0e2b7;min-height:38px}
#sound-dialog #journey-dialog[data-embedded]{position:static;inset:auto;margin:0;width:100%;max-width:none;max-height:none;height:100%;padding:12px;border:0;box-shadow:none;border-radius:0;background:transparent;color:inherit;box-sizing:border-box;flex:1;min-height:0}
#sound-dialog .journey-dialog-heading{padding-bottom:8px;margin-bottom:6px;gap:6px;background:transparent}
#sound-dialog .journey-dialog-heading h2{font-size:16px;margin:0}
#sound-dialog .journey-dialog-heading button{font-size:11px;min-height:32px;padding:6px 8px}
#sound-dialog #journey-content{padding:0;overscroll-behavior:contain}
#sound-dialog #journey-stop{display:none}
#sound-dialog #journey-status:empty{display:none}
#sound-dialog .journey-chapters,#sound-dialog .journey-items,#sound-dialog .world-gear,#sound-dialog .world-quests{grid-template-columns:1fr;gap:8px;margin:10px 0}
#sound-dialog .journey-chapter,#sound-dialog .journey-item,#sound-dialog .world-gear article,#sound-dialog .world-quests article{padding:12px}
#sound-dialog .journey-skill-map{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0;gap:7px}#sound-dialog .journey-skill-map::before{display:none}
#sound-dialog .world-gear-art{width:40px;margin-bottom:6px}
#sound-dialog .world-purse{gap:8px;padding:10px;font-size:12px}
#sound-dialog #sound-settings-drawer{margin:0;border:0;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
#sound-dialog #sound-settings-drawer>summary{padding:12px;font-size:15px}#sound-dialog #sound-settings-drawer>summary span{display:none}
#sound-dialog #sound-config-panel{padding:0 12px 12px}
#sound-dialog #sound-config-panel #sound-options{grid-template-columns:repeat(2,minmax(0,1fr))}
#sound-dialog #sound-options button{padding:9px;min-height:72px}#sound-dialog #sound-options button>span:not(.noise-emblem),#sound-dialog #sound-options small,#sound-dialog #sound-options .noise-emblem{display:none}
#sound-dialog #sound-options b{font-size:12px}
#sound-dialog #desk-record .battle-region-list{grid-template-columns:1fr 1fr}#sound-dialog #desk-record .battle-items{grid-template-columns:1fr}
#sound-dialog #desk-record .battle-playback{color:inherit}
#sound-dialog #desk-record .battle-collection,#sound-dialog #desk-record .battle-rules{padding:8px 0}
#sound-dialog #desk-record .battle-health{padding:4px 0}
#sound-dialog .sound-console{margin:9px 0 0;padding:8px 12px;gap:18px}
#sound-dialog #sound-status{min-height:0;margin:4px 0 0;font-size:10px}
#desk-save{flex-shrink:0}#desk-save:has(#sound-save-status:empty):has(#sound-save-retry[hidden]){display:none}
#combat-drops{position:absolute;inset:0;pointer-events:none;z-index:109}
#combat-drops button{position:absolute;transform:translate(-50%,-65%);padding:2px;border:0;background:none;color:#f8e4a7;cursor:pointer;pointer-events:auto;min-width:38px;text-shadow:1px 2px #253b2f}
#combat-drops svg{display:block;width:32px;height:32px;margin:auto;filter:drop-shadow(0 2px #1e372c)}
#combat-drops span{display:block;font:10px ui-sans-serif,sans-serif;padding:3px;background:#203d32e6;border:1px solid #b4ac72;white-space:nowrap}
#combat-drops .near span{border-color:#f8e0a3;background:#49613c}
.arcade-mode #battle-hero .hero-cosmetic-tool{display:none}
#combat-current{display:block;font-size:10px;color:#e0d0a0;margin-top:4px}
#arcade-shots i{width:15px;height:5px;border-width:1px;box-shadow:-5px 0 #c4d4b3}
#arcade-aim[hidden]{display:none}
#arcade-overlay.menu-rest{background:transparent;pointer-events:none;place-items:start center;padding-top:12px}
#arcade-overlay.menu-rest>div{pointer-events:auto;display:flex;align-items:center;gap:8px;padding:5px 10px}
#arcade-overlay.menu-rest h4{font-size:11px;margin:0}
#arcade-overlay.menu-rest #arcade-overlay-note,#arcade-overlay.menu-rest #arcade-return{display:none}
#arcade-overlay.menu-rest button{min-height:30px;font-size:10px;margin:0;padding:5px 8px}
#sound-dialog .battle-enemy-title{max-width:180px}
[data-camp-theme="night"] #game-desk{background:#253b35;color:#e3e0c6;border-color:#75836d}
[data-camp-theme="night"] #combat-equipped{background:#34483b;color:#ece0b8}
[data-camp-theme="night"] #combat-weapons button{background:#31483c;color:#e4e2c4;border-color:#758269}
[data-camp-theme="night"] #combat-weapons button[aria-pressed="true"]{background:#4b6044}
[data-camp-theme="night"] #combat-weapons small,[data-camp-theme="night"] #combat-weapons strong,[data-camp-theme="night"] .desk-pane-heading span{color:#cbcfad}
[data-camp-theme="night"] #combat-weapons .upgrade{color:#d5eaaa}
[data-camp-theme="night"] #combat-gear-status:not(:empty){background:#354d3d}
@media(max-width:1000px){#sound-dialog .sound-body{grid-template-columns:minmax(0,1fr) 300px}#sound-dialog #combat-weapons small{white-space:normal}}
@media(max-width:720px){
 #sound-dialog{height:99dvh;max-height:99dvh;width:calc(100% - 8px);padding:6px}
 #sound-dialog .sound-body{grid-template-columns:1fr;grid-template-rows:minmax(230px,1.3fr) minmax(140px,1fr);gap:6px}
 #sound-dialog .sound-heading{padding-bottom:4px}#sound-dialog .sound-heading h2{font-size:14px}
 #sound-dialog .sound-heading .btn{min-height:30px;padding:5px 7px;font-size:10px}
 #sound-dialog .battle-heading{padding:4px 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 #battle-field.battle-stage{min-height:145px}
 #sound-dialog .battle-walk-hint{font-size:9px;padding:4px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #sound-dialog #world-strip{font-size:9px;padding:3px 7px;min-height:23px}#sound-dialog #world-strip button{font-size:9px;min-height:22px}
 #game-notices{display:none}
 #desk-menu{grid-template-columns:repeat(6,minmax(0,1fr))}#desk-menu button{font-size:10px;padding:5px 2px;min-height:34px}
 #desk-menu #journey-bag{font-size:9px}#desk-secondary button{min-height:27px;font-size:9px}
 #desk-view>section{padding:9px}.desk-pane-heading{margin-bottom:7px}.desk-pane-heading h3{font-size:13px}
 #combat-equipped{display:none}#combat-weapons{gap:5px}#combat-weapons button{min-height:49px;padding:5px 7px}
 #combat-weapon-tip{margin:6px 0!important}#combat-gear>small{font-size:10px!important}
 #sound-dialog .sound-console{grid-template-columns:54px minmax(0,1fr);gap:3px 8px;margin-top:5px;padding:5px 8px}
 #sound-dialog .sound-console .btn{min-height:33px;padding:6px 4px;font-size:10px}
 #sound-dialog #sound-clock{font-size:20px}#sound-dialog .sound-volume-control label{font-size:10px}
 #sound-dialog #sound-status{font-size:9px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #arcade-hud{top:6px;left:6px;width:123px;padding:5px 7px}#arcade-score{display:none}#combat-current{font-size:8px;margin-top:1px}
 .arcade-mode #battle-field .battle-enemy-title{top:6px;right:6px;min-width:108px;max-width:122px;padding:4px 6px}
 #battle-field .battle-enemy-title #battle-enemy-kind{display:none}#arcade-enemy-stats{font-size:9px}#arcade-enemy-health{margin:3px 0;height:6px}
 #arcade-controls{left:6px;right:6px;bottom:6px}.arcade-dpad{grid-template-columns:repeat(3,32px);grid-template-rows:repeat(2,32px);gap:2px}
 #arcade-controls button{min-width:32px;min-height:32px}#arcade-controls .arcade-action-buttons [data-arcade-action]{min-width:47px;min-height:38px}
 #arcade-controls #arcade-pause{min-height:25px;font-size:9px}.arcade-action-buttons{gap:4px}
 #arcade-overlay{padding:6px}#arcade-overlay>div{padding:9px;max-width:280px}#arcade-overlay h4{font-size:13px}
 #arcade-overlay.menu-rest{padding-top:67px}#arcade-overlay.menu-rest>div{padding:3px 6px}
 #sound-dialog #arcade-overlay p{font-size:10px;line-height:1.4;margin:5px 0}#arcade-overlay button{font-size:10px;min-height:30px;padding:6px 8px}
 #combat-drops svg{width:25px;height:25px}#combat-drops span{font-size:9px}
 #sound-dialog #journey-dialog[data-embedded]{padding:8px}#sound-dialog .journey-dialog-heading h2{font-size:13px}
}
@media(max-height:620px) and (min-width:721px){#sound-dialog .battle-heading{padding:4px 8px}#sound-dialog .battle-mode-picker{padding:3px 6px}#sound-dialog .sound-heading h2{font-size:14px}#sound-dialog .sound-heading .btn{min-height:30px}}
