/* INDEX — index4g.com. Source commentée : src/, hors ligne. */
html[data-season="noel"] {
  --season: #e63946;
  --line:      rgba(190, 215, 255, .13);
  --line-soft: rgba(190, 215, 255, .075);
  --surface:   rgba(190, 215, 255, .05);
}
html[data-season="noel"] ::selection { background: var(--season); color: #fff; }

html[data-season="noel"] body::after {
  content: ""; position: fixed; inset: 0; z-index: 29; pointer-events: none;
  background:
    radial-gradient(42% 38% at 0 0,     rgba(205, 228, 255, .13), transparent 70%),
    radial-gradient(42% 38% at 100% 0,   rgba(205, 228, 255, .11), transparent 70%),
    radial-gradient(40% 36% at 0 100%,   rgba(205, 228, 255, .09), transparent 70%),
    radial-gradient(40% 36% at 100% 100%, rgba(205, 228, 255, .09), transparent 70%);
}

html[data-season="noel"] :is(.hero__bg, .game__bg, .figure > img, .op img) {
  filter: url(#xm-frost) brightness(.9);
}
html[data-season="noel"] .op:hover img { filter: url(#xm-frost) brightness(1.02); }

html[data-season="noel"] .game__veil::after,
html[data-season="noel"] .hero__veil-x::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 40, 90, .34) 0%, transparent 46%, rgba(255, 170, 90, .07) 100%);
}

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

html[data-season="noel"] .kicker i { background: var(--season); }
.xm-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding-left: 16px; border-left: 1px solid var(--line);
  font-family: var(--mono); font-size: clamp(9px, .78vw, 11px); letter-spacing: .28em; color: var(--text);
}
.xm-kicker svg { width: 12px; height: 15px; flex: none; }

@media (max-width: 499px) {
  .xm-kicker { grid-column: 2; justify-self: start; padding-left: 0; border-left: 0; }
}

html[data-season="noel"] .hero__word { position: relative; width: fit-content; }
.xm-hat {
  position: absolute; left: -.045em; top: -.06em; width: .31em; aspect-ratio: 16 / 10; height: auto;
  rotate: -14deg; pointer-events: none;
  filter: drop-shadow(0 .02em .03em rgba(0, 0, 0, .45));
}
.xm-hat svg { display: block; width: 100%; height: 100%; }

.xm-icicles {
  position: absolute; left: 0; top: 100%; width: 100%; height: 18px;
  margin-top: 1px; pointer-events: none; overflow: visible;
}
.xm-icicles path { fill: rgba(222, 236, 252, .6); }

