/* ==========================================================================
   PASS DE COMBAT - HABILLAGE HALLOWEEN (2026-10-09, demande ignirou)
   --------------------------------------------------------------------------
   Couche posee PAR-DESSUS style.css, sans le modifier. Tout est scope sous
   :root[data-theme="halloween"] : quand le theme du site (/theme/config.json)
   repasse en "normal", la page retrouve d'elle-meme son decor d'ete. Pour
   retirer l'habillage pour de bon : enlever halloween.css / halloween.js et les
   blocs data-theme-only="halloween" de index.html.
   Palette reprise du theme Halloween du site (logo fruit en flammes) :
   citrouille #ff7a1a / #e0640f, braise #ffb457, sorciere #8e44ad / #b57be0,
   nuit #1c0f14 -> #150c22 -> #0e0716, os #f6eee6.
   Regles de performance de la page (mesurees en aout) : on n'anime que
   transform et opacity, jamais un element a la fois floute ET anime, pas de
   background-attachment: fixed. Le decor suit --depth (0 en haut, 1 en bas),
   deja calcule par app.js pour l'ancien decor marin.
   ========================================================================== */

/* Sans le chargeur de themes (JS coupe), rien de saisonnier ne doit sortir brut. */
html:not([data-theme]) [data-theme-only] { display: none !important; }

:root[data-theme="halloween"] {
  --bg:        #0e0716;
  --bg-2:      #170c24;
  --bg-3:      #1f1030;
  --card:      #140a1f;
  --ink:       #F6EEE6;
  --ink-2:     #BCAAC6;
  --ink-3:     #8F7F9C;
  --accent:    #FF7A1A;
  --accent-2:  #D9480F;
  --accent-rgb: 255,122,26;
  --teal:      #B57BE0;
  --teal-rgb:  181,123,224;
  --coral:     #FF7A1A;
  --coral-rgb: 255,122,26;
  --gold:      #FFB457;
  --green:     #7CDB5A;
  --green-rgb: 124,219,90;
  --line:      rgba(255,214,186,.08);
  --line-2:    rgba(255,214,186,.15);
  --hw-night:  22,11,32;
  --hw-motion: 1;
}
/* theme.css pose ces variables sur <body> pour cette page : on les reprend la. */
:root[data-theme="halloween"].bffr-has-seascape body {
  --coral: #FF7A1A;
  --gold: #FFB457;
  --bg: #0e0716;
}

/* Le fond vit dans #hwscape (calque fixe unique, comme l'ancien decor) : le body
   devient transparent pour le laisser voir. */
:root[data-theme="halloween"] body { background: transparent !important; }

/* ==========================================================================
   DECOR VIVANT : nuit d'Halloween (lune, etoiles, nuages, brume, braises)
   ========================================================================== */
:root[data-theme="halloween"] #hwscape {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 46% at 84% 6%, rgba(255,154,61,.15), transparent 62%),
    radial-gradient(58% 44% at 4% 12%, rgba(142,68,173,.24), transparent 62%),
    radial-gradient(110% 55% at 50% 112%, rgba(224,100,15,.13), transparent 64%),
    linear-gradient(180deg, #1e0e2d 0%, #180b26 26%, #130820 54%, #0e0716 80%, #0a0410 100%);
}
/* La nuit s'epaissit a mesure qu'on descend. */
:root[data-theme="halloween"] .hw-deep {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(8,3,12,.75), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(10,4,16,.45) 50%, rgba(6,2,10,.85) 100%);
  opacity: var(--depth, 0);
  will-change: opacity;
}

/* Etoiles : deux trames qui scintillent a des rythmes differents. */
:root[data-theme="halloween"] .hw-stars { position: absolute; inset: 0 0 30% 0; opacity: calc(1 - var(--depth, 0) * .55); }
:root[data-theme="halloween"] .hw-stars i { position: absolute; inset: 0; background-repeat: repeat; will-change: opacity; }
:root[data-theme="halloween"] .hw-stars .s1 {
  background-image:
    radial-gradient(1.3px 1.3px at 22px 34px, rgba(255,242,224,.95), transparent),
    radial-gradient(1px 1px at 131px 82px, rgba(255,242,224,.8), transparent),
    radial-gradient(1.6px 1.6px at 196px 18px, rgba(255,214,170,.9), transparent),
    radial-gradient(1px 1px at 74px 151px, rgba(255,242,224,.7), transparent),
    radial-gradient(1.2px 1.2px at 168px 203px, rgba(220,200,255,.8), transparent);
  background-size: 240px 240px;
  animation: hwTwinkle 4.6s ease-in-out infinite alternate;
}
:root[data-theme="halloween"] .hw-stars .s2 {
  background-image:
    radial-gradient(1px 1px at 48px 96px, rgba(255,242,224,.85), transparent),
    radial-gradient(1.4px 1.4px at 251px 44px, rgba(255,242,224,.9), transparent),
    radial-gradient(1px 1px at 302px 262px, rgba(220,200,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 140px 300px, rgba(255,214,170,.8), transparent);
  background-size: 330px 330px;
  animation: hwTwinkle 6.8s ease-in-out -2.4s infinite alternate;
}
@keyframes hwTwinkle { from { opacity: .3; } to { opacity: 1; } }

/* La lune : haut droite, elle descend et palit au fil du defilement. Le halo est un
   frere du disque (et non un enfant) pour rester DERRIERE lui. */
:root[data-theme="halloween"] .hw-moon {
  position: absolute; top: 9vh; right: 8vw; width: clamp(110px, 15vw, 220px); aspect-ratio: 1;
  transform: translate3d(0, calc(var(--depth, 0) * 28vh), 0);
  opacity: calc(1 - var(--depth, 0) * .5);
  will-change: transform, opacity;
}
:root[data-theme="halloween"] .hw-moon .halo {
  position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,186,110,.24) 0%, rgba(255,140,60,.10) 34%, transparent 64%);
  animation: hwHalo 7s ease-in-out infinite alternate;
  will-change: opacity;
}
:root[data-theme="halloween"] .hw-moon .disk {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 29%, rgba(255,255,255,.5), transparent 24%),
    radial-gradient(circle at 63% 58%, rgba(190,110,52,.34) 0 9%, transparent 10%),
    radial-gradient(circle at 39% 67%, rgba(190,110,52,.26) 0 6%, transparent 7%),
    radial-gradient(circle at 71% 31%, rgba(190,110,52,.24) 0 5%, transparent 6%),
    radial-gradient(circle at 48% 44%, rgba(190,110,52,.16) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, #ffe8c4 0%, #ffd08c 55%, #f0a24f 100%);
}
@keyframes hwHalo { from { opacity: .65; } to { opacity: 1; } }

/* Nuages fins qui passent devant la lune. Bande = 100 % + une tuile, deplacee
   d'exactement une tuile : la boucle est invisible. */
:root[data-theme="halloween"] .hw-cloud {
  position: absolute; left: -900px; width: calc(100% + 900px); height: 90px;
  background-repeat: repeat-x; background-size: 900px 90px;
  opacity: calc(.8 - var(--depth, 0) * .5);
  will-change: transform;
}
:root[data-theme="halloween"] .hw-cloud.c1 {
  top: 12vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 90'%3E%3Cg fill='rgba(44,20,58,0.62)'%3E%3Cellipse cx='130' cy='56' rx='118' ry='13'/%3E%3Cellipse cx='196' cy='46' rx='66' ry='15'/%3E%3Cellipse cx='520' cy='62' rx='150' ry='11'/%3E%3Cellipse cx='604' cy='52' rx='78' ry='13'/%3E%3Cellipse cx='824' cy='40' rx='58' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  animation: hwDrift 80s linear infinite;
}
:root[data-theme="halloween"] .hw-cloud.c2 {
  top: 21vh; height: 80px; left: -1300px; width: calc(100% + 1300px); background-size: 1300px 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1300 80'%3E%3Cg fill='rgba(30,13,42,0.55)'%3E%3Cellipse cx='240' cy='44' rx='200' ry='10'/%3E%3Cellipse cx='330' cy='36' rx='90' ry='12'/%3E%3Cellipse cx='900' cy='50' rx='240' ry='9'/%3E%3Cellipse cx='1010' cy='42' rx='96' ry='11'/%3E%3C/g%3E%3C/svg%3E");
  animation: hwDrift2 120s linear infinite;
}
@keyframes hwDrift  { from { transform: translate3d(0,0,0); } to { transform: translate3d(900px,0,0); } }
@keyframes hwDrift2 { from { transform: translate3d(1300px,0,0); } to { transform: translate3d(0,0,0); } }

/* Brume au ras du sol : elle monte avec la profondeur. Degrades radiaux en tuile,
   pas de flou. */
