/* ==========================================================================
   Trikon Christmas 2026 – "Neon Glass Christmas" decoration layer
   Decoration + animation only. Every element is injected by
   assets/js/christmas-2026.js, absolutely positioned and pointer-events:none,
   so the page layout, content and links are untouched.
   ========================================================================== */

:root {
    --hx-red: #ff3b55;
    --hx-red-deep: #b80f2a;
    --hx-green: #2fd27a;
    --hx-pine: #0f8a4f;
    --hx-gold: #ffd36b;
    --hx-snow: #ffffff;
    --hx-teal: #19b5d1;
}

.hx-layer, .hx-layer * {
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* keep hero content above the decoration */
.hx-on #bannerdiv > .contain { position: relative; z-index: 3; }

/* ---------- 1. Festive aurora glow ------------------------------------ */
.hx-aurora {
    position: absolute;
    inset: -20% -10%;
    z-index: 0;
    mix-blend-mode: screen;
    opacity: .7;
    overflow: hidden;
}
.hx-aurora__band {
    position: absolute;
    width: 70%;
    height: 55%;
    border-radius: 50%;
    will-change: transform;
}
.hx-aurora__band--1 {
    left: -5%; top: 5%;
    background: radial-gradient(closest-side, rgba(47, 210, 122, .5), rgba(47, 210, 122, 0) 70%);
    animation: hxAurora1 14s ease-in-out infinite alternate;
}
.hx-aurora__band--2 {
    right: -10%; top: 0;
    background: radial-gradient(closest-side, rgba(255, 59, 85, .42), rgba(255, 59, 85, 0) 70%);
    animation: hxAurora2 17s ease-in-out infinite alternate;
}
.hx-aurora__band--3 {
    left: 25%; top: 35%;
    background: radial-gradient(closest-side, rgba(25, 181, 209, .4), rgba(25, 181, 209, 0) 70%);
    animation: hxAurora3 12s ease-in-out infinite alternate;
}
.hx-aurora__band--4 {
    left: 55%; bottom: 0;
    width: 45%; height: 40%;
    background: radial-gradient(closest-side, rgba(255, 211, 107, .3), rgba(255, 211, 107, 0) 70%);
    animation: hxAurora2 19s ease-in-out infinite alternate-reverse;
}
@keyframes hxAurora1 { from { transform: translate(0, 0) rotate(-8deg) scaleX(1.2); } to { transform: translate(18%, 10%) rotate(6deg) scaleX(1.5); } }
@keyframes hxAurora2 { from { transform: translate(0, 0) rotate(10deg); } to { transform: translate(-22%, 14%) rotate(-6deg) scale(1.15); } }
@keyframes hxAurora3 { from { transform: translate(-10%, 0) scale(1); } to { transform: translate(14%, -12%) scale(1.3); } }

/* ---------- 2. Particle canvas (snow, sparkles, cursor trail, confetti) */
.hx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ---------- 3. Floating glass baubles + mouse parallax ---------------- */
.hx-floater {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    z-index: 2;
    transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
    will-change: transform;
}
.hx-floater__inner {
    width: 100%;
    height: 100%;
    animation: hxPop .9s cubic-bezier(.2, 1.4, .4, 1) both, hxFloat var(--t, 6s) ease-in-out infinite alternate;
    animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s);
}
.hx-floater img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(4, 16, 48, .45)); }
@keyframes hxPop   { from { opacity: 0; transform: scale(.2) rotate(-40deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hxFloat { from { transform: translateY(-10px) rotate(calc(var(--r, 8deg) * -1)); } to { transform: translateY(12px) rotate(var(--r, 8deg)); } }

/* CSS-only glass bauble (used until the 3D assets are uploaded) */
.hx-orb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 6%, rgba(255, 255, 255, 0) 18%),
        radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 35%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 55%, transparent), color-mix(in srgb, var(--c) 80%, #1a0006) 100%);
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow:
        inset 0 -10px 24px rgba(255, 255, 255, .15),
        inset 0 6px 14px rgba(255, 255, 255, .22),
        0 0 30px color-mix(in srgb, var(--c) 55%, transparent),
        0 18px 30px rgba(4, 16, 48, .4);
}
.hx-orb::before {         /* gold cap */
    content: "";
    position: absolute;
    left: 50%;
    top: -9%;
    width: 26%;
    height: 14%;
    transform: translateX(-50%);
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(90deg, #a87a22, #ffe7a3 45%, #c9952f);
    box-shadow: 0 -4px 0 -1px transparent;
}
.hx-orb::after {          /* gold band + moving sheen */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        linear-gradient(transparent 46%, rgba(255, 211, 107, .85) 47% 51%, transparent 52%),
        conic-gradient(from var(--a, 0deg), transparent 0 55%, rgba(255, 255, 255, .4) 62%, transparent 70%);
    animation: hxSheen 5s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hxSheen { to { --a: 360deg; } }

.hx-spark { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .9)); animation: hxTwinkle 2.6s ease-in-out infinite; }
@keyframes hxTwinkle { 0%, 100% { transform: scale(.85) rotate(0deg); opacity: .8; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }

/* ---------- 4. Neon Christmas tree ------------------------------------ */
.hx-tree {
    position: absolute;
    left: 1.5%;
    bottom: 34px;
    width: 170px;
    height: 265px;
    z-index: 2;
}
.hx-tree svg { width: 100%; height: 100%; overflow: visible; }
.hx-tree__line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: hxDraw 2.4s cubic-bezier(.65, 0, .35, 1) .5s forwards;
}
.hx-tree__fill { opacity: 0; animation: hxFade 1s ease 2.4s forwards; }
.hx-tree__garland {
    fill: none;
    stroke-dasharray: 3 7;
    opacity: 0;
    animation: hxFade .8s ease 2.6s forwards, hxMarch 1.2s linear infinite;
}
@keyframes hxMarch { to { stroke-dashoffset: -20; } }
.hx-tree__light {
    opacity: 0;
    animation: hxFade .3s ease forwards, hxBlink 1.8s ease-in-out infinite;
    animation-delay: var(--d), calc(var(--d) + .3s);
}
@keyframes hxBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hx-tree__star {
    transform-origin: 85px 26px;
    opacity: 0;
    animation: hxStarIn .8s cubic-bezier(.2, 1.6, .4, 1) 2.7s forwards, hxStarPulse 2.4s ease-in-out 3.5s infinite;
}
@keyframes hxStarIn    { from { opacity: 0; transform: scale(0) rotate(-180deg); } to { opacity: 1; transform: none; } }
@keyframes hxStarPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(8deg); } }
@keyframes hxFade { to { opacity: 1; } }
@keyframes hxDraw { to { stroke-dashoffset: 0; } }

