/* Seasonal touches: background animation layer, garland and promo banner. Works on top of every site design. */
.season-fx{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden;opacity:.85}
.season-garland{position:relative;z-index:2}
html.fx-off .season-fx,html.fx-off .season-garland{display:none}
html.fx-paused .sp,html.fx-paused .sp i{animation-play-state:paused}

.sp{position:absolute;top:0;left:0;line-height:1;will-change:transform,opacity;animation-timing-function:linear;animation-iteration-count:infinite}
.sp i{display:block;font-style:normal;animation:s-sway 3.2s ease-in-out infinite alternate}
.sp.txt i{font-weight:800;font-family:ui-monospace,Menlo,Consolas,monospace;text-shadow:0 0 6px currentColor}
.sp.fall{animation-name:s-fall}
.sp.rise{animation-name:s-rise}
.sp.fly{animation-name:s-fly}.sp.fly i{animation:s-bob 1.6s ease-in-out infinite alternate}
.sp.twinkle{animation-name:s-twinkle;animation-timing-function:ease-in-out}.sp.twinkle i{animation:none}
@keyframes s-fall{from{transform:translate3d(var(--x),-8vh,0) rotate(0)}to{transform:translate3d(calc(var(--x) + var(--dx)),108vh,0) rotate(var(--rot))}}
@keyframes s-rise{from{transform:translate3d(var(--x),108vh,0)}to{transform:translate3d(calc(var(--x) + var(--dx)),-12vh,0)}}
@keyframes s-fly{from{transform:translate3d(-12vw,var(--y),0)}50%{transform:translate3d(50vw,calc(var(--y) + var(--dy)),0)}to{transform:translate3d(112vw,var(--y),0)}}
@keyframes s-twinkle{0%,100%{opacity:0;transform:translate3d(var(--x),var(--y),0) scale(.6)}50%{opacity:var(--o);transform:translate3d(var(--x),var(--y),0) scale(1)}}
@keyframes s-sway{from{transform:translateX(-14px)}to{transform:translateX(14px)}}
@keyframes s-bob{from{transform:translateY(-10px)}to{transform:translateY(10px)}}

/* Garland under the header */
.season-garland{height:26px;padding-top:3px;overflow:hidden;white-space:nowrap;display:flex;justify-content:space-around;align-items:flex-start;background:transparent;margin-bottom:-6px;pointer-events:none}
.season-garland span{display:inline-block;font-size:15px;transform-origin:50% 0;animation:g-swing 2.6s ease-in-out infinite alternate}
html[data-season=christmas] .season-garland span{animation:g-blink 1.4s steps(2) infinite;filter:drop-shadow(0 0 4px currentColor)}
html[data-season=diwali] .season-garland span,html[data-season=ramadan] .season-garland span,html[data-season=hanukkah] .season-garland span{animation:g-glow 2.2s ease-in-out infinite alternate}
.season-garland.bunting{height:22px;justify-content:flex-start}
.season-garland.bunting span{width:26px;height:18px;flex:none;clip-path:polygon(0 0,100% 0,50% 100%);font-size:0;margin-right:2px}
.season-garland.bunting span:nth-child(3n+1){background:#c8102e}.season-garland.bunting span:nth-child(3n+2){background:#fff;box-shadow:inset 0 0 0 1px #ddd}.season-garland.bunting span:nth-child(3n){background:#012169}
@keyframes g-swing{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
@keyframes g-blink{50%{opacity:.35}}
@keyframes g-glow{from{filter:drop-shadow(0 0 0 #ffd54f)}to{filter:drop-shadow(0 0 6px #ffd54f)}}

/* Promo banner */
.season-banner{background:linear-gradient(90deg,var(--s1),var(--s2),var(--s1));background-size:200% 100%;animation:b-shimmer 9s linear infinite;color:#fff;font-weight:700;text-align:center}
.season-banner .wrap{display:flex;align-items:center;justify-content:center;gap:14px;padding-top:9px;padding-bottom:9px}
.season-banner a{color:#fff;text-shadow:0 1px 2px #0006}.season-banner a:hover{color:#fff;text-decoration:underline}
.season-toggle{background:#ffffff26;border:1px solid #ffffff55;color:#fff;border-radius:999px;font:600 .72rem var(--font);padding:3px 10px;cursor:pointer;flex:none}
html.fx-off .season-toggle{opacity:.6;text-decoration:line-through}
@keyframes b-shimmer{to{background-position:200% 0}}
html[data-season=black-friday] .season-banner{color:#facc15;background:#000;animation:none;letter-spacing:.5px}
html[data-season=black-friday] .season-banner a{color:#facc15}
html[data-season=cyber-monday] .season-banner a{text-shadow:0 0 8px #00e5ff}

/* Small seasonal accents on the hero */
html[data-season] .hero{position:relative}
html[data-season] .hero::after{position:absolute;right:22px;bottom:14px;font-size:2.4rem;opacity:.9;pointer-events:none}
html[data-season=halloween] .hero::after{content:"🎃"}html[data-season=christmas] .hero::after{content:"🎄"}html[data-season=black-friday] .hero::after{content:"🏷️"}
html[data-season=cyber-monday] .hero::after{content:"⚡"}html[data-season=bank-holiday] .hero::after{content:"☀️"}html[data-season=ramadan] .hero::after{content:"🌙"}
html[data-season=eid] .hero::after{content:"🌙"}html[data-season=hanukkah] .hero::after{content:"🕎"}html[data-season=rosh-hashanah] .hero::after{content:"🍎"}
html[data-season=diwali] .hero::after{content:"🪔"}html[data-season=easter] .hero::after{content:"🐣"}html[data-season=valentines] .hero::after{content:"💘"}
html[data-season=lunar-new-year] .hero::after{content:"🏮"}html[data-season=new-year] .hero::after{content:"🎆"}html[data-season=mothers-day] .hero::after{content:"💐"}
html[data-season=st-patricks] .hero::after{content:"☘️"}html[data-season=summer-sale] .hero::after{content:"🏖️"}html[data-season=back-to-school] .hero::after{content:"🎒"}

@media (prefers-reduced-motion:reduce){.season-fx{display:none}.season-garland span,.season-banner{animation:none!important}}
@media print{.season-fx,.season-garland,.season-banner{display:none}}