:root[data-theme="halloween"] .hw-fog {
  position: absolute; left: -1200px; width: calc(100% + 1200px); bottom: -3vh; height: 36vh;
  background-repeat: repeat-x; background-size: 1200px 100%;
  opacity: calc(.32 + var(--depth, 0) * .55);
  will-change: transform, opacity;
}
:root[data-theme="halloween"] .hw-fog.f1 {
  background-image:
    radial-gradient(ellipse 330px 70% at 160px 100%, rgba(196,170,226,.13), transparent 72%),
    radial-gradient(ellipse 420px 60% at 640px 100%, rgba(196,170,226,.11), transparent 72%),
    radial-gradient(ellipse 300px 75% at 1010px 100%, rgba(255,170,110,.07), transparent 72%);
  animation: hwFog 70s linear infinite;
}
:root[data-theme="halloween"] .hw-fog.f2 {
  height: 24vh;
  background-image:
    radial-gradient(ellipse 380px 80% at 300px 100%, rgba(170,140,210,.12), transparent 72%),
    radial-gradient(ellipse 280px 70% at 860px 100%, rgba(170,140,210,.10), transparent 72%);
  animation: hwFogRev 95s linear infinite;
}
@keyframes hwFog    { from { transform: translate3d(0,0,0); } to { transform: translate3d(1200px,0,0); } }
@keyframes hwFogRev { from { transform: translate3d(1200px,0,0); } to { transform: translate3d(0,0,0); } }

