/* Shared player sizing and fullscreen UI. */
@media (max-width: 767px) {
    #loader.preview { height: auto !important; min-height: 440px !important; }
    #loader.preview #playGame { min-height: 440px; }
    #loader.preview .play { position: relative; min-height: 440px; padding: 20px 8px 24px; }
    #loader.preview #playGame > .glow { position: absolute; inset: 0; height: 100%; object-fit: cover; }
    #loader.preview .playBT { flex-shrink: 0; margin: auto auto 0 !important; min-height: 60px; }
    #gameiframe.iframe-height { min-height: 440px; }
}
body.game-fullscreen { overflow: hidden !important; }
body.game-fullscreen .legacy-site-header,
body.game-fullscreen .menu-container,
body.game-fullscreen .menu-backdrop { visibility: hidden !important; }
body.game-fullscreen .home-iframe-area { z-index: 2147483646; }
#iframe.game-fullscreen-player {
    position: fixed !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important;
    margin: 0 !important; padding: 0 !important; border-radius: 0 !important;
    z-index: 2147483647 !important; background: #000; overflow: hidden;
}
#iframe.game-fullscreen-player #game { width: 100%; height: 100%; border-radius: 0 !important; }
#iframe.game-fullscreen-player #gameiframe { display: block; width: 100% !important; height: 100% !important; min-height: 0 !important; border-radius: 0 !important; }
#iframe.game-fullscreen-player #loader { height: 100% !important; overflow: auto; }
#iframe.game-fullscreen-player #fullscreenDiv { display: none !important; }
.game-fullscreen-exit {
    position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
    z-index: 2147483647; width: 44px; height: 44px; padding: 0;
    border: 1px solid #fff8; border-radius: 50%; background: #111c; color: #fff;
    font: 32px/40px Arial, sans-serif; cursor: pointer; touch-action: none;
    user-select: none; box-shadow: 0 2px 8px #0008;
}
