/* DarkPyro's Servers - Christmas Theme */
/* Loaded on top of the retro blue theme when $config["ChristmasMode"] is active. */
/* The retro blue becomes a frosty winter night; accents are gold, candy red and pine green. */

html.christmas {
    --neon-cyan: #ffd166;
    --accent-rgb: 255, 209, 102;
    --neon-blue: #e11d48;
    --neon-purple: #34d399;
    --red: #ff4d6d;
    --red-rgb: 255, 77, 109;
    --pine: #34d399;
    --frost-rgb: 190, 228, 255;
    --dark-bg: #071026;
    --darker-bg: #040a18;
    --card-bg: rgba(10, 20, 44, 0.84);
    --card-border: rgba(190, 228, 255, 0.16);
    --text-secondary: #94a7c9;
    --glow-cyan: 0 0 10px rgba(255, 209, 102, 0.5), 0 0 22px rgba(255, 170, 60, 0.28), 0 0 34px rgba(255, 77, 109, 0.18);
}

/* ---------- Winter sky ---------- */

.xm-sky {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 88% 4%, rgba(170, 210, 255, 0.2), transparent 70%),
        radial-gradient(ellipse 100% 45% at 50% 100%, rgba(140, 200, 255, 0.16), transparent 70%),
        linear-gradient(180deg, #050d24 0%, #0a1a40 50%, #12295a 100%);
}

.xm-stars,
.xm-stars::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background: transparent;
}

.xm-stars::after {
    content: '';
    width: 2px;
    height: 2px;
    box-shadow: var(--bright-stars, none);
    animation: xmTwinkle 3.5s ease-in-out infinite;
}

@keyframes xmTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Northern lights */
.xm-aurora {
    position: absolute;
    top: -8vh;
    left: -10%;
    width: 120%;
    height: 62vh;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.xm-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, 0.08) 14px 22px),
        radial-gradient(ellipse at 50% 60%, var(--c1), transparent 68%);
    animation: xmAurora var(--dur) ease-in-out infinite alternate;
}

.xm-aurora span:nth-child(1) {
    --c1: rgba(52, 211, 153, 0.7);
    --dur: 19s;
    top: 6%;
    left: 4%;
    width: 62%;
    height: 42%;
    transform: rotate(-10deg) skewX(-24deg);
}

.xm-aurora span:nth-child(2) {
    --c1: rgba(34, 211, 238, 0.55);
    --dur: 25s;
    top: 0;
    left: 34%;
    width: 58%;
    height: 38%;
    transform: rotate(7deg) skewX(20deg);
    animation-delay: -8s;
}

.xm-aurora span:nth-child(3) {
    --c1: rgba(167, 139, 250, 0.5);
    --dur: 31s;
    top: 18%;
    left: 20%;
    width: 50%;
    height: 30%;
    transform: rotate(-4deg) skewX(-12deg);
    animation-delay: -15s;
}

@keyframes xmAurora {
    0% { translate: -6% 0; scale: 1 1; opacity: 0.7; }
    50% { translate: 4% 3%; scale: 1.1 1.25; opacity: 1; }
    100% { translate: 8% -2%; scale: 0.95 0.9; opacity: 0.6; }
}