/* ---------- 5. Red gift ribbon + bow ---------------------------------- */
.hx-ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    z-index: 4;
}
.hx-ribbon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-ribbon__path {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: hxDraw 2.6s cubic-bezier(.65, 0, .35, 1) .4s forwards;
}
.hx-ribbon__glow { filter: blur(7px); opacity: .65; }
.hx-bow {
    position: absolute;
    right: 9%;
    bottom: 26px;
    width: 120px;
    height: 120px;
    transform-origin: 50% 70%;
    animation: hxBowIn .9s cubic-bezier(.2, 1.5, .4, 1) 2.6s both, hxBowWiggle 5s ease-in-out 3.5s infinite;
}
.hx-bow img, .hx-bow svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(4, 16, 48, .45)); }
@keyframes hxBowIn     { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes hxBowWiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-8deg) scale(1.05); } 96% { transform: rotate(6deg); } }

/* ---------- 6. Neon "Merry Christmas" sign ---------------------------- */
.hx-greet {
    position: absolute;
    right: calc(9% + 125px);
    bottom: 64px;
    z-index: 4;
    font-family: "Great Vibes", "Brush Script MT", cursive;
    font-size: 46px;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 0 3px #fff, 0 0 10px var(--hx-red), 0 0 22px var(--hx-red), 0 0 40px var(--hx-red-deep);
    opacity: 0;
    animation: hxNeonOn 1.6s steps(1) 3s forwards, hxNeonHum 6s ease-in-out 5s infinite;
}
@keyframes hxNeonOn {
    0% { opacity: 0; } 10% { opacity: 1; } 18% { opacity: .2; } 26% { opacity: 1; }
    34% { opacity: .3; } 44%, 100% { opacity: 1; }
}
@keyframes hxNeonHum { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } 97% { opacity: .7; } }

