/* Keep character portrait art; align equipment over its exact rendered image area. */
.portrait-panel.z865-anchored-active > .portrait-accessories{visibility:hidden!important;pointer-events:none!important}
.z865-anchored-outfit{position:absolute;pointer-events:none;z-index:5;max-width:none!important;max-height:none!important;object-fit:fill;filter:drop-shadow(0 2px 3px #164c5b30)}
/* The image and canvas must not drift relative to each other. Gameplay retains animation. */
.portrait-panel.z865-anchored-active > .portrait-art{animation:none!important;transform:none!important}
/* Optional ladder action is compact and never covers the regular game controls. */
.game-section .control.climb{background:linear-gradient(150deg,#ffe6a9e8,#f4bf76d4);color:#1f5070;border-color:#fff7d4;min-width:53px}
.game-section.near-ladder .control.climb{box-shadow:0 0 0 3px #fff7bc99,0 0 18px #f9da80b8;animation:z865-ladder-glow 1.3s ease-in-out infinite}
.game-section .hud-right{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;justify-content:flex-end}
#hud-sky-score{color:#fff1ac;white-space:nowrap}
@keyframes z865-ladder-glow{50%{filter:brightness(1.13)}}
@media(orientation:landscape) and (max-height:470px){
 .game-section .control.climb{width:clamp(40px,5.9vw,58px);min-width:40px;height:clamp(40px,9.5vh,55px);font-size:clamp(11px,1.3vw,17px)}
 .game-section .control.climb small{font-size:clamp(6px,.8vw,9px)}
 .game-section .hud-right{font-size:clamp(9px,1vw,12px);max-width:44%}
}
@media(prefers-reduced-motion:reduce){.game-section.near-ladder .control.climb{animation:none}}
