/* ============================================================
   Holiday banner (v1.1.0). Only loaded while a theme is showing.
   Greeting bar above the header, real-photo decorations, and
   falling items that stay behind the page text. Built by
   holiday.js from window.SWF_HOLIDAY (includes/holiday.php).
   ============================================================ */
@font-face{font-family:'SWF Festive';src:url('dancing-script.woff2') format('woff2');font-weight:400 700;font-display:swap}

body.swf-hol-on{--hol-h:40px;padding-top:var(--hol-h)}
body.swf-hol-on > header{top:var(--hol-h)}

/* ---------- greeting bar ---------- */
.swf-hol-bar{position:fixed;top:0;left:0;right:0;z-index:400;height:var(--hol-h);
  display:flex;align-items:center;justify-content:center;gap:14px;padding:0 16px;
  background:var(--hol-bar);color:var(--hol-ink);font-family:'SWF Festive','Brush Script MT',cursive;
  white-space:nowrap;overflow:hidden;box-shadow:0 1px 0 rgba(0,0,0,.25)}
.swf-hol-bar b{font-size:25px;font-weight:700;line-height:1;overflow:hidden;text-overflow:ellipsis;min-width:0}
.swf-hol-bar span{font-size:21px;font-weight:600;line-height:1;opacity:.88;overflow:hidden;text-overflow:ellipsis;min-width:0}
.swf-hol-bar i{font-style:normal;font-size:19px;opacity:.6}

/* ---------- still decorations ---------- */
.swf-hol-top{position:absolute;left:0;right:0;top:0;height:0;z-index:310;pointer-events:none}
.swf-hol-dec{position:absolute;display:block;max-width:none;height:auto;pointer-events:none;user-select:none;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.45))}
.swf-hol-swing{position:absolute;transform-origin:50% 0;animation:swfHolSwing 5.5s ease-in-out infinite alternate}
.swf-hol-thread{position:absolute;left:0;top:0;width:1.5px;background:linear-gradient(#E9C46A,#B8892E)}
@keyframes swfHolSwing{from{rotate:-3deg}to{rotate:3deg}}

/* items sitting on the scorecard ring */
body.swf-hol-on .ringbox{position:relative}
.swf-hol-ring{position:absolute;inset:0;z-index:3;pointer-events:none}
.swf-hol-ring img{position:absolute;max-width:none;height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.45))}

/* ---------- falling layer: behind the page text ---------- */
/* main is isolated, the layer sits under its content (z -1) and is clipped
   to main, so nothing falls over the footer. The inner viewport-high box
   sticks while scrolling, so the fall looks the same on long pages. */
.swf-hol-host{position:relative;isolation:isolate}
.swf-hol-fall{position:absolute;inset:0;z-index:-1;overflow:clip;pointer-events:none}
.swf-hol-vp{position:sticky;top:0;height:100vh;overflow:hidden}
.swf-hol-vp .it{position:absolute;top:-110px;will-change:transform;animation:swfHolFall linear infinite}
.swf-hol-vp .it img{display:block;width:100%;height:auto;max-width:none;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35));
  animation:swfHolSway ease-in-out infinite alternate}
.swf-hol-vp .it.up{animation-direction:reverse}
.swf-hol-vp .it.fly{top:auto;left:-160px;animation-name:swfHolFly}
.swf-hol-vp .it.fly img{animation-name:swfHolBob}
.swf-hol-vp i{position:absolute;top:-20px;display:block;border-radius:50%;will-change:transform;animation:swfHolFall linear infinite}
.swf-hol-vp i.spark{border-radius:0;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.swf-hol-vp i.confetti{border-radius:2px}
@keyframes swfHolFall{from{transform:translate3d(0,0,0) rotate(0)}to{transform:translate3d(0,var(--hol-drop,110vh),0) rotate(var(--r,0deg))}}
@keyframes swfHolSway{from{transform:translateX(-14px) rotate(-14deg)}to{transform:translateX(14px) rotate(12deg)}}
@keyframes swfHolFly{from{transform:translate3d(0,0,0)}to{transform:translate3d(var(--hol-cross,110vw),-40px,0)}}
@keyframes swfHolBob{from{transform:translateY(-10px) rotate(-4deg)}to{transform:translateY(10px) rotate(4deg)}}

/* ---------- admin preview chip ---------- */
.swf-hol-chip{position:fixed;left:max(14px,env(safe-area-inset-left,0px));bottom:max(14px,env(safe-area-inset-bottom,0px));z-index:401;
  background:#15111C;color:#F3F0F7;border:1px solid #2C2438;border-radius:100px;padding:9px 16px;
  font:500 13px/1.2 'Instrument Sans',system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.swf-hol-chip a{color:#FBD24E;margin-left:8px;font-weight:600}

/* ---------- phones ---------- */
@media (max-width:760px){
  body.swf-hol-on{--hol-h:34px}
  .swf-hol-bar{gap:0}
  .swf-hol-bar b{font-size:19px}
  .swf-hol-bar i,.swf-hol-bar span{display:none}
  .swf-hol-swing{display:none}
}

/* ---------- less motion ---------- */
@media (prefers-reduced-motion:reduce){
  .swf-hol-fall{display:none}
  .swf-hol-swing{animation:none}
}
@media print{.swf-hol-bar,.swf-hol-top,.swf-hol-ring,.swf-hol-fall,.swf-hol-chip{display:none!important}body.swf-hol-on{padding-top:0}}