/* ---------- 7. Spark orbiting the Trikon logo ------------------------- */
.hx-logo-host { position: relative; display: inline-block; }
.hx-orbit {
    position: absolute;
    right: -3%;
    top: -14%;
    width: 30%;
    aspect-ratio: 1;
    animation: hxOrbit 4.5s linear infinite;
}
.hx-orbit::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 2px #fff, 0 0 14px 5px var(--hx-gold), 0 0 26px 10px rgba(255, 59, 85, .55);
}
@keyframes hxOrbit { to { transform: rotate(360deg); } }

/* ---------- 8. Shine sweep on CTAs and glint on the awards strip ------ */
.hx-shine { position: relative; }
.hx-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%) no-repeat;
    background-size: 300% 100%;
    background-position: 150% 0;
    animation: hxSweep 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hxSweep { 0%, 65% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

.hx-on .topawardsec { position: relative; overflow: hidden; }
.hx-glint {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 59, 85, .12) 48%, rgba(255, 255, 255, .7) 50%, rgba(47, 210, 122, .12) 52%, transparent 60%);
    background-size: 250% 100%;
    background-position: 150% 0;
}
.hx-glint.is-in { animation: hxGlint 1.6s ease-out forwards; }
@keyframes hxGlint { to { background-position: -50% 0; } }

/* ---------- 9. Optional sleigh fly-by (asset only) -------------------- */
/* extra specificity beats the site's ".alhero-banner img { width: 100% }" */
.hx-on img.hx-sleigh, .hx-sleigh {
    position: absolute;
    top: 24%;
    left: 0;
    width: 260px;
    height: auto;
    z-index: 2;
    opacity: 0;
    animation: hxSleigh 24s linear 5s infinite;
}
@keyframes hxSleigh {
    0%   { transform: translate(-300px, 60px) rotate(-6deg); opacity: 0; }
    3%   { opacity: 1; }
    30%  { transform: translate(calc(100vw + 40px), -80px) rotate(-10deg); opacity: 1; }
    31%, 100% { transform: translate(calc(100vw + 40px), -80px); opacity: 0; }
}

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1199px) {
    .hx-tree { width: 120px; height: 187px; left: 1%; }
    .hx-greet { font-size: 38px; }
}
@media (max-width: 834px) {
    .hx-aurora { opacity: .6; }
    .hx-tree { display: none; }
    .hx-ribbon { height: 40px; }
    .hx-bow { width: 64px; height: 64px; right: 6%; bottom: 12px; }
    .hx-greet { right: auto; left: 50%; bottom: 54px; margin-left: -88px; font-size: 30px; }
    .hx-on img.hx-sleigh, .hx-sleigh { width: 150px; top: 16%; }
    .hx-orbit::before { width: 6px; height: 6px; margin-left: -3px; }
}

/* ---------- Accessibility -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hx-layer, .hx-layer *, .hx-orbit, .hx-shine::after, .hx-glint {
        animation: none !important;
    }
    .hx-ribbon__path, .hx-tree__line { stroke-dashoffset: 0; }
    .hx-tree__fill, .hx-tree__garland, .hx-tree__light, .hx-tree__star, .hx-greet { opacity: 1; }
    .hx-sleigh, .hx-orbit { display: none; }
}
@media print {
    .hx-layer, .hx-orbit { display: none !important; }
    .hx-shine::after { display: none; }
}

/* ==========================================================================
   FULL-PAGE DECORATION (below the hero)
   ========================================================================== */

/* ---------- Candy-cane scroll progress bar ---------------------------- */
.hx-progress {
    position: fixed;
    left: 0;
    top: 0;
    height: 5px;
    width: 100%;
    z-index: 10000;
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
    background: repeating-linear-gradient(-45deg, #e01a37 0 10px, #ffffff 10px 20px);
    background-size: 28px 100%;
    box-shadow: 0 0 10px rgba(224, 26, 55, .55);
    animation: hxCandy 1s linear infinite;
}
@keyframes hxCandy { to { background-position: 28px 0; } }

/* ---------- Page-wide gentle snow (fixed overlay) --------------------- */
.hx-pagesnow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    transition: opacity .6s ease;
}
.hx-pagesnow.is-dim { opacity: 0; }

