/* Модальное окно для игр */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content {
    background: var(--card-bg);
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    background: var(--anthracite);
    color: var(--ivory);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image {
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.modal-description {
    line-height: 1.7;
    color: var(--medium-gray);
}

.modal-description p {
    margin-bottom: 1.5rem;
}

.modal-features {
    margin: 2rem 0;
}

.modal-features h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--anthracite);
}

.modal-features ul {
    padding-left: 1.5rem;
}

.modal-features li {
    margin-bottom: 0.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}