/* =====================================================================
   WarsNuto — DA « Encre Écarlate » (nouvelle génération)
   Planches de manga : noir d'encre, trame, lignes de vitesse, écarlate et dorure.
   Toutes les règles sont préfixées par body.ng : les autres pages ne changent pas.
   ===================================================================== */
@font-face { font-family: "WN Display"; src: url("/assets/fonts/dela-gothic-one-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "WN Sans"; src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

html:has(body.ng) { background: #0a0a0f; color-scheme: dark; }
html body.ng {
  --ng-ink: #0a0a0f; --ng-ink-2: #121119; --ng-ink-3: #1b1925; --ng-ink-4: #262334;
  --ng-paper: #f4efe6; --scarlet: #e43d45; --scarlet-deep: #b8242c; --gold-foil: #efc66b; --ng-gold-deep: #d6961c;
  --ng-line: rgba(255, 255, 255, .09); --ng-line-strong: rgba(255, 255, 255, .18); --ng-muted: #b3afc4; --ng-faint: #8a86a0;
  --display: "WN Display", "Arial Black", Impact, sans-serif; --sans: "WN Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  /* Jetons hérités, remappés pour les composants réutilisés */
  --bg: var(--ng-ink); --chrome: #0e0d14; --surface: var(--ng-ink-2); --public-card: var(--ng-ink-2); --panel: rgba(255, 255, 255, .04); --panel-strong: rgba(255, 255, 255, .08);
  --line: var(--ng-line); --line-strong: var(--ng-line-strong); --text: #f6f4fb; --muted: var(--ng-muted); --faint: var(--ng-faint);
  --red: var(--scarlet); --gold: var(--gold-foil); --gold-button: var(--gold-foil); --green: #3ddc97; --control-bg: rgba(255, 255, 255, .05);
  --nav-active-bg: rgba(228, 61, 69, .14); --shadow: 0 24px 60px rgba(0, 0, 0, .45); --radius: 14px; --button-radius: 12px;
  background: var(--ng-ink); background-image: none; color: var(--text); font-family: var(--sans); letter-spacing: 0;
}
html body.ng::before { /* grain d'encre */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 20% 10%, rgba(228, 61, 69, .07), transparent 40%), radial-gradient(circle at 85% 80%, rgba(239, 198, 107, .05), transparent 45%);
}
html body.ng :is(h1, h2, h3) { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; color: var(--text); }
html body.ng :is(.v2-section-head, .ng-head, .home-section-heading) h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; margin: 0 0 14px; }
html body.ng h3 { letter-spacing: 0; }
html body.ng p { color: var(--ng-muted); }
html body.ng a.v2-inline { color: var(--gold-foil); font-weight: 700; }
html body.ng ::selection { background: var(--scarlet); color: #fff; }
html body.ng .seasonal-snow { filter: none; opacity: .55; }
html body.ng .v2-main { position: relative; z-index: 1; }

/* ---------- En-tête flottant ---------- */
html body.ng .community-header {
  position: sticky; top: 10px; z-index: 50; width: min(1240px, calc(100% - 24px)); min-height: 64px; margin: 10px auto 0; padding: 8px 10px 8px 14px;
  border: 1px solid var(--ng-line); border-radius: 18px; background: rgba(13, 12, 19, .72); background-image: none;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
html body.ng .community-header.mx-scrolled { background: rgba(13, 12, 19, .9); }
html body.ng .community-header .v2-brand strong { font-family: var(--display); font-weight: 400; font-size: 18px; color: #fff; }
html body.ng .community-header .v2-brand small { color: var(--scarlet); letter-spacing: .18em; font-weight: 700; }
html body.ng .community-header .v2-brand-mark img { border-radius: 12px; box-shadow: 0 0 0 2px var(--scarlet), 0 0 18px rgba(228, 61, 69, .45); }
html body.ng .community-header .v2-nav a { color: var(--ng-muted); border-radius: 10px; font-weight: 600; }
html body.ng .community-header .v2-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
html body.ng .community-header .v2-nav a[aria-current="page"] { color: #fff; background: rgba(228, 61, 69, .16); box-shadow: inset 0 -2px var(--scarlet); }
html body.ng .community-header .v2-nav a.winter-nav-link { color: var(--gold-foil); }
html body.ng .community-header .navigation-toggle { background: rgba(255, 255, 255, .06); border-color: var(--ng-line-strong); color: #fff; border-radius: 12px; }
html body.ng .community-header .wn-login, html body.ng .community-header .wn-account summary { border-radius: 12px; border-color: var(--ng-line-strong); background: rgba(255, 255, 255, .05); color: #fff; }
@media (max-width: 900px) {
  html body.ng .community-header .v2-nav { top: calc(100% + 8px); border: 1px solid var(--ng-line); border-radius: 18px; background: #0e0d14; }
}

/* ---------- Boutons ---------- */
html body.ng .v2-button { border-radius: 14px; font-weight: 700; padding: 14px 22px; position: relative; overflow: hidden; isolation: isolate; }
html body.ng .v2-button.primary {
  background: linear-gradient(180deg, #ef5a61, var(--scarlet-deep)); background-image: linear-gradient(180deg, #ef5a61, var(--scarlet-deep));
  color: #fff; border: 0; box-shadow: 0 10px 30px rgba(228, 61, 69, .35), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
html body.ng .v2-button.primary::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; transition: background-position .7s ease; }
html body.ng .v2-button.primary:hover { box-shadow: 0 16px 40px rgba(228, 61, 69, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
html body.ng .v2-button.primary:hover::after { background-position: 150% 0; }
html body.ng .v2-button.ghost { background: rgba(255, 255, 255, .04); color: #fff; border: 1px solid var(--ng-line-strong); }
html body.ng .v2-button.ghost:hover { border-color: var(--gold-foil); color: var(--gold-foil); }
html body.ng .v2-button svg { width: 18px; height: 18px; }

/* ---------- Héros ---------- */
.ng-hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
  width: 100vw; margin: -74px calc(50% - 50vw) 0; padding: 150px max(24px, calc((100vw - 1240px) / 2)) 110px; min-height: min(900px, 100svh);
  overflow: clip;
}
.ng-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ng-rays { position: absolute; width: 200vmax; height: 200vmax; left: calc(72% - 100vmax); top: calc(48% - 100vmax);
  background: repeating-conic-gradient(from 0deg, rgba(228, 61, 69, .13) 0 3deg, transparent 3deg 11deg);
  -webkit-mask: radial-gradient(circle, #000 0 6%, rgba(0, 0, 0, .7) 14%, transparent 34%); mask: radial-gradient(circle, #000 0 6%, rgba(0, 0, 0, .7) 14%, transparent 34%); }
.ng-halftone { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .16) 1.1px, transparent 1.7px) 0 0 / 13px 13px;
  -webkit-mask: linear-gradient(110deg, transparent 35%, #000 75%); mask: linear-gradient(110deg, transparent 35%, #000 75%); opacity: .55; }
.ng-glow { position: absolute; inset: 0; background:
  radial-gradient(600px circle at calc(var(--px, .7) * 100%) calc(var(--py, .45) * 100%), rgba(228, 61, 69, .28), transparent 60%),
  radial-gradient(500px circle at 15% 85%, rgba(239, 198, 107, .1), transparent 60%); }
.ng-kanji { position: absolute; right: -2vw; top: 50%; translate: 0 -50%; font-family: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif; font-weight: 900;
  font-size: min(78vh, 52vw); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(228, 61, 69, .12); user-select: none; }
.ng-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--ng-ink)); }

.ng-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border: 1px solid var(--ng-line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: #fff !important; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ng-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.ng-title { margin: 0; font-size: clamp(64px, 10.4vw, 168px); line-height: .84; text-transform: uppercase; }
.ng-title-line { display: block; }
.ng-outline { color: transparent !important; -webkit-text-stroke: 2px #fff; }
.ng-slab { display: inline-block; margin-top: .2em; padding: .14em .45em .18em; font-size: .3em; letter-spacing: .14em; background: var(--scarlet); color: var(--ng-ink);
  transform: rotate(-4deg); box-shadow: .14em .14em 0 var(--gold-foil); }
.ng-lead { max-width: 46ch; margin: 28px 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
.ng-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.ng-live { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.ng-live li { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--ng-line); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.ng-live strong { font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.ng-live span { font-size: 13px; color: var(--ng-muted); }
.ng-live .is-online strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: .25em; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* Éventail de cartes 3D */
.ng-stage { position: relative; height: min(580px, 64vh); min-height: 400px; perspective: 1400px; }
.ng-fan { position: absolute; inset: 0; margin: 0; padding: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -9deg)) rotateY(calc(var(--mx, 0) * 14deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ng-card { --w: clamp(160px, 17vw, 240px); position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 2 / 3; margin: calc(var(--w) * -.75) 0 0 calc(var(--w) * -.5);
  border-radius: 16px; overflow: hidden; background: #000; transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .8s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, filter .4s; }
.ng-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ng-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .55) calc(40% + var(--mx, 0) * 25%), transparent calc(55% + var(--mx, 0) * 25%)); }
.ng-card[data-tier="signature"]::before, .ng-card[data-tier="divine"]::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: overlay; opacity: .35;
  background: linear-gradient(130deg, #ff5f6d, #ffc371, #7fe3ff, #a66bff, #ff5fb4) 0 0 / 300% 300%; }
.ng-card[data-slot="0"] { transform: translate3d(-118%, 14%, -160px) rotate(-16deg); filter: brightness(.62); z-index: 1; }
.ng-card[data-slot="1"] { transform: translate3d(-62%, 4%, -70px) rotate(-8deg); filter: brightness(.8); z-index: 2; }
.ng-card[data-slot="2"] { transform: translate3d(0, -4%, 60px) rotate(0deg) scale(1.08); z-index: 5; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 2px var(--gold-foil), 0 0 60px rgba(239, 198, 107, .35); }
.ng-card[data-slot="3"] { transform: translate3d(62%, 4%, -70px) rotate(8deg); filter: brightness(.8); z-index: 2; }
.ng-card[data-slot="4"] { transform: translate3d(118%, 14%, -160px) rotate(16deg); filter: brightness(.62); z-index: 1; }
.ng-card:not([data-slot="2"]):hover { filter: brightness(1); }
.ng-card:focus-visible { outline: 3px solid var(--gold-foil); outline-offset: 4px; }
.ng-shuffle { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--ng-line-strong); border-radius: 999px;
  background: rgba(13, 12, 19, .75); color: #fff; font: 600 13px var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 6; }
.ng-shuffle:hover { border-color: var(--gold-foil); color: var(--gold-foil); }
.ng-shuffle svg { width: 15px; height: 15px; }
.ng-scroll { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.ng-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }

/* ---------- Bandes croisées ---------- */
.ng-bands { position: relative; z-index: 2; height: 150px; width: 100vw; margin: -60px calc(50% - 50vw) 20px; overflow: clip; pointer-events: auto; }
.ng-band { position: absolute; left: -5%; width: 110%; padding: 14px 0; overflow: hidden; font-family: var(--display); font-size: clamp(16px, 1.8vw, 24px); text-transform: uppercase; white-space: nowrap; }
.ng-band-a { top: 36px; background: var(--scarlet); color: #fff; transform: rotate(-3deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); z-index: 2; }
.ng-band-b { top: 44px; background: var(--gold-foil); color: var(--ng-ink); transform: rotate(2.4deg); z-index: 1; }
.ng-band-track { display: flex; width: max-content; gap: 26px; }
.ng-band-track span { flex: none; } .ng-band-track i { flex: none; font-style: normal; opacity: .7; }

/* ---------- Bandeau festival ---------- */
html body.ng .winter-home.ng-winter { margin: 10px 0 0; padding: 22px 26px; border: 1px solid rgba(239, 198, 107, .35); border-radius: 22px; overflow: hidden;
  background: linear-gradient(120deg, #3a0c18, #14111c 55%, #0f2a22); }
html body.ng .winter-home.ng-winter::before, html body.ng .winter-home.ng-winter::after { display: none; }
html body.ng .winter-home.ng-winter h2 { font-size: clamp(26px, 3vw, 38px); margin: 4px 0; }
html body.ng .winter-home.ng-winter a { border-radius: 14px; background: var(--gold-foil); color: var(--ng-ink); border: 0; font-weight: 800; padding: 12px 18px; }
html body.ng .winter-home.ng-winter a span { color: var(--ng-ink); }

/* ---------- Sections ---------- */
html body.ng .v2-section { padding-block: clamp(64px, 9vw, 120px); border: 0; }
html body.ng .hp-eyebrow { color: var(--gold-foil); font-family: var(--sans); letter-spacing: .2em; }
.ng-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
html body.ng .v2-section-head h2 { font-size: clamp(32px, 4.6vw, 60px); }

/* Simulateur, étapes et FAQ : habillage planche */
html body.ng .hp-draw { padding-inline: clamp(18px, 3vw, 40px); border: 1px solid var(--ng-line); border-radius: 28px; margin-top: 30px;
  background: radial-gradient(700px circle at 80% 40%, rgba(228, 61, 69, .12), transparent 60%), radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--ng-ink-2); }
html body.ng .hp-draw-score div, html body.ng .hp-ladder li { background: rgba(255, 255, 255, .04); }
html body.ng .hp-draw-score dd { font-family: var(--display); font-weight: 400; }
html body.ng .hp-step-list li { background: var(--ng-ink-2); border-color: var(--ng-line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); border-radius: 0; }
html body.ng .hp-step-num { font-family: var(--display); font-weight: 400; font-size: 56px; }
html body.ng .hp-faq-list details { background: var(--ng-ink-2); border-radius: 16px; }
html body.ng .hp-faq-list summary { font-family: var(--sans); font-weight: 700; }
html body.ng .hp-copy { border-radius: 12px; }

/* ---------- Collection : rail glissable ---------- */
.ng-hint { margin: -8px 0 6px; font-size: 13px; color: var(--ng-faint) !important; }
.ng-rail-controls { display: flex; gap: 10px; }
.ng-round { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ng-line-strong); border-radius: 50%; background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.ng-round:hover { border-color: var(--scarlet); background: rgba(228, 61, 69, .14); transform: scale(1.06); }
.ng-round svg { width: 20px; height: 20px; }
.ng-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 26px 4px 34px; margin-inline: -4px; scrollbar-width: none; cursor: grab; }
.ng-rail::-webkit-scrollbar { display: none; }
.ng-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ng-rail.is-dragging a { pointer-events: none; }
.ng-rail:focus-visible { outline: 2px solid var(--gold-foil); outline-offset: 4px; border-radius: 12px; }
.ng-rail-card { flex: 0 0 clamp(160px, 18vw, 220px); scroll-snap-align: start; display: grid; gap: 12px; text-decoration: none; color: inherit; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ng-rail-card img { width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--tier) 75%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 26px color-mix(in srgb, var(--tier) 25%, transparent); transition: box-shadow .4s; user-select: none; -webkit-user-drag: none; }
.ng-rail-card:hover { transform: translateY(-10px) rotate(-1.5deg); }
.ng-rail-card:hover img { box-shadow: 0 26px 50px rgba(0, 0, 0, .55), 0 0 44px color-mix(in srgb, var(--tier) 55%, transparent); }
.ng-rail-card span { display: grid; gap: 2px; }
.ng-rail-card b { font-size: 15px; color: #fff; }
.ng-rail-card small { font-size: 12.5px; color: var(--tier); font-weight: 700; }
.ng-rail-progress { height: 3px; border-radius: 3px; background: var(--ng-line); overflow: hidden; margin-bottom: 8px; }
.ng-rail-progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--scarlet), var(--gold-foil)); border-radius: inherit; transform-origin: left; transition: width .2s; }

/* ---------- Les trois bots : cases de manga ---------- */
.ng-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ng-panel { --accent: var(--scarlet); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 340px; padding: 30px 28px; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--ng-ink-2); border: 1px solid var(--ng-line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ng-panel[data-accent="protect"] { --accent: #efc66b; } .ng-panel[data-accent="support"] { --accent: #57b8ff; }
.ng-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.ng-panel::after { content: ""; position: absolute; inset: -40%; z-index: -1; opacity: 0; transition: opacity .4s;
  background: repeating-conic-gradient(from 0deg at 85% 15%, color-mix(in srgb, var(--accent) 18%, transparent) 0 2deg, transparent 2deg 9deg); }
.ng-panel:hover { transform: translateY(-6px); }
.ng-panel:hover::before { transform: scaleY(1); }
.ng-panel:hover::after { opacity: 1; }
.ng-panel-num { position: absolute; right: 22px; top: 12px; font-family: var(--display); font-size: 92px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 60%, transparent); }
.ng-panel img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(0, 0, 0, .4); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.ng-panel:hover img { transform: rotate(-8deg) scale(1.08); }
.ng-panel h3 { margin: 10px 0 0; font-size: 30px; }
.ng-panel p { margin: 0; font-size: 15px; line-height: 1.6; }
.ng-panel-link { margin-top: auto; color: var(--accent); font-weight: 700; }
.ng-panel-link span { display: inline-block; transition: transform .3s; }
.ng-panel:hover .ng-panel-link span { transform: translateX(6px); }

/* ---------- Vidéos et nouveautés ---------- */
html body.ng .youtube-video-card { border-radius: 18px; overflow: hidden; background: var(--ng-ink-2); border: 1px solid var(--ng-line); }
html body.ng .release-filters button { border-radius: 999px; }
html body.ng .release-filters button[aria-pressed="true"] { background: var(--scarlet); border-color: var(--scarlet); color: #fff; }

/* ---------- Appel final ---------- */
.ng-final { position: relative; isolation: isolate; width: 100vw; margin: clamp(40px, 6vw, 80px) calc(50% - 50vw) 0; padding: clamp(80px, 11vw, 150px) max(24px, calc((100vw - 1240px) / 2)); overflow: clip;
  background: var(--scarlet); background-image: radial-gradient(circle, rgba(0, 0, 0, .14) 1.2px, transparent 1.8px), linear-gradient(160deg, #e94a51, #b8242c); background-size: 12px 12px, auto; color: var(--ng-ink); }
.ng-final-word { position: absolute; z-index: -1; left: 0; top: 50%; translate: 0 -50%; margin: 0; white-space: nowrap; font-family: var(--display); font-size: clamp(120px, 22vw, 340px); line-height: 1; text-transform: uppercase;
  color: transparent !important; -webkit-text-stroke: 2px rgba(10, 10, 15, .22); }
.ng-final-copy { max-width: 640px; }
html body.ng .ng-final h2 { color: var(--ng-ink); font-size: clamp(44px, 7vw, 96px); line-height: .95; }
html body.ng .ng-final p { color: rgba(10, 10, 15, .78); font-size: 18px; font-weight: 500; }
html body.ng .ng-final .v2-button.primary { background: var(--ng-ink); background-image: none; color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
html body.ng .ng-final .hp-copy { background: rgba(10, 10, 15, .12); border-color: rgba(10, 10, 15, .35); color: var(--ng-ink); padding: 13px 18px; }
html body.ng .ng-final .hp-copy.is-copied { color: var(--ng-ink); border-color: var(--ng-ink); }
html body.ng .community-footer { position: relative; z-index: 1; background: var(--ng-ink); border-top: 1px solid var(--ng-line); }

/* ---------- Animations (mouvement autorisé uniquement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) .ng-rays { animation: ng-spin 90s linear infinite; }
  html:not([data-reduced-motion="true"]) .ng-band-a .ng-band-track { animation: ng-marquee 38s linear infinite; }
  html:not([data-reduced-motion="true"]) .ng-band-b .ng-band-track { animation: ng-marquee 46s linear infinite reverse; }
  html:not([data-reduced-motion="true"]) .ng-band:hover .ng-band-track { animation-play-state: paused; }
  html:not([data-reduced-motion="true"]) .ng-final-word { animation: ng-drift 30s linear infinite alternate; }
  html:not([data-reduced-motion="true"]) .ng-scroll span { animation: ng-wheel 1.8s ease-in-out infinite; }
  html:not([data-reduced-motion="true"]) .ng-card[data-slot="2"] { animation: ng-float 5s ease-in-out infinite; }
  html:not([data-reduced-motion="true"]) .ng-card[data-tier]::before { animation: ng-holo 6s linear infinite; }
  html:not([data-reduced-motion="true"]) .ng-dot { animation: ng-pulse 2s ease-in-out infinite; }
  /* Entrée du héros */
  html:not([data-reduced-motion="true"]) .ng-tag { animation: ng-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  html:not([data-reduced-motion="true"]) .ng-title-line { animation: ng-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  html:not([data-reduced-motion="true"]) .ng-title-line + .ng-title-line { animation-delay: .1s; }
  html:not([data-reduced-motion="true"]) .ng-slab { animation: ng-stamp .6s cubic-bezier(.3, 1.6, .5, 1) .45s both; }
  html:not([data-reduced-motion="true"]) .ng-lead, html:not([data-reduced-motion="true"]) .ng-hero .ng-actions, html:not([data-reduced-motion="true"]) .ng-live { animation: ng-rise .9s cubic-bezier(.2, .8, .2, 1) .35s both; }
  html:not([data-reduced-motion="true"]) .ng-fan { animation: ng-deal 1.1s cubic-bezier(.2, .8, .2, 1) .2s both; }
}
@keyframes ng-spin { to { transform: rotate(360deg); } }
@keyframes ng-marquee { to { transform: translateX(-50%); } }
@keyframes ng-drift { from { transform: translateX(0); } to { transform: translateX(-30%); } }
@keyframes ng-wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes ng-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ng-holo { to { background-position: 300% 300%; } }
@keyframes ng-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); } 50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, .05); } }
@keyframes ng-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ng-stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes ng-deal { from { opacity: 0; transform: translateY(80px) rotateX(30deg); } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ng-hero { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 90px; min-height: 0; }
  .ng-stage { height: 440px; min-height: 0; }
  .ng-panels { grid-template-columns: 1fr; }
  .ng-panel { min-height: 0; }
  .ng-kanji { font-size: 90vw; top: 30%; }
}
@media (max-width: 560px) {
  .ng-hero { padding: 104px 16px 80px; }
  .ng-title { font-size: clamp(56px, 19vw, 92px); }
  .ng-stage { height: 360px; }
  .ng-card { --w: 150px; }
  .ng-card[data-slot="0"], .ng-card[data-slot="4"] { opacity: 0; }
  .ng-card[data-slot="1"] { transform: translate3d(-48%, 4%, -70px) rotate(-8deg); }
  .ng-card[data-slot="3"] { transform: translate3d(48%, 4%, -70px) rotate(8deg); }
  .ng-live strong { font-size: 18px; }
  .ng-bands { height: 120px; margin-top: -50px; }
  .ng-rail-card { flex-basis: 150px; }
  .ng-scroll { display: none; }
}

/* ---------- Retouches ---------- */
.ng-slab { display: block; width: fit-content; margin-top: .26em; line-height: 1.05; }
html body.ng .ng-final .ng-final-word { font-size: clamp(120px, 22vw, 340px); line-height: 1; margin: 0; color: transparent; }
html body.ng .hp-draw-copy h2 { font-size: clamp(30px, 3.6vw, 48px); }
html body.ng .home-section-heading { align-items: end; }
@media (max-width: 560px) {
  .ng-live { gap: 8px; }
  .ng-live li { padding: 8px 12px; }
  .ng-live strong { font-size: 16px; }
  .ng-live span { font-size: 12px; }
}

/* =====================================================================
   Extension à tout le site
   ===================================================================== */
html body.ng { min-height: 100vh; }
html body.ng .v2-kicker { color: var(--gold-foil); font-family: var(--sans); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
html body.ng .v2-kicker::before { content: "//"; margin-right: .5em; color: var(--scarlet); }
html body.ng :is(.v2-card, .v2-product, .live-card, .server-area-card, .role-guide-card, .discord-feature, .activity-card, .docs-card, .legal-card, .bot-preview-card) {
  background: var(--ng-ink-2); border: 1px solid var(--ng-line); border-radius: 18px; box-shadow: none;
}
html body.ng :is(.v2-card, .v2-product, .server-area-card, .role-guide-card, .discord-feature, .activity-card) :is(h2, h3) { font-size: clamp(20px, 2vw, 28px); line-height: 1.1; }
html body.ng :is(.v2-card, .v2-product, .server-area-card, .role-guide-card, .discord-feature) { transition: border-color .3s, transform .3s, box-shadow .3s; }
html body.ng :is(.v2-card, .v2-product, .server-area-card, .role-guide-card, .discord-feature):hover { border-color: rgba(228, 61, 69, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .4), 0 0 0 1px rgba(228, 61, 69, .2); }
html body.ng .module-status, html body.ng .status-pill { border-radius: 999px; }
html body.ng :is(input, select, textarea) { background: var(--ng-ink-3); border-color: var(--ng-line-strong); color: var(--text); border-radius: 12px; }
html body.ng :is(input, select, textarea):focus { outline: 2px solid var(--scarlet); outline-offset: 1px; border-color: transparent; }
html body.ng :focus-visible { outline-color: var(--gold-foil); }

/* En-têtes de pages : planche avec rayons et trame */
html body.ng :is(.game-overview, .v2-page-hero, .bot-hero, .docs-hero, .card-catalogue > header) { position: relative; isolation: isolate; }
html body.ng :is(.game-overview, .v2-page-hero:not(:has(> img)), .bot-hero, .docs-hero, .card-catalogue > header)::before {
  content: ""; position: absolute; z-index: -1; inset: -120px calc(50% - 50vw) 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 78% 40%, rgba(228, 61, 69, .22), transparent 60%),
    radial-gradient(circle, rgba(255, 255, 255, .12) 1.1px, transparent 1.7px) 0 0 / 13px 13px,
    repeating-conic-gradient(from 0deg at 78% 45%, rgba(228, 61, 69, .08) 0 3deg, transparent 3deg 11deg);
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
html body.ng :is(.game-overview, .v2-page-hero, .bot-hero, .docs-hero, .card-catalogue > header) h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 76px); line-height: 1; letter-spacing: -.01em; margin: 10px 0 18px; overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance;
}
html body.ng .card-catalogue > header { padding-block: 40px 30px; }
html body.ng :is(.bot-hero, .docs-hero) { padding-top: 40px; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) body.ng :is(.game-overview, .v2-page-hero, .bot-hero, .docs-hero, .card-catalogue > header) h1 { animation: ng-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
}

/* Catalogue : noms à taille raisonnable, cartes qui réagissent */
html body.ng .card-catalogue :is(h2, h3) { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.15; overflow-wrap: anywhere; }
html body.ng .card-catalogue #card-grid img { border-radius: 14px; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
html body.ng .card-catalogue #card-grid :is(a, button):hover img { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 48px rgba(0, 0, 0, .5); }

/* Pages légales */
html body.ng .legal-layout { color: var(--text); }
html body.ng .legal-layout :is(h1, h2) { font-size: clamp(26px, 3vw, 40px); }
html body.ng .legal-layout h1 { font-size: clamp(36px, 5vw, 64px); }

/* Espace membre et administration */
html body.ng[data-platform-page] { background: var(--ng-ink); }
html body.ng[data-platform-page] :is(h1, h2, h3) { line-height: 1.1; }
html body.ng[data-platform-page] h1 { font-size: clamp(28px, 3vw, 40px); }
html body.ng[data-platform-page] h2 { font-size: clamp(20px, 2vw, 26px); }
html body.ng[data-platform-page] .profile-banner :is(h1, h2) { font-size: clamp(28px, 3.4vw, 44px); }
html body.ng[data-platform-page] .platform-header { background: rgba(13, 12, 19, .85); background-image: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ng-line); }
html body.ng[data-platform-page] .platform-brand span { color: var(--scarlet); }
html body.ng[data-platform-page] .platform-sidebar { background: #0d0c13; border-right: 1px solid var(--ng-line); }
html body.ng[data-platform-page] .platform-sidebar nav a { border-radius: 12px; }
html body.ng[data-platform-page] .platform-sidebar nav a[aria-current="page"] { background: rgba(228, 61, 69, .14); color: #fff; box-shadow: inset 3px 0 0 var(--scarlet); border-color: transparent; }
html body.ng[data-platform-page] .metric { background: var(--ng-ink-2); border-color: var(--ng-line); border-radius: 18px; }
html body.ng[data-platform-page] .metric strong { font-family: var(--display); font-weight: 400; }
html body.ng[data-platform-page] .profile-banner { background: radial-gradient(500px circle at 90% 0, rgba(228, 61, 69, .18), transparent 60%), var(--ng-ink-2); border-radius: 22px; }
html body.ng[data-platform-page] :is(button.primary, .button.primary) { background: linear-gradient(180deg, #ef5a61, var(--scarlet-deep)); color: #fff; border: 0; border-radius: 12px; }

/* =====================================================================
   Winter Festival dans la DA (présentation seulement)
   ===================================================================== */
html body.ng.winter-page {
  --paper: var(--ng-ink); --card: var(--ng-ink-2); --frost: rgba(255, 255, 255, .09); --frost-strong: rgba(255, 255, 255, .2);
  --ink: #f6f4fb; --ink-muted: #b3afc4; --holly: #e43d45; --holly-dark: #f07a80; --pine: #3ddc97; --pine-light: #2f9a6c;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, .35); color-scheme: dark;
  background: var(--ng-ink); color: var(--ink);
}
html body.ng.winter-page > header { position: sticky; top: 0; z-index: 30; background: rgba(13, 12, 19, .85); background-image: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; border-bottom: 1px solid var(--ng-line); }
html body.ng.winter-page > header a:first-child { font-family: var(--display); font-weight: 400; }
html body.ng.winter-page .festival { position: relative; }
html body.ng.winter-page .festival::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(10, 10, 15, .55) 55%, var(--ng-ink)); }
html body.ng.winter-page .festival-copy { position: relative; z-index: 3; }
html body.ng.winter-page .festival h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; }
html body.ng.winter-page .festival-tabs { background: rgba(13, 12, 19, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--ng-line); top: 58px; }
html body.ng.winter-page .festival-tabs a { color: var(--ng-muted); }
html body.ng.winter-page .festival-tabs a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
html body.ng.winter-page .festival-tabs a[aria-current="true"] { background: var(--scarlet); color: #fff; }
html body.ng.winter-page :is(.heading h2, .winter-panel > h2) { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); }
html body.ng.winter-page #wallet:not(:empty) { background: rgba(239, 198, 107, .1); border-color: rgba(239, 198, 107, .4); color: var(--gold-foil); }
html body.ng.winter-page #phase { background: rgba(13, 12, 19, .6); color: #fff; }
html body.ng.winter-page .festival nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
html body.ng.winter-page .winter-item { background: var(--ng-ink-2); border-color: var(--ng-line); color: var(--ink); }
html body.ng.winter-page .winter-item::before { background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .14) 6px, transparent 6.6px) 0 0 / 18px 10px repeat-x; }
html body.ng.winter-page .winter-item h3 { font-family: var(--display); font-weight: 400; font-size: 19px; color: #fff; }
html body.ng.winter-page :is(.winter-panel, dialog) :is(input, select, textarea) { background: var(--ng-ink-3); color: #fff; border-color: var(--ng-line-strong); }
html body.ng.winter-page :is(.winter-panel, dialog) button { border-radius: 12px; background: linear-gradient(180deg, #ef5a61, var(--scarlet-deep)); border-color: transparent; }
html body.ng.winter-page :is(.winter-panel, dialog) button:disabled { background: rgba(255, 255, 255, .06); border-color: var(--ng-line-strong); color: var(--ng-faint); }
html body.ng.winter-page :is(.winter-panel details, #ranking li, dialog, .winter-feedback) { background: var(--ng-ink-2); color: var(--ink); border-color: var(--ng-line); }
html body.ng.winter-page :is(.snowman-bubble, .snowman-bubble::after) { background: #fff; color: #1c2b26; }
html body.ng.winter-page .winter-admin #totals { background: var(--ng-ink-3); }
html body.ng.winter-page .admin-readiness { background: var(--ng-ink-2); border-color: var(--ng-line); }
html body.ng.winter-page .admin-readiness li { background: rgba(255, 255, 255, .04); }
html body.ng.winter-page .admin-readiness li[data-ok="false"] { background: rgba(228, 61, 69, .1); }
html body.ng.winter-page .winter-admin #settings { background: var(--ng-ink-2); border-color: var(--ng-line); }
html body.ng.winter-page .winter-admin #option-fields :is(details, details[open], details details) { background: var(--ng-ink-2); }
html body.ng.winter-page .winter-admin #suspend { background: transparent; color: #f07a80; border-color: var(--scarlet); }
html body.ng.winter-page .winter-admin #suspend:hover:not(:disabled) { background: rgba(228, 61, 69, .12); }
html body.ng.winter-page .demo-strip { background: #1b1a26; color: var(--ng-muted); }

html body.ng :is(.v2-card, .v2-product, .server-area-card, .role-guide-card, .discord-feature, .activity-card) :is(h2, h3) { margin-bottom: 10px; }
html body.ng .card-catalogue > header h1 { text-transform: uppercase; font-size: clamp(44px, 6.4vw, 92px); }

/* Bande défilante unique, droite et sobre (remplace les bandes croisées) */
.ng-bands { height: auto; margin: 0 calc(50% - 50vw) 10px; padding: 0; overflow: clip; }
.ng-band, .ng-band-a { position: relative; left: 0; top: 0; width: 100%; transform: none; padding: 18px 0; background: rgba(255, 255, 255, .02); color: rgba(246, 244, 251, .88);
  border-block: 1px solid var(--ng-line); box-shadow: none; font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .06em; }
.ng-band-track { gap: 34px; }
.ng-band-track i { color: var(--scarlet); opacity: 1; }
.ng-band:hover .ng-band-track span { color: #fff; }
@media (max-width: 560px) { .ng-bands { height: auto; margin-top: 0; } }

/* Retouches finales */
.ng-hero-copy { position: relative; z-index: 3; }
.ng-card[data-slot="0"] { transform: translate3d(-100%, 14%, -160px) rotate(-14deg); }
.ng-card[data-slot="4"] { transform: translate3d(100%, 14%, -160px) rotate(14deg); }
html body.ng .legal-layout .legal-side h1, html body.ng .legal-side :is(h1, h2) { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; overflow-wrap: normal; }

/* =====================================================================
   Menu par catégories sur toutes les tailles d'écran (bouton « Menu »)
   ===================================================================== */
html body.ng .community-header { gap: 10px; }
html body.ng .community-header .v2-brand { margin-right: auto; }
html body.ng .community-header .navigation-toggle { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 44px; padding: 0 14px; order: 0; font: 700 14px var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
html body.ng .community-header .navigation-toggle:hover, html body.ng .community-header .navigation-toggle[aria-expanded="true"] { border-color: var(--scarlet); background: rgba(228, 61, 69, .14); }
html body.ng .community-header .navigation-toggle svg { width: 18px; height: 18px; }
html body.ng .header-join { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; background: linear-gradient(180deg, #ef5a61, var(--scarlet-deep)); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 8px 22px rgba(228, 61, 69, .3); transition: transform .2s, box-shadow .2s; }
html body.ng .header-join:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(228, 61, 69, .45); }
html body.ng .community-header > .wn-account, html body.ng .community-header > [data-account-menu] { margin-left: 0; order: 1; }

html body.ng .community-header .v2-nav { display: none; }
html body.ng .community-header .v2-nav.navigation-open {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60; display: grid; grid-auto-flow: row dense;
  grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 4px 18px; max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px; border: 1px solid var(--ng-line); border-radius: 22px; background: #0e0d14;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 100vmax rgba(5, 5, 8, .55);
}
html body.ng .community-header .v2-nav.navigation-open .nav-group { display: block; grid-row: 1; padding: 4px 12px 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-foil); border-bottom: 1px solid var(--ng-line); margin-bottom: 6px; }
html body.ng .community-header .v2-nav.navigation-open .nav-group::before { content: "//"; margin-right: .5em; color: var(--scarlet); }
html body.ng .community-header .v2-nav.navigation-open .nav-group-explore, html body.ng .community-header .v2-nav.navigation-open a[data-group="explore"] { grid-column: 1; }
html body.ng .community-header .v2-nav.navigation-open .nav-group-play, html body.ng .community-header .v2-nav.navigation-open :is(a[data-group="play"], a.winter-nav-link) { grid-column: 2; }
html body.ng .community-header .v2-nav.navigation-open .nav-group-help, html body.ng .community-header .v2-nav.navigation-open a[data-group="help"] { grid-column: 3; }
html body.ng .community-header .v2-nav.navigation-open > * { order: 0; }
html body.ng .community-header .v2-nav.navigation-open a { display: grid; gap: 3px; padding: 12px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff; background: none; box-shadow: none; transition: background .2s, transform .2s; }
html body.ng .community-header .v2-nav.navigation-open a small { display: block; font-size: 13px; font-weight: 500; color: var(--ng-muted); }
html body.ng .community-header .v2-nav.navigation-open a:hover { background: rgba(255, 255, 255, .05); transform: translateX(4px); }
html body.ng .community-header .v2-nav.navigation-open a[aria-current="page"] { background: rgba(228, 61, 69, .14); box-shadow: inset 3px 0 0 var(--scarlet); }
html body.ng .community-header .v2-nav.navigation-open a.winter-nav-link { color: var(--gold-foil); grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
html body.ng .community-header .v2-nav.navigation-open a.winter-nav-link::before { content: "★"; color: var(--gold-foil); }
html body.ng .community-header .v2-nav.navigation-open a.winter-nav-link::after { grid-column: 2; content: "Le calendrier de l’Avent" / ""; font-size: 13px; font-weight: 500; color: var(--ng-muted); }
@media (max-width: 760px) {
  html body.ng .community-header .v2-nav.navigation-open { grid-template-columns: 1fr; padding: 14px; }
  html body.ng .community-header .v2-nav.navigation-open :is(.nav-group, a) { grid-column: 1 !important; grid-row: auto !important; }
  html body.ng .community-header .v2-nav.navigation-open .nav-group-explore { order: 0; } html body.ng .community-header .v2-nav.navigation-open a[data-group="explore"] { order: 1; }
  html body.ng .community-header .v2-nav.navigation-open .nav-group-play { order: 2; margin-top: 10px; } html body.ng .community-header .v2-nav.navigation-open :is(a[data-group="play"], a.winter-nav-link) { order: 3; }
  html body.ng .community-header .v2-nav.navigation-open .nav-group-help { order: 4; margin-top: 10px; } html body.ng .community-header .v2-nav.navigation-open a[data-group="help"] { order: 5; }
}
@media (max-width: 560px) {
  html body.ng .header-join { display: none; }
  html body.ng .community-header .navigation-word { display: none; }
  html body.ng .community-header .navigation-toggle { width: 44px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) body.ng .community-header .v2-nav.navigation-open { animation: ng-menu-in .28s cubic-bezier(.2, .8, .2, 1) both; }
  html:not([data-reduced-motion="true"]) body.ng .community-header .v2-nav.navigation-open > * { animation: ng-rise .4s cubic-bezier(.2, .8, .2, 1) both; }
  html:not([data-reduced-motion="true"]) body.ng .community-header .v2-nav.navigation-open > a:nth-of-type(n+3) { animation-delay: 50ms; }
  html:not([data-reduced-motion="true"]) body.ng .community-header .v2-nav.navigation-open > a:nth-of-type(n+5) { animation-delay: 100ms; }
}
@keyframes ng-menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Pied de page « planche »
   ===================================================================== */
html body.ng .v2-footer.community-footer {
  position: relative; overflow: hidden; width: 100%; max-width: none; margin: 0; padding: 56px max(24px, calc((100% - 1240px) / 2)) 30px;
  grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; background: var(--ng-ink); border-top: 1px solid var(--ng-line);
}
html body.ng .v2-footer.community-footer::before { content: "WARSNUTO"; position: absolute; left: 50%; bottom: -.18em; translate: -50% 0; z-index: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--display); font-size: clamp(80px, 17vw, 260px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(228, 61, 69, .16); }
html body.ng .community-footer > * { position: relative; z-index: 1; }
html body.ng .footer-identity > a { font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; }
html body.ng .footer-identity p { font-size: 14px; color: var(--ng-muted); }
html body.ng .community-footer nav { gap: 10px 26px; max-width: 620px; }
html body.ng .community-footer nav a { font-size: 14px; font-weight: 600; color: var(--ng-muted); }
html body.ng .community-footer nav a:hover { color: #fff; }
html body.ng .community-footer [data-site-updated] { padding-top: 60px; font-size: 12px; color: var(--ng-faint); }
html body.ng .community-header > :not(.v2-nav) { position: relative; z-index: 61; }
html body.ng .community-header:has(.v2-nav.navigation-open) { z-index: 80; }

/* Couleurs de rareté disponibles partout (espace membre compris) */
html body.ng [data-tier="common"] { --tier: #8a939e; } html body.ng [data-tier="uncommon"] { --tier: #3fbf7f; } html body.ng [data-tier="rare"] { --tier: #4f8dff; }
html body.ng [data-tier="epic"] { --tier: #a66bff; } html body.ng [data-tier="legendary"] { --tier: #efb53c; } html body.ng [data-tier="mythic"] { --tier: #e43d45; }
html body.ng [data-tier="secret"] { --tier: #ff5fb4; } html body.ng [data-tier="divine"] { --tier: #7fe3ff; } html body.ng [data-tier="signature"] { --tier: #efc66b; }

/* =====================================================================
   1. Page Game : éventail compact + modules en cases de manga
   ===================================================================== */
html body.ng .game-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 520px; }
.ng-stage-compact { height: 460px; min-height: 0; }
.ng-stage-compact .ng-card { --w: clamp(140px, 13vw, 200px); }
html body.ng.game-page .ng-bands { margin-top: 10px; }
html body.ng:is(.game-page, .bots-v2) .v2-grid { counter-reset: ng-panel; }
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product {
  --accent: var(--scarlet); counter-increment: ng-panel; position: relative; isolation: isolate; overflow: hidden; padding: 30px 28px; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product::after {
  content: counter(ng-panel, decimal-leading-zero); position: absolute; right: 20px; top: 8px; z-index: -1; font-family: var(--display); font-size: 84px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 55%, transparent); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.2, .8, .2, 1);
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%);
}
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product:hover { transform: translateY(-6px); }
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product:hover::before { transform: scaleY(1); }
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product:hover::after { transform: translateX(-6px) rotate(-4deg); }
html body.ng.game-page .v2-grid > .v2-product:nth-child(2) { --accent: #efc66b; }
html body.ng.game-page .v2-grid > .v2-product:nth-child(3) { --accent: #a66bff; }
html body.ng.game-page .v2-grid > .v2-product:nth-child(4) { --accent: #3ddc97; }
html body.ng.bots-v2 .v2-product.protect { --accent: #efc66b; }
html body.ng.bots-v2 .v2-product.support { --accent: #57b8ff; }
html body.ng.bots-v2 .v2-product.game { --accent: #e43d45; }
html body.ng.bots-v2 .v2-product img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(0, 0, 0, .4); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
html body.ng.bots-v2 .v2-product:hover img { transform: rotate(-8deg) scale(1.08); }
html body.ng:is(.game-page, .bots-v2) .v2-grid > .v2-product .v2-inline { color: var(--accent); }
html body.ng .maintenance-band { background: var(--ng-ink-2); border-radius: 0 18px 18px 0; }
@media (max-width: 900px) {
  html body.ng .game-overview { grid-template-columns: 1fr; }
  .ng-stage-compact { height: 380px; }
}

/* =====================================================================
   2. Communauté : l'équipe en fiches personnages
   ===================================================================== */
html body.ng .staff-node-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
html body.ng .staff-node {
  --c: var(--staff-color, #efc66b);
  display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 270px; padding: 0 14px 16px !important; text-align: center; overflow: hidden;
  border-radius: 18px; border: 0 !important; transform-style: preserve-3d;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, var(--ng-ink-3)) 0 42%, var(--ng-ink-2) 42%) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 0 6px var(--ng-ink-2), inset 0 0 0 7px color-mix(in srgb, var(--c) 40%, transparent), 0 18px 40px rgba(0, 0, 0, .45) !important;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .4s !important;
}
html body.ng .staff-node::before {
  /* zone « portrait » : rayons et trame dans la couleur du rôle */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; width: auto; z-index: 0;
  background: repeating-conic-gradient(from 0deg at 50% 70%, color-mix(in srgb, var(--c) 26%, transparent) 0 4deg, transparent 4deg 12deg),
    radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.5px) 0 0 / 10px 10px;
}
html body.ng .staff-node::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge; transition: opacity .35s;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 62%);
}
html body.ng .staff-node > * { position: relative; z-index: 1; }
html body.ng .staff-node .staff-node-icon { position: relative !important; top: auto !important; left: auto !important; width: 76px !important; height: 76px !important; margin: 34px 0 10px; border-radius: 50% !important;
  background: var(--ng-ink) !important; box-shadow: 0 0 0 3px var(--c), 0 0 26px color-mix(in srgb, var(--c) 55%, transparent) !important; }
html body.ng .staff-node .staff-node-icon svg { width: 38px; height: 38px; }
html body.ng .staff-node .v2-kicker { order: 3; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); color: #fff; font-size: 10.5px; letter-spacing: .14em; }
html body.ng .staff-node .v2-kicker::before { content: none; }
html body.ng .staff-node h4 { order: 1; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; color: #fff; }
html body.ng .staff-node .staff-tag { order: 2; font-size: 12.5px; color: var(--ng-muted); }
html body.ng .staff-node p:not(.v2-kicker) { order: 4; margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ng-muted); }
html body.ng .staff-node:hover { transform: translateY(-8px) rotateX(4deg) rotateY(-4deg); box-shadow: 0 0 0 2px var(--c), inset 0 0 0 6px var(--ng-ink-2), inset 0 0 0 7px var(--c), 0 26px 60px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--c) 35%, transparent) !important; }
html body.ng .staff-node:hover::after { opacity: 1; }
html body.ng .staff-node.is-empty { opacity: .65; }
html body.ng .staff-tier-label h3 { font-family: var(--display); font-weight: 400; }

/* =====================================================================
   3. Espace membre : la collection en classeur
   ===================================================================== */
html body.ng [data-collection-stats] { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 28px; align-items: center; padding: 22px; margin-bottom: 18px;
  border: 1px solid var(--ng-line); border-radius: 22px; background: radial-gradient(500px circle at 0 0, rgba(228, 61, 69, .16), transparent 60%), var(--ng-ink-2); }
html body.ng [data-collection-stats] > :not(.binder-ring):not(.collection-totals) { grid-column: 1 / -1; }
html body.ng [data-collection-stats] > progress { display: none; }
html body.ng .binder-ring { --p: 0; position: relative; display: grid; place-content: center; width: 132px; height: 132px; border-radius: 50%; text-align: center;
  background: radial-gradient(closest-side, var(--ng-ink-2) 78%, transparent 79% 100%), conic-gradient(var(--scarlet), var(--gold-foil) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
html body.ng .binder-ring strong { font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; }
html body.ng .binder-ring span { font-size: 12px; color: var(--ng-muted); }
html body.ng [data-collection-stats] .collection-totals { margin: 0; }
html body.ng .collection-totals strong { font-family: var(--display); font-weight: 400; font-size: 26px; }
html body.ng .binder-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0; }
html body.ng .binder-tier { --p: 0; position: relative; display: grid; gap: 2px; padding: 10px 12px 14px; text-align: left; border: 1px solid var(--ng-line); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #fff; font: inherit; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s, background .2s; }
html body.ng .binder-tier b { font-size: 13px; color: var(--tier); }
html body.ng .binder-tier span { font-size: 12px; color: var(--ng-muted); font-variant-numeric: tabular-nums; }
html body.ng .binder-tier i { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p) * 1%); min-width: 3px; background: var(--tier); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
html body.ng .binder-tier:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tier) 60%, transparent); }
html body.ng .binder-tier.is-active { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); }
html body.ng [data-collection-grid] { gap: 14px; padding: 18px; border-radius: 22px; background:
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .06) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), #0d0c13; border: 1px solid var(--ng-line); }
html body.ng .binder-slot { position: relative; padding: 8px 8px 10px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
html body.ng .binder-slot::after { /* reflet de la pochette plastique */ content: ""; position: absolute; inset: 8px 8px auto; aspect-ratio: 2 / 3; border-radius: 10px; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 38%); }
html body.ng .binder-slot img { border-radius: 10px; }
html body.ng .binder-slot.is-owned img { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tier) 80%, transparent), 0 0 20px color-mix(in srgb, var(--tier) 30%, transparent); }
html body.ng .binder-slot.is-owned:hover { transform: translateY(-6px) rotate(-1deg); }
html body.ng .binder-slot.is-missing .card-image { position: relative; display: block; }
html body.ng .binder-slot.is-missing img { filter: grayscale(1) brightness(.35) blur(1px); opacity: .7; }
html body.ng .binder-slot.is-missing .card-image::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 46px; color: rgba(255, 255, 255, .22); }
html body.ng .binder-slot h2 { font-family: var(--sans); font-weight: 700; font-size: 14px !important; }
html body.ng .binder-slot .card-tier { color: var(--tier) !important; font-weight: 700; }
html body.ng .binder-count { position: absolute; z-index: 2; right: 2px; top: 2px; padding: 3px 8px; border-radius: 999px; background: var(--scarlet); color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
html body.ng .binder-id { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 2px 6px; border-radius: 6px; background: rgba(10, 10, 15, .75); color: var(--ng-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 640px) {
  html body.ng [data-collection-stats] { grid-template-columns: 1fr; justify-items: center; }
  html body.ng [data-collection-grid] { background: #0d0c13; padding: 10px; }
}

html body.ng .binder-tier span { border: 0; padding: 0; }
html body.ng.game-page .v2-grid > .v2-product::after { font-size: 58px; top: 14px; }
html body.ng.game-page .v2-grid > .v2-product h2 { margin-top: 30px; }

/* =====================================================================
   Démos Protect / Support
   ===================================================================== */
.ng-demo-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: stretch; }
.ng-demo-note { margin: 12px 0 0; font-size: 12px; color: var(--ng-faint) !important; }
.xp-card, .mod-feed, .ticket-window, .ticket-steps { border: 1px solid var(--ng-line); border-radius: 22px; background: var(--ng-ink-2); }
.xp-card { position: relative; overflow: hidden; padding: 26px; background: radial-gradient(600px circle at 100% 0, rgba(239, 198, 107, .14), transparent 55%), var(--ng-ink-2); }
.xp-top { display: flex; align-items: center; gap: 14px; }
.xp-top img { border-radius: 50%; box-shadow: 0 0 0 3px var(--gold-foil); }
.xp-top b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; }
.xp-top span { font-size: 13px; color: var(--ng-muted); }
.xp-level { margin-left: auto; text-align: center; }
.xp-level small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ng-muted); }
.xp-level strong { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--gold-foil); }
.xp-bar { position: relative; height: 16px; margin: 22px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--scarlet), var(--gold-foil)); box-shadow: 0 0 18px rgba(239, 198, 107, .5); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.xp-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.xp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.xp-toast { position: absolute; right: 26px; top: 96px; margin: 0; font-family: var(--display); font-size: 22px; color: var(--gold-foil) !important; opacity: 0; pointer-events: none; }
.xp-toast.is-on { animation: xp-pop 1.6s ease-out both; }
[data-xp-demo].is-levelup .xp-level strong { animation: xp-level .7s cubic-bezier(.3, 1.6, .5, 1); }
[data-xp-demo].is-levelup .xp-card { animation: xp-flash .9s ease-out; }
@keyframes xp-pop { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes xp-level { 0% { transform: scale(1); } 50% { transform: scale(1.5) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes xp-flash { 0% { box-shadow: 0 0 0 0 rgba(239, 198, 107, .6); } 100% { box-shadow: 0 0 0 26px rgba(239, 198, 107, 0); } }
.mod-feed { padding: 18px; overflow: hidden; }
.mod-feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; color: #fff; }
.mod-feed-head small { margin-left: auto; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ng-line-strong); color: var(--ng-muted); font-size: 11px; }
.mod-feed ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mod-feed li { --k: var(--scarlet); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border-left: 3px solid var(--k); font-size: 13px; animation: feed-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.mod-feed li[data-kind="xp"] { --k: var(--gold-foil); } .mod-feed li[data-kind="idea"] { --k: #57b8ff; } .mod-feed li[data-kind="log"] { --k: #a66bff; } .mod-feed li[data-kind="mod"] { --k: #ff8a3d; }
.mod-feed li b { padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--k) 20%, transparent); color: var(--k); font-size: 11px; }
.mod-feed li span { color: #fff; }
.mod-feed li small { color: var(--ng-faint); font-size: 11px; white-space: nowrap; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.ng-demo-support .ng-demo-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.ticket-steps { display: grid; gap: 6px; align-content: start; margin: 0; padding: 14px; list-style: none; }
.ticket-steps button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--ng-muted); font: 600 15px var(--sans); text-align: left; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ticket-steps button b { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; border: 1px solid var(--ng-line-strong); font-family: var(--display); font-weight: 400; color: var(--ng-muted); transition: background .25s, color .25s, border-color .25s; }
.ticket-steps button:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.ticket-steps button.is-done { color: #fff; }
.ticket-steps button.is-done b { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .5); color: #3ddc97; }
.ticket-steps button.is-current { color: #fff; background: rgba(87, 184, 255, .1); border-color: rgba(87, 184, 255, .35); }
.ticket-steps button.is-current b { background: #57b8ff; border-color: #57b8ff; color: var(--ng-ink); }
.ticket-window { display: flex; flex-direction: column; padding: 0 0 16px; overflow: hidden; }
.ticket-window .ng-demo-note { padding: 0 18px; }
.ticket-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--ng-line); background: rgba(255, 255, 255, .03); }
.ticket-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.ticket-bar b { margin-left: 10px; color: #fff; font-size: 14px; }
.ticket-thread { display: grid; align-content: start; gap: 14px; min-height: 330px; max-height: 380px; overflow-y: auto; padding: 18px; }
.ticket-msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; animation: feed-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.ticket-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #57b8ff; color: var(--ng-ink); font-weight: 800; }
.ticket-msg[data-role="staff"] .ticket-avatar { background: var(--scarlet); color: #fff; }
.ticket-msg b { color: #fff; font-size: 14px; }
.ticket-msg[data-role="bot"] b::after { content: "BOT"; margin-left: 8px; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; vertical-align: 1px; }
.ticket-msg p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.ticket-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ticket-chips span { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--ng-line-strong); color: #fff; font-size: 13px; font-weight: 600; }
.ticket-chips span.is-picked { background: #57b8ff; border-color: #57b8ff; color: var(--ng-ink); }
@media (max-width: 900px) { .ng-demo-grid, .ng-demo-support .ng-demo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mod-feed li, .ticket-msg, .xp-toast.is-on, [data-xp-demo].is-levelup * { animation: none !important; } .xp-toast.is-on { opacity: 1; } }
html[data-reduced-motion="true"] :is(.mod-feed li, .ticket-msg, [data-xp-demo] *) { animation: none !important; }

/* =====================================================================
   YouTube : salle de cinéma
   ===================================================================== */
html body.ng .youtube-video-grid { gap: 18px; }
html body.ng .youtube-video-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 12px 12px 16px; text-decoration: none; color: inherit; transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
html body.ng .youtube-video-card > span:not(.yt-thumb) { font-size: 12px; color: var(--gold-foil); font-weight: 700; }
html body.ng .youtube-video-card h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.35; margin: 0; }
html body.ng .yt-thumb { position: relative; display: block; order: -1; overflow: hidden; border-radius: 12px; }
html body.ng .yt-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; }
html body.ng .yt-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%; background: var(--scarlet); box-shadow: 0 10px 30px rgba(228, 61, 69, .5); opacity: .92; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
html body.ng .yt-thumb::before { content: ""; position: absolute; z-index: 1; left: calc(50% + 3px); top: 50%; translate: -50% -50%; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
html body.ng .youtube-video-card:hover { transform: translateY(-6px); border-color: rgba(228, 61, 69, .5); }
html body.ng .youtube-video-card:hover .yt-thumb img { transform: scale(1.04); filter: brightness(1.08); }
html body.ng .youtube-video-card:hover .yt-thumb::after { transform: scale(1.15); }
/* La dernière vidéo en grand écran, dans une salle */
html body.ng.youtube-v2 .youtube-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body.ng.youtube-v2 .youtube-video-card.is-featured {
  grid-column: 1 / -1; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; align-items: start; padding: 18px;
  background: radial-gradient(900px 400px at 30% 50%, rgba(255, 255, 255, .06), transparent 60%), linear-gradient(90deg, #3a0a14, var(--ng-ink-2) 12%, var(--ng-ink-2) 88%, #3a0a14); border-color: rgba(228, 61, 69, .35);
}
html body.ng.youtube-v2 .youtube-video-card.is-featured .yt-thumb { grid-row: 1 / span 3; grid-column: 1; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(255, 255, 255, .07), 0 40px 90px rgba(0, 0, 0, .6); }
html body.ng.youtube-v2 .youtube-video-card.is-featured .yt-thumb::after { width: 84px; height: 84px; }
html body.ng.youtube-v2 .youtube-video-card.is-featured .yt-thumb::before { left: calc(50% + 4px); border-width: 14px 0 14px 24px; }
html body.ng.youtube-v2 .youtube-video-card.is-featured > :not(.yt-thumb) { grid-column: 2; }
html body.ng.youtube-v2 .youtube-video-card.is-featured > span:not(.yt-thumb) { margin-top: 10px; }
html body.ng.youtube-v2 .youtube-video-card.is-featured > span:not(.yt-thumb)::before { content: "À l’affiche · "; color: var(--scarlet); }
html body.ng.youtube-v2 .youtube-video-card.is-featured h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; }
@media (max-width: 900px) {
  html body.ng.youtube-v2 .youtube-video-grid { grid-template-columns: 1fr 1fr; }
  html body.ng.youtube-v2 .youtube-video-card.is-featured { grid-template-columns: 1fr; }
  html body.ng.youtube-v2 .youtube-video-card.is-featured > * { grid-column: 1 !important; grid-row: auto !important; }
}
@media (max-width: 560px) { html body.ng.youtube-v2 .youtube-video-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Nouveautés de l'accueil : planche de BD
   ===================================================================== */
html body.ng.ng-home .release-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html body.ng.ng-home .release-list .release-item {
  position: relative; isolation: isolate; display: grid; align-content: start; gap: 10px; min-height: 220px; padding: 46px 22px 24px !important; overflow: hidden;
  border: 3px solid #f6f4fb !important; border-radius: 4px !important; background: var(--ng-ink-2) !important; box-shadow: 8px 8px 0 var(--scarlet) !important; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
html body.ng.ng-home .release-list .release-item:nth-child(1) { transform: rotate(-1.2deg); }
html body.ng.ng-home .release-list .release-item:nth-child(2) { transform: rotate(.8deg) translateY(10px); box-shadow: 8px 8px 0 var(--gold-foil) !important; }
html body.ng.ng-home .release-list .release-item:nth-child(3) { transform: rotate(-.6deg); box-shadow: 8px 8px 0 #57b8ff !important; }
html body.ng.ng-home .release-list .release-item:hover { transform: rotate(0) translateY(-6px); box-shadow: 12px 12px 0 var(--scarlet) !important; }
html body.ng.ng-home .release-list .release-item::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 1.1px, transparent 1.6px) 0 0 / 11px 11px; -webkit-mask: linear-gradient(200deg, #000, transparent 60%); mask: linear-gradient(200deg, #000, transparent 60%); }
html body.ng.ng-home .release-list .release-item > span { /* encadré de narration */
  position: absolute; left: -3px; top: -3px; padding: 6px 12px; background: var(--gold-foil); color: var(--ng-ink); font-weight: 800; font-size: 12px; letter-spacing: .04em; border: 3px solid #f6f4fb; text-transform: uppercase;
}
html body.ng.ng-home .release-list .release-item h3 { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; margin: 0; }
html body.ng.ng-home .release-list .release-item p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { html body.ng.ng-home .release-list { grid-template-columns: 1fr; gap: 22px; } }
html body.ng.ng-home .release-list .release-item { grid-template-columns: 1fr !important; }
html body.ng.ng-home .release-list .release-item h3 { overflow-wrap: normal; hyphens: manual; }
html body.ng.ng-home .release-list .release-item > * { grid-column: 1 !important; grid-row: auto !important; }
@media (max-width: 560px) {
  .ng-card[data-slot="0"] { transform: translate3d(-48%, 4%, -120px) rotate(-8deg); }
  .ng-card[data-slot="4"] { transform: translate3d(48%, 4%, -120px) rotate(8deg); }
  .ng-stage { overflow: clip; overflow-clip-margin: 24px; }
}

/* =====================================================================
   Documentation : recherche, filtres, commandes copiables
   ===================================================================== */
.docs-tools { position: sticky; top: 86px; z-index: 20; display: grid; gap: 12px; margin: 10px 0 22px; padding: 16px; border: 1px solid var(--ng-line); border-radius: 20px; background: rgba(13, 12, 19, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.docs-search { position: relative; display: block; }
.docs-search::before { content: "/"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; padding: 1px 8px; border: 1px solid var(--ng-line-strong); border-radius: 6px; color: var(--ng-muted); font-size: 12px; font-weight: 700; pointer-events: none; }
.docs-search input { width: 100%; height: 50px; padding: 0 52px 0 18px; font-size: 16px; }
.docs-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-chip, .tier-chip { padding: 8px 14px; border: 1px solid var(--ng-line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--ng-muted); font: 600 13px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.docs-chip:hover, .tier-chip:hover { color: #fff; transform: translateY(-1px); }
.docs-chip[aria-pressed="true"] { background: var(--scarlet); border-color: var(--scarlet); color: #fff; }
.docs-status { margin: 0; font-size: 13px; color: var(--gold-foil) !important; }
.docs-status:empty { display: none; }
html body.ng .command-list code[data-copyable] { position: relative; cursor: copy; transition: background .2s, color .2s, box-shadow .2s; }
html body.ng .command-list code[data-copyable]:hover { background: rgba(228, 61, 69, .16); color: #fff; }
html body.ng .command-list code.is-copied { background: rgba(61, 220, 151, .18); color: #3ddc97; }
html body.ng .command-list code.is-failed { background: rgba(228, 61, 69, .2); }
html body.ng .command-list code:is(.is-copied, .is-failed)::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ng-ink); font: 700 11px var(--sans); white-space: nowrap; }
html body.ng .docs-card :is(li, code).is-hit { background: rgba(239, 198, 107, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(239, 198, 107, .5); border-radius: 6px; }
html body.ng .docs-card details { border-color: var(--ng-line); }
html body.ng .docs-card summary { cursor: pointer; }

/* =====================================================================
   Catalogue : puces de rareté, carte au hasard
   ===================================================================== */
.tier-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.tier-chip[data-tier] { color: var(--tier); }
.tier-chip[data-tier][aria-pressed="true"] { background: color-mix(in srgb, var(--tier) 22%, transparent); border-color: var(--tier); color: #fff; }
.tier-chip[data-value="all"][aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ng-ink); }
.tier-random { margin-left: auto; border-color: rgba(239, 198, 107, .55); color: var(--gold-foil); }
.tier-random::before { content: "✦ "; }
.tier-random:hover { background: rgba(239, 198, 107, .14); }
@media (max-width: 640px) { .tier-random { margin-left: 0; } .docs-tools { top: 80px; } }

/* Fiche de carte : vitrine */
html body.ng #card-detail { border: 1px solid var(--ng-line-strong); border-radius: 24px; background: radial-gradient(500px circle at 50% 55%, rgba(239, 198, 107, .14), transparent 65%), radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 12px 12px, var(--ng-ink-2); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
html body.ng #card-detail::backdrop { background: rgba(5, 5, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body.ng #card-detail img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(239, 198, 107, .25)); }
html body.ng #card-detail h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) body.ng #card-detail[open] { animation: ng-menu-in .3s cubic-bezier(.2, .8, .2, 1) both; }
  html:not([data-reduced-motion="true"]) body.ng #card-detail[open] img { animation: ng-float 5s ease-in-out infinite; }
}
html body.ng .docs-hero > div > p:first-child, html body.ng .docs-hero .section-kicker { color: var(--gold-foil); letter-spacing: .18em; font-weight: 700; }

/* =====================================================================
   Easter egg
   ===================================================================== */
.ng-egg-layer { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.ng-egg-layer img { position: absolute; top: 0; aspect-ratio: 2 / 3; height: auto; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.ng-egg-toast { position: fixed; left: 50%; top: 92px; z-index: 210; translate: -50% 0; padding: 12px 20px; border-radius: 999px; background: linear-gradient(90deg, var(--scarlet, #e43d45), #efc66b); color: #0a0a0f; font-weight: 800; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: ng-menu-in .3s ease-out both; }

/* =====================================================================
   Page 404
   ===================================================================== */
.lost { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; min-height: calc(100svh - 220px); padding-block: 40px; }
.lost-bg { position: absolute; inset: -80px calc(50% - 50vw) 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lost-code { position: absolute; z-index: -1; left: -8px; top: 50%; translate: 0 -50%; margin: 0; font-family: var(--display); font-size: clamp(160px, 30vw, 420px); line-height: 1; color: transparent !important; -webkit-text-stroke: 2px rgba(228, 61, 69, .22); pointer-events: none; }
html body.ng .lost h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1; margin: 8px 0 16px; }
.lost-card { justify-self: center; width: min(250px, 60vw); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1100px; }
.lost-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .75, .25, 1); }
.lost-card.is-flipped .lost-inner { transform: rotateY(180deg); }
.lost-back, .lost-front { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lost-back { display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff4dc;
  background: radial-gradient(120% 80% at 50% 0%, rgba(239, 198, 107, .35), transparent 60%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px), linear-gradient(160deg, #8f1d26, #3a0b10 70%);
  box-shadow: inset 0 0 0 2px rgba(239, 198, 107, .75), inset 0 0 0 7px #3a0b10, 0 30px 60px rgba(0, 0, 0, .5); }
.lost-back img { border-radius: 50%; box-shadow: 0 0 0 3px #efc66b; }
.lost-back b { font-family: var(--display); font-size: 64px; line-height: 1; }
.lost-back small { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; opacity: .85; }
.lost-front { transform: rotateY(180deg); background: #000; box-shadow: 0 0 0 2px #efc66b, 0 0 40px rgba(239, 198, 107, .35); }
.lost-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lost-front a { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; font-weight: 800; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { html:not([data-reduced-motion="true"]) .lost-card:not(.is-flipped) .lost-inner { animation: ng-float 4s ease-in-out infinite; } }
@media (max-width: 800px) { .lost { grid-template-columns: 1fr; } }

/* =====================================================================
   Pages légales : sommaire et lecture
   ===================================================================== */
html body.ng .legal-side { position: sticky; top: 100px; align-self: start; }
.legal-toc { margin-top: 22px; padding: 16px; border: 1px solid var(--ng-line); border-radius: 16px; background: var(--ng-ink-2); max-height: calc(100vh - 360px); overflow-y: auto; }
.legal-toc-title { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-foil) !important; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ng-muted); font-size: 13px; text-decoration: none; transition: background .2s, color .2s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--scarlet); font-weight: 700; }
.legal-toc a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.legal-toc a[aria-current="true"] { background: rgba(228, 61, 69, .14); color: #fff; }
html body.ng .legal-card { border-radius: 22px; }
html body.ng .legal-card h2 { scroll-margin-top: 100px; padding-top: 10px; border-top: 1px solid var(--ng-line); }
html body.ng .legal-card h2:first-of-type { border-top: 0; }
@media (max-width: 900px) { html body.ng .legal-side { position: static; } .legal-toc { max-height: none; } }

/* =====================================================================
   Administration et candidature : finitions
   ===================================================================== */
html body.ng[data-platform-page] .page-heading h1, html body.ng[data-platform-page] main h1 { font-family: var(--display); font-weight: 400; }
html body.ng[data-platform-page] .metric { position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
html body.ng[data-platform-page] .metric::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 61, 69, .18), transparent 70%); pointer-events: none; }
html body.ng[data-platform-page] .metric:hover { transform: translateY(-3px); border-color: rgba(228, 61, 69, .4); }
html body.ng[data-platform-page] table tbody tr { transition: background .2s; }
html body.ng[data-platform-page] table tbody tr:hover { background: rgba(255, 255, 255, .035); }
html body.ng[data-platform-page] .status { border-radius: 999px; }
html body.ng[data-platform-page] :is(.workspace-section, .settings-card, .panel, .card) { border-radius: 18px; }
html body.ng[data-platform-page] .platform-sidebar nav a { transition: background .2s, color .2s, transform .2s; }
html body.ng[data-platform-page] .platform-sidebar nav a:hover { transform: translateX(3px); }
html body.ng[data-platform-page] :is(input, select, textarea) { border-radius: 12px; }

/* Communauté : rôles en onglets */
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.role-tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--ng-line-strong); border-radius: 14px; background: rgba(255, 255, 255, .03); color: var(--ng-muted); font: 700 14px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.role-tab span { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; }
.role-tab:hover { color: #fff; transform: translateY(-1px); }
.role-tab[aria-selected="true"] { background: var(--scarlet); border-color: var(--scarlet); color: #fff; }
.role-tab[aria-selected="true"] span { background: rgba(0, 0, 0, .25); }
html body.ng .role-guide-grid.is-tabbed { display: block; }
html body.ng .role-guide-grid.is-tabbed > .role-guide-card { max-width: none; }
@media (prefers-reduced-motion: no-preference) { html:not([data-reduced-motion="true"]) body.ng .role-guide-grid.is-tabbed > .role-guide-card:not([hidden]) { animation: ng-menu-in .3s cubic-bezier(.2, .8, .2, 1) both; } }
html body.ng.discord-v2 .ng-final { margin-bottom: 0; }
html body.ng .ng-final .ng-final-copy h2 { line-height: .98 !important; margin: 0 0 22px !important; max-width: 12ch; }
html body.ng .ng-final .ng-final-copy p { margin: 0 0 6px; }
html body.ng .ng-final .hp-copy span { color: var(--ng-ink); font-weight: 700; }

/* =====================================================================
   Emblème WarsNuto
   ===================================================================== */
html body.ng .v2-brand-mark { position: relative; background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; }
html body.ng img.wn-emblem { border-radius: 0 !important; box-shadow: none !important; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(228, 61, 69, .35)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
html body.ng .v2-brand:hover img.wn-emblem { transform: rotate(-8deg) scale(1.08); }
html body.ng .community-header .v2-brand-mark { width: 46px; height: 46px; }
html body.ng .community-header .v2-brand-mark img.wn-emblem { width: 46px; height: 46px; }
html body.ng .community-header .v2-brand strong { letter-spacing: .01em; }

/* =====================================================================
   Accueil en page unique : barre de sections
   ===================================================================== */
html { scroll-padding-top: 150px; }
.ng-dock { position: sticky; top: 84px; z-index: 40; display: flex; justify-content: center; margin: -40px auto 10px; padding: 0 12px; pointer-events: none; }
.ng-dock-track { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px; border: 1px solid var(--ng-line); border-radius: 999px; background: rgba(13, 12, 19, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); pointer-events: auto; }
.ng-dock-track::-webkit-scrollbar { display: none; }
.ng-dock a { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 14px; border-radius: 999px; color: var(--ng-muted); font: 700 13px var(--sans); text-decoration: none; transition: color .25s, background .25s; }
.ng-dock a[hidden] { display: none; }
.ng-dock a svg { width: 16px; height: 16px; }
.ng-dock a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ng-dock a.is-active { color: #fff; background: var(--scarlet); box-shadow: 0 6px 18px rgba(228, 61, 69, .4); }
.ng-dock a[data-dock="festival"] { color: var(--gold-foil); }
.ng-dock a[data-dock="festival"].is-active { background: linear-gradient(90deg, #b8242c, #1f6b4a); color: #fff; }
@media (max-width: 760px) { .ng-dock { top: 78px; margin-top: -24px; padding: 0 8px; } .ng-dock a span { display: none; } .ng-dock a { padding: 10px 12px; } .ng-dock a.is-active span { display: inline; } }
@media (prefers-reduced-motion: no-preference) { html:not([data-reduced-motion="true"]) .ng-dock-track { animation: ng-rise .8s cubic-bezier(.2, .8, .2, 1) .6s both; } }

/* Menu : groupe « Sur cette page » en première colonne sur l'accueil */
html body.ng .community-header .v2-nav.has-page-group.navigation-open { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body.ng .community-header .v2-nav.has-page-group.navigation-open .nav-group-page, html body.ng .community-header .v2-nav.has-page-group.navigation-open a[data-group="page"] { grid-column: 1; }
html body.ng .community-header .v2-nav.has-page-group.navigation-open :is(.nav-group-explore, a[data-group="explore"]) { grid-column: 2; }
html body.ng .community-header .v2-nav.has-page-group.navigation-open :is(.nav-group-play, a[data-group="play"], a.winter-nav-link) { grid-column: 3; }
html body.ng .community-header .v2-nav.has-page-group.navigation-open :is(.nav-group-help, a[data-group="help"]) { grid-column: 4; }
html body.ng .community-header .v2-nav.has-page-group.navigation-open a[data-group="page"] { padding: 8px 12px; font-size: 15px; }
html:not([data-festival="on"]) body.ng .community-header .v2-nav a[data-page="festival"] { display: none !important; }
@media (max-width: 1100px) { html body.ng .community-header .v2-nav.has-page-group.navigation-open { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body.ng .community-header .v2-nav.has-page-group.navigation-open :is(.nav-group, a) { grid-column: auto !important; grid-row: auto !important; } html body.ng .community-header .v2-nav.has-page-group.navigation-open .nav-group { grid-column: 1 / -1 !important; margin-top: 8px; } }
@media (max-width: 760px) { html body.ng .community-header .v2-nav.has-page-group.navigation-open { grid-template-columns: 1fr; } html body.ng .community-header .v2-nav.has-page-group.navigation-open .nav-group-page { order: -2; } html body.ng .community-header .v2-nav.has-page-group.navigation-open a[data-group="page"] { order: -1; } }

/* =====================================================================
   Section Winter Festival dans la DA
   ===================================================================== */
html body.ng .winter-home.ng-fest { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; margin: 30px 0 0; padding: clamp(26px, 4vw, 48px); border-radius: 28px; position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid rgba(239, 198, 107, .35);
  background: radial-gradient(500px circle at 90% 10%, rgba(239, 198, 107, .18), transparent 60%), radial-gradient(600px circle at 0% 100%, rgba(31, 107, 74, .35), transparent 60%), radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.6px) 0 0 / 14px 14px, linear-gradient(140deg, #3a0c18, #14111c 55%, #0f2a22); }
html body.ng .winter-home.ng-fest[hidden] { display: none !important; }
html body.ng .winter-home.ng-fest::before { content: ""; display: block; position: absolute; inset: 0 0 auto; height: 18px; z-index: -1; background: radial-gradient(circle at 12px -4px, #f4f1ff 10px, transparent 10.5px) 0 0 / 24px 18px repeat-x; opacity: .9; }
html body.ng .winter-home.ng-fest::after { display: none; }
.ng-fest-kicker { margin: 10px 0 8px !important; color: var(--gold-foil) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .18em !important; text-transform: uppercase; }
html body.ng .ng-fest h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 84px) !important; line-height: .92 !important; text-transform: uppercase; margin: 0 0 14px !important;
  background: linear-gradient(180deg, #fff 55%, #ffd8a8); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 3px 0 #a51f27); }
html body.ng .ng-fest-status { display: inline-block; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(239, 198, 107, .35); color: #fff !important; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
html body.ng .ng-fest-status:empty { display: none; }
.ng-fest-text { margin: 0; max-width: 46ch; }
html body.ng .ng-fest .ng-actions a { width: auto; }
html body.ng .ng-fest .v2-button.ghost { background: rgba(0, 0, 0, .25); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.ng-fest-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(239, 198, 107, .25); transform: rotate(1.5deg); }
.ng-door { --a: #c13a50; --b: #86192e; position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; text-decoration: none; overflow: hidden;
  background: linear-gradient(155deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255, 219, 155, .55), 0 4px 10px rgba(0, 0, 0, .35); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.ng-door:nth-child(3n+2) { --a: #23694a; --b: #123b29; }
.ng-door:nth-child(24) { --a: #efc66b; --b: #c9962f; grid-column: span 1; }
.ng-door b { font-family: var(--display); font-weight: 400; font-size: clamp(14px, 1.6vw, 22px); background: linear-gradient(170deg, #fff3cf, #f0c56a 50%, #b9832b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ng-door:nth-child(24) b { background: none; color: #6e1a26; }
.ng-door.is-past { filter: saturate(.6) brightness(.65); }
.ng-door.is-today { box-shadow: 0 0 0 2px #fff3d6, 0 0 22px rgba(255, 219, 155, .9); z-index: 1; }
.ng-door.is-today::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) -150% 0 / 250% 100% no-repeat; }
.ng-door:hover { transform: translateY(-4px) rotate(-3deg) scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) .ng-door.is-today::after { animation: ng-shine 2.2s ease-in-out infinite; }
  html:not([data-reduced-motion="true"]) .ng-door.is-today { animation: ng-float 3s ease-in-out infinite; }
}
@keyframes ng-shine { to { background-position: 150% 0; } }
@media (max-width: 900px) { html body.ng .winter-home.ng-fest { grid-template-columns: 1fr; } .ng-fest-board { transform: none; } }

/* =====================================================================
   Habillage de Noël de la DA (pendant le festival uniquement)
   ===================================================================== */
html[data-festival="on"] body.ng .v2-brand-mark::after { content: ""; position: absolute; left: 50%; top: -11px; width: 30px; height: 22px; translate: -30% 0; rotate: 14deg; background: url("/assets/winter-santa-hat.svg") center / contain no-repeat; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
html[data-festival="on"] body.ng .ng-slab { box-shadow: .14em .14em 0 var(--gold-foil), 0 -.08em 0 #f4f1ff inset; position: relative; }
html[data-festival="on"] body.ng .ng-slab::before { content: ""; position: absolute; left: -.1em; right: -.1em; top: -.32em; height: .42em; border-radius: .3em .3em .1em .1em; background: radial-gradient(circle at 20% 100%, #fff 0 .14em, transparent .15em), linear-gradient(#fff, #e9eef7); box-shadow: 0 .04em .06em rgba(0, 0, 0, .25); }
html[data-festival="on"] body.ng :is(.hp-eyebrow, .v2-kicker)::before, html[data-festival="on"] body.ng .hp-eyebrow span { color: #3ddc97; }
html[data-festival="on"] body.ng .ng-band-track i { color: #3ddc97; }
html[data-festival="on"] body.ng .ng-band-track i:nth-of-type(2n) { color: var(--scarlet); }
html[data-festival="on"] body.ng .ng-final::before { content: ""; position: absolute; inset: 0 0 auto; height: 22px; z-index: 1; background: radial-gradient(circle at 14px -6px, #f4f1ff 13px, transparent 13.5px) 0 0 / 28px 22px repeat-x; }
html[data-festival="on"] body.ng .v2-button.primary::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .14; background: repeating-linear-gradient(-45deg, #fff 0 6px, transparent 6px 14px); }
html[data-festival="on"] body.ng .ng-glow { background: radial-gradient(600px circle at calc(var(--px, .7) * 100%) calc(var(--py, .45) * 100%), rgba(228, 61, 69, .26), transparent 60%), radial-gradient(500px circle at 12% 88%, rgba(61, 220, 151, .14), transparent 60%); }
html body.ng .winter-home.ng-fest a.ng-door { min-height: 0; padding: 0; border: 0; border-radius: 10px; font-weight: 400; background: linear-gradient(155deg, var(--a), var(--b)); color: inherit; width: auto; }
html body.ng .winter-home.ng-fest a.ng-door:nth-child(3n+2) { --a: #23694a; --b: #123b29; }
html body.ng .winter-home.ng-fest a.ng-door:nth-child(24) { --a: #efc66b; --b: #c9962f; }
html body.ng .ng-fest h2 { font-size: clamp(40px, 4.8vw, 76px) !important; word-break: keep-all; overflow-wrap: normal; }
html body.ng .winter-home.ng-fest .ng-actions a.v2-button { border-radius: 14px; padding: 14px 22px; min-height: 0; }
html body.ng .winter-home.ng-fest .ng-actions a.v2-button.primary { background: linear-gradient(180deg, #ef5a61, var(--scarlet-deep)); color: #fff; }
html body.ng .winter-home.ng-fest .ng-actions a.v2-button.primary span { color: #fff; }
html body.ng .winter-home.ng-fest .ng-actions a.v2-button.ghost { background: rgba(0, 0, 0, .25); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }

/* =====================================================================
   Final « pro » : appel à rejoindre + carte d'invitation
   ===================================================================== */
html body.ng .ng-final.ng-final-pro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
html body.ng .ng-final-pro .ng-final-copy { max-width: 620px; }
.ng-final-kicker { margin: 0 0 10px !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .16em; text-transform: uppercase; color: rgba(10, 10, 15, .7) !important; }
html body.ng .ng-final-pro .ng-final-copy h2 { max-width: none; font-size: clamp(46px, 6.4vw, 92px); }
.ng-final-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ng-final-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; color: var(--ng-ink); }
.ng-final-points li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--ng-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffc857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ng-invite { position: relative; justify-self: center; width: min(400px, 100%); padding: 0 26px 26px; border-radius: 26px; background: #0e0d14; color: #fff; text-align: center; overflow: hidden;
  box-shadow: 0 40px 90px rgba(60, 0, 10, .55), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(2deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ng-invite:hover { transform: rotate(0) translateY(-6px); }
.ng-invite-banner { height: 110px; margin: 0 -26px; background: radial-gradient(circle, rgba(255, 255, 255, .14) 1.1px, transparent 1.6px) 0 0 / 12px 12px, repeating-conic-gradient(from 0deg at 50% 120%, rgba(239, 198, 107, .22) 0 4deg, transparent 4deg 12deg), linear-gradient(135deg, #e43d45, #6e0d1e); }
.ng-invite-emblem { width: 86px; height: 86px; margin: -46px auto 8px; display: block; padding: 8px; border-radius: 24px; background: #0e0d14; box-shadow: 0 0 0 4px #0e0d14, 0 12px 30px rgba(0, 0, 0, .5); }
.ng-invite-label { margin: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ng-muted) !important; }
html body.ng .ng-invite h3 { margin: 6px 0 10px; font-family: var(--display); font-weight: 400; font-size: 28px; color: #fff; }
.ng-invite-stats { display: flex; justify-content: center; gap: 18px; margin: 0 0 20px !important; font-size: 14px; color: var(--ng-muted) !important; }
.ng-invite-stats span { display: inline-flex; align-items: center; gap: 6px; }
.ng-invite-stats b { color: #fff; font-variant-numeric: tabular-nums; }
.ng-invite-stats i { width: 9px; height: 9px; border-radius: 50%; background: #8a86a0; }
.ng-invite-stats i.is-online { background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
html body.ng .ng-invite .v2-button.primary { display: flex; justify-content: center; width: 100%; background: linear-gradient(180deg, #ef5a61, var(--scarlet-deep)); color: #fff; box-shadow: 0 12px 30px rgba(228, 61, 69, .35); }
html body.ng .ng-invite .hp-copy { width: 100%; justify-content: center; margin-top: 10px; background: rgba(255, 255, 255, .05); border-color: var(--ng-line-strong); color: #fff; padding: 12px; }
html body.ng .ng-invite .hp-copy span { color: #fff; }
html body.ng .ng-invite .hp-copy.is-copied { border-color: #3ddc97; }
html body.ng .ng-invite .hp-copy.is-copied span { color: #3ddc97; }
@media (max-width: 900px) { html body.ng .ng-final.ng-final-pro { grid-template-columns: 1fr; } .ng-invite { transform: none; } }

/* =====================================================================
   Pied de page en colonnes
   ===================================================================== */
html body.ng .v2-footer.community-footer { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: 40px 60px; padding-top: 70px; padding-bottom: 0; }
html body.ng .footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
html body.ng .footer-brand img { width: 52px; height: 52px; }
html body.ng .footer-brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; line-height: 1; }
html body.ng .footer-brand small { display: block; margin-top: 4px; color: var(--scarlet); font-weight: 800; font-size: 11px; letter-spacing: .2em; }
html body.ng .footer-identity p { max-width: 38ch; margin: 16px 0 18px; font-size: 14px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; }
html body.ng .footer-socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--ng-line-strong); background: rgba(255, 255, 255, .04); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
html body.ng .footer-socials a::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #5865f2; }
html body.ng .footer-socials a[data-social="youtube"]::before { background: #e43d45; }
html body.ng .footer-socials a:hover { transform: translateY(-2px); border-color: #fff; }
html body.ng .community-footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; justify-content: stretch; }
.footer-col { display: grid; align-content: start; gap: 4px; }
html body.ng .footer-col-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-foil); }
html body.ng .footer-col a { width: fit-content; padding: 5px 0; font-size: 15px; font-weight: 600; color: var(--ng-muted); text-decoration: none; background: linear-gradient(var(--scarlet), var(--scarlet)) 0 100% / 0 2px no-repeat; transition: color .2s, background-size .3s; }
html body.ng .footer-col a:hover { color: #fff; background-size: 100% 2px; }
html:not([data-festival="on"]) body.ng .footer-col a[data-festival-only] { display: none; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 30px; padding: 22px 0 110px; border-top: 1px solid var(--ng-line); font-size: 13px; color: var(--ng-faint); }
html body.ng .footer-bottom [data-site-updated] { padding: 0; grid-column: auto; }
.footer-top { margin-left: auto; padding: 9px 14px; border: 1px solid var(--ng-line-strong); border-radius: 999px; background: none; color: #fff; font: 700 13px var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.footer-top:hover { border-color: var(--scarlet); background: rgba(228, 61, 69, .14); }
html body.ng .v2-footer.community-footer::before { bottom: -.24em; -webkit-text-stroke-color: rgba(228, 61, 69, .12); }
@media (max-width: 900px) { html body.ng .v2-footer.community-footer { grid-template-columns: 1fr; } }
@media (max-width: 560px) { html body.ng .community-footer nav { grid-template-columns: 1fr 1fr; } .footer-top { margin-left: 0; } .footer-bottom { padding-bottom: 70px; } }

/* =====================================================================
   Winter Festival v3 : surtitres, bande de badges, parcours, cartes, podium
   ===================================================================== */
html body.ng.winter-page .w-eyebrow { max-width: 1080px; margin: 0 auto 6px; padding: 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-foil); }
html body.ng.winter-page .winter-panel > .w-eyebrow, html body.ng.winter-page #calendar > .w-eyebrow { padding: 0; }
html body.ng.winter-page .w-eyebrow::before { content: "✦"; margin-right: .6em; color: #3ddc97; }
html body.ng.winter-page .w-lede { margin: -4px 0 16px; color: var(--ng-muted); }
html body.ng.winter-page :is(.heading h2, .winter-panel > h2)::before { background: linear-gradient(#efc66b, #e2a73a); }

/* Bande de badges */
.w-marquee { overflow: hidden; border-block: 1px solid var(--ng-line); background: linear-gradient(90deg, rgba(196, 19, 47, .25), rgba(31, 107, 74, .25)); }
.w-marquee-track { display: flex; width: max-content; gap: 14px; padding: 12px 0; }
.w-marquee span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(239, 198, 107, .4); background: rgba(10, 10, 15, .55); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.w-marquee i { align-self: center; color: var(--gold-foil); font-style: normal; }
@media (prefers-reduced-motion: no-preference) { html:not([data-reduced-motion="true"]) .w-marquee-track { animation: ng-marquee 40s linear infinite; } html:not([data-reduced-motion="true"]) .w-marquee:hover .w-marquee-track { animation-play-state: paused; } }

/* Parcours en 4 étapes */
.w-tour { max-width: 1080px; margin: 44px auto 10px; padding: 0 16px; }
.w-tour .w-eyebrow { padding: 0; }
html body.ng.winter-page .w-tour h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; }
.w-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.w-steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 18px 20px; border-radius: 18px; border: 1px solid var(--ng-line); background: var(--ng-ink-2); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.w-steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #e43d45, #efc66b, #3ddc97); transform: scaleX(.2); transform-origin: left; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.w-steps li:hover { transform: translateY(-5px); border-color: rgba(239, 198, 107, .4); }
.w-steps li:hover::after { transform: scaleX(1); }
.w-steps b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; background: linear-gradient(135deg, #e43d45, #efc66b); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body.ng.winter-page .w-steps h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; color: #fff; }
.w-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ng-muted); }
@media (max-width: 860px) { .w-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .w-steps { grid-template-columns: 1fr; } }

/* Cartes quêtes / boutique / défis : bandeau coloré, boutons-chips, jauges dorées */
html body.ng.winter-page .winter-grid { gap: 14px; }
html body.ng.winter-page .winter-item { border-radius: 18px; border-top: 0; padding-top: 26px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
html body.ng.winter-page .winter-item::before { height: 6px; background: linear-gradient(90deg, #e43d45, #b8242c); }
html body.ng.winter-page .winter-grid > .winter-item:nth-child(3n+2)::before { background: linear-gradient(90deg, #3ddc97, #1f6b4a); }
html body.ng.winter-page .winter-grid > .winter-item:nth-child(3n)::before { background: linear-gradient(90deg, #efc66b, #c9962f); }
html body.ng.winter-page .winter-item:hover { transform: translateY(-5px); border-color: rgba(239, 198, 107, .35); box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
html body.ng.winter-page .winter-item progress { height: 10px; border-radius: 999px; overflow: hidden; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, .08); border: 0; }
html body.ng.winter-page .winter-item progress::-webkit-progress-bar { background: rgba(255, 255, 255, .08); border-radius: 999px; }
html body.ng.winter-page .winter-item progress::-webkit-progress-value { background: linear-gradient(90deg, #e43d45, #efc66b); border-radius: 999px; }
html body.ng.winter-page .winter-item progress::-moz-progress-bar { background: linear-gradient(90deg, #e43d45, #efc66b); border-radius: 999px; }
html body.ng.winter-page .winter-item button { border-radius: 999px; font-size: 14px; }
html body.ng.winter-page .winter-item button:not(:disabled) { box-shadow: 0 8px 22px rgba(228, 61, 69, .35); }
html body.ng.winter-page #shop-list .winter-item > p:nth-of-type(2) { width: fit-content; padding: 4px 12px; border-radius: 999px; background: rgba(239, 198, 107, .12); border: 1px solid rgba(239, 198, 107, .35); color: var(--gold-foil); font-weight: 700; font-size: 13px; }

/* Classement : podium pour le top 3 */
html body.ng.winter-page #ranking { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
html body.ng.winter-page #ranking li { grid-column: 1 / -1; border-radius: 14px; }
html body.ng.winter-page #ranking li:nth-child(-n+3) { grid-column: auto; flex-direction: column; justify-content: end; text-align: center; padding: 22px 14px 18px; font-weight: 700; color: #fff; border-radius: 18px 18px 8px 8px; }
html body.ng.winter-page #ranking li:nth-child(1) { order: -2; min-height: 200px; background: linear-gradient(180deg, rgba(239, 198, 107, .28), var(--ng-ink-2) 70%); border-color: rgba(239, 198, 107, .6); box-shadow: 0 0 40px rgba(239, 198, 107, .2); }
html body.ng.winter-page #ranking li:nth-child(2) { order: -3; min-height: 160px; background: linear-gradient(180deg, rgba(213, 221, 226, .2), var(--ng-ink-2) 70%); border-color: rgba(213, 221, 226, .45); }
html body.ng.winter-page #ranking li:nth-child(3) { order: -1; min-height: 135px; background: linear-gradient(180deg, rgba(224, 176, 138, .22), var(--ng-ink-2) 70%); border-color: rgba(224, 176, 138, .45); }
html body.ng.winter-page #ranking li:nth-child(-n+3)::before { width: 42px; height: 42px; font-family: var(--display); font-size: 20px; color: var(--ng-ink); }
html body.ng.winter-page #ranking li:nth-child(-n+3) img { width: 54px; height: 54px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
html body.ng.winter-page #ranking li:nth-child(1)::before { box-shadow: 0 0 18px rgba(239, 198, 107, .7); }
@media (max-width: 640px) { html body.ng.winter-page #ranking { grid-template-columns: 1fr; } html body.ng.winter-page #ranking li:nth-child(-n+3) { min-height: 0; order: 0; flex-direction: row; text-align: left; justify-content: start; } }

/* =====================================================================
   Retour aux couleurs d'origine : boutons principaux jaunes, accents rouges
   ===================================================================== */
html body.ng .v2-button.primary, html body.ng .header-join, html body.ng .winter-home.ng-fest .ng-actions a.v2-button.primary, html body.ng .ng-invite .v2-button.primary, html body.ng[data-platform-page] :is(button.primary, .button.primary) {
  background: linear-gradient(180deg, #f6d48a, #efc66b 55%, #d9a947) !important; background-image: linear-gradient(180deg, #f6d48a, #efc66b 55%, #d9a947) !important;
  color: #1b160b !important; text-shadow: none !important; box-shadow: 0 10px 28px rgba(239, 198, 107, .28), inset 0 1px 0 rgba(255, 255, 255, .5) !important; border: 0 !important; }
html body.ng .v2-button.primary span, html body.ng .winter-home.ng-fest .ng-actions a.v2-button.primary span { color: #1b160b !important; }
html body.ng .v2-button.primary:hover, html body.ng .header-join:hover { box-shadow: 0 16px 36px rgba(239, 198, 107, .42), inset 0 1px 0 rgba(255, 255, 255, .5) !important; }
html body.ng .ng-final .v2-button.primary { background: #0c0d10 !important; background-image: none !important; color: #fff !important; }
html body.ng .footer-brand img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-foil); }
html body.ng .ng-invite-emblem { padding: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #0e0d14, 0 0 0 7px var(--gold-foil), 0 12px 30px rgba(0, 0, 0, .5); }

/* ---------- Festival : surcharges générées (couleurs sombres → claires) ---------- */
html[data-festival="on"] body.ng { --ng-line: rgba(20, 70, 45, .06) !important; --ng-line-strong: rgba(20, 70, 45, .06) !important; --panel: rgba(20, 70, 45, .06) !important; --panel-strong: rgba(20, 70, 45, .06) !important; --control-bg: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng ::selection { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .community-header { background: rgba(255, 255, 255, .9) !important; }
html[data-festival="on"] body.ng .community-header.mx-scrolled { background: rgba(255, 255, 255, .9) !important; }
html[data-festival="on"] body.ng .community-header .v2-brand strong { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .community-header .v2-nav a:hover { color: var(--fx-text) !important; background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .community-header .navigation-toggle { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .community-header .wn-login, html[data-festival="on"] body.ng .community-header .wn-account summary { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
@media (max-width: 900px) { html[data-festival="on"] body.ng .community-header .v2-nav { background: #ffffff !important; } }
html[data-festival="on"] body.ng .v2-button.ghost { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ng-halftone { background: radial-gradient(circle, rgba(20, 70, 45, .06) 1.1px, transparent 1.7px) 0 0 / 13px 13px !important; }
html[data-festival="on"] body.ng .ng-tag { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ng-outline { -webkit-text-stroke: 2px var(--fx-text) !important; }
html[data-festival="on"] body.ng .ng-live strong { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ng-shuffle { background: rgba(255, 255, 255, .9) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .hp-draw { background: radial-gradient(700px circle at 80% 40%, rgba(228, 61, 69, .12), transparent 60%), radial-gradient(circle, rgba(20, 70, 45, .06) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--ng-ink-2) !important; }
html[data-festival="on"] body.ng .hp-draw-score div, html[data-festival="on"] body.ng .hp-ladder li { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .ng-round { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ng-rail-card b { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng :is(.game-overview, .v2-page-hero:not(:has(> img)), .bot-hero, .docs-hero, .card-catalogue > header)::before { background:
    radial-gradient(600px circle at 78% 40%, rgba(228, 61, 69, .22), transparent 60%),
    radial-gradient(circle, rgba(20, 70, 45, .06) 1.1px, transparent 1.7px) 0 0 / 13px 13px,
    repeating-conic-gradient(from 0deg at 78% 45%, rgba(228, 61, 69, .08) 0 3deg, transparent 3deg 11deg) !important; }
html[data-festival="on"] body.ng[data-platform-page] .platform-header { background: rgba(255, 255, 255, .9) !important; }
html[data-festival="on"] body.ng[data-platform-page] .platform-sidebar { background: #ffffff !important; }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open { background: #ffffff !important; }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open a { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open a:hover { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .footer-identity > a { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .community-footer nav a:hover { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .staff-node::before { background: repeating-conic-gradient(from 0deg at 50% 70%, color-mix(in srgb, var(--c) 26%, transparent) 0 4deg, transparent 4deg 12deg),
    radial-gradient(circle, rgba(20, 70, 45, .06) 1px, transparent 1.5px) 0 0 / 10px 10px !important; }
html[data-festival="on"] body.ng .staff-node .v2-kicker { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .staff-node h4 { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .binder-ring { background: radial-gradient(closest-side, var(--ng-ink-2) 78%, transparent 79% 100%), conic-gradient(var(--scarlet), var(--gold-foil) calc(var(--p) * 1%), rgba(20, 70, 45, .06) 0) !important; }
html[data-festival="on"] body.ng .binder-ring strong { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng [data-collection-grid] { background:
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 70, 45, .06) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), #0d0c13 !important; }
html[data-festival="on"] body.ng .binder-slot { background: linear-gradient(160deg, rgba(20, 70, 45, .06), rgba(20, 70, 45, .06)) !important; box-shadow: inset 0 0 0 1px rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .binder-slot::after { background: linear-gradient(125deg, rgba(20, 70, 45, .06), transparent 38%) !important; }
@media (max-width: 640px) { html[data-festival="on"] body.ng [data-collection-grid] { background: #ffffff !important; } }
html[data-festival="on"] body.ng .mod-feed-head { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .mod-feed li { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .mod-feed li span { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ticket-steps button:hover { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ticket-steps button.is-done { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ticket-bar { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .ticket-bar span { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .ticket-bar b { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ticket-msg b { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ticket-msg[data-role="bot"] b::after { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ticket-chips span { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng.youtube-v2 .youtube-video-card.is-featured { background: radial-gradient(900px 400px at 30% 50%, rgba(20, 70, 45, .06), transparent 60%), linear-gradient(90deg, #3a0a14, var(--ng-ink-2) 12%, var(--ng-ink-2) 88%, #3a0a14) !important; }
html[data-festival="on"] body.ng.youtube-v2 .youtube-video-card.is-featured .yt-thumb { box-shadow: 0 0 0 1px rgba(20, 70, 45, .06), 0 30px 80px rgba(20, 70, 45, .06), 0 40px 90px rgba(0, 0, 0, .6) !important; }
html[data-festival="on"] body.ng.ng-home .release-list .release-item::before { background: radial-gradient(circle, rgba(20, 70, 45, .06) 1.1px, transparent 1.6px) 0 0 / 11px 11px !important; }
html[data-festival="on"] body.ng .docs-tools { background: rgba(255, 255, 255, .9) !important; }
html[data-festival="on"] body.ng .command-list code[data-copyable]:hover { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .docs-card :is(li, code).is-hit { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng #card-detail { background: radial-gradient(500px circle at 50% 55%, rgba(239, 198, 107, .14), transparent 65%), radial-gradient(circle, rgba(20, 70, 45, .06) 1px, transparent 1.5px) 0 0 / 12px 12px, var(--ng-ink-2) !important; }
html[data-festival="on"] body.ng .legal-toc a:hover { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .role-tab { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .role-tab span { background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .role-tab:hover { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .ng-dock-track { background: rgba(255, 255, 255, .9) !important; }
html[data-festival="on"] body.ng .ng-dock a:hover { color: var(--fx-text) !important; background: rgba(20, 70, 45, .06) !important; }
html[data-festival="on"] body.ng .footer-brand b { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .footer-socials a { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .footer-socials a:hover { border-color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .footer-col a:hover { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .footer-top { color: var(--fx-text) !important; }
html[data-festival="on"] body.ng .w-marquee span { color: var(--fx-text) !important; }
/* =====================================================================
   Pendant le Winter Festival : tout le site en blanc neige, vert sapin et rouge
   (activé par appearance.js via html[data-festival="on"])
   ===================================================================== */
html[data-festival="on"]:has(body.ng) { background: #f4f8f5; color-scheme: light; }
html[data-festival="on"] body.ng {
  --ng-ink: #f4f8f5; --ng-ink-2: #ffffff; --ng-ink-3: #edf4ef; --ng-ink-4: #e1ebe4;
  --ng-line: rgba(31, 92, 64, .14); --ng-line-strong: rgba(31, 92, 64, .28); --ng-muted: #47594f; --ng-faint: #66786e;
  --text: #15271e; --fx-text: #15271e; --scarlet: #c8323f; --scarlet-deep: #9b2230; --gold-foil: #a87818; --green: #1f7a4d;
  --chrome: #ffffff; --surface: #ffffff; --public-card: #ffffff; --panel: rgba(31, 92, 64, .04); --panel-strong: rgba(31, 92, 64, .08); --control-bg: #ffffff;
  --shadow: 0 20px 50px rgba(21, 39, 30, .12);
  color-scheme: light; color: var(--text);
  background: #f4f8f5 radial-gradient(circle, rgba(31, 92, 64, .12) 1.1px, transparent 1.6px) 0 0 / 30px 30px;
}
html[data-festival="on"] body.ng::before { background: radial-gradient(circle at 15% 10%, rgba(200, 50, 63, .08), transparent 40%), radial-gradient(circle at 85% 80%, rgba(31, 122, 77, .1), transparent 45%); opacity: 1; }
html[data-festival="on"] body.ng .seasonal-snow { filter: brightness(.72) saturate(1.6); opacity: .7; }
html[data-festival="on"] body.ng :is(h1, h2, h3, h4) { color: var(--text); }
html[data-festival="on"] body.ng p { color: var(--ng-muted); }
html[data-festival="on"] body.ng :is(.hp-eyebrow, .v2-kicker) { color: var(--green); }
html[data-festival="on"] body.ng :is(.hp-eyebrow span, .v2-kicker::before) { color: var(--scarlet) !important; }
html[data-festival="on"] body.ng a.v2-inline { color: var(--scarlet); }

/* En-tête et menu */
html[data-festival="on"] body.ng .community-header { background: rgba(255, 255, 255, .9) !important; border-color: rgba(31, 92, 64, .16); box-shadow: 0 14px 34px rgba(21, 39, 30, .12); }
html[data-festival="on"] body.ng .community-header :is(.navigation-toggle, .wn-login, .wn-account summary) { background: #fff !important; color: var(--text) !important; border-color: var(--ng-line-strong) !important; }
html[data-festival="on"] body.ng .community-header .v2-brand strong { color: var(--text); }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open { background: #fff !important; }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open a { color: var(--text) !important; }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open a.winter-nav-link { color: var(--scarlet) !important; }
html[data-festival="on"] body.ng .community-header .v2-nav.navigation-open a[aria-current="page"] { background: rgba(200, 50, 63, .1); }

/* Héros et bande */
html[data-festival="on"] body.ng .ng-halftone { background: radial-gradient(circle, rgba(31, 92, 64, .2) 1.1px, transparent 1.7px) 0 0 / 13px 13px; }
html[data-festival="on"] body.ng .ng-rays { background: repeating-conic-gradient(from 0deg, rgba(200, 50, 63, .1) 0 3deg, transparent 3deg 7deg, rgba(31, 122, 77, .08) 7deg 10deg, transparent 10deg 14deg); }
html[data-festival="on"] body.ng .ng-tag { background: #fff; color: var(--text) !important; }
html[data-festival="on"] body.ng .ng-live li { background: #fff; box-shadow: 0 8px 20px rgba(21, 39, 30, .06); }
html[data-festival="on"] body.ng .ng-shuffle { background: #fff; color: var(--text); }
html[data-festival="on"] body.ng .ng-band, html[data-festival="on"] body.ng .ng-band-a { background: linear-gradient(90deg, #1f5c40, #174a33); color: #fff; border-color: transparent; }
html[data-festival="on"] body.ng .ng-band-track i { color: #f4d58a !important; }
html[data-festival="on"] body.ng .ng-dock-track { background: rgba(255, 255, 255, .92) !important; box-shadow: 0 14px 34px rgba(21, 39, 30, .14); }
html[data-festival="on"] body.ng .ng-dock a { color: var(--ng-muted); }
html[data-festival="on"] body.ng .ng-dock a.is-active { color: #fff; background: var(--scarlet); }
html[data-festival="on"] body.ng .ng-dock a[data-dock="festival"]:not(.is-active) { color: var(--green); }

/* Cartes et blocs */
html[data-festival="on"] body.ng :is(.v2-card, .v2-product, .ng-panel, .hp-step-list li, .hp-faq-list details, .youtube-video-card, .server-area-card, .role-guide-card, .discord-feature, .docs-card, .legal-card, .xp-card, .mod-feed, .ticket-window, .ticket-steps, .metric, .workspace-section, .profile-banner) { box-shadow: 0 12px 30px rgba(21, 39, 30, .07); }
html[data-festival="on"] body.ng .hp-draw { background: radial-gradient(700px circle at 80% 40%, rgba(200, 50, 63, .08), transparent 60%), radial-gradient(circle, rgba(31, 92, 64, .08) 1px, transparent 1.5px) 0 0 / 14px 14px, #fff; }
html[data-festival="on"] body.ng.ng-home .release-list .release-item { border-color: var(--text) !important; background: #fff !important; }
html[data-festival="on"] body.ng.ng-home .release-list .release-item:nth-child(2) { box-shadow: 8px 8px 0 var(--green) !important; }
html[data-festival="on"] body.ng .release-filters button { background: #fff; color: var(--text); border-color: var(--ng-line-strong); }
html[data-festival="on"] body.ng .release-filters button[aria-pressed="true"] { background: var(--scarlet); color: #fff; }
html[data-festival="on"] body.ng :is(input, select, textarea) { background: #fff; color: var(--text); }
html[data-festival="on"] body.ng .ng-invite { background: linear-gradient(180deg, #1f5c40, #123b29); }
html[data-festival="on"] body.ng .ng-invite-emblem { box-shadow: 0 0 0 4px #1f5c40, 0 0 0 7px #f4d58a, 0 12px 30px rgba(0, 0, 0, .35); background: #1f5c40; }
html[data-festival="on"] body.ng .ng-invite p { color: #cfe3d8 !important; }
html[data-festival="on"] body.ng .ng-invite :is(h3, b) { color: #fff; }

/* Pied de page vert sapin */
html[data-festival="on"] body.ng .v2-footer.community-footer { --ng-muted: #cfe3d8; --ng-faint: #a5c4b3; --fx-text: #fff; --text: #fff; --ng-line: rgba(255, 255, 255, .16); --ng-line-strong: rgba(255, 255, 255, .3); --gold-foil: #f4d58a;
  background: linear-gradient(180deg, #1f5c40, #123b29); border-top: 0; }
html[data-festival="on"] body.ng .v2-footer.community-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: radial-gradient(circle at 12px -4px, #f4f8f5 11px, transparent 11.5px) 0 0 / 24px 20px repeat-x; }
html[data-festival="on"] body.ng .v2-footer.community-footer::before { -webkit-text-stroke-color: rgba(255, 255, 255, .1); }
html[data-festival="on"] body.ng .community-footer :is(p, a, span) { color: var(--ng-muted); }
html[data-festival="on"] body.ng .footer-brand b, html[data-festival="on"] body.ng .footer-socials a, html[data-festival="on"] body.ng .footer-top { color: #fff !important; }

/* Espace membre et administration */
html[data-festival="on"] body.ng[data-platform-page] { background: #f4f8f5; }
html[data-festival="on"] body.ng[data-platform-page] .platform-header { background: rgba(255, 255, 255, .92) !important; }
html[data-festival="on"] body.ng[data-platform-page] .platform-sidebar { background: #eef5f1 !important; }
html[data-festival="on"] body.ng[data-platform-page] .platform-sidebar nav a { color: var(--text); }
html[data-festival="on"] body.ng[data-platform-page] .platform-sidebar nav a[aria-current="page"] { background: rgba(200, 50, 63, .1); color: var(--text); }

/* Page du festival : retour au blanc neige d'origine */
html[data-festival="on"] body.ng.winter-page {
  --paper: #f4f8fa; --card: #ffffff; --frost: #dce8ee; --frost-strong: #c4d6df; --ink: #1c2b26; --ink-muted: #4b5d57;
  --holly: #b8334a; --holly-dark: #8f2236; --pine: #1f5c40; --pine-light: #2f7a52; --shadow-soft: 0 10px 28px rgba(28, 43, 38, .1);
  color-scheme: light; color: var(--ink); background: #f4f8fa radial-gradient(circle, #d6e3ea 1.1px, transparent 1.6px) 0 0 / 30px 30px;
}
html[data-festival="on"] body.ng.winter-page > header { background: rgba(255, 255, 255, .94); color: var(--ink); border-bottom: 1px solid #cc6879; }
html[data-festival="on"] body.ng.winter-page > header a { color: var(--ink); }
html[data-festival="on"] body.ng.winter-page .festival::after { background: linear-gradient(transparent, rgba(244, 248, 250, .5) 55%, #f4f8fa); }
html[data-festival="on"] body.ng.winter-page .festival-tabs { background: rgba(255, 255, 255, .94); border-color: var(--frost); }
html[data-festival="on"] body.ng.winter-page .festival-tabs a { color: var(--ink-muted); }
html[data-festival="on"] body.ng.winter-page .festival-tabs a:hover { background: #eef5f8; color: var(--ink); }
html[data-festival="on"] body.ng.winter-page .festival-tabs a[aria-current="true"] { background: var(--holly); color: #fff; }
html[data-festival="on"] body.ng.winter-page :is(.heading h2, .winter-panel > h2, .w-tour h2, .w-steps h3, .winter-item h3) { color: var(--ink); }
html[data-festival="on"] body.ng.winter-page .winter-item { background: #fff; border-color: var(--frost); box-shadow: var(--shadow-soft); }
html[data-festival="on"] body.ng.winter-page .winter-item::before { opacity: 1; }
html[data-festival="on"] body.ng.winter-page :is(.winter-panel, dialog) :is(input, select, textarea) { background: #fff; color: var(--ink); border-color: var(--frost-strong); }
html[data-festival="on"] body.ng.winter-page :is(.winter-panel, dialog) button:disabled { background: #e7edf0; color: #6b7b80; border-color: var(--frost-strong); }
html[data-festival="on"] body.ng.winter-page :is(.winter-panel details, #ranking li, dialog, .winter-feedback, .admin-readiness, .winter-admin #settings) { background: #fff; color: var(--ink); border-color: var(--frost); }
html[data-festival="on"] body.ng.winter-page .winter-admin #option-fields :is(details, details[open], details details) { background: #fff; }
html[data-festival="on"] body.ng.winter-page .admin-readiness li { background: #f6fafb; }
html[data-festival="on"] body.ng.winter-page .winter-admin #totals { background: var(--pine); color: #fff; }
html[data-festival="on"] body.ng.winter-page .w-eyebrow { color: var(--pine-light); }
html[data-festival="on"] body.ng.winter-page .w-eyebrow::before { color: var(--holly); }
html[data-festival="on"] body.ng.winter-page .w-marquee { background: linear-gradient(90deg, #b8334a, #1f5c40); border-color: transparent; }
html[data-festival="on"] body.ng.winter-page .w-steps li { background: #fff; border-color: var(--frost); box-shadow: var(--shadow-soft); }
html[data-festival="on"] body.ng.winter-page .w-steps p, html[data-festival="on"] body.ng.winter-page .w-lede { color: var(--ink-muted); }
html[data-festival="on"] body.ng.winter-page #ranking li:nth-child(-n+3) { color: var(--ink); }
html[data-festival="on"] body.ng.winter-page #ranking li:nth-child(1) { background: linear-gradient(180deg, #fff1cf, #fff 70%); }
html[data-festival="on"] body.ng.winter-page #ranking li:nth-child(2) { background: linear-gradient(180deg, #eef2f5, #fff 70%); }
html[data-festival="on"] body.ng.winter-page #ranking li:nth-child(3) { background: linear-gradient(180deg, #f7e6d8, #fff 70%); }
html[data-festival="on"] body.ng.winter-page #wallet:not(:empty) { background: #fff; border-color: var(--frost-strong); color: var(--pine); }
html[data-festival="on"] body.ng.winter-page #shop-list .winter-item > p:nth-of-type(2) { background: #fff6e0; border-color: #e7c77e; color: #8a5a00; }
html[data-festival="on"] body.ng.winter-page .demo-strip { background: #183632; color: #e4f3ed; }
html[data-festival="on"] body.ng .ng-final :is(p, li) { color: #2b0a0f !important; }
html[data-festival="on"] body.ng .ng-final h2 { color: #1a0608 !important; }
html[data-festival="on"] body.ng .ng-final .ng-invite p { color: #cfe3d8 !important; }
html[data-festival="on"] body.ng .ng-final .ng-invite :is(h3, b) { color: #fff !important; }
html body.ng .ng-final .ng-invite .v2-button.primary { background: linear-gradient(180deg, #f6d48a, #efc66b 55%, #d9a947) !important; background-image: linear-gradient(180deg, #f6d48a, #efc66b 55%, #d9a947) !important; color: #1b160b !important; }
html[data-festival="on"] body.ng .ng-fest :is(p, .ng-fest-text) { color: #e8dccd !important; }
html[data-festival="on"] body.ng .ng-fest .ng-fest-kicker { color: #f4d58a !important; }
html[data-festival="on"] body.ng .ng-fest .ng-fest-status { color: #fff !important; }
html[data-festival="on"] body.ng .ng-fest .v2-button.ghost { color: #fff !important; background: rgba(0, 0, 0, .3) !important; border-color: rgba(255, 255, 255, .35) !important; }
html[data-festival="on"] body.ng .ng-fest h2 { color: transparent !important; }
/* Héros avec photo (Communauté) : texte clair conservé pendant le festival */
html[data-festival="on"] body.ng.discord-v2 .v2-page-hero :is(h1, p) { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
html[data-festival="on"] body.ng.discord-v2 .v2-page-hero .v2-kicker { color: #f4d58a !important; }
html[data-festival="on"] body.ng.discord-v2 .v2-page-hero .v2-button.ghost { color: #fff !important; background: rgba(0, 0, 0, .35) !important; border-color: rgba(255, 255, 255, .4) !important; }
html[data-festival="on"] body.ng .ng-final .ng-final-word { color: transparent !important; -webkit-text-stroke: 2px rgba(26, 6, 8, .16) !important; }
html[data-festival="on"] body.ng .ng-final .ng-final-points li { color: #1a0608 !important; }
html[data-festival="on"] body.ng.winter-page .festival h1 { color: #fff !important; }
html[data-festival="on"] body.ng.winter-page .festival :is(.festival-kicker, p) { color: #f6dccc !important; }
html[data-festival="on"] body.ng.winter-page .w-marquee span { color: #fff !important; background: rgba(0, 0, 0, .28) !important; border-color: rgba(255, 219, 155, .55) !important; }

/* =====================================================================
   Accueil « page unique » v2 : vrai visuel du serveur, manifeste, équipe,
   points latéraux, bouton Discord flottant
   ===================================================================== */
/* Héros : île sombre avec l'art du serveur, même pendant le festival */
html body.ng .ng-hero { --fx-text: #fff; --text: #f6f4fb; --ng-muted: #d9d4e6; --ng-line: rgba(255, 255, 255, .14); --ng-line-strong: rgba(255, 255, 255, .26); color: #fff; background: #0a0a0f; }
html body.ng .ng-hero :is(h1, .ng-title-line) { color: #fff; }
html body.ng .ng-hero .ng-outline { -webkit-text-stroke-color: #fff !important; color: transparent !important; }
html body.ng .ng-hero p { color: var(--ng-muted); }
.ng-art { position: absolute; inset: -4%; background: url("/assets/wn-splash.webp") 72% 30% / cover no-repeat; opacity: .55; filter: saturate(1.15) contrast(1.05); }
.ng-hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 10, 15, .96) 0%, rgba(10, 10, 15, .82) 34%, rgba(10, 10, 15, .25) 70%, rgba(10, 10, 15, .55) 100%),
  linear-gradient(180deg, rgba(10, 10, 15, .6) 0%, transparent 22%, transparent 70%, #0a0a0f 100%); }
html body.ng .ng-hero .ng-rays { opacity: .55; }
html body.ng .ng-hero :is(.ng-tag, .ng-live li, .ng-shuffle) { background: rgba(10, 10, 15, .55) !important; color: #fff !important; border-color: rgba(255, 255, 255, .18) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html body.ng .ng-hero .ng-live strong { color: #fff; }
html body.ng .ng-hero .v2-button.ghost { background: rgba(10, 10, 15, .45) !important; color: #fff !important; border-color: rgba(255, 255, 255, .3) !important; }
html body.ng .ng-hero .ng-kanji { -webkit-text-stroke-color: rgba(239, 198, 107, .12); }
.ng-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
html body.ng .ng-tags .ng-tag { margin: 0; }
.ng-xmas { display: none !important; align-items: center; gap: 8px; border-color: rgba(239, 198, 107, .55) !important; }
.ng-xmas img { width: 22px; height: 22px; border-radius: 50%; }
html[data-festival="on"] .ng-xmas { display: inline-flex !important; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) .ng-art { animation: ng-ken 26s ease-in-out infinite alternate; }
}
@keyframes ng-ken { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, 1.5%, 0); } }

/* Manifeste */
.ng-manifesto { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(50px, 7vw, 90px); }
html body.ng .ng-mf-text { max-width: 22ch; margin: 14px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -.01em; }
.ng-mf-text em, .ng-mf-text strong { font-style: normal; font-weight: 400; }
.mf-w { color: color-mix(in srgb, var(--text) 18%, transparent); transition: color .35s ease; }
.mf-w.is-lit { color: var(--text); }
.ng-mf-text strong .mf-w.is-lit { color: var(--scarlet); }
.ng-mf-text em .mf-w.is-lit { color: color-mix(in srgb, var(--text) 55%, transparent); }
.ng-mf-stats { display: flex; flex-wrap: wrap; gap: 18px 0; margin: 46px 0 0; }
.ng-mf-stats div { padding: 0 clamp(18px, 3vw, 40px); border-left: 1px solid var(--ng-line); }
.ng-mf-stats div:first-child { padding-left: 0; border-left: 0; }
.ng-mf-stats dt { order: 2; margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ng-faint); }
.ng-mf-stats dd { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.ng-mf-stats div:nth-child(2) dd { color: var(--green); }
.ng-mf-stats div { display: flex; flex-direction: column-reverse; }

/* Équipe : fondateurs + hiérarchie */
.ng-team { position: relative; isolation: isolate; }
.ng-team-year { position: absolute; z-index: -1; right: -10px; top: 20px; margin: 0; font-family: var(--display); font-size: clamp(120px, 20vw, 300px); line-height: 1; color: transparent !important; -webkit-text-stroke: 2px color-mix(in srgb, var(--scarlet) 22%, transparent); pointer-events: none; user-select: none; }
.ng-founders { position: relative; min-height: 340px; margin: 10px 0 50px; }
.tm-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tm-line path { fill: none; stroke: var(--scarlet); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--scarlet) 70%, transparent)); stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 2.2s cubic-bezier(.6, 0, .2, 1) .3s; }
.ng-team.is-drawn .tm-line path { stroke-dashoffset: 0; }
.tm-founder { position: absolute; left: 6%; top: 8%; display: grid; gap: 12px; opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.tm-founder.is-right { left: auto; right: 6%; top: 52%; justify-items: end; text-align: right; transition-delay: 1.2s; }
.ng-team.is-drawn .tm-founder { opacity: 1; transform: none; }
html body.ng .tm-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5.6vw, 84px); line-height: 1; color: var(--text); text-shadow: 0 0 30px color-mix(in srgb, var(--c) 35%, transparent); }
.tm-meta { display: flex; align-items: center; gap: 12px; }
.tm-founder.is-right .tm-meta { flex-direction: row-reverse; }
.tm-avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; font-family: var(--display); font-size: 18px; color: #0a0a0f; background: radial-gradient(circle at 30% 25%, #fff6, transparent 55%), var(--c); box-shadow: 0 0 0 3px var(--ng-ink), 0 0 0 5px var(--c), 0 0 24px color-mix(in srgb, var(--c) 45%, transparent); }
.tm-role { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tm-meta small { display: block; margin-top: 4px; color: var(--ng-muted); font-size: 13px; }
.ng-ladder { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 34px; list-style: none; }
.ng-ladder::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--scarlet), var(--gold-foil), transparent); }
.tm-tier { position: relative; padding: 18px 20px; border: 1px solid var(--ng-line); border-radius: 18px; background: var(--ng-ink-2); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.tm-tier::before { content: ""; position: absolute; left: -29px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--ng-ink), 0 0 14px var(--c); }
.tm-tier:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.tm-tier-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.tm-rank { font-family: var(--display); font-size: 22px; color: var(--c); }
html body.ng .tm-tier h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); color: var(--text); }
.tm-count { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--text); font-size: 12px; font-weight: 700; }
.tm-summary { margin: 6px 0 12px; font-size: 14px; color: var(--ng-muted); }
.tm-people { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tm-person { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--ng-line); background: color-mix(in srgb, var(--c) 7%, transparent); max-width: 100%; }
.tm-person .tm-avatar { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 0 0 2px var(--ng-ink-2), 0 0 0 3px var(--c); }
.tm-person b { display: block; color: var(--text); font-size: 14px; }
.tm-person small { display: block; color: var(--ng-muted); font-size: 12px; }
.tm-person em { display: block; max-width: 34ch; margin-top: 2px; color: var(--ng-faint); font-size: 12px; font-style: normal; }
@media (max-width: 760px) {
  .ng-founders { min-height: 0; display: grid; gap: 26px; }
  .tm-line { display: none; }
  .tm-founder, .tm-founder.is-right { position: static; justify-items: start; text-align: left; transition-delay: 0s; }
  .tm-founder.is-right .tm-meta { flex-direction: row; }
  .tm-count { margin-left: 0; }
}

/* Points latéraux (bureau) : remplacent la barre de sections */
.ng-dots { position: fixed; z-index: 45; right: 22px; top: 50%; translate: 0 -50%; display: none; flex-direction: column; gap: 12px; }
.ng-dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 25%, transparent); transition: transform .3s, background .3s; }
.ng-dots a[hidden] { display: none; }
.ng-dots a span { position: absolute; right: 22px; top: 50%; translate: 0 -50%; padding: 5px 10px; border-radius: 8px; background: var(--ng-ink-2); border: 1px solid var(--ng-line); color: var(--text); font: 700 12px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(6px); transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.ng-dots a:hover span, .ng-dots a:focus-visible span { opacity: 1; transform: none; }
.ng-dots a:hover { background: var(--text); }
.ng-dots a.is-active { background: var(--scarlet); transform: scale(1.6); box-shadow: 0 0 12px var(--scarlet); }
@media (min-width: 1180px) and (pointer: fine) { .ng-dots { display: flex; } html body.ng .ng-dock { display: none; } }

/* Bouton Discord flottant */
.ng-float-join { position: fixed; z-index: 46; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #5865f2; color: #fff !important; font-weight: 800; text-decoration: none; box-shadow: 0 14px 34px rgba(88, 101, 242, .45); opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; transition: opacity .35s, transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.ng-float-join img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ng-float-join.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ng-float-join:hover { box-shadow: 0 18px 44px rgba(88, 101, 242, .6); transform: translateY(-2px); }
@media (min-width: 1180px) { .ng-float-join { right: 50px; } }

/* Carte d'invitation : bannière réelle du serveur */
.ng-invite-banner { position: relative; overflow: hidden; }
.ng-invite-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.ng-invite-banner.has-art img { opacity: 1; }
html body.ng .ng-invite-emblem { position: relative; z-index: 1; }

/* Pendant le festival : manifeste et équipe lisibles sur fond clair */
html[data-festival="on"] body.ng .tm-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); }
html[data-festival="on"] body.ng .tm-tier::before { box-shadow: 0 0 0 4px #f4f8f5, 0 0 10px var(--c); }
html[data-festival="on"] body.ng .tm-line path { stroke: #c8323f; }
html[data-festival="on"] body.ng .mf-w { color: rgba(21, 39, 30, .16); }
html[data-festival="on"] body.ng .mf-w.is-lit { color: #15271e; }
html[data-festival="on"] body.ng .ng-mf-text strong .mf-w.is-lit { color: #c8323f; }
html[data-festival="on"] body.ng .ng-mf-text em .mf-w.is-lit { color: #1f7a4d; }
@media (prefers-reduced-motion: reduce) { .tm-line path { transition: none; stroke-dashoffset: 0; } .tm-founder { opacity: 1; transform: none; transition: none; } }
html[data-reduced-motion="true"] .tm-line path { transition: none; stroke-dashoffset: 0; }
html[data-reduced-motion="true"] .tm-founder { opacity: 1; transform: none; transition: none; }

/* =====================================================================
   Équipe : le staff en collection de cartes (une rareté par niveau)
   ===================================================================== */
.ng-team .ng-team-year, .ng-team .ng-founders, .ng-team .ng-ladder { display: none !important; }
.st-total { display: inline-block; margin-top: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ng-line-strong); font-size: 13px; font-weight: 700; color: var(--ng-muted); }
.st-deck { display: grid; gap: 26px; }
.st-row { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 22px; border-top: 1px solid var(--ng-line); }
.st-row:first-child { border-top: 0; padding-top: 0; }
.st-row-head { position: sticky; top: 110px; display: grid; gap: 6px; align-content: start; }
.st-chip { width: fit-content; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tier) 18%, transparent); border: 1px solid var(--tier); color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
html body.ng .st-row-head h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; color: var(--text); }
.st-count { font-size: 13px; font-weight: 700; color: var(--tier); filter: brightness(.85); }
.st-row-head p { margin: 2px 0 0; font-size: 14px; color: var(--ng-muted); }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.st-row.is-top .st-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.st-card { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; border-radius: 16px; padding: 8px; outline: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tier) 55%, #1b1925), #121119 60%);
  box-shadow: 0 0 0 2px var(--tier), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.st-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .35s;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%); }
.st-card:hover, .st-card:focus-visible { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 0 0 2px var(--tier), 0 0 34px color-mix(in srgb, var(--tier) 50%, transparent), 0 26px 50px rgba(0, 0, 0, .45); }
.st-card:hover::after, .st-card:focus-visible::after { opacity: .9; }
.st-card-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.st-rar { color: var(--tier); filter: brightness(1.2); }
.st-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 80%, transparent), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% 110%, color-mix(in srgb, var(--c) 30%, transparent) 0 4deg, transparent 4deg 12deg),
    radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 9px 9px, #0c0b12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.st-art span { font-family: var(--display); font-size: clamp(36px, 4vw, 54px); line-height: 1; color: #fff; text-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000), 0 0 24px color-mix(in srgb, var(--c) 60%, transparent); }
.st-row.is-top .st-art span { font-size: clamp(48px, 5vw, 70px); }
.st-body { display: grid; align-content: start; gap: 2px; padding: 10px 6px 4px; color: #fff; }
html body.ng .st-body h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.st-body p { margin: 0; }
html body.ng .st-body .st-role { color: var(--tier); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; filter: brightness(1.15); }
html body.ng .st-body .st-tag { color: rgba(255, 255, 255, .62); font-size: 12px; }
html body.ng .st-body .st-note { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78); font-size: 12px; line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-reduced-motion="true"]) .st-row[data-tier="signature"] .st-card::before, html:not([data-reduced-motion="true"]) .st-row[data-tier="divine"] .st-card::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: overlay; opacity: .3;
    background: linear-gradient(130deg, #e43d45, #efc66b, #7fe3ff, #a66bff, #e43d45) 0 0 / 300% 300%; animation: ng-holo 7s linear infinite; }
}
@media (max-width: 860px) { .st-row { grid-template-columns: 1fr; } .st-row-head { position: static; } .st-cards, .st-row.is-top .st-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
html body.ng .st-row-head h3 { font-size: clamp(20px, 1.7vw, 25px); overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (min-width: 861px) { .st-row { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); } }

/* ---------- Thème clair : règles du festival réutilisées (générées) ---------- */
html[data-ng-light="on"] body.ng { --ng-line: rgba(20, 70, 45, .06) !important; --ng-line-strong: rgba(20, 70, 45, .06) !important; --panel: rgba(20, 70, 45, .06) !important; --panel-strong: rgba(20, 70, 45, .06) !important; --control-bg: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng ::selection { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .community-header { background: rgba(255, 255, 255, .9) !important; }
html[data-ng-light="on"] body.ng .community-header.mx-scrolled { background: rgba(255, 255, 255, .9) !important; }
html[data-ng-light="on"] body.ng .community-header .v2-brand strong { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav a:hover { color: var(--fx-text) !important; background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .community-header .navigation-toggle { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .community-header .wn-login, html[data-ng-light="on"] body.ng .community-header .wn-account summary { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
@media (max-width: 900px) { html[data-ng-light="on"] body.ng .community-header .v2-nav { background: #ffffff !important; } }
html[data-ng-light="on"] body.ng .v2-button.ghost { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ng-halftone { background: radial-gradient(circle, rgba(20, 70, 45, .06) 1.1px, transparent 1.7px) 0 0 / 13px 13px !important; }
html[data-ng-light="on"] body.ng .ng-tag { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ng-outline { -webkit-text-stroke: 2px var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ng-live strong { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ng-shuffle { background: rgba(255, 255, 255, .9) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .hp-draw { background: radial-gradient(700px circle at 80% 40%, rgba(228, 61, 69, .12), transparent 60%), radial-gradient(circle, rgba(20, 70, 45, .06) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--ng-ink-2) !important; }
html[data-ng-light="on"] body.ng .hp-draw-score div, html[data-ng-light="on"] body.ng .hp-ladder li { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .ng-round { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ng-rail-card b { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng :is(.game-overview, .v2-page-hero:not(:has(> img)), .bot-hero, .docs-hero, .card-catalogue > header)::before { background:
    radial-gradient(600px circle at 78% 40%, rgba(228, 61, 69, .22), transparent 60%),
    radial-gradient(circle, rgba(20, 70, 45, .06) 1.1px, transparent 1.7px) 0 0 / 13px 13px,
    repeating-conic-gradient(from 0deg at 78% 45%, rgba(228, 61, 69, .08) 0 3deg, transparent 3deg 11deg) !important; }
html[data-ng-light="on"] body.ng[data-platform-page] .platform-header { background: rgba(255, 255, 255, .9) !important; }
html[data-ng-light="on"] body.ng[data-platform-page] .platform-sidebar { background: #ffffff !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open { background: #ffffff !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open a { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open a:hover { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .footer-identity > a { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .community-footer nav a:hover { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .staff-node::before { background: repeating-conic-gradient(from 0deg at 50% 70%, color-mix(in srgb, var(--c) 26%, transparent) 0 4deg, transparent 4deg 12deg),
    radial-gradient(circle, rgba(20, 70, 45, .06) 1px, transparent 1.5px) 0 0 / 10px 10px !important; }
html[data-ng-light="on"] body.ng .staff-node .v2-kicker { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .staff-node h4 { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .binder-ring { background: radial-gradient(closest-side, var(--ng-ink-2) 78%, transparent 79% 100%), conic-gradient(var(--scarlet), var(--gold-foil) calc(var(--p) * 1%), rgba(20, 70, 45, .06) 0) !important; }
html[data-ng-light="on"] body.ng .binder-ring strong { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng [data-collection-grid] { background:
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 70, 45, .06) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), #0d0c13 !important; }
html[data-ng-light="on"] body.ng .binder-slot { background: linear-gradient(160deg, rgba(20, 70, 45, .06), rgba(20, 70, 45, .06)) !important; box-shadow: inset 0 0 0 1px rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .binder-slot::after { background: linear-gradient(125deg, rgba(20, 70, 45, .06), transparent 38%) !important; }
@media (max-width: 640px) { html[data-ng-light="on"] body.ng [data-collection-grid] { background: #ffffff !important; } }
html[data-ng-light="on"] body.ng .mod-feed-head { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .mod-feed li { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .mod-feed li span { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ticket-steps button:hover { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ticket-steps button.is-done { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ticket-bar { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .ticket-bar span { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .ticket-bar b { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ticket-msg b { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ticket-msg[data-role="bot"] b::after { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ticket-chips span { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng.youtube-v2 .youtube-video-card.is-featured { background: radial-gradient(900px 400px at 30% 50%, rgba(20, 70, 45, .06), transparent 60%), linear-gradient(90deg, #3a0a14, var(--ng-ink-2) 12%, var(--ng-ink-2) 88%, #3a0a14) !important; }
html[data-ng-light="on"] body.ng.youtube-v2 .youtube-video-card.is-featured .yt-thumb { box-shadow: 0 0 0 1px rgba(20, 70, 45, .06), 0 30px 80px rgba(20, 70, 45, .06), 0 40px 90px rgba(0, 0, 0, .6) !important; }
html[data-ng-light="on"] body.ng.ng-home .release-list .release-item::before { background: radial-gradient(circle, rgba(20, 70, 45, .06) 1.1px, transparent 1.6px) 0 0 / 11px 11px !important; }
html[data-ng-light="on"] body.ng .docs-tools { background: rgba(255, 255, 255, .9) !important; }
html[data-ng-light="on"] body.ng .command-list code[data-copyable]:hover { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .docs-card :is(li, code).is-hit { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng #card-detail { background: radial-gradient(500px circle at 50% 55%, rgba(239, 198, 107, .14), transparent 65%), radial-gradient(circle, rgba(20, 70, 45, .06) 1px, transparent 1.5px) 0 0 / 12px 12px, var(--ng-ink-2) !important; }
html[data-ng-light="on"] body.ng .legal-toc a:hover { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .role-tab { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .role-tab span { background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .role-tab:hover { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .ng-dock-track { background: rgba(255, 255, 255, .9) !important; }
html[data-ng-light="on"] body.ng .ng-dock a:hover { color: var(--fx-text) !important; background: rgba(20, 70, 45, .06) !important; }
html[data-ng-light="on"] body.ng .footer-brand b { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .footer-socials a { background: rgba(20, 70, 45, .06) !important; color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .footer-socials a:hover { border-color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .footer-col a:hover { color: var(--fx-text) !important; }
html[data-ng-light="on"] body.ng .footer-top { color: var(--fx-text) !important; }
html[data-ng-light="on"]:has(body.ng) { background: #f4f8f5; color-scheme: light; }
html[data-ng-light="on"] body.ng {
  --ng-ink: #f4f8f5; --ng-ink-2: #ffffff; --ng-ink-3: #edf4ef; --ng-ink-4: #e1ebe4;
  --ng-line: rgba(31, 92, 64, .14); --ng-line-strong: rgba(31, 92, 64, .28); --ng-muted: #47594f; --ng-faint: #66786e;
  --text: #15271e; --fx-text: #15271e; --scarlet: #c8323f; --scarlet-deep: #9b2230; --gold-foil: #a87818; --green: #1f7a4d;
  --chrome: #ffffff; --surface: #ffffff; --public-card: #ffffff; --panel: rgba(31, 92, 64, .04); --panel-strong: rgba(31, 92, 64, .08); --control-bg: #ffffff;
  --shadow: 0 20px 50px rgba(21, 39, 30, .12);
  color-scheme: light; color: var(--text);
  background: #f4f8f5 radial-gradient(circle, rgba(31, 92, 64, .12) 1.1px, transparent 1.6px) 0 0 / 30px 30px;
}
html[data-ng-light="on"] body.ng::before { background: radial-gradient(circle at 15% 10%, rgba(200, 50, 63, .08), transparent 40%), radial-gradient(circle at 85% 80%, rgba(31, 122, 77, .1), transparent 45%); opacity: 1; }
html[data-ng-light="on"] body.ng :is(h1, h2, h3, h4) { color: var(--text); }
html[data-ng-light="on"] body.ng p { color: var(--ng-muted); }
html[data-ng-light="on"] body.ng :is(.hp-eyebrow, .v2-kicker) { color: var(--green); }
html[data-ng-light="on"] body.ng :is(.hp-eyebrow span, .v2-kicker::before) { color: var(--scarlet) !important; }
html[data-ng-light="on"] body.ng a.v2-inline { color: var(--scarlet); }
html[data-ng-light="on"] body.ng .community-header { background: rgba(255, 255, 255, .9) !important; border-color: rgba(31, 92, 64, .16); box-shadow: 0 14px 34px rgba(21, 39, 30, .12); }
html[data-ng-light="on"] body.ng .community-header :is(.navigation-toggle, .wn-login, .wn-account summary) { background: #fff !important; color: var(--text) !important; border-color: var(--ng-line-strong) !important; }
html[data-ng-light="on"] body.ng .community-header .v2-brand strong { color: var(--text); }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open { background: #fff !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open a { color: var(--text) !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open a.winter-nav-link { color: var(--scarlet) !important; }
html[data-ng-light="on"] body.ng .community-header .v2-nav.navigation-open a[aria-current="page"] { background: rgba(200, 50, 63, .1); }
html[data-ng-light="on"] body.ng .ng-halftone { background: radial-gradient(circle, rgba(31, 92, 64, .2) 1.1px, transparent 1.7px) 0 0 / 13px 13px; }
html[data-ng-light="on"] body.ng .ng-rays { background: repeating-conic-gradient(from 0deg, rgba(200, 50, 63, .1) 0 3deg, transparent 3deg 7deg, rgba(31, 122, 77, .08) 7deg 10deg, transparent 10deg 14deg); }
html[data-ng-light="on"] body.ng .ng-tag { background: #fff; color: var(--text) !important; }
html[data-ng-light="on"] body.ng .ng-live li { background: #fff; box-shadow: 0 8px 20px rgba(21, 39, 30, .06); }
html[data-ng-light="on"] body.ng .ng-shuffle { background: #fff; color: var(--text); }
html[data-ng-light="on"] body.ng .ng-dock-track { background: rgba(255, 255, 255, .92) !important; box-shadow: 0 14px 34px rgba(21, 39, 30, .14); }
html[data-ng-light="on"] body.ng .ng-dock a { color: var(--ng-muted); }
html[data-ng-light="on"] body.ng .ng-dock a.is-active { color: #fff; background: var(--scarlet); }
html[data-ng-light="on"] body.ng .ng-dock a[data-dock="festival"]:not(.is-active) { color: var(--green); }
html[data-ng-light="on"] body.ng :is(.v2-card, .v2-product, .ng-panel, .hp-step-list li, .hp-faq-list details, .youtube-video-card, .server-area-card, .role-guide-card, .discord-feature, .docs-card, .legal-card, .xp-card, .mod-feed, .ticket-window, .ticket-steps, .metric, .workspace-section, .profile-banner) { box-shadow: 0 12px 30px rgba(21, 39, 30, .07); }
html[data-ng-light="on"] body.ng .hp-draw { background: radial-gradient(700px circle at 80% 40%, rgba(200, 50, 63, .08), transparent 60%), radial-gradient(circle, rgba(31, 92, 64, .08) 1px, transparent 1.5px) 0 0 / 14px 14px, #fff; }
html[data-ng-light="on"] body.ng.ng-home .release-list .release-item { border-color: var(--text) !important; background: #fff !important; }
html[data-ng-light="on"] body.ng.ng-home .release-list .release-item:nth-child(2) { box-shadow: 8px 8px 0 var(--green) !important; }
html[data-ng-light="on"] body.ng .release-filters button { background: #fff; color: var(--text); border-color: var(--ng-line-strong); }
html[data-ng-light="on"] body.ng .release-filters button[aria-pressed="true"] { background: var(--scarlet); color: #fff; }
html[data-ng-light="on"] body.ng :is(input, select, textarea) { background: #fff; color: var(--text); }
html[data-ng-light="on"] body.ng .ng-invite { background: linear-gradient(180deg, #1f5c40, #123b29); }
html[data-ng-light="on"] body.ng .ng-invite-emblem { box-shadow: 0 0 0 4px #1f5c40, 0 0 0 7px #f4d58a, 0 12px 30px rgba(0, 0, 0, .35); background: #1f5c40; }
html[data-ng-light="on"] body.ng .ng-invite p { color: #cfe3d8 !important; }
html[data-ng-light="on"] body.ng .ng-invite :is(h3, b) { color: #fff; }
html[data-ng-light="on"] body.ng .v2-footer.community-footer { --ng-muted: #cfe3d8; --ng-faint: #a5c4b3; --fx-text: #fff; --text: #fff; --ng-line: rgba(255, 255, 255, .16); --ng-line-strong: rgba(255, 255, 255, .3); --gold-foil: #f4d58a;
  background: linear-gradient(180deg, #1f5c40, #123b29); border-top: 0; }
html[data-ng-light="on"] body.ng .v2-footer.community-footer::before { -webkit-text-stroke-color: rgba(255, 255, 255, .1); }
html[data-ng-light="on"] body.ng .community-footer :is(p, a, span) { color: var(--ng-muted); }
html[data-ng-light="on"] body.ng .footer-brand b, html[data-ng-light="on"] body.ng .footer-socials a, html[data-ng-light="on"] body.ng .footer-top { color: #fff !important; }
html[data-ng-light="on"] body.ng[data-platform-page] { background: #f4f8f5; }
html[data-ng-light="on"] body.ng[data-platform-page] .platform-header { background: rgba(255, 255, 255, .92) !important; }
html[data-ng-light="on"] body.ng[data-platform-page] .platform-sidebar { background: #eef5f1 !important; }
html[data-ng-light="on"] body.ng[data-platform-page] .platform-sidebar nav a { color: var(--text); }
html[data-ng-light="on"] body.ng[data-platform-page] .platform-sidebar nav a[aria-current="page"] { background: rgba(200, 50, 63, .1); color: var(--text); }
html[data-ng-light="on"] body.ng .ng-final :is(p, li) { color: #2b0a0f !important; }
html[data-ng-light="on"] body.ng .ng-final h2 { color: #1a0608 !important; }
html[data-ng-light="on"] body.ng .ng-final .ng-invite p { color: #cfe3d8 !important; }
html[data-ng-light="on"] body.ng .ng-final .ng-invite :is(h3, b) { color: #fff !important; }
html[data-ng-light="on"] body.ng.discord-v2 .v2-page-hero :is(h1, p) { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
html[data-ng-light="on"] body.ng.discord-v2 .v2-page-hero .v2-kicker { color: #f4d58a !important; }
html[data-ng-light="on"] body.ng.discord-v2 .v2-page-hero .v2-button.ghost { color: #fff !important; background: rgba(0, 0, 0, .35) !important; border-color: rgba(255, 255, 255, .4) !important; }
html[data-ng-light="on"] body.ng .ng-final .ng-final-word { color: transparent !important; -webkit-text-stroke: 2px rgba(26, 6, 8, .16) !important; }
html[data-ng-light="on"] body.ng .ng-final .ng-final-points li { color: #1a0608 !important; }
html[data-ng-light="on"] body.ng .tm-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); }
html[data-ng-light="on"] body.ng .tm-tier::before { box-shadow: 0 0 0 4px #f4f8f5, 0 0 10px var(--c); }
html[data-ng-light="on"] body.ng .mf-w { color: rgba(21, 39, 30, .16); }
html[data-ng-light="on"] body.ng .mf-w.is-lit { color: #15271e; }
html[data-ng-light="on"] body.ng .ng-mf-text strong .mf-w.is-lit { color: #c8323f; }
/* Thème clair (préférence du compte) hors festival : base neutre, accents jaune et rouge d'origine */
html[data-ng-light="on"]:not([data-festival="on"]) body.ng { --scarlet: #c8323f; --gold-foil: #8a6100; --green: #1f7a4d; background: #f6f6f8 radial-gradient(circle, rgba(20, 20, 30, .08) 1.1px, transparent 1.6px) 0 0 / 30px 30px; --ng-ink: #f6f6f8; --ng-line: rgba(20, 20, 30, .12); --ng-line-strong: rgba(20, 20, 30, .24); --ng-muted: #4f5562; --ng-faint: #6b717d; --text: #16171c; --fx-text: #16171c; }
html[data-ng-light="on"]:not([data-festival="on"]) body.ng :is(.hp-eyebrow, .v2-kicker) { color: #8a6100; }
html[data-ng-light="on"]:not([data-festival="on"]) body.ng .v2-footer.community-footer { background: #0c0d10; }
html[data-ng-light="on"]:not([data-festival="on"]) body.ng .ng-dock a[data-dock="festival"]:not(.is-active) { color: #8a6100; }

/* =====================================================================
   Paramètres de l'espace membre
   ===================================================================== */
html body.ng .settings-v2 { display: grid; gap: 16px; }
html body.ng .settings-card { display: grid; gap: 18px; padding: 22px; border-radius: 20px; }
.settings-card-head { display: flex; gap: 14px; align-items: flex-start; }
.settings-card-head > svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--gold-foil) 16%, transparent); color: var(--gold-foil); }
html body.ng .settings-card-head h2 { margin: 0; }
.settings-card-head p { margin: 4px 0 0; font-size: 14px; color: var(--ng-muted); }
.theme-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.theme-tiles legend, .segmented legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ng-muted); }
.theme-tile { position: relative; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--ng-line-strong); border-radius: 16px; background: var(--ng-ink-3); cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.theme-tile:hover { transform: translateY(-2px); }
.theme-tile input { position: absolute; opacity: 0; pointer-events: none; }
.theme-tile:has(input:checked) { border-color: var(--gold-foil); box-shadow: 0 0 0 2px var(--gold-foil); }
.theme-tile:has(input:focus-visible) { outline: 2px solid var(--gold-foil); outline-offset: 3px; }
.theme-swatch { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 26px 26px; gap: 5px; padding: 8px; border-radius: 10px; background: #0c0d10; }
.theme-swatch i { border-radius: 6px; background: #1b1c22; }
.theme-swatch i:nth-child(1) { grid-column: 1 / -1; background: linear-gradient(90deg, #efc66b 0 30%, #1b1c22 30%); }
.theme-swatch i:nth-child(3) { background: #e43d45; }
.theme-tile[data-preview="light"] .theme-swatch { background: #f6f6f8; }
.theme-tile[data-preview="light"] .theme-swatch i { background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.theme-tile[data-preview="light"] .theme-swatch i:nth-child(1) { background: linear-gradient(90deg, #efc66b 0 30%, #fff 30%); }
.theme-tile[data-preview="light"] .theme-swatch i:nth-child(3) { background: #c8323f; }
.theme-tile[data-preview="system"] .theme-swatch { background: linear-gradient(135deg, #0c0d10 50%, #f6f6f8 50%); }
.theme-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
.theme-label svg { width: 16px; height: 16px; }
.theme-tile small { font-size: 12px; color: var(--ng-muted); }
.settings-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(31, 122, 77, .1); border: 1px solid rgba(31, 122, 77, .3); font-size: 14px; color: var(--text); }
.settings-hint svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 4px; border: 1px solid var(--ng-line-strong); border-radius: 14px; background: var(--ng-ink-3); }
.segmented legend { padding: 0; float: left; width: 100%; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; transition: background .2s; }
.segmented b { color: var(--text); font-size: 14px; }
.segmented small { color: var(--ng-muted); font-size: 12px; }
.segmented input:checked + span { background: var(--ng-ink-2); box-shadow: 0 0 0 1px var(--gold-foil), 0 6px 16px rgba(0, 0, 0, .15); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold-foil); }
html body.ng .settings-v2 .preference-toggles { display: grid; gap: 4px; }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 4px; border-top: 1px solid var(--ng-line); cursor: pointer; }
.switch-line:first-child { border-top: 0; }
.switch-line b { display: block; color: var(--text); font-size: 15px; }
.switch-line small { display: block; margin-top: 3px; color: var(--ng-muted); font-size: 13px; line-height: 1.45; }
html body.ng input.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; padding: 0; border-radius: 999px; border: 0; background: var(--ng-line-strong); cursor: pointer; transition: background .25s; }
html body.ng input.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
html body.ng input.switch:checked { background: var(--green); }
html body.ng input.switch:checked::after { transform: translateX(20px); }
html body.ng input.switch:focus-visible { outline: 2px solid var(--gold-foil); outline-offset: 2px; }
.settings-savebar { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: #16171c; color: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .4); animation: ng-rise .3s cubic-bezier(.2, .8, .2, 1) both; }
.settings-savebar[hidden] { display: none; }
.settings-savebar > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.settings-savebar svg { width: 18px; height: 18px; color: #efc66b; }
.settings-savebar button[type="reset"] { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
@media (max-width: 700px) { .theme-tiles { grid-template-columns: 1fr; } .segmented { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html body.ng input.switch::after { transition: none; } .settings-savebar { animation: none; } }
/* Paramètres : priorité sur les anciens styles de l'espace membre */
html body.ng .preferences-form.settings-v2 { max-width: 880px; }
html body.ng[data-platform-page] .settings-v2 .theme-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body.ng[data-platform-page] .settings-v2 .theme-tiles legend { grid-column: 1 / -1; float: none; }
html body.ng[data-platform-page] .settings-v2 .theme-tile { display: grid; gap: 6px; align-items: start; padding: 12px; border-radius: 16px; min-width: 0; background: var(--ng-ink-3); }
html body.ng[data-platform-page] .settings-v2 .theme-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html body.ng[data-platform-page] .settings-v2 .theme-tile span.theme-swatch { display: grid; }
html body.ng[data-platform-page] .settings-v2 .theme-tile:has(input:checked) { background: var(--ng-ink-2); }
html body.ng[data-platform-page] .settings-v2 .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body.ng[data-platform-page] .settings-v2 .segmented legend { grid-column: 1 / -1; float: none; padding: 0 0 8px; }
html body.ng[data-platform-page] .settings-v2 .segmented label { display: block; padding: 0; border: 0; }
html body.ng[data-platform-page] .settings-v2 .segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
html body.ng[data-platform-page] .settings-v2 .segmented span { display: grid; }
html body.ng[data-platform-page] .settings-v2 .switch-line { display: flex; }
html body.ng[data-platform-page] .settings-v2 .switch-line > span { display: block; }
@media (max-width: 700px) { html body.ng[data-platform-page] .settings-v2 :is(.theme-tiles, .segmented) { grid-template-columns: 1fr; } }

html body.ng .settings-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--gold-foil) 16%, transparent); color: var(--gold-foil); }
html body.ng .settings-ico svg { width: 20px; height: 20px; }
html body.ng[data-platform-page] .settings-v2 .theme-swatch i { display: block; min-height: 22px; }
html[data-ng-light="on"]:not([data-festival="on"]) body.ng .ng-invite { background: linear-gradient(180deg, #1b1c22, #0c0d10); }
html[data-ng-light="on"]:not([data-festival="on"]) body.ng .ng-invite-emblem { box-shadow: 0 0 0 4px #1b1c22, 0 0 0 7px #efc66b, 0 12px 30px rgba(0, 0, 0, .35); background: #1b1c22; }

/* Équipe v2 : cartes de profil aux couleurs des rôles, avec photo Discord (sans rareté) */
.st-level { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--c); }
.st-row-head .st-count { color: var(--c); filter: none; }
html body.ng .st-card { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, #1b1925), #121119 62%); box-shadow: 0 0 0 2px var(--c), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .3); }
html body.ng .st-card:hover, html body.ng .st-card:focus-visible { box-shadow: 0 0 0 2px var(--c), 0 0 34px color-mix(in srgb, var(--c) 45%, transparent), 0 26px 50px rgba(0, 0, 0, .4); }
html body.ng .st-card .st-card-top, html body.ng .st-chip, html body.ng .st-rar, html body.ng .st-no { display: none; }
html body.ng .st-art { aspect-ratio: 1; }
.st-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.st-art.has-photo img { opacity: 1; }
.st-art.has-photo .st-initials { opacity: 0; }
.st-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 15, .55)); }
.st-card:hover .st-art img { transform: scale(1.05); }
html body.ng .st-body .st-role { color: var(--c); filter: brightness(1.25); }
html body.ng .st-row[data-tier] .st-card::before { content: none !important; }

/* =====================================================================
   Configuration des bots : interface v2
   ===================================================================== */
/* Onglets des bots en cartes */
html body.ng[data-platform-page] .config-bot-tabs { gap: 10px; }
html body.ng[data-platform-page] .config-bot-tabs [data-bot-tab] { border-radius: 16px; padding: 10px 18px; border: 1px solid var(--ng-line-strong); background: var(--ng-ink-2); transition: transform .2s, border-color .2s, box-shadow .2s; }
html body.ng[data-platform-page] .config-bot-tabs [data-bot-tab]:hover { transform: translateY(-2px); }
html body.ng[data-platform-page] .config-bot-tabs [data-bot-tab]:is([aria-selected="true"], [aria-pressed="true"], .active) { border-color: var(--gold-foil); box-shadow: 0 0 0 2px var(--gold-foil), 0 10px 24px rgba(0, 0, 0, .18); }
/* Navigation des rubriques */
html body.ng[data-platform-page] .config-module-nav { border-right: 0; padding: 14px; border-radius: 18px; background: var(--ng-ink-2); border: 1px solid var(--ng-line); }
html body.ng[data-platform-page] .config-module-nav nav button { border-radius: 10px; font-size: 13px; }
html body.ng[data-platform-page] .config-module-nav nav button[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--gold-foil) 16%, transparent); box-shadow: inset 3px 0 0 var(--gold-foil); }
/* Éditeur : en-tête et champs en carte */
html body.ng[data-platform-page] .config-editor-heading { padding: 18px; border-radius: 18px; background: var(--ng-ink-2); border: 1px solid var(--ng-line); margin-bottom: 14px; }
html body.ng[data-platform-page] .config-editor-heading .section-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--gold-foil) 16%, transparent); color: var(--gold-foil); }
html body.ng[data-platform-page] #bot-config-form .config-fields { padding: 20px; border-radius: 18px; background: var(--ng-ink-2); border: 1px solid var(--ng-line); }
html body.ng[data-platform-page] .config-group-heading { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ng-line); font-family: var(--display); font-weight: 400; font-size: 18px; }
html body.ng[data-platform-page] .config-group-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* Réglage modifié : pastille dorée */
html body.ng[data-platform-page] .config-field { position: relative; transition: background .2s; border-radius: 12px; }
html body.ng[data-platform-page] .config-field.is-changed { background: color-mix(in srgb, var(--gold-foil) 10%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold-foil) 10%, transparent); }
html body.ng[data-platform-page] .config-field.is-changed::before { content: "Modifié"; position: absolute; right: 0; top: -2px; padding: 1px 8px; border-radius: 999px; background: var(--gold-foil); color: #1b160b; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; z-index: 1; }
/* Barre d'enregistrement flottante */
html body.ng[data-platform-page] .config-save-bar { bottom: 14px; margin-top: 18px; padding: 12px 14px 12px 18px; border: 1px solid var(--ng-line); border-radius: 16px; background: color-mix(in srgb, var(--ng-ink-2) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); transition: border-color .25s, box-shadow .25s; }
html body.ng[data-platform-page] .config-save-bar:has([data-save-config]:not(:disabled)) { border-color: var(--gold-foil); box-shadow: 0 0 0 1px var(--gold-foil), 0 16px 40px rgba(0, 0, 0, .25); }
html body.ng[data-platform-page] .config-save-bar:has([data-save-config]:not(:disabled)) [data-config-changes] { color: var(--text); font-weight: 700; }
html body.ng[data-platform-page] .config-save-bar:has([data-save-config]:not(:disabled)) [data-config-changes]::after { content: " · Ctrl+S pour enregistrer"; font-weight: 500; color: var(--ng-muted); }

/* Aperçu Discord */
html body.ng[data-platform-page] .config-editor.has-preview, html body.ng[data-platform-page] [data-config-editor].has-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); column-gap: 20px; align-items: start; }
html body.ng[data-platform-page] .has-preview > .config-editor-heading { grid-column: 1 / -1; }
html body.ng[data-platform-page] .has-preview > #bot-config-form { grid-column: 1; min-width: 0; }
.dp-panel { grid-column: 2; position: sticky; top: 100px; display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #313338; color: #dbdee1; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); font-family: "gg sans", "Noto Sans", Inter, system-ui, sans-serif; }
.dp-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #b5bac1; }
.dp-head b { color: #f2f3f5; }
.dp-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #23a55a; }
.dp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 8px #23a55a; }
.dp-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 8px 4px; }
.dp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dp-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dp-who b { color: #f2f3f5; font-size: 15px; }
.dp-tag { padding: 0 4px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; }
.dp-who small { color: #949ba4; font-size: 11px; }
.dp-out { min-width: 0; font-size: 15px; line-height: 1.375; white-space: pre-wrap; overflow-wrap: anywhere; }
.dp-card { display: grid; gap: 6px; padding: 12px 16px; border-radius: 8px; background: #2b2d31; border-left: 4px solid var(--accent); }
.dp-title { font-weight: 700; color: #f2f3f5; }
.dp-text, .dp-plain { color: #dbdee1; }
.dp-plain-title { font-weight: 700; color: #f2f3f5; }
.dp-footer { margin-top: 4px; color: #949ba4; font-size: 12px; }
.dp-out code { padding: 0 4px; border-radius: 4px; background: #1e1f22; font-size: 13px; }
.dp-out .dp-h1 { display: block; font-size: 22px; color: #f2f3f5; } .dp-out .dp-h2 { display: block; font-size: 19px; color: #f2f3f5; } .dp-out .dp-h3 { display: block; font-size: 16px; color: #f2f3f5; }
.dp-out .dp-sub { color: #949ba4; font-size: 12px; }
.dp-note { margin: 0; font-size: 12px; color: #949ba4 !important; }
@media (max-width: 1180px) {
  html body.ng[data-platform-page] .has-preview { grid-template-columns: minmax(0, 1fr) !important; }
  .dp-panel { grid-column: 1; position: static; margin-top: 14px; }
}
.dp-panel { top: 200px; }
html body.ng[data-platform-page] .config-field.is-changed::before { top: -10px; }
/* Barre d'enregistrement : fixée en bas seulement quand il y a quelque chose à enregistrer */
html body.ng[data-platform-page] .config-save-bar:not(:has([data-save-config]:not(:disabled))) { position: static; box-shadow: none; background: transparent; }
@media (max-width: 760px), (pointer: coarse) {
  html body.ng[data-platform-page] .config-save-bar:has([data-save-config]:not(:disabled)) [data-config-changes]::after { content: none; }
  html body.ng[data-platform-page] .config-save-bar { padding: 8px 10px; gap: 8px; }
  html body.ng[data-platform-page] .config-editor-heading { padding: 12px; }
  html body.ng[data-platform-page] #bot-config-form .config-fields { padding: 14px; }
}
/* Arrondis identiques entre le site public et l'espace d'administration */
html.ng-root { --button-radius: 12px; }

/* =====================================================================
   Paramètres du site (admin)
   ===================================================================== */
html body.ng .site-settings { display: grid; gap: 16px; max-width: 920px; }
html body.ng .ss-main { display: grid; gap: 16px; }
html body.ng .ss-card { display: grid; gap: 14px; padding: 22px; border-radius: 20px; transition: box-shadow .25s, border-color .25s; }
html body.ng .ss-card.is-changed { border-color: var(--gold-foil); box-shadow: 0 0 0 1px var(--gold-foil), 0 12px 30px rgba(0, 0, 0, .12); }
.ss-head { display: flex; gap: 14px; align-items: flex-start; }
.ss-head > div { flex: 1; min-width: 0; }
html body.ng .ss-head h2 { margin: 0; }
.ss-head p { margin: 4px 0 0; font-size: 14px; color: var(--ng-muted); }
.ss-status { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid var(--ng-line-strong); color: var(--ng-muted); }
.ss-status[data-on="true"] { border-color: var(--green); color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.ss-field { display: grid; gap: 6px; }
.ss-field > span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--text); }
.ss-field small { font-weight: 600; color: var(--ng-faint); font-variant-numeric: tabular-nums; }
html body.ng .ss-field :is(input, textarea) { width: 100%; font-size: 15px; }
.ss-meter { margin: -6px 0 0; font-size: 12.5px; font-weight: 600; }
.ss-meter[data-state="ok"] { color: var(--green); }
.ss-meter[data-state="warn"] { color: var(--gold-foil); }
/* Aperçus */
.ss-preview { border-radius: 14px; border: 1px dashed var(--ng-line-strong); padding: 14px; background: var(--ng-ink-3); }
.ss-preview-brand { display: flex; align-items: center; gap: 10px; }
.ss-preview-brand img, .ss-fake-header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ss-preview-brand b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--text); }
.ss-preview-brand small { color: var(--scarlet); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.ss-preview-google { display: grid; gap: 2px; background: #fff; border-style: solid; border-color: #dadce0; }
.ss-preview-google small { color: #202124; font-size: 12px; }
.ss-preview-google b { color: #1a0dab; font-family: Arial, sans-serif; font-weight: 400; font-size: 19px; }
.ss-preview-google p { margin: 0; color: #4d5156 !important; font-family: Arial, sans-serif; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-preview-site { padding: 0; overflow: hidden; }
.ss-fake-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ng-ink-2); border-bottom: 1px solid var(--ng-line); }
.ss-fake-header b { font-family: var(--display); font-weight: 400; color: var(--text); }
html body.ng .ss-fake-band { margin: 0; border-radius: 0; }
.ss-fake-band[hidden] { display: none !important; }
.ss-fake-page { height: 46px; background: repeating-linear-gradient(180deg, transparent 0 14px, var(--ng-line) 14px 16px) 14px 10px / 60% 100% no-repeat; }
.ss-templates { display: flex; flex-wrap: wrap; gap: 8px; }
html body.ng .ss-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ng-line-strong); background: var(--ng-ink-3); color: var(--text); font: 600 13px var(--sans); cursor: pointer; transition: border-color .2s, transform .2s; }
html body.ng .ss-chip:hover { border-color: var(--gold-foil); transform: translateY(-1px); }
html body.ng .ss-chip-clear { display: inline-flex; align-items: center; gap: 4px; color: var(--scarlet); }
html body.ng .ss-chip-clear svg { width: 14px; height: 14px; }
/* Maintenance */
html body.ng .ss-danger .settings-ico { background: color-mix(in srgb, var(--scarlet) 14%, transparent); color: var(--scarlet); }
html body.ng .ss-danger input.switch:checked { background: var(--scarlet); }
.ss-maint-on { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--scarlet) 12%, transparent); border: 1px solid color-mix(in srgb, var(--scarlet) 45%, transparent); color: var(--text) !important; font-size: 14px; font-weight: 600; }
.ss-maint-on[hidden] { display: none; }
.ss-maint-on svg { flex: none; width: 18px; height: 18px; color: var(--scarlet); }
html body.ng .ss-savebar { position: sticky; bottom: 16px; }
@media (max-width: 640px) { html body.ng .ss-card { padding: 16px; } .ss-head { flex-wrap: wrap; } }
html body.ng[data-platform-page] .site-settings .switch-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0 0; border-top: 0; }
html body.ng[data-platform-page] .site-settings .switch-line > span { display: block; }
html body.ng[data-platform-page] .ss-card { background: var(--ng-ink-2); border: 1px solid var(--ng-line); }
html body.ng[data-platform-page] .ss-danger { border-color: color-mix(in srgb, var(--scarlet) 35%, var(--ng-line)); }
@media (max-width: 640px) { .ss-head > div { flex: 1 1 calc(100% - 60px); } .ss-status { margin-left: 54px; } }

/* Raid du Grinch */
html body.ng.winter-page .raid-card { grid-column: 1 / -1; gap: 12px; }
html body.ng.winter-page .raid-card::before { background: linear-gradient(90deg, #1f7a4d, #3ddc97, #1f7a4d) !important; height: 6px; }
.raid-hp { margin: 0; font-family: var(--display); font-size: 22px; color: var(--ink, var(--text)); }
.raid-card progress { height: 14px !important; }
.raid-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.raid-stats div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #1f7a4d 8%, transparent); border: 1px solid color-mix(in srgb, #1f7a4d 25%, transparent); }
.raid-stats strong { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--ink, var(--text)); font-variant-numeric: tabular-nums; }
.raid-stats span { font-size: 12px; color: var(--ink-muted, var(--ng-muted)); }
.raid-top { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.raid-top li::marker { font-weight: 800; color: #b8334a; }
.raid-help summary { cursor: pointer; font-weight: 700; color: var(--pine, #1f7a4d); }
.raid-help p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 560px) { .raid-stats { grid-template-columns: 1fr 1fr; } .raid-stats div:last-child { grid-column: 1 / -1; } }

/* Serveurs de l'écosystème */
.eco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
html body.ng .eco-card { position: relative; isolation: isolate; display: grid; gap: 10px; align-content: start; padding: 0 22px 22px; border-radius: 22px; overflow: hidden; background: var(--ng-ink-2); border: 1px solid var(--ng-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .1); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
html body.ng .eco-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0, 0, 0, .18); }
.eco-banner { position: relative; height: 96px; margin: 0 -22px; overflow: hidden; background: radial-gradient(circle, rgba(255, 255, 255, .14) 1.1px, transparent 1.6px) 0 0 / 12px 12px, linear-gradient(135deg, #57b8ff, #1d4f7a); }
html body.ng .eco-card.is-main .eco-banner { background: radial-gradient(circle, rgba(255, 255, 255, .14) 1.1px, transparent 1.6px) 0 0 / 12px 12px, linear-gradient(135deg, #e43d45, #6e0d1e); }
.eco-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.eco-banner.has-art img { opacity: 1; }
html body.ng .eco-icon { width: 72px; height: 72px; margin-top: -38px; border-radius: 22px; object-fit: cover; background: var(--ng-ink-2); box-shadow: 0 0 0 5px var(--ng-ink-2), 0 10px 24px rgba(0, 0, 0, .25); }
.eco-badge { width: fit-content; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #57b8ff; }
html body.ng .eco-card.is-main .eco-badge { background: var(--scarlet); }
html body.ng .eco-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--text); }
html body.ng .eco-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.eco-counts { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.eco-counts span { display: inline-flex; align-items: center; gap: 6px; }
.eco-counts b { color: var(--text); font-variant-numeric: tabular-nums; }
.eco-counts i { width: 9px; height: 9px; border-radius: 50%; background: #8a86a0; }
.eco-counts i.is-online { background: #23a55a; box-shadow: 0 0 8px #23a55a; }
.eco-bots { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.eco-bots img { width: 22px; height: 22px; border-radius: 6px; }
.eco-bots span { margin-left: 4px; }
html body.ng .eco-card .v2-button { width: fit-content; margin-top: 6px; }
@media (max-width: 760px) { .eco-grid { grid-template-columns: 1fr; } }
html body.ng .eco-icon { position: relative; z-index: 1; }
