.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.game-modal.active {
    display: block;
}

.game-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.game-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 85vh;
    background: var(--color-primary-dark);
    border-radius: 16px;
    overflow: hidden;
}

.game-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background 0.3s ease;
}

.game-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.game-modal__close svg {
    width: 24px;
    height: 24px;
}

.game-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1023px) {
    .game-modal__content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}