.xm-garland { position: absolute; left: 0; right: 0; top: 10px; height: clamp(64px, 4.4vw, 112px); z-index: 2; pointer-events: none; }
.xm-garland svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xm-garland path { fill: none; stroke: rgba(150, 165, 190, .5); stroke-width: clamp(1px, .08vw, 2px); }
.xm-garland i {
  position: absolute; width: clamp(7px, .48vw, 12px); height: clamp(10px, .7vw, 17px); translate: -50% 0;
  background: var(--c); border-top: clamp(3px, .2vw, 5px) solid #2a2e36;
  animation: xm-chase 3s ease-in-out infinite;
}
.xm-garland i::after {
  content: ""; position: absolute; left: 50%; top: 60%; width: 480%; aspect-ratio: 1; height: auto; translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 50%, transparent), transparent);
}
@keyframes xm-chase { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

html[data-season="noel"] .proof { overflow: visible; --bank: clamp(46px, 5vw, 200px); --u: calc(var(--bank) / 80); }
html[data-season="noel"] :is(.hero__body, .proof) { z-index: 1; }
.xm-bank { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: var(--bank); pointer-events: none; }
.xm-decoy {
  position: absolute; bottom: calc(100% + 10 * var(--u)); right: calc((1600 - var(--x)) * var(--u)); z-index: 2;
  width: calc(var(--w) * var(--u)); padding: 0; border: 0; background: none; cursor: pointer;
}
.xm-decoy--snowman { aspect-ratio: 11 / 15; bottom: calc(100% + 8 * var(--u)); }
.xm-decoy--gift { aspect-ratio: 13 / 12; bottom: calc(100% + 6 * var(--u)); }
.xm-decoy svg { display: block; width: 100%; height: 100%; }
.xm-decoy:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.xm-decoy.is-shake { animation: xm-shake .45s var(--ease); }
@keyframes xm-shake { 20% { rotate: -12deg; } 45% { rotate: 9deg; } 70% { rotate: -5deg; } 100% { rotate: 0deg; } }

html[data-season="noel"] :is(#jeux .deck, #hub .ops, #progression .ladder, #rejoindre .cmd) { position: relative; }
.xm-cap { position: absolute; left: -2px; width: calc(100% + 4px); pointer-events: none; z-index: 3; }
.xm-cap--edge { top: 0; height: clamp(10px, .7vw, 18px); translate: 0 -64%; }
.xm-cap--in { top: 0; left: 0; width: 100%; height: 9px; }

html[data-season="noel"] .hold.xm-holding .hold__fill {
  box-shadow: 2px 0 0 #cfe6ff, 8px 0 18px 2px rgba(170, 215, 255, .7);
  animation: xm-glint .5s steps(2, end) infinite;
}
@keyframes xm-glint { 50% { box-shadow: 2px 0 0 #ffffff, 11px 0 24px 4px rgba(200, 230, 255, .85); } }

html[data-season="noel"] :is(#jeux, #sumo) { position: relative; }
.xm-gift {
  position: absolute; z-index: 4;
  width: 28px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(255, 230, 170, .45));
  animation: xm-hop 6s ease-in-out infinite;
  transition: transform .2s var(--ease), opacity .6s var(--ease);
}
.xm-gift svg { display: block; width: 100%; height: 100%; }
.xm-gift:hover { transform: scale(1.15); }
.xm-gift:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.xm-gift.is-found { animation: xm-pop .6s var(--ease) forwards; pointer-events: none; }
@keyframes xm-hop { 0%, 88%, 100% { translate: 0 0; } 92% { translate: 0 -5px; } 96% { translate: 0 0; } 98% { translate: 0 -2px; } }
@keyframes xm-pop { to { transform: translateY(-18px) scale(1.7); opacity: 0; } }

.xm-gift--about    { right: 16px; bottom: 52px; }
.xm-gift--jeux     { right: calc(var(--gutter) + 6px); top: 26%; }
.xm-gift--sumo     { right: 8%; bottom: 14%; }
.xm-gift--backdoor { right: 20%; top: 40%; }
.xm-gift--hub      { left: 16px; bottom: 16px; }

.xm-gift--footer   { position: relative; display: inline-block; vertical-align: middle;
                     width: 22px; height: 20px; margin-left: 14px; top: -4px; }

.xm-sleigh {
  position: absolute; top: var(--y, 18%); left: 0; z-index: 3; pointer-events: none;
  width: clamp(120px, 8vw, 220px); aspect-ratio: 56 / 13; height: auto;
  filter: drop-shadow(0 0 3px rgba(225, 238, 255, .55));
  animation: xm-ride var(--d, 13s) linear both;
}
.xm-sleigh svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.xm-sleigh--rtl { left: auto; right: 0; animation-name: xm-ride-rtl; }
.xm-sleigh--rtl svg { scale: -1 1; }
.xm-sleigh__a { animation: xm-gallop .36s steps(1, end) infinite; }
.xm-sleigh__b { animation: xm-gallop .36s steps(1, end) infinite reverse; }
@keyframes xm-gallop { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes xm-ride {
  0%   { transform: translate(-240px, 30px); }
  50%  { transform: translate(50vw, 0); }
  100% { transform: translate(calc(100vw + 240px), -34px); }
}
@keyframes xm-ride-rtl {
  0%   { transform: translate(240px, 30px); }
  50%  { transform: translate(-50vw, 0); }
  100% { transform: translate(calc(-100vw - 240px), -34px); }
}

@media (max-width: 640px) {
  .xm-gift--backdoor { right: var(--gutter); top: 10px; }
  .xm-gift--sumo { right: var(--gutter); }
}

@media (max-width: 430px) {
  .xm-decoy--snowman { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .xm-garland i, .xm-gift, html[data-season="noel"] .hold__fill { animation: none; }
}
