.game-modal-overlay {
    display: none;
    z-index: 1000;
    background-color: rgba(9, 0, 36, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
}

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

.game-modal {
    background-color: #18064d;
    border: 3px solid #a8ff00;
    border-radius: 24px;
    width: 90%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #220c60;
    flex-shrink: 0;
}

.game-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.game-modal-close {
    width: 40px;
    height: 40px;
    background-color: #a8ff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #1e1d26;
    border: none;
    transition: opacity 0.3s;
}

.game-modal-close:hover {
    opacity: 0.85;
}

.game-modal-body {
    flex: 1;
}

.game-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .game-modal {
        width: 100%;
        height: 90vh;
        border-radius: 16px;
    }

    .game-modal-header {
        padding: 12px 16px;
    }

    .game-modal-header h3 {
        font-size: 16px;
    }
}
