html.immersive-page-locked,html.immersive-page-locked body{overflow:hidden;overscroll-behavior:none}
#game.is-immersive{position:fixed;z-index:10000;inset:0;width:100vw;height:100vh;height:100dvh;min-height:0;margin:0;border:0;border-radius:0}
#game:fullscreen{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;min-height:0;border:0;border-radius:0}
#game.is-immersive #hud{top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));padding-right:0}
#game.is-immersive .touch-stick{left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom))}
#game.is-immersive .touch-actions{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
#game.is-immersive .overlay{overflow-y:auto;align-items:safe center;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
#game .immersive-toggle{position:absolute;z-index:20;top:max(52px,calc(env(safe-area-inset-top) + 44px));right:max(10px,env(safe-area-inset-right));min-height:42px;padding:8px 11px;margin:0;border:1px solid #fff9;border-radius:9px;background:#21172de6;color:#fff;font-size:12px;line-height:1;box-shadow:0 2px 8px #0008}
#game .immersive-toggle[hidden]{display:none!important}
@media(max-height:500px){#game .immersive-toggle{top:max(38px,calc(env(safe-area-inset-top) + 30px));min-height:38px}}
