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

.game-modal.is-open {
    display: flex;
}

.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 16, 0.85);
    backdrop-filter: blur(4px);
}

.game-modal__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #10171b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.game-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #182232;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.game-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.game-modal__close {
    color: #d4d8ea;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.game-modal__close:hover {
    background: #131a36;
}

.game-modal__body {
    flex: 1;
    background: #000;
    min-height: 480px;
}

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

@media (max-width: 768px) {
    .game-modal {
        padding: 0;
    }
    .game-modal__inner {
        max-width: none;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    .game-modal__body,
    .game-modal__body iframe {
        min-height: 320px;
    }
}