/* ---------- Candy-cane divider on section edges ----------------------- */
.hx-host { position: relative; }
.hx-candy {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 7px;
    z-index: 3;
    background: repeating-linear-gradient(-45deg, #e01a37 0 12px, #ffffff 12px 24px);
    background-size: 34px 100%;
    box-shadow: 0 2px 8px rgba(224, 26, 55, .25);
    animation: hxCandySlide 2.5s linear infinite;
}
@keyframes hxCandySlide { to { background-position: 34px 0; } }

/* ---------- Product icons: jingle on hover + sparkle ------------------ */
.hx-on .award_list_item img { transition: transform .2s ease; }
.hx-on .award_list_item:hover img { animation: hxJingle .6s ease-in-out; }
@keyframes hxJingle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-14deg) scale(1.08); }
    40% { transform: rotate(12deg) scale(1.08); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(5deg); }
}
.hx-iconspark {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 2;
    opacity: 0;
    animation: hxIconSpark 3.2s ease-in-out infinite;
    animation-delay: var(--d);
}
.hx-iconspark svg { width: 100%; height: 100%; display: block; }
@keyframes hxIconSpark { 0%, 70%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------- Snow caps on plan cards and deal cards -------------------- */
.hx-snowcap {
    position: absolute;
    left: -4px;
    right: -4px;
    top: -9px;
    height: 18px;
    z-index: 3;
}
.hx-snowcap svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 3px rgba(15, 47, 107, .35)); }
.hx-snowcap--in { transform-origin: 50% 100%; animation: hxCapIn .7s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: var(--d, 0s); }
@keyframes hxCapIn { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Floating gutter baubles with scroll parallax -------------- */
.hx-gutter {
    position: absolute;
    width: var(--s);
    height: var(--s);
    left: var(--x);
    top: var(--y);
    z-index: 1;
    transform: translate(-50%, calc(-50% + var(--sy, 0px)));
    will-change: transform;
}
.hx-gutter > .hx-floater__inner { animation: hxFloat var(--t, 6s) ease-in-out infinite alternate; }

/* ---------- Hanging baubles from a section top ------------------------ */
.hx-hang {
    position: absolute;
    top: 0;
    z-index: 2;
    width: 2px;
    height: var(--len);
    left: var(--x);
    background: linear-gradient(#d6b25e, #ffe6a3);
    transform-origin: 50% 0;
    animation: hxSwing var(--t) ease-in-out infinite alternate;
    animation-delay: var(--d);
}
.hx-hang > .hx-orb, .hx-hang > img {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    width: var(--s);
    height: var(--s);
    transform: translateX(-50%);
}
@keyframes hxSwing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* ---------- Twinkling stars on the dark AI panel ---------------------- */
.hx-stars {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    z-index: 0;
    overflow: hidden;
}
.hx-stars span {
    position: absolute;
    width: var(--z);
    height: var(--z);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, .8);
    animation: hxBlink 2.4s ease-in-out infinite;
    animation-delay: var(--d);
}
.hx-stars span.is-gold { background: #ffd36b; box-shadow: 0 0 8px 2px rgba(255, 211, 107, .8); }
.hx-on .faster_plan_section .container { position: relative; z-index: 1; }
/* keep the deals section painted above the AI panel's wave video, as it was before */
.hx-on .trikonunbeatablesec { position: relative; z-index: 1; }

@media (max-width: 1299px) {
    .hx-gutter, .hx-hang { display: none; }
}
@media (max-width: 834px) {
    .hx-stars { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-progress, .hx-candy, .hx-iconspark, .hx-snowcap--in, .hx-gutter > .hx-floater__inner,
    .hx-hang, .hx-stars span, .hx-on .award_list_item:hover img { animation: none !important; }
    .hx-pagesnow { display: none; }
}
@media print {
    .hx-progress, .hx-pagesnow, .hx-candy, .hx-snowcap, .hx-stars { display: none !important; }
}

/* ---------- Uploaded image assets ------------------------------------- */
.hx-gutter img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(4, 16, 48, .3)); }
.hx-hang > img { object-fit: contain; filter: drop-shadow(0 10px 14px rgba(4, 16, 48, .3)); }
.hx-tree img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%;
    transform-origin: 50% 100%;
    animation: hxTreeGrow 1.4s cubic-bezier(.2, 1.3, .4, 1) .5s both, hxTreeGlow 3s ease-in-out 2s infinite;
}
@keyframes hxTreeGrow { from { opacity: 0; transform: scale(.3) translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hxTreeGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(47, 210, 122, .45)) brightness(1); }
    50%      { filter: drop-shadow(0 0 16px rgba(47, 210, 122, .85)) brightness(1.12); }
}
.hx-sleigh { filter: drop-shadow(0 0 10px rgba(255, 211, 107, .6)); }
@media (prefers-reduced-motion: reduce) { .hx-tree img { animation: none !important; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hx-footer > .container { position: relative; z-index: 1; }

/* corner glows */
.hx-fglow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hx-fglow span { position: absolute; width: 520px; height: 520px; border-radius: 50%; }
.hx-fglow__a { left: -180px; bottom: -220px; background: radial-gradient(closest-side, rgba(224, 26, 55, .10), transparent); animation: hxGlowA 9s ease-in-out infinite alternate; }
.hx-fglow__b { right: -180px; top: -120px; background: radial-gradient(closest-side, rgba(47, 210, 122, .12), transparent); animation: hxGlowA 11s ease-in-out infinite alternate-reverse; }
@keyframes hxGlowA { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, -40px) scale(1.2); } }

