.game-shell {
    position: relative;
    padding-top: max(58px, clamp(16px, 3vw, 28px));
}

.game-fullscreen-open,
.game-fullscreen-close {
    min-width: 86px;
    min-height: 40px;
    border: 1px solid rgba(120, 207, 176, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #216f59;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(45, 92, 78, 0.14);
    cursor: pointer;
    touch-action: manipulation;
    z-index: 40;
}

.game-fullscreen-open {
    position: absolute;
    top: 12px;
    right: 12px;
}

.game-fullscreen-close {
    display: none;
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
}

.game-fullscreen-open:active,
.game-fullscreen-close:active {
    transform: translateY(1px);
}

.mobile-play-note {
    margin: 0 0 12px;
    border: 1px solid rgba(120, 207, 176, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #47625d;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.7;
}

.is-game-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: calc(64px + env(safe-area-inset-top)) clamp(12px, 4vw, 24px) calc(18px + env(safe-area-inset-bottom)) !important;
    overflow: auto !important;
    background:
        radial-gradient(circle at 50% 8%, rgba(142, 223, 193, 0.16), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fffb 100%) !important;
    box-shadow: none !important;
    z-index: 9999 !important;
}

.is-game-fullscreen .game-fullscreen-open {
    display: none;
}

.is-game-fullscreen .game-fullscreen-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
}

.game-fullscreen-lock,
.game-fullscreen-lock body {
    overflow: hidden;
}

@media (max-width: 760px) {
    .is-game-fullscreen .status-panel {
        margin-top: 0;
    }

    .mobile-play-note {
        font-size: 0.86rem;
    }
}
