/* Seasonal themes (js/theme.js). Each theme swaps the colour tokens of style.css, so every section follows. */
html[data-theme=halloween]{
  --peach:#FFB066;--peach-soft:#F3E6FA;--cream:#FFF8F0;--paper:#F6EEF8;--shiba:#FF9A3C;--crem2:#FDE9D2;--blush:#C8A2EE;--blush-soft:#EFE3FA;
  --tongue:#E8661C;--pill:#FF9A3C;--ring:#6B4A8A;--brown:#3B2347;--line:#E9DCEF;--hand:#7D46B3;--top:rgba(255,176,102,.9)}
html[data-theme=christmas]{
  --peach:#F6C9C4;--peach-soft:#E4F1E6;--cream:#FFFCF7;--paper:#F4F1EA;--shiba:#F2C14E;--crem2:#F8EBC6;--blush:#F4A6A6;--blush-soft:#FBE7E5;
  --tongue:#C8382F;--pill:#F2C14E;--ring:#2F6B4A;--brown:#1E4632;--line:#E3EBDD;--hand:#C8382F;--top:rgba(246,201,196,.92)}
html[data-theme=easter]{
  --peach:#CDEBD8;--peach-soft:#FFF3C8;--cream:#FFFDF6;--paper:#F7F3FB;--shiba:#FFD86B;--crem2:#FCEFC4;--blush:#F9C6DA;--blush-soft:#FCE8F1;
  --tongue:#E58BB3;--pill:#FFD166;--ring:#7A5BB0;--brown:#4E3A72;--line:#ECE4F3;--hand:#B0569A;--top:rgba(205,235,216,.92)}
html[data-theme] .top{background:var(--top)}
html[data-theme] .hand{color:var(--hand)}
html[data-theme] .card:hover{box-shadow:0 0 0 2.5px var(--brown),0 10px 0 -2px rgba(0,0,0,.12)}

/* bunting or twinkle lights hanging from the header */
.th-garland{position:absolute;left:0;right:0;top:100%;height:30px;pointer-events:none}
.th-garland svg{display:block;width:100%;height:30px}
.th-bulb{animation:th-twinkle 1.8s ease-in-out infinite}
@keyframes th-twinkle{50%{opacity:.45}}
.th-spider{position:absolute;right:clamp(18px,9vw,140px);top:0;width:34px;transform-origin:50% 0;animation:th-bob 4.5s ease-in-out infinite}
.th-spider i{display:block;width:2px;height:46px;margin:0 auto;background:#2A1834}
.th-spider svg{display:block;width:34px;margin-top:-6px}
@keyframes th-bob{0%,100%{transform:translateY(-14px) rotate(-4deg)}50%{transform:translateY(6px) rotate(4deg)}}

/* greeting strip under the header */
.th-ribbon{margin:0;padding:30px 16px 10px;background:var(--peach);color:var(--brown);text-align:center;font:600 clamp(1rem,.95rem + .3vw,1.18rem)/1.3 "Fredoka",sans-serif;display:flex;justify-content:center;align-items:center;gap:.6em}
.th-ribbon span{display:inline-block;width:1.6em;flex:none}
.th-ribbon svg{display:block;width:100%}

/* things falling, floating and flying over the page; never in the way of a tap */
.th-fx{position:fixed;inset:0;z-index:15;pointer-events:none;overflow:hidden}
.th-p{position:absolute;display:block;opacity:.88;will-change:transform}
.th-p i{display:block}
.th-p svg{display:block;width:100%}
.th-fall{top:-60px;animation:th-fall linear infinite}
.th-fall i{animation:th-sway ease-in-out infinite alternate}
@keyframes th-fall{to{transform:translateY(calc(100vh + 120px)) rotate(var(--spin))}}
@keyframes th-sway{from{transform:translateX(calc(var(--sway) * -1))}to{transform:translateX(var(--sway))}}
.th-rise{bottom:-60px;animation:th-rise linear infinite}
.th-rise i{animation:th-sway ease-in-out infinite alternate}
@keyframes th-rise{0%{transform:translateY(0);opacity:0}10%{opacity:.8}85%{opacity:.8}100%{transform:translateY(calc(-100vh - 120px));opacity:0}}
.th-fly{left:-80px;animation:th-fly linear infinite}
.th-fly i{animation:th-flap .32s ease-in-out infinite alternate!important}
@keyframes th-fly{0%{transform:translate(0,0)}25%{transform:translate(calc(25vw + 20px),-40px)}50%{transform:translate(calc(50vw + 40px),20px)}75%{transform:translate(calc(75vw + 60px),-30px)}100%{transform:translate(calc(100vw + 160px),0)}}
@keyframes th-flap{from{transform:scaleY(1)}to{transform:scaleY(.55)}}
@media (prefers-reduced-motion:reduce){.th-bulb,.th-spider{animation:none}}
