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

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

.game-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.game-modal-content {
    position: relative;
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    background: #1a0a2e;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #fce046;
}

.game-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #fce046;
    color: #500d6b;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.game-modal-close:hover {
    background: #fff;
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .game-modal-content {
        width: 95vw;
        height: 70vh;
        border-radius: 12px;
    }
}
