/* ══════════════════════════════════════════════════════════════════
   SPLASH
══════════════════════════════════════════════════════════════════ */
#splash {
    position: fixed;
    inset: 0;
    background: var(--body-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#splash.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Тёмная тема: логотип сплеша светлый */
[data-theme="dark"] .splash-logo {
    background: linear-gradient(135deg, #ffffff 0%, #a0e4e4 50%, #2c9696 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .splash-sub { color: #7dbfbf; }

.splash-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat var(--pd, 3s) var(--pp, 0s) ease-in-out infinite alternate;
}

@keyframes particleFloat {
    from { transform: translateY(0)     scale(1);   opacity: var(--po, 0.3); }
    to   { transform: translateY(-20px) scale(1.2); opacity: calc(var(--po, 0.3) * 0.4); }
}

.splash-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(44, 150, 150, 0.25);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%   { transform: scale(0.8); opacity: 0.6; }
    50%  { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

.splash-logo {
    font-family: 'Syne', sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #1a3a3a 0%, #1d6a6a 50%, #162630 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    animation: splashLogo 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.splash-sub {
    font-size: 11px;
    color: #2a5060;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 500;
    animation: splashSub 0.7s ease 0.6s both;
}

.splash-line {
    position: relative;
    width: 60px;
    height: 1px;
    margin: 18px auto 0;
    overflow: hidden;
    background: rgba(44, 150, 150, 0.25);
    border-radius: 1px;
}

.splash-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: lineSweep 1.2s ease 0.5s both;
}

@keyframes splashLogo {
    0%   { opacity: 0; transform: translateY(30px) scale(0.9); filter: blur(8px); }
    60%  { filter: blur(0); }
    100% { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0); }
}

@keyframes splashSub {
    from { opacity: 0; letter-spacing: 10px; }
    to   { opacity: 1; letter-spacing: 5px;  }
}

@keyframes lineSweep {
    from { left: -100%; }
    to   { left: 100%;  }
}

/* ── STARS BG — только в тёмной теме ── */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none;
}

[data-theme="dark"] .stars { display: block; }

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--d, 3s) var(--delay, 0s) ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.1; }
    to   { opacity: 0.5; }
}
