/* Titres de profil et bannières de donjon N+5 / N+10 (5/11/2026). Pixel art : bords d'un ou deux pixels, pas de flou
   sur le texte, étincelles carrées. Cinq raretés : r1 Commun, r2 Rare, r3 Épique, r4 Légendaire, r5 Mythique. */

/* ---------- La pastille du titre ---------- */
.titre { --c1: #ffe27a; --c2: #ffe27a; position: relative; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  font-family: 'PMD Font', 'Pixelify', sans-serif; font-size: 15px; line-height: 1; white-space: nowrap; padding: 2px 7px 3px;
  border: 2px solid #8a6a3a; background: #2a1a0c; color: #f3e7c9; image-rendering: pixelated; max-width: 100%; box-sizing: border-box; }
.titre .tt { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #06081a; }
.titre .tt-cr { display: inline-block; width: 14px; height: 12px; flex: none; }
.titre .tt-cr .pxi { --k: 1px; }
.titre.r2 { border-color: color-mix(in srgb, var(--c1) 70%, #fff); background: #0c1430; color: var(--c1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.55); }
.titre.r3 { border-color: #e8c060; background: linear-gradient(180deg, #2c1646, #170a2a); box-shadow: inset 0 0 0 1px #6a4a14, 0 0 6px color-mix(in srgb, var(--c1) 45%, transparent); }
.titre.r3 .tt, .titre.r4 .tt, .titre.r5 .tt { color: transparent; -webkit-background-clip: text; background-clip: text; text-shadow: none; }
.titre.r3 .tt { background-image: linear-gradient(180deg, #ffffff 10%, var(--c1) 55%, var(--c2) 100%); filter: drop-shadow(0 1px 0 #06081a); }
.titre.r4 { border-color: #ffe07a; background: linear-gradient(180deg, #3a2406, #1e1203); box-shadow: inset 0 0 0 1px #8a5a0a, 0 0 8px rgba(255,214,90,.55);
  animation: ttBord 2.4s steps(6) infinite; }
.titre.r4 .tt { background-image: linear-gradient(90deg, var(--c1) 0 30%, var(--c2) 42%, #ffffff 50%, var(--c2) 58%, var(--c1) 70% 100%); background-size: 260% 100%;
  animation: ttFile 2.6s linear infinite; filter: drop-shadow(0 1px 0 #06081a); }
.titre.r5 { border: 2px solid transparent; color: #fff;
  background: linear-gradient(180deg, #22093a, #12041f) padding-box, linear-gradient(90deg, #ff5a5a, #ffb03a, #ffe85a, #5aff8a, #5ae0ff, #8a7aff, #ff6ad8, #ff5a5a) border-box;
  background-size: 100% 100%, 300% 100%; animation: ttArc 3s linear infinite; box-shadow: 0 0 10px rgba(255,140,230,.55), 0 0 2px #fff; }
.titre.r5 .tt { background-image: linear-gradient(90deg, #ff7a7a, #ffc24a, #fff27a, #7affa0, #7ae8ff, #a49aff, #ff8ae0, #ff7a7a); background-size: 300% 100%;
  animation: ttFile 3s linear infinite; filter: drop-shadow(0 1px 0 #06081a); }
/* Fan de … : la couleur du type, qui brille */
.titre.fam-fan.r4 { border-color: var(--c1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 0 9px color-mix(in srgb, var(--c1) 70%, transparent); animation: ttFan 1.8s steps(4) infinite; }
.titre.fam-fan .tt { background-image: linear-gradient(90deg, var(--c1) 0 32%, #ffffff 46%, var(--c2) 54%, var(--c1) 68% 100%); }
/* Étincelles en pixels (4 branches) des gros titres */
.titre .tt-et { position: absolute; top: -5px; right: 8px; width: 2px; height: 2px; background: #fff; pointer-events: none;
  box-shadow: 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff; opacity: 0; animation: ttEt 1.9s steps(1) infinite; }
.titre .tt-et.b { top: auto; bottom: -5px; right: auto; left: 12px; animation-delay: .95s; }
.titre.r5 .tt-et { background: #ffe8ff; animation-duration: 1.3s; }
@keyframes ttFile { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@keyframes ttArc { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 300% 0; } }
@keyframes ttBord { 0%, 70% { border-color: #ffe07a; } 85% { border-color: #fff8d8; } }
@keyframes ttFan { 0%, 60% { filter: none; } 80% { filter: brightness(1.25); } }
@keyframes ttEt { 0%, 55% { opacity: 0; } 60%, 80% { opacity: 1; } 85% { opacity: 0; } }
.titre.off { filter: grayscale(1) brightness(.55); animation: none; }
.titre.off .tt, .titre.off .tt-et { animation: none; }
.titre.grand { font-size: 28px; padding: 6px 14px 7px; border-width: 3px; }
.titre.grand .tt-cr { width: 26px; height: 22px; }
.titre.grand .tt-cr .pxi { --k: 2px; }
.titre.grand .tt-et { transform: scale(2); }

/* À côté du pseudo (salon, Guilde, salons ouverts, menu du camp) */
.titre-l { display: block; margin-top: 1px; line-height: 1; }
.titre-l .titre { font-size: 12px; padding: 1px 5px 2px; border-width: 1px; }
.titre-l .titre .tt-cr { width: 10px; height: 9px; }
.hub-mini .titre-l .titre { font-size: 13px; }

/* ---------- Profil : choisir son titre ---------- */
.tt-choix { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.tt-btn { padding: 3px; background: transparent; border: 2px solid transparent; min-height: 0; }
.tt-btn .titre { pointer-events: none; }
.tt-btn.sel { border-color: var(--gold); background: rgba(255,214,90,.12); }
.tt-btn:focus-visible, .tt-btn.focus { border-color: #9fd8ff; }
.tt-verrou { display: inline-flex; flex-direction: column; gap: 2px; max-width: 220px; }
.tt-verrou small { font-size: 12px; color: #8792b0; line-height: 1.1; white-space: normal; }
.tt-aide { font-size: 15px; }
/* (G5, 11/11) titres à gagner : grisés, avec une barre jaune en pixels (bord sombre, pas de dégradé) */
.tt-proches { align-items: flex-start; }
.tt-agagner { width: 100%; font-size: 14px; margin: 2px 0 -2px; }
.tt-prog { display: flex; flex-direction: column; gap: 1px; width: 100%; min-width: 150px; }
.tt-barre { position: relative; display: block; height: 8px; background: #1a2038; border: 2px solid #0a0e1c; box-shadow: inset 0 2px 0 rgba(0,0,0,.45); image-rendering: pixelated; }
.tt-barre b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k) * 100%); background: #f8d040; box-shadow: inset 0 2px 0 #fff0a0, inset 0 -2px 0 #b88018; }
.tt-val { font-size: 13px; color: #f8e08a; line-height: 1.1; }
/* Défis et succès : les titres de chaque succès */
.ach-titres { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ach-titre .titre { font-size: 12px; padding: 1px 5px 2px; border-width: 1px; }
.ach-titre .titre .tt-cr { width: 10px; height: 9px; }
.tt-plus { margin: -4px 0 8px; }
.tt-plus > summary { cursor: pointer; font-size: 15px; }
.tt-plus[open] > summary { margin-bottom: 4px; }
#pf-titre { margin: 4px 0 0; min-height: 0; }
/* (7/11) sections repliables : une par famille (Donjons, Succès, Fan de…), à la souris, au doigt et à la manette */
.tt-fam { margin: 4px 0; border: 2px solid #3a4466; background: rgba(20,26,48,.55); }
.tt-fam[open] { border-color: #59658f; }
.tt-fam > summary { list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; padding: 4px 10px; cursor: pointer; font-size: 18px; color: #cfe0ff; user-select: none; -webkit-tap-highlight-color: transparent; }
.tt-fam > summary::-webkit-details-marker { display: none; }
.tt-fam > summary:hover, .tt-fam > summary.focus, .tt-fam > summary:focus-visible { background: rgba(159,216,255,.12); outline: 2px solid #9fd8ff; outline-offset: -2px; }
.tt-fam > .tt-choix, .tt-fam > .tt-plus { margin-left: 10px; margin-right: 8px; }
.tt-fam > .tt-choix { margin-top: 6px; }
.tt-porte { margin-left: auto; }
/* petite flèche en pixels (2 px), qui pivote quand la section s'ouvre */
.tt-fleche { width: 6px; height: 10px; flex: none; image-rendering: pixelated; transition: transform .12s steps(2);
  background: linear-gradient(#ffd65a,#ffd65a) 0 0/2px 10px no-repeat, linear-gradient(#ffd65a,#ffd65a) 2px 2px/2px 6px no-repeat, linear-gradient(#ffd65a,#ffd65a) 4px 4px/2px 2px no-repeat; }
.tt-fam[open] > summary .tt-fleche { transform: rotate(90deg); }
.tt-plus > summary.focus, #d-titre > summary.focus { outline: 2px solid #9fd8ff; outline-offset: 2px; }

/* ---------- Fête d'un nouveau titre ---------- */
.titre-fete .tf-box { text-align: center; }
.titre-fete .tf-rar { position: relative; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: #ffe07a; text-shadow: 0 2px 0 #000; }
.titre-fete.r5 .tf-rar { animation: ttHue 2s linear infinite; color: #ff9ae8; }
.titre-fete .tf-titre { position: relative; margin: 14px 0 10px; animation: tfZoom .7s steps(7) both; }
.titre-fete .tf-autres { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 6px; }
.titre-fete.r4 .gu-fete-box { box-shadow: 0 0 0 3px #f0c848, 0 0 34px rgba(255,214,90,.6); }
.titre-fete.r5 .gu-fete-box { box-shadow: 0 0 0 3px #ff9ae8, 0 0 44px rgba(190,140,255,.75); }
.titre-fete.r5 .gu-rayons { background: repeating-conic-gradient(rgba(255,150,230,.24) 0 10deg, transparent 10deg 20deg, rgba(140,220,255,.22) 20deg 30deg, transparent 30deg 40deg); }
@keyframes tfZoom { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.18) rotate(2deg); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ttHue { to { filter: hue-rotate(360deg); } }

/* ---------- Bannières de donjon : stylisée (N+5) et légendaire (N+10) ---------- */
.banniere.bn-n5, .banniere.bn-n10 { --cd: #ffe27a; border: 3px solid #f0c848; box-shadow: inset 0 0 0 2px #3a2406, inset 0 0 0 4px rgba(255,226,122,.35), 0 0 12px rgba(255,214,90,.35); }
.banniere.bn-n5::before, .banniere.bn-n10::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cd) 38%, transparent), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 4px, transparent 4px 10px); }
.banniere.bn-n5::after, .banniere.bn-n10::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28) 45%, rgba(255,255,255,.05) 55%, transparent); animation: bnReflet 4.5s ease-in-out infinite; }
.banniere .bn-coin { position: absolute; width: 6px; height: 6px; background: #ffe07a; box-shadow: 0 0 0 2px #6a4206; z-index: 3; transform: rotate(45deg); pointer-events: none; }
.banniere .bn-coin.a { left: 5px; top: 5px; } .banniere .bn-coin.b { right: 5px; top: 5px; } .banniere .bn-coin.c { left: 5px; bottom: 5px; } .banniere .bn-coin.d { right: 5px; bottom: 5px; }
.banniere .bn-ruban { position: absolute; right: 12px; top: 8px; z-index: 3; font-size: 14px; padding: 2px 8px; color: #2a1a04; background: linear-gradient(180deg, #fff2b0, #f0c040);
  box-shadow: 0 0 0 2px #6a4206; text-shadow: none; white-space: nowrap; }
.banniere.bn-n10 { animation: bnAura 2.8s steps(8) infinite; }
.banniere.bn-n10 .bn-ruban { background: linear-gradient(90deg, #ffe07a, #ffffff, #ffe07a); background-size: 200% 100%; animation: ttFile 3s linear infinite; }
.banniere.bn-n10 .bn-nom .bn-cr { display: inline-block; width: 22px; height: 18px; margin-right: 4px; vertical-align: -2px; }
.banniere.bn-n10 .bn-nom .bn-cr .pxi { --k: 1.5px; }
.banniere .bn-nom, .banniere .bn-type, .banniere .bn-crown { z-index: 3; }
/* (6/11, Kiko) d'abord le pseudo, puis le titre (entre le pseudo et le type), un peu plus petit */
.banniere .bn-titre { position: absolute; left: 12px; bottom: 28px; z-index: 3; max-width: calc(100% - 24px); }
.banniere .bn-titre .titre { font-size: 13px; padding: 1px 6px 2px; }
.banniere:has(.bn-titre) .bn-nom { bottom: 50px; }
.profil-tete .banniere .bn-titre { left: 116px; max-width: calc(100% - 128px); }
/* La scène du N+10 : les chefs sautillent devant, les légendaires de la faille flottent derrière, dans leur halo */
.banniere.bn-n10 .bn-scene::before { content: ''; position: absolute; left: -20px; right: -10px; bottom: -14px; height: 46px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--cd) 55%, transparent), transparent 70%); animation: bnFlotte 3.2s ease-in-out infinite reverse; }
.banniere .bn-scene { position: absolute; right: 10px; bottom: 0; height: 100%; display: flex; align-items: flex-end; gap: 2px; z-index: 1; pointer-events: none; }
.banniere .bn-scene .bn-leg { position: relative; align-self: flex-end; margin-bottom: 16px; opacity: .92; filter: drop-shadow(0 0 5px var(--cd)) drop-shadow(0 0 2px #fff);
  animation: bnHop 2.4s infinite; animation-delay: calc(var(--i, 0) * .32s + .9s); }
/* (7/11) petit saut en pixel art : on s'accroupit, on monte par paliers de 2 px, on retombe en s'écrasant ; décalé d'un Pokémon à
   l'autre (--i). « translate » et « scale » plutôt que « transform », que la version téléphone utilise pour réduire la scène. */
.banniere .bn-scene .bn-chef { position: relative; transform-origin: 50% 100%; animation: bnHop 1.6s infinite; animation-delay: calc(var(--i, 0) * .18s); }
.banniere .bn-scene.shz .bn-chef { filter: drop-shadow(0 0 3px #fff8c0); }
.banniere .bn-scene > span { display: block; width: 58px; height: 60px; }
.banniere .bn-scene .bn-leg { width: 50px; z-index: 0; }
.banniere .bn-scene .bn-leg canvas { opacity: .85; }
.banniere .bn-scene > span canvas, .banniere .bn-scene > span img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); image-rendering: pixelated; }
.banniere .bn-scene .bn-leg img, .banniere .bn-scene .bn-chef img { width: 40px; height: 40px; bottom: 6px; border-radius: 4px; }
.banniere.petit .bn-scene { right: 6px; gap: 0; }
.banniere.petit .bn-scene > span { width: 26px; height: 40px; }
.banniere.petit .bn-scene .bn-leg img, .banniere.petit .bn-scene .bn-chef img { width: 24px; height: 24px; }
.banniere.petit .bn-ruban { font-size: 11px; top: 4px; right: 6px; padding: 1px 4px; }
.banniere.petit .bn-coin { width: 4px; height: 4px; }
.banniere.bn-n10.petit .bn-scene .bn-leg { margin-bottom: 18px; }
.banniere.bn-n10 .bn-etoiles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.banniere.bn-n10 .bn-etoiles i { position: absolute; width: 2px; height: 2px; background: #fff; box-shadow: 0 -2px 0 #fff8c0, 0 2px 0 #fff8c0, -2px 0 0 #fff8c0, 2px 0 0 #fff8c0; opacity: 0; animation: ttEt 2.2s steps(1) infinite; }
@keyframes bnReflet { 0%, 55% { left: -40%; } 100% { left: 120%; } }
@keyframes bnAura { 0%, 100% { border-color: #f0c848; } 50% { border-color: #fff4c0; box-shadow: inset 0 0 0 2px #3a2406, inset 0 0 0 4px rgba(255,226,122,.5), 0 0 20px rgba(255,214,90,.6); } }
@keyframes bnHop {
  0%, 52% { translate: 0 0; scale: 1 1; animation-timing-function: steps(1, end); }
  56% { translate: 0 0; scale: 1.08 .9; animation-timing-function: steps(1, end); }
  62% { translate: 0 -4px; scale: .96 1.06; animation-timing-function: steps(1, end); }
  68% { translate: 0 -8px; scale: 1 1; animation-timing-function: steps(1, end); }
  74% { translate: 0 -10px; scale: 1 1; animation-timing-function: steps(1, end); }
  80% { translate: 0 -8px; scale: 1 1; animation-timing-function: steps(1, end); }
  86% { translate: 0 -4px; scale: 1 1; animation-timing-function: steps(1, end); }
  90% { translate: 0 0; scale: 1.1 .88; animation-timing-function: steps(1, end); }
  95%, 100% { translate: 0 0; scale: 1 1; }
}
@keyframes bnSaut { 0%, 100% { transform: translateY(0); } 33% { transform: translateY(-7px); } 66% { transform: translateY(-3px); } }
@keyframes bnFlotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Téléphone : moins de Pokémon sur la scène */
.banniere .bn-ruban .rl { font-weight: normal; }
@media (max-width: 560px) {
  /* Téléphone : deux chefs et un légendaire, plus petits ; le ruban se réduit au cran */
  .banniere .bn-scene { right: 4px; gap: 0; }
  .banniere .bn-scene > span { width: 40px; transform: scale(.72); transform-origin: 50% 100%; margin: 0 -6px; }
  .banniere .bn-scene .bn-leg:nth-child(n+2) { display: none; }
  .banniere .bn-scene .bn-chef:nth-last-child(n+3) { display: none; }
  .banniere .bn-ruban .rl { display: none; }
  .banniere .bn-titre .titre { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .titre, .titre .tt, .titre .tt-et, .banniere.bn-n10, .banniere.bn-n5::after, .banniere.bn-n10::after, .banniere .bn-scene > span, .banniere .bn-etoiles i, .titre-fete .tf-titre { animation: none !important; }
  .titre .tt-et { opacity: 0; }
}
/* (8/11, G) Bannière de la fin de l'histoire : le sommet de la Tour du Temps, Groudon, Noctunoir et Dialga Primal qui
   sautillent, étincelles bleues (Dialga) et orange (ses lignes de feu), liseré qui passe du bleu à l'orange. */
.banniere.bn-histoire { background-size: auto, cover; background-position: 0 0, 50% 18%; border-color: #8fb8ff; animation: bnAuraTemps 3s steps(8) infinite;
  box-shadow: inset 0 0 0 2px #10183a, inset 0 0 0 4px rgba(143,184,255,.35), 0 0 12px rgba(143,184,255,.35); }
.banniere.bn-histoire::before { background: linear-gradient(90deg, rgba(255,138,74,.32), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 4px, transparent 4px 10px); }
.banniere.bn-histoire .bn-ruban { background: linear-gradient(90deg, #8fb8ff, #ffffff, #ffb08a, #8fb8ff); background-size: 300% 100%; color: #10183a; box-shadow: 0 0 0 2px #1a2450; }
.banniere.bn-histoire .bn-coin { background: #bfe0ff; box-shadow: 0 0 0 2px #1a2450; }
.banniere.bn-histoire .bn-etoiles i:nth-child(odd) { background: #e8f4ff; box-shadow: 0 -2px 0 #8fb8ff, 0 2px 0 #8fb8ff, -2px 0 0 #8fb8ff, 2px 0 0 #8fb8ff; }
.banniere.bn-histoire .bn-etoiles i:nth-child(even) { background: #fff4d0; box-shadow: 0 -2px 0 #ff8a4a, 0 2px 0 #ff8a4a, -2px 0 0 #ff8a4a, 2px 0 0 #ff8a4a; }
.banniere.bn-histoire .bn-scene { gap: 6px; }
.banniere.bn-histoire .bn-scene > span:last-child { width: 74px; filter: drop-shadow(0 0 4px rgba(255,106,42,.75)); }
.banniere.bn-histoire.petit .bn-scene > span:last-child { width: 28px; }
@keyframes bnAuraTemps { 0%, 100% { border-color: #8fb8ff; } 50% { border-color: #ffb08a; box-shadow: inset 0 0 0 2px #10183a, inset 0 0 0 4px rgba(255,176,138,.5), 0 0 20px rgba(255,138,74,.55); } }
@media (prefers-reduced-motion: reduce) { .banniere.bn-histoire { animation: none; } }

/* ---------- File des annonces (14/11) : un titre ou une bannière à la fois, compteur « 2 / 5 », bannière en grand ---------- */
.titre-fete .tf-compteur { position: absolute; top: 8px; right: 10px; z-index: 2; padding: 1px 8px; border: 2px solid #1a1030; background: #ffd35c; color: #3a2400; font-weight: bold; box-shadow: 0 0 0 1px #fff3b0; animation: tfPop .35s steps(4) both; }
.titre-fete.tf-part .gu-fete-box { animation: tfPart .22s steps(3) both; }
.titre-fete.tf-bn .gu-fete-box { width: min(720px, 94vw); }
.titre-fete .tf-banniere { position: relative; margin: 14px auto 8px; width: min(640px, 100%); text-align: left; animation: tfBanniere .8s steps(8) both; }
.titre-fete .tf-banniere .banniere { box-shadow: 0 0 0 3px #1a1030, 0 0 26px rgba(255,214,90,.55); }
.titre-fete.tf-mieux .tf-banniere .banniere { animation: tfBrille 1.6s steps(8) .8s 2; }
.titre-fete .tf-raison { position: relative; color: #ffe9a0; }
.titre-fete .tf-deja { position: relative; font-size: 15px; margin: 0 0 6px; }
@keyframes tfPop { 0% { transform: scale(.3); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes tfPart { to { transform: scale(.86); opacity: 0; } }
@keyframes tfBanniere { 0% { transform: translateY(-30px) scaleX(.2); opacity: 0; } 55% { transform: translateY(4px) scaleX(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes tfBrille { 50% { filter: brightness(1.45) saturate(1.3); } }
body.is-touch .titre-fete .tf-banniere { width: 100%; }
@media (prefers-reduced-motion: reduce) { .titre-fete .tf-banniere, .titre-fete .tf-compteur, .titre-fete.tf-part .gu-fete-box { animation: none; } }
/* ---------- (13/11/2026, Kiko) Manoir Spectral N+5 : une nuit d'Halloween animée ---------- */
.banniere.bn-hw { border-color: #ff9a3a; box-shadow: inset 0 0 0 2px #2a0a3a, inset 0 0 0 4px rgba(255,154,58,.35), 0 0 14px rgba(255,120,40,.45), 0 0 26px rgba(150,70,220,.3); animation: hwAura 3.2s ease-in-out infinite; }
.banniere.bn-hw::before { background: linear-gradient(90deg, rgba(20,6,34,.65), transparent 60%); }
.banniere.bn-hw .bn-ruban { background: linear-gradient(90deg, #ff9a3a, #ffd27a, #b86bff, #ff9a3a); background-size: 300% 100%; color: #1c0628; box-shadow: 0 0 0 2px #2a0a3a; animation: ttFile 4s linear infinite; }
.banniere.bn-hw .bn-coin { background: #ff9a3a; box-shadow: 0 0 0 2px #2a0a3a; }
.bn-hw .hw-ciel { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(26,8,46,.92) 0%, rgba(70,18,92,.72) 55%, rgba(255,110,40,.5) 100%); background-size: 100% 200%; animation: hwCiel 7s ease-in-out infinite alternate; }
.bn-hw .hw-lune { position: absolute; left: 40%; top: 10%; width: 26px; height: 26px; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 38% 38%, #fffbe0 0 30%, #ffe9a0 55%, #f5c860 100%); box-shadow: 0 0 10px 3px rgba(255,236,160,.55), 0 0 30px 10px rgba(255,180,80,.25); animation: hwLune 4s ease-in-out infinite, hwLuneCourse 46s linear infinite; animation-delay: 0s, -18s; }
/* (14/11, Kiko) la lune traverse doucement le ciel, de droite à gauche, en montant un peu au milieu */
.bn-hw .hw-lune::after { content: ''; position: absolute; left: 6px; top: 12px; width: 5px; height: 4px; border-radius: 50%; background: rgba(210,160,60,.55); box-shadow: 9px -6px 0 -1px rgba(210,160,60,.45), 11px 4px 0 0 rgba(210,160,60,.4); }
.banniere.petit.bn-hw .hw-lune { width: 16px; height: 16px; }
.banniere.petit.bn-hw .hw-lune::after { display: none; }
.bn-hw .hw-brume { position: absolute; left: 0; right: 0; height: 40%; z-index: 1; pointer-events: none; opacity: .55;
  background: radial-gradient(ellipse 60px 12px at 20% 60%, rgba(210,190,255,.55), transparent), radial-gradient(ellipse 80px 14px at 60% 40%, rgba(200,180,255,.45), transparent), radial-gradient(ellipse 50px 10px at 90% 70%, rgba(220,200,255,.5), transparent);
  background-size: 240px 100%; background-repeat: repeat-x; animation: hwBrume 18s linear infinite; }
.bn-hw .hw-brume.a { bottom: 8%; }
.bn-hw .hw-brume.b { bottom: 34%; opacity: .3; animation-duration: 27s; animation-direction: reverse; }
.bn-hw .hw-vol { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bn-hw .hw-chauve { position: absolute; top: var(--y); left: 110%; width: 1px; height: 1px; animation: hwTraverse var(--d) linear infinite; animation-delay: calc(var(--i) * -3.7s); }
.bn-hw .hw-chauve > .hw-anim { animation: hwBattement 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); filter: brightness(.75) drop-shadow(0 0 2px rgba(255,140,60,.6)); }
.bn-hw .hw-anim { position: absolute; left: 0; top: 0; width: 1px; height: 1px; display: block; }
.bn-hw .hw-chauve .hw-anim canvas { top: 0; bottom: auto !important; }
.bn-hw .hw-anim canvas { position: absolute; left: 50%; transform: translateX(-50%); image-rendering: pixelated; }
.bn-hw .hw-sol { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(16,4,26,.75)); }
.bn-hw .hw-citr { position: absolute; bottom: calc(6 * var(--k) + 3px); width: var(--k); height: var(--k); filter: drop-shadow(0 0 4px rgba(255,170,60,.7)); animation: hwCitr 2.2s steps(2) infinite; animation-delay: calc(var(--i) * -.55s); }
.bn-hw .hw-piste { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bn-hw .hw-marche { position: absolute; bottom: 6px; left: -10%; width: 1px; height: 1px; animation: hwMarche 16s linear infinite; }
.bn-hw .hw-marche .hw-anim { top: auto; bottom: 0; }
.banniere.petit.bn-hw .hw-marche { bottom: 3px; animation-duration: 12s; }
.bn-hw .hw-marche .hw-anim canvas { filter: drop-shadow(0 0 3px rgba(255,140,40,.8)); }
.bn-hw .hw-legs { right: 16px; z-index: 1; }
.bn-hw .bn-etoiles { z-index: 0; }
.bn-hw .bn-nom { text-shadow: 0 2px 0 #1c0628, 0 0 8px rgba(255,140,40,.7); }
@keyframes hwAura { 50% { box-shadow: inset 0 0 0 2px #2a0a3a, inset 0 0 0 4px rgba(184,107,255,.4), 0 0 20px rgba(184,107,255,.55), 0 0 30px rgba(255,120,40,.35); } }
@keyframes hwCiel { to { background-position: 0 100%; } }
@keyframes hwLuneCourse { 0% { left: 92%; top: 22%; } 50% { top: 6%; } 100% { left: -12%; top: 22%; } }
@keyframes hwLune { 50% { box-shadow: 0 0 14px 5px rgba(255,236,160,.7), 0 0 40px 14px rgba(255,180,80,.32); } }
@keyframes hwBrume { to { background-position: 240px 0; } }
@keyframes hwTraverse { from { left: 112%; } to { left: -14%; } }
@keyframes hwBattement { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-5px); } 75% { transform: translateY(5px); } }
@keyframes hwCitr { 50% { filter: brightness(.7) drop-shadow(0 0 2px rgba(255,120,40,.5)); } }
@keyframes hwMarche { 0% { left: -10%; transform: scaleX(1); } 47% { left: 96%; transform: scaleX(1); } 50% { left: 96%; transform: scaleX(-1); } 97% { left: -10%; transform: scaleX(-1); } 100% { left: -10%; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .bn-hw, .bn-hw .hw-ciel, .bn-hw .hw-lune, .bn-hw .hw-brume, .bn-hw .hw-chauve, .bn-hw .hw-chauve > .hw-anim, .bn-hw .hw-citr, .bn-hw .hw-marche { animation: none !important; } .bn-hw .hw-chauve { left: calc(20% + var(--i) * 18%); } .bn-hw .hw-marche { left: 30%; } .bn-hw .hw-lune { left: 40%; top: 10%; } }
/* (18/11) Bannière de fin du livre 2 « Le Trésor de l'Équipe Charme » : rose et or, sur le lac souterrain du trésor */
.banniere.bn-charme { background-position: 0 0, 50% 8%; border-color: #ff9ac8; animation: bnAuraCharme 3s steps(8) infinite; }
@keyframes bnAuraCharme { 0%, 100% { box-shadow: 0 0 0 2px #2a1040, 0 0 10px rgba(255,122,176,.55); } 50% { box-shadow: 0 0 0 2px #2a1040, 0 0 18px rgba(255,211,92,.7); } }
.banniere.bn-charme::before { background: linear-gradient(90deg, rgba(255,122,176,.34), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 4px, transparent 4px 10px); }
.banniere.bn-charme .bn-ruban { background: linear-gradient(90deg, #ff9ac8, #ffffff, #ffd35c, #ff9ac8); background-size: 300% 100%; color: #3a1030; box-shadow: 0 0 0 2px #2a1040; }
.banniere.bn-charme .bn-coin { background: #ffc6de; box-shadow: 0 0 0 2px #2a1040; }
.banniere.bn-charme .bn-etoiles i:nth-child(odd) { background: #fff0f6; box-shadow: 0 -2px 0 #ff7ab0, 0 2px 0 #ff7ab0, -2px 0 0 #ff7ab0, 2px 0 0 #ff7ab0; }
.banniere.bn-charme .bn-etoiles i:nth-child(even) { background: #fff8d8; box-shadow: 0 -2px 0 #ffd35c, 0 2px 0 #ffd35c, -2px 0 0 #ffd35c, 2px 0 0 #ffd35c; }
.banniere.bn-charme .bn-scene { gap: 10px; padding-right: 30px; }
.banniere.bn-charme .bn-scene > span { width: 52px; }
.banniere.bn-charme .bn-scene .bn-chef { animation-duration: 1.2s; animation-delay: calc(var(--i, 0) * .22s); }
.banniere.bn-charme .bn-scene > span:last-child { width: 52px; filter: drop-shadow(0 0 4px rgba(255,122,176,.8)); }
@media (prefers-reduced-motion: reduce) { .banniere.bn-charme { animation: none; } }
/* (23/11) Bannière de fin du livre 3 « Les Plans Diaboliques de l'Équipe Crâne » : violet et or, au sommet du Mt Corne ;
   l'Équipe Crâne sautille (portée en triomphe), les 4 foulards des explorateurs flottent dans le coin. */
.banniere.bn-crane { background-position: 0 0, 50% 40%; border-color: #b48cff; animation: bnAuraCrane 3s steps(8) infinite; }
@keyframes bnAuraCrane { 0%, 100% { box-shadow: 0 0 0 2px #1a0a30, 0 0 10px rgba(180,140,255,.55); } 50% { box-shadow: 0 0 0 2px #1a0a30, 0 0 18px rgba(255,211,92,.7); } }
.banniere.bn-crane::before { background: linear-gradient(90deg, rgba(123,79,196,.4), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 4px, transparent 4px 10px); }
.banniere.bn-crane .bn-ruban { background: linear-gradient(90deg, #b48cff, #ffffff, #ffd35c, #b48cff); background-size: 300% 100%; color: #1e0c3a; box-shadow: 0 0 0 2px #1a0a30; }
.banniere.bn-crane .bn-coin { background: #d9c2ff; box-shadow: 0 0 0 2px #1a0a30; }
.banniere.bn-crane .bn-etoiles i:nth-child(odd) { background: #f3ebff; box-shadow: 0 -2px 0 #9b6cf0, 0 2px 0 #9b6cf0, -2px 0 0 #9b6cf0, 2px 0 0 #9b6cf0; }
.banniere.bn-crane .bn-etoiles i:nth-child(even) { background: #fff8d8; box-shadow: 0 -2px 0 #ffd35c, 0 2px 0 #ffd35c, -2px 0 0 #ffd35c, 2px 0 0 #ffd35c; }
.banniere.bn-crane .bn-scene { gap: 6px; padding-right: 54px; }
.banniere.bn-crane .bn-scene > span { width: 46px; }
.banniere.bn-crane .bn-scene .bn-chef { animation-duration: 1s; animation-delay: calc(var(--i, 0) * .18s); }
/* (23/11, Kiko : « la Team Skull qui sautille ») chacun sa façon de bouger : Moufouette sautille vite, Nosferapti vole,
   Moufflair rit en sautant haut (au centre), Smogo se gonfle */
.banniere.bn-crane .bn-scene .bn-chef:nth-child(1) { animation: bnHop .8s infinite; }
.banniere.bn-crane .bn-scene .bn-chef:nth-child(2) { animation: bnVolCrane 1.2s steps(6) infinite; }
.banniere.bn-crane .bn-scene .bn-chef:nth-child(3) { animation: bnRireCrane 1.6s infinite; }
.banniere.bn-crane .bn-scene .bn-chef:nth-child(4) { animation: bnGonfleCrane 1.8s steps(6) infinite; animation-delay: .4s; }
@keyframes bnVolCrane { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 -9px; } }
@keyframes bnRireCrane {
  0%, 40%, 100% { translate: 0 0; scale: 1 1; animation-timing-function: steps(1, end); }
  46% { scale: 1.1 .88; animation-timing-function: steps(1, end); } 54% { translate: 0 -10px; scale: .94 1.08; animation-timing-function: steps(1, end); }
  62% { translate: 0 -12px; scale: 1 1; animation-timing-function: steps(1, end); } 70% { translate: 0 -4px; animation-timing-function: steps(1, end); }
  76% { translate: 0 0; scale: 1.08 .92; animation-timing-function: steps(1, end); } 82% { translate: 0 -5px; scale: 1 1; animation-timing-function: steps(1, end); } 88% { translate: 0 0; } }
@keyframes bnGonfleCrane { 0%, 100% { scale: 1 1; translate: 0 0; } 50% { scale: 1.12 1.12; translate: 0 -3px; } }
.banniere.bn-crane .bn-scene > span:nth-child(3) { width: 54px; filter: drop-shadow(0 0 4px rgba(255,211,92,.8)); }
.bn-foulards { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 3px; z-index: 2; }
.bn-foulards i { display: block; width: 10px; height: 7px; background: var(--c); box-shadow: 0 0 0 1px #10081e, 2px 2px 0 rgba(0,0,0,.35);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 70% 100%, 50% 60%, 0 60%); animation: bnFoulard 1.2s steps(3) infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes bnFoulard { 50% { translate: 0 -2px; rotate: -8deg; } }
@media (prefers-reduced-motion: reduce) { .banniere.bn-crane, .banniere.bn-crane .bn-scene .bn-chef, .bn-foulards i { animation: none; } }

/* ---------- (27/11, Kiko) Rareté 6 « Diamant » : « Fan ultime de … ! » ----------
   Cadre en diamant (facettes blanches et bleu glacier qui scintillent), texte multicolore avec un reflet blanc qui file,
   paillettes de diamant tout autour, couronne en diamant. Tout reste en pixels nets. */
.titre.r6 { border: 3px solid transparent; color: #fff; padding: 3px 9px 4px; overflow: visible;
  background: repeating-linear-gradient(135deg, #0b2a66 0 6px, #0e357e 6px 12px) padding-box,
    linear-gradient(90deg, #ffffff, #9ff0ff, #5ab8ff, #ffffff, #ffb8f0, #9ff0ff, #ffffff) border-box;
  background-size: 100% 100%, 300% 100%; animation: ttArc 2.2s linear infinite;
  box-shadow: 0 0 0 1px #06183e, 0 0 12px rgba(159,240,255,.85), 0 0 26px rgba(255,184,240,.35), inset 0 0 6px rgba(255,255,255,.25); }
.titre.r6 .tt { color: transparent; -webkit-background-clip: text; background-clip: text; text-shadow: none;
  background-image: linear-gradient(90deg, #ff8a8a, #ffd36a, #fff7a0, #ffffff, #8affb8, #8ae8ff, #b8a8ff, #ffa8ec, #ff8a8a); background-size: 300% 100%;
  animation: ttFile 2.2s linear infinite; filter: drop-shadow(0 1px 0 #06081a) drop-shadow(0 0 2px rgba(255,255,255,.6)); }
.titre.r6 .tt-cr { width: 18px; height: 13px; filter: drop-shadow(0 0 3px #bff4ff); animation: eb-dia-brille 2.2s ease-in-out infinite; }
.titre.r6 .tt-et { background: #ffffff; animation-duration: 1.1s; }
.titre .tt-pa { position: absolute; width: 4px; height: 4px; background: var(--pc, #fff); transform: rotate(45deg) scale(0); pointer-events: none;
  box-shadow: 0 0 4px var(--pc, #fff); animation: ttPa 1.6s steps(4) infinite; }
@keyframes ttPa { 0% { transform: rotate(45deg) scale(0); } 25% { transform: rotate(45deg) scale(1.2); } 50% { transform: rotate(45deg) scale(.6); } 75%, 100% { transform: rotate(45deg) scale(0); } }
.titre.r6.grand { font-size: 22px; padding: 6px 14px 7px; }
.titre.r6.grand .tt-pa { width: 6px; height: 6px; }
.titre-fete.r6 .tf-rar { color: #bff4ff; text-shadow: 0 0 8px #9ff0ff, 0 2px 0 #000; animation: ttHue 2.4s linear infinite; }
.titre-fete.r6 .gu-fete-box { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #5ab8ff, 0 0 60px rgba(159,240,255,.85); }
.titre-fete.r6 .gu-rayons { background: repeating-conic-gradient(rgba(255,255,255,.26) 0 8deg, transparent 8deg 16deg, rgba(159,240,255,.24) 16deg 24deg, transparent 24deg 32deg, rgba(255,184,240,.2) 32deg 40deg, transparent 40deg 48deg); }
.tf-pluie .pl-dia { transform: rotate(45deg); box-shadow: 0 0 6px #ffffff; }
@media (prefers-reduced-motion: reduce) { .titre.r6, .titre.r6 .tt, .titre .tt-pa, .titre.r6 .tt-cr { animation: none !important; } .titre .tt-pa { transform: rotate(45deg) scale(1); } }

/* (27/11, Kiko) fête du titre « Fan ultime » : l'attaque signature débloquée, annoncée avec un éclair de lumière */
.titre-fete .tf-sig { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px auto 10px; padding: 8px 22px 9px;
  border: 2px solid var(--sc, #bfefff); background: linear-gradient(180deg, rgba(10,26,62,.9), rgba(4,10,30,.95)); overflow: hidden;
  box-shadow: 0 0 0 2px #02050f, 0 0 18px color-mix(in srgb, var(--sc, #bfefff) 70%, transparent); animation: tfSig .8s cubic-bezier(.2,1.6,.4,1) .9s both; }
.titre-fete .tf-sig-l { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #bfefff; }
.titre-fete .tf-sig-n { font-size: 26px; color: var(--sc, #fff); text-shadow: 0 2px 0 #000, 0 0 12px var(--sc, #fff); animation: eb-nom .9s steps(6) 1.1s both; }
.titre-fete .tf-sig-eclair { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.85) 50%, transparent 70%); background-size: 250% 100%;
  animation: eb-balaye 1.6s linear 1.3s infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes tfSig { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .titre-fete .tf-sig, .titre-fete .tf-sig-n, .titre-fete .tf-sig-eclair { animation: none !important; } }
