/* Основные стили модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Затемненный фон */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

/* Контейнер модального окна */
.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1d24 0%, #0f1014 100%);
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 212, 191, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Тело модального окна */
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Логотип Steam */
.steam-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #0f1014;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3);
}

/* Заголовок */
.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

/* Текст */
.modal-text {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* Кнопка Steam */
.steam-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.steam-button:hover {
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
    transform: translateY(-2px);
}

.steam-button:active {
    transform: translateY(0);
}

/* Демо-кнопка для открытия модального окна */
.demo-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    color: #0f1014;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-button:hover {
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 640px) {
    .modal-content {
        padding: 36px 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text {
        font-size: 15px;
    }

    .steam-button {
        width: 100%;
        justify-content: center;
    }
}