/* Noël CRB Corp — the whole public site under « Minuit à la CRB » while the event is open (html[data-season],
   written by the server). The usual site is already a night design: here its indigo becomes pine, its coral
   becomes cranberry and gold, its type becomes Fraunces and Bricolage. Tokens and components come from
   christmas.css (loaded with this file). The Command Center keeps its own look. */

/* ---------- Tokens of the usual site, in pine ---------- */
html[data-season="christmas"] {
    --paper: #0b1712; --pearl: #f6f0e4; --soft: #163027; --ink: #eef3ef; --muted: #a9bab0; --line: #2b4a3d;
    --action: #d2263f; --action-hover: #ec4a60; --accent: #e6bf6b; --accent-ink: #f7dfa2; --accent-soft: #e6bf6b1a; --cyan: #e6bf6b;
    --crb-bg: #0b1712; --crb-surface: #163027; --crb-coral: #e6bf6b; --crb-coral-hover: #f7dfa2; --crb-cream: #f6f0e4;
    --crb-text: #eef3ef; --crb-muted: #a9bab0; --crb-border: #2b4a3d; --crb-lavender: #e6bf6b; --crb-ink: #0b1712;
    color-scheme: dark; background: #0b1712; color: #eef3ef;
}
html[data-season="christmas"] body { font-family: var(--n-ui); background: radial-gradient(90% 50% at 80% -10%, #1d3a2e 0, transparent 60%), radial-gradient(70% 40% at -10% 30%, #13281f 0, transparent 60%), #0b1712; color: #eef3ef; }
html[data-season="christmas"] body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url('/assets/noel/grain.svg') 0 0 / 220px; opacity: .045; mix-blend-mode: overlay; }
html[data-season="christmas"] body > :where(.app-shell, footer) { position: relative; z-index: 2; }
html[data-season="christmas"] .crb-backdrop { display: none; }
:where(html[data-season="christmas"]) :is(h1, h2) { font-family: var(--n-display); font-variation-settings: "SOFT" 60, "WONK" 1; letter-spacing: -.015em; color: #f6f0e4; }
:where(html[data-season="christmas"]) h3 { color: #f6f0e4; }
:where(html[data-season="christmas"]) :where(p, li, small, .muted, .caption) { color: #b9c8bf; }
:where(html[data-season="christmas"]) a { color: #f7dfa2; }
:where(html[data-season="christmas"]) .eyebrow { color: #e6bf6b; font-family: var(--n-ui); font-stretch: 82%; letter-spacing: .14em; }
html[data-season="christmas"] ::selection { background: #d2263f; color: #fff; }
html[data-season="christmas"] :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #e6bf6b; outline-offset: 3px; }

/* ---------- Header: a floating capsule, the mascot wears a hat ---------- */
html[data-season="christmas"] body > header { position: sticky; top: 10px; z-index: 60; max-width: min(1260px, calc(100% - 24px)); min-height: 64px; margin: 10px auto 0; padding: 8px 10px 8px 18px; gap: 18px; border: 1px solid #2b4a3d; border-radius: 22px;
    background: #0b1712e8; -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 18px 40px -22px #000; color: #f6f0e4; view-transition-name: noel-masthead; transition: box-shadow .3s, border-color .3s; }
html[data-season="christmas"] body > header.is-scrolled { background: #0b1712f2; border-color: #e6bf6b44; box-shadow: 0 20px 50px -20px #000; }
html[data-season="christmas"] body > header :is(.brand, .brand .muted) { color: #f6f0e4; font-family: var(--n-display); font-weight: 650; }
html[data-season="christmas"] body > header .brand .muted { color: #e6bf6b; font-style: italic; font-weight: 450; }
html[data-season="christmas"] body > header .brand { position: relative; }
html[data-season="christmas"] body > header .brand img { transition: transform .5s var(--n-spring); }
html[data-season="christmas"] body > header .brand:hover img { transform: rotate(-12deg) scale(1.08); }
html[data-season="christmas"] body > header .brand::before { content: ""; position: absolute; top: -9px; left: 8px; width: 23px; height: 22px; background: linear-gradient(110deg, #ec4a60, #b51c35); border-radius: 15px 15px 0 0; transform: rotate(14deg); z-index: 2; clip-path: polygon(10% 100%, 30% 20%, 75% 0, 100% 40%, 70% 35%, 80% 100%); pointer-events: none; }
html[data-season="christmas"] body > header .brand::after { content: ""; position: absolute; top: 6px; left: 6px; width: 26px; height: 6px; background: #f6f0e4; border-radius: 6px; z-index: 3; transform: rotate(14deg); pointer-events: none; }
html[data-season="christmas"] body > header nav { gap: 4px; }
html[data-season="christmas"] body > header nav a { padding: 9px 14px; border-radius: 12px; font: 600 .95rem/1 var(--n-ui); color: #cfdad3; transition: color .2s, background .2s; }
html[data-season="christmas"] body > header nav a::after { display: none; }
html[data-season="christmas"] body > header nav a:hover { color: #fff; background: #ffffff0d; text-decoration: none; }
html[data-season="christmas"] body > header nav a[aria-current] { color: #0b1712; background: #f6f0e4; }
html[data-season="christmas"] body > header nav a.noel-nav-link { color: #f7dfa2; }
html[data-season="christmas"] body > header nav a.noel-nav-link::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #d2263f; box-shadow: 0 0 0 3px #d2263f33; vertical-align: 1px; animation: noel-bulb 2.4s ease-in-out infinite; }
html[data-season="christmas"] body > header nav a.noel-nav-link[aria-current] { color: #fff; background: #d2263f; }
html[data-season="christmas"] body > header nav a.noel-nav-link[aria-current]::before { background: #f7dfa2; box-shadow: none; }
html[data-season="christmas"] .workspace-search { border-color: #2b4a3d; background: #ffffff08; color: #cfdad3; border-radius: 12px; }
html[data-season="christmas"] .workspace-search kbd { background: #ffffff12; color: #e6bf6b; border-color: #2b4a3d; }
html[data-season="christmas"] .admin-header-link { color: #f7dfa2; }
html[data-season="christmas"] .profile-toggle { background: #d2263f; color: #fff; border-color: #e6bf6b88; box-shadow: 0 0 0 2px #0b1712, 0 0 0 4px #e6bf6b55; }
html[data-season="christmas"] .app-shell > main { padding-top: 24px; }
html[data-season="christmas"] body:has(.noel-hero--home, .noel-event) .app-shell > main { padding-top: 0; }
html[data-season="christmas"] body:has(.noel-hero--home, .noel-event) > header { position: fixed; left: 0; right: 0; }
html[data-season="christmas"] .noel-hero--home, html[data-season="christmas"] .noel-event > .noel-hero { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Buttons ---------- */
html[data-season="christmas"] .btn { color: #fff; border: 0; border-radius: 14px; font-family: var(--n-ui); font-weight: 700; background: linear-gradient(180deg, #ec4a60, #d2263f 55%, #b51c35); box-shadow: 0 1px 0 #ffffff55 inset, 0 -3px 0 #0000002e inset, 0 12px 26px -14px #d2263fcc; transition: transform .28s var(--n-spring), filter .2s, box-shadow .28s; }
html[data-season="christmas"] .btn:hover { color: #fff; filter: brightness(1.06); }
html[data-season="christmas"] .btn.secondary { color: #f6f0e4; background: transparent; border: 1px solid #f6f0e455; box-shadow: none; }
html[data-season="christmas"] .btn.secondary:hover:not(:disabled) { background: #f6f0e412; border-color: #f6f0e4; color: #fff; }
html[data-season="christmas"] .btn.danger { background: #5b1020; }
html[data-season="christmas"] :is(.text-btn, .pref-toggle) { color: #e6bf6b; }
html[data-season="christmas"] .pref-toggle { background: transparent; border-color: #2b4a3d; color: #cfdad3; }

/* ---------- Surfaces: pine, a thin gold line on top, one shadow falling down ---------- */
html[data-season="christmas"] :is(.card, .page-lead, .state-panel, .public-stats, .home-discovery, .lab-card, .guide-card, .member-link, .coin-terminal, .event-card, .tier, .profile-command-center) { background: #10221b; border-color: #2b4a3d; color: #eef3ef; box-shadow: 0 30px 60px -36px #000; }
html[data-season="christmas"] :is(.stats > *, .stat, .metric, .savings-result, .profile-summary .stat) { background: #163027; border-color: #2b4a3d; color: #eef3ef; }
html[data-season="christmas"] :is(.stat, .metric) strong { font-family: var(--n-display); color: #f7dfa2; }
html[data-season="christmas"] .page-lead { position: relative; overflow: hidden; background: radial-gradient(60% 120% at 100% 0, #d2263f33, transparent 60%), linear-gradient(160deg, #163027, #0b1712); border: 1px solid #2b4a3d; }
html[data-season="christmas"] .page-lead h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .98; color: #f6f0e4 !important; }
html[data-season="christmas"] .page-lead :is(p, .caption) { color: #c6d4cb !important; }
html[data-season="christmas"] .page-lead .eyebrow { color: #e6bf6b !important; }
html[data-season="christmas"] .page-lead::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 200px; background: linear-gradient(to top, transparent 0 8%, #e6bf6b18 8%); clip-path: polygon(50% 0, 70% 26%, 61% 26%, 84% 52%, 72% 52%, 96% 82%, 56% 82%, 56% 100%, 44% 100%, 44% 82%, 4% 82%, 28% 52%, 16% 52%, 39% 26%, 30% 26%); pointer-events: none; }
html[data-season="christmas"] :is(input, select, textarea) { background: #0b1712; color: #eef3ef; border-color: #2b4a3d; }
html[data-season="christmas"] :is(input, textarea)::placeholder { color: #7f948a; }
html[data-season="christmas"] :is(input, select, textarea):focus { border-color: #e6bf6b; }
html[data-season="christmas"] input[type=range], html[data-season="christmas"] progress { accent-color: #e6bf6b; }
html[data-season="christmas"] table :is(th, td) { border-color: #2b4a3d; }
html[data-season="christmas"] .card th { background: #163027; color: #e6bf6b; }
html[data-season="christmas"] .card tbody tr:hover { background: #ffffff06; }
html[data-season="christmas"] .card tr.highlight { background: #e6bf6b14; box-shadow: inset 3px 0 0 #e6bf6b; }
html[data-season="christmas"] .card td.amount { color: #f7dfa2; font-family: var(--n-display); font-weight: 650; }
html[data-season="christmas"] .card .level-ring-track { stroke: #2b4a3d; }
html[data-season="christmas"] .card .level-ring-fill { stroke: #e6bf6b; filter: none; }
html[data-season="christmas"] body[data-page^="/leaderboard/"] #board td.rank[data-rank="1"]::before { background: linear-gradient(135deg, #f7dfa2, #c9962f); color: #2b1e05; box-shadow: 0 3px 0 #7a5a1a; }
html[data-season="christmas"] body[data-page^="/leaderboard/"] #board td.rank[data-rank="2"]::before { background: linear-gradient(135deg, #f1f3f0, #a9b4ae); color: #1a221e; }
html[data-season="christmas"] body[data-page^="/leaderboard/"] #board td.rank[data-rank="3"]::before { background: linear-gradient(135deg, #f0b98b, #a3602f); color: #2a1406; }
html[data-season="christmas"] :is(.tabs a, .dashboard-tabs button, .period-switch button) { background: #10221b; color: #cfdad3; border-color: #2b4a3d; box-shadow: none; }
html[data-season="christmas"] :is(.tabs a[aria-current], .dashboard-tabs [aria-selected=true], .period-switch button[aria-pressed=true]) { background: #f6f0e4; color: #0b1712; border-color: #f6f0e4; }
html[data-season="christmas"] .period-switch { background: #10221b; border-color: #2b4a3d; }
html[data-season="christmas"] .module-symbol { background: #163027; border-color: #2b4a3d; color: #e6bf6b; }
html[data-season="christmas"] .module-symbol img { filter: brightness(0) invert(83%) sepia(31%) saturate(704%) hue-rotate(352deg) brightness(95%); }
html[data-season="christmas"] aside { background: #10221b; border-color: #2b4a3d; box-shadow: none; }
html[data-season="christmas"] aside .eyebrow { color: #e6bf6b; }
html[data-season="christmas"] aside a { color: #cfdad3; border-radius: 10px; }
html[data-season="christmas"] aside a:hover { background: #ffffff0a; color: #fff; }
html[data-season="christmas"] aside a[aria-current] { background: #d2263f; color: #fff; box-shadow: none; }
html[data-season="christmas"] .admin-access-card { background: linear-gradient(110deg, #163027, #10221b); border-color: #e6bf6b44; }
html[data-season="christmas"] :is(.profile-popover, #quick-navigation, dialog:not(.advent-cinema):not(.noel-dialog), .workspace-results, .custom-select-options) { background: #10221b; color: #eef3ef; border-color: #2b4a3d; }
html[data-season="christmas"] :is(.profile-popover, #quick-navigation) :is(a, button) { color: #eef3ef; }
html[data-season="christmas"] :is(.profile-popover, #quick-navigation) :is(a, button):hover { background: #ffffff0a; }
html[data-season="christmas"] main code { background: #163027; color: #f7dfa2; }
html[data-season="christmas"] #docs-nav { background: #10221b; border-color: #2b4a3d; }
html[data-season="christmas"] #docs-nav a[aria-current] { background: #f6f0e4; color: #0b1712; }
html[data-season="christmas"] .reading-progress { background: linear-gradient(90deg, #d2263f, #e6bf6b) !important; filter: none !important; }
html[data-season="christmas"] .toast { background: #f6f0e4; color: #14211b; border: 0; box-shadow: 0 20px 40px -14px #000; }

/* ---------- Home: podiums, events, labs, guide, finale ---------- */
html[data-season="christmas"] body[data-page="/"] .home-podium { --accent: #e6bf6b; --accent-soft: #e6bf6b22; --accent-glow: #e6bf6b33; --accent-ink: #0b1712; }
html[data-season="christmas"] body[data-page="/"] .home-podium--xp { --accent: #ec4a60; --accent-soft: #ec4a6022; --accent-glow: #ec4a6033; --accent-ink: #fff; }
html[data-season="christmas"] body[data-page="/"] .home-podium .podium-card { background: linear-gradient(170deg, #163027, #0b1712 80%); border-color: #2b4a3d; color: #eef3ef; }
html[data-season="christmas"] body[data-page="/"] .home-podium .podium-card :is(h3, strong) { color: #f6f0e4; }
html[data-season="christmas"] body[data-page="/"] .home-podium .podium-card strong { font-family: var(--n-display); }
html[data-season="christmas"] :is(.event-cover-empty) { background: radial-gradient(circle at 20% 30%, #d2263f55, transparent 50%), radial-gradient(circle at 80% 70%, #e6bf6b33, transparent 50%), #163027; }
html[data-season="christmas"] .event-when, html[data-season="christmas"] .event-countdown strong { color: #f7dfa2; }
html[data-season="christmas"] :is(.segmented span, .quiz-answers button) { background: #10221b; border-color: #2b4a3d; color: #eef3ef; }
html[data-season="christmas"] .segmented input:checked + span { background: #d2263f; border-color: #d2263f; color: #fff; box-shadow: none; }
html[data-season="christmas"] .quiz-answers button:hover { border-color: #e6bf6b; box-shadow: -4px 0 0 #e6bf6b; }
html[data-season="christmas"] .chest-body { background: linear-gradient(#c22a40, #8e1c30); border-color: #4b0f1b; }
html[data-season="christmas"] .chest-lid { background: linear-gradient(#d33b50, #b8233a); border-color: #4b0f1b; }
html[data-season="christmas"] .chest-body i { background: linear-gradient(#f7dfa2, #e6bf6b); }
html[data-season="christmas"] .lab-mode, html[data-season="christmas"] .cc-pill { color: #e6bf6b; background: #e6bf6b14; border-color: #e6bf6b44; }

/* Leftovers of the coral of the usual theme. */
html[data-season="christmas"] :is(.section-heading a, .card a:not(.btn), .licence-card a, .licences-raw a, .event-foot a, .lab-help summary) { color: #f7dfa2; }
html[data-season="christmas"] .home-guide .guide-card strong, html[data-season="christmas"] .player-card strong { color: #f7dfa2; }
html[data-season="christmas"] .event-next-label { background: linear-gradient(90deg, #e6bf6b, #f7dfa2); color: #14211b; font-family: var(--n-ui); }
html[data-season="christmas"] .event-card.is-next, html[data-season="christmas"] .event-card:hover { border-color: #e6bf6b88; box-shadow: 0 30px 60px -36px #000, 0 0 0 1px #e6bf6b44; }
html[data-season="christmas"] :is(.ring-fill, .card .level-ring-fill) { stroke: #e6bf6b; }
html[data-season="christmas"] :is(.quiz-progress span.is-done, .lm-bar i) { background: linear-gradient(90deg, #d2263f, #e6bf6b); }
html[data-season="christmas"] .savings-form output, html[data-season="christmas"] .profile-account-state, html[data-season="christmas"] .licence-kind { color: #f7dfa2; }
html[data-season="christmas"] .podium-avatar { box-shadow: 0 0 0 3px #0b1712, 0 0 0 5px var(--accent, #e6bf6b); }
html[data-season="christmas"] .rank-change.is-new { color: #f7dfa2; }

/* ---------- Community in voice: a fireside, not a dashboard ---------- */
html[data-season="christmas"] .noel-community { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(70px, 9vw, 120px) max(16px, calc((100vw - 1240px) / 2 + 24px)); background: radial-gradient(50% 60% at 50% 100%, #3a2a1255, transparent 70%), linear-gradient(180deg, #07100c, #0b1712); }
html[data-season="christmas"] .noel-community .public-stats { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: end; padding: 0; background: none; border: 0; box-shadow: none; }
html[data-season="christmas"] .noel-community .public-stats > div:first-child { display: block; }
html[data-season="christmas"] .noel-community .public-stats .noel-title { margin: 12px 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); }
html[data-season="christmas"] .noel-community .stats { gap: 18px; }
html[data-season="christmas"] .noel-community .stats .stat { border-left: 0; box-shadow: none; }
html[data-season="christmas"] .noel-community .stats .stat span { color: #a9bab0; }
html[data-season="christmas"] .noel-community .public-stats > div > p { color: #a9bab0; }
html[data-season="christmas"] .noel-community .stats .stat { background: transparent; border: 0; border-top: 1px solid #e6bf6b55; border-radius: 0; padding: 16px 0 0; }
html[data-season="christmas"] .noel-community .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-season="christmas"] .noel-community .stats .stat { min-width: 0; }
html[data-season="christmas"] .noel-community .stats .stat strong { font-size: clamp(1.9rem, 3.2vw, 3rem); color: #f7dfa2; overflow-wrap: anywhere; }
html[data-season="christmas"] .crb-live { margin-top: clamp(40px, 6vw, 70px); border: 0; background: none; box-shadow: none; padding: 0; }
html[data-season="christmas"] .crb-live .section-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
html[data-season="christmas"] .crb-live .eyebrow { color: #e6bf6b; }
html[data-season="christmas"] .live-dot { background: #ec4a60; box-shadow: 0 0 0 4px #ec4a6033; }
html[data-season="christmas"] .live-meta { background: transparent; border: 0; box-shadow: none; }
html[data-season="christmas"] .live-chip { background: #10221b; border: 1px solid #2b4a3d; color: #cfdad3; }
html[data-season="christmas"] .live-chip strong { color: #f7dfa2; font-family: var(--n-display); }
html[data-season="christmas"] .voice-room { position: relative; overflow: hidden; background: linear-gradient(180deg, #163027, #10221b 70%); border: 1px solid #2b4a3d; border-radius: 22px; box-shadow: 0 30px 50px -34px #000; transition: transform .5s var(--n-out), border-color .3s; }
html[data-season="christmas"] .voice-room::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 90px; border-radius: 50%; background: radial-gradient(#f3a35f55, transparent 70%); pointer-events: none; animation: noel-fire 3.2s ease-in-out infinite; }
@keyframes noel-fire { 50% { opacity: .6; transform: scaleX(1.08); } }
html[data-season="christmas"] .voice-room:hover { transform: translateY(-4px); border-color: #e6bf6b66; }
html[data-season="christmas"] .voice-room h3 { font-family: var(--n-display); color: #f6f0e4; }
html[data-season="christmas"] .voice-name { color: #eef3ef; }
html[data-season="christmas"] .voice-count { background: #e6bf6b1f; color: #f7dfa2; border-color: #e6bf6b44; }
html[data-season="christmas"] .voice-wave i { background: #ec4a60; }
html[data-season="christmas"] .voice-avatar { background: linear-gradient(135deg, #e6bf6b, #b51c35); color: #fff; box-shadow: 0 0 0 3px #10221b, 0 0 0 5px #e6bf6b; }
html[data-season="christmas"] .voice-avatar.is-muted { box-shadow: 0 0 0 3px #10221b, 0 0 0 5px #4d6359; }
html[data-season="christmas"] .voice-members li.is-new { animation: noel-join .8s var(--n-spring); }
@keyframes noel-join { from { opacity: 0; transform: translateY(12px) scale(.8); } }
html[data-season="christmas"] .voice-flag { background: #d2263f; color: #fff; }
html[data-season="christmas"] .live-empty { background: #10221b; border: 1px dashed #2b4a3d; color: #cfdad3; }
html[data-season="christmas"] .live-empty strong { color: #f6f0e4; font-family: var(--n-display); }

/* ---------- Intro of the first visit, in the night ---------- */
html[data-season="christmas"] .crb-intro { background: radial-gradient(circle at 50% 45%, #1d3a2e, #050b08 70%) !important; }
html[data-season="christmas"] .crb-intro :is(.intro-ring) { border-color: #e6bf6b !important; box-shadow: 0 0 60px #e6bf6b55 !important; }

/* ---------- Footer ---------- */
html[data-season="christmas"] footer { background: transparent; border-top: 1px solid #2b4a3d; color: #a9bab0; }
html[data-season="christmas"] footer :is(a, .brand) { color: #cfdad3; }
html[data-season="christmas"] footer .brand { font-family: var(--n-display); }

/* ---------- Mobile dock: the thumb zone ---------- */
.noel-dock { display: none; }
@media (max-width: 760px) {
    html[data-season="christmas"] body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    html[data-season="christmas"] body > header { top: 8px; min-height: 56px; margin-top: 8px; padding: 6px 8px 6px 14px; border-radius: 18px; }
    html[data-season="christmas"] body > header nav { display: none; }
    html[data-season="christmas"] body > header { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
    html[data-season="christmas"] body > header .brand { margin-right: auto; }
    html[data-season="christmas"] body > header .workspace-search { display: inline-flex; grid-row: auto; grid-column: auto; order: 0; margin-left: auto; min-height: 42px; padding: 0 11px; }
    html[data-season="christmas"] body > header .workspace-search > :is(span, kbd) { display: none; }
    html[data-season="christmas"] body > header .admin-header-link { display: none; }
    html[data-season="christmas"] body > header .profile-toggle { width: 42px; height: 42px; }
    .noel-dock { position: fixed; z-index: 70; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px; border-radius: 22px;
        background: #0b1712f2; border: 1px solid #2b4a3d; box-shadow: 0 20px 40px -10px #000; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); view-transition-name: noel-dock; }
    .noel-dock a { position: relative; display: grid; justify-items: center; gap: 3px; min-height: 52px; padding: 7px 2px 6px; border-radius: 16px; color: #a9bab0; text-decoration: none; font: 650 .66rem/1 var(--n-ui); transition: color .2s, background .2s, transform .2s var(--n-spring); -webkit-tap-highlight-color: transparent; }
    .noel-dock a:active { transform: scale(.92); }
    .noel-dock a[aria-current] { color: #f6f0e4; background: #ffffff0d; }
    .noel-dock a[aria-current]::after { content: ""; position: absolute; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #e6bf6b; }
    .noel-dock a.is-main { margin-top: -22px; min-height: 64px; color: #fff; background: linear-gradient(180deg, #ec4a60, #b51c35); box-shadow: 0 0 0 4px #0b1712, 0 12px 24px -8px #d2263f; border-radius: 20px; }
    .noel-dock a.is-main svg { width: 26px; height: 26px; }
    html[data-season="christmas"] .noel-subnav { top: 72px; }
}

/* ---------- Page transitions: the masthead stays, the page slides in ---------- */
@media (prefers-reduced-motion: no-preference) {
    html[data-season="christmas"]::view-transition-old(root) { animation: noel-page-out .32s var(--n-inout) both; }
    html[data-season="christmas"]::view-transition-new(root) { animation: noel-page-in .5s var(--n-out) both; }
    html[data-season="christmas"] .noel-poster--run { view-transition-name: poster-run; }
    html[data-season="christmas"] .noel-poster--factory { view-transition-name: poster-factory; }
    html[data-season="christmas"] .noel-poster--arena { view-transition-name: poster-arena; }
}
@keyframes noel-page-out { to { opacity: 0; transform: translateY(-14px); filter: blur(3px); } }
@keyframes noel-page-in { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Toast of the motion layer (website elf, mascot) ---------- */
.noel-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: min(92vw, 420px); padding: 14px 18px; border-radius: 16px; font: 600 .95rem/1.4 var(--n-ui); color: #14211b; background: #f6f0e4; box-shadow: 0 24px 50px -16px #000; transform: translateX(-50%); animation: noel-toast 3.6s var(--n-out) forwards; pointer-events: none; }
@media (max-width: 760px) { .noel-toast { bottom: calc(100px + env(safe-area-inset-bottom)); } }
@keyframes noel-toast { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.96); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) { html[data-season="christmas"] * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Leaderboards in the night: pine rows, gold podium, mascot-cream initials ---------- */
html[data-season="christmas"] body[data-page^="/leaderboard/"] .tabs a[aria-current] { background: #f6f0e4; border-color: #f6f0e4; color: #0b1712; box-shadow: none; }
html[data-season="christmas"] :is(.card .table-wrap, .card table, .card tbody tr, body[data-page^="/leaderboard/"] #board tbody tr) { background: transparent; }
html[data-season="christmas"] body[data-page^="/leaderboard/"] #board tbody tr { border-bottom-color: #2b4a3d; }
html[data-season="christmas"] body[data-page^="/leaderboard/"] #board tbody tr:hover { background: #ffffff07; }
html[data-season="christmas"] .card .member-cell :is(img, .avatar) { box-shadow: 0 0 0 2px #0b1712, 0 0 0 3px #2b4a3d; }
html[data-season="christmas"] .card .member-cell .avatar.small { background: linear-gradient(135deg, #f6f0e4, #e6bf6b); color: #14211b; font-family: var(--n-display); }
html[data-season="christmas"] .card .member-name { color: #f6f0e4; }

/* ---------- Tour of the five universes and level ladder, under the pines ---------- */
html[data-season="christmas"] .tour-scene { background: radial-gradient(70% 90% at 85% 10%, #1f4335, transparent 60%), linear-gradient(160deg, #163027, #0b1712 75%); border-color: #2b4a3d; box-shadow: 0 40px 70px -40px #000; color: #eef3ef; }
html[data-season="christmas"] .tour-scene::before { border-color: #e6bf6b33; }
html[data-season="christmas"] .tour-scene h3 { font-family: var(--n-display); color: #f6f0e4; }
html[data-season="christmas"] .tour-scene .scene-index { color: #e6bf6b; }
html[data-season="christmas"] .tour-scene .scene-word { color: transparent; -webkit-text-stroke-color: #e6bf6b2e; }
html[data-season="christmas"] .tour-gauge a { background: #10221b; border-color: #2b4a3d; color: #cfdad3; }
html[data-season="christmas"] .tour-gauge a:hover, html[data-season="christmas"] .tour-gauge a[aria-current="step"] { background: #e6bf6b; border-color: #e6bf6b; color: #14211b; }
html[data-season="christmas"] .tour-gauge .gauge-track { background: #2b4a3d; }
html[data-season="christmas"] .tour-gauge .gauge-fill { background: linear-gradient(90deg, #d2263f, #e6bf6b); }
html[data-season="christmas"] .ladder-meter { background: radial-gradient(70% 90% at 85% 10%, #b21a3355, transparent 60%), linear-gradient(160deg, #163027, #0b1712); border-color: #2b4a3d; }
html[data-season="christmas"] .ladder::after { background: linear-gradient(#e6bf6b, #d2263f); }
html[data-season="christmas"] .tier.is-current { border-color: #e6bf6b; }
html[data-season="christmas"] .tier.is-reached .tier-dot { background: #e6bf6b; box-shadow: 0 0 0 2px #e6bf6b, 0 0 14px #e6bf6b88; }
html[data-season="christmas"] .tier-level { color: #f7dfa2; font-family: var(--n-display); }

/* ---------- Second pass: softer corners everywhere, airy page leads, guide search, community figures ---------- */
html[data-season="christmas"] :is(.card, .state-panel, .lab-card, .guide-card, .member-link, .event-card, .tier, .profile-command-center, .doc-section, #docs-nav, .docs-nav, .ladder-meter, .voice-room, .coin-terminal, .home-discovery, .podium-card, .live-empty, .crb-live .live-card) { border-radius: 26px; }
html[data-season="christmas"] .page-lead { margin: 18px 0 30px; padding: clamp(30px, 4.6vw, 60px) clamp(24px, 5.2vw, 68px); border-radius: 32px; box-shadow: 0 34px 70px -44px #000; }
html[data-season="christmas"] .page-lead h1 { margin: 14px 0 14px; }
html[data-season="christmas"] .page-lead > p { margin-bottom: 0; }
html[data-season="christmas"] .page-lead .eyebrow { border-left: 0; padding: 6px 12px; border-radius: 999px; background: #e6bf6b1f; letter-spacing: .12em; }
html[data-season="christmas"] :is(#docs-search, .docs-search-input) { width: min(100%, 640px); padding: 16px 24px; background: #10221b; color: #f6f0e4; border: 1px solid #2b4a3d; border-radius: 999px !important; box-shadow: inset 0 1px 0 #ffffff08, 0 18px 40px -30px #000; transition: border-color .25s, box-shadow .25s, background .25s; }
html[data-season="christmas"] :is(#docs-search, .docs-search-input)::placeholder { color: #8fa598; }
html[data-season="christmas"] :is(#docs-search, .docs-search-input):hover { border-color: #3d6352; }
html[data-season="christmas"] :is(#docs-search, .docs-search-input):focus { outline: none; background: #132a21; border-color: #e6bf6b; box-shadow: 0 0 0 4px #e6bf6b24, 0 18px 40px -30px #000; }
html[data-season="christmas"] #docs-nav { padding: 14px; }
html[data-season="christmas"] #docs-nav a { border-radius: 14px; }
html[data-season="christmas"] #docs-content .doc-section { box-shadow: 0 30px 60px -40px #000; }

/* Community figures: centred in rounded cards, a gold capsule on top that stretches under the pointer. */
html[data-season="christmas"] .noel-community .stats { gap: 16px; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 154px; padding: 30px 18px 24px; text-align: center; border-radius: 28px; background: linear-gradient(170deg, #163027, #10221b); border: 1px solid #2b4a3d; box-shadow: 0 24px 50px -34px #000; transition: translate .45s var(--n-out), border-color .3s, box-shadow .3s; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat::before { left: 50%; top: 0; bottom: auto; width: 56px; height: 6px; translate: -50% 0; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, #d2263f, #e6bf6b); transition: width .55s var(--n-out), height .3s; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 0, #e6bf6b1c, transparent 70%); opacity: 0; transition: opacity .35s; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat:hover { translate: 0 -6px; border-color: #e6bf6b66; box-shadow: 0 34px 60px -34px #000, 0 0 0 4px #e6bf6b12; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat:hover::before { width: 72%; height: 7px; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat:hover::after { opacity: 1; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat strong { order: -1; margin: 0; font-family: var(--n-display); font-weight: 600; font-size: clamp(2.3rem, 3.6vw, 3.2rem); line-height: 1; color: #f7dfa2; white-space: nowrap; }
html[data-season="christmas"] .noel-community .public-stats .stats .stat span { max-width: 22ch; font-size: .9rem; line-height: 1.35; color: #a9bab0; }
@media (max-width: 600px) {
    html[data-season="christmas"] .noel-community .public-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    html[data-season="christmas"] .noel-community .public-stats .stats .stat { min-height: 128px; flex-direction: column; align-items: center; padding: 24px 12px 18px; }
    html[data-season="christmas"] .noel-community .public-stats .stats .stat strong { font-size: 2rem; }
    html[data-season="christmas"] .noel-community .public-stats .stats .stat span { max-width: none; font-size: .8rem; }
}

/* ---------- Tour in Fluent 3D: games, CRB Coin, the server's real levels, a rounded podium ---------- */
html[data-season="christmas"] .fx-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 118px); gap: 16px; justify-content: center; rotate: -4deg; }
html[data-season="christmas"] .fx-game { position: relative; top: 0; display: grid; justify-items: center; gap: 2px; padding: 22px 8px 14px; border-radius: 24px; background: linear-gradient(170deg, #fbf7ee, #e9dfcc); color: #14211b; box-shadow: 0 9px 0 #b9a888, 0 26px 40px -16px #000; overflow: hidden; transform: perspective(600px) rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * 1deg)); transition: top .4s var(--n-out), transform .4s var(--n-out), box-shadow .4s; }
html[data-season="christmas"] .fx-game::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, #d2263f, #b51c35); }
html[data-season="christmas"] .fx-game:nth-child(even)::before { background: linear-gradient(90deg, #e6bf6b, #c99a3f); }
html[data-season="christmas"] .fx-game:nth-child(4), html[data-season="christmas"] .fx-game:nth-child(5) { translate: 67px 0; }
html[data-season="christmas"] .fx-game:hover { top: -10px; box-shadow: 0 9px 0 #b9a888, 0 40px 50px -18px #000; }
html[data-season="christmas"] .fx-game-icon img { display: block; width: 64px; height: 64px; filter: drop-shadow(0 8px 10px #0004); animation: fx-float 4.4s ease-in-out infinite; }
html[data-season="christmas"] .fx-game:nth-child(2) .fx-game-icon img { animation-delay: -.9s; } html[data-season="christmas"] .fx-game:nth-child(3) .fx-game-icon img { animation-delay: -1.8s; }
html[data-season="christmas"] .fx-game:nth-child(4) .fx-game-icon img { animation-delay: -2.7s; } html[data-season="christmas"] .fx-game:nth-child(5) .fx-game-icon img { animation-delay: -3.6s; }
html[data-season="christmas"] .fx-game:hover .fx-game-icon img { animation: fx-hop .7s var(--n-out); }
html[data-season="christmas"] .fx-game b { margin-top: 6px; font: 700 1rem/1.1 var(--n-ui); }
html[data-season="christmas"] .fx-game small { font: 600 .74rem/1.2 var(--n-ui); color: #6b5a3e; }

html[data-season="christmas"] .fx-coin { position: relative; width: min(100%, 380px); padding-top: 60px; perspective: 700px; }
html[data-season="christmas"] .fx-coin-face { position: absolute; z-index: 2; right: -14px; top: -34px; width: 132px; height: 132px; filter: drop-shadow(0 20px 24px #0009); animation: fx-coin 7s var(--n-inout) infinite; }
html[data-season="christmas"] .fx-coin-face img { width: 132px; height: 132px; }
html[data-season="christmas"] .fx-coin:hover .fx-coin-face { animation-duration: 1.6s; }
html[data-season="christmas"] .fx-wallet { list-style: none; margin: 0; padding: 20px; display: grid; gap: 10px; border-radius: 30px; background: linear-gradient(170deg, #163027, #0f1f19); border: 1px solid #2b4a3d; box-shadow: 0 30px 60px -30px #000; }
html[data-season="christmas"] .fx-wallet li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 22px; background: #ffffff06; transition: background .3s, translate .35s var(--n-out); }
html[data-season="christmas"] .fx-wallet li:hover { background: #ffffff0e; translate: 6px 0; }
html[data-season="christmas"] .fx-wallet img { width: 40px; height: 40px; filter: drop-shadow(0 6px 8px #0005); }
html[data-season="christmas"] .fx-wallet b { display: block; font: 700 .98rem/1.2 var(--n-ui); color: #f6f0e4; }
html[data-season="christmas"] .fx-wallet small { font-size: .8rem; color: #a9bab0; }
html[data-season="christmas"] .fx-wallet i { position: relative; grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #23392f; overflow: hidden; }
html[data-season="christmas"] .fx-wallet i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: inherit; background: linear-gradient(90deg, #b51c35, #ec4a60); transition: width .8s var(--n-out); }
html[data-season="christmas"] .fx-wallet li:nth-child(2) i::after { width: 84%; background: linear-gradient(90deg, #c99a3f, #f7dfa2); }
html[data-season="christmas"] .fx-wallet li:nth-child(3) i::after { width: 46%; background: linear-gradient(90deg, #e9dfcc, #fbf7ee); }
html[data-season="christmas"] .fx-wallet li:hover i::after { width: 96%; }

html[data-season="christmas"] .fx-levels { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 12px; width: min(100%, 460px); height: 270px; }
html[data-season="christmas"] .fx-levels li { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 12px; padding: 18px 8px 14px; border-radius: 24px; background: linear-gradient(180deg, #1c3a2f, #10221b); border: 1px solid #2b4a3d; box-shadow: 0 24px 40px -24px #000; transition: translate .4s var(--n-out), border-color .3s; }
html[data-season="christmas"] .fx-levels li:nth-last-child(4) { height: 44%; } html[data-season="christmas"] .fx-levels li:nth-last-child(3) { height: 60%; }
html[data-season="christmas"] .fx-levels li:nth-last-child(2) { height: 78%; } html[data-season="christmas"] .fx-levels li:last-child { height: 100%; border-color: #e6bf6b88; background: linear-gradient(180deg, #5b1422, #2a0d14 60%, #10221b); }
html[data-season="christmas"] .fx-levels li:hover { translate: 0 -6px; border-color: #e6bf6b; }
html[data-season="christmas"] .fx-level-badge { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cf, #e6bf6b 58%, #b88a35); box-shadow: 0 0 0 5px #0b1712, 0 10px 20px #0006; transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
html[data-season="christmas"] .fx-level-badge b { font: 700 1.15rem/1 var(--n-display); color: #14211b; }
html[data-season="christmas"] .fx-level-badge img { position: absolute; top: -32px; left: 50%; translate: -50% 0; width: 34px; height: 34px; filter: drop-shadow(0 6px 6px #0006); }
html[data-season="christmas"] .fx-levels li:hover .fx-level-badge { transform: rotate(-10deg) scale(1.08); }
html[data-season="christmas"] .fx-level-name { font: 700 .8rem/1.25 var(--n-ui); color: #f6f0e4; text-align: center; overflow-wrap: anywhere; }
html[data-season="christmas"] .fx-levels.is-empty { display: grid; place-items: center; }

html[data-season="christmas"] .fx-podium { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 0 22px 24px; }
html[data-season="christmas"] .fx-podium::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; border-radius: 999px; background: linear-gradient(90deg, #163027, #24493b, #163027); border: 1px solid #2b4a3d; box-shadow: 0 22px 30px -16px #000; }
html[data-season="christmas"] .fx-step { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 4px; width: 98px; padding-top: 14px; border-radius: 28px 28px 20px 20px; background: linear-gradient(#fbf7ee, #ddd0b8); box-shadow: inset 0 -10px 0 #0000001a, 0 20px 30px -14px #000; transition: translate .45s var(--n-out); }
html[data-season="christmas"] .fx-step-1 { height: 204px; background: linear-gradient(#f7dfa2, #d9ab4f); }
html[data-season="christmas"] .fx-step-2 { height: 154px; }
html[data-season="christmas"] .fx-step-3 { height: 120px; background: linear-gradient(#ec4a60, #b51c35); }
html[data-season="christmas"] .fx-medal { margin-top: -50px; filter: drop-shadow(0 10px 12px #0007); transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
html[data-season="christmas"] .fx-medal img { display: block; }
html[data-season="christmas"] .fx-step b { font: 700 2.3rem/1 var(--n-display); color: #14211b; }
html[data-season="christmas"] .fx-step-3 b { color: #fff; }
html[data-season="christmas"] .fx-step:hover { translate: 0 -8px; }
html[data-season="christmas"] .fx-step:hover .fx-medal { transform: rotate(-14deg) scale(1.14); }
html[data-season="christmas"] .community-orbit { border-color: #e6bf6b55; }
html[data-season="christmas"] .community-orbit::after { border-color: #d2263f55; }
html[data-season="christmas"] .community-orbit .infinity { color: #e6bf6b; text-shadow: 0 8px 30px #e6bf6b55; }
html[data-season="christmas"] .orbit-dot { border-color: #0b1712; background: linear-gradient(135deg, #fbf7ee, #e6bf6b); }
html[data-season="christmas"] .orbit-dot:nth-of-type(odd) { background: linear-gradient(135deg, #ec4a60, #b51c35); }
@keyframes fx-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes fx-hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-14px) scale(1.12) rotate(-8deg); } 70% { transform: translateY(2px) scale(.96); } 100% { transform: none; } }
@keyframes fx-coin { 0%, 38% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-12px); } 62%, 100% { transform: rotateY(360deg) translateY(0); } }
@media (max-width: 760px) {
    html[data-season="christmas"] .fx-games { grid-template-columns: repeat(3, 88px); gap: 12px; }
    html[data-season="christmas"] .fx-game { padding: 16px 6px 10px; border-radius: 20px; }
    html[data-season="christmas"] .fx-game:nth-child(4), html[data-season="christmas"] .fx-game:nth-child(5) { translate: 50px 0; }
    html[data-season="christmas"] .fx-game-icon img { width: 46px; height: 46px; }
    html[data-season="christmas"] .fx-game b { font-size: .82rem; }
    html[data-season="christmas"] .fx-coin-face, html[data-season="christmas"] .fx-coin-face img { width: 96px; height: 96px; }
    html[data-season="christmas"] .fx-coin-face { right: -6px; top: -22px; }
    html[data-season="christmas"] .fx-levels { height: 220px; gap: 8px; }
    html[data-season="christmas"] .fx-level-badge { width: 44px; height: 44px; }
    html[data-season="christmas"] .fx-level-name { font-size: .7rem; }
    html[data-season="christmas"] .fx-step { width: 76px; } html[data-season="christmas"] .fx-step-1 { height: 164px; } html[data-season="christmas"] .fx-step-2 { height: 124px; } html[data-season="christmas"] .fx-step-3 { height: 96px; }
}
@media (max-width: 400px) { html[data-season="christmas"] .fx-games { grid-template-columns: repeat(3, 76px); gap: 10px; } html[data-season="christmas"] .fx-game:nth-child(4), html[data-season="christmas"] .fx-game:nth-child(5) { translate: 43px 0; } }
@media (prefers-reduced-motion: reduce) { html[data-season="christmas"] :is(.fx-game-icon img, .fx-coin-face) { animation: none !important; } }

/* ---------- Status page in the night palette ---------- */
html[data-season="christmas"] body[data-page="/status"] { --st-ok: #7fdcae; --st-down: #ec4a60; --st-warn: #e6bf6b; --st-card: #10221b; --st-card2: #183429; --st-line: #2b4a3d; --st-text: #f6f0e4; --st-muted: #a9bab0; --st-accent: #e6bf6b; --st-accent2: #d2263f; }
html[data-season="christmas"] .status-summary { background: radial-gradient(60% 140% at 0 0, color-mix(in srgb, var(--beacon) 14%, transparent), transparent 60%), linear-gradient(160deg, #163027, #0f1f19); box-shadow: 0 30px 60px -40px #000; }
html[data-season="christmas"] .status-headline { font-family: var(--n-display); font-weight: 600; }
html[data-season="christmas"] :is(.status-panel h2, .status-stack h2) { font-family: var(--n-display); font-weight: 600; font-size: 1.6rem; }
html[data-season="christmas"] .bot-status .service-row h2 { font-family: var(--n-display); }
html[data-season="christmas"] .tier-role { background: #d2263f26; color: #f7dfa2; border: 1px solid #d2263f55; font-family: var(--n-ui); }
