.game-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.game-modal[hidden] { display: none; }

.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 30, 0.85);
    backdrop-filter: blur(4px);
}

.game-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 10;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.game-modal__title-bar {
    background: var(--color-bg-2);
    padding: 12px 20px;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.game-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
}

.game-modal__close:hover { transform: scale(1.1); }

.game-modal__frame {
    flex: 1;
    background: #000;
}

.game-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 720px) {
    .game-modal { padding: 0; }
    .game-modal__dialog {
        aspect-ratio: auto;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
