.game-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.game-modal-content {
    background: #0a0025;
    border-radius: 16px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-modal-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

.game-modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.game-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.game-modal-body {
    padding: 0;
}

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

@media (max-width: 768px) {
    .game-modal {
        padding: 10px;
    }

    .game-modal-body iframe {
        height: 50vh;
    }
}
