.wrs-game-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wrs-game-modal[hidden] { display: none; }

.wrs-game-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wrs-game-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: min(80vh, 720px);
    background: var(--wrs-surface);
    border: 1px solid var(--wrs-green);
    border-radius: var(--wrs-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

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

.wrs-game-modal-title {
    font-family: 'Bungee', sans-serif;
    font-size: 18px;
    color: var(--wrs-green);
    text-transform: uppercase;
    margin: 0;
}

.wrs-game-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    background: rgba(255,255,255,0.08);
    transition: background .15s, color .15s;
}

.wrs-game-modal-close:hover { background: var(--wrs-green); color: var(--wrs-near-black); }

.wrs-game-modal-body {
    flex: 1;
    background: #000;
    position: relative;
}

#wrsGameModalFrame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 700px) {
    .wrs-game-modal { padding: 0; }
    .wrs-game-modal-dialog { height: 100vh; max-height: 100vh; border-radius: 0; max-width: 100%; }
}
