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

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

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

.game-modal-wrap {
    position: relative;
    z-index: 1;
    width: 92vw;
    height: 90vh;
    max-width: 1200px;
    background: #0d1c33;
    border: 1px solid #35f0ec;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.game-modal-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.game-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

#game-modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .game-modal-wrap {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
}
