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

.game-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 11, 28, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.game-modal__box {
    position: relative;
    z-index: 1;
    width: min(100%, 1024px);
    height: min(90vh, 720px);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--c-bg-elev);
    border-bottom: 1px solid var(--c-border);
}

.game-modal__title {
    margin: 0;
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.game-modal__close {
    background: transparent;
    border: 0;
    color: var(--c-text);
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.game-modal__close:hover { background: rgba(255, 255, 255, 0.08); }

.game-modal__body {
    flex: 1 1 auto;
    background: #000;
    position: relative;
}

.game-modal__body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.game-modal__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    background: var(--c-bg-card);
}
.game-modal__fallback-text {
    color: var(--c-muted);
    margin: 0;
    font-size: 14px;
    max-width: 360px;
}

@media (max-width: 600px) {
    .game-modal { padding: 12px; }
    .game-modal__box { height: 80vh; }
}
