/* U34 mobile containment, separate from the frozen official site. */
html,body{max-width:100%;overflow-x:clip} .boot-screen,.boot-center,#shell,.shell-layout,.game-viewport{min-width:0;box-sizing:border-box}
@media(max-width:720px){#shell .logo-lockup{flex:1 1 0;max-width:40%;min-width:0}#shell #accountButton{min-width:0;max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}#shell .u01-survival-panel{box-sizing:border-box;width:min(48%,220px)!important;max-width:min(48%,220px)!important;max-height:27dvh!important;overflow:auto!important;font-size:9px;padding:5px!important}#shell .u01-survival-panel span{font-size:10px;overflow-wrap:anywhere}#shell .atl-kf-hint{font-size:10px;padding:4px 6px;max-width:80%;top:5px}#shell .game-viewport{max-width:100%;overflow:hidden}#shell .u01-view-toggle{font-size:10px}#shell .u01-survival-panel #survivalVote{font-size:9px;min-height:25px}#shell .u01-survival-panel #adventureTrail{white-space:normal} .boot-screen{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}

@media(max-width:720px){#shell .shell-header{box-sizing:border-box;min-width:0;gap:6px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}#shell .header-right{min-width:0;flex:0 1 auto;gap:5px}#shell .header-right .header-icon{flex:none}#shell .atl-kf-hint{line-height:1.2;top:5px;z-index:14}#shell .u01-survival-panel{top:42px!important}#shell.atl-immersive-mode .u01-survival-panel{top:calc(42px + env(safe-area-inset-top,0px))!important}}

/* U39: fixed control slots; hidden contextual actions never shift the core controls. */
#shell #gameViewport{touch-action:none;overscroll-behavior:contain}
#shell #atlCombatQuickbar{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4, 44px);align-items:stretch;}
#shell #atlCombatQuickbar #survivalRapid{grid-area:2/1/3/2}#shell #atlCombatQuickbar #survivalFireball{grid-area:2/2/3/3}#shell #atlCombatQuickbar #survivalSprint{grid-area:2/3/3/4}#shell #atlCombatQuickbar #survivalAttack{grid-area:3/1/4/3}#shell #atlCombatQuickbar #survivalAutoTarget{grid-area:3/3/4/4}#shell #atlCombatQuickbar #stPickup{grid-area:1/1/2/4}#shell #atlCombatQuickbar #stReload{grid-area:4/1/5/4}
#shell #survivalControls #survivalPvp,#shell #u39HudCollapse{min-height:29px;max-width:100%;font:700 11px/1.2 monospace;padding:4px 6px;white-space:normal;touch-action:manipulation;background:#173b36;color:#e7ffef;border:1px solid #75bc99;border-radius:7px}
#shell #survivalControls #survivalPvp[aria-pressed=true]{background:#64343a;border-color:#f49c96}
#shell #survivalControls.u39-collapsed>:not(#u39HudCollapse):not(#survivalPvp){display:none!important}
#shell #survivalControls.u39-collapsed{width:auto!important;max-width:48%!important;min-height:0!important}
#shell .atl-kf-garage.u39-kart-anchor{bottom:auto;transform:translate(-50%,-100%);min-width:0;max-width:190px;padding:3px;flex-direction:column;gap:2px;font-size:10px}#shell .atl-kf-garage.u39-kart-anchor button{padding:7px;font-size:11px}
@media(max-height:550px) and (orientation:landscape){#shell #atlCombatQuickbar{grid-template-rows:repeat(4,34px)}}

#shell #gameViewport canvas{touch-action:none}#shell #atlCombatQuickbar button{min-height:0;overflow:hidden;box-sizing:border-box;word-break:normal}#shell #atlCombatQuickbar{width:min(310px,55%)}
@media(pointer:coarse){#shell.world-mode input:not([type=checkbox]):not([type=range]),#shell.world-mode textarea,#shell.world-mode select{font-size:16px!important}}

#shell #atlCombatQuickbar #survivalSprint{min-height:0}#shell #survivalControls #survivalPvp{display:block;width:100%}#shell #survivalControls #u39HudCollapse{display:block;width:100%}#shell #gameViewport .atl-kf-garage.u39-kart-anchor{bottom:auto!important}
