
#pc-christmas-snow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none !important;
    z-index: 9999;
    user-select: none;
}

.pc-snowflake {
    position: absolute;
    top: -15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 3px rgba(90,110,135,.35);
    pointer-events: none;
    animation: pc-snow-fall var(--duration)
        linear var(--delay) infinite;
}

@keyframes pc-snow-fall {
    0% {
        transform: translate3d(0,-20px,0);
    }
    50% {
        transform: translate3d(
            var(--drift),50vh,0
        );
    }
    100% {
        transform: translate3d(
            0,calc(100vh + 30px),0
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    #pc-christmas-snow {
        display: none !important;
    }
}




/* PURECAR-CHRISTMAS-TREE */

/* Improved Christmas artwork placement */

@media (min-width: 1200px) {
    .hero-section-desktop
    .desktop-hero-section-text::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            url('/images/purecar-christmas.webp?v=17');
        background-position: right bottom;
        background-size: auto 88%;
        background-repeat: no-repeat;
        pointer-events: none;
        border-radius: inherit;
        z-index: 0;
    }

    .hero-section-desktop
    .desktop-hero-section-innerbox {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 1199px) {
    .hero-section-mobile {
        position: relative;
    }

    .hero-section-mobile::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 65px;
        background-image:
            url('/images/purecar-christmas.webp?v=17');
        background-position: right bottom;
        background-size: auto 65px;
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: 0;
    }
}

/* Natural snowfall depth */

.pc-snowflake {
    box-shadow: none;
    filter: blur(var(--snow-blur, 0px));
    background: radial-gradient(
        circle,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.85) 45%,
        rgba(255,255,255,0) 80%
    );
}


/* PURECAR CHRISTMAS TREE REFINEMENT */

@media (min-width: 1200px) {

    .hero-section-desktop
    .desktop-hero-section-text::before {
        background-position: right -15px bottom;
        background-size: auto 88%;
        image-rendering: auto;
    }
}


/* PURECAR-CHRISTMAS-MOBILE-V2 */

@media (max-width: 1199px) {

    .hero-section-mobile {
        position: relative;
    }

    .hero-section-mobile::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 150px;
        background-image:
            url('/images/purecar-christmas.webp?v=17');
        background-size: auto 150px;
        background-position: right bottom;
        background-repeat: no-repeat;
        pointer-events: none !important;
        border-radius: inherit;
        z-index: 0;
    }

    .pc-snowflake {
        opacity: .85;
    }
}

@media (max-width: 480px) {

    .hero-section-mobile::after {
        height: 125px;
        background-size: auto 125px;
    }
}


/* PURECAR-CHRISTMAS-MOBILE-V3 */

@media (max-width: 1199px) {

    /* Remove incorrect previous placement */

    .hero-section-mobile::after {
        content: none !important;
        display: none !important;
    }

    /* Target the actual car image container */

    .hero-section-mobile > div:first-child {
        position: relative !important;
        isolation: isolate;
        overflow: hidden !important;
    }

    /* Christmas decoration over car background */

    .hero-section-mobile > div:first-child::after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        background-image:
            url('/images/purecar-christmas.webp?v=17');
        background-position: right bottom;
        background-size: auto 92%;
        background-repeat: no-repeat;
        pointer-events: none !important;
        z-index: 20;
    }
}


/* PURECAR-MOBILE-TREE-DISABLED */

@media (max-width: 1199px) {

    .hero-section-mobile::after,
    .hero-section-mobile > div:first-child::after {
        content: none !important;
        display: none !important;
        background-image: none !important;
    }
}




/* PURECAR-DESKTOP-SNOW-EDGE-FIX */

@media (min-width: 1200px) {

    .hero-section-desktop
    .desktop-hero-section-text::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 110px;

        background-image:
            url('/images/purecar-christmas.webp?v=17');

        background-size: 115% auto;
        background-position: left bottom;
        background-repeat: no-repeat;

        pointer-events: none;
        border-radius: inherit;
        z-index: 1;

        -webkit-mask-image: linear-gradient(
            to right,
            black 0%,
            black 22%,
            transparent 43%
        );

        mask-image: linear-gradient(
            to right,
            black 0%,
            black 22%,
            transparent 43%
        );
    }
}
