.game-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.game-modal.is-open { display: flex; }
.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,8,20,.85);
    backdrop-filter: blur(4px);
}
.game-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: 90vh;
    background: #0E1530;
    border: 1px solid rgba(139,233,253,.12);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.game-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(139,233,253,.08);
}
.game-modal__title {
    font-weight: 700;
    color: #FFFFFF;
}
.game-modal__close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
}
.game-modal__body {
    flex: 1;
    background: #000;
    min-height: 60vh;
}
.game-modal__iframe {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: 0;
    display: block;
}

body.qr-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .game-modal { padding: 0; }
    .game-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .game-modal__body { min-height: calc(100vh - 54px); }
    .game-modal__iframe { min-height: calc(100vh - 54px); }
}
