/* Opt-in storefront overlay. The hidden attribute keeps the undecorated fallback out of the layout. */
@media screen and (prefers-reduced-motion: no-preference) {
    .pg-season-fall[hidden] {
        --fall-distance: calc(100vh + 26px);
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 102;
        overflow: hidden;
        contain: strict;
        pointer-events: none;
        user-select: none;
    }
    @supports (height: 100dvh) {
        .pg-season-fall[hidden] { --fall-distance: calc(100dvh + 26px); }
    }
    .pg-season-fall--ramadan     { --primary: #b08149; --secondary: #c89a52; }
    .pg-season-fall--eid-feter   { --primary: #55866b; --secondary: #bb8d45; }
    .pg-season-fall--eid-adha    { --primary: #b1873f; --secondary: #5d877a; }
    .pg-season-fall--christmas   { --primary: #be5654; --secondary: #508365; }
    .pg-season-fall--new-year    { --primary: #a58443; --secondary: #6b85b5; }
    .pg-season-fall--black-friday{ --primary: #596268; --secondary: #e2772f; }
    .pg-season-fall--winter-sale { --primary: #568eae; --secondary: #7baebf; }
    .pg-season-fall--valentine   { --primary: #b95b77; --secondary: #d48592; }
    .pg-season-fall--twjihi      { --primary: #46746b; --secondary: #b99249; }

    .pg-season-fall > i {
        position: absolute;
        top: -21px;
        left: var(--lane);
        display: block;
        width: var(--size, 16px);
        height: var(--size, 16px);
        color: var(--primary);
        opacity: 0;
        pointer-events: none;
        animation: pg-fall-to-edge var(--time) linear var(--delay) infinite;
    }
    .pg-season-fall > i:nth-child(even) { color: var(--secondary); }
    .pg-season-fall > i:nth-child(1) { --lane: 6%;  --wind: 13px;  --time: 10s;   --delay: -.4s;  --turn: 22deg; }
    .pg-season-fall > i:nth-child(2) { --lane: 79%; --wind: -17px; --time: 12.3s; --delay: -7.6s; --turn: -32deg; --size: 14px; }
    .pg-season-fall > i:nth-child(3) { --lane: 35%; --wind: 16px;  --time: 11s;   --delay: -3.7s; --turn: 29deg; }
    .pg-season-fall > i:nth-child(4) { --lane: 93%; --wind: -13px; --time: 10.8s; --delay: -2.1s; --turn: -21deg; --size: 13px; }
    .pg-season-fall > i:nth-child(5) { --lane: 55%; --wind: -12px; --time: 12s;   --delay: -9.6s; --turn: -19deg; }
    .pg-season-fall > i:nth-child(6) { --lane: 20%; --wind: 15px;  --time: 11.8s; --delay: -5.6s; --turn: 28deg; --size: 13px; }
    .pg-season-fall > i:nth-child(7) { --lane: 67%; --wind: -13px; --time: 12.7s; --delay: -2.9s; --turn: 24deg; }
    .pg-season-fall > i:nth-child(8) { --lane: 46%; --wind: 12px;  --time: 10.6s; --delay: -8.4s; --turn: -24deg; --size: 14px; }
    .pg-season-fall svg { display: block; width: 100%; height: 100%; pointer-events: none; }
    @keyframes pg-fall-to-edge {
        from { opacity: .65; transform: translate3d(0, 0, 0) rotate(0); }
        40%  { opacity: .46; }
        77%  { opacity: .22; }
        to   { opacity: 0; transform: translate3d(var(--wind), var(--fall-distance), 0) rotate(var(--turn)); }
    }
    @media (max-width: 600px) {
        .pg-season-fall > i:nth-child(n+6) { display: none; animation: none; }
    }
}
