html.halloween {
    --s-main: 124, 255, 107;
    --s-alt: 155, 92, 255;
    --s-third: 255, 140, 40;
    --bg: #040806;
    --bg-2: #0a120d;
    --surface: #0b130e;
    --surface-2: #101a14;
    --brand: #7cff6b;
    --brand-2: #c4ff9a;
    --brand-ink: #9dff8a;
    --grad: linear-gradient(115deg, #d8ffb0 0%, #7cff6b 40%, #9b5cff 100%);
    --cyan: #b388ff;
    --cyan-soft: rgba(179, 136, 255, .1);
    --night: #030604;
    --night-2: #08100b;
}

html.christmas {
    --s-main: 255, 107, 74;
    --s-alt: 159, 214, 255;
    --s-third: 255, 207, 106;
    --bg: #050a12;
    --bg-2: #0b1320;
    --surface: #0c1422;
    --surface-2: #111b2c;
    --brand: #ff6b4a;
    --brand-2: #ffcf6a;
    --brand-ink: #ff8f73;
    --grad: linear-gradient(115deg, #ffcf6a 0%, #ff6b4a 48%, #e8364f 100%);
    --cyan: #9fd6ff;
    --cyan-soft: rgba(159, 214, 255, .1);
    --night: #03070d;
    --night-2: #08101b;
}

html.newyear {
    --s-main: 255, 176, 32;
    --s-alt: 255, 106, 0;
    --s-third: 255, 240, 200;
    --bg: #080604;
    --bg-2: #120e09;
    --surface: #140f0a;
    --surface-2: #1b150e;
    --brand: #ffb020;
    --brand-2: #ffe08a;
    --brand-ink: #ffc24d;
    --grad: linear-gradient(115deg, #fff3c4 0%, #ffb020 42%, #ff6a00 100%);
    --cyan: #ffe08a;
    --cyan-soft: rgba(255, 224, 138, .1);
    --night: #060403;
    --night-2: #0e0a06;
}

html.season {
    --line: rgba(var(--s-main), .12);
    --line-2: rgba(var(--s-main), .22);
    --brand-soft: rgba(var(--s-main), .12);
    --brand-ring: rgba(var(--s-main), .35);
    --shadow: 0 14px 34px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--s-main), .04);
    --shadow-lg: 0 30px 80px -30px rgba(var(--s-main), .35), 0 12px 30px -12px rgba(0, 0, 0, .7);
}
html.christmas { --line: rgba(159, 214, 255, .13); --line-2: rgba(159, 214, 255, .24); }

html.season ::selection { background: rgba(var(--s-main), .35); }
html.season .bg-fixed {
    background:
        radial-gradient(900px 560px at 85% -10%, rgba(var(--s-main), .12), transparent 60%),
        radial-gradient(800px 600px at -10% 10%, rgba(var(--s-alt), .1), transparent 60%),
        radial-gradient(700px 500px at 50% 110%, rgba(var(--s-third), .08), transparent 60%),
        var(--bg);
}
html.season .bg-grid { background-image: radial-gradient(rgba(var(--s-alt), .08) 1px, transparent 1px); }
html.season .navbar { background: rgba(6, 8, 10, .76); }
html.season .btn-primary { color: #0b0703; box-shadow: 0 10px 28px -10px rgba(var(--s-main), .7); }
html.season .btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(var(--s-main), .85); }
html.season .badge-accent { border-color: rgba(var(--s-main), .25); }
html.season .badge-purple, html.season .side-price.paid { color: rgb(var(--s-alt)); background: rgba(var(--s-alt), .14); border-color: rgba(var(--s-alt), .3); }
html.season .doc-hero .badge-accent { color: var(--brand-ink); }
html.season .doc-hero .badge-purple { color: rgb(var(--s-alt)); }
html.season .fc.primary { border-color: rgba(var(--s-main), .4); }
html.season .server-card::before { background: radial-gradient(closest-side, rgba(var(--s-main), .38), transparent); }
html.season .server-orb.online { box-shadow: 0 0 0 10px rgba(var(--s-main), .12), 0 0 60px rgba(var(--s-main), .45); }
html.season .cta-bar::before { background: radial-gradient(closest-side, rgba(var(--s-main), .32), transparent); }
html.season .doc-hero.plain { background: radial-gradient(800px 400px at 80% 0%, rgba(var(--s-main), .24), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(var(--s-alt), .24), transparent 60%), var(--night); }
html.season .doc-icon { box-shadow: 0 20px 40px -18px rgba(var(--s-main), .8); }
html.season .callout { border-color: rgba(var(--s-main), .22); color: #f1f5ee; }
html.season .callout.warn { border-color: rgba(255, 181, 71, .22); color: #ffe0ad; }
html.season .callout.tip { border-color: rgba(var(--s-alt), .25); color: #eef2ff; }
html.season .callout.tip::before, html.season .steps li::before, html.season .video-play { color: #0b0703; }
html.season .video-soon { background: radial-gradient(500px 260px at 50% 0%, rgba(var(--s-main), .16), transparent 70%), var(--night); }
html.season .video-play { box-shadow: 0 0 0 10px rgba(var(--s-main), .12), 0 0 40px rgba(var(--s-main), .45); }
html.season .code-kw { color: var(--brand-ink); }
html.season .surface-alt { background: linear-gradient(180deg, rgba(var(--s-main), .05), rgba(var(--s-main), .015)); }
html.season footer { background: rgba(3, 4, 6, .6); }
html.season .forge-panel { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--s-main), .15); }

html.season .navbar { position: relative; }
html.season .logo-wrap { position: relative; }

.season-badge {
    display: inline-flex; align-items: center; gap: .55rem; width: fit-content;
    margin-bottom: 1.2rem; padding: .4rem 1rem .4rem .75rem; border-radius: 999px;
    line-height: 1.15;
}
.season-badge svg { width: 20px; height: 20px; flex: none; }
.page-hero .season-badge { margin-left: auto; margin-right: auto; }

.sfx-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sfx-top { position: fixed; inset: 0; z-index: 97; pointer-events: none; }

/* ---------- Halloween: Haunted Forge ---------- */
.hf-badge svg { width: 22px; height: 22px; }
.hf-badge {
    font-family: 'Creepster', var(--display); font-size: 1.15rem; letter-spacing: 1.5px;
    color: #c4ff9a; background: rgba(124, 255, 107, .07);
    border: 1px solid rgba(124, 255, 107, .3); text-shadow: 0 0 12px rgba(124, 255, 107, .55);
}
html.halloween .logo-img { box-shadow: 0 0 0 2px rgba(124, 255, 107, .35), 0 0 18px rgba(124, 255, 107, .45); animation: hf-aura 2.8s ease-in-out infinite; }
@keyframes hf-aura { 0%, 100% { box-shadow: 0 0 0 2px rgba(124, 255, 107, .35), 0 0 16px rgba(124, 255, 107, .4); } 50% { box-shadow: 0 0 0 2px rgba(155, 92, 255, .45), 0 0 24px rgba(155, 92, 255, .5); } }
html.halloween .navbar { border-color: rgba(124, 255, 107, .2); box-shadow: 0 0 30px -10px rgba(124, 255, 107, .35); }
html.halloween .hero-h1 .accent-text { filter: drop-shadow(0 0 18px rgba(124, 255, 107, .35)); }

.hf-haze { position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 100% at 20% 100%, rgba(124, 255, 107, .13), transparent 70%), radial-gradient(ellipse 50% 90% at 85% 100%, rgba(155, 92, 255, .12), transparent 70%); }

.hf-cauldron { position: fixed; left: 22px; bottom: -6px; z-index: 96; width: 96px; height: 86px; cursor: pointer; filter: drop-shadow(0 0 14px rgba(124, 255, 107, .35)); }
.hf-cauldron svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hf-cauldron .hf-bub { animation: hf-bub 2.2s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.hf-cauldron .hf-bub:nth-of-type(2) { animation-delay: -.7s; animation-duration: 1.8s; }
.hf-cauldron .hf-bub:nth-of-type(3) { animation-delay: -1.3s; animation-duration: 2.6s; }
@keyframes hf-bub { 0% { transform: translateY(0) scale(.4); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(-22px) scale(1); opacity: .9; } 100% { transform: translateY(-26px) scale(1.3); opacity: 0; } }
.hf-cauldron.stir { animation: hf-stir .6s ease-in-out; }
@keyframes hf-stir { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.hf-say { position: fixed; z-index: 99; padding: .4rem .75rem; border-radius: 12px 12px 12px 3px; background: rgba(8, 16, 10, .94); border: 1px solid rgba(124, 255, 107, .45);
    color: #c4ff9a; font-family: var(--mono); font-size: .74rem; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.hf-say.show { opacity: 1; transform: none; }

.hf-ghosts { position: fixed; inset: 0; z-index: 96; pointer-events: none; overflow: hidden; }
.hf-ghost { position: absolute; left: 0; top: 0; width: 46px; height: 56px; will-change: transform, opacity; }
.hf-ghost svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(196, 255, 154, .45)); }
.hf-ghost .hf-tail { animation: hf-tail 1.2s ease-in-out infinite alternate; transform-origin: 50% 0; transform-box: fill-box; }
@keyframes hf-tail { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }

/* ---------- Christmas: Winter Forge ---------- */
.wf-badge {
    font-family: 'Cinzel Decorative', var(--display); font-weight: 700; font-size: .98rem; letter-spacing: .5px;
    color: #ffe2b8; background: linear-gradient(90deg, rgba(255, 107, 74, .12), rgba(159, 214, 255, .08));
    border: 1px solid rgba(159, 214, 255, .3); text-shadow: 0 0 10px rgba(255, 140, 90, .45);
}
html.christmas .navbar { border-color: rgba(159, 214, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 30px -14px rgba(159, 214, 255, .4); }
html.christmas .logo-img { box-shadow: 0 0 0 2px rgba(255, 207, 106, .35), 0 0 16px rgba(255, 107, 74, .4); }

.wf-frost { position: absolute; top: -4px; left: 26px; right: 26px; height: 10px; pointer-events: none; z-index: 1; }
.wf-frost svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }

.wf-icicles { position: absolute; top: calc(100% - 2px); left: 30px; right: 30px; height: 40px; pointer-events: none; z-index: 1; transition: opacity .25s; }
#header:has(.mobile-nav.open) .wf-icicles { opacity: 0; }
.wf-ice { position: absolute; top: 0; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2); pointer-events: auto; cursor: pointer;
    background: linear-gradient(90deg, rgba(200, 235, 255, .55), rgba(255, 255, 255, .95) 45%, rgba(159, 214, 255, .6));
    clip-path: polygon(0 0, 100% 0, 55% 100%, 45% 100%); transform-origin: 50% 0; filter: drop-shadow(0 0 3px rgba(159, 214, 255, .7)); }
.wf-ice.ring { animation: wf-ring .7s ease-out; }
@keyframes wf-ring { 0% { transform: rotate(0); } 25% { transform: rotate(9deg); } 50% { transform: rotate(-7deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.wf-drop { position: fixed; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%; background: #dff3ff; box-shadow: 0 0 4px rgba(159, 214, 255, .9); z-index: 97; pointer-events: none; }

.wf-lantern { position: fixed; top: var(--rd-head, 80px); right: 3.5%; z-index: 98; display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: top .25s ease; }
.wf-lantern-chain { width: 2px; height: 0; background: repeating-linear-gradient(#8a93a6 0 3px, #4b5262 3px 5px); animation: wf-chain 2s cubic-bezier(.3, 1.3, .5, 1) .5s forwards; }
@keyframes wf-chain { to { height: 70px; } }
.wf-hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: wf-sway 5.5s ease-in-out infinite; }
.wf-hang.swing { animation: wf-swing 1.2s cubic-bezier(.2, .8, .3, 1); }
.wf-lantern-body { width: 34px; height: 50px; margin-top: -2px; pointer-events: auto; cursor: pointer; }
.wf-lantern-body svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wf-lantern-body .wf-flame { animation: wf-flame .18s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes wf-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes wf-swing { 0% { transform: rotate(0); } 18% { transform: rotate(20deg); } 40% { transform: rotate(-14deg); } 62% { transform: rotate(8deg); } 82% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes wf-flame { from { transform: scale(1, 1); opacity: 1; } to { transform: scale(.88, 1.1); opacity: .85; } }
.wf-glow { position: fixed; left: 0; right: 0; bottom: 0; height: 30vh; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 55% 100% at 50% 100%, rgba(255, 107, 74, .12), transparent 70%); }

/* ---------- New Year: Molten Gold ---------- */
.mg-badge {
    font-family: 'Bebas Neue', var(--display); font-size: 1.2rem; letter-spacing: 1.5px; font-weight: 400;
    color: #ffe08a; background: rgba(255, 176, 32, .08); border: 1px solid rgba(255, 176, 32, .35);
    text-shadow: 0 0 10px rgba(255, 176, 32, .5); padding-right: .5rem;
}
.mg-badge { flex-wrap: wrap; row-gap: .35rem; }
.mg-label { white-space: nowrap; }
.mg-units { display: inline-flex; gap: .25rem; margin-left: .25rem; }
.mg-unit { display: inline-flex; align-items: baseline; gap: 1px; padding: .1rem .35rem; border-radius: 6px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 176, 32, .25);
    font-family: var(--mono); font-size: .78rem; letter-spacing: 0; color: #fff3c4; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(255, 176, 32, .7); }
.mg-unit small { font-size: .6rem; color: #ffb020; margin-left: 1px; }
html.newyear .navbar { border-color: rgba(255, 176, 32, .25); box-shadow: 0 10px 30px -14px rgba(255, 140, 0, .45); }
html.newyear .logo-wrap::after { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 243, 196, .75) 48%, transparent 66%); background-size: 260% 100%; mix-blend-mode: screen; animation: mg-glint 4.5s ease-in-out infinite; }
@keyframes mg-glint { 0%, 60% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

.mg-rim { position: absolute; left: 30px; right: 30px; top: calc(100% - 2px); height: 3px; border-radius: 3px; pointer-events: none; z-index: 1;
    background: linear-gradient(90deg, transparent, #ff6a00 12%, #ffb020 35%, #fff3c4 50%, #ffb020 65%, #ff6a00 88%, transparent); box-shadow: 0 0 12px rgba(255, 150, 20, .7);
    background-size: 200% 100%; animation: mg-flow 6s linear infinite; transition: opacity .25s; }
#header:has(.mobile-nav.open) .mg-rim { opacity: 0; }
@keyframes mg-flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
.mg-drip { position: fixed; width: 5px; height: 8px; margin-left: -2.5px; border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%; z-index: 97; pointer-events: none;
    background: radial-gradient(circle at 40% 35%, #fff3c4, #ffb020 55%, #ff6a00); box-shadow: 0 0 8px rgba(255, 150, 20, .9); }

.mg-ingot { position: fixed; top: var(--rd-head, 80px); right: 3.5%; z-index: 98; display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: top .25s ease; }
.mg-chain { width: 2px; height: 0; background: repeating-linear-gradient(#ffd26b 0 3px, #9a6a12 3px 5px); animation: mg-chain 2s cubic-bezier(.3, 1.3, .5, 1) .5s forwards; }
@keyframes mg-chain { to { height: 64px; } }
.mg-hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: wf-sway 6s ease-in-out infinite; }
.mg-hang.hit { animation: wf-swing 1.2s cubic-bezier(.2, .8, .3, 1); }
.mg-bar { width: 78px; height: 40px; margin-top: -2px; pointer-events: auto; cursor: pointer; }
.mg-bar svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(255, 176, 32, .35)); }

.season-demo {
    position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1000;
    display: flex; align-items: center; gap: .3rem; padding: .35rem .4rem .35rem .9rem; max-width: calc(100vw - 16px); overflow-x: auto;
    background: rgba(8, 8, 12, .9); border: 1px solid var(--line-2); border-radius: 999px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
    font-family: var(--mono); font-size: .72rem; color: var(--ink-2); white-space: nowrap;
}
.season-demo b { color: var(--ink); font-weight: 600; margin-right: .35rem; }
.season-demo a { color: var(--ink-2); text-decoration: none; padding: .35rem .7rem; border-radius: 999px; }
.season-demo a:hover { background: var(--bg-2); color: var(--ink); }
.season-demo a.on { background: var(--brand-soft); color: var(--brand-ink); }

@media (max-width: 960px) {
    .wf-lantern, .mg-ingot { right: 14px; transform: scale(.8); transform-origin: top center; }
    .hf-cauldron { width: 70px; height: 63px; left: 10px; }
}
@media (max-width: 700px) {
    .wf-icicles, .mg-rim { left: 18px; right: 18px; }
    .wf-frost { left: 18px; right: 18px; }
    .season-demo { font-size: .66rem; bottom: .8rem; }
    .season-demo b { display: none; }
    .mg-unit { font-size: .7rem; padding: .08rem .28rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sfx-canvas, .sfx-top, .hf-ghosts { display: none; }
    .wf-lantern-chain { animation: none; height: 70px; }
    .mg-chain { animation: none; height: 64px; }
}