/* Braises qui montent (remplacent les bulles). */
:root[data-theme="halloween"] .hw-embers { position: absolute; inset: 0; opacity: calc(.6 + var(--depth, 0) * .4); }
:root[data-theme="halloween"] .hw-embers i {
  position: absolute; bottom: -6vh; left: var(--x);
  width: calc(7px * var(--s)); height: calc(7px * var(--s)); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,160,.95) 0%, rgba(255,122,26,.8) 38%, rgba(255,122,26,0) 70%);
  opacity: 0;
  animation: hwRise var(--d) linear var(--dl, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes hwRise {
  0%   { transform: translate3d(0,0,0); opacity: 0; }
  12%  { opacity: var(--o); }
  30%  { transform: translate3d(14px,-34vh,0); }
  55%  { transform: translate3d(-10px,-62vh,0); }
  80%  { transform: translate3d(12px,-90vh,0); opacity: var(--o); }
  100% { transform: translate3d(-4px,-114vh,0); opacity: 0; }
}

/* ==========================================================================
   CHROME FIXE : chargement, logo, barre de progression, voile
   ========================================================================== */
:root[data-theme="halloween"] #loader { background: radial-gradient(120% 80% at 50% 38%, #2b1238, #0e0716 70%); }
:root[data-theme="halloween"] #loader .li-name::after {
  content: 'Édition Halloween'; display: block; margin-top: 9px; text-align: center;
  font-family: 'Archivo', sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .32em;
  text-transform: uppercase; color: #ff9a3d;
}
/* Le vrai logo de saison (fruit en flammes) a la place du logo d'ete. */
:root[data-theme="halloween"] #loader .li-logo,
:root[data-theme="halloween"] .brand img,
:root[data-theme="halloween"] footer .f-brand img { content: url('/img/halloween/logo_halloween_96.png'); }
:root[data-theme="halloween"] .brand { background: rgba(20,9,28,.76); border-color: rgba(255,154,61,.14); }
:root[data-theme="halloween"] .brand:hover { background: rgba(28,12,38,.86); }
:root[data-theme="halloween"] #progress { background: linear-gradient(90deg, transparent, #b57be0 30%, var(--accent)); }
:root[data-theme="halloween"] .pageveil { background: radial-gradient(circle at 50% 50%, #2b1238, #0e0716 70%); }
:root[data-theme="halloween"] ::-webkit-scrollbar-thumb { background: #3a2149; }

/* Orbes d'ambiance : citrouille, sorciere, braise. Un peu plus doux que l'ete. */
:root[data-theme="halloween"] .orb { opacity: .5; }

/* ==========================================================================
   HERO : illustration Halloween du pass, titre neon, cimetiere, citrouilles
   ========================================================================== */
/* Illustration dediee (generee le 2026-10-09, meme style que les portes ; demande Ignir), a la place
   de la banniere commune du theme. Personnages a droite, espace libre a gauche pour le titre. */
:root[data-theme="halloween"] .vhero__bg { background: url('/battlepass/hw/hero.webp?v=2') 72% 38% / cover no-repeat; }
@media (max-width: 760px) { :root[data-theme="halloween"] .vhero__bg { background-position: 66% 30%; } }
/* Titre : « Le Pass » chaud, « de Combat » en neon orange qui vacille (text-shadow sur un seul
   element, paint ponctuel, pas de flou anime). */
:root[data-theme="halloween"] .vhero h1 { text-shadow: 0 4px 26px rgba(0,0,0,.8), 0 0 40px rgba(255,122,26,.18), 0 1px 3px rgba(0,0,0,.9); }
:root[data-theme="halloween"] .vhero h1 .stroke {
  color: rgba(16,6,22,.88); -webkit-text-stroke: 2.5px #ff8a2a;
  text-shadow: 0 0 14px rgba(255,122,26,.55), 0 0 36px rgba(255,122,26,.35), 0 6px 30px rgba(0,0,0,.85);
  animation: hwNeon 5.2s steps(1, end) infinite;
}
@keyframes hwNeon {
  0%, 100% { text-shadow: 0 0 14px rgba(255,122,26,.55), 0 0 36px rgba(255,122,26,.35), 0 6px 30px rgba(0,0,0,.85); }
  9%  { text-shadow: 0 0 6px rgba(255,122,26,.25), 0 0 12px rgba(255,122,26,.12), 0 6px 30px rgba(0,0,0,.85); }
  11% { text-shadow: 0 0 18px rgba(255,122,26,.7), 0 0 46px rgba(255,122,26,.45), 0 6px 30px rgba(0,0,0,.85); }
  13% { text-shadow: 0 0 8px rgba(255,122,26,.3), 0 0 16px rgba(255,122,26,.15), 0 6px 30px rgba(0,0,0,.85); }
  15% { text-shadow: 0 0 14px rgba(255,122,26,.55), 0 0 36px rgba(255,122,26,.35), 0 6px 30px rgba(0,0,0,.85); }
  62% { text-shadow: 0 0 10px rgba(255,122,26,.4), 0 0 26px rgba(255,122,26,.25), 0 6px 30px rgba(0,0,0,.85); }
  64% { text-shadow: 0 0 14px rgba(255,122,26,.55), 0 0 36px rgba(255,122,26,.35), 0 6px 30px rgba(0,0,0,.85); }
}
:root[data-theme="halloween"] .vhero__badge span { color: #ffd9b8; }
:root[data-theme="halloween"] .vhero__badge i { background: #ff7a1a; box-shadow: 0 0 12px #ff7a1a; }
:root[data-theme="halloween"] .vhero__p .hl { color: #ffb457; }
:root[data-theme="halloween"] .btn-accent { background: linear-gradient(100deg, #ffb457, #ff7a1a 60%, #e0640f); color: #1a0a06; box-shadow: 0 14px 34px rgba(255,122,26,.38); }

/* Guirlande de citrouilles lumineuses tendue en haut du plateau (tuile SVG repetee, deux calques
   dont un qui pulse en opacite : les lampions respirent sans rien repeindre). */
:root[data-theme="halloween"] .hw-garland {
  position: absolute; left: 0; right: 0; top: -18px; height: 86px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 86'%3E%3Cpath d='M0 6 Q60 40 120 6 T240 6' fill='none' stroke='%23140a1f' stroke-width='3'/%3E%3Cpath d='M0 6 Q60 40 120 6 T240 6' fill='none' stroke='%23ffb457' stroke-width='1' opacity='.5'/%3E%3Cg%3E%3Cline x1='36' y1='21' x2='36' y2='34' stroke='%23140a1f' stroke-width='2'/%3E%3Cellipse cx='36' cy='46' rx='12' ry='11' fill='%23ff7a1a'/%3E%3Cpath d='M29 43l4-5 3 5zM36 43l4-5 3 5zM27 50q9 6 18 0q-1 5-9 7-8-2-9-7z' fill='%23ffd36b'/%3E%3C/g%3E%3Cg%3E%3Cline x1='156' y1='21' x2='156' y2='34' stroke='%23140a1f' stroke-width='2'/%3E%3Cellipse cx='156' cy='46' rx='12' ry='11' fill='%23ff7a1a'/%3E%3Cpath d='M149 43l4-5 3 5zM156 43l4-5 3 5zM147 50q9 6 18 0q-1 5-9 7-8-2-9-7z' fill='%23ffd36b'/%3E%3C/g%3E%3C/svg%3E") center top / 240px 86px repeat-x;
}
:root[data-theme="halloween"] .hw-garland::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 86'%3E%3Ccircle cx='36' cy='46' r='22' fill='%23ff9a3d' opacity='.28'/%3E%3Ccircle cx='156' cy='46' r='22' fill='%23ff9a3d' opacity='.28'/%3E%3C/svg%3E") center top / 240px 86px repeat-x;
  animation: hwGarland 2.6s ease-in-out infinite alternate;
  will-change: opacity;
}
@keyframes hwGarland { from { opacity: .45; } to { opacity: 1; } }
:root[data-theme="halloween"] #board { padding-top: 110px; }
:root[data-theme="halloween"] #board::before { display: none; }   /* la vague bleue d'été cède la place à la guirlande */

/* Separateur des sous-sections : fil lumineux orange -> violet avec une citrouille au centre. */
:root[data-theme="halloween"] .board--sub::before {
  content: ''; position: absolute; left: 50%; top: 0; width: min(640px, 86%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,122,26,.7) 30%, rgba(181,123,224,.7) 70%, transparent);
  pointer-events: none;
}
:root[data-theme="halloween"] .board--sub::after {
  content: ''; position: absolute; left: 50%; top: -15px; width: 30px; height: 30px; transform: translateX(-50%);
  background: url('/battlepass/hw/citrouille.svg?v=1') center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255,122,26,.6));
  pointer-events: none;
}

/* Cartes du rail : au survol, une toile fine se devoile dans le coin. */
:root[data-theme="halloween"] .bp-card { background-image: linear-gradient(168deg, rgba(var(--rc),.16) 0%, rgba(var(--rc),.05) 38%, rgba(var(--hw-night),.96) 100%), url('/theme/halloween/web-corner.svg?v=2'); background-size: auto, 44px 44px; background-position: 0 0, 100% 0; background-repeat: no-repeat; }
:root[data-theme="halloween"] .bp-card:not(:hover) { background-image: linear-gradient(168deg, rgba(var(--rc),.16) 0%, rgba(var(--rc),.05) 38%, rgba(var(--hw-night),.96) 100%); }

/* Petit fantome qui suit la souris (PC seulement, pose par halloween.js) et araignee qui descend. */
.hw-cursor-ghost { position: fixed; left: 0; top: 0; z-index: 199; width: 26px; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform; }
.hw-cursor-ghost svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 8px rgba(214,180,255,.45)); }
.hw-cursor-ghost.is-on { opacity: .85; }
.hw-spider { position: fixed; top: 0; z-index: 61; width: 44px; height: 130px; pointer-events: none; transform-origin: top center; will-change: transform; background: url('/theme/halloween/spider.svg?v=2') top center / contain no-repeat; }
@media (max-width: 760px) { .hw-cursor-ghost, .hw-spider { display: none; } :root[data-theme="halloween"] #board { padding-top: 92px; } :root[data-theme="halloween"] .hw-garland { height: 70px; background-size: 200px 70px; } :root[data-theme="halloween"] .hw-garland::after { background-size: 200px 70px; } }

/* ==========================================================================
   HERO : silhouette de cimetiere + citrouilles qui scintillent
   ========================================================================== */
:root[data-theme="halloween"] .vhero__veil.a { background: linear-gradient(180deg, rgba(14,7,22,.6) 0%, rgba(14,7,22,.22) 26%, rgba(14,7,22,.42) 62%, rgba(14,7,22,.8) 88%, var(--bg) 100%); }
:root[data-theme="halloween"] .vhero__veil.b { background: linear-gradient(100deg, rgba(12,5,18,.95) 0%, rgba(12,5,18,.88) 22%, rgba(12,5,18,.62) 40%, rgba(12,5,18,.2) 58%, rgba(12,5,18,0) 74%); }
:root[data-theme="halloween"] .vhero__veil.c { background: linear-gradient(135deg, rgba(142,68,173,.22) 0%, transparent 44%, rgba(255,122,26,.16) 100%); }
:root[data-theme="halloween"] .vhero h1 .stroke { color: rgba(16,6,22,.86); }
:root[data-theme="halloween"] .vhero__p { color: #EEE2DA; }
:root[data-theme="halloween"] .vhero__badge,
:root[data-theme="halloween"] .vhero__badges span { background: rgba(20,8,28,.5); border-color: rgba(255,190,140,.16); }
:root[data-theme="halloween"] .vhero__stats { background: rgba(20,8,28,.6); border-color: rgba(255,154,61,.16); }

:root[data-theme="halloween"] .hw-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: clamp(84px, 11.5vw, 168px); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent);
          mask-image: linear-gradient(180deg, #000 74%, transparent);
}
:root[data-theme="halloween"] .hw-skyline svg,
:root[data-theme="halloween"] .hw-footgrave svg { display: block; width: 100%; height: 100%; }

:root[data-theme="halloween"] .hw-hero-pk { position: absolute; z-index: 2; pointer-events: none; }
:root[data-theme="halloween"] .hw-hero-pk svg { position: relative; display: block; width: 100%; height: auto; }
:root[data-theme="halloween"] .hw-hero-pk.p1 { right: 9%; bottom: clamp(14px, 2.2vw, 30px); width: clamp(50px, 5.4vw, 78px); }
:root[data-theme="halloween"] .hw-hero-pk.p2 { right: 23%; bottom: clamp(26px, 3.4vw, 48px); width: clamp(34px, 3.4vw, 50px); }
/* Lueur de bougie au pied de la citrouille : un degrade, seule son opacite bouge. */
:root[data-theme="halloween"] .hw-hero-pk::before {
  content: ''; position: absolute; left: -70%; right: -70%; top: -40%; bottom: -60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,150,50,.42), rgba(255,110,20,.14) 55%, transparent);
  animation: hwFlicker 3.2s steps(1, end) infinite;
  will-change: opacity;
}
:root[data-theme="halloween"] .hw-hero-pk.p2::before { animation-duration: 2.7s; animation-delay: -1.1s; }
:root[data-theme="halloween"] .hw-hero-pk .hw-face { animation: hwFlicker 3.2s steps(1, end) infinite; }
:root[data-theme="halloween"] .hw-hero-pk.p2 .hw-face { animation-duration: 2.7s; animation-delay: -1.1s; }
@keyframes hwFlicker {
  0%, 100% { opacity: 1; }
  7%  { opacity: .78; }
  10% { opacity: .96; }
  28% { opacity: .86; }
  31% { opacity: 1; }
  57% { opacity: .9; }
  60% { opacity: .7; }
  63% { opacity: .95; }
  82% { opacity: .84; }
}

/* ==========================================================================
   BANDEAU DEFILANT : nuit + citrouilles et chauves-souris en separateurs
   ========================================================================== */
:root[data-theme="halloween"] .marquee {
  background: linear-gradient(90deg, #13081c, #200d2c 50%, #13081c);
  border-color: rgba(255,122,26,.4);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
:root[data-theme="halloween"] .marquee span { color: #F6EEE6; }
:root[data-theme="halloween"] .marquee i {
  display: inline-block; width: 22px; height: 22px; font-size: 0; vertical-align: middle;
  background: url('/battlepass/hw/citrouille.svg?v=1') center / contain no-repeat;
}
:root[data-theme="halloween"] .marquee i:nth-of-type(2n) { width: 34px; background-image: url('/battlepass/hw/chauve-souris.svg?v=1'); }

/* ==========================================================================
   SECTIONS : titres, navigation, cartes
   ========================================================================== */
:root[data-theme="halloween"] .board__head .eyebrow::before {
  content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 9px; vertical-align: -3px;
  background: url('/battlepass/hw/citrouille.svg?v=1') center / contain no-repeat;
  animation: hwBob 2.8s ease-in-out infinite;
}
@keyframes hwBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
:root[data-theme="halloween"] .board__head h2 { text-shadow: 0 0 34px rgba(255,122,26,.16); }
/* Le fantôme du titre flotte doucement (transform seul). */
.sec-emo--fantome { width: 1.05em; height: 1.05em; filter: drop-shadow(0 0 10px rgba(214,180,255,.45)); animation: rmFloat 3s ease-in-out infinite; }

:root[data-theme="halloween"] .segnav { background: rgba(24,10,34,.88); border-color: rgba(255,154,61,.14); }

:root[data-theme="halloween"] .bp-live {
  background: linear-gradient(180deg, rgba(38,17,50,.88), rgba(20,9,29,.88));
  border-color: rgba(255,154,61,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,154,61,.16);
}
:root[data-theme="halloween"] .bp-next { background: rgba(255,122,26,.07); }

/* Barres d'XP facon potion : rayures qui coulent. La tuile de 28 px est deplacee
   d'exactement 28 px, d'ou une boucle sans saut. */
:root[data-theme="halloween"] .bp-xpfill,
:root[data-theme="halloween"] .bp-quest__fill,
:root[data-theme="halloween"] .bp-feat__fill { position: relative; overflow: hidden; }
:root[data-theme="halloween"] .bp-xpfill::after,
:root[data-theme="halloween"] .bp-quest__fill::after,
:root[data-theme="halloween"] .bp-feat__fill::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -28px; right: 0;
  background: linear-gradient(135deg, rgba(255,238,210,.2) 0 25%, transparent 25% 50%, rgba(255,238,210,.2) 50% 75%, transparent 75% 100%);
  background-size: 28px 28px;
  animation: hwPotion 1.2s linear infinite;
  will-change: transform;
}
@keyframes hwPotion { from { transform: translate3d(0,0,0); } to { transform: translate3d(28px,0,0); } }
:root[data-theme="halloween"] .bp-feat__fill { background: linear-gradient(90deg, #ffb457, #ff7a1a); }

/* Echelle des paliers */
:root[data-theme="halloween"] .bp-scroll { scrollbar-color: #3a2149 transparent; }
:root[data-theme="halloween"] .bp-scroll::-webkit-scrollbar-thumb { background: #3a2149; background-clip: padding-box; }
:root[data-theme="halloween"] .bp-railside::after { background: linear-gradient(90deg, rgba(17,8,26,.96) 0 calc(100% - 28px), rgba(17,8,26,0) 100%); }
:root[data-theme="halloween"] .bp-node { background: linear-gradient(180deg, #2a1636, #150b1f); }
:root[data-theme="halloween"] .bp-node.cur::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(255,122,26,.6);
  animation: hwRing 2.2s ease-out infinite;
  will-change: transform, opacity;
}
@keyframes hwRing { 0% { transform: scale(.82); opacity: .95; } 100% { transform: scale(1.38); opacity: 0; } }
:root[data-theme="halloween"] .bp-card__ov { background: rgba(16,7,24,.7); }
/* Bouton « Reclamer » : un reflet de lanterne le traverse regulierement. */
:root[data-theme="halloween"] .bp-card__bar.claim,
:root[data-theme="halloween"] .bp-dayc__bar.claim { position: relative; overflow: hidden; }
:root[data-theme="halloween"] .bp-card__bar.claim::after,
:root[data-theme="halloween"] .bp-dayc__bar.claim::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,246,222,.55), transparent);
  animation: hwSweep 3s ease-in-out infinite;
  will-change: transform;
}
@keyframes hwSweep { 0%, 55% { transform: translate3d(0,0,0); } 100% { transform: translate3d(340%,0,0); } }

/* Quetes, quotidien, boutique, coffres, codes : fond nuit violette au lieu du bleu. */
:root[data-theme="halloween"] .bp-quest { background: linear-gradient(180deg, rgba(36,17,48,.74), rgba(20,9,29,.74)); }
:root[data-theme="halloween"] .bp-quest.claimable { background: linear-gradient(100deg, rgba(255,122,26,.14), rgba(20,9,29,.78) 62%); }
:root[data-theme="halloween"] .bp-dayc { background: linear-gradient(180deg, rgba(var(--rc),.11), rgba(var(--hw-night),.96)); }
:root[data-theme="halloween"] .bp-shopitem { background: linear-gradient(150deg, rgba(var(--rc),.13), rgba(var(--rc),.03) 46%, rgba(var(--hw-night),.96)); }
:root[data-theme="halloween"] .bp-chest {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--rc), .1), rgba(var(--hw-night),.93) 62%);
}
/* Toile fine dans le coin des coffres et de la carte des codes. */
:root[data-theme="halloween"] .bp-chest::after,
:root[data-theme="halloween"] .bp-code::after {
  content: ''; position: absolute; top: 0; right: 0; width: 74px; height: 74px; pointer-events: none;
  background: url('/theme/halloween/web-corner.svg?v=2') top left / contain no-repeat;
  transform: scaleX(-1); opacity: .22; border-radius: 0 20px 0 0;
}
:root[data-theme="halloween"] .bp-code { position: relative; background: rgba(255,170,110,.03); }
:root[data-theme="halloween"] .bp-feat { background: linear-gradient(120deg, rgba(var(--r-legend),.1), rgba(var(--hw-night),.55)); }
:root[data-theme="halloween"] .bp-prem {
  background: linear-gradient(120deg, rgba(255,122,26,.14), rgba(142,68,173,.14) 60%, rgba(var(--hw-night),.55));
  border-color: rgba(255,154,61,.34);
  box-shadow: inset 0 1px 0 rgba(255,180,87,.18), 0 18px 50px rgba(0,0,0,.3);
}
:root[data-theme="halloween"] .bp-prem__ic { background: linear-gradient(140deg, #ffb457, #ff7a1a); color: #1a0a06; box-shadow: 0 10px 26px rgba(255,122,26,.4); }
:root[data-theme="halloween"] .bp-prem__btn {
  padding: 15px 26px; font-size: 15px; letter-spacing: .01em;
  color: #1a0a06; background: linear-gradient(100deg, #ffb457, #ff7a1a 55%, #e0640f);
  box-shadow: 0 14px 32px rgba(255,122,26,.38), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
:root[data-theme="halloween"] .bp-prem__btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,246,222,.5), transparent);
  animation: hwSweep 3.4s ease-in-out infinite;
  will-change: transform;
}
:root[data-theme="halloween"] .bp-prem__btn:hover { filter: brightness(1.06); }
:root[data-theme="halloween"] .bp-prem.owned { border-color: rgba(124,219,90,.3); background: linear-gradient(120deg, rgba(124,219,90,.1), rgba(var(--hw-night),.45)); }
:root[data-theme="halloween"] .bp-tl-chip { background: linear-gradient(180deg, rgba(var(--rc),.12), rgba(var(--hw-night),.6)); }
:root[data-theme="halloween"] .bp-cbtn--prem { background: linear-gradient(100deg, #ffb457, #ff7a1a); color: #1a0a06; box-shadow: 0 12px 28px rgba(255,122,26,.34); }

/* Fenetre de recompense, bulle d'info, livraison */
:root[data-theme="halloween"] .rmodal__scrim { background: rgba(10,4,16,.74); }
:root[data-theme="halloween"] .rmodal__card { background: linear-gradient(180deg, #26132f, #120918); }
:root[data-theme="halloween"] .toast,
:root[data-theme="halloween"] .bp-delivering { background: rgba(26,11,36,.96); }

/* ==========================================================================
   PIED DE PAGE : le cimetiere ferme la page
   ========================================================================== */
:root[data-theme="halloween"] footer { position: relative; }
:root[data-theme="halloween"] .hw-footgrave {
  height: clamp(70px, 9vw, 132px); margin: -60px -32px 30px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
          mask-image: linear-gradient(180deg, #000 70%, transparent);
}
:root[data-theme="halloween"] footer .copy { color: #6f5c7a; }

/* ==========================================================================
   ANIMATIONS POSEES PAR halloween.js (chauves-souris, fantome, eclats)
   ========================================================================== */
.hw-bat, .hw-ghost, .hw-burst { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.hw-bat { z-index: 61; }
.hw-bat svg { display: block; width: 100%; height: auto; overflow: visible; }
.hw-bat .body { fill: #12081a; stroke: rgba(255,154,61,.55); stroke-width: .9; }
.hw-bat .w { fill: #12081a; stroke: rgba(255,154,61,.55); stroke-width: .9; transform-box: fill-box; animation: hwFlapL .22s ease-in-out infinite alternate; }
.hw-bat .w.l { transform-origin: 100% 30%; }
.hw-bat .w.r { transform-origin: 0% 30%; animation-name: hwFlapR; }
@keyframes hwFlapL { from { transform: rotate(16deg) scaleY(1); } to { transform: rotate(-34deg) scaleY(.6); } }
@keyframes hwFlapR { from { transform: rotate(-16deg) scaleY(1); } to { transform: rotate(34deg) scaleY(.6); } }
.hw-ghost { z-index: 61; width: 46px; }
.hw-ghost svg { display: block; width: 100%; height: auto; }
.hw-burst { z-index: 160; width: 26px; }
.hw-burst svg { display: block; width: 100%; height: auto; }
.hw-burst.b-sp { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #ffe6b0 0%, #ff7a1a 45%, rgba(255,122,26,0) 72%); }

/* ==========================================================================
   ORAGE : eclair, flash, sorciere, bonbons (poses par halloween.js)
   ========================================================================== */
.hw-flash { position: fixed; inset: 0; z-index: 59; pointer-events: none; background: radial-gradient(80% 60% at 50% 0%, rgba(236,224,255,.95), rgba(200,180,255,.55) 40%, rgba(120,80,180,.15) 75%, transparent); will-change: opacity; }
.hw-bolt { position: fixed; inset: 0; z-index: 62; pointer-events: none; will-change: opacity; }
.hw-bolt svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hw-bolt .halo { fill: none; stroke: rgba(190,160,255,.45); stroke-width: 11; stroke-linejoin: round; stroke-linecap: round; }
.hw-bolt .main { fill: none; stroke: #fff6ff; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.hw-bolt .br { fill: none; stroke: rgba(255,246,255,.75); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.hw-bolt .impact { fill: rgba(255,240,255,.55); }
.hw-bolt.is-fort .halo { stroke-width: 18; stroke: rgba(210,180,255,.55); }
.hw-bolt.is-fort .main { stroke-width: 3.6; }
.hw-witch { position: fixed; left: 0; top: 0; z-index: 61; width: clamp(90px, 9vw, 150px); pointer-events: none; will-change: transform, opacity; }
.hw-witch svg { display: block; width: 100%; height: auto; }
.hw-candy { position: fixed; left: 0; top: 0; z-index: 148; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.hw-candy svg { display: block; width: 100%; height: auto; }

/* ==========================================================================
   UN BONBON OU UN SORT : les portes (section Coffres pendant l'evenement)
   ========================================================================== */
:root[data-theme="halloween"] .hw-sac {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin-bottom: 14px; padding: 16px 20px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,122,26,.14), rgba(142,68,173,.14) 60%, rgba(20,9,29,.6));
  border: 1px solid rgba(255,154,61,.26);
}
:root[data-theme="halloween"] .hw-sac__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.3); }
:root[data-theme="halloween"] .hw-sac__ic img { width: 34px; height: 34px; animation: hwBob 2.8s ease-in-out infinite; }
:root[data-theme="halloween"] .hw-sac__txt b { display: block; font-family: 'Archivo Expanded', 'Archivo', sans-serif; font-weight: 900; font-size: 1.05rem; color: #fff; }
:root[data-theme="halloween"] .hw-sac__txt span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
:root[data-theme="halloween"] .hw-sac__cpt { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
:root[data-theme="halloween"] .hw-sac__cpt span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
:root[data-theme="halloween"] .hw-sac__cpt b { font-size: 1rem; font-weight: 900; color: #fff; }
:root[data-theme="halloween"] .hw-sac__cpt .t-bonbon { border-color: rgba(255,122,26,.42); }
:root[data-theme="halloween"] .hw-sac__cpt .t-sort { border-color: rgba(181,123,224,.46); }
@media (max-width: 760px) {
  :root[data-theme="halloween"] .hw-sac { grid-template-columns: auto 1fr; }
  :root[data-theme="halloween"] .hw-sac__cpt { grid-column: 1 / -1; justify-content: flex-start; }
}

:root[data-theme="halloween"] .hw-porte { --rc: 255,122,26; border-color: rgba(255,154,61,.26); }
:root[data-theme="halloween"] .hw-porte.r-epic { --rc: 181,123,224; }
:root[data-theme="halloween"] .hw-porte.r-legend { --rc: 255,180,87; }
:root[data-theme="halloween"] .hw-porte__img { background: #0b0512; }
:root[data-theme="halloween"] .hw-porte__img img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="halloween"] .hw-porte:hover .hw-porte__img img { transform: scale(1.04); }
:root[data-theme="halloween"] .hw-tag { color: #d7b4ff; }
:root[data-theme="halloween"] .hw-split { margin-top: 14px; }
:root[data-theme="halloween"] .hw-split .bar { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.05); }
:root[data-theme="halloween"] .hw-split .bar i { display: block; height: 100%; }
:root[data-theme="halloween"] .hw-split .bar i.b { background: linear-gradient(90deg, #ffb457, #ff7a1a); }
:root[data-theme="halloween"] .hw-split .bar i.s { background: linear-gradient(90deg, #8e44ad, #b57be0); }
:root[data-theme="halloween"] .hw-split .leg { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
:root[data-theme="halloween"] .hw-split .leg span { display: inline-flex; align-items: center; gap: 6px; }
:root[data-theme="halloween"] .hw-split .leg b { color: #fff; font-variant-numeric: tabular-nums; }
:root[data-theme="halloween"] .hw-split .leg i { width: 8px; height: 8px; border-radius: 50%; }
:root[data-theme="halloween"] .hw-split .t-bonbon i { background: #ff7a1a; }
:root[data-theme="halloween"] .hw-split .t-sort i { background: #b57be0; }
:root[data-theme="halloween"] .hw-odds { margin-top: 12px; }
:root[data-theme="halloween"] .hw-odds__t { display: block; margin-bottom: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb457; }
:root[data-theme="halloween"] .bp-chest__loot li.hw-sep { margin-top: 8px; padding: 4px 0 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb457; border-bottom: 1px solid var(--line); border-radius: 0; cursor: default; }
:root[data-theme="halloween"] .bp-chest__loot li.hw-sep:hover { background: transparent; }
:root[data-theme="halloween"] .bp-chest__loot li.hw-sep--sort { color: #d7b4ff; }
:root[data-theme="halloween"] .bp-chest__loot li.t-sort { align-items: flex-start; white-space: normal; }
:root[data-theme="halloween"] .bp-chest__loot li.t-sort .dot { background: #b57be0; opacity: 1; margin-top: 4px; box-shadow: 0 0 8px rgba(181,123,224,.7); }
:root[data-theme="halloween"] .bp-chest__loot li.t-sort .l { color: #d7b4ff; font-weight: 700; white-space: normal; }
:root[data-theme="halloween"] .bp-chest__loot li.t-sort .l small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; line-height: 1.35; color: var(--ink-3); }
:root[data-theme="halloween"] .bp-chest__loot li.t-sort .p { color: #d7b4ff; }
:root[data-theme="halloween"] .hw-prix { color: #ffb457; }
:root[data-theme="halloween"] .hw-prix img { width: 26px; height: 15px; object-fit: contain; }
:root[data-theme="halloween"] .hw-prix small { margin-left: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
:root[data-theme="halloween"] .bp-pay__ic--bonbon { background: rgba(255,122,26,.14); }
:root[data-theme="halloween"] .bp-pay__ic--bonbon img { width: 28px; height: 16px; object-fit: contain; }
:root[data-theme="halloween"] .hw-toquer { background: linear-gradient(100deg, #ff7a1a, #d9480f); border-color: transparent; color: #1a0a06; box-shadow: 0 10px 24px rgba(255,122,26,.3); }
:root[data-theme="halloween"] .hw-toquer:hover { transform: translateY(-2px); border-color: transparent; filter: brightness(1.06); }
:root[data-theme="halloween"] .hw-toquer:disabled { background: rgba(255,255,255,.05); color: #fff; box-shadow: none; }

/* ── La revelation : porte qui s'ouvre, puis bonbons ou sort ─────────────── */
.hw-rv { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 18px; background: rgba(6,2,10,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: hwRvIn .3s ease both; }
.hw-rv.is-out { animation: hwRvOut .28s ease both; pointer-events: none; }
@keyframes hwRvIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hwRvOut { from { opacity: 1; } to { opacity: 0; } }
.hw-rv__scrim { position: absolute; inset: 0; }
.hw-rv__stage { position: relative; width: min(440px, 94vw); display: grid; place-items: center; perspective: 1200px; }
/* La porte : cadre, deux battants qui pivotent, et le « toc toc » qui la secoue. */
.hw-rv__door { position: relative; width: min(260px, 70vw); aspect-ratio: 3 / 4; z-index: 2; transform-style: preserve-3d; animation: hwKnock .85s ease-in-out both; }
@keyframes hwKnock { 0%, 100% { transform: translate3d(0,0,0); } 20% { transform: translate3d(-4px,0,0) rotate(-1deg); } 40% { transform: translate3d(4px,0,0) rotate(1deg); } 60% { transform: translate3d(-3px,0,0); } 80% { transform: translate3d(3px,0,0); } }
.hw-rv__frame { position: absolute; inset: -14px; border-radius: 120px 120px 14px 14px; background: linear-gradient(180deg, #3b2446, #1f1228); border: 2px solid rgba(255,154,61,.35); box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.5); }
.hw-rv__leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(180deg, #6a3a1f, #3d2010 70%, #2a150a); border: 1px solid rgba(0,0,0,.5); box-shadow: inset 0 0 0 6px rgba(0,0,0,.18), inset 0 0 30px rgba(0,0,0,.35); transition: transform 1s cubic-bezier(.6,0,.3,1); transform-origin: left center; backface-visibility: hidden; will-change: transform; }
.hw-rv__leaf::before { content: ''; position: absolute; inset: 14px 12px; border: 2px solid rgba(255,190,120,.14); border-radius: 60px 60px 6px 6px; }
.hw-rv__leaf.l { left: 0; border-radius: 110px 0 0 10px; }
.hw-rv__leaf.r { right: 0; border-radius: 0 110px 10px 0; transform-origin: right center; }
.hw-rv__leaf .knob { position: absolute; top: 55%; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd36b, #b8731a); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hw-rv__leaf.l .knob { right: 12px; }
.hw-rv__leaf.r .knob { left: 12px; }
.hw-rv__knock { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); font-family: 'Archivo Expanded', 'Archivo', sans-serif; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: #ffc59b; white-space: nowrap; }
.hw-rv.is-open .hw-rv__leaf.l { transform: rotateY(-108deg); }
.hw-rv.is-open .hw-rv__leaf.r { transform: rotateY(108deg); }
.hw-rv.is-open .hw-rv__knock { opacity: 0; transition: opacity .3s; }
/* Derriere la porte : une lueur qui annonce la couleur du resultat. */
.hw-rv__door::after { content: ''; position: absolute; inset: 6px; border-radius: 110px 110px 8px 8px; background: radial-gradient(circle at 50% 60%, rgba(255,180,87,.7), rgba(255,122,26,.25) 55%, transparent 80%); opacity: 0; transition: opacity .6s .3s; }
.hw-rv.is-sort .hw-rv__door::after { background: radial-gradient(circle at 50% 60%, rgba(214,180,255,.75), rgba(142,68,173,.3) 55%, transparent 80%); }
.hw-rv.is-open .hw-rv__door::after { opacity: 1; }
/* La carte du resultat monte par-dessus la porte une fois ouverte. */
.hw-rv__card { position: absolute; left: 50%; top: 50%; width: min(400px, 92vw); padding: 28px 24px 22px; border-radius: 26px; text-align: center; transform: translate(-50%, -40%) scale(.92); opacity: 0; pointer-events: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.2,1); z-index: 3; background: linear-gradient(180deg, #26132f, #120918); border: 1px solid rgba(255,154,61,.4); box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 60px rgba(255,122,26,.18); }
.hw-rv__card.is-sort { border-color: rgba(181,123,224,.5); box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 60px rgba(142,68,173,.3); }
.hw-rv.is-done .hw-rv__card { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.hw-rv.is-done .hw-rv__door { opacity: 0; transition: opacity .4s .1s; }
.hw-rv.is-done .hw-rv__sac { opacity: 1; }
.hw-rv__kicker { font-family: 'Archivo Expanded', 'Archivo', sans-serif; font-weight: 900; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; color: #ffb457; text-shadow: 0 0 30px rgba(255,122,26,.5); }
.hw-rv__card.is-sort .hw-rv__kicker { color: #d7b4ff; text-shadow: 0 0 30px rgba(181,123,224,.6); animation: hwShiver .5s ease-in-out 1.2s 2; }
@keyframes hwShiver { 0%, 100% { transform: translate3d(0,0,0); } 25% { transform: translate3d(-3px,0,0); } 75% { transform: translate3d(3px,0,0); } }
.hw-rv__ic { width: 118px; height: 118px; margin: 18px auto 14px; display: grid; place-items: center; border-radius: 26px; background: radial-gradient(circle at 50% 38%, rgba(255,180,87,.3), rgba(255,255,255,.02) 72%); border: 1px solid rgba(255,180,87,.4); animation: rmFloat 3s ease-in-out infinite; }
.hw-rv__ic img, .hw-rv__ic svg { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)); }
.hw-rv__ghost { width: 96px; margin: 14px auto 10px; animation: hwGhostIn 1.1s cubic-bezier(.2,.9,.2,1) both, rmFloat 3s ease-in-out 1.1s infinite; }
.hw-rv__ghost svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(214,180,255,.5)); }
@keyframes hwGhostIn { from { transform: translateY(40px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.hw-rv__name { font-family: 'Archivo Expanded', 'Archivo', sans-serif; font-weight: 900; font-size: 1.4rem; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.hw-rv__desc { margin-top: 10px; font-size: .93rem; line-height: 1.45; color: var(--ink-2, #bcaac6); }
.hw-rv__fx { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: #fff; background: rgba(255,255,255,.05); border: 1px solid var(--line-2, rgba(255,214,186,.15)); }
.hw-rv__card.is-sort .hw-rv__fx { background: rgba(142,68,173,.16); border-color: rgba(181,123,224,.36); }
.hw-rv__porte { margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3, #8f7f9c); }
.hw-rv__gain { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-weight: 900; font-size: .95rem; color: #1a0a06; background: linear-gradient(100deg, #ffb457, #ff7a1a); box-shadow: 0 8px 22px rgba(255,122,26,.3); animation: hwGainPop .6s cubic-bezier(.2,.9,.2,1) .2s both; }
.hw-rv__gain small { font-weight: 700; font-size: .78rem; opacity: .8; }
@keyframes hwGainPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
:root[data-theme="halloween"] .vstat b.hw-c { color: #ffb457; }
.hw-rv__btn { margin-top: 20px; width: 100%; min-height: 50px; border-radius: 14px; border: 0; font-weight: 900; font-size: 15px; color: #1a0a06; background: linear-gradient(100deg, #ffb457, #ff7a1a); box-shadow: 0 12px 30px rgba(255,122,26,.34); transition: transform .2s; cursor: pointer; }
.hw-rv__card.is-sort .hw-rv__btn { color: #fff; background: linear-gradient(100deg, #8e44ad, #5b2a7a); box-shadow: 0 12px 30px rgba(142,68,173,.4); }
.hw-rv__btn:hover { transform: translateY(-2px); }
.hw-rv__sac { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; color: var(--ink-2, #bcaac6); opacity: 0; transition: opacity .4s .3s; }
.hw-rv__sac b { color: #fff; }
@media (max-width: 760px) {
  .hw-rv__card { padding: 22px 18px 18px; }
  .hw-rv__kicker { font-size: 1.5rem; }
}

/* ==========================================================================
   PALIER 0 : le cadeau piege, et la scene du screamer (meme rendu que kyo_forfait.js)
   ========================================================================== */
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero { --rc: 181,123,224; border-color: rgba(181,123,224,.6); background: linear-gradient(168deg, rgba(142,68,173,.3) 0%, rgba(181,123,224,.08) 40%, rgba(22,11,32,.96) 100%); cursor: pointer; }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero::after { background: #b57be0; }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero .bp-card__ic { background: radial-gradient(circle at 50% 34%, rgba(255,122,26,.3), rgba(255,255,255,.02) 74%); border-color: rgba(255,154,61,.4); }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero .bp-card__ic img { animation: hwBob 2.4s ease-in-out infinite; }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero .bp-card__qty { color: #d7b4ff; }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero .bp-card__bar.claim { color: #fff; background: linear-gradient(100deg, #8e44ad, #5b2a7a); box-shadow: 0 6px 16px rgba(142,68,173,.4); }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero.claimed { opacity: .75; filter: none; cursor: default; }
:root[data-theme="halloween"] .bp-tier--zero .bp-card.hw-zero.legendglow { animation: hwZeroPulse 2.2s ease-in-out infinite; }
@keyframes hwZeroPulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(181,123,224,.2), 0 10px 26px rgba(0,0,0,.42); } 50% { box-shadow: 0 0 0 1px rgba(181,123,224,.5), 0 0 30px rgba(181,123,224,.5); } }
:root[data-theme="halloween"] .bp-node.hw-zero-node { color: #1a0a06; background: linear-gradient(160deg, #ffb457, #ff7a1a); border-color: transparent; box-shadow: 0 8px 20px rgba(255,122,26,.42); }
:root[data-theme="halloween"] .bp-tier--zero .hw-zero-prem { opacity: .35; filter: saturate(.4); }
:root[data-theme="halloween"] .bp-tier--zero .hw-zero-prem .fb { color: #8f7f9c; }

.hw-raz-scene { position: fixed; inset: 0; z-index: 2147483000; background: #000; font-family: 'Archivo', system-ui, sans-serif; outline: none; }
.hw-raz-visage { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.hw-raz-visage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 81% 19%; transform: scale(1.04); transform-origin: 60% 50%; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
@media (orientation: portrait) { .hw-raz-visage img { transform-origin: 50% 36%; } }
.hw-raz-on { cursor: none; }
.hw-raz-on .hw-raz-visage { visibility: visible; }
.hw-raz-fin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; background: #000; text-align: center; opacity: 0; transition: opacity .8s ease; cursor: default; }
.hw-raz-fin[hidden] { display: none; }
.hw-raz-fin.visible { opacity: 1; }
.hw-raz-fin-titre { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #f2f2f2; }
.hw-raz-fin-texte { margin-bottom: 18px; font-size: 16px; color: #9a9a9a; }
.hw-raz-fermer { padding: 11px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; color: #e8e8e8; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
.hw-raz-fermer:hover { background: rgba(255,255,255,.06); }

/* ==========================================================================
   TELEPHONE et ACCESSIBILITE
   ========================================================================== */
@media (max-width: 760px) {
  :root[data-theme="halloween"] .hw-cloud.c2,
  :root[data-theme="halloween"] .hw-stars .s2,
  :root[data-theme="halloween"] .hw-fog.f2,
  :root[data-theme="halloween"] .hw-embers i:nth-child(n+7),
  :root[data-theme="halloween"] .hw-hero-pk.p2 { display: none; }
  :root[data-theme="halloween"] .hw-moon { top: 7vh; right: 6vw; }
  :root[data-theme="halloween"] .hw-hero-pk.p1 { right: 6%; }
  :root[data-theme="halloween"] .hw-footgrave { margin: -46px -20px 24px; }
}
/* Meme politique que l'ancien decor : le reglage systeme « reduire les animations »
   fige le decor et coupe les apparitions (halloween.js lit --hw-motion). */
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="halloween"] { --hw-motion: 0; }
  :root[data-theme="halloween"] #hwscape *,
  :root[data-theme="halloween"] .hw-hero-pk::before,
  :root[data-theme="halloween"] .hw-hero-pk .hw-face,
  :root[data-theme="halloween"] .board__head .eyebrow::before,
  :root[data-theme="halloween"] .bp-node.cur::before,
  :root[data-theme="halloween"] .bp-card__bar.claim::after,
  :root[data-theme="halloween"] .bp-dayc__bar.claim::after,
  :root[data-theme="halloween"] .bp-xpfill::after,
  :root[data-theme="halloween"] .bp-quest__fill::after,
  :root[data-theme="halloween"] .bp-feat__fill::after { animation: none !important; }
  :root[data-theme="halloween"] .hw-embers { display: none; }
}

/* ==========================================================================
   PORTES « PAS ENCORE DEBUTE » : tant que la saison est gelee, les trois portes
   restent visibles mais eteintes, sous des toiles d'araignee (hw/toile.svg),
   une araignee pendue, et un ecriteau « Ça arrive prochainement » (app.js).
   ========================================================================== */
.hw-bientot { position: relative; }
.bp-chests.is-bientot .bp-chest { filter: saturate(.5) brightness(.5); pointer-events: none; }
.bp-chests.is-bientot .bp-chest .bp-chest__loot { display: none !important; }
.hw-bientot__veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: 26px; }
.hw-bientot__veil .w { position: absolute; width: 440px; height: 440px; background: url('/battlepass/hw/toile.svg?v=1') center / contain no-repeat; opacity: .8; filter: drop-shadow(0 0 6px rgba(0,0,0,.6)); transform-origin: center; will-change: transform; animation: hwWebSway 9s ease-in-out infinite alternate; }
.hw-bientot__veil .w1 { left: -210px; top: -210px; }
.hw-bientot__veil .w2 { right: -210px; top: -210px; animation-delay: -3s; }
.hw-bientot__veil .w3 { left: -210px; bottom: -210px; animation-delay: -5s; }
.hw-bientot__veil .w4 { right: -210px; bottom: -210px; animation-delay: -7s; }
.hw-bientot__veil .w5 { left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; opacity: .42; animation-duration: 14s; }
@keyframes hwWebSway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.hw-bientot__veil .sp { position: absolute; left: 24%; top: -8px; width: 44px; height: 150px; background: url('/theme/halloween/spider.svg?v=2') top center / contain no-repeat; transform-origin: top center; animation: hwSpiderHang 6s ease-in-out infinite alternate; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
@keyframes hwSpiderHang { from { transform: translate3d(0,0,0) rotate(-5deg); } to { transform: translate3d(0,22px,0) rotate(5deg); } }
.hw-bientot__sign { position: absolute; left: 50%; top: 50%; z-index: 3; width: min(460px, 86%); padding: 26px 26px 24px; border-radius: 22px; text-align: center; transform: translate(-50%, -50%) rotate(-2deg); background: linear-gradient(180deg, #2a1533, #130a1a); border: 1px solid rgba(255,154,61,.5); box-shadow: 0 30px 70px rgba(0,0,0,.7), 0 0 50px rgba(255,122,26,.18); }
.hw-bientot__sign img { width: 54px; height: 54px; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(255,122,26,.7)); animation: hwSignPk 2.4s ease-in-out infinite alternate; }
@keyframes hwSignPk { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(6deg) translateY(-3px); } }
.hw-bientot__sign .k { font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #ffb457; }
.hw-bientot__sign .t { margin-top: 6px; font-family: 'Archivo Expanded', 'Archivo', sans-serif; font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.05; letter-spacing: -.02em; color: #fff3e6; text-shadow: 0 0 26px rgba(255,122,26,.4); }
.hw-bientot__sign .s { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: #d9c6ea; }
.hw-bientot__pill { border-color: rgba(255,154,61,.45); }
@media (max-width: 760px) {
  /* Sur mobile les trois portes s'empilent : l'ecriteau se pose sur la premiere, pas au milieu de la colonne. */
  .hw-bientot__sign { top: 250px; transform: translate(-50%, 0) rotate(-2deg); width: min(460px, 92%); padding: 20px 18px 18px; }
  .hw-bientot__veil .w { width: 300px; height: 300px; }
  .hw-bientot__veil .w1, .hw-bientot__veil .w3 { left: -150px; }
  .hw-bientot__veil .w2, .hw-bientot__veil .w4 { right: -150px; }
  .hw-bientot__veil .w1, .hw-bientot__veil .w2 { top: -150px; }
  .hw-bientot__veil .w3, .hw-bientot__veil .w4 { bottom: -150px; }
  .hw-bientot__veil .w5 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hw-bientot__veil .w, .hw-bientot__veil .sp, .hw-bientot__sign img { animation: none; } }

/* ==========================================================================
   ACCUEIL : la faucheuse souhaite la bienvenue de la part de BFFR a la
   premiere visite (halloween.js, cle localStorage bp_hw_faucheuse). Scene
   plein ecran : brume, flash d'orage, la faucheuse monte du bas, bulle qui
   s'ecrit lettre a lettre, bouton « Entrer dans la nuit ».
   ========================================================================== */
/* Deborde de 24 px de chaque cote (marge interieure equivalente) : la secousse du bond ne laisse
   jamais voir le bord de la page derriere. */
.hw-reaper { position: fixed; inset: -24px; padding: 24px; z-index: 2147482000; display: grid; place-items: end center; overflow: hidden; font-family: 'Archivo', system-ui, sans-serif; background: radial-gradient(120% 90% at 50% 100%, rgba(58,22,78,.94), rgba(9,3,13,.98) 68%); opacity: 0; transition: opacity .5s ease; outline: none; }
.hw-reaper.is-in { opacity: 1; }
.hw-reaper__flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(70% 60% at 50% 15%, rgba(240,230,255,.95), rgba(200,180,255,.5) 40%, transparent 75%); }
.hw-reaper__fog { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 58%; pointer-events: none; filter: blur(18px); will-change: transform; animation: hwReaperFog 14s ease-in-out infinite alternate;
  background: radial-gradient(40% 60% at 20% 80%, rgba(170,130,220,.24), transparent 70%), radial-gradient(35% 55% at 60% 92%, rgba(255,122,26,.14), transparent 70%), radial-gradient(45% 60% at 85% 75%, rgba(170,130,220,.2), transparent 70%); }
.hw-reaper__fog.f2 { animation-duration: 19s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes hwReaperFog { from { transform: translate3d(-4%,0,0); } to { transform: translate3d(4%,-2%,0); } }
.hw-reaper__stage { position: relative; z-index: 2; width: min(1120px, 100%); height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: end; }
.hw-reaper__fig { position: relative; align-self: end; justify-self: center; height: min(86vh, 720px); transform: translate3d(0, 112%, 0); will-change: transform; }
.hw-reaper.is-up .hw-reaper__fig { animation: hwReaperUp .8s cubic-bezier(.2,.9,.25,1) both, hwReaperSway 5s ease-in-out .8s infinite; }
/* Vol d'approche puis bond sur la camera (halloween.js anime transform / opacity / brightness) :
   le pivot est le crane (45 % / 22 % de l'image), il reste au centre de l'ecran pendant tout le vol. */
.hw-reaper__fly { position: absolute; left: 50%; top: 50%; z-index: 3; height: min(78vh, 900px); transform-origin: 45% 22%; transform: translate(-45%, -22%) scale(.07); opacity: 0; pointer-events: none; will-change: transform, opacity, filter; }
.hw-reaper__fly img { display: block; height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 0 30px rgba(255,122,26,.35)); }
.hw-reaper__red { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(255,40,20,.25), rgba(140,0,0,.85)); }
.hw-reaper.is-scare { cursor: none; }
@keyframes hwReaperUp { from { transform: translate3d(0,112%,0); } to { transform: translate3d(0,0,0); } }
@keyframes hwReaperSway { 0%, 100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(0,-10px,0) rotate(.6deg); } }
.hw-reaper__fig img { display: block; height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)) drop-shadow(0 0 34px rgba(255,122,26,.22)); }
.hw-reaper__glow { position: absolute; left: 50%; bottom: -4%; width: 150%; height: 42%; transform: translateX(-50%); pointer-events: none; background: radial-gradient(50% 60% at 50% 100%, rgba(255,122,26,.38), transparent 70%); }
.hw-reaper__card { position: relative; align-self: center; margin: 0 24px 10vh 0; max-width: 540px; padding: 30px 30px 26px; border-radius: 26px; background: linear-gradient(180deg, #26132f, #120918); border: 1px solid rgba(255,154,61,.42); box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 60px rgba(255,122,26,.16); opacity: 0; transform: translate3d(0,24px,0) scale(.96); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.9,.2,1); }
.hw-reaper__card::before { content: ''; position: absolute; left: -13px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%) rotate(45deg); background: #1d0e26; border-left: 1px solid rgba(255,154,61,.42); border-bottom: 1px solid rgba(255,154,61,.42); }
.hw-reaper.is-talk .hw-reaper__card { opacity: 1; transform: none; }
.hw-reaper__kicker { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #ffb457; margin-bottom: 10px; }
.hw-reaper__title { font-family: 'Archivo Expanded', 'Archivo', sans-serif; font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.02; letter-spacing: -.02em; color: #fff3e6; text-shadow: 0 0 28px rgba(255,122,26,.4); }
.hw-reaper__text { margin: 14px 0 0; min-height: 4.6em; font-size: 16px; line-height: 1.55; color: #ead9f6; }
.hw-reaper__text .cur { display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -.15em; background: #ffb457; animation: hwReaperCur .8s steps(2, end) infinite; }
@keyframes hwReaperCur { to { opacity: 0; } }
.hw-reaper__sign { margin-top: 12px; font-size: 13px; font-style: italic; color: #b89cc9; }
.hw-reaper__actions { display: flex; gap: 14px; align-items: center; margin-top: 20px; opacity: 0; transition: opacity .4s; }
.hw-reaper.is-ready .hw-reaper__actions { opacity: 1; }
.hw-reaper__btn { padding: 13px 26px; border: 0; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 900; color: #1a0a06; background: linear-gradient(100deg, #ffb457, #ff7a1a 60%, #e0640f); box-shadow: 0 14px 34px rgba(255,122,26,.38); cursor: pointer; transition: transform .2s, filter .2s; }
.hw-reaper__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hw-reaper__hint { font-size: 12px; color: #8f7aa3; }
@media (max-width: 760px) {
  .hw-reaper__stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: end; }
  .hw-reaper__card { order: -1; align-self: end; margin: 16px 14px 22px; max-width: none; padding: 22px 20px 18px; }
  .hw-reaper__card::before { left: 50%; top: auto; bottom: -13px; transform: translateX(-50%) rotate(-45deg); }
  .hw-reaper__fig { height: min(46vh, 420px); }
  .hw-reaper__text { min-height: 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-reaper__fog { animation: none; }
  .hw-reaper__fig { transform: none; }
  .hw-reaper.is-up .hw-reaper__fig { animation: none; }
}

/* Ligne de prevention sous l'intro du pass : des screamers sont caches pour Halloween (demande ignirou 2026-10-09). */
.hw-warn { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 13.5px; line-height: 1.3; color: #ffd9b8; background: rgba(255,122,26,.1); border: 1px solid rgba(255,154,61,.42); box-shadow: 0 0 22px rgba(255,122,26,.12); }
.hw-warn img { width: 22px; height: 22px; flex: 0 0 auto; filter: drop-shadow(0 0 8px rgba(255,122,26,.6)); }
.hw-warn b { color: #ffb457; font-weight: 800; }
@media (max-width: 760px) { .hw-warn { border-radius: 16px; } }

/* Animation de la ligne de prevention : halo qui pulse + 4 fantomes qui flottent autour (transform/opacity seulement). */
.hw-warn { position: relative; margin-left: 14px; margin-right: 14px; animation: hwWarnGlow 2.6s ease-in-out infinite; }
@keyframes hwWarnGlow { 0%, 100% { box-shadow: 0 0 18px rgba(255,122,26,.12); border-color: rgba(255,154,61,.38); } 50% { box-shadow: 0 0 34px rgba(255,122,26,.42); border-color: rgba(255,154,61,.8); } }
.hw-warn__g { position: absolute; width: 22px; height: auto; pointer-events: none; opacity: 0; filter: drop-shadow(0 0 8px rgba(214,180,255,.6)); will-change: transform, opacity; }
.hw-warn__g.g1 { left: -16px; top: -14px; animation: hwWarnG1 4.8s ease-in-out infinite; }
.hw-warn__g.g2 { right: -14px; top: -16px; width: 18px; animation: hwWarnG2 5.6s ease-in-out -1.8s infinite; }
.hw-warn__g.g3 { right: 22%; bottom: -20px; width: 20px; animation: hwWarnG3 6.2s ease-in-out -3.1s infinite; }
.hw-warn__g.g4 { left: 30%; top: -22px; width: 16px; animation: hwWarnG4 5.1s ease-in-out -0.7s infinite; }
@keyframes hwWarnG1 { 0%, 100% { opacity: 0; transform: translate(0, 6px) rotate(-8deg); } 20%, 80% { opacity: .9; } 50% { opacity: .9; transform: translate(-10px, -8px) rotate(8deg); } }
@keyframes hwWarnG2 { 0%, 100% { opacity: 0; transform: translate(0, 6px) rotate(8deg); } 20%, 80% { opacity: .85; } 50% { opacity: .85; transform: translate(12px, -10px) rotate(-8deg); } }
@keyframes hwWarnG3 { 0%, 100% { opacity: 0; transform: translate(-12px, 0) rotate(-6deg); } 25%, 75% { opacity: .8; } 50% { opacity: .8; transform: translate(14px, 6px) rotate(6deg); } }
@keyframes hwWarnG4 { 0%, 100% { opacity: 0; transform: translate(10px, 4px) scale(.9); } 25%, 75% { opacity: .8; } 50% { opacity: .8; transform: translate(-12px, -6px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hw-warn, .hw-warn__g { animation: none; } .hw-warn__g { opacity: .7; } }

/* Version « qui accroche l'oeil » de la ligne de prevention (2026-10-09, 2e passe) : plus grande, halo plus fort,
   tremblement toutes les 5 s, reflet qui balaie, citrouille qui rebondit, fantomes plus gros. Meme HTML. */
.hw-warn { display: flex; width: max-content; max-width: calc(100% - 28px); margin-top: 20px; padding: 14px 24px 14px 16px; font-size: 16.5px; font-weight: 600; color: #fff1e0; border-width: 2px; background: linear-gradient(100deg, rgba(255,122,26,.22), rgba(142,68,173,.28)); overflow: visible; animation: hwWarnGlow2 1.9s ease-in-out infinite, hwWarnShake 5s ease-in-out infinite; }
@keyframes hwWarnGlow2 { 0%, 100% { box-shadow: 0 0 22px rgba(255,122,26,.3), 0 0 0 0 rgba(255,122,26,.5); border-color: rgba(255,154,61,.6); } 50% { box-shadow: 0 0 52px rgba(255,122,26,.65), 0 0 0 12px rgba(255,122,26,0); border-color: #ffb457; } }
@keyframes hwWarnShake { 0%, 88%, 100% { transform: none; } 90% { transform: translate3d(-4px, 0, 0) rotate(-.6deg); } 92% { transform: translate3d(4px, 1px, 0) rotate(.6deg); } 94% { transform: translate3d(-3px, -1px, 0) rotate(-.4deg); } 96% { transform: translate3d(3px, 0, 0) rotate(.4deg); } }
.hw-warn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); background-size: 250% 100%; animation: hwWarnSweep 3.2s linear infinite; mix-blend-mode: overlay; }
@keyframes hwWarnSweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.hw-warn img:first-child { width: 32px; height: 32px; animation: hwWarnPk 1.1s ease-in-out infinite alternate; }
@keyframes hwWarnPk { from { transform: rotate(-12deg) scale(1); } to { transform: rotate(12deg) scale(1.2); } }
.hw-warn b { display: inline-block; font-size: 1.05em; letter-spacing: .12em; text-transform: uppercase; color: #ffd36b; text-shadow: 0 0 14px rgba(255,170,60,.9); animation: hwWarnB 1.2s steps(1, end) infinite; }
@keyframes hwWarnB { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.hw-warn__g { width: 34px; filter: drop-shadow(0 0 12px rgba(214,180,255,.9)); }
.hw-warn__g.g1 { left: -26px; top: -22px; }
.hw-warn__g.g2 { right: -24px; top: -24px; width: 30px; }
.hw-warn__g.g3 { right: 20%; bottom: -30px; width: 32px; }
.hw-warn__g.g4 { left: 28%; top: -32px; width: 28px; }
@media (max-width: 760px) { .hw-warn { width: auto; font-size: 15px; padding: 12px 16px 12px 12px; } }
@media (prefers-reduced-motion: reduce) { .hw-warn, .hw-warn::after, .hw-warn img:first-child, .hw-warn b { animation: none; } }
