.rf-game-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.rf-game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 16, 0.85);
    backdrop-filter: blur(4px);
}

.rf-game-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: min(80vh, 720px);
    background: #060a15;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rf-game-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--rf-border);
}

.rf-game-modal__title {
    font-family: var(--rf-font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 16px;
    color: #ffffff;
}

.rf-game-modal__close {
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    padding: 0 8px;
    border-radius: 6px;
    transition: background .2s ease;
}

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

.rf-game-modal__frame-wrap {
    flex: 1;
    background: #000;
}

.rf-game-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 640px) {
    .rf-game-modal {
        padding: 0;
    }
    .rf-game-modal__dialog {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
}
