/* TrustStore performance polish — keep the atmosphere, cap continuous motion. */

/* The home hero used 50 independent falling petals. Four slow accents preserve
   the depth on desktop; mobile keeps only the animated gradient. */
body.page-main .hero-petals .hero-petal {
    display: none !important;
    animation: none !important;
    will-change: auto !important;
}
body.page-main .hero-petals .hero-petal:nth-child(1) {
    display: block !important;
    animation: heroSnowfall 16s linear 0s infinite !important;
    will-change: transform, opacity !important;
}
body.page-main .hero-petals .hero-petal:nth-child(13) {
    display: block !important;
    animation: heroSnowfall 20s linear -10s infinite !important;
    will-change: transform, opacity !important;
}

/* The status dot lives inside a closed, transparent chat window. Do not keep
   its compositor animation alive until the user opens the widget. */
body.page-main .chat-widget-window:not(.active) .chat-status-dot {
    animation: none !important;
}

@media (max-width: 768px) {
    body.page-main .hero-petals.hero-snowflakes,
    body.page-main .hero-petals.hero-snowflakes .hero-petal {
        display: none !important;
        animation: none !important;
        will-change: auto !important;
    }

    /* Reserve the floating chat button's corner instead of covering the proof. */
    body.page-main .games-portal__proof {
        box-sizing: border-box;
        min-height: 48px;
        margin-right: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-main .hero-petals.hero-snowflakes,
    body.page-main .hero-petals .hero-petal {
        display: none !important;
        animation: none !important;
    }
}
