/* Keep the scene full size; only the controls intercept touches. */
#world{--edge24:6px;--key24:40px;--skill24:38px;--gap24:4px;--bottom24:max(6px,env(safe-area-inset-bottom));--left24:max(6px,env(safe-area-inset-left));--right24:max(6px,env(safe-area-inset-right))}
#world #hud{padding:max(6px,env(safe-area-inset-top)) var(--right24) 14px var(--left24);display:block;pointer-events:none;background:linear-gradient(#07141ab0,transparent);font-size:13px}
#world #hud>div{pointer-events:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#world #life{margin-top:3px;font-size:11px;line-height:1.3}
#edgeMenu24{position:absolute;z-index:16;display:flex;gap:var(--gap24);left:var(--left24);bottom:var(--bottom24);align-items:end}
#edgeMenu24 button,#world #combatBar16 button{min-width:var(--key24);min-height:40px;padding:4px 5px;font-size:12px;line-height:1.2;letter-spacing:0;border-radius:8px;box-shadow:0 1px 5px #0008}
#world #combatBar16{right:var(--right24);bottom:var(--bottom24);left:auto;width:auto;max-width:calc(100vw - var(--left24) - var(--right24));z-index:14;pointer-events:none}
#world .combat-buttons16{display:grid;grid-template-columns:repeat(6,var(--skill24));gap:var(--gap24);align-items:end;pointer-events:auto}
#world #skillSlots16{display:grid;grid-template-columns:repeat(6,var(--skill24));grid-column:1/-1;grid-row:1;gap:var(--gap24)}
#world #skillSlots16 .skill-slot16{width:var(--skill24);min-width:var(--skill24);height:42px;min-height:42px;padding:0}
#world #skillSlots16 .skill-slot16 span{font-size:9px;line-height:12px;background:#061319d9}
#world #attack16{grid-row:2;grid-column:3/5;background:linear-gradient(#a48045ed,#654725ed);border-color:#e1bc78}
#world #skills16{grid-row:2;grid-column:5}
#world #cancelCast16{grid-row:2;grid-column:6}
#world #attack16[aria-pressed=true]{background:linear-gradient(#b84d36,#742916);border-color:#ffd09a}
#world #combatMessage16:empty{display:none}
#world #combatMessage16{position:absolute;right:0;bottom:90px;max-width:min(300px,80vw);font-size:12px;background:#101d26dc;border-radius:6px;padding:5px 8px;pointer-events:none}
#morePanel24{position:absolute;z-index:42;left:var(--left24);bottom:calc(var(--bottom24) + 48px);width:min(290px,calc(100vw - var(--left24) - var(--right24)));max-height:calc(100dvh - var(--bottom24) - max(12px,env(safe-area-inset-top)) - 58px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;background:#0a1c26f5;border:1px solid #6d828b;border-radius:12px;padding:12px;box-shadow:0 8px 36px #0009}
#morePanel24 h2{font-size:16px}
#world #morePanel24 button{min-height:38px;font-size:12px;padding:6px 9px}
#world #visualSettings{position:static;inset:auto;width:auto;padding:10px 0;margin:8px 0;background:none;border:0;border-top:1px solid #50687855;border-radius:0}
#world #visualSettings summary{text-align:left;font-size:13px;min-height:28px;margin-bottom:8px}
#world #visualSettings button{margin-top:6px}
#world #visualSettings select{min-height:36px;font-size:14px}
#world #visualSettings .row{gap:7px}
#morePanel24>.row{gap:7px;flex-wrap:wrap}
#morePanel24>.row button{flex:1;white-space:nowrap}
#world #worldStatus{position:static;inset:auto;margin-top:10px;font-size:10px;line-height:1.5;opacity:.65;overflow-wrap:anywhere}
#audioStatus24{margin-top:8px;font-size:11px;line-height:1.5;color:#b9d5d0}
#world #renderStatus{left:var(--left24);top:calc(max(6px,env(safe-area-inset-top)) + 43px);transform:none;max-width:45vw;padding:3px 6px;font-size:10px;opacity:.8;overflow:hidden;text-overflow:ellipsis}
#world .controls-note{display:none}
#world #targetPanel{left:auto;right:var(--right24);top:max(6px,env(safe-area-inset-top));width:min(216px,51vw);max-height:42dvh;padding:7px 9px;border-radius:8px}
#world #targetName{font-size:12px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#world #targetClose{min-width:28px;min-height:28px;font-size:17px;padding:0 6px}
#world .target-meta{font-size:10px;margin:3px 0}
#world #targetLife{height:7px}
#world #targetLifeText{font-size:10px}
#world #targetPanel button:not(#targetClose){min-height:32px;padding:4px 7px;font-size:12px;margin-top:5px}
#world #targetQuestHeading,#world #targetQuests{display:none}
#world #nearbyLoot17{right:var(--right24);bottom:calc(var(--bottom24) + 92px);min-height:36px;padding:5px 9px;font-size:12px}
#world #inventoryPanel,#world #questPanel,#world #dialogPanel,#world #shopPanel20,#world #travelPanel19,#world #skillPanel16,#world #lootPanel17{top:max(8px,env(safe-area-inset-top));right:var(--right24);left:auto;width:min(500px,calc(100vw - var(--left24) - var(--right24)));max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - var(--bottom24) - 96px);padding:12px}
@media(orientation:landscape) and (min-width:540px){
 #world{--key24:38px;--skill24:36px;--gap24:3px}
 #world .combat-buttons16{display:flex;gap:var(--gap24)}
 #world #skillSlots16{display:flex;gap:var(--gap24)}
 #world #skillSlots16 .skill-slot16{height:38px;min-height:38px}
 #world #attack16{min-width:52px}
 #world #combatBar16 button,#edgeMenu24 button{min-height:38px}
 #world #combatMessage16{bottom:45px}
 #world #nearbyLoot17{bottom:calc(var(--bottom24) + 47px)}
 #world #inventoryPanel,#world #questPanel,#world #dialogPanel,#world #shopPanel20,#world #travelPanel19,#world #skillPanel16,#world #lootPanel17{max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - var(--bottom24) - 48px);width:min(460px,65vw)}
 #world #targetPanel{max-height:50dvh}
}
@media(min-width:1100px) and (min-height:650px){#world{--skill24:44px;--key24:44px}#world #skillSlots16 .skill-slot16{height:46px;min-height:46px}}

#moviePanel25{position:absolute;z-index:100;inset:0;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#06121c88;touch-action:none}.movie-card25{width:min(360px,100%);max-height:90dvh;overflow:auto;background:#10232bf5;border:1px solid #a19069;border-radius:12px;padding:18px;text-align:center}.movie-card25 h2{margin-top:0;font-size:19px}.movie-card25 p{font-size:14px;line-height:1.65;color:#d1dad5}.movie-card25 button{font-size:15px;min-height:42px}.item-target25{grid-column:1/-1;display:flex;gap:6px;align-items:center;margin-top:6px}.item-target25 select{min-width:0;min-height:38px;font-size:14px;padding:5px}.item-target25 button{white-space:nowrap}

#nativeNotice25{position:absolute;z-index:95;left:50%;bottom:calc(114px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);box-sizing:border-box;padding:7px 12px;border:1px solid #c9b47c88;border-radius:8px;background:#101b26eb;color:#fff2c9;font-size:13px;line-height:1.5;text-align:center;pointer-events:none}@media(orientation:landscape){#nativeNotice25{bottom:calc(72px + env(safe-area-inset-bottom));max-width:65%}}

#fullscreenStatus:empty{display:none}

#world #autoHunt39{grid-row:3;grid-column:3/5}
#world #autoHuntStatus39:not([hidden]){display:block;text-align:right;font-size:12px;color:#f5ecd2;text-shadow:0 1px 4px #000;margin:0 0 3px}
#world #autoHunt39[aria-pressed=true]{background:#713525;border-color:#e5a77c}
