/* One layout for native fullscreen, unsupported phone browsers and Home Screen apps. */
#play-options {display:contents}
#play-menu-toggle {display:none}
#fullscreen-tip[hidden],#fullscreen-help[hidden] {display:none!important}
html.play-immersive {overflow:hidden;overscroll-behavior:none}
body.play-immersive {height:var(--play-height,100dvh);position:relative;overscroll-behavior:none}
body.play-immersive #game-switcher,
body.play-immersive #game-title,
body.play-immersive #creator-credit,
body.play-immersive #secret-egg,
body.play-immersive #restart,
body.play-immersive #mp-open,
body.play-immersive #play-options {display:none}
body.play-immersive #titlebar {position:absolute;top:env(safe-area-inset-top);right:env(safe-area-inset-right);width:auto;max-width:none;min-height:0;margin:0;z-index:6}
body.play-immersive #header-actions {position:static;max-width:none;align-items:center;padding:5px 8px;gap:6px}
body.play-immersive #header-actions button {min-height:40px;font-size:12px;max-width:160px}
body.play-immersive #header-actions #play-menu-toggle {display:block;min-width:42px;min-height:40px;border:1px solid #7790aa;border-radius:8px;background:#344658;color:#ffe5ab;font-size:19px;touch-action:manipulation}
#play-menu-toggle[hidden] {display:none!important}
body.play-immersive #topbar {width:100%;max-width:none;min-height:50px;margin:0;padding:5px calc(var(--play-toolbar-width,170px) + 8px) 5px 10px;align-items:center}
body.play-immersive #hud {font-size:12px;line-height:1.45;overflow-wrap:anywhere;min-width:0}
body.play-immersive #stage {min-height:0}
body.play-immersive #controls {flex-shrink:0}
body.play-immersive.play-menu-open #play-options {display:block;position:absolute;z-index:8;top:calc(env(safe-area-inset-top) + var(--play-hud-height,60px) + 4px);right:max(8px,env(safe-area-inset-right));width:min(620px,calc(100% - 16px));max-height:calc(var(--play-height,100dvh) - var(--play-hud-height,60px) - 110px);overflow:auto;overscroll-behavior:contain;padding:12px 6px;border:1px solid #7fa9bf;border-radius:16px;background:#19394ff5;box-shadow:0 10px 35px #06132399}
body.play-immersive #play-options #mp-open {display:block;position:static;max-width:100%;min-height:40px;margin:0 auto 12px;font-size:13px}
body.play-immersive #play-options #info {display:none}
#fullscreen-help {margin:10px 8px 0;padding:12px;background:#24465e;border:1px solid #7499ab66;border-radius:10px;color:#e0eef5;font-size:13px;line-height:1.65}
#fullscreen-help summary {cursor:pointer;color:#ffe5ab;font-weight:600;min-height:32px}
#fullscreen-help p {margin-top:8px}
#fullscreen-tip {position:fixed;z-index:10;bottom:calc(env(safe-area-inset-bottom) + 118px);left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 28px));display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #91b6c7;border-radius:13px;background:#24465ef5;box-shadow:0 8px 25px #071b3399;color:#eaf5ff;font-size:12px;line-height:1.5}
#fullscreen-tip span {flex:1}
#fullscreen-tip button {flex-shrink:0;min-height:40px;padding:7px;border:1px solid #8bacbf;border-radius:8px;background:#355d75;color:#ffe5ab;font-size:12px;cursor:pointer;touch-action:manipulation}
#fullscreen-tip-close {min-width:36px}
@media (max-height:500px) and (min-width:601px) {
 body.play-immersive #controls {position:absolute;bottom:env(safe-area-inset-bottom);left:env(safe-area-inset-left);right:env(safe-area-inset-right);width:auto;max-width:none;margin:0;padding:6px 12px;pointer-events:none;z-index:3}
 body.play-immersive #direction-pad,body.play-immersive .action-buttons {pointer-events:auto}
 body.play-immersive .action-buttons {max-width:42%}
 #fullscreen-tip {bottom:calc(env(safe-area-inset-bottom) + 100px)}
}
@media (max-width:360px) {
 body.play-immersive #hud {font-size:11px}
 body.play-immersive #header-actions {padding:5px;gap:4px}
 body.play-immersive #header-actions #fullscreen {font-size:11px;padding:6px}
}
