/* Thanksgiving theme v2 "Harvest Ember" (owner 11/21, look 1). Only active while thanksgiving.js has put .thanksgiving on <body>
   (Nov 23-30 Central, ?thanksgiving=1 forces it). thanksgiving.js also rewrites every purple in the site's style sheets to ember
   orange / copper; this file only adds what that can't: the hero grade, the title, and the falling leaves. Prefix thx-. */
body.thanksgiving { background-color: #0b0603; }

/* every page's banner art (owner 11/21 "themed per page"): warm graded + an ember glow, like the home hero */
body.thanksgiving .home-hero-img { filter: sepia(.35) saturate(1.25) hue-rotate(-12deg) brightness(1.02); }
body.thanksgiving :is(.kf-hero-img, .lb-hero-img, .ff-hero-img, .ac-hero-art img, .mg-hero-art img, .cs-hero-banner) { filter: sepia(.45) saturate(1.3) hue-rotate(-16deg) brightness(1.02); }
.thx-hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; border-radius: inherit;
    background: radial-gradient(ellipse at 70% 35%, rgba(255,92,26,.55), transparent 60%), linear-gradient(180deg, rgba(255,138,31,.25), rgba(70,26,6,.5)); }
body.thanksgiving .home-h-purple { background: linear-gradient(95deg, #c2410c 0%, #ff8a1f 22%, #ffe0b0 48%, #ff9a2f 68%, #c2410c 88%, #ff8a1f 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(255,92,26,.35)); }

/* maple leaves drifting down the page (behind dialogs, never clickable) */
.thx-leaves { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.thx-leaves i { position: absolute; top: -50px; opacity: var(--o); animation: thxFall var(--t) linear infinite; animation-delay: var(--d); will-change: transform; }
@keyframes thxFall {
    0% { transform: translate(0, 0) rotate(var(--r)); }
    25% { transform: translate(calc(var(--x) * .5), 27vh) rotate(calc(var(--r) + 90deg)); }
    50% { transform: translate(var(--x), 54vh) rotate(calc(var(--r) + 180deg)); }
    75% { transform: translate(calc(var(--x) * .4), 81vh) rotate(calc(var(--r) + 270deg)); }
    100% { transform: translate(calc(var(--x) * .8), calc(100vh + 80px)) rotate(calc(var(--r) + 360deg)); }
}
@media (prefers-reduced-motion: reduce) { .thx-leaves i { animation: none; } }
