/* Chuva exibida somente quando o tema de água está ativo. */

.rain-effect {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 450ms ease;
}

body[data-starter-theme="water"] .rain-effect {
    opacity: 1;
}

.rain {
    position: absolute;
    inset: 0;
}

.rain.back-row {
    opacity: 0.45;
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 15px;
    height: 120px;
    animation: drop var(--rain-duration) linear infinite;
}

.stem {
    width: 1px;
    height: 60%;
    margin-left: 7px;
    background: linear-gradient(to bottom, transparent, rgba(210, 240, 255, 0.55));
    animation: stem var(--rain-duration) linear infinite;
}

.splat {
    width: 15px;
    height: 10px;
    border-top: 2px dotted rgba(210, 240, 255, 0.7);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation: splat var(--rain-duration) linear infinite;
}

@keyframes drop {
    0% { transform: translateY(0); }
    75%, 100% { transform: translateY(110vh); }
}

@keyframes stem {
    0%, 65% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes splat {
    0%, 80% { opacity: 0; transform: scale(0); }
    90% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
    .rain-effect {
        display: none;
    }
}
