/* v0.4 additive landscape UX, no canvas rotation or nonuniform scaling. */
#game{box-sizing:border-box;overflow:hidden;max-width:100vw}
#game:fullscreen{width:100vw;height:100dvh;max-height:100dvh;overflow:hidden;box-sizing:border-box}
#game canvas,#game #world3d{max-width:100%;object-fit:contain}
#akasV04Rotate{position:fixed;inset:0;z-index:100002;background:rgba(6,18,16,.98);display:grid;place-items:center;text-align:center;color:#fff;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overflow:auto}
#akasV04Rotate[hidden]{display:none!important}
.akas-v04-rotate-card{width:min(100%,540px);display:grid;gap:16px}
.akas-v04-rotate-card h2{font-size:clamp(22px,6vw,34px);line-height:1.3;margin:0;color:#f0d4a2}
.akas-v04-rotate-card p{font-size:clamp(15px,3.5vw,18px);line-height:1.6;margin:0}
.akas-v04-rotate-card [data-rotate-help]{font-size:14px;color:#d2dfd5}
#immersiveGate,#immersiveNotice,#immersiveRetry,#immersiveExit{box-sizing:border-box}
#immersiveGate{padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
#immersiveNotice{max-width:calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px)}
#game[data-immersive-portrait="true"] .touch-controls{pointer-events:none!important}
#game:fullscreen .touch-controls{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
#game:fullscreen #world3d{max-height:100dvh}
@media (orientation:landscape) and (pointer:coarse){#game{min-height:100dvh}#akasV04Rotate[hidden]{display:none}}
@media (prefers-reduced-motion:reduce){#akasV04Rotate *{transition:none!important;animation:none!important}}
