.tod-game-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

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

.tod-game-modal__dialog {
    position: relative;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.tod-game-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
}

.tod-game-modal__title {
    margin: 0;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
}

.tod-game-modal__close {
    color: var(--color-white);
    font-size: 26px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

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

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

.tod-game-modal__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    min-height: 60vh;
}

@media (max-width: 640px) {
    .tod-game-modal {
        padding: 0;
    }

    .tod-game-modal__dialog {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
    }
}
