.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

.modal-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: #151e26;
    /* глубокий тёмно-сизый, как у BUFF */
    max-width: 460px;
    width: 100%;
    padding: 40px 36px 44px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Логотип (BUFF) */
.modal-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.modal-logo svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #f5c842 0%, #f0b31b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(245, 200, 66, 0.2);
    margin-left: 4px;
}

.logo-sub {
    font-size: 14px;
    font-weight: 400;
    color: #8a9aa8;
    letter-spacing: 2px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 10px 2px 8px;
    border-radius: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Заголовок + текст */
.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #f0f3f7;
    margin-top: 6px;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.modal-sub {
    font-size: 16px;
    color: #9aabb9;
    line-height: 1.6;
    margin-bottom: 34px;
    padding: 0 8px;
    font-weight: 400;
}

.modal-sub span {
    color: #d4e0ea;
    font-weight: 500;
}

/* Кнопка «Войти через Steam» */
.btn-steam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 16px 0;
    background: #1b2838;
    /* классический фон Steam */
    border: none;
    border-radius: 60px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 0 #0f1a24, 0 8px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-steam i {
    font-size: 28px;
    color: #7ba3c9;
    transition: color 0.2s;
}

.btn-steam:hover {
    background: #1f3347;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #0f1a24, 0 12px 28px rgba(0, 0, 0, 0.7);
}

.btn-steam:hover i {
    color: #aad0f5;
}

.btn-steam:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0f1a24;
}

/* дополнительная мелкая информация */
.modal-footer-note {
    margin-top: 24px;
    font-size: 13px;
    color: #637a8c;
    letter-spacing: 0.3px;
}

.modal-footer-note a {
    color: #9bb7d4;
    text-decoration: none;
    border-bottom: 1px dashed rgba(155, 183, 212, 0.3);
}

.modal-footer-note a:hover {
    color: #d4e6ff;
    border-bottom: 1px solid #9bb7d4;
}

/* Стилизация подпорки — чтобы окно выглядело как часть сайта BUFF */
.decor-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f5c842, #d99c1a);
    margin: 10px auto 18px;
    border-radius: 4px;
    opacity: 0.6;
}

/* Адаптив */
@media (max-width: 480px) {
    .modal-card {
        padding: 32px 20px 32px;
        border-radius: 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .btn-steam {
        font-size: 18px;
        padding: 14px 0;
        gap: 12px;
    }

    .logo-text {
        font-size: 28px;
    }

    .modal-logo svg {
        width: 40px;
        height: 40px;
    }
}

.modal-close {
    position: absolute;
    right: 26px;
    top: 26px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.modal-card {
    position: relative;
}