.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.game-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.game-modal__wrapper {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

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

.game-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 18px;
    transition: background 0.3s;
}

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

.game-modal__body {
    flex: 1;
}

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