.soc-game-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.soc-game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 4, 32, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.soc-game-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #1a0b35;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.soc-game-modal__head {
    background: linear-gradient(90deg, #4A1782, #6F22A6);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.soc-game-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.soc-game-modal__close {
    background: rgba(255,255,255,0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.soc-game-modal__close:hover {
    background: rgba(255,255,255,0.22);
}

.soc-game-modal__body {
    flex: 1;
    background: #000;
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: calc(90vh - 64px);
}

.soc-game-modal__body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

body.soc-no-scroll {
    overflow: hidden;
}

@media (max-width: 600px) {
    .soc-game-modal {
        padding: 12px;
    }
    .soc-game-modal__body {
        aspect-ratio: 9 / 16;
    }
    .soc-game-modal__title {
        font-size: 15px;
    }
}
