/* Seasonal touches. Loaded only while FESTIVE is true in build.mjs. Flat shapes, brand colours, transform/opacity only, never catches clicks. */
html.festive .fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; contain: paint; }
html.festive .fx i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: 0; }
/* glint: a slim four-point star that slowly fades in and out */
html.festive .fx .st { background: var(--c, #fff); clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); animation: fx-tw var(--d) ease-in-out var(--o) infinite; }
@keyframes fx-tw { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: var(--a, .8); transform: scale(1); } }
/* fine snow: small round flakes falling very slowly */
html.festive .fx .sn { border-radius: 50%; background: #fff; top: -3%; animation: fx-sn var(--d) linear var(--o) infinite; }
@keyframes fx-sn { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 10% { opacity: var(--a, .5); } 88% { opacity: var(--a, .5); } 100% { opacity: 0; transform: translate3d(var(--w, 24px), 105vh, 0); } }
html.festive .fx.off i { animation-play-state: paused; }
/* button: one pass of light across the sky buttons on hover (flat bar, no gradient) */
html.festive .btn-sky { position: relative; overflow: hidden; }
html.festive .btn-sky::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 22%; background: rgba(255, 255, 255, .5); transform: skewX(-20deg); opacity: 0; pointer-events: none; }
@media (hover: hover) { html.festive .btn-sky:hover::after { animation: fx-sweep .8s var(--ease) 1; } }
@keyframes fx-sweep { 0% { opacity: 1; transform: skewX(-20deg) translateX(0); } 100% { opacity: 1; transform: skewX(-20deg) translateX(900%); } }
/* footer greeting */
html.festive .fx-note { margin-top: 24px; font-size: 16px; color: var(--sky-2); display: flex; align-items: center; gap: 12px; }
html.festive .fx-note::before { content: ""; width: 14px; height: 14px; background: var(--sky); flex: none; clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); }
/* reduced motion: a few still glints, no snow, no sweep */
@media (prefers-reduced-motion: reduce) {
  html.festive .fx .sn { display: none; }
  html.festive .fx .st { animation: none; opacity: .5; transform: none; }
  html.festive .btn-sky::after { display: none; }
}