/* Retro grid stays icy blue */
html.christmas body::after {
    background:
        linear-gradient(rgba(var(--frost-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--frost-rgb), 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Snowfall replaces the rising particles */
html.christmas .particles { display: none; }

.xm-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.xm-frost {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(170, 215, 255, 0.13), inset 0 0 30px rgba(220, 240, 255, 0.08);
}

/* ---------- Moon ---------- */

.xm-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.xm-moon {
    position: absolute;
    top: clamp(70px, 10vh, 110px);
    right: 9%;
    width: clamp(72px, 9vw, 150px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 64% 58%, rgba(150, 170, 205, 0.28) 0 13%, transparent 14%),
        radial-gradient(circle at 34% 30%, rgba(150, 170, 205, 0.22) 0 6%, transparent 7%),
        radial-gradient(circle at 72% 30%, rgba(150, 170, 205, 0.2) 0 3%, transparent 4%),
        radial-gradient(circle at 40% 74%, rgba(150, 170, 205, 0.18) 0 4%, transparent 5%),
        radial-gradient(circle at 38% 36%, #ffffff, #eef4ff 42%, #cad8f0 74%, #a8bcdf);
    box-shadow:
        inset -12px -8px 26px rgba(70, 95, 150, 0.35),
        0 0 40px rgba(210, 230, 255, 0.55),
        0 0 110px rgba(140, 190, 255, 0.35),
        0 0 220px rgba(100, 160, 255, 0.18);
}

/* ---------- String lights ---------- */

.xm-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 2;
    pointer-events: none;
}

.xm-lights svg {
    display: block;
    overflow: visible;
}

.xm-wire {
    fill: none;
    stroke: #0d2a1c;
    stroke-width: 2;
}

.xm-bulb rect { fill: #2f3b35; }

.xm-bulb {
    animation: xmBulb 2.4s ease-in-out infinite;
}

.xm-bulb.c0 path { fill: #ff4d6d; filter: drop-shadow(0 0 5px #ff4d6d) drop-shadow(0 0 10px rgba(255, 77, 109, 0.6)); }
.xm-bulb.c1 path { fill: #ffd166; filter: drop-shadow(0 0 5px #ffd166) drop-shadow(0 0 10px rgba(255, 209, 102, 0.6)); }
.xm-bulb.c2 path { fill: #34d399; filter: drop-shadow(0 0 5px #34d399) drop-shadow(0 0 10px rgba(52, 211, 153, 0.6)); }
.xm-bulb.c3 path { fill: #60a5fa; filter: drop-shadow(0 0 5px #60a5fa) drop-shadow(0 0 10px rgba(96, 165, 250, 0.6)); }
.xm-bulb.c4 path { fill: #f0abfc; filter: drop-shadow(0 0 5px #f0abfc) drop-shadow(0 0 10px rgba(240, 171, 252, 0.6)); }

@keyframes xmBulb {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ---------- Santa's sleigh ---------- */

.xm-sleigh {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(170px, 18vw, 280px);
    z-index: 0;
    pointer-events: none;
    visibility: hidden;
}

.xm-sleigh.flying {
    visibility: visible;
    animation: xmSleighFly var(--fly, 14s) linear forwards;
}

.xm-sleigh svg {
    display: block;
    width: 100%;
    height: auto;
    fill: #0a1330;
    filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.6));
    animation: xmSleighBob 1.6s ease-in-out infinite alternate;
}

.xm-sleigh .xm-stroke {
    fill: none;
    stroke: #0a1330;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.xm-sleigh .xm-reins { stroke-width: 1; stroke: rgba(255, 209, 102, 0.7); }
.xm-sleigh .xm-runner { stroke-width: 2.6; }
.xm-sleigh .xm-pom { fill: #f8fafc; }

.xm-deer {
    animation: xmGallop 0.42s ease-in-out infinite alternate;
}

.xm-nose {
    fill: #ff2d55;
    filter: drop-shadow(0 0 3px #ff2d55) drop-shadow(0 0 6px #ff2d55);
    animation: xmBulb 1s ease-in-out infinite;
}

@keyframes xmSleighFly {
    0% { transform: translate(-320px, 34vh) rotate(-5deg); }
    60% { transform: translate(60vw, 17vh) rotate(-6deg); }
    85% { transform: translate(82vw, 10vh) rotate(-8deg); }
    100% { transform: translate(calc(100vw + 40px), 3vh) rotate(-10deg); }
}

@keyframes xmSleighBob {
    from { transform: translateY(-5px); }
    to { transform: translateY(5px); }
}

@keyframes xmGallop {
    from { transform: translateY(-1.5px); }
    to { transform: translateY(1.5px); }
}

.xm-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff3c4;
    box-shadow: 0 0 6px #ffd166, 0 0 12px rgba(255, 209, 102, 0.7);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Snowy village skyline ---------- */

.xm-skyline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Height tracks width (viewBox is 4:1) so wide screens don't crop the treetops;
       the top 100 viewBox units are empty sky that absorbs any crop on very short windows */
    height: clamp(190px, 25vw, 55vh);
    z-index: -1;
    pointer-events: none;
}

.xm-mountains { fill: #1a2f60; filter: drop-shadow(0 -1px 0 rgba(200, 225, 255, 0.35)); }
.xm-caps { fill: #dbe8ff; opacity: 0.55; }
.xm-hill { fill: url(#xmSnowMid); filter: drop-shadow(0 -1.5px 0 rgba(235, 245, 255, 0.6)); }
.xm-ground { fill: url(#xmSnowFg); filter: drop-shadow(0 -2px 0 rgba(245, 250, 255, 0.75)); }
.xm-far-tree { fill: #1d4a52; opacity: 0.85; }
.xm-far-snow { fill: #c9dbf5; opacity: 0.8; }
.xm-tree { fill: #0f3d33; }
.xm-xmas { fill: #12493a; }
.xm-tree-snow { fill: #f1f6ff; }

.xm-wall { fill: #3d2416; }
.xm-logs { stroke: #26150c; stroke-width: 1.5; }
.xm-roof { fill: #26150c; }
.xm-chimney { fill: #4a2a1d; }
.xm-roof-snow { fill: #f4f8ff; filter: drop-shadow(0 1px 0 rgba(120, 150, 200, 0.6)); }
.xm-door { fill: #24130a; }
.xm-wreath { fill: none; stroke: #15803d; stroke-width: 3.5; stroke-dasharray: 2 1.5; }
.xm-bow { fill: #ef4444; }
.xm-panes { stroke: #3d2416; stroke-width: 2; }
.xm-sill { fill: #f4f8ff; }

.xm-windows {
    fill: #ffcf6e;
    filter: drop-shadow(0 0 6px #ffb347);
    animation: xmHearth 3s ease-in-out infinite;
}

.xm-window-glow { animation: xmHearth 3s ease-in-out infinite; }

@keyframes xmHearth {
    0%, 100% { opacity: 1; }
    30% { opacity: 0.85; }
    55% { opacity: 0.95; }
    70% { opacity: 0.8; }
}

.xm-smoke circle {
    fill: rgba(210, 222, 245, 0.35);
    transform-box: fill-box;
    transform-origin: center;
    animation: xmSmoke 6s ease-out infinite;
    opacity: 0;
}

.xm-smoke circle:nth-child(2) { animation-delay: -1.5s; }
.xm-smoke circle:nth-child(3) { animation-delay: -3s; }
.xm-smoke circle:nth-child(4) { animation-delay: -4.5s; }

@keyframes xmSmoke {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    15% { opacity: 0.8; }
    100% { transform: translate(34px, -80px) scale(2.6); opacity: 0; }
}

.xm-garland {
    fill: none;
    stroke: #ffd166;
    stroke-width: 2;
    stroke-dasharray: 1 5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 2px #ffd166);
    animation: xmGarland 2s linear infinite;
}

@keyframes xmGarland {
    to { stroke-dashoffset: -12; }
}

.xm-ornaments circle {
    animation: xmBulb 2.6s ease-in-out infinite;
}

.xm-orn-red { fill: #ff4d6d; filter: drop-shadow(0 0 4px #ff4d6d); }
.xm-orn-gold { fill: #ffd166; filter: drop-shadow(0 0 4px #ffd166); }
.xm-orn-blue { fill: #60a5fa; filter: drop-shadow(0 0 4px #60a5fa); }
.xm-orn-silver { fill: #e2e8f0; filter: drop-shadow(0 0 4px #e2e8f0); }

.xm-tree-star {
    fill: #ffd166;
    stroke: #fff3c4;
    stroke-width: 1;
    filter: drop-shadow(0 0 6px #ffd166);
}

.xm-star-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: xmStarPulse 3s ease-in-out infinite;
}

@keyframes xmStarPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
}

.xm-p-red { fill: #be123c; }
.xm-p-green { fill: #15803d; }
.xm-p-blue { fill: #1d4ed8; }
.xm-ribbon-gold { fill: #ffd166; }
.xm-ribbon-red { fill: #f43f5e; }

.xm-snowball { fill: #f1f6ff; filter: drop-shadow(-3px 2px 0 rgba(120, 150, 205, 0.45)); }
.xm-twig { fill: none; stroke: #3b2416; stroke-width: 2.2; stroke-linecap: round; }
.xm-scarf { fill: #e11d48; }
.xm-hat { fill: #0b0f1d; }
.xm-hatband { fill: #15803d; }
.xm-coal { fill: #111827; }
.xm-carrot { fill: #fb923c; }

.xm-cane {
    fill: none;
    stroke: #f8fafc;
    stroke-width: 5;
    stroke-linecap: round;
}

.xm-cane-stripes {
    stroke: #e11d48;
    stroke-dasharray: 4 4;
    stroke-linecap: butt;
}

.xm-glints circle {
    fill: #ffffff;
    filter: drop-shadow(0 0 3px #fff);
    animation: xmTwinkle 2.8s ease-in-out infinite;
}

.xm-glints circle:nth-child(2n) { animation-delay: -1.1s; }
.xm-glints circle:nth-child(3n) { animation-delay: -2s; }

/* ---------- Hero ---------- */

html.christmas .hero {
    padding-top: 74px;
}

html.christmas .logo-container {
    position: relative;
}

html.christmas .logo-container img {
    filter: drop-shadow(0 0 16px rgba(160, 215, 255, 0.75)) drop-shadow(0 0 36px rgba(80, 150, 255, 0.4));
}

html.christmas .logo-container:hover img {
    filter: drop-shadow(0 0 22px rgba(200, 235, 255, 0.95)) drop-shadow(0 0 50px rgba(80, 150, 255, 0.6));
}

/* Santa hat perched on the "D" */
html.christmas .logo-container::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: -28%;
    left: 1%;
    width: 15%;
    aspect-ratio: 10 / 9;
    pointer-events: none;
    transform: rotate(-16deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='%23e11d48' d='M12 66C18 34 42 8 72 12C86 14 94 26 90 42C86 33 78 29 72 33C69 45 72 56 78 66Z'/%3E%3Cpath fill='%23be123c' d='M72 33C69 45 72 56 78 66H62C60 50 62 38 72 33Z'/%3E%3Crect x='4' y='58' width='86' height='20' rx='10' fill='%23f8fafc'/%3E%3Ccircle cx='90' cy='44' r='10' fill='%23f8fafc'/%3E%3C/svg%3E") no-repeat center / contain;
}

.festive-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 22px 8px 12px;
    background: linear-gradient(135deg, rgba(150, 18, 48, 0.88), rgba(70, 8, 26, 0.9));
    border: 1px solid rgba(255, 209, 102, 0.55);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(255, 77, 109, 0.25), inset 0 0 18px rgba(255, 209, 102, 0.12);
    color: var(--text-primary);
    font: inherit;
    cursor: pointer;
    animation: fadeInUp 1s ease-out 0.15s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.festive-badge:hover,
.festive-badge:focus-visible {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 34px rgba(255, 77, 109, 0.45), 0 0 18px rgba(255, 209, 102, 0.3), inset 0 0 18px rgba(255, 209, 102, 0.2);
    outline: none;
}

.gift {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.5));
}

.gift-box { fill: #22c55e; }
.gift-base { fill: #16a34a; }
.gift-ribbon,
.gift-bow { fill: #ffd166; }

.gift-lid {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1);
}

.festive-badge:hover .gift-lid,
.festive-badge:focus-visible .gift-lid {
    transform: translateY(-3px) rotate(-6deg);
}

.festive-badge.open .gift-lid {
    transform: translate(-4px, -12px) rotate(-24deg);
}

.festive-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.festive-title {
    font-family: 'Mountains of Christmas', 'Orbitron', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff3c4;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.7), 0 2px 0 #7a1024;
}

.festive-countdown {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ffd9e0;
}

.festive-countdown b {
    color: #fff;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.9);
}

/* Present burst */
.xm-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9000;
    line-height: 1;
}

.xm-burst.dot {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
}

.xm-burst.star {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.xm-burst.flake {
    margin: -10px 0 0 -10px;
    font-size: 20px;
    color: #e0f2ff;
    text-shadow: 0 0 6px #bfe6ff;
}

/* ---------- Buttons, stats & cards ---------- */

html.christmas .nav-btn {
    background: rgba(var(--frost-rgb), 0.06);
    border-color: rgba(var(--frost-rgb), 0.22);
}

html.christmas .nav-btn:not(.primary):hover {
    background: linear-gradient(135deg, rgba(var(--red-rgb), 0.18), rgba(52, 211, 153, 0.14));
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(var(--red-rgb), 0.22), 0 0 20px rgba(255, 209, 102, 0.18);
}

/* Candy cane Play button */
html.christmas .nav-btn.primary {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 0 10px, transparent 10px 20px),
        linear-gradient(135deg, #ff4d6d, #e11d48 55%, #be123c);
    background-size: 28.28px 28.28px, 100% 100%;
    color: #fff;
    text-shadow: 0 1px 2px rgba(80, 0, 20, 0.6);
    animation: xmCandy 1.5s linear infinite, xmRedGlow 3s ease-in-out infinite;
}

html.christmas .nav-btn.primary i { color: #fff; }

@keyframes xmCandy {
    to { background-position: 28.28px 0, 0 0; }
}

@keyframes xmRedGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(var(--red-rgb), 0.35); }
    50% { box-shadow: 0 0 26px rgba(var(--red-rgb), 0.6), 0 0 44px rgba(255, 209, 102, 0.22); }
}

html.christmas .stat-card,
html.christmas .info-card {
    position: relative;
    background: linear-gradient(160deg, rgba(16, 32, 68, 0.88), rgba(7, 14, 32, 0.92));
}

html.christmas .stat-card:hover,
html.christmas .info-card:hover {
    border-color: rgba(255, 209, 102, 0.4);
    box-shadow: 0 14px 38px rgba(var(--red-rgb), 0.14), 0 0 30px rgba(255, 209, 102, 0.12);
}

/* Snow piled on top of the cards */
html.christmas .stat-card::before,
html.christmas .info-card::before {
    content: '';
    position: absolute;
    top: -9px;
    left: -3px;
    right: -3px;
    height: 18px;
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0, 10, 40, 0.45));
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f6ff' d='M0 12C10 4 22 3 34 7C46 2 60 1 72 6C86 2 100 3 112 7C126 1 142 2 154 6C168 2 184 3 200 9V14C196 15 194 19 191 15C186 14 176 15 168 14C164 14 163 19 160 15C150 14 136 15 124 14C110 15 98 14 86 14C82 14 81 18 78 14C66 14 52 15 40 14C30 15 20 14 10 14C6 14 5 17 2 14H0Z'/%3E%3Cpath fill='%23c9dcf5' d='M0 13C40 11 80 12 120 11C150 11 180 12 200 12V14C196 15 194 19 191 15C186 14 176 15 168 14C164 14 163 19 160 15C150 14 136 15 124 14C110 15 98 14 86 14C82 14 81 18 78 14C66 14 52 15 40 14C30 15 20 14 10 14C6 14 5 17 2 14H0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Holly sprig on the info cards */
html.christmas .info-card::after {
    content: '';
    position: absolute;
    top: -16px;
    right: 14px;
    width: 54px;
    height: 36px;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%2315803d' d='M30 22C22 10 10 8 2 12C6 14 6 18 4 20C8 20 10 23 9 26C14 24 18 26 20 30C22 26 27 25 30 22Z'/%3E%3Cpath fill='%23166534' d='M30 22C38 10 50 8 58 12C54 14 54 18 56 20C52 20 50 23 51 26C46 24 42 26 40 30C38 26 33 25 30 22Z'/%3E%3Cpath fill='none' stroke='%2322c55e' stroke-width='0.8' d='M30 22C22 16 12 13 5 13M30 22C38 16 48 13 55 13'/%3E%3Ccircle cx='26' cy='22' r='4.2' fill='%23dc2626'/%3E%3Ccircle cx='34' cy='22' r='4.2' fill='%23ef4444'/%3E%3Ccircle cx='30' cy='17' r='4.2' fill='%23b91c1c'/%3E%3Ccircle cx='28.5' cy='15.5' r='1.2' fill='%23fecaca'/%3E%3Ccircle cx='24.5' cy='20.5' r='1.2' fill='%23fecaca'/%3E%3Ccircle cx='32.5' cy='20.5' r='1.2' fill='%23fecaca'/%3E%3C/svg%3E") no-repeat center / contain;
}

html.christmas .stat-value {
    background: linear-gradient(180deg, #ffffff, #fff3c4 35%, #ffd166 70%, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.45));
}

html.christmas .info-card h3 {
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.4);
}

html.christmas .feature-item {
    border: 1px solid rgba(var(--frost-rgb), 0.1);
}

html.christmas .feature-item:nth-child(3n+1) i { color: var(--red); }
html.christmas .feature-item:nth-child(3n+2) i { color: var(--pine); }

html.christmas .server-item {
    background: rgba(2, 8, 22, 0.45);
}

/* ---------- Footer & chrome ---------- */

/* Footer sits over the snowy village, so keep it see-through */
html.christmas .footer {
    background: linear-gradient(180deg, rgba(4, 10, 24, 0), rgba(4, 10, 24, 0.55));
    border-top: none;
    text-shadow: 0 1px 3px #000, 0 0 8px #000;
}

.footer-festive {
    margin-top: 6px;
    font-family: 'Mountains of Christmas', 'Orbitron', cursive;
    font-size: 1.3rem !important;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff3c4 !important;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.6), 0 1px 3px #000;
}

.footer-festive .fa-tree { color: var(--pine); margin: 0 6px; }
.footer-festive .fa-gift { color: var(--red); margin: 0 6px; }

html.christmas ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--red), var(--pine));
}

html.christmas ::selection {
    background: rgba(var(--red-rgb), 0.45);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    html.christmas .hero { padding-top: 64px; }
    .xm-moon { right: 5%; top: 64px; }
    .festive-title { font-size: 1.35rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .xm-sleigh { display: none; }

    .xm-aurora span,
    .xm-stars::after,
    .xm-bulb,
    .xm-windows,
    .xm-window-glow,
    .xm-smoke circle,
    .xm-garland,
    .xm-ornaments circle,
    .xm-star-glow,
    .xm-glints circle,
    html.christmas .nav-btn.primary {
        animation: none !important;
    }

    .xm-smoke circle { opacity: 0.4; }
}
