/* The original navigation controls stay live; the scene only changes their layout. */
html.living-scene{--ls-dock-height:86px}
#ls-hud .ls-logo img{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 3px 8px #0006)}
@media(max-width:760px){#ls-hud .ls-logo img{width:47px;height:47px}}
#ls-hud .ls-dock{bottom:max(10px,env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:1660px;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:8px;background:linear-gradient(180deg,#214b3ef5,#102f28fa);border:1px solid #cbb578;box-shadow:0 6px 28px #001a14a8,inset 0 1px #e8d39838}
html.living-scene #ls-hud #divDock,html.living-scene #ls-hud #divDock>div:not(#logo-menu):not(#user-info-panel){display:contents!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;transform:none!important;zoom:1!important}
#ls-hud .ls-dock>button,html.living-scene #ls-hud #divDock .dock-btn{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:5px!important;width:clamp(54px,4.4vw,72px)!important;min-width:0!important;min-height:68px!important;height:auto!important;padding:5px 3px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#f1e3bf!important;box-shadow:none!important;white-space:normal!important;font:10px/1.15 Arial,sans-serif!important;flex:none!important;text-decoration:none!important}
#ls-hud .ls-dock>button:hover,html.living-scene #ls-hud #divDock .dock-btn:hover{background:#bca76b21!important;border-color:#cbb57866!important;transform:translateY(-2px)!important}
html.living-scene #ls-hud #divDock .dock-btn.hidden,html.living-scene #ls-hud #divDock #tutorial-dock-btn[style*="display: none"],html.living-scene #ls-hud #divDock #tutorial-dock-btn[style*="display:none"]{display:none!important}
html.living-scene #ls-hud #divDock #logo-menu-toggle,html.living-scene #ls-hud #divDock #user-info-panel{display:none!important}
#ls-hud .ls-dock>button img,html.living-scene #ls-hud #divDock .dock-img{width:32px!important;height:32px!important;min-height:0!important;object-fit:contain!important;filter:drop-shadow(0 2px 4px #0006);border:0!important;margin:0!important}
html.living-scene #ls-hud #divDock .dock-tip{position:static!important;display:block!important;visibility:visible!important;opacity:1!important;inset:auto!important;transform:none!important;max-width:100%!important;margin:0!important;padding:0!important;color:inherit!important;background:none!important;border:0!important;box-shadow:none!important;white-space:normal!important;font:10px/1.15 Arial,sans-serif!important;text-align:center!important}
html.living-scene #ls-hud #divDock .dock-tip::before,html.living-scene #ls-hud #divDock .dock-tip::after{display:none!important}
html.living-scene #ls-hud #divDock .dock-tip{word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
html.living-scene #ls-hud #divDock [onclick*="loadPokedex"] .dock-tip{font-size:9px!important}
html.living-scene #ls-hud #divDock .dock-ico{display:grid;place-items:center;width:32px;height:32px;font:700 12px Arial!important;border:1px solid #cbb57877;border-radius:50%;background:#496448}
#ls-hud .ls-dock #ls-hunt{background:transparent!important;border-color:transparent!important;color:#f1e3bf!important}
#ls-hud .ls-dock #ls-hunt[aria-pressed=true]{color:#fff1c2!important}
#ls-hud .ls-dock #ls-hunt[aria-pressed=true] img{animation:huntPokeballRock 1.8s ease-in-out infinite;filter:drop-shadow(0 0 7px #ffe19c)!important}
#ls-hud .ls-dock #ls-hunt[aria-pressed=true]::after{content:'';position:absolute;pointer-events:none;width:5px;height:5px;top:21px;left:calc(50% - 2.5px);border-radius:50%;background:#fff4d3;box-shadow:0 0 8px 3px #ffd56d;animation:huntButtonGlow 1.8s ease-in-out infinite}
@keyframes huntPokeballRock{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
@keyframes huntButtonGlow{0%,100%{opacity:.45}50%{opacity:1}}
@media(max-width:760px){#ls-hud .ls-dock #ls-hunt[aria-pressed=true]::after{top:12px;width:4px;height:4px}}
@media(max-height:520px) and (min-width:761px){#ls-hud .ls-dock #ls-hunt[aria-pressed=true]::after{top:11px}}
@media(prefers-reduced-motion:reduce){#ls-hud .ls-dock #ls-hunt[aria-pressed=true] img,#ls-hud .ls-dock #ls-hunt[aria-pressed=true]::after{animation:none}}
html.living-scene #ls-hud #divDock :is(#mail-badge,#daily-badge){top:0!important;right:2px!important;z-index:2}
html.living-scene #ls-hud #divDock #crystal-count{bottom:auto!important;top:0!important;right:0!important;z-index:2}
html.living-scene #ls-hud #divDock #logo-menu{display:none!important}
html.living-scene.ls-menu-open #ls-hud #divDock #logo-menu{position:fixed!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));right:18px!important;left:auto!important;top:auto!important;bottom:calc(var(--ls-dock-height) + 26px)!important;width:min(420px,calc(100vw - 36px))!important;max-height:calc(100dvh - var(--ls-dock-height) - 55px);overflow:auto!important;box-sizing:border-box!important;padding:12px!important;gap:7px!important;background:#153a30fa!important;border:1px solid #cbb578!important;border-radius:12px!important;box-shadow:0 8px 32px #00180c99!important;pointer-events:auto}
html.living-scene #ls-hud #logo-menu :is(button,a){display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px!important;padding:9px!important;box-sizing:border-box;background:#66825e24!important;border:1px solid #c4ad6c55!important;border-radius:6px;color:#f1e3bf!important;text-decoration:none;font:12px Arial!important}
#ls-hud .ls-chat{bottom:calc(var(--ls-dock-height) + 24px)}#ls-hud #ls-fx{bottom:calc(var(--ls-dock-height) + 24px)}
html.living-scene #center-column>.quest-pin-slot{bottom:calc(var(--ls-dock-height) + 80px)}
html.living-scene #left-panel{max-height:calc(100dvh - var(--ls-dock-height) - 220px)!important}
html.living-scene #trainer-palette{max-height:calc(100dvh - var(--ls-dock-height) - 230px)!important}
html.living-scene.ls-chat-open #bottom-bar{bottom:calc(var(--ls-dock-height) + 30px)!important}
@media(max-width:760px){
 #ls-hud .ls-dock{bottom:0;width:100%;gap:2px;padding:5px 4px max(5px,env(safe-area-inset-bottom));border-radius:13px 13px 0 0}
 #ls-hud .ls-dock>button,html.living-scene #ls-hud #divDock .dock-btn{width:calc((100vw - 20px)/5)!important;min-height:49px!important;padding:3px 2px!important;gap:2px!important;font-size:9px!important}
 #ls-hud .ls-dock>button img,html.living-scene #ls-hud #divDock .dock-img{width:23px!important;height:23px!important}
 html.living-scene #ls-hud #divDock .dock-tip{font-size:9px!important;line-height:1.1!important}
 html.living-scene #ls-hud #divDock .dock-ico{width:23px;height:23px;font-size:10px!important}
 #ls-hud .ls-quick{bottom:calc(var(--ls-dock-height) + 12px)}
 #ls-hud .ls-chat,#ls-hud #ls-fx{bottom:calc(var(--ls-dock-height) + 62px)}
 html.living-scene #center-column>.quest-pin-slot{bottom:calc(var(--ls-dock-height) + 115px)}
 html.living-scene #left-panel,html.living-scene #trainer-palette,html.living-scene.ls-chat-open #bottom-bar,html.living-scene.ls-info-open #main-content-area{bottom:calc(var(--ls-dock-height) + 58px)!important;max-height:calc(100dvh - var(--ls-dock-height) - 220px)!important}
}
@media(max-height:500px){
 #ls-hud .ls-dock{max-width:calc(100% - 16px);bottom:0;gap:2px;padding:3px}
 #ls-hud .ls-dock>button,html.living-scene #ls-hud #divDock .dock-btn{width:clamp(47px,6.1vw,63px)!important;min-height:43px!important;padding:2px!important;gap:2px!important;font-size:9px!important}
 #ls-hud .ls-dock>button img,html.living-scene #ls-hud #divDock .dock-img{width:21px!important;height:21px!important}
 html.living-scene #ls-hud #divDock .dock-tip{font-size:9px!important}
 #ls-hud .ls-quick{top:60px;bottom:auto;width:auto}#ls-hud .ls-chat,#ls-hud #ls-fx{bottom:calc(var(--ls-dock-height) + 10px)}
 html.living-scene #left-panel,html.living-scene #trainer-palette{bottom:calc(var(--ls-dock-height) + 12px)!important;max-height:calc(100dvh - var(--ls-dock-height) - 115px)!important}
}
@media(prefers-reduced-motion:reduce){#ls-hud .ls-dock>button:hover,html.living-scene #ls-hud #divDock .dock-btn:hover{transform:none!important}}
