/* ── SCROLL PARTICLES ── */

#scroll-particles-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.scroll-particle {
    position: absolute;
    bottom: -60px;
    font-size: 42px;
    opacity: 0;
    will-change: transform, opacity;
    animation: floatUp var(--duration, 2.2s) ease-out forwards;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.6) rotate(var(--rot-start, 0deg));
    }
    15% {
        opacity: 1;
        transform: translateY(-40px) scale(1) rotate(var(--rot-start, 0deg));
    }
    70% {
        opacity: 0.85;
        transform: translateY(var(--rise, -260px)) scale(1.05) rotate(var(--rot-end, 10deg));
    }
    100% {
        opacity: 0;
        transform: translateY(var(--rise-end, -400px)) scale(0.8) rotate(var(--rot-end, 10deg));
    }
}

/* Glowing ring variant */
.scroll-particle.ring {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(21, 21, 31, 0.947);
    font-size: 0;
}

.scroll-particle.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(3, 3, 12, 0.946);
    font-size: 0;
}

/* Burst pulse when a new wave spawns */
.scroll-particle.pulse-in {
    animation: floatUpPulse var(--duration, 2.2s) ease-out forwards;
}

@keyframes floatUpPulse {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.3) rotate(var(--rot-start, 0deg));
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1.3) rotate(var(--rot-start, 0deg));
    }
    25% {
        transform: translateY(-70px) scale(0.95) rotate(calc(var(--rot-start, 0deg) + 5deg));
    }
    75% {
        opacity: 0.7;
        transform: translateY(var(--rise, -280px)) scale(1) rotate(var(--rot-end, 12deg));
    }
    100% {
        opacity: 0;
        transform: translateY(var(--rise-end, -420px)) scale(0.7) rotate(var(--rot-end, 12deg));
    }
}