/* Mobile fills the viewport; desktop retains the original portrait letterbox. */
html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden}
#GameHost{position:fixed;inset:0;width:100%;height:100%;height:100dvh;background:#000;overflow:hidden}
#GameStage{position:absolute;inset:0;width:100%;height:100%}
.playdown-mobile #GameHost{background:linear-gradient(#154e89,#071c38)}
#playdown-display-controls[hidden],#playdown-display-guide[hidden]{display:none!important}
#playdown-display-controls{position:absolute;top:var(--safe-top,0px);left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);height:44px;z-index:12000;display:flex;justify-content:flex-end;background:#103b6a;color:#fff;font:14px Arial,sans-serif}
#playdown-display-controls button{min-height:44px;min-width:44px;padding:0 12px;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer}
#playdown-display-controls button:focus-visible{outline:2px solid #ffd17a;outline-offset:-3px}
#playdown-display-guide{position:absolute;top:44px;left:8px;right:8px;background:#f7f3ea;color:#173a45;padding:16px;border-radius:16px;font-size:16px;line-height:1.5;max-height:60dvh;overflow:auto;box-shadow:0 8px 24px #0005}
.playdown-mobile body{background:#154e89}
.playdown-mobile #splash,.playdown-mobile #html-auth{background:transparent}
.playdown-mobile #splash .loading-content{background-size:cover}
.playdown-mobile #splash .loading-art{inset:auto;left:0;top:30%;height:34%;width:100%}
.playdown-mobile #splash .loading-brand{inset:auto;left:0;top:65%;width:100%;height:6%;object-fit:contain}
.playdown-mobile #splash .loading-language{height:44px;min-width:116px;font-size:13px}
.playdown-mobile #splash #loading-status{font-size:14px}
.playdown-mobile #splash #loading-error{font-size:14px;line-height:1.4}
.playdown-mobile #splash #loading-retry{font-size:14px;min-height:44px}
.playdown-mobile #splash.loading-failed #loading-status{top:auto;bottom:110px}
.playdown-mobile #splash.loading-failed #loading-error{top:auto;bottom:58px}
.playdown-mobile #splash.loading-failed #loading-retry{top:auto;bottom:8px;height:44px}
.playdown-mobile #splash .loading-tagline{font-size:16px;padding:0 12px;box-sizing:border-box}
.playdown-mobile #splash .loading-kicker{font-size:12px;padding:0 12px;box-sizing:border-box}
.playdown-mobile #splash .language-panel{top:auto;bottom:12px;height:auto;min-height:286px}
.playdown-mobile #html-auth input{font-size:16px}
/* Reduce spare header/hero space before allowing one page scroll on short screens. */
.playdown-mobile #html-auth .auth-content:not(.auth-compact) .auth-header{min-height:92px}
.playdown-mobile #html-auth .auth-content:not(.auth-compact) #auth-language{top:0}
.playdown-mobile #html-auth .auth-content:not(.auth-compact) #auth-language{font-size:13px}
.playdown-mobile #html-auth .auth-content:not(.auth-compact) .auth-brand{top:auto;bottom:6px}
.playdown-mobile #html-auth .auth-content:not(.auth-compact) .auth-hero{height:clamp(86px,calc(var(--host-height) - 700px),208px);width:100%;aspect-ratio:auto;object-fit:contain;flex-shrink:0}
.playdown-mobile #html-auth .auth-content:not(.auth-compact) .auth-social{min-height:44px}
