/* Full-screen scenery. All interactive windows remain outside the camera transform. */
#ls-hud{display:none}#ls-plane{position:absolute;inset:0;pointer-events:none}#ls-effects{position:absolute;inset:0;pointer-events:none;z-index:4}.ls-foliage{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.ls-npc-label{display:none}
html.living-scene,html.living-scene body{height:100%;overflow:hidden!important;padding:0!important;background:#142b27!important}
html.living-scene body::before{display:none!important}
html.living-scene #game-screen.main-container{zoom:1!important;position:fixed!important;inset:0!important;display:block!important;width:100%!important;height:100dvh!important;max-width:none!important;padding:0!important;margin:0!important;background:transparent!important}
html.living-scene #center-column{position:static!important;margin:0!important;width:100%!important;max-width:none!important}
html.living-scene #scene-box.scene-box{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;border:0!important;border-radius:0!important;background:#18342e!important;margin:0!important;box-shadow:none!important;overflow:hidden!important}
html.living-scene #scene-art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:none!important;pointer-events:none}
html.living-scene #scene-art img.parallax-img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:fill!important;transform:none!important;animation:none!important;transition:filter 1.4s;filter:none}
html.living-scene #scene-box[data-weather=storm] #scene-art img{filter:brightness(.64) saturate(.77)!important}
html.living-scene #scene-box[data-weather=fog] #scene-art img{filter:saturate(.7) contrast(.88)!important}
html.living-scene #scene-box[data-weather=sun] #scene-art img{filter:saturate(1.12) brightness(1.035)!important}
html.living-scene #scene-box::after{content:"";position:absolute;inset:0;background:linear-gradient(#05251cc2,transparent 24%,transparent 69%,#05221ad9);pointer-events:none;z-index:3}
html.living-scene #scene-npcs{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;display:block!important;pointer-events:none;z-index:2}
html.living-scene #scene-npcs .npc-slot{position:absolute!important;display:block!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-100%);aspect-ratio:2/3;pointer-events:none}
html.living-scene #scene-npcs .npc-slot::before{content:"";position:absolute;bottom:0;left:25%;width:50%;height:5%;background:#0a19149e;border-radius:50%;filter:blur(4px);pointer-events:none}
html.living-scene #scene-npcs .npc-motion,html.living-scene #scene-npcs .scene-npc{height:100%!important;width:100%!important;max-height:none!important;max-width:none!important;object-fit:contain!important;pointer-events:auto;filter:drop-shadow(0 3px 2px #0004);cursor:pointer;transform-origin:50% 100%}
html.living-scene #scene-npcs .npc-motion{display:block;position:relative;transition:filter .2s}
html.living-scene #scene-npcs .npc-motion:hover{filter:drop-shadow(0 0 8px #f3df9bb0)}
html.living-scene #scene-npcs .ls-npc-label{display:block;position:absolute;top:100%;left:50%;transform:translateX(-50%);padding:5px 9px;max-width:170px;min-width:65px;background:#15392de8;border:1px solid #c2ad6e88;border-radius:4px;color:#f2e3b8;text-align:center;font:600 11px Georgia,serif;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0004}
html.living-scene #scene-loc-name{z-index:10!important;top:24px!important;left:50%!important;max-width:46%!important;transform:translateX(-50%)!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#f9eac4!important;text-shadow:0 2px 8px #001d14;white-space:normal!important;text-align:center}
html.living-scene #scene-loc-name small{font:10px Arial!important;letter-spacing:3px!important;color:#d6d9bb!important}html.living-scene #scene-loc-name b{font:700 clamp(22px,2.7vw,38px) Georgia!important;color:#fff0cb!important}
html.living-scene #scene-weather{position:fixed!important;top:90px!important;right:22px!important;z-index:12!important;display:flex!important;gap:7px!important;border:1px solid #c5b47880!important;border-radius:18px!important;background:#173b30e6!important;color:#f3e5bf!important;box-shadow:none!important;padding:8px 12px!important;font:12px Arial!important}
html.living-scene #scene-weather svg{width:19px;height:19px;stroke:#ead9ac;fill:none;stroke-width:1.5}
html.living-scene #daynight-badge{position:fixed!important;top:98px!important;bottom:auto!important;left:24px!important;z-index:12!important;background:transparent!important;border:0!important;color:#e9ddbf!important;box-shadow:none!important;display:flex;gap:7px;align-items:center;font:12px Arial!important;padding:0!important}html.living-scene #daynight-badge svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.5}
html.living-scene #ls-hud{display:block;position:fixed;inset:0;z-index:310;pointer-events:none;color:#efdfb6;font:13px Arial,sans-serif}
#ls-hud button{pointer-events:auto;cursor:pointer;font:inherit;color:#efdfb6;background:#173b30e8;border:1px solid #b8a77980;border-radius:7px;padding:8px 12px;min-height:44px;box-shadow:0 3px 12px #00140d25}
#ls-hud button:hover{background:#355747}#ls-hud button:focus-visible{outline:3px solid #ffe3a0;outline-offset:3px}
#ls-hud .ls-header{position:absolute;inset:14px 22px auto;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
#ls-hud .ls-logo{padding:0;border:0;background:none!important;box-shadow:none}#ls-hud .ls-logo img{width:128px;height:52px;object-fit:contain}#ls-hud .ls-profile{min-width:130px;font:700 15px Georgia;max-width:26vw;text-overflow:ellipsis;overflow:hidden}
#ls-hud .ls-dock{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:7px;background:#12392fee;border:1px solid #c6ad6b;border-radius:13px;backdrop-filter:blur(12px);pointer-events:auto}
#ls-hud .ls-dock button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:transparent;box-shadow:none;min-width:62px;font-size:10px;padding:6px 9px}
#ls-hud .ls-dock img{width:34px;height:34px;object-fit:contain}#ls-hud .ls-dock button:hover{background:#53704e66}#ls-hud #ls-hunt{background:linear-gradient(#b49c56,#7d622c);color:#fff1bd}#ls-hud #ls-hunt[aria-pressed=true]{box-shadow:inset 0 0 0 2px #baff96,0 0 14px #9ce56866}
#ls-hud .ls-quick{position:absolute;top:90px;left:50%;transform:translateX(-50%);display:flex;gap:6px}#ls-hud .ls-quick button{font-size:11px;min-height:32px;padding:6px 12px}#ls-hud .ls-quick button[aria-expanded=true]{background:#817344}
#ls-hud .ls-chat{position:absolute;left:22px;bottom:22px;display:flex;align-items:center;gap:7px}#ls-hud .ls-chat img{width:25px;height:25px}#ls-hud #ls-fx{position:absolute;right:22px;bottom:24px;font-size:11px;max-width:150px;opacity:.9}#ls-hud #ls-fx[aria-pressed=false]{opacity:.6}
#ls-actors{display:none}
html.living-scene #left-panel{position:fixed!important;inset:140px auto auto 22px!important;width:210px!important;max-height:calc(100dvh - 260px)!important;overflow:auto!important;overscroll-behavior:contain;z-index:300;display:flex!important;gap:10px!important;scrollbar-width:thin;scrollbar-color:#a59468 #17392f;padding:0!important;margin:0!important}
html.living-scene #left-panel>.panel{background:#15392fe8!important;border:1px solid #ab9b6880!important;color:#eddfb9!important;border-radius:6px!important;box-shadow:0 8px 24px #001c1844!important;padding:10px!important}
html.living-scene #left-panel>.panel:first-child:has(#location-actions:empty){display:none!important}html.living-scene #weather-box{display:none!important}
html.living-scene #side-exits{gap:10px!important;padding:0!important;display:flex!important;flex-direction:column!important}html.living-scene #side-exits .tj-route{height:100px!important;min-height:100px!important;transform:none!important;border:1px solid #d2c299!important;margin:0!important}
html.living-scene #left-panel h3{font:700 18px Georgia!important;color:#f5e5bc!important;margin:0 0 10px!important}html.living-scene #left-panel h3 img{width:24px;height:24px}
html.living-scene #trainer-palette{position:fixed!important;inset:145px 22px auto auto!important;width:225px!important;max-height:calc(100dvh - 290px)!important;overflow:auto!important;overscroll-behavior:contain;z-index:300;background:#15392feb!important;color:#eddfb9!important;border:1px solid #ab9b6880!important;border-radius:7px!important;padding:5px!important;margin:0!important;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#a59468 #17392f}
html.living-scene #trainer-palette .tp-list{max-height:26dvh;overflow:auto!important}html.living-scene #trainer-palette :is(.tp-tabs,.tp-tab,.tj-person,.tj-local-battles,.tp-search){background:transparent!important;color:#e8d9b4!important;border-color:#b3a57544!important}html.living-scene #trainer-palette :is(small,.tj-note,.tj-local-title,.tj-empty span){color:#bdc7ac!important}html.living-scene #trainer-palette .tj-empty img{width:38px!important;height:38px!important}html.living-scene #trainer-palette .tj-empty{padding:14px 6px!important}html.living-scene #trainer-palette .tj-empty b{color:#e6d6a9!important;font-size:13px!important}
html.living-scene #center-column>.quest-pin-slot{position:fixed;bottom:110px;left:22px;width:215px;z-index:300;max-height:130px;overflow:auto}html.living-scene .quest-pin-slot:empty{display:none}
html.living-scene #main-content-area{display:none!important}html.living-scene.ls-info-open #main-content-area{display:block!important;position:fixed!important;inset:150px auto auto 50%!important;transform:translateX(-50%);width:min(500px,85vw)!important;max-height:60dvh!important;overflow:auto!important;padding:20px!important;box-sizing:border-box;background:#173b30f7!important;border:1px solid #c6ac76;border-radius:10px;z-index:320;color:#efdfbd!important}html.living-scene #main-content-area :is(h4,p){color:#efdfbd!important}
html.living-scene #center-column>details,html.living-scene #ms-location-sheet,html.living-scene #mobile-bottom-nav,html.living-scene #mobile-hunt-fab,html.living-scene #mobile-chat-fab,html.living-scene #hunt-fab,html.living-scene #app-hunt-btn,html.living-scene #mobile-panel-left-btn,html.living-scene #mobile-panel-right-btn{display:none!important}
html.living-scene #divDock{display:none!important}html.living-scene.ls-menu-open #divDock{display:flex!important;flex-wrap:wrap!important;align-content:flex-start!important;position:fixed!important;inset:135px 20px auto auto!important;width:min(530px,calc(100vw - 40px))!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 240px)!important;overflow:auto!important;z-index:400!important;transform:none!important;background:#12382ff7!important;border:1px solid #c3ac71!important;border-radius:12px!important;padding:16px!important;gap:12px!important;box-sizing:border-box!important;zoom:1!important}
html.living-scene.ls-menu-open #divDock>div{display:flex!important;flex-wrap:wrap!important;gap:12px!important;justify-content:flex-start!important;max-width:100%!important}html.living-scene.ls-menu-open #divDock .dock-btn{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:center!important;width:76px!important;height:auto!important;min-height:65px!important;border-radius:6px!important;padding:7px!important;background:#48634b44!important;border:1px solid #beaa7155!important;white-space:normal!important;color:#ebdbb1!important}
html.living-scene.ls-menu-open #divDock .dock-btn.hidden{display:none!important}html.living-scene.ls-menu-open #divDock .dock-img{width:32px!important;height:32px!important}html.living-scene.ls-menu-open #divDock .dock-tip{position:static!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;font:10px Arial!important;background:none!important;white-space:normal!important;max-width:75px!important;padding:0!important;color:#efdfbd!important}
html.living-scene #logo-menu-toggle,html.living-scene #user-info-panel{display:none!important}html.living-scene.ls-menu-open #logo-menu{position:static!important;display:flex!important;order:5!important;background:transparent!important;border:0!important;box-shadow:none!important;width:100%!important}html.living-scene #logo-menu :is(button,a){min-height:40px!important;color:#ead9af!important;font:12px Arial!important}
html.living-scene #bottom-bar{display:none!important}html.living-scene.ls-chat-open #bottom-bar{display:block!important;position:fixed!important;inset:auto auto 100px 22px!important;width:min(470px,calc(100vw - 44px))!important;max-width:none!important;z-index:400!important;background:#102f29f7!important;border:1px solid #b49d68!important;border-radius:9px!important;max-height:60dvh!important;overflow:auto!important;box-sizing:border-box}html.living-scene.ls-chat-open #chat-messages{display:block!important;height:min(250px,35dvh)!important}html.living-scene.ls-chat-open #bottom-bar.collapsed>*{display:flex}html.living-scene.ls-chat-open #bottom-bar #chat-tabs{display:flex!important}
html.living-scene #ls-hud~.modal{z-index:1000}html.living-scene .modal{max-height:100dvh;overflow:auto!important}
html.living-scene.ls-battle #ls-hud,html.living-scene.ls-battle #left-panel,html.living-scene.ls-battle #trainer-palette,html.living-scene.ls-battle #ls-plane,html.living-scene.ls-battle #ls-effects,html.living-scene.ls-battle #scene-loc-name,html.living-scene.ls-battle #scene-weather,html.living-scene.ls-battle #daynight-badge{display:none!important}
html.living-scene.ls-battle #scene-battle{position:fixed!important;inset:0!important;height:100dvh!important;max-height:100dvh!important;overflow:auto!important;padding:8px!important;box-sizing:border-box!important;z-index:700!important}
html.living-scene.ls-battle #scene-box{overflow:visible!important}
@media(max-width:1100px){html.living-scene #left-panel,html.living-scene #trainer-palette{display:none!important}html.living-scene.ls-routes-open #left-panel,html.living-scene.ls-nearby-open #trainer-palette{display:flex!important;flex-direction:column}html.living-scene #left-panel{max-height:65dvh!important;width:240px!important}html.living-scene #trainer-palette{width:260px!important;max-height:65dvh!important}html.living-scene #center-column>.quest-pin-slot{bottom:110px;max-height:90px;width:180px}}
@media(max-width:760px){
 html.living-scene #scene-loc-name{top:78px!important;max-width:92%!important;width:92%}html.living-scene #scene-loc-name b{font-size:25px!important}html.living-scene #scene-loc-name small{font-size:9px!important}
 #ls-hud .ls-header{inset:10px 12px auto}#ls-hud .ls-logo img{width:110px;height:43px}#ls-hud .ls-profile{font-size:13px;min-width:100px;max-width:45vw;padding:8px}
 html.living-scene #scene-weather{top:144px!important;right:12px!important;font-size:11px!important;padding:6px 9px!important}html.living-scene #daynight-badge{top:151px!important;left:14px!important}
 #ls-hud .ls-quick{top:auto;bottom:100px;gap:5px;width:calc(100% - 24px);justify-content:center}#ls-hud .ls-quick button{font-size:12px;flex:1;min-height:40px;padding:7px 8px}
 #ls-hud .ls-dock{bottom:0;border-radius:12px 12px 0 0;width:100%;box-sizing:border-box;padding:7px 6px max(8px,env(safe-area-inset-bottom));justify-content:space-around;border-left:0;border-right:0}#ls-hud .ls-dock button{min-width:0;width:20%;padding:5px 3px;font-size:10px}#ls-hud .ls-dock img{width:29px;height:29px}#ls-hud .ls-dock [data-nav="4"],#ls-hud .ls-dock [data-nav="5"]{display:none}
 #ls-hud .ls-chat{left:12px;bottom:155px;min-width:44px;padding:7px}#ls-hud .ls-chat span{display:none}#ls-hud #ls-fx{right:12px;bottom:155px;max-width:125px;font-size:10px;padding:6px}
 #ls-actors{display:flex;position:absolute;top:185px;left:12px;right:12px;gap:5px;justify-content:center;flex-wrap:wrap}#ls-actors button{padding:5px 8px;min-height:32px;font-size:10px;max-width:45%;background:#193a2dba}
 html.living-scene #left-panel,html.living-scene #trainer-palette{inset:auto 12px 150px 12px!important;width:auto!important;max-height:55dvh!important;border-radius:16px!important;background:#15392ff7!important;padding:12px!important;box-sizing:border-box;z-index:350}
 html.living-scene #side-exits{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html.living-scene #side-exits .tj-route{height:115px!important;min-height:115px!important}
 html.living-scene #center-column>.quest-pin-slot{bottom:205px;left:12px;max-height:76px;width:170px;font-size:10px}
 html.living-scene #scene-npcs .ls-npc-label{font-size:10px;padding:4px 7px;max-width:130px;white-space:normal}
 html.living-scene.ls-menu-open #divDock{inset:auto 12px 90px 12px!important;width:calc(100vw - 24px)!important;max-height:72dvh!important;padding:12px!important}html.living-scene.ls-menu-open #divDock>div{gap:8px!important}html.living-scene.ls-menu-open #divDock .dock-btn{width:70px!important}
 html.living-scene.ls-chat-open #bottom-bar{inset:auto 12px 150px 12px!important;width:calc(100vw - 24px)!important}html.living-scene.ls-info-open #main-content-area{inset:auto 12px 150px 12px!important;transform:none!important;width:auto!important;max-height:55dvh!important}
}
@media(max-height:500px){html.living-scene #scene-loc-name{top:10px!important}html.living-scene #scene-weather{top:65px!important}html.living-scene #daynight-badge{top:68px!important}#ls-hud .ls-quick{top:60px;bottom:auto}#ls-actors{top:105px}#ls-hud .ls-dock{padding:4px}#ls-hud .ls-dock img{width:25px;height:25px}#ls-hud #ls-fx{bottom:20px}#ls-hud .ls-chat{bottom:20px}html.living-scene #center-column>.quest-pin-slot{display:none}html.living-scene.ls-menu-open #divDock{top:98px!important;bottom:75px!important;max-height:none!important}html.living-scene #left-panel,html.living-scene #trainer-palette{top:100px!important;bottom:80px!important;max-height:none!important}}
@media(prefers-reduced-motion:reduce){html.living-scene #ls-plane{transform:none!important}html.living-scene #ls-effects,html.living-scene .ls-foliage{display:none}html.living-scene #scene-art img{transition:none}}
/* Ground stays fixed through viewport changes; transparent sprite padding is visual only. */
html.living-scene #scene-box.scene-box{background-image:var(--ls-backdrop)!important;background-size:cover!important;background-position:center!important}
html.living-scene #scene-npcs .npc-slot>.npc-motion,html.living-scene #scene-npcs .npc-slot>img.scene-npc{transform:translateY(var(--npc-feet-gap,0%))!important;animation:none!important}
html.living-scene #scene-npcs .npc-slot::before{bottom:-1%;height:3%;left:33%;width:34%;filter:blur(2px);background:#07171180}
html.living-scene #scene-npcs .npc-slot[data-npc-key$="_spirit"]::before{opacity:.4;filter:blur(5px)}
