﻿/* Заставка при загрузке: короткая, без тяжёлых фильтров. */

.intro {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #0d2745 0%, #04070d 70%);
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
    -webkit-user-select: none;
    user-select: none;
}

.intro.is-leaving {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
}

.intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
}

.intro-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    color: #04121f;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 44px rgba(var(--accent-rgb), 0.35);
    animation: intro-logo 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.intro-title {
    display: flex;
    font-size: clamp(30px, 9vw, 54px);
    font-weight: 300;
    letter-spacing: 0.04em;
}

.intro-title span {
    opacity: 0;
    transform: translateY(14px);
    animation: intro-letter 0.45s ease forwards;
}

.intro-title span:nth-child(1) { animation-delay: 0.10s; }
.intro-title span:nth-child(2) { animation-delay: 0.16s; }
.intro-title span:nth-child(3) { animation-delay: 0.22s; }
.intro-title span:nth-child(4) { animation-delay: 0.28s; }
.intro-title span:nth-child(5) { animation-delay: 0.34s; }
.intro-title span:nth-child(6) { animation-delay: 0.40s; }
.intro-title span:nth-child(7) { animation-delay: 0.46s; }
.intro-title span:nth-child(8) { animation-delay: 0.52s; }
.intro-title span:nth-child(9) { animation-delay: 0.58s; }

.intro-author {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-2);
    opacity: 0;
    animation: intro-fade 0.6s ease 0.85s forwards;
}

.intro-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    opacity: 0;
    animation: intro-fade 0.6s ease 1.1s forwards;
}

@keyframes intro-logo {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes intro-letter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes intro-fade {
    to {
        opacity: 1;
    }
}
