.pol-game-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.pol-game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.pol-game-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    background: #0F1825;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--pol-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.pol-game-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--pol-bg-alt);
}

.pol-game-modal__title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.pol-game-modal__close {
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pol-game-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pol-game-modal__body {
    flex: 1;
    background: #000;
    min-height: 60vh;
}

.pol-game-modal__body iframe {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .pol-game-modal {
        padding: 0;
    }
    .pol-game-modal__dialog {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    .pol-game-modal__body,
    .pol-game-modal__body iframe {
        min-height: calc(100vh - 64px);
    }
}
