/* Snowfall Effect - Cyberpunk Style */
.snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -30px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.6),
        0 0 8px rgba(0, 240, 255, 0.25);
    user-select: none;
    animation: snowfall var(--fall-duration, 12s) linear infinite;
    animation-delay: var(--fall-delay, 0s);
    opacity: var(--snow-opacity, 0.9);
    filter: blur(var(--snow-blur, 0px));
}

/* Cyberpunk glow variants */
.snowflake.glow-cyan {
    text-shadow:
        0 0 4px rgba(0, 240, 255, 0.7),
        0 0 12px rgba(0, 240, 255, 0.4);
    color: rgba(200, 255, 255, 0.9);
}

.snowflake.glow-pink {
    text-shadow:
        0 0 4px rgba(255, 42, 109, 0.6),
        0 0 10px rgba(255, 42, 109, 0.3);
    color: rgba(255, 220, 230, 0.85);
}

.snowflake.glow-gold {
    text-shadow:
        0 0 4px rgba(252, 238, 10, 0.6),
        0 0 10px rgba(252, 238, 10, 0.3);
    color: rgba(255, 250, 200, 0.85);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(var(--sway-start, 0vw)) rotate(0deg);
        opacity: var(--snow-opacity, 0.9);
    }
    25% {
        transform: translateY(25vh) translateX(var(--sway-mid1, 1vw)) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(var(--sway-mid2, -1vw)) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(var(--sway-mid3, 0.5vw)) rotate(270deg);
    }
    100% {
        transform: translateY(105vh) translateX(var(--sway-end, 0vw)) rotate(360deg);
        opacity: 0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        display: none;
    }
}

/* Mobile: fewer snowflakes, simpler animation */
@media (max-width: 768px) {
    .snowflake {
        font-size: calc(var(--snow-size, 16px) * 0.8) !important;
    }
}
