/* Seasonal touches. Everything is scoped to html[data-season="..."] (set by /seasons/seasons.js),
   so the base theme is untouched outside a season. Shared pieces first, then one block per season. */

/* Shared: top banner + fixed decoration layer */
.season-banner{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;justify-content:center;padding:9px 16px;font:700 13px/1.4 "Helvetica Neue",Arial,sans-serif;letter-spacing:.5px;text-align:center;background:var(--season-banner-bg,#222426);color:var(--season-banner-tx,#ececec)}
.season-banner a{color:inherit;font-weight:900;text-transform:uppercase;letter-spacing:1px;border-bottom:2px solid currentColor}
.season-decor{position:fixed;inset:0;pointer-events:none;z-index:0}
.season-decor:before,.season-decor:after{content:"";position:absolute}
[data-season] .wrap{position:relative;z-index:1}
@media print{.season-banner,.season-decor{display:none}}

/* ---------- Halloween ---------- */
[data-season="halloween"]{--season:#ff7a00;--season-banner-bg:linear-gradient(90deg,#24103d,#120a1c 50%,#24103d);--season-banner-tx:#ff9a3d}
[data-season="halloween"] .season-banner{border-bottom:2px solid #ff7a00;box-shadow:0 0 18px rgba(255,122,0,.25)}
[data-season="halloween"] body{background:radial-gradient(ellipse 80% 50% at 100% 0,rgba(84,38,140,.22),transparent 70%),var(--bg)}
/* Spider web in the top-left corner */
[data-season="halloween"] .season-decor:before{top:0;left:0;width:190px;height:190px;opacity:.13;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Cpath d='M0 0L200 0M0 0L190 80M0 0L140 140M0 0L80 190M0 0L0 200'/%3E%3Cpath d='M40 0Q36 15 38 16Q30 26 28 28Q20 31 16 38Q14 40 0 40'/%3E%3Cpath d='M90 0Q82 30 84 36Q70 58 64 64Q44 72 36 84Q28 86 0 90'/%3E%3Cpath d='M145 0Q132 46 133 58Q112 90 100 100Q72 112 58 132Q46 134 0 145'/%3E%3Cpath d='M195 0Q180 62 180 78Q150 124 136 136Q100 152 78 180Q60 184 0 195'/%3E%3C/svg%3E") 0 0/contain no-repeat}
/* A few bats flitting near the top-right */
[data-season="halloween"] .season-decor:after{top:70px;right:4vw;width:220px;height:130px;opacity:.5;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 130'%3E%3Cdefs%3E%3Cpath id='b' d='M0,-12 C6,-30 18,-30 22,-14 C34,-40 62,-40 84,-24 C70,-10 66,8 58,20 C50,6 38,6 30,16 C22,6 10,10 0,28 C-10,10 -22,6 -30,16 C-38,6 -50,6 -58,20 C-66,8 -70,-10 -84,-24 C-62,-40 -34,-40 -22,-14 C-18,-30 -6,-30 0,-12Z'/%3E%3C/defs%3E%3Cg fill='%237a5a9e'%3E%3Cuse href='%23b' transform='translate(60 40) scale(.42) rotate(-8)'/%3E%3Cuse href='%23b' transform='translate(160 30) scale(.28) rotate(10)'/%3E%3Cuse href='%23b' transform='translate(125 95) scale(.22) rotate(-14)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;animation:hk-bats 7s ease-in-out infinite}
@keyframes hk-bats{0%,100%{transform:translate(0,0)}25%{transform:translate(-14px,-8px)}50%{transform:translate(6px,6px)}75%{transform:translate(-6px,10px)}}
@media (max-width:640px){[data-season="halloween"] .season-decor:before{width:120px;height:120px}[data-season="halloween"] .season-decor:after{top:auto;bottom:24px;right:8px;width:150px;height:90px;opacity:.35}}
/* Accents: keep the red theme, add a glowing pumpkin-orange edge */
[data-season="halloween"] .hex{box-shadow:none;filter:drop-shadow(0 0 8px rgba(255,122,0,.55))}
[data-season="halloween"] .hero{border-bottom-color:transparent;border-image:linear-gradient(90deg,var(--red),#ff7a00 60%,#7a3fc0) 1}
[data-season="halloween"] h1 span{text-shadow:0 0 18px rgba(255,122,0,.45)}
[data-season="halloween"] .c{box-shadow:inset 0 -1px 0 rgba(255,122,0,.18)}
[data-season="halloween"] .btn:not(.o):hover,[data-season="halloween"] .btn:not(.o):focus-visible{box-shadow:0 0 0 2px #ff7a00,0 0 16px rgba(255,122,0,.55)}
[data-season="halloween"] footer:after{content:"\1F383  Happy Halloween from the H&K crew";display:block;margin-top:10px;color:#ff9a3d;font-weight:700}
@media (prefers-reduced-motion:reduce){[data-season="halloween"] .season-decor:after{animation:none}}

/* ---------- Thanksgiving ---------- */
[data-season="thanksgiving"]{--season:#e8772e;--season-banner-bg:linear-gradient(90deg,#4a1f10,#2a140a 50%,#4a1f10);--season-banner-tx:#f6d79a}
[data-season="thanksgiving"] .season-banner{border-bottom:2px solid #e8772e;box-shadow:0 0 18px rgba(232,119,46,.22)}
[data-season="thanksgiving"] body{background:radial-gradient(ellipse 80% 50% at 100% 0,rgba(176,74,28,.2),transparent 70%),radial-gradient(ellipse 60% 40% at 0 100%,rgba(242,179,61,.08),transparent 70%),var(--bg)}
/* Wheat stalks in the top-left corner */
[data-season="thanksgiving"] .season-decor:before{top:0;left:0;width:170px;height:200px;opacity:.16;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 200' fill='%23f2b33d'%3E%3Cdefs%3E%3Cg id='w'%3E%3Cpath d='M0 0V-150' stroke='%23f2b33d' stroke-width='3'/%3E%3Cg id='k'%3E%3Cellipse cx='-8' cy='-100' rx='5' ry='11' transform='rotate(-30 -8 -100)'/%3E%3Cellipse cx='8' cy='-100' rx='5' ry='11' transform='rotate(30 8 -100)'/%3E%3C/g%3E%3Cuse href='%23k' y='-14'/%3E%3Cuse href='%23k' y='-28'/%3E%3Cuse href='%23k' y='-42'/%3E%3Cellipse cy='-158' rx='5' ry='11'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23w' transform='translate(40 210) rotate(28)'/%3E%3Cuse href='%23w' transform='translate(60 210) rotate(14)'/%3E%3Cuse href='%23w' transform='translate(84 210) rotate(2)'/%3E%3C/svg%3E") 0 0/contain no-repeat}
/* Autumn leaves drifting near the top-right */
[data-season="thanksgiving"] .season-decor:after{top:70px;right:4vw;width:220px;height:150px;opacity:.55;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 150'%3E%3Cdefs%3E%3Cpath id='l' d='M0-50L8-30L20-36L16-12L36-22L32-10L48-6L34 6L40 16L18 14L20 30L4 20L3 46H-3L-4 20L-20 30L-18 14L-40 16L-34 6L-48-6L-32-10L-36-22L-16-12L-20-36L-8-30Z'/%3E%3C/defs%3E%3Cuse href='%23l' fill='%23e8772e' transform='translate(60 50) scale(.7) rotate(-18)'/%3E%3Cuse href='%23l' fill='%23b8352b' transform='translate(165 40) scale(.5) rotate(24)'/%3E%3Cuse href='%23l' fill='%23f2b33d' transform='translate(125 115) scale(.42) rotate(-40)'/%3E%3C/svg%3E") center/contain no-repeat;animation:hk-leaves 9s ease-in-out infinite}
@keyframes hk-leaves{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(-12px,8px) rotate(-3deg)}50%{transform:translate(6px,14px) rotate(2deg)}75%{transform:translate(-4px,4px) rotate(-1deg)}}
@media (max-width:640px){[data-season="thanksgiving"] .season-decor:before{width:110px;height:130px}[data-season="thanksgiving"] .season-decor:after{top:auto;bottom:24px;right:8px;width:150px;height:100px;opacity:.35}}
/* Accents: keep the red theme, add a warm harvest-gold glow */
[data-season="thanksgiving"] .hex{box-shadow:none;filter:drop-shadow(0 0 8px rgba(232,119,46,.5))}
[data-season="thanksgiving"] .hero{border-bottom-color:transparent;border-image:linear-gradient(90deg,var(--red),#e8772e 55%,#f2b33d) 1}
[data-season="thanksgiving"] h1 span{text-shadow:0 0 18px rgba(232,119,46,.4)}
[data-season="thanksgiving"] .c{box-shadow:inset 0 -1px 0 rgba(242,179,61,.18)}
[data-season="thanksgiving"] .btn:not(.o):hover,[data-season="thanksgiving"] .btn:not(.o):focus-visible{box-shadow:0 0 0 2px #e8772e,0 0 16px rgba(232,119,46,.5)}
[data-season="thanksgiving"] footer:after{content:"\1F342  Happy Thanksgiving from the H&K crew. We're thankful for you!";display:block;margin-top:10px;color:#f6b26b;font-weight:700}
@media (prefers-reduced-motion:reduce){[data-season="thanksgiving"] .season-decor:after{animation:none}}
