/* =====================================================================
   ESAForum SKIN · "christmas" (WINTERFEST)
   Cozy dark winter-night: deep charcoal-blue canvas, holiday RED + GOLD
   accents used tastefully (CTAs / active states / highlights), HOLLY GREEN
   as the success/online signal, snow-white text. Rounded, soft, premium —
   a game platform's winter-event skin. Fonts (Inter + JetBrains Mono) are
   loaded globally, so NOT re-imported here. Every rule scoped under
   [data-skin="christmas"] — never leaks to other skins or the ACP.
   Decorative SVGs (snowcap / santa hat) reused from /home/christmas.html.
   Interactive snow/sleigh live in skin-christmas.js.
   ===================================================================== */

/* ── 1. DESIGN TOKENS ───────────────────────────────────────────────── */
:root[data-skin="christmas"] {
    /* Deep charcoal-blue midnight canvas → cozy panels */
    --bg-0: #0b0e14;
    --bg-1: #0f131b;
    --bg-2: #141a24;
    --surface: #181d27;
    --surface-2: #1f2531;
    --surface-3: #28303d;
    --elev: #1b212c;
    --border: #263041;
    --border-soft: #1e2531;

    /* Text — snow-white on midnight */
    --text: #eceff3;
    --text-dim: #a5aebb;
    --text-mute: #67707e;

    /* Holiday RED — the primary accent */
    --primary: #e5484d;
    --primary-rgb: 229, 72, 77;
    --primary-2: #f16a6e;
    /* GOLD kept as the special-highlight accent */
    --accent: #e8b54c;
    --accent-2: #ffd37a;
    --accent-rgb: 232, 181, 76;
    --on-accent: #fff6f6;

    /* Signals — holly green = alive/online/best, gold = warm, red */
    --pink: #e5484d;
    --green: #4cc272;      /* holly green */
    --amber: #e8b54c;
    --red: #e5484d;

    --grad-primary: linear-gradient(135deg, #f16a6e 0%, #b03035 100%);
    --grad-pink: linear-gradient(135deg, #e5484d 0%, #b03035 100%);
    --grad-cyan: linear-gradient(135deg, #ffd37a 0%, #e8b54c 100%);   /* gold sheen */
    --grad-surface: linear-gradient(180deg, rgba(229,72,77,.06), rgba(232,181,76,0));

    /* Soft, rounded, premium geometry */
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;

    --shadow: 0 12px 34px rgba(0,0,0,.7);
    --shadow-glow: 0 0 0 1px rgba(229,72,77,.25), 0 12px 40px rgba(229,72,77,.22);
    --ring: 0 0 0 3px rgba(229,72,77,.30);
    --primary-glow: rgba(229,72,77,.18);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    /* Christmas-only helper tokens */
    --xmas-gold: #e8b54c;
    --xmas-gold-hi: #ffd37a;
    --xmas-holly: #4cc272;
    --xmas-holly-glow: rgba(76,194,114,.5);
    --xmas-frost: #9cc8e8;
    --xmas-snow: #ffffff;
    --snowcap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 14V9Q5 3 12 7q6-6 14-1 5-5 12 0 7-7 15-1 4-4 11 0 6-6 13 0 5-4 11 1 6-5 13 0 5-3 9 0 6-5 10 1v8z'/%3E%3C/svg%3E");

    /* Decorated evergreen tree + glowing star (hero corner) */
    --xmas-tree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 176'%3E %3Crect x='58' y='150' width='14' height='22' rx='2' fill='%235a3d24'/%3E %3Cpath d='M65 30 L94 78 H36 Z' fill='%232f5a3f'/%3E %3Cpath d='M65 60 L104 116 H26 Z' fill='%23295138'/%3E %3Cpath d='M65 92 L116 158 H14 Z' fill='%23214634'/%3E %3Cpath d='M40 78 q25 12 50 0 q-9 9 -25 9 q-16 0 -25 -9 Z' fill='%23ffffff' opacity='.55'/%3E %3Cpath d='M30 116 q35 13 70 0 q-13 10 -35 10 q-22 0 -35 -10 Z' fill='%23ffffff' opacity='.5'/%3E %3Cpath d='M18 158 q47 14 94 0 q-18 11 -47 11 q-29 0 -47 -11 Z' fill='%23ffffff' opacity='.45'/%3E %3Ccircle cx='52' cy='70' r='3.4' fill='%23e5484d'/%3E %3Ccircle cx='80' cy='86' r='3.4' fill='%23e8b54c'/%3E %3Ccircle cx='45' cy='104' r='3.6' fill='%23e8b54c'/%3E %3Ccircle cx='86' cy='120' r='3.6' fill='%23e5484d'/%3E %3Ccircle cx='62' cy='134' r='3.4' fill='%239cc8e8'/%3E %3Ccircle cx='38' cy='140' r='3.4' fill='%23e5484d'/%3E %3Ccircle cx='92' cy='146' r='3.6' fill='%23e8b54c'/%3E %3Cpath d='M65 4 l4.4 9.6 10.6 .9 -8 7 2.6 10.4 -9.6 -5.6 -9.6 5.6 2.6 -10.4 -8 -7 10.6 -.9 Z' fill='%23ffd37a'/%3E %3C/svg%3E");

    /* Pine garland swag with warm bulbs + red/gold ornaments (repeats along headers) */
    --xmas-garland: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 34'%3E %3Cpath d='M0 3 Q105 40 210 3 L210 9 Q105 46 0 9 Z' fill='%23214634'/%3E %3Cpath d='M0 4 Q105 40 210 4' fill='none' stroke='%232f5a3f' stroke-width='3.4' stroke-linecap='round'/%3E %3Cpath d='M22 10 l-4 6 M46 16 l0 7 M70 20 l4 6 M96 23 l-3 6 M118 24 l3 6 M142 21 l-4 6 M166 16 l0 7 M190 10 l4 6' stroke='%23295138' stroke-width='2' stroke-linecap='round'/%3E %3Ccircle cx='30' cy='12' r='2.4' fill='%23ffd37a'/%3E %3Ccircle cx='58' cy='19' r='2.4' fill='%23f16a6e'/%3E %3Ccircle cx='150' cy='19' r='2.4' fill='%23ffd37a'/%3E %3Ccircle cx='180' cy='12' r='2.4' fill='%23f16a6e'/%3E %3Cg%3E %3Cpath d='M96 25 v4' stroke='%23c9a24a' stroke-width='1.4'/%3E %3Ccircle cx='96' cy='32' r='4.4' fill='%23e5484d'/%3E %3Ccircle cx='94.5' cy='30.5' r='1.3' fill='%23ffd7d7' opacity='.8'/%3E %3C/g%3E %3Cg%3E %3Cpath d='M120 26 v4' stroke='%23c9a24a' stroke-width='1.4'/%3E %3Ccircle cx='120' cy='33' r='4.4' fill='%23e8b54c'/%3E %3Ccircle cx='118.5' cy='31.5' r='1.3' fill='%23fff2cf' opacity='.85'/%3E %3C/g%3E %3C/svg%3E");

    /* Delicate 6-fold ice crystal for frosted-window corners (symmetric) */
    --xmas-crystal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg stroke='%23d4ebf7' stroke-width='1.1' fill='none' stroke-linecap='round'%3E%3Cpath d='M60.0 60.0 L60.0 10.0 M60.0 37.5 L67.8 25.9 M60.0 37.5 L52.2 25.9 M60.0 24.0 L65.0 16.5 M60.0 24.0 L55.0 16.5 M60.0 60.0 L103.3 35.0 M79.5 48.8 L93.5 49.7 M79.5 48.8 L85.6 36.2 M91.2 42.0 L100.2 42.6 M91.2 42.0 L95.1 33.9 M60.0 60.0 L103.3 85.0 M79.5 71.2 L85.6 83.8 M79.5 71.2 L93.5 70.3 M91.2 78.0 L95.1 86.1 M91.2 78.0 L100.2 77.4 M60.0 60.0 L60.0 110.0 M60.0 82.5 L52.2 94.1 M60.0 82.5 L67.8 94.1 M60.0 96.0 L55.0 103.5 M60.0 96.0 L65.0 103.5 M60.0 60.0 L16.7 85.0 M40.5 71.2 L26.5 70.3 M40.5 71.2 L34.4 83.8 M28.8 78.0 L19.8 77.4 M28.8 78.0 L24.9 86.1 M60.0 60.0 L16.7 35.0 M40.5 48.8 L34.4 36.2 M40.5 48.8 L26.5 49.7 M28.8 42.0 L24.9 33.9 M28.8 42.0 L19.8 42.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── 2. CANVAS ──────────────────────────────────────────────────────── */
[data-skin="christmas"] body {
    background:
        radial-gradient(1000px 600px at 80% -8%, rgba(76,194,114,.05), transparent 60%),
        radial-gradient(900px 620px at 0% 26%, rgba(229,72,77,.05), transparent 60%),
        radial-gradient(1100px 560px at 50% -240px, rgba(232,181,76,.06), transparent 70%),
        linear-gradient(180deg, var(--bg-1), var(--bg-0));
    /* NOTE: no 'background-attachment: fixed' — with a fixed background layer
       Chromium drops the <video>/banner layers on repaint (hover). */
    letter-spacing: -.006em;
}
[data-skin="christmas"] ::selection { background: var(--primary); color: #fff3f3; }
/* Candy-cane / gold scrollbar thumb (deep-red + gold stripes — premium, not circus) */
[data-skin="christmas"] ::-webkit-scrollbar-thumb {
    background: repeating-linear-gradient(-45deg, #b03035 0 6px, #e8b54c 6px 12px);
    border-radius: 8px;
    border: 2px solid var(--bg-1);
}
[data-skin="christmas"] ::-webkit-scrollbar-thumb:hover {
    background: repeating-linear-gradient(-45deg, #e5484d 0 6px, #ffd37a 6px 12px);
}
[data-skin="christmas"] a { color: var(--primary-2); }
[data-skin="christmas"] a:hover { color: var(--xmas-gold-hi); }
[data-skin="christmas"] :focus-visible { outline: 2px solid var(--xmas-gold-hi); outline-offset: 3px; border-radius: 8px; }

/* Headings — Inter, tight, snow-white (matches the mockup) */
[data-skin="christmas"] h1,
[data-skin="christmas"] h2,
[data-skin="christmas"] h3,
[data-skin="christmas"] h4 {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
}

/* ── 3. HEADER / NAV ────────────────────────────────────────────────── */
[data-skin="christmas"] .site-header {
    background: rgba(15,17,20,.90);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(229,72,77,.14), 0 10px 34px rgba(0,0,0,.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
[data-skin="christmas"] .brand,
[data-skin="christmas"] .brand .name { letter-spacing: -.02em; color: var(--text); }
[data-skin="christmas"] .brand-logo {
    position: relative;
    border: 1px solid var(--border);
    background: linear-gradient(140deg, #2a323e, #171b21);
    color: var(--text);
    border-radius: 11px;
    box-shadow: 0 6px 20px -8px rgba(0,0,0,.6);
    overflow: visible;
}
/* tiny santa hat on the logo (reused from the mockup) */
[data-skin="christmas"] .brand-logo::after {
    content: "";
    position: absolute;
    right: -8px;
    top: -10px;
    width: 22px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M3 14C2 5 13 0 19 3c3 2 4 5 4 8l-3 1c-1-6-10-8-13-3-2 2-3 4-3 5z' fill='%23E5484D'/%3E%3Ccircle cx='23' cy='3.4' r='2.6' fill='%23FFFFFF'/%3E%3Crect x='1' y='13' width='19' height='5.6' rx='2.8' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(14deg);
    pointer-events: none;
}
[data-skin="christmas"] .main-nav a {
    font-weight: 600;
    border-radius: 10px;
    color: var(--text-dim);
    position: relative;
}
[data-skin="christmas"] .main-nav a:hover { background: var(--surface-2); color: var(--text); }
[data-skin="christmas"] .main-nav a.active {
    color: #fff6f6;
    background: var(--grad-primary);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 6px 18px -8px rgba(229,72,77,.5);
}
[data-skin="christmas"] .icon-btn {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
}
[data-skin="christmas"] .icon-btn:hover { color: var(--xmas-gold-hi); border-color: var(--xmas-gold); background: var(--surface-2); }
[data-skin="christmas"] .search-mini {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
}
[data-skin="christmas"] .search-mini:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
[data-skin="christmas"] .badge-count {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(229,72,77,.5);
}

/* Dropdowns / header panels */
[data-skin="christmas"] .dropdown,
[data-skin="christmas"] .hdr-panel,
[data-skin="christmas"] .hdr-dd {
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow);
}
[data-skin="christmas"] .dropdown a,
[data-skin="christmas"] .dropdown button { border-radius: 9px; }
[data-skin="christmas"] .dropdown a:hover,
[data-skin="christmas"] .dropdown button:hover { background: var(--surface-2); color: var(--xmas-gold-hi); }
[data-skin="christmas"] .hdr-panel-head { border-bottom: 1px solid var(--border); }
[data-skin="christmas"] .user-menu .trigger { border-radius: 10px; }
[data-skin="christmas"] .user-menu .trigger:hover { background: var(--surface-2); }
[data-skin="christmas"] .mini-user .name { font-weight: 700; }

/* Announcement bar */
[data-skin="christmas"] .announce-bar {
    background: linear-gradient(90deg, rgba(229,72,77,.14), rgba(232,181,76,.05) 60%, transparent 90%);
    border-bottom: 1px solid var(--border);
    letter-spacing: .02em;
    color: var(--text-dim);
}

/* ── 4. BUTTONS ─────────────────────────────────────────────────────── */
[data-skin="christmas"] .btn {
    font-weight: 700;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}
[data-skin="christmas"] .btn:hover { border-color: var(--text-mute); background: var(--surface-3); }
[data-skin="christmas"] .btn:active { transform: translateY(1px); }
[data-skin="christmas"] .btn-primary {
    background: linear-gradient(180deg, var(--primary-2), var(--primary) 55%, #b03035);
    color: #fff6f6;
    border-color: #b03035;
    text-shadow: 0 1px 0 rgba(0,0,0,.25);
    box-shadow: 0 8px 22px -10px rgba(229,72,77,.6);
}
[data-skin="christmas"] .btn-primary:hover {
    filter: brightness(1.07);
    box-shadow: 0 10px 28px -10px rgba(229,72,77,.7);
    border-color: #b03035;
    color: #fff6f6;
    transform: translateY(-1px);
}
[data-skin="christmas"] .btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}
[data-skin="christmas"] .btn-ghost:hover { color: var(--xmas-gold-hi); border-color: var(--xmas-gold); background: var(--surface); }
[data-skin="christmas"] .btn-danger {
    background: transparent;
    color: var(--red);
    border-color: rgba(229,72,77,.5);
}
[data-skin="christmas"] .btn-danger:hover { background: rgba(229,72,77,.16); color: #fff; }

/* ── 5. CARDS / CONTAINERS ──────────────────────────────────────────── */
[data-skin="christmas"] .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 34px -18px rgba(0,0,0,.7);
}
[data-skin="christmas"] .card-head,
[data-skin="christmas"] .card__header { border-bottom: 1px solid var(--border); }
[data-skin="christmas"] .card__title { letter-spacing: -.01em; font-weight: 800; }
[data-skin="christmas"] .card__header::before { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
[data-skin="christmas"] .empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-dim);
}
[data-skin="christmas"] .breadcrumbs {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--text-mute);
}
[data-skin="christmas"] .breadcrumbs a:hover { color: var(--xmas-gold-hi); }
[data-skin="christmas"] .pagination a,
[data-skin="christmas"] .pagination span {
    border-radius: 10px;
    font-family: var(--mono);
    border: 1px solid var(--border);
    background: var(--surface);
}
[data-skin="christmas"] .pagination a:hover { border-color: var(--primary); color: var(--primary-2); }
[data-skin="christmas"] .pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(229,72,77,.4);
}

/* Alerts — left holiday bar */
[data-skin="christmas"] .alert {
    border-radius: 11px;
    border-width: 1px 1px 1px 3px;
}

/* ── 6. BOARD-INDEX HERO ────────────────────────────────────────────── */
/* (full themed background block lives at the very bottom, §23) */
[data-skin="christmas"] .fi-hero {
    border: 1px solid var(--border);
    box-shadow: 0 0 0 1px rgba(232,181,76,.08), 0 26px 64px rgba(0,0,0,.6);
}
[data-skin="christmas"] .fi-hero h1 {
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--text);
    text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
/* gold gradient title text (mockup's <em> treatment) */
[data-skin="christmas"] .fi-hero h1 .grad {
    background: linear-gradient(180deg, var(--xmas-gold-hi), var(--xmas-gold) 65%, #c08e30);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
[data-skin="christmas"] .fi-hero p { color: #c4cbd6; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
[data-skin="christmas"] .fi-eyebrow {
    border-radius: 999px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 10px;
    background: rgba(15,17,20,.66);
    border: 1px solid rgba(232,181,76,.4);
    color: var(--xmas-gold-hi);
}
[data-skin="christmas"] .fi-eyebrow-dot { background: var(--xmas-holly); box-shadow: 0 0 10px var(--xmas-holly-glow); border-radius: 50%; }

/* Hero stat "glass" cells */
[data-skin="christmas"] .fi-stat {
    border-radius: 11px;
    background: rgba(24,28,34,.72);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
[data-skin="christmas"] .fi-stat:hover { background: rgba(232,181,76,.10); border-color: rgba(232,181,76,.4); }
[data-skin="christmas"] .fi-stat b { font-family: var(--mono); letter-spacing: -.02em; color: var(--text); }
[data-skin="christmas"] .fi-stat span { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; }
[data-skin="christmas"] .fi-stat.fi-stat-online b { color: var(--xmas-holly); text-shadow: 0 0 16px var(--xmas-holly-glow); }

/* ── 7. BOARD INDEX: categories + forum rows ────────────────────────── */
[data-skin="christmas"] .fi-category { background: transparent; }
[data-skin="christmas"] .fi-cat-bar {
    border-radius: 13px 13px 0 0;
    background: linear-gradient(90deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border-soft);
}
/* candy-cane accent bar on category headers */
[data-skin="christmas"] .fi-cat-accent { background: repeating-linear-gradient(-45deg, #fff 0 5px, var(--primary) 5px 10px); box-shadow: 0 0 10px rgba(229,72,77,.5); }
[data-skin="christmas"] .fi-cat-title { letter-spacing: -.01em; font-weight: 800; color: var(--text); }
[data-skin="christmas"] .fi-cat-count,
[data-skin="christmas"] .fi-cat-label {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 10px;
    color: var(--text-mute);
}
[data-skin="christmas"] .fi-forum-list {
    border: 1px solid var(--border);
    border-radius: 0 0 13px 13px;
    background: var(--surface);
}
[data-skin="christmas"] .fi-row {
    border-bottom: 1px solid var(--border-soft);
    position: relative;
    transition: background .15s;
}
[data-skin="christmas"] .fi-row::before { background: var(--border); width: 2px; }
/* Row hover flattened to match the default theme: NEVER override the `background`
   shorthand here — it wipes per-forum banner images (and the repaint drops the
   hero video). Only the icon animates. */
[data-skin="christmas"] .fi-icon,
[data-skin="christmas"] .fi-icon-emoji {
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
[data-skin="christmas"] .fi-row:hover .fi-icon { border-color: rgba(232,181,76,.4); transform: translateY(-1px); }
[data-skin="christmas"] .fi-info h3 { font-weight: 800; letter-spacing: -.015em; color: var(--text); }
[data-skin="christmas"] .fi-info h3 a:hover { color: var(--xmas-gold-hi); }
[data-skin="christmas"] .fi-desc { color: var(--text-dim); }
[data-skin="christmas"] .fi-sf-chip {
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .02em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
[data-skin="christmas"] .fi-sf-chip:hover { border-color: #b03035; color: #fff6f6; background: var(--primary); }
[data-skin="christmas"] .fi-sf-dot { background: var(--primary); }
[data-skin="christmas"] .fi-sf-more { border-style: dashed; color: var(--text-mute); }
[data-skin="christmas"] .fi-stats b,
[data-skin="christmas"] .fi-stats-row b { font-family: var(--mono); letter-spacing: -.02em; color: var(--xmas-gold-hi); }
[data-skin="christmas"] .fi-stats-row span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: 9px; }
[data-skin="christmas"] .fi-last-topic b { font-weight: 700; color: var(--text-dim); }
[data-skin="christmas"] .fi-last-by,
[data-skin="christmas"] .fi-last-empty,
[data-skin="christmas"] .fi-last-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-mute);
}
[data-skin="christmas"] .fi-last-ava { border-radius: 11px; }

/* Board-index legend */
[data-skin="christmas"] .fi-legend {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
[data-skin="christmas"] .fi-legend-title { letter-spacing: -.01em; font-weight: 800; }
[data-skin="christmas"] .fi-legend-sub { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
[data-skin="christmas"] .fi-legend-item { border-radius: 999px; font-family: var(--mono); font-size: 12px; border: 1px solid var(--border); background: var(--surface-2); }
[data-skin="christmas"] .fi-legend-item:hover { border-color: var(--xmas-gold); color: var(--xmas-gold-hi); }
[data-skin="christmas"] .fi-legend-count { border-radius: 999px; font-family: var(--mono); color: var(--text-mute); }
[data-skin="christmas"] .fi-legend-dot { box-shadow: 0 0 8px currentColor; }

/* Board-index misc */
[data-skin="christmas"] .fi-toolbar-label,
[data-skin="christmas"] .fi-resume-head,
[data-skin="christmas"] .fi-resume-meta { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--text-mute); }
[data-skin="christmas"] .fi-resume-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
[data-skin="christmas"] .fi-resume-card:hover { border-color: var(--xmas-gold); }
[data-skin="christmas"] .fi-resume-title { font-weight: 700; }
/* Gold-into-red festive divider line (candy accent, fades at the ends) */
[data-skin="christmas"] .fi-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,181,76,.5) 22%, rgba(229,72,77,.45) 50%, rgba(232,181,76,.5) 78%, transparent);
}
[data-skin="christmas"] .fi-discord-cta { border-radius: 14px; }

/* ── 8. SIDEBAR WIDGETS ─────────────────────────────────────────────── */
[data-skin="christmas"] .widget,
[data-skin="christmas"] .fi-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
[data-skin="christmas"] .widget-head,
[data-skin="christmas"] .fi-widget-head {
    font-weight: 800;
    letter-spacing: -.01em;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(232,181,76,.06), transparent);
}
[data-skin="christmas"] .widget-head::before,
[data-skin="christmas"] .fi-widget-head::before {
    content: "\2744  ";   /* snowflake */
    color: var(--xmas-frost);
}
[data-skin="christmas"] .fi-pill,
[data-skin="christmas"] .pill-count {
    font-family: var(--mono);
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--xmas-gold-hi);
}
[data-skin="christmas"] .fi-board-stats { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
[data-skin="christmas"] .fi-bs-item { border-color: var(--border) !important; background: var(--surface-2); }
[data-skin="christmas"] .fi-bs-val { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; color: var(--text); }
[data-skin="christmas"] .fi-bs-val.online { color: var(--xmas-holly); text-shadow: 0 0 12px var(--xmas-holly-glow); }
[data-skin="christmas"] .fi-bs-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: 8.5px; color: var(--text-mute); }

/* Rank rows (top members / trending / contributors) */
[data-skin="christmas"] .rank-row { border-radius: 10px; }
[data-skin="christmas"] .rank-row:hover { background: var(--surface-2); }
[data-skin="christmas"] .rank-row .rk {
    border-radius: 9px;
    font-family: var(--mono);
    background: var(--surface-3);
    color: var(--text-dim);
}
[data-skin="christmas"] .rank-row .rk.gold { background: linear-gradient(135deg, var(--xmas-gold-hi), var(--xmas-gold)); color: #4a3410; box-shadow: 0 0 12px rgba(232,181,76,.45); }
[data-skin="christmas"] .rank-row .rk.silver { background: var(--surface-3); color: var(--xmas-frost); }
[data-skin="christmas"] .rank-row .rk.bronze { background: var(--surface-3); color: var(--primary-2); }
[data-skin="christmas"] .rank-row .val { font-family: var(--mono); font-weight: 600; color: var(--text-dim); }
[data-skin="christmas"] .rank-row .name { color: var(--text); }

/* Online strip + activity feed */
[data-skin="christmas"] .online-strip img { border-radius: 11px; }
[data-skin="christmas"] .online-dot.on,
[data-skin="christmas"] .online-dot { background: var(--xmas-holly); box-shadow: 0 0 8px var(--xmas-holly-glow); }
[data-skin="christmas"] .act-item .avatar { border-radius: 11px !important; }
[data-skin="christmas"] .ai-ico { border-radius: 10px; background: var(--surface-2); }
[data-skin="christmas"] .ai-time { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--text-mute); }
[data-skin="christmas"] .ai-txt a:hover { color: var(--xmas-gold-hi); }

/* Champion block */
[data-skin="christmas"] .fi-champion { border-bottom: 1px solid var(--border) !important; }

/* TeamSpeak / generic chip */
[data-skin="christmas"] .chip {
    border-radius: 999px;
    font-family: var(--mono);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
[data-skin="christmas"] .chip:hover { border-color: var(--xmas-gold); color: var(--xmas-gold-hi); }

/* Shoutbox */
[data-skin="christmas"] .shoutbox { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
[data-skin="christmas"] .shout-messages { font-family: var(--mono); font-size: 12px; }

/* ── 9. FORUM VIEW + TOPIC LIST ─────────────────────────────────────── */
[data-skin="christmas"] .forum-banner {
    border-radius: 14px;
    border: 1px solid var(--border);
    background:
        radial-gradient(600px 300px at 85% -30%, rgba(229,72,77,.16), transparent 60%),
        radial-gradient(500px 260px at 12% 120%, rgba(232,181,76,.10), transparent 60%),
        linear-gradient(135deg, var(--surface-2), var(--surface));
}
[data-skin="christmas"] .fb-icon,
[data-skin="christmas"] .fb-icon-emoji { border-radius: 12px; }
[data-skin="christmas"] .forum-desc-html { color: var(--text-dim); }
[data-skin="christmas"] .subforum-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
[data-skin="christmas"] .subforum-card:hover { border-color: var(--xmas-gold); box-shadow: 0 0 0 1px rgba(232,181,76,.25); }
[data-skin="christmas"] .sc-icon { border-radius: 11px; }
[data-skin="christmas"] .sc-title { font-weight: 700; }
[data-skin="christmas"] .sc-count { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
[data-skin="christmas"] .topic-list,
[data-skin="christmas"] .topic-list-head {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
[data-skin="christmas"] .topic-list-head {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10.5px;
    color: var(--text-mute);
}
[data-skin="christmas"] .topic-row {
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}
[data-skin="christmas"] .topic-row::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
    background: transparent; transition: background .15s;
}
/* Topic-row hover: candy stripe only — NEVER override the row `background`
   shorthand (it wipes per-topic banner/prefix backgrounds). */
[data-skin="christmas"] .topic-row:hover::before {
    background: repeating-linear-gradient(-55deg, #fff 0 5px, var(--primary) 5px 10px);
    box-shadow: 0 0 8px rgba(229,72,77,.5);
}
[data-skin="christmas"] .topic-row.unread { border-left: 2px solid rgba(229,72,77,.5); }
[data-skin="christmas"] .topic-icon,
[data-skin="christmas"] .ti-ava { border-radius: 11px; }
[data-skin="christmas"] .tm-title,
[data-skin="christmas"] .tl-title { font-weight: 700; letter-spacing: -.01em; color: var(--text); }
[data-skin="christmas"] .tm-title:hover,
[data-skin="christmas"] .tl-title:hover { color: var(--xmas-gold-hi); }
[data-skin="christmas"] .tm-meta,
[data-skin="christmas"] .topic-last,
[data-skin="christmas"] .tl-lastby { font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: var(--text-mute); }
[data-skin="christmas"] .topic-stat b,
[data-skin="christmas"] .ts-val { font-family: var(--mono); letter-spacing: -.02em; color: var(--text); }
[data-skin="christmas"] .tl-lastby-ava { border-radius: 11px; }
[data-skin="christmas"] .unread-dot { background: var(--primary); box-shadow: 0 0 8px var(--primary); }

/* ── 10. TOPIC VIEW: hero + posts ───────────────────────────────────── */
[data-skin="christmas"] .topic-hero {
    background:
        radial-gradient(700px 300px at 90% -40%, rgba(229,72,77,.16), transparent 60%),
        radial-gradient(600px 300px at 6% 120%, rgba(232,181,76,.10), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: 16px;
}
[data-skin="christmas"] .topic-hero-main h1 {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
[data-skin="christmas"] .topic-hero-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-mute); }
[data-skin="christmas"] .post,
[data-skin="christmas"] .reply-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
[data-skin="christmas"] .post.is-op { border-color: rgba(232,181,76,.35); box-shadow: 0 0 0 1px rgba(232,181,76,.14); }
[data-skin="christmas"] .post-author {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-right: 1px solid var(--border);
}
[data-skin="christmas"] .post-author .avatar,
[data-skin="christmas"] .pa-avatar { border-radius: 12px !important; }
[data-skin="christmas"] .pa-name { font-weight: 800; letter-spacing: -.01em; }
[data-skin="christmas"] .pa-role,
[data-skin="christmas"] .pa-title { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-2); }
[data-skin="christmas"] .pa-xp-track { background: var(--bg-1); border-radius: 999px; }
[data-skin="christmas"] .pa-xp-fill { background: repeating-linear-gradient(-55deg, #fff 0 6px, var(--primary) 6px 12px); border-radius: 999px; }
[data-skin="christmas"] .post-num { font-family: var(--mono); color: var(--text-mute); }
[data-skin="christmas"] .post-top,
[data-skin="christmas"] .post-foot { border-color: var(--border); }
[data-skin="christmas"] .post-content { color: var(--text); }
[data-skin="christmas"] .post-content .post-quote {
    border-left: 3px solid var(--primary);
    background: var(--bg-1);
    border-radius: 0 9px 9px 0;
    color: var(--text-dim);
}
[data-skin="christmas"] .post-content .post-quote cite { color: var(--primary-2); font-family: var(--mono); }
[data-skin="christmas"] .post-content .code-block,
[data-skin="christmas"] .post-content pre {
    background: var(--bg-0);
    border: 1px solid var(--border);
    border-left: 3px solid var(--xmas-gold);
    border-radius: 0 9px 9px 0;
    font-family: var(--mono);
    color: var(--text);
}
[data-skin="christmas"] .post-sig { border-top: 1px dashed var(--border); color: var(--text-mute); }
[data-skin="christmas"] .edited { color: var(--text-mute); font-family: var(--mono); font-size: 10.5px; }
[data-skin="christmas"] .locked-note { border: 1px solid rgba(229,72,77,.3); background: rgba(229,72,77,.06); border-radius: 11px; }

/* Reactions */
[data-skin="christmas"] .react-main,
[data-skin="christmas"] .react-summary,
[data-skin="christmas"] .quote-btn,
[data-skin="christmas"] .post-tools button,
[data-skin="christmas"] .ptool,
[data-skin="christmas"] .rs-count { border-radius: 999px; }
[data-skin="christmas"] .react-main {
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-family: var(--mono);
    letter-spacing: .04em;
    color: var(--text-dim);
}
[data-skin="christmas"] .react-main:hover { border-color: var(--xmas-gold); color: var(--xmas-gold-hi); }
[data-skin="christmas"] .rs-count { background: var(--surface-2); border: 1px solid var(--border); }
[data-skin="christmas"] .rs-count.reacted,
[data-skin="christmas"] .react-summary .reacted { border-color: var(--primary); color: var(--primary-2); background: rgba(229,72,77,.10); }
[data-skin="christmas"] .react-picker { background: var(--elev); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); }
[data-skin="christmas"] .ptool-danger:hover { color: var(--red); }

/* Best-answer box (holly green) */
[data-skin="christmas"] .best-answer-box {
    border: 1px solid rgba(76,194,114,.4);
    border-left: 3px solid var(--xmas-holly);
    background: rgba(76,194,114,.07);
    border-radius: 0 11px 11px 0;
}
[data-skin="christmas"] .ba-head { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--xmas-holly); }
[data-skin="christmas"] .best-btn:hover,
[data-skin="christmas"] .best-banner { color: var(--xmas-holly); }

/* Poll */
[data-skin="christmas"] .poll-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
[data-skin="christmas"] .poll-bar-wrap { background: var(--bg-1); border-radius: 999px; }
[data-skin="christmas"] .poll-bar { background: var(--grad-primary); border-radius: 999px; }
[data-skin="christmas"] .poll-q { letter-spacing: -.01em; font-weight: 800; }
[data-skin="christmas"] .poll-status,
[data-skin="christmas"] .poll-total { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }

/* ── 11. PILLS / BADGES / TAGS / PREFIX ─────────────────────────────── */
[data-skin="christmas"] .badge,
[data-skin="christmas"] .status-pill,
[data-skin="christmas"] .role-pill,
[data-skin="christmas"] .tag,
[data-skin="christmas"] .prefix,
[data-skin="christmas"] .new-pill,
[data-skin="christmas"] .op-badge,
[data-skin="christmas"] .ti-badge {
    border-radius: 999px;
    font-family: var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
}
[data-skin="christmas"] .new-pill {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(229,72,77,.5);
}
[data-skin="christmas"] .badge-pin { background: rgba(232,181,76,.16); color: var(--xmas-gold); }
[data-skin="christmas"] .badge-lock { background: rgba(229,72,77,.14); color: var(--primary-2); }
[data-skin="christmas"] .role-pill { background: rgba(229,72,77,.14); color: var(--primary-2); border: 1px solid rgba(229,72,77,.28); }
[data-skin="christmas"] .op-badge { background: rgba(232,181,76,.16); color: var(--xmas-gold); }
[data-skin="christmas"] .prefix { color: var(--primary-2); }

/* ── 12. FORMS ──────────────────────────────────────────────────────── */
[data-skin="christmas"] .input,
[data-skin="christmas"] input[type="text"],
[data-skin="christmas"] input[type="email"],
[data-skin="christmas"] input[type="password"],
[data-skin="christmas"] input[type="search"],
[data-skin="christmas"] input[type="number"],
[data-skin="christmas"] input[type="url"],
[data-skin="christmas"] textarea,
[data-skin="christmas"] select {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
}
[data-skin="christmas"] .input::placeholder,
[data-skin="christmas"] textarea::placeholder { color: var(--text-mute); }
[data-skin="christmas"] .input:focus,
[data-skin="christmas"] input:focus,
[data-skin="christmas"] textarea:focus,
[data-skin="christmas"] select:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
    outline: none;
}
[data-skin="christmas"] .form-label,
[data-skin="christmas"] .ff-label,
[data-skin="christmas"] .tf-label,
[data-skin="christmas"] .bm-label {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    color: var(--text-dim);
}
[data-skin="christmas"] .form-hint,
[data-skin="christmas"] .input-help { color: var(--text-mute); font-size: 12px; }
[data-skin="christmas"] .editor-toolbar,
[data-skin="christmas"] .esa-editor .editor-toolbar {
    background: var(--surface-2);
    border-color: var(--border);
}
[data-skin="christmas"] .editor-toolbar button {
    border-radius: 9px;
    color: var(--text-dim);
    background: transparent;
}
[data-skin="christmas"] .editor-toolbar button:hover { background: var(--surface-3); color: var(--xmas-gold-hi); }
[data-skin="christmas"] .attach-btn:hover { color: var(--xmas-gold-hi); }

/* ── 13. TABLES (members / leaderboard) ─────────────────────────────── */
[data-skin="christmas"] .table-wrap {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow-x: auto;
}
[data-skin="christmas"] .data,
[data-skin="christmas"] .leaderboard-table { background: var(--surface); }
[data-skin="christmas"] .data th,
[data-skin="christmas"] .leaderboard-table th {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    color: var(--text-dim);
}
[data-skin="christmas"] .data td,
[data-skin="christmas"] .leaderboard-table td { border-bottom: 1px solid var(--border-soft); }
[data-skin="christmas"] .data tr:hover td,
[data-skin="christmas"] .leaderboard-table tr:hover td { background: rgba(232,181,76,.06); }
[data-skin="christmas"] .lb-username { font-weight: 700; color: var(--text); }
[data-skin="christmas"] .lb-rank-num { font-family: var(--mono); color: var(--xmas-gold-hi); }
[data-skin="christmas"] .lb-rep,
[data-skin="christmas"] .lb-posts { font-family: var(--mono); }
[data-skin="christmas"] .leaderboard-hero {
    background:
        radial-gradient(800px 320px at 80% -40%, rgba(229,72,77,.16), transparent 60%),
        radial-gradient(700px 320px at 8% 120%, rgba(232,181,76,.12), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: 16px;
}
[data-skin="christmas"] .lb-subtitle { font-family: var(--mono); color: var(--text-mute); }
[data-skin="christmas"] .leaderboard-tabs .lb-tab,
[data-skin="christmas"] .lb-tab {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
}
[data-skin="christmas"] .lb-tab:hover { border-color: var(--xmas-gold); color: var(--xmas-gold-hi); }
[data-skin="christmas"] .lb-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(229,72,77,.4);
}

/* Podium */
[data-skin="christmas"] .podium-block { background: var(--surface); border: 1px solid var(--border); border-radius: 13px 13px 0 0; }
[data-skin="christmas"] .podium-place.gold .podium-block { border-color: var(--xmas-gold); box-shadow: 0 0 28px rgba(232,181,76,.3); }
[data-skin="christmas"] .podium-avatar-wrap img { border-radius: 12px; }
[data-skin="christmas"] .podium-crown { color: var(--xmas-gold-hi); filter: drop-shadow(0 0 8px rgba(232,181,76,.6)); }
[data-skin="christmas"] .podium-name { font-weight: 800; letter-spacing: -.01em; }
[data-skin="christmas"] .podium-rank-num { font-family: var(--mono); color: var(--text-mute); }
[data-skin="christmas"] .podium-score { font-family: var(--mono); color: var(--xmas-gold-hi); }

/* Member cards */
[data-skin="christmas"] .member-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
[data-skin="christmas"] .member-card:hover { border-color: var(--xmas-gold); box-shadow: 0 0 0 1px rgba(232,181,76,.3); }

/* ── 14. PARTNERS (transparent — no boxed panel) ────────────────────── */
[data-skin="christmas"] .partners-section {
    background: transparent;
    border: 0;
    border-radius: 0;
}
[data-skin="christmas"] .partners-section__label,
[data-skin="christmas"] .partners-section__heading {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 10px;
    color: var(--text-mute);
}
[data-skin="christmas"] .partner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
[data-skin="christmas"] .partner-card:hover { border-color: var(--xmas-gold); background: var(--surface-2); }
[data-skin="christmas"] .partner-card__type { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; color: var(--text-mute); }
[data-skin="christmas"] .partner-card__name { font-weight: 700; color: var(--text); }

/* ── 15. FOOTER ─────────────────────────────────────────────────────── */
[data-skin="christmas"] .site-footer {
    position: relative;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(232,181,76,.12);
}
/* upside-down snowcap drift along the footer top edge */
[data-skin="christmas"] .site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 14px;
    background-image: var(--snowcap);
    background-size: 220px 14px;
    background-repeat: repeat-x;
    opacity: .5;
    pointer-events: none;
}
[data-skin="christmas"] .footer-grid h4 {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .26em;
    font-size: 9px;
    color: var(--xmas-gold);
}
[data-skin="christmas"] .footer-grid a { color: var(--text-dim); }
[data-skin="christmas"] .footer-grid a:hover { color: var(--xmas-gold-hi); }
[data-skin="christmas"] .footer-brand { color: var(--text-dim); }
[data-skin="christmas"] .footer-bottom {
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--text-mute);
}
[data-skin="christmas"] .lang-switch a.on { background: var(--primary); color: #fff; border-radius: 999px; }
[data-skin="christmas"] .lang-switch a:hover { color: var(--xmas-gold-hi); }

/* ── 16. AUTH / LOGIN PAGES ─────────────────────────────────────────── */
[data-skin="christmas"] .auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-glow);
}
[data-skin="christmas"] .auth-card h1,
[data-skin="christmas"] .auth-card h2 {
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(229,72,77,.25);
}

/* ── 17. MISC POLISH ────────────────────────────────────────────────── */
[data-skin="christmas"] .avatar { border-radius: 11px; }
[data-skin="christmas"] .divider,
[data-skin="christmas"] .sep,
[data-skin="christmas"] .tb-sep { border-color: var(--border); background: var(--border); }
[data-skin="christmas"] .mod-bar {
    background: linear-gradient(90deg, rgba(232,181,76,.12), transparent);
    border: 1px solid rgba(232,181,76,.3);
    border-radius: 11px;
}
[data-skin="christmas"] .mod-bar-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--xmas-gold); }
[data-skin="christmas"] .viewers-bar,
[data-skin="christmas"] .vb-label { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-mute); }
[data-skin="christmas"] .cookie-bar { background: var(--elev); border: 1px solid var(--border); border-radius: 13px; }
[data-skin="christmas"] .text-mute,
[data-skin="christmas"] .muted { color: var(--text-mute); }

/* Keep wide/scrolling content contained */
[data-skin="christmas"] .table-wrap,
[data-skin="christmas"] .post-content pre,
[data-skin="christmas"] .post-content .code-block { max-width: 100%; overflow-x: auto; }

/* ── 17b. FESTIVE EXTRAS (garland lights, snow on ledges, candy) ─────── */
/* Twinkling garland light-string hanging just under the sticky header.
   pointer-events:none so it never blocks the nav/hero below. */
[data-skin="christmas"] .site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 8px;
    z-index: 2;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12px 5px, #f16a6e 2.6px, transparent 3.3px),
        radial-gradient(circle at 32px 5px, #ffd37a 2.6px, transparent 3.3px),
        radial-gradient(circle at 52px 5px, #4cc272 2.6px, transparent 3.3px),
        radial-gradient(circle at 72px 5px, #9cc8e8 2.6px, transparent 3.3px);
    background-size: 80px 8px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 0 4px rgba(255,255,255,.35));
    animation: xmas-garland 3.2s ease-in-out infinite;
}
@keyframes xmas-garland { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Subtle snow settled on the top border of category bars + sidebar widgets.
   Rendered INSIDE (these boxes use overflow:hidden) with the snowcap flipped so
   the bumpy edge hangs down like fresh snow on the ledge. */
[data-skin="christmas"] .fi-cat-bar { position: relative; }
[data-skin="christmas"] .fi-widget { position: relative; }
[data-skin="christmas"] .fi-cat-bar::after,
[data-skin="christmas"] .fi-widget::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 9px;
    background-image: var(--snowcap);
    background-size: 130px 9px;
    background-repeat: repeat-x;
    transform: scaleY(-1);
    opacity: .8;
    pointer-events: none;
    z-index: 4;
}

/* ── 18. REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    [data-skin="christmas"] * { transition: none !important; animation: none !important; }
}

/* ── 19. THEMED HERO — plays /assets/media/hero-christmas.mp4 ────────────
   With a video shipping, the board hero renders as .fi-hero.fi-hero--media
   with a <video class="fi-hero-bg"> + a .fi-hero-overlay. We must NOT force an
   opaque .fi-hero background that fights the video — instead we (a) darken the
   video via the overlay for title readability with a festive tint, (b) keep a
   snowcap along the top edge (drawn above the video + overlay), and (c) supply
   a themed gradient ONLY as the no-video fallback (.fi-hero--off). No stars. */
[data-skin="christmas"] .fi-hero { position: relative; overflow: hidden; }

/* Festive, readable overlay drawn ON TOP of the video */
[data-skin="christmas"] .fi-hero-overlay {
    background:
        linear-gradient(180deg, rgba(11,15,22,.34) 0%, rgba(11,15,22,.55) 45%, rgba(11,15,22,.86) 100%),
        radial-gradient(900px 460px at 82% 4%, rgba(229,72,77,.20), transparent 60%),
        radial-gradient(760px 440px at 8% 112%, rgba(232,181,76,.14), transparent 62%);
}

/* No-video fallback only: a snowy midnight-blue sky (no starfield) */
[data-skin="christmas"] .fi-hero--off {
    min-height: 300px;
    background:
        linear-gradient(180deg, rgba(11,15,22,.55), rgba(11,15,22,.88)),
        radial-gradient(900px 480px at 82% 4%, rgba(229,72,77,.16), transparent 60%),
        radial-gradient(760px 460px at 8% 110%, rgba(232,181,76,.12), transparent 62%),
        radial-gradient(120% 140% at 50% -10%, #1a2740 0%, #121a2b 46%, #0b0e14 100%);
}

/* snowcap along the hero's top edge (renders above video + overlay) */
[data-skin="christmas"] .fi-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;      /* override base .fi-hero::before{width:55%} — else snow spans only the left 55% */
    top: -1px;
    bottom: auto;     /* override base bottom:0 so top+height define a 15px cap, not a stretched box */
    height: 15px;
    background-image: var(--snowcap);
    background-size: 240px 15px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.45));
    z-index: 2;
    pointer-events: none;
    opacity: .96;
}

/* ── 20. SITE-WIDE COZY AMBIANCE ─────────────────────────────────────────
   Warm hearth glow + frosted-window vignette + ice-crystal corners, drawn on
   two FIXED pseudo-layers pinned BEHIND all content (z-index:-1, so they never
   wash over text — content paints on top) with pointer-events:none. Not
   'background-attachment:fixed' (which drops the hero video); real fixed boxes
   instead. They read through the gaps between cards to warm the whole page.
   ------------------------------------------------------------------------- */
[data-skin="christmas"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        /* cozy warm hearth light, low in the bottom-right corner */
        radial-gradient(900px 620px at 90% 108%, rgba(232,181,76,.24), rgba(229,72,77,.11) 40%, transparent 72%),
        /* faint warm floor so the whole lower page feels cozy, not just the corner */
        radial-gradient(1300px 420px at 50% 126%, rgba(232,181,76,.07), transparent 72%),
        /* frosted-window vignette: faint cool light along the other corners */
        radial-gradient(340px 260px at 0% 0%,   rgba(156,200,232,.08), transparent 70%),
        radial-gradient(340px 260px at 100% 0%, rgba(156,200,232,.08), transparent 70%),
        radial-gradient(340px 260px at 0% 100%, rgba(156,200,232,.07), transparent 70%);
}
/* Delicate ice crystals frosting the page corners (symmetric SVG, very light) */
[data-skin="christmas"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .4;
    background-image: var(--xmas-crystal), var(--xmas-crystal), var(--xmas-crystal);
    background-repeat: no-repeat;
    background-size: 94px 94px, 94px 94px, 88px 88px;
    background-position: top 14px left 14px, top 14px right 14px, bottom 16px left 16px;
}

/* ── 21. PINE GARLAND draped along the board hero top ─────────────────────
   On .fi-hero-overlay (z-index:1 — above the video, below the title/stats at
   z-index:2), only present on media heroes (the board). The snowcap (::before,
   z-index:2) sits above it, so snow appears dusted over the garland.
   NOTE: .fi-hero-overlay is already position:absolute (base) — do NOT reset it
   to relative, that collapses the overlay and its ::before never drapes. ---- */
[data-skin="christmas"] .fi-hero-overlay::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 34px;
    z-index: 1;
    pointer-events: none;
    background-image: var(--xmas-garland);
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 210px 34px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.45));
    animation: xmas-lights 3.6s ease-in-out infinite;
}
@keyframes xmas-lights {
    0%, 100% { filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)) drop-shadow(0 0 2px rgba(255,211,122,0)); }
    50%      { filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)) drop-shadow(0 0 5px rgba(255,211,122,.55)); }
}