/* drifting hills */
.hx-hills { position: absolute; left: 0; right: 0; top: -1px; height: 70px; z-index: 0; overflow: hidden; background: #e8e8e8; }
.hx-hills__back, .hx-hills__front { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.hx-hills__back svg, .hx-hills__front svg { width: 100%; height: 100%; display: block; }
.hx-hills__back  { animation: hxHillDrift 60s linear infinite; }
.hx-hills__front { animation: hxHillDrift 38s linear infinite reverse; }
@keyframes hxHillDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hx-minitree {
    position: absolute; bottom: 10px; width: 34px; height: 52px; z-index: 1;
    transform-origin: 50% 100%;
    animation: hxTreeSway 4s ease-in-out infinite alternate;
    animation-delay: var(--d);
}
.hx-minitree svg { width: 100%; height: 100%; overflow: visible; }
@keyframes hxTreeSway { from { transform: scale(var(--sc, 1)) rotate(-3deg); } to { transform: scale(var(--sc, 1)) rotate(3deg); } }
.hx-ftree__bulb { animation: hxBlink 1.6s ease-in-out infinite; animation-delay: var(--d); }
.hx-ftree__star { transform-origin: 17px 4.5px; transform-box: view-box; animation: hxStarPulse 2.2s ease-in-out infinite; }

/* candy-cane underline under footer headings */
.hx-uline {
    position: absolute; left: 0; bottom: -6px; height: 4px; width: 34px; border-radius: 4px;
    background: repeating-linear-gradient(-45deg, #e01a37 0 5px, #ffffff 5px 10px), #e01a37;
    background-size: 14px 100%;
    box-shadow: 0 0 6px rgba(224, 26, 55, .45);
    transform: scaleX(0); transform-origin: 0 50%;
    animation: hxCandy 1s linear infinite;
}
.hx-seen .hx-uline { transform: scaleX(1); transition: transform .7s cubic-bezier(.2, 1.4, .4, 1) var(--d); }

/* social icons bounce like ornaments */
.hx-social { transform-origin: 50% 0; }
.hx-inview .hx-social { animation: hxOrnBounce 5s ease-in-out infinite; animation-delay: var(--d); }
.hx-social:hover { animation: hxJingle .6s ease-in-out !important; }
.hx-social:hover a { filter: drop-shadow(0 0 6px rgba(224, 26, 55, .6)); }
@keyframes hxOrnBounce { 0%, 80%, 100% { transform: none; } 85% { transform: translateY(-7px) rotate(-6deg); } 90% { transform: translateY(0) rotate(4deg); } 95% { transform: rotate(-2deg); } }

/* winter scene, bottom-left */
.hx-scene { position: absolute; left: calc(50% - 611px + 14px); top: 228px; width: 270px; height: 225px; z-index: 1; }
.hx-scene__glow { position: absolute; left: 10%; right: 10%; bottom: 0; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 210, 122, .18), transparent); animation: hxTreeGlow 3s ease-in-out infinite; }
.hx-scene__mound { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; }
.hx-scene__tree { position: absolute; left: 50%; bottom: 22px; width: 120px; height: 188px; margin-left: -60px; transform-origin: 50% 100%; opacity: 0; }
.hx-scene__tree svg, .hx-scene__tree img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.hx-scene__b { position: absolute; bottom: 14px; opacity: 0; }
.hx-scene__b img, .hx-scene__b .hx-orb { width: 100%; height: 100%; object-fit: contain; }
.hx-scene__b--1 { left: 13%; width: 38px; height: 38px; }
.hx-scene__b--2 { left: 30%; width: 26px; height: 26px; bottom: 10px; }
.hx-scene__b--3 { right: 14%; width: 34px; height: 34px; }
.hx-scene__tw { position: absolute; width: 12px; height: 12px; opacity: 0; background: radial-gradient(circle, #fff 0 20%, #ffd36b 30%, transparent 70%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: hxIconSpark 2.8s ease-in-out infinite; animation-delay: var(--d); }
.hx-seen .hx-scene__tree { animation: hxTreeGrow 1.3s cubic-bezier(.2, 1.3, .4, 1) .2s both, hxTreeGlow 3s ease-in-out 1.6s infinite; }
.hx-seen .hx-scene__b { animation: hxDropIn .8s cubic-bezier(.3, 1.6, .5, 1) both, hxRock 3s ease-in-out infinite alternate; }
.hx-seen .hx-scene__b--1 { animation-delay: .9s, 1.7s; }
.hx-seen .hx-scene__b--2 { animation-delay: 1.1s, 1.9s; }
.hx-seen .hx-scene__b--3 { animation-delay: 1.3s, 2.1s; }
@keyframes hxDropIn { from { opacity: 0; transform: translateY(-80px); } to { opacity: 1; transform: none; } }
@keyframes hxRock { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* looping shine across partner logos */
.hx-glint--loop { animation: hxGlintLoop 6s ease-in-out infinite; }
@keyframes hxGlintLoop { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

/* sparkling snow drift along the bottom */
.hx-fdrift { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 0; }
.hx-fdrift svg { width: 100%; height: 100%; display: block; }
.hx-fdrift__sp { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(120, 190, 255, .9); animation: hxSparkle 3s ease-in-out infinite; animation-delay: var(--d); }

/* sleigh flying across the footer */
.hx-fsleigh-wrap { position: absolute; left: 0; right: 0; top: -34px; height: 84px; z-index: 0; overflow: hidden; }
.hx-on img.hx-fsleigh { position: absolute; left: 0; top: 0; width: 170px; height: auto; opacity: 0; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .6)); }
.hx-inview img.hx-fsleigh { animation: hxFSleigh 18s linear 1s infinite; }
@keyframes hxFSleigh {
    0%   { transform: translate(-200px, 30px) rotate(-3deg); opacity: 0; }
    4%   { opacity: 1; }
    45%  { transform: translate(calc(100vw + 40px), 4px) rotate(-6deg); opacity: 1; }
    46%, 100% { transform: translate(calc(100vw + 40px), 4px); opacity: 0; }
}

@media (max-width: 1299px) { .hx-scene { display: none; } }
@media (max-width: 834px) {
    .hx-hills { height: 44px; }
    .hx-minitree { width: 24px; height: 36px; bottom: 6px; }
    .hx-on img.hx-fsleigh { width: 120px; }
    .hx-fsleigh-wrap { top: -26px; height: 64px; }
    .hx-uline { left: 50%; margin-left: -17px; transform-origin: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-fglow span, .hx-hills__back, .hx-hills__front, .hx-minitree, .hx-ftree__bulb, .hx-ftree__star, .hx-uline,
    .hx-social, .hx-scene *, .hx-glint--loop, .hx-fdrift__sp { animation: none !important; }
    .hx-uline { transform: none; }
    .hx-scene__tree, .hx-scene__b { opacity: 1; }
    .hx-fsleigh-wrap { display: none; }
}
@media print { .hx-fglow, .hx-hills, .hx-scene, .hx-fdrift, .hx-fsleigh-wrap, .hx-uline { display: none !important; } }

/* ==========================================================================
   FUN LAYER: ornament hunt, poke-able decor
   ========================================================================== */

/* decorations you can poke */
.hx-on .hx-floater, .hx-on .hx-floater *,
.hx-on .hx-gutter, .hx-on .hx-gutter *,
.hx-on .hx-hang > .hx-orb, .hx-on .hx-hang > img,
.hx-on .hx-tree, .hx-on .hx-tree *,
.hx-on .hx-scene__tree, .hx-on .hx-scene__tree *,
.hx-on .hx-scene__b, .hx-on .hx-scene__b * { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hx-poke { animation: hxPoke .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hxPoke { 0% { transform: scale(1); } 30% { transform: scale(.78, 1.18) rotate(-8deg); } 60% { transform: scale(1.14, .9) rotate(6deg); } 100% { transform: scale(1); } }
.hx-party { animation: hxParty 1s linear 2; }
@keyframes hxParty { from { filter: hue-rotate(0deg) brightness(1.15); } to { filter: hue-rotate(360deg) brightness(1.15); } }

/* speech bubble + toast */
.hx-quip {
    position: fixed; z-index: 10002; max-width: 230px; padding: 8px 12px; border-radius: 14px;
    background: #fff; color: #0f2f6b; font: 600 13px/1.3 Gilroy, "Poppins", Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(15, 47, 107, .3); pointer-events: none;
    animation: hxQuipIn .35s cubic-bezier(.2, 1.6, .4, 1) both; transition: opacity .5s, transform .5s;
}
.hx-quip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.hx-quip.is-out { opacity: 0; transform: translateY(-8px); }
@keyframes hxQuipIn { from { opacity: 0; transform: scale(.5) translateY(10px); } to { opacity: 1; transform: none; } }
.hx-toast {
    position: fixed; left: 50%; bottom: 76px; z-index: 10002; max-width: min(92vw, 420px); padding: 11px 18px; border-radius: 30px;
    background: #0f2f6b; color: #fff; text-align: center; font: 600 14px/1.35 Gilroy, "Poppins", Arial, sans-serif;
    box-shadow: 0 10px 30px rgba(4, 16, 48, .4), 0 0 0 2px rgba(255, 211, 107, .6);
    transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2, 1.4, .4, 1);
}
.hx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* hidden ornaments */
.hx-hunt {
    position: absolute; z-index: 6; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding: 0; border: 0; background: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent; animation: hxHuntBob 3.4s ease-in-out infinite alternate;
}
.hx-hunt img, .hx-hunt .hx-orb { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(15, 47, 107, .35)); animation: hxHuntGlint 3.4s ease-in-out infinite; }
.hx-hunt img, .hx-hunt .hx-orb { transition: transform .2s; }
.hx-hunt:hover img, .hx-hunt:hover .hx-orb, .hx-hunt:focus-visible img, .hx-hunt:focus-visible .hx-orb { transform: scale(1.25); }
.hx-hunt:focus-visible { outline: none; }
.hx-hunt:focus-visible { box-shadow: 0 0 0 3px #ffd36b; border-radius: 50%; }
.hx-hunt.is-found { animation: hxFound .5s ease-in forwards; pointer-events: none; }
@keyframes hxHuntBob { from { transform: translateY(-3px) rotate(-6deg); } to { transform: translateY(3px) rotate(6deg); } }
@keyframes hxHuntGlint { 0%, 70%, 100% { filter: drop-shadow(0 4px 6px rgba(15, 47, 107, .35)) brightness(1); } 85% { filter: drop-shadow(0 0 10px #ffd36b) brightness(1.35); } }
@keyframes hxFound { to { transform: scale(2.2) translateY(-20px); opacity: 0; } }

/* floating pill: hunt counter + play */
.hx-fun {
    position: fixed; left: 50%; bottom: 14px; z-index: 9999; display: flex; gap: 8px; transform: translateX(-50%);
    transition: transform .35s ease, opacity .35s ease;
}
.hx-fun.is-away { transform: translate(-50%, 90px); opacity: 0; pointer-events: none; }
.hx-fun__btn {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 30px; cursor: pointer;
    color: #fff; font: 700 13px/1 Gilroy, "Poppins", Arial, sans-serif; letter-spacing: .2px;
    box-shadow: 0 6px 18px rgba(4, 16, 48, .35); transition: transform .2s, box-shadow .2s;
}
.hx-fun__btn:hover { transform: translateY(-2px) scale(1.04); }
.hx-fun__btn:focus-visible { outline: 3px solid #ffd36b; outline-offset: 2px; }
.hx-fun__hunt { background: #0f2f6b; box-shadow: 0 6px 18px rgba(4, 16, 48, .35), inset 0 0 0 1.5px rgba(255, 211, 107, .7); }
.hx-fun__gifts { background: #0f2f6b; box-shadow: 0 6px 18px rgba(4, 16, 48, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.hx-fun__gifts.is-bump { animation: hxHudBump .32s cubic-bezier(.3, 1.6, .5, 1); }
.hx-fun__gift { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(90deg, transparent 42%, #ffd36b 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, #ffd36b 42% 58%, transparent 58%), #e01a37; }
.hx-fun__star { color: #ffd36b; font-size: 15px; }
.hx-fun__hunt.is-done { background: linear-gradient(135deg, #ffb627, #ff8a3d); color: #3a1d00; }
.hx-fun__hunt.is-done .hx-fun__star { color: #fff; }

@media (max-width: 834px) {
    .hx-fun { bottom: 10px; }
    .hx-fun__btn { height: 34px; padding: 0 11px; font-size: 12px; }
    .hx-toast { bottom: 62px; font-size: 13px; }
    .hx-hunt { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-hunt, .hx-hunt img, .hx-hunt .hx-orb, .hx-poke, .hx-party, .hx-hud, .hx-minitree.is-lit { animation: none !important; }
}
@media print { .hx-fun, .hx-hunt, .hx-toast, .hx-quip, .hx-fight, .hx-hud { display: none !important; } }

/* ==========================================================================
   IN-PAGE GAMES: snowball fight, blizzard, light the village
   ========================================================================== */
.hx-fight { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* the banner shows a snowball cursor so it's obvious you can throw */
.hx-fightable {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='15' cy='15' r='11' fill='white' stroke='%2319b5d1' stroke-width='2'/%3E%3Ccircle cx='11' cy='11' r='3.2' fill='%23dff1ff'/%3E%3C/svg%3E") 15 15, crosshair;
}
.hx-fightable a, .hx-fightable button, .hx-fightable label, .hx-fightable .carousel-indicators, .hx-fightable .carousel-indicators li { cursor: pointer; }
.hx-fightable input, .hx-fightable textarea { cursor: text; }

/* score badge */
.hx-hud {
    position: absolute; right: 24px; top: 172px; z-index: 5; padding: 8px 15px; border-radius: 30px; pointer-events: none;
    background: rgba(8, 28, 72, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); color: #fff;
    font: 700 13px/1 Gilroy, "Poppins", Arial, sans-serif; letter-spacing: .2px;
}
.hx-hud.is-bump { animation: hxHudBump .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hxHudBump { 0% { transform: scale(1); } 40% { transform: scale(1.14); box-shadow: inset 0 0 0 1.5px #ffd36b, 0 0 14px rgba(255, 211, 107, .6); } 100% { transform: scale(1); } }

/* a popped bauble disappears, then pops back in with its entrance animation */
.hx-floater.hx-popped .hx-floater__inner { animation: none; opacity: 0; transform: scale(.1); }

/* light the village */
.hx-on .hx-minitree { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hx-on .hx-minitree::after { content: ""; position: absolute; inset: -10px; }
.hx-minitree:focus-visible { outline: 3px solid #ffd36b; outline-offset: 4px; border-radius: 6px; }
.hx-minitree.is-lit { filter: drop-shadow(0 0 7px #ffd36b) drop-shadow(0 0 14px rgba(255, 59, 85, .65)); }
.hx-minitree.is-lit .hx-ftree__bulb { animation-duration: .5s; }
.hx-minitree.is-lit .hx-ftree__star { animation-duration: .9s; }
.hx-village-lit .hx-minitree { animation: hxTreeDance .7s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes hxTreeDance { from { transform: scale(var(--sc, 1)) rotate(-8deg) translateY(0); } to { transform: scale(var(--sc, 1)) rotate(8deg) translateY(-6px); } }

@media (max-width: 834px) {
    .hx-hud { top: auto; right: auto; left: 10px; bottom: 50px; padding: 6px 11px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .hx-village-lit .hx-minitree { animation: none !important; } }

/* gift drop */
.hx-gift {
    position: fixed; top: 0; z-index: 10001; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 8px 10px rgba(4, 16, 48, .35)); animation: hxGiftFall 8s linear both;
}
.hx-gift svg { display: block; animation: hxGiftSway 1.6s ease-in-out infinite alternate; transform-origin: 50% 0; }
.hx-gift::after { content: ""; position: absolute; inset: -12px; }
.hx-gift:focus-visible { outline: 3px solid #ffd36b; outline-offset: 4px; border-radius: 8px; }
.hx-gift.is-gold { filter: drop-shadow(0 0 12px #ffd36b) drop-shadow(0 0 26px rgba(255, 182, 39, .8)); }
.hx-gift.is-gold svg { animation-duration: .8s; }
.hx-gift.is-caught { animation: hxGiftCaught .26s ease-out forwards !important; pointer-events: none; }
@keyframes hxGiftFall { from { transform: translateY(-90px); } to { transform: translateY(calc(100vh + 90px)); } }
@keyframes hxGiftSway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes hxGiftCaught { to { transform: scale(1.8) translateY(-24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hx-gift { display: none; } }
@media print { .hx-gift { display: none !important; } }
