#game-fullscreen{flex:0 0 76px;min-width:76px;min-height:36px;margin:0;white-space:nowrap;font:inherit;cursor:pointer}
#game-fullscreen:focus-visible,#game-immersive-exit:focus-visible{outline:3px solid #eea855;outline-offset:3px}
#game-fullscreen-status{font:12px system-ui;max-width:180px}
#game-fullscreen-status[hidden],#game-immersive-exit[hidden],#game-screen-help[hidden]{display:none!important}
#game-screen-help{position:fixed;z-index:10001;top:calc(8px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));right:calc(100px + env(safe-area-inset-right));width:auto;margin:0;padding:5px;border-radius:5px;background:#173e4cdd;color:#fff;font:11px/1.4 system-ui;pointer-events:none}
#game-immersive-exit{position:fixed;z-index:10001;top:calc(8px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));width:auto;max-width:90px;min-width:76px;min-height:40px;padding:7px 10px;border:1px solid #ffffff70;border-radius:8px;background:#173e4cef;color:#fff;font:13px system-ui;cursor:pointer}
html[data-game-screen=immersive] header,html[data-game-screen=immersive] aside,html[data-game-screen=immersive] #scene-controls-toggle{display:none!important}
html[data-game-screen=immersive] #viewport{inset:0!important}
html[data-game-screen=fullscreen],html[data-game-screen=immersive]{width:100%;height:100%;height:100dvh;background:#102e3c}
@media(max-width:760px){
 .touch-playing #game-toolbar::after{content:"";order:1;flex:0 0 100%;height:0}
 .touch-playing #game-toolbar>#game-fullscreen{position:fixed;top:calc(6px + env(safe-area-inset-top));right:calc(92px + env(safe-area-inset-right));width:76px;min-height:34px;z-index:5}
 .touch-playing #game-loading[data-phase=ready]{order:0;box-sizing:border-box;flex:1 1 0;padding-right:76px}
 .touch-playing #game-loading[data-phase=ready] #game-load-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
.touch-playing #game-toolbar{padding-top:calc(6px + env(safe-area-inset-top));padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
#scene-controls-toggle{top:calc(5px + env(safe-area-inset-top));right:calc(6px + env(safe-area-inset-right))}
@media(min-width:761px){.touch-playing #game-toolbar{padding-right:calc(106px + env(safe-area-inset-right))}}
