/* (27/11/2026, Kiko) Étoiles bleues (onglet Défis, après les 5 jaunes) et déblocage des attaques signature.
   Bleu cristal : #6fd3ff (clair), #2f8de0 (moyen), #1a4fa8 (contour), #0a1a3e (fond). Tout en pixel art (contours nets). */
:root { --eb: #6fd3ff; --eb2: #2f8de0; --eb-line: #1a4fa8; --eb-fond: #0a1a3e; }
.eb-etoile { display: inline-block; vertical-align: middle; image-rendering: pixelated; }
.eb-etoile.on { filter: drop-shadow(0 0 3px rgba(111,211,255,.75)); }
.eb-rangee { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.eb-t { color: var(--eb); text-shadow: 0 0 6px rgba(111,211,255,.5); }

/* Section de l'onglet Défis */
.eb-bloc { margin-top: 14px; padding: 10px 10px 12px; border-radius: 6px; border: 2px solid var(--eb-line);
  background: linear-gradient(180deg, rgba(47,141,224,.18), rgba(10,26,62,.6) 60%); box-shadow: inset 0 0 0 1px #02050f, 0 0 14px rgba(47,141,224,.25);
  position: relative; overflow: hidden; }
.eb-bloc::before { content: ''; position: absolute; inset: -40% -10%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(180,235,255,.10) 50%, transparent 60%); animation: eb-reflet 5.5s linear infinite; }
@keyframes eb-reflet { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.eb-bloc h3 { margin: 0 0 2px; color: var(--eb); display: flex; align-items: center; flex-wrap: wrap; }
.eb-intro { margin: 0 0 6px; font-size: 15px; }
.eb-cache { border-style: dashed; opacity: .9; }
.eb-case { border-color: var(--eb-line); background: linear-gradient(180deg, rgba(47,141,224,.12), var(--panel2) 70%); }
.eb-case.ok { border-color: var(--eb); background: linear-gradient(180deg, rgba(111,211,255,.22), var(--panel2) 70%); }
.eb-aide { font-size: 14px; color: var(--dim); line-height: 1.15; }
.eb-bar > i, .eb-case.ok .eb-bar > i { background: linear-gradient(180deg, #dff6ff, var(--eb) 45%, var(--eb2)); }
.eb-pal span.on { background: var(--eb); box-shadow: 0 0 0 1px var(--eb-line); }
.eb-prochaine { background: rgba(111,211,255,.08); border-color: var(--eb-line); }
.eb-tout { color: var(--eb); text-align: center; margin: 6px 0 0; }

/* État de la signature (onglets Défis et Capacités) */
.eb-sig { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 4px 0 8px; border-radius: 6px; font-size: 17px;
  border: 1px solid var(--eb-line); background: rgba(10,26,62,.7); }
.eb-sig .eb-manque { color: var(--eb); }
.eb-sig.ok { border-color: var(--eb); background: linear-gradient(90deg, rgba(111,211,255,.22), rgba(10,26,62,.7)); animation: eb-pulse 2.4s ease-in-out infinite; }
@keyframes eb-pulse { 50% { box-shadow: 0 0 12px rgba(111,211,255,.55); } }

/* Fête d'une étoile bleue : bandeau en haut, l'étoile tombe et se brise en éclats */
.eb-fete { position: fixed; left: 50%; top: 12%; transform: translateX(-50%); z-index: 9000; pointer-events: auto; cursor: pointer; }
.eb-fete-boite { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 6px; border: 3px solid var(--eb);
  background: linear-gradient(180deg, #123a7a, var(--eb-fond)); box-shadow: 0 0 0 2px #02050f, 0 0 26px rgba(111,211,255,.6);
  animation: eb-arrive .45s cubic-bezier(.2,1.6,.4,1) both; }
.eb-fete-etoile { animation: eb-tombe .7s cubic-bezier(.3,1.5,.5,1) both, eb-tourne 2.6s linear .7s infinite; }
.eb-fete-txt { display: flex; flex-direction: column; }
.eb-fete-txt b { font-size: 26px; color: var(--eb); text-shadow: 0 2px 0 #02050f; }
.eb-fete-txt span { font-size: 18px; color: var(--txt); }
.eb-fete.sort { animation: eb-sort .35s ease-in both; }
@keyframes eb-arrive { from { transform: translateY(-60px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes eb-tombe { 0% { transform: translateY(-120px) rotate(-200deg) scale(1.6); opacity: 0; } 70% { opacity: 1; } 100% { transform: none; } }
@keyframes eb-tourne { 50% { transform: scale(1.12); filter: brightness(1.4); } }
@keyframes eb-sort { to { transform: translateY(-40px); opacity: 0; } }

/* Grande animation : signature débloquée */
.eb-deblo { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(26,79,168,.55), rgba(2,5,15,.92) 65%); animation: eb-voile .5s ease-out both; }
.eb-deblo-rayons { position: absolute; width: 160vmax; height: 160vmax; left: 50%; top: 45%; margin: -80vmax 0 0 -80vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(111,211,255,.16) 0 6deg, transparent 6deg 18deg); animation: eb-rayons 14s linear infinite; }
.eb-deblo-eclats { position: absolute; left: 50%; top: 45%; pointer-events: none; }
.eb-deblo-eclats i { position: absolute; width: 8px; height: 8px; background: var(--eb); box-shadow: 0 0 8px var(--eb-col, var(--eb));
  transform: rotate(var(--a)) translateY(0); animation: eb-eclat 1.1s cubic-bezier(.1,.8,.3,1) var(--d) both; }
.eb-deblo-eclats i:nth-child(3n) { background: var(--eb-col, #fff); width: 6px; height: 6px; }
.eb-deblo-boite { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 28px 16px; max-width: min(560px, 92vw);
  border-radius: 8px; border: 3px solid var(--eb); background: linear-gradient(180deg, #14408a, var(--eb-fond) 70%); text-align: center;
  box-shadow: 0 0 0 3px #02050f, 0 0 40px rgba(111,211,255,.65); animation: eb-boite .7s cubic-bezier(.2,1.5,.4,1) .25s both; }
.eb-deblo-ruban { margin-top: -34px; padding: 6px 18px; background: linear-gradient(180deg, var(--eb), var(--eb2)); color: #04112c; font-size: 22px;
  border: 2px solid #02050f; border-radius: 4px; box-shadow: 0 3px 0 #02050f; white-space: nowrap; }
.eb-deblo-pk { width: 96px; height: 96px; image-rendering: pixelated; border: 2px solid var(--eb-line); border-radius: 4px; background: #02050f;
  animation: eb-pk 1.6s ease-in-out .9s infinite; }
.eb-deblo-nom { font-size: 40px; line-height: 1; text-shadow: 0 3px 0 #02050f, 0 0 18px currentColor; animation: eb-nom .9s steps(6) .6s both; }
.eb-deblo-qui { font-size: 18px; color: var(--txt); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.eb-deblo-aide { margin: 0; color: var(--dim); font-size: 16px; }
.eb-deblo.sort { animation: eb-sort-voile .4s ease-in both; }
@keyframes eb-voile { from { opacity: 0; } }
@keyframes eb-rayons { to { transform: rotate(360deg); } }
@keyframes eb-eclat { from { transform: rotate(var(--a)) translateY(0) scale(1.4); opacity: 1; } to { transform: rotate(var(--a)) translateY(-46vmin) scale(.4); opacity: 0; } }
@keyframes eb-boite { from { transform: scale(.4) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes eb-nom { from { letter-spacing: .6em; opacity: 0; } to { letter-spacing: 0; opacity: 1; } }
@keyframes eb-pk { 50% { transform: translateY(-5px); } }
@keyframes eb-sort-voile { to { opacity: 0; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .eb-bloc::before, .eb-deblo-rayons, .eb-deblo-eclats, .eb-sig.ok, .eb-fete-etoile, .eb-deblo-pk { animation: none !important; }
}
.calme .eb-deblo-rayons, .calme .eb-deblo-eclats { display: none; }
@media (max-width: 700px) { .eb-deblo-nom { font-size: 30px; } .eb-fete-txt b { font-size: 20px; } }

/* (27/11) Couronne en diamant (5 étoiles bleues + Pokémon à 100 %) : dans les listes, la fiche, et sa grande fête */
.couronne-diamant { image-rendering: pixelated; vertical-align: middle; }
.crown.diamant, .crown-inline.diamant { display: inline-flex; filter: drop-shadow(0 0 3px rgba(143,230,255,.9)); animation: eb-dia-brille 2.2s ease-in-out infinite; }
@keyframes eb-dia-brille { 50% { filter: drop-shadow(0 0 7px rgba(191,239,255,1)) brightness(1.25); } }
.eb-dia-scene { position: relative; width: 120px; height: 128px; display: flex; align-items: flex-end; justify-content: center; }
.eb-dia-scene .eb-deblo-pk { width: 96px; height: 96px; }
.eb-dia-couronne { position: absolute; left: 50%; top: 0; transform: translateX(-50%); filter: drop-shadow(0 0 10px rgba(143,230,255,.9));
  animation: eb-dia-tombe .8s cubic-bezier(.5,0,.6,1.5) .35s both, eb-dia-brille 2.2s ease-in-out 1.2s infinite; }
@keyframes eb-dia-tombe { from { transform: translate(-50%, -160px) rotate(-12deg) scale(1.4); opacity: 0; } 60% { opacity: 1; } to { transform: translate(-50%, -6px); } }
.eb-diamant .eb-deblo-boite { border-color: #bfefff; background: linear-gradient(180deg, #1d5aa8, #0a1a3e 70%); box-shadow: 0 0 0 3px #02050f, 0 0 46px rgba(191,239,255,.75); }
.eb-diamant .eb-deblo-ruban { background: linear-gradient(180deg, #ffffff, #8fe6ff); }
.eb-dia-nom { color: #e9fbff; }
.eb-diamant .eb-deblo-eclats i { background: #e9fbff; }
.eb-diamant .eb-deblo-eclats i:nth-child(4n) { background: #ff7ad8; }
@media (prefers-reduced-motion: reduce) { .eb-dia-couronne, .crown.diamant, .crown-inline.diamant { animation: none !important; } }

/* (27/11, Kiko) Onglet Capacités : la case de la signature de fin de jeu, juste sous son attaque de base. Elle BRILLE à la
   couleur du type (--tc) : contour lumineux qui respire, reflet qui passe, petites étincelles. Verrouillée : cadenas et
   « Niv. 100 + 5 étoiles bleues » (survol : ce qu'il manque). */
.cap-mv.cap-sigfin { position: relative; overflow: hidden; border: 2px solid var(--tc); margin: 2px 0 6px 18px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 30%, #0b1430), #0b1430 75%);
  box-shadow: 0 0 8px var(--tc), inset 0 0 10px color-mix(in srgb, var(--tc) 40%, transparent); animation: capsig-pulse 2.2s ease-in-out infinite; }
.cap-mv.cap-sigfin::before { content: ''; position: absolute; left: -14px; top: 50%; width: 10px; height: 2px; background: var(--tc); box-shadow: 0 0 6px var(--tc); }
.cap-mv.cap-sigfin b { color: #fff; text-shadow: 0 0 6px var(--tc), 0 0 2px var(--tc); }
.cap-sigfin-t { color: var(--tc); font-weight: 700; filter: brightness(1.35); }
.cap-sigfin-c { color: #cfe6ff; font-size: 15px; }
.cap-mv.cap-sigfin.verrou { cursor: help; }
.cap-mv.cap-sigfin.verrou .cap-sigfin-c { color: #8fd4ff; }
.cap-mv.cap-sigfin.ok .cap-sigfin-c { color: #ffe27a; }
.cap-sigfin-brille { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.38) 48%, transparent 60%),
    radial-gradient(circle at 12% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 63% 75%, #fff 0 1px, transparent 2px), radial-gradient(circle at 88% 25%, #fff 0 1px, transparent 2px);
  background-size: 250% 100%, 100% 100%, 100% 100%, 100% 100%; background-repeat: no-repeat; animation: capsig-reflet 2.8s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes capsig-pulse { 50% { box-shadow: 0 0 16px var(--tc), inset 0 0 18px color-mix(in srgb, var(--tc) 55%, transparent); } }
@keyframes capsig-reflet { 0% { background-position: 130% 0, 0 0, 0 0, 0 0; opacity: .7; } 50% { opacity: 1; } 100% { background-position: -40% 0, 0 0, 0 0, 0 0; opacity: .7; } }
/* (3/12, Kiko A14) verrouillée : barrée de deux éclairs bleus qui crépitent ; bouton « Essayer » (terrain d'entraînement) */
.cap-sig-eclairs { position: absolute; inset: 0; pointer-events: none; opacity: .75; mix-blend-mode: screen;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath d='M0 30 L40 22 L36 28 L80 14 L76 22 L120 10 L116 18 L160 6 L156 14 L200 4' fill='none' stroke='%2360c8ff' stroke-width='3'/%3E%3Cpath d='M0 30 L40 22 L36 28 L80 14 L76 22 L120 10 L116 18 L160 6 L156 14 L200 4' fill='none' stroke='%23e8f8ff' stroke-width='1'/%3E%3Cpath d='M0 8 L50 18 L46 12 L100 26 L96 20 L150 32 L146 26 L200 36' fill='none' stroke='%233a8aff' stroke-width='2' opacity='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 3px #60c8ff); animation: capsig-crepite 1.6s steps(1) infinite; }
@keyframes capsig-crepite { 0%, 100% { opacity: .75; } 40% { opacity: .35; } 45% { opacity: .9; } 70% { opacity: .55; } }
/* (4/12, Kiko) Verrouillée = COMPLÈTEMENT bloquée : la case s'éteint (grise, plus de lueur du type), le tonnerre bleu la transperce
   (éclairs plus forts + une décharge blanche qui court le long de l'éclair, de gauche à droite). Débloquée : la case retrouve la couleur
   du type et le tonnerre RESTE, plus vif et plus rapide, comme une énergie qui la parcourt. */
.cap-mv.cap-sigfin.verrou { border-color: #34466a; background: linear-gradient(90deg, #18213a, #0b1020 75%);
  box-shadow: inset 0 0 16px rgba(0,0,0,.65), 0 0 6px rgba(96,200,255,.35); animation: capsig-bloque 1.6s steps(1) infinite; }
.cap-mv.cap-sigfin.verrou > :not(.cap-sig-eclairs):not(.cap-sig-foudre):not(.cap-sig-essai) { filter: grayscale(.9) brightness(.55); }
.cap-mv.cap-sigfin.verrou .cap-sigfin-brille { display: none; }
.cap-mv.cap-sigfin.verrou .cap-sig-eclairs { opacity: .95; }
@keyframes capsig-bloque { 0%, 100% { box-shadow: inset 0 0 16px rgba(0,0,0,.65), 0 0 6px rgba(96,200,255,.35); } 45% { box-shadow: inset 0 0 16px rgba(0,0,0,.65), 0 0 12px rgba(150,220,255,.8); } }
.cap-mv.cap-sigfin.ok .cap-sig-eclairs { opacity: .6; filter: drop-shadow(0 0 4px #9fe0ff); animation-duration: .9s; }
.cap-sig-foudre { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L40 22 L36 28 L80 14 L76 22 L120 10 L116 18 L160 6 L156 14 L200 4' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Cpath d='M0 8 L50 18 L46 12 L100 26 L96 20 L150 32 L146 26 L200 36' fill='none' stroke='%23fff' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L40 22 L36 28 L80 14 L76 22 L120 10 L116 18 L160 6 L156 14 L200 4' fill='none' stroke='%23fff' stroke-width='5'/%3E%3Cpath d='M0 8 L50 18 L46 12 L100 26 L96 20 L150 32 L146 26 L200 36' fill='none' stroke='%23fff' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: linear-gradient(90deg, transparent 0 40%, #3a8aff 44%, #e8f8ff 49%, #fff 50%, #9fe0ff 53%, transparent 58% 100%) no-repeat;
  background-size: 300% 100%; animation: capsig-decharge 2.2s linear infinite; }
.cap-mv.cap-sigfin.ok .cap-sig-foudre { animation-duration: 1.1s; filter: drop-shadow(0 0 3px #fff); }
@keyframes capsig-decharge { 0% { background-position: 100% 0; opacity: 1; } 70% { background-position: 0% 0; opacity: 1; } 71%, 100% { background-position: 0% 0; opacity: 0; } }
.cap-sig-essai { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  color: #0b1430; background: linear-gradient(#bfe6ff, #60c8ff); border: 2px solid #e8f8ff; border-radius: 6px; padding: 2px 8px; margin-left: 6px; box-shadow: 0 0 8px #60c8ff; }
.cap-sig-essai:hover, .cap-sig-essai:focus-visible { filter: brightness(1.15); box-shadow: 0 0 14px #9fe0ff; }
.cap-sig-essai .entr-ico { width: 14px; height: 14px; }
/* (4/12, Kiko) 4 versions à choisir (html[data-sigv], ?sigv=1..4) : UN SEUL éclair bleu, de gauche à droite, qui s'illumine.
   Verrouillée : la case reste éteinte (grise, règles plus haut). Débloquée : couleurs du type + éclair allumé.
   1 « La frappe »  : verrouillée, l'éclair frappe de gauche à droite puis s'efface ; débloquée, il reste allumé et respire.
   2 « L'allumage » : verrouillée, éclair éteint (bleu nuit) ; débloquée, il s'allume et une lumière court dessus de gauche à droite.
   3 « Le néon »    : verrouillée, néon cassé qui grésille ; débloquée, néon plein, halo bleu sur toute la case.
   4 « L'orage »    : verrouillée, une étincelle à gauche seulement ; débloquée, l'éclair traverse avec un flash et reste allumé. */
:root {
  --sig-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 24 L52 17 L46 25 L104 12 L98 21 L156 9 L150 18 L200 14' fill='none' stroke='%2360c8ff' stroke-width='5' stroke-linejoin='bevel'/%3E%3Cpath d='M0 24 L52 17 L46 25 L104 12 L98 21 L156 9 L150 18 L200 14' fill='none' stroke='%23f0fbff' stroke-width='1.8' stroke-linejoin='bevel'/%3E%3C/svg%3E");
  --sig-bolt-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 24 L52 17 L46 25 L104 12 L98 21 L156 9 L150 18 L200 14' fill='none' stroke='%2322406e' stroke-width='5' stroke-linejoin='bevel'/%3E%3Cpath d='M0 24 L52 17 L46 25 L104 12 L98 21 L156 9 L150 18 L200 14' fill='none' stroke='%233d6296' stroke-width='1.4' stroke-linejoin='bevel'/%3E%3C/svg%3E");
  --sig-bolt-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 24 L52 17 L46 25 L104 12 L98 21 L156 9 L150 18 L200 14' fill='none' stroke='%23fff' stroke-width='7' stroke-linejoin='bevel'/%3E%3C/svg%3E");
}
html:not([data-sigv="0"]) .cap-sig-eclairs { background: var(--sig-bolt) center / 100% 100% no-repeat; animation: none; opacity: 1; filter: drop-shadow(0 0 4px #60c8ff); }
html:not([data-sigv="0"]) .cap-sig-foudre { display: none; }
/* 1 « La frappe » */
html[data-sigv="1"] .cap-sigfin.verrou .cap-sig-eclairs { animation: sigv-frappe 2.6s ease-out infinite; }
html[data-sigv="1"] .cap-sigfin.ok .cap-sig-eclairs { animation: sigv-respire 1.8s ease-in-out infinite; }
@keyframes sigv-frappe { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 14% { clip-path: inset(0 0 0 0); opacity: 1; filter: drop-shadow(0 0 10px #bfe8ff) brightness(1.6); }
  30% { opacity: 1; filter: drop-shadow(0 0 4px #60c8ff); } 60%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes sigv-respire { 50% { filter: drop-shadow(0 0 10px #9fe0ff) brightness(1.35); } }
/* 2 « L'allumage » */
html[data-sigv="2"] .cap-sigfin.verrou .cap-sig-eclairs { background-image: var(--sig-bolt-off); filter: none; opacity: .9; }
html[data-sigv="2"] .cap-sigfin.ok .cap-sig-eclairs { filter: drop-shadow(0 0 6px #60c8ff); }
html[data-sigv="2"] .cap-sigfin.ok .cap-sig-foudre { display: block; -webkit-mask: var(--sig-bolt-mask) center / 100% 100% no-repeat; mask: var(--sig-bolt-mask) center / 100% 100% no-repeat;
  background: linear-gradient(90deg, transparent 0 42%, #9fe0ff 46%, #fff 50%, #9fe0ff 54%, transparent 58% 100%) no-repeat; background-size: 300% 100%; animation: capsig-decharge 1.5s linear infinite; filter: drop-shadow(0 0 4px #fff); }
/* 3 « Le néon » */
html[data-sigv="3"] .cap-sigfin.verrou .cap-sig-eclairs { animation: sigv-gresille 2.2s steps(1) infinite; }
html[data-sigv="3"] .cap-sigfin.ok .cap-sig-eclairs { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px #60c8ff) drop-shadow(0 0 16px #3a8aff); }
html[data-sigv="3"] .cap-mv.cap-sigfin.ok { box-shadow: 0 0 14px #60c8ff, inset 0 0 18px rgba(96,200,255,.45); border-color: #9fe0ff; animation: none; }
@keyframes sigv-gresille { 0%, 100% { opacity: .22; } 8% { opacity: .75; } 10% { opacity: .2; } 46% { opacity: .3; } 48% { opacity: .85; } 51% { opacity: .25; } 53% { opacity: .6; } 55% { opacity: .22; } }
/* 4 « L'orage » */
html[data-sigv="4"] .cap-sigfin.verrou .cap-sig-eclairs { background: radial-gradient(circle at 3% 60%, #fff 0 2px, #60c8ff 3px, rgba(96,200,255,.4) 7px, transparent 12px) no-repeat; animation: sigv-etincelle 1.1s steps(2) infinite; }
html[data-sigv="4"] .cap-sigfin.ok .cap-sig-eclairs { animation: sigv-orage 3.2s ease-out infinite; }
html[data-sigv="4"] .cap-sigfin.ok .cap-sig-foudre { display: block; -webkit-mask: none; mask: none; background: rgba(200,235,255,.55); animation: sigv-flash 3.2s ease-out infinite; }
@keyframes sigv-etincelle { 50% { opacity: .35; transform: scale(.85); } }
@keyframes sigv-orage { 0% { clip-path: inset(0 100% 0 0); } 10% { clip-path: inset(0 0 0 0); filter: drop-shadow(0 0 12px #fff) brightness(1.8); } 30%, 100% { clip-path: inset(0 0 0 0); filter: drop-shadow(0 0 5px #60c8ff); } }
@keyframes sigv-flash { 0%, 8% { opacity: 0; } 11% { opacity: 1; } 26%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cap-mv.cap-sigfin, .cap-sigfin-brille, .cap-sig-eclairs, .cap-sig-foudre { animation: none !important; } }
/* (2/12, Kiko) « attaque signature ou attaque de base : il faut choisir » : bandeau sous les attaques emportées */
.cap-choix-sig { margin: 6px 0 2px; padding: 6px 10px; border: 2px solid var(--tc, #8fd4ff); border-radius: 8px; background: rgba(20, 30, 60, .55); color: #e8f2ff; font-size: 15px; line-height: 1.3; }
.cap-choix-sig b { color: #ffe27a; margin-right: 4px; }
.cap-choix-sig .cap-choix-fait { color: #ffe27a; }
.cap-choix-sig.flash { animation: cap-choix-flash .9s ease-out 1; }
@keyframes cap-choix-flash { 0% { box-shadow: 0 0 0 0 var(--tc, #8fd4ff); background: rgba(255, 226, 122, .35); } 100% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); background: rgba(20, 30, 60, .55); } }
@media (prefers-reduced-motion: reduce) { .cap-choix-sig.flash { animation: none; } }
/* (27/11, Kiko) Rang « Prismatique » (5 étoiles bleues, couronne en diamant) : cadre arc-en-ciel (cadre fin en diamant de la ROM,
   recoloré : tools/etoiles-bleues/cadre_prisme.py), lueur qui change de couleur, étincelles de toutes les couleurs. */
.eq-cell.rk-prisme { border-image-source: url('assets/ui/cadres/cadre1_prisme_fin.png'); animation: rk-prisme 3s linear infinite; }
.avatar.rk-prisme, .rang-pastille.rk-prisme { border-image-source: url('assets/ui/cadres/cadre1_prisme_fin.png'); animation: rk-prisme 3s linear infinite; }
.rang-pastille.rk-prisme { color: #fff; text-shadow: 0 0 6px #ff9ae8, 0 1px 0 #000; }
@keyframes rk-prisme { 0% { box-shadow: 0 0 10px rgba(255,90,140,.65); } 25% { box-shadow: 0 0 10px rgba(255,220,90,.65); } 50% { box-shadow: 0 0 10px rgba(90,255,170,.65); }
  75% { box-shadow: 0 0 10px rgba(90,170,255,.7); } 100% { box-shadow: 0 0 10px rgba(255,90,140,.65); } }
.eq-cell.rk-prisme::after { content: ''; position: absolute; left: -10px; bottom: -10px; width: 18px; height: 18px; pointer-events: none; image-rendering: pixelated;
  background: url('assets/ui/icones/etincelle.png') no-repeat 0 0 / 400% 100%; animation: pxScint 1.4s steps(1, end) infinite, eb-teinte 2.4s linear infinite; }
.eq-cell.rk-prisme::before { content: ''; position: absolute; right: -9px; top: -9px; width: 14px; height: 14px; pointer-events: none; image-rendering: pixelated; z-index: 2;
  background: url('assets/ui/icones/etincelle.png') no-repeat 0 0 / 400% 100%; animation: pxScint 1.4s steps(1, end) .7s infinite, eb-teinte 2.4s linear .7s infinite; }
@keyframes eb-teinte { to { filter: hue-rotate(360deg) saturate(2); } }
@media (prefers-reduced-motion: reduce) { .eq-cell.rk-prisme, .avatar.rk-prisme, .rang-pastille.rk-prisme, .eq-cell.rk-prisme::after, .eq-cell.rk-prisme::before { animation: none !important; } }
/* (27/11, Kiko) Étoiles bleues qui brillent comme du diamant : un éclat blanc passe en biais sur les facettes (pixels .gl, décalés),
   la lueur respire. Les 5 gagnées : étoiles PRISMATIQUES, l'arc-en-ciel tourne (chacune décalée), lueur multicolore. */
.eb-etoile.on { animation: eb-souffle 2.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .35s); }
.eb-etoile .gl { opacity: 0; animation: eb-gl 2.6s steps(1, end) infinite; }
@keyframes eb-gl { 0%, 5% { opacity: 1; } 6%, 100% { opacity: 0; } }
@keyframes eb-souffle { 0%, 100% { filter: drop-shadow(0 0 2px rgba(111,211,255,.6)); } 50% { filter: drop-shadow(0 0 5px rgba(191,239,255,1)) brightness(1.15); } }
.eb-etoile.prisme { animation: eb-prisme 2.4s linear infinite; animation-delay: calc(var(--d, 0) * -.48s); }
.eb-etoile.prisme .gl { animation-duration: 1.3s; }
@keyframes eb-prisme {
  0% { filter: hue-rotate(0deg) saturate(1.6) brightness(1.15) drop-shadow(0 0 4px #ff7ad8); }
  25% { filter: hue-rotate(90deg) saturate(1.6) brightness(1.15) drop-shadow(0 0 4px #ffd36a); }
  50% { filter: hue-rotate(180deg) saturate(1.6) brightness(1.15) drop-shadow(0 0 4px #6aff9a); }
  75% { filter: hue-rotate(270deg) saturate(1.6) brightness(1.15) drop-shadow(0 0 4px #6ad8ff); }
  100% { filter: hue-rotate(360deg) saturate(1.6) brightness(1.15) drop-shadow(0 0 4px #ff7ad8); } }
.eb-rangee.prisme { position: relative; padding: 0 2px; }
.eb-rangee.prisme::after { content: ''; position: absolute; inset: -3px; pointer-events: none; border-radius: 3px;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%) no-repeat; background-size: 250% 100%; animation: eb-balaye 2.2s linear infinite; mix-blend-mode: screen; }
@keyframes eb-balaye { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.eb-fete.prisme .eb-fete-boite { border-color: #fff; background: linear-gradient(180deg, #2a1660, #0a1a3e); box-shadow: 0 0 0 2px #02050f, 0 0 30px rgba(255,150,230,.7), 0 0 50px rgba(120,220,255,.5); }
.eb-fete.prisme .eb-fete-txt b { background: linear-gradient(90deg, #ff8a8a, #ffd36a, #8affb8, #8ae8ff, #b8a8ff, #ffa8ec, #ff8a8a); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: ttFile 2.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .eb-etoile.on, .eb-etoile.prisme, .eb-etoile .gl, .eb-rangee.prisme::after { animation: none !important; } }
/* (27/11, Kiko) couronne en diamant « voire prismatique » : dans les listes, la fiche et les titres, ses couleurs tournent aussi */
.crown.diamant svg, .crown-inline.diamant svg, .titre.r6 .tt-cr svg, .eb-dia-couronne svg { animation: eb-prisme 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .crown.diamant svg, .crown-inline.diamant svg, .titre.r6 .tt-cr svg, .eb-dia-couronne svg { animation: none !important; } }
/* (27/11, Kiko) récompenses des paliers des étoiles bleues */
.eb-rw { color: var(--dim); font-size: 15px; }
.eb-rec-i { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; white-space: nowrap; }
.eb-rec-i b { color: #bfefff; }
.eb-rec-i small { color: var(--dim); }
.eb-rec-i .gel-ico, .eb-rec-i .pxi { width: 18px; height: 18px; image-rendering: pixelated; }
.eb-rec-boite { flex-direction: column; align-items: stretch; gap: 6px; min-width: 360px; }
.eb-rec-liste { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.eb-rec-l { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 3px 6px; background: rgba(111,211,255,.1); border: 1px solid var(--eb-line); border-radius: 4px;
  animation: eb-arrive .4s cubic-bezier(.2,1.6,.4,1) both; }
.eb-rec-l:nth-child(2) { animation-delay: .12s; } .eb-rec-l:nth-child(3) { animation-delay: .24s; } .eb-rec-l:nth-child(4) { animation-delay: .36s; } .eb-rec-l:nth-child(5) { animation-delay: .48s; }
.eb-rec-d { color: var(--eb); }
.eb-rec-ct { color: #ffd35c; }
/* étoiles bleues dans l'en-tête de la fiche, sous les jaunes */
.fi-et-bleues { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px; }
.fi-et-bleues .eb-rangee { margin-left: 0; }
/* (28/11) en-tête : les étoiles bleues prennent la place des jaunes, une à une ; même taille que les jaunes */
.fi-et .stars.avec-bleues { display: inline-flex; align-items: center; gap: 0; }
.fi-et .stars.avec-bleues .eb-etoile { margin: 0 1px; vertical-align: -4px; }
.cap-mv.cap-remplacee { opacity: .6; } .cap-mv.cap-remplacee .cap-in span { color: #ffe27a; font-style: italic; }

/* (2/12 soir, Kiko) 5e defi (Abysses, mode Infini) : sous les 4 autres, sur toute la largeur */
.eb-case.eb-large { grid-column: 1 / -1; }
/* (4/12) versions 1-4 : l'éclair passe SOUS les textes de la case (le nom de l'attaque reste lisible) */
html:not([data-sigv="0"]) .cap-mv.cap-sigfin > :not(i):not(.cap-sig-essai) { position: relative; z-index: 1; }
