.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.game-modal.is-active {
    display: flex;
}

.game-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.game-modal__content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1100px;
    height: 80vh;
    background-color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #111;
    border-bottom: 1px solid #333;
}

.game-modal__title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-white);
}

.game-modal__close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: color 0.3s ease;
}

.game-modal__close:hover {
    color: var(--color-accent);
}

.game-modal__body {
    flex: 1;
    position: relative;
}

.game-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-modal__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
    padding: 40px;
    text-align: center;
}

.game-modal__fallback p {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--color-white-60);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .game-modal__content {
        width: 95%;
        height: 70vh;
    }
}