/* ── 22. DECORATED EVERGREEN TREE + glowing star, tucked in a hero corner ──
   Overrides the base .fi-hero::after (a plain top-left glow) with the tree in
   the bottom-right corner, above the video/overlay (z-index:1) but behind the
   title/stats (z-index:2). A soft gold glow makes the star read as lit. ---- */
[data-skin="christmas"] .fi-hero::after {
    content: "";
    left: auto; top: auto;
    right: 20px; bottom: -2px;
    width: 120px; height: 152px;
    border-radius: 0;
    background: var(--xmas-tree) no-repeat bottom center / contain;
    opacity: .62;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 9px rgba(232,181,76,.22));
    animation: xmas-startwinkle 4.8s ease-in-out infinite;
}
@keyframes xmas-startwinkle {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(232,181,76,.18)); }
    50%      { filter: drop-shadow(0 0 15px rgba(255,211,122,.42)); }
}

/* ── Themed cursor: a small snowflake. Hotspot centered (14,14). Links keep the
   pointer hand and text inputs keep the I-beam so precision is unaffected. */
[data-skin="christmas"] body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' fill='none'%3E%3Cpath d='M14 3v22M4.48 8.5l19.04 11M23.52 8.5l-19.04 11'/%3E%3Cpath d='M14 7l-3.2-3.2M14 7l3.2-3.2M14 21l-3.2 3.2M14 21l3.2 3.2M6.2 11l-4.4-1.2M6.2 11l-1.2-4.4M21.8 17l4.4 1.2M21.8 17l1.2 4.4M6.2 17l-1.2 4.4M6.2 17l-4.4 1.2M21.8 11l1.2-4.4M21.8 11l4.4-1.2'/%3E%3C/g%3E%3C/svg%3E") 14 14, auto;
}
[data-skin="christmas"] a,
[data-skin="christmas"] button,
[data-skin="christmas"] [role="button"],
[data-skin="christmas"] label,
[data-skin="christmas"] summary,
[data-skin="christmas"] .btn { cursor: pointer; }
[data-skin="christmas"] input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
[data-skin="christmas"] textarea,
[data-skin="christmas"] [contenteditable] { cursor: text; }
