/* Christmas FX: every class is prefixed with xmfx- so it never touches the theme.
   No CSS filters on anything that moves: they were the one thing that cost frames. */
:root{--xmfx-op:.55;--xmfx-fr:.5;--xmfx-deep:#4c0711;--xmfx-bg:#8d0f1f;--xmfx-bg-2:#b5192c;--xmfx-a:#ffe39a;--xmfx-b:#d9a336;--xmfx-on:#4a0a0c;--xmfx-glow:255,214,120;
  --xmfx-title:Georgia,"Palatino Linotype",Palatino,"Noto Serif","Times New Roman",serif;
  --xmfx-text:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
:root[data-xmfx-look="green"]{--xmfx-deep:#04251a;--xmfx-bg:#0c4a31;--xmfx-bg-2:#146b47;--xmfx-on:#0b2f20}
:root[data-xmfx-look="blue"]{--xmfx-deep:#07203d;--xmfx-bg:#123f70;--xmfx-bg-2:#1d5f9f;--xmfx-a:#f4faff;--xmfx-b:#a9cbe8;--xmfx-on:#0b2a4a;--xmfx-glow:190,224,255}

.xmfx-layer{position:fixed;inset:0;pointer-events:none!important;z-index:99990;overflow:hidden}
.xmfx-layer *{pointer-events:none!important}
.xmfx-png{opacity:var(--xmfx-op);transition:opacity .35s}
.xmfx-png.xmfx-near{opacity:.18}
.xmfx-png.xmfx-gone{opacity:0}
.xmfx-layer img{max-width:100%;height:auto;display:block;border:0;box-shadow:none}
.xmfx-layer svg{display:block;width:100%;height:auto;overflow:visible}
.xmfx-tw{animation:xmfx-twinkle 2.4s ease-in-out infinite}
@keyframes xmfx-twinkle{0%,100%{opacity:1}50%{opacity:.5}}

/* ---------- Banner ---------- */
.xmfx-banner{position:relative;z-index:99995;overflow:hidden;color:#fff;font-family:var(--xmfx-text);line-height:1.3;background:linear-gradient(90deg,var(--xmfx-deep),var(--xmfx-bg) 20%,var(--xmfx-bg-2) 50%,var(--xmfx-bg) 80%,var(--xmfx-deep));border-bottom:1px solid rgba(var(--xmfx-glow),.5)}
.xmfx-banner::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.14) 50%,transparent 58%);animation:xmfx-shine 7s infinite}
@keyframes xmfx-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
/* The lights stay inside the banner's own height, so they never hang over the site's menu. */
.xmfx-lights{position:absolute;left:0;right:0;top:0;height:18px;pointer-events:none}
.xmfx-lights::before,.xmfx-lights::after{content:"";position:absolute;inset:0;background-repeat:repeat-x;background-position:center top;background-size:144px 18px;animation:xmfx-twinkle 1.9s ease-in-out infinite}
.xmfx-lights::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 18'%3E%3Cpath d='M0 1Q36 11 72 1Q108 11 144 1' fill='none' stroke='%23062a1a' stroke-width='1.3'/%3E%3Cg fill='%23ffd75e'%3E%3Ccircle cx='12' cy='9' r='6.5' opacity='.28'/%3E%3Cellipse cx='12' cy='9' rx='2.5' ry='3.7'/%3E%3C/g%3E%3Cg fill='%235be38f'%3E%3Ccircle cx='60' cy='9' r='6.5' opacity='.28'/%3E%3Cellipse cx='60' cy='9' rx='2.5' ry='3.7'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='108' cy='11' r='6.5' opacity='.28'/%3E%3Cellipse cx='108' cy='11' rx='2.5' ry='3.7'/%3E%3C/g%3E%3C/svg%3E")}
.xmfx-lights::after{animation-delay:-.95s;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 18'%3E%3Cg fill='%236cc6ff'%3E%3Ccircle cx='36' cy='11' r='6.5' opacity='.28'/%3E%3Cellipse cx='36' cy='11' rx='2.5' ry='3.7'/%3E%3C/g%3E%3Cg fill='%23ff8a5c'%3E%3Ccircle cx='84' cy='9' r='6.5' opacity='.28'/%3E%3Cellipse cx='84' cy='9' rx='2.5' ry='3.7'/%3E%3C/g%3E%3Cg fill='%23ffd75e'%3E%3Ccircle cx='132' cy='9' r='6.5' opacity='.28'/%3E%3Cellipse cx='132' cy='9' rx='2.5' ry='3.7'/%3E%3C/g%3E%3C/svg%3E")}
.xmfx-b-in{position:relative;z-index:1;max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:center;gap:10px 22px;padding:10px 48px;flex-wrap:wrap}
.xmfx-lit .xmfx-b-in{padding-top:21px}
.xmfx-b-title{font-family:var(--xmfx-title);font-weight:700;font-size:25px;letter-spacing:.3px;line-height:1.1;color:var(--xmfx-a);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.xmfx-b-text{font-size:14px;opacity:.95}
.xmfx-banner .xmfx-code{all:unset;box-sizing:border-box;border:1px dashed rgba(var(--xmfx-glow),.9);border-radius:6px;padding:4px 10px;font:700 13px/1.4 var(--xmfx-text);letter-spacing:1px;color:var(--xmfx-a);cursor:pointer;background:rgba(0,0,0,.18)}
.xmfx-banner .xmfx-code:focus-visible,.xmfx-banner .xmfx-x:focus-visible{outline:2px solid var(--xmfx-a);outline-offset:2px}
.xmfx-banner .xmfx-code.xmfx-copied{background:var(--xmfx-a);color:var(--xmfx-on)}
.xmfx-count{display:flex;gap:6px;font-variant-numeric:tabular-nums}
.xmfx-count span{background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:3px 7px;font-size:13px;font-weight:700;min-width:38px;text-align:center;line-height:1.2;color:#fff}
.xmfx-count small{display:block;font-size:9px;font-weight:400;opacity:.8;text-transform:uppercase}
.xmfx-banner .xmfx-cta{background:linear-gradient(180deg,var(--xmfx-a),var(--xmfx-b));color:var(--xmfx-on)!important;text-decoration:none!important;font-weight:800;font-size:13px;padding:9px 18px;border-radius:999px;white-space:nowrap}
.xmfx-banner .xmfx-x{all:unset;position:absolute;right:12px;top:50%;transform:translateY(-50%);z-index:2;color:#fff;font-size:22px;line-height:1;cursor:pointer;opacity:.75;padding:4px}
.xmfx-banner .xmfx-x:hover{opacity:1}

/* ---------- Frost, glow and snow on the ground ---------- */
.xmfx-frost{position:absolute;inset:0;background:radial-gradient(ellipse 85% 80% at 50% 45%,transparent 56%,rgba(140,194,235,calc(.75 * var(--xmfx-fr))) 100%)}
.xmfx-glow{position:absolute;left:0;right:0;bottom:0;height:150px;background:radial-gradient(ellipse 60% 100% at 50% 100%,rgba(255,190,90,.22),transparent 70%);animation:xmfx-breathe 6s ease-in-out infinite}
@keyframes xmfx-breathe{0%,100%{opacity:.65}50%{opacity:1}}
.xmfx-ground{position:absolute;left:0;right:0;bottom:0;height:38px}
.xmfx-layer .xmfx-ground svg{height:100%}

/* ---------- Snow: every flake has its own speed, sway and spin ---------- */
.xmfx-flake{position:absolute;top:-30px;width:var(--s);height:var(--s);color:#7fbbe8;will-change:transform;animation:xmfx-fall var(--t) linear var(--d) infinite}
.xmfx-flake b,.xmfx-flake i{display:block;width:100%;height:100%}
.xmfx-flake b{animation:xmfx-drift var(--w) ease-in-out infinite alternate}
.xmfx-flake i{animation:xmfx-spin var(--f) linear infinite}
.xmfx-dot i{border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#dcedfa 50%,#9ccaec);box-shadow:0 0 4px rgba(110,170,220,.5);animation:none}
@keyframes xmfx-fall{to{transform:translateY(112vh)}}
@keyframes xmfx-drift{from{transform:translateX(calc(-1 * var(--x)))}to{transform:translateX(var(--x))}}
@keyframes xmfx-spin{to{transform:rotate(360deg)}}

/* ---------- Parachute gifts: appear below the header, land at the bottom, stay at the sides ---------- */
.xmfx-chute{position:absolute;top:0;left:var(--x);width:var(--s);opacity:0;animation:xmfx-drop var(--t) linear var(--d) infinite;will-change:transform}
.xmfx-chute svg{transform-origin:50% 8%;animation:xmfx-sway 4.6s ease-in-out infinite}
@keyframes xmfx-drop{0%{transform:translate(0,17vh);opacity:0}9%{opacity:1}88%{opacity:1}100%{transform:translate(var(--sway),92vh);opacity:0}}
@keyframes xmfx-sway{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}

/* ---------- Santa ---------- */
.xmfx-santa{position:absolute;left:0;top:var(--y);width:var(--w);animation:xmfx-fly-r var(--t) linear forwards;will-change:transform}
.xmfx-santa.xmfx-rev{animation-name:xmfx-fly-l}
.xmfx-santa > div{animation:xmfx-glide 5s ease-in-out infinite}
.xmfx-rev svg{transform:scaleX(-1)}
@keyframes xmfx-fly-r{from{transform:translateX(calc(-1 * var(--w) - 30px))}to{transform:translateX(calc(100vw + 30px))}}
@keyframes xmfx-fly-l{from{transform:translateX(calc(100vw + 30px))}to{transform:translateX(calc(-1 * var(--w) - 30px))}}
@keyframes xmfx-glide{0%,100%{transform:translateY(12px) rotate(1.5deg)}50%{transform:translateY(-12px) rotate(-1.5deg)}}
.xmfx-deer{animation:xmfx-bound .62s ease-in-out infinite alternate}
.xmfx-leg-a,.xmfx-leg-b{animation:xmfx-gallop .62s ease-in-out infinite alternate}
.xmfx-leg-b{animation-direction:alternate-reverse}
@keyframes xmfx-bound{from{transform:translateY(2px)}to{transform:translateY(-3px)}}
@keyframes xmfx-gallop{from{transform:rotate(-7deg)}to{transform:rotate(8deg)}}

/* ---------- Price tag (position driven by JS) ---------- */
.xmfx-tag{position:absolute;left:0;top:0;width:var(--s);will-change:transform}
.xmfx-tag svg{transform-origin:20% 18%;animation:xmfx-swing 2.6s ease-in-out infinite}
@keyframes xmfx-swing{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(10deg)}}

/* ---------- Corners ---------- */
.xmfx-corner{position:absolute;bottom:4px;transition:opacity .35s,bottom .5s}
.xmfx-corner.xmfx-l{left:10px;width:112px;transform-origin:50% 100%;animation:xmfx-lean 5s ease-in-out infinite}
.xmfx-corner.xmfx-r{right:10px;width:122px;animation:xmfx-bob 4.4s ease-in-out infinite}
@keyframes xmfx-lean{0%,100%{transform:rotate(-.8deg)}50%{transform:rotate(.8deg)}}
@keyframes xmfx-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.xmfx-lite .xmfx-corner,.xmfx-lite .xmfx-ground{display:none}

/* ---------- Side tab: stays after the popup is closed, reopens it ---------- */
button.xmfx-side{all:unset;box-sizing:border-box;position:fixed;right:0;top:46%;z-index:99994;writing-mode:vertical-rl;transform:rotate(180deg) translateY(50%);background:linear-gradient(180deg,var(--xmfx-bg-2),var(--xmfx-bg));color:var(--xmfx-a);border:1px solid rgba(var(--xmfx-glow),.75);border-left:0;border-radius:0 10px 10px 0;padding:16px 9px;cursor:pointer;font:800 13px/1.2 var(--xmfx-text);letter-spacing:1px;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.25)}
button.xmfx-side:focus-visible{outline:2px solid var(--xmfx-b);outline-offset:2px}

/* ---------- Cursor trail ---------- */
.xmfx-spark{position:absolute;font:12px/1 var(--xmfx-text);color:#6fb3e6;animation:xmfx-spark .9s ease-out forwards}
.xmfx-spark.xmfx-gold{color:#e2b13c}
@keyframes xmfx-spark{to{transform:translateY(26px) scale(.25) rotate(120deg);opacity:0}}

/* ---------- Popup ---------- */
.xmfx-popup{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:46px 16px 16px;background:rgba(8,12,18,.66);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;transition:opacity .3s;overflow-y:auto;font-family:var(--xmfx-text);line-height:1.3}
.xmfx-popup.xmfx-open{opacity:1}
.xmfx-card{position:relative;box-sizing:border-box;width:100%;max-width:430px;margin:auto;text-align:center;color:#fff;border-radius:20px;padding:50px 28px 22px;border:1px solid rgba(var(--xmfx-glow),.6);box-shadow:0 30px 80px rgba(0,0,0,.55);transform:translateY(16px) scale(.95);transition:transform .35s cubic-bezier(.2,1.3,.4,1);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' opacity='.11'%3E%3Cpath d='M30 18v24M19.6 24l20.8 12M19.6 36l20.8-12M27 20.5l3 3 3-3M27 39.5l3-3 3 3'/%3E%3Cpath d='M92 74v20M83.3 79l17.4 10M83.3 89l17.4-10'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.1'%3E%3Ccircle cx='78' cy='26' r='2'/%3E%3Ccircle cx='24' cy='82' r='2.5'/%3E%3Ccircle cx='62' cy='58' r='1.5'/%3E%3Ccircle cx='106' cy='46' r='1.5'/%3E%3Ccircle cx='54' cy='108' r='2'/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(circle at 50% 0,rgba(var(--xmfx-glow),.28),transparent 55%),linear-gradient(168deg,var(--xmfx-bg-2),var(--xmfx-bg) 48%,var(--xmfx-deep))}
.xmfx-popup.xmfx-open .xmfx-card{transform:none}
.xmfx-card p{color:inherit}
.xmfx-cap{position:absolute;left:-2px;right:-2px;top:-11px;height:44px;pointer-events:none}
.xmfx-cap svg{position:absolute;display:block;overflow:visible}
.xmfx-cap .xmfx-snowcap{left:0;top:0;width:100%;height:100%;filter:drop-shadow(0 2px 2px rgba(30,10,20,.25))}
.xmfx-cap .xmfx-hat{left:-24px;top:-46px;width:104px;height:auto;transform:rotate(-19deg);filter:drop-shadow(0 5px 6px rgba(0,0,0,.3))}
.xmfx-popup .xmfx-pop-x{all:unset;box-sizing:border-box;position:absolute;top:24px;right:12px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;color:#fff;background:rgba(0,0,0,.42);cursor:pointer;transition:.2s}
.xmfx-popup .xmfx-pop-x:hover{background:rgba(0,0,0,.65);transform:rotate(90deg)}
.xmfx-popup .xmfx-pop-x:focus-visible,.xmfx-popup .xmfx-later:focus-visible{outline:2px solid var(--xmfx-a);outline-offset:2px}
.xmfx-card .xmfx-kicker{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--xmfx-a);margin:0 40px 8px;padding:0;text-wrap:balance}
.xmfx-card .xmfx-pop-title{font-family:var(--xmfx-title);font-weight:700;font-size:42px;line-height:1.08;margin:0;padding:0;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.35);overflow-wrap:break-word;text-wrap:balance}
.xmfx-card .xmfx-pop-off{margin:12px 0 2px;padding:0 0 4px;font-size:68px;font-weight:800;line-height:1;letter-spacing:-2px;background:linear-gradient(180deg,#fff 15%,var(--xmfx-a) 60%,var(--xmfx-b));-webkit-background-clip:text;background-clip:text;color:transparent}
.xmfx-card .xmfx-pop-off span{font-size:30px;letter-spacing:0}
.xmfx-card .xmfx-pop-text{font-size:15px;opacity:.94;margin:8px auto 14px;padding:0;max-width:320px;line-height:1.4}
.xmfx-box{display:flex;align-items:center;gap:8px;border:2px dashed rgba(var(--xmfx-glow),.85);border-radius:12px;padding:6px 6px 6px 16px;background:rgba(0,0,0,.2)}
.xmfx-pop-code{flex:1;min-width:0;text-align:left;font:800 20px/1.2 ui-monospace,Consolas,monospace;letter-spacing:2px;color:var(--xmfx-a);overflow-wrap:anywhere}
.xmfx-popup .xmfx-copy{all:unset;box-sizing:border-box;cursor:pointer;background:var(--xmfx-a);color:var(--xmfx-on);font:700 14px/1.2 var(--xmfx-text);padding:11px 16px;border-radius:8px;white-space:nowrap}
.xmfx-popup .xmfx-copy.xmfx-copied{background:#2fbf71;color:#fff}
.xmfx-popup .xmfx-copy:focus-visible{outline:2px solid #fff;outline-offset:2px}
.xmfx-card .xmfx-ends{margin:15px 0 6px;padding:0;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;opacity:.85}
.xmfx-popup .xmfx-count{justify-content:center}
.xmfx-popup .xmfx-pop-cta{display:block;box-sizing:border-box;width:100%;margin-top:17px;background:linear-gradient(180deg,var(--xmfx-a),var(--xmfx-b));color:var(--xmfx-on)!important;text-decoration:none!important;font:800 16px/1.2 var(--xmfx-text);padding:14px;border-radius:999px;text-align:center}
.xmfx-popup .xmfx-later{all:unset;display:inline-block;color:#fff;cursor:pointer;margin-top:11px;font:400 13px/1.3 var(--xmfx-text);opacity:.8;text-decoration:underline}

@media(max-width:800px){
  .xmfx-b-title{font-size:20px}.xmfx-banner .xmfx-count{display:none}.xmfx-b-in{padding:9px 40px 9px 14px;gap:8px 12px}.xmfx-lit .xmfx-b-in{padding-top:20px}
  .xmfx-corner.xmfx-l,.xmfx-corner.xmfx-r{width:74px}
  .xmfx-card{padding:46px 18px 18px}.xmfx-card .xmfx-kicker{font-size:11px;letter-spacing:1.2px}.xmfx-card .xmfx-pop-title{font-size:34px}.xmfx-card .xmfx-pop-off{font-size:56px}
  .xmfx-cap .xmfx-hat{left:-12px;top:-40px;width:88px}
  button.xmfx-side{padding:12px 7px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){
  .xmfx-layer *,.xmfx-banner::after,.xmfx-lights::before,.xmfx-lights::after{animation:none!important}
  .xmfx-flake,.xmfx-tag,.xmfx-chute{display:none}
}
