#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    contain: strict;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
    animation: fall linear forwards;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes fall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--drift, 0px), 100vh, 0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        display: none;
    }
}
