/* Refonte des attaques : emplacements, cartes d’amélioration, onglet Capacités, niveau permanent. */
.mv.locked.planned { opacity: .72; border-style: dashed; }
.mv.locked.planned .orb { filter: saturate(.55) brightness(.8); }
.mv.locked.planned .sub { color: var(--gold); }
.mv.unlock { animation: slotOpen .9s ease-out; }
@keyframes slotOpen { 0% { transform: scale(1.18); box-shadow: 0 0 0 3px #fff, 0 0 30px var(--gold); filter: brightness(2); } 60% { transform: scale(.98); } 100% { transform: none; box-shadow: none; filter: none; } }
.pick.legend { background-image: linear-gradient(115deg, transparent 30%, rgba(255,230,140,.28) 45%, transparent 60%), linear-gradient(180deg, #3a2a08, #1a1004) !important; background-size: 250% 100%, 100% 100%; animation: pop .3s, shine 1.6s linear infinite; }
.pick.legend .ic .orb-big { box-shadow: 0 0 18px #ffcb3d, 0 0 0 2px #fff6c8; color: #fff6c8; animation: legendPulse 1.2s ease-in-out infinite; }
@keyframes legendPulse { 50% { transform: scale(1.12) rotate(8deg); } }
.cap-tabs { gap: 6px; margin: 6px 0 4px; }
.cap-tabs .btn { font-size: 16px; padding: 4px 10px; }
.cap-head { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.cap-lvl { font-size: 18px; color: var(--dim); white-space: nowrap; }
.cap-lvl b { font-size: 30px; color: var(--gold); text-shadow: 0 2px 0 #6b3b00; }
.cap-xp { height: 9px; }
.cap-xp i { background: linear-gradient(180deg, #fff6c8, var(--xp)); transform-origin: left; transition: transform .6s; }
.cap-sig { font-size: 16px; color: var(--gold); margin: 2px 0; }
.cap-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cap-slot { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 2px solid var(--tc); border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 28%, transparent), rgba(8,15,40,.85) 70%); cursor: pointer; font-size: 17px; min-height: 44px; transition: transform .12s; }
.cap-slot:hover { transform: translateY(-2px); }
.cap-slot.sel { box-shadow: 0 0 0 2px #fff, 0 0 14px var(--gold); animation: nudge .5s; }
.cap-slot.empty { border-style: dashed; opacity: .75; }
.cap-slot .muted { font-size: 13px; }
/* (5/11) le nom tient sur une ligne : l'emplacement garde sa hauteur quand on change d'attaque (la liste dessous ne saute plus) */
.cap-slot > .grow { min-width: 0; } .cap-slot b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-n { width: 20px; height: 20px; border-radius: 50%; background: var(--tc); color: #0a0820; display: grid; place-items: center; font-size: 14px; flex: none; }
.cap-x { position: absolute; top: 1px; right: 2px; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 13px; padding: 0 3px; }
.cap-x:hover { color: var(--bad); }
/* 31/10 (demande de Kiko) : plus de cadre qui défile dans la fiche (barres et flèches), la liste s’affiche en entier. */
.cap-list { display: flex; flex-direction: column; gap: 3px; padding-right: 3px; }
.cap-mv { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-left: 4px solid var(--tc); border-radius: 3px; background: rgba(8,15,40,.7); font-size: 16px; cursor: pointer; transition: background .12s, transform .12s; }
.cap-mv:hover { background: color-mix(in srgb, var(--tc) 22%, rgba(8,15,40,.85)); transform: translateX(2px); }
.cap-mv.on { background: color-mix(in srgb, var(--tc) 30%, rgba(8,15,40,.85)); box-shadow: inset 0 0 0 1px var(--tc); }
.cap-mv.lock { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.cap-mv.sig b { color: var(--gold); }
.cap-mv.nope { animation: lockShake2 .3s; }
@keyframes lockShake2 { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cap-lv { width: 52px; color: var(--dim); font-size: 14px; flex: none; }
.cap-ty { width: 62px; font-size: 12px; color: var(--tc); flex: none; text-transform: uppercase; letter-spacing: 1px; }
.cap-in { font-size: 12px; white-space: normal; text-align: right; min-width: 0; }
.cap-eq { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #3a2400; display: grid; place-items: center; font-size: 12px; flex: none; }
.cap-eq.vide { visibility: hidden; }
/* (8/11, bug de Louh) Pastilles numérotées : l'ombre noire du texte (0 2px, héritée de .box) dessinait un 2e chiffre sous le
   premier dans ces petits ronds clairs. Un seul chiffre net, centré. */
.cap-n, .cap-eq { text-shadow: none; line-height: 1; font-variant-numeric: tabular-nums; }
.lvl-res { display: flex; align-items: center; gap: 10px; }
.lvl-from { color: var(--dim); }
.lvl-arrow { color: var(--gold); animation: nudge .8s infinite; }
.lvl-to { color: var(--txt); }
.lvl-to.up { color: var(--gold); font-size: 30px; text-shadow: 0 2px 0 #6b3b00; animation: grow .5s .5s both; }
.lvl-res .bar { max-width: 260px; }
.lvl-new { margin-top: 4px; font-size: 18px; animation: pop .4s .8s both; }

/* Bonbons Exp (onglet Capacités) */
.cap-bon { margin: 6px 0; padding: 6px 8px; border: 2px solid rgba(255, 211, 92, .35); border-radius: 4px; background: rgba(40, 30, 10, .35); }
.cap-bon-t { font-size: 16px; margin-bottom: 4px; }
.cap-bon-l { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-bonb { display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; font: inherit; font-size: 16px; color: #e8f0ff; cursor: pointer;
  background: rgba(10, 16, 40, .8); border: 2px solid rgba(255, 255, 255, .2); border-radius: 4px; }
.cap-bonb img { width: 32px; height: 32px; image-rendering: pixelated; }
.cap-bonb.b-s { border-color: rgba(96, 172, 255, .7); }
.cap-bonb.b-m { border-color: rgba(255, 200, 64, .7); }
.cap-bonb.b-xl { border-color: rgba(214, 110, 255, .8); }
.cap-bonb:hover:not([disabled]), .cap-bonb:focus-visible { background: rgba(40, 56, 110, .95); border-color: #fff; }
/* (6/12, Kiko) sans bonbon : les 3 restent bien visibles, grisés (icône de Gagnash en gris, ×0), mais pas cliquables.
   Avant : opacité .45 + gris, presque invisible sur le fond sombre (« ils disparaissent »). */
.cap-bonb[disabled] { cursor: not-allowed; color: #9aa3b8; background: rgba(22, 26, 40, .9); border-color: rgba(150, 160, 185, .4); }
.cap-bonb[disabled] img { filter: grayscale(1) brightness(1.1) contrast(.9); opacity: .85; }
.cap-bonb[disabled] .cap-bon-n { color: #9aa3b8; }
.cap-bonb[disabled] .cap-bon-g { color: #8790a6; }
.cap-bon-n { color: #ffd35c; }
.cap-bon-g { color: #b8c4e0; }
.cap-bon-msg { margin-top: 4px; font-size: 16px; }
.cap-lvl.cap-pop { animation: capPop .5s ease-out; }
@keyframes capPop { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: #ffd35c; } 100% { transform: scale(1); } }
/* 30/10 : schéma des emplacements, fiche d'une attaque, icônes de type, filtre */
.cap-fiche { margin: 8px 0; padding: 8px 10px; border: 2px solid rgba(255, 255, 255, .16); border-radius: 4px; background: rgba(10, 16, 40, .75); min-height: 76px; font-size: 15px; }
.cap-fi-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: #c8d2ee; align-items: center; }
.cap-fi-bar { flex: 0 0 120px; height: 8px; background: rgba(0, 0, 0, .5); border-radius: 2px; overflow: hidden; }
.cap-fi-bar i { display: block; height: 100%; }
.cap-filtre { font-size: 15px; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.cap-x { min-width: 24px; min-height: 24px; }
/* Carte d'amélioration au cadenas (05/11) : toujours 3 cartes ; celles qu'on ne peut pas prendre sont grises, sans relief. */
.pick.verrou { cursor: not-allowed; border-color: #4a5170 !important; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px), linear-gradient(180deg, rgba(34,36,56,.97), rgba(16,16,28,.97)) !important;
  box-shadow: inset 0 0 0 2px #0a0820, inset 0 0 0 3px rgba(120,128,160,.35), 0 10px 30px rgba(0,0,0,.6) !important; }
.pick.verrou::before { opacity: .35; filter: grayscale(1); }
.pick.verrou:hover { transform: none; }
.pick.verrou .verrou-t { color: #9aa3c0; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.pick.verrou b { color: #b8bed4; }
.pick.verrou p { color: #9aa3c0; }
.pick.verrou .k { opacity: .45; }
.pick.verrou.non { animation: pickNon .32s; }
@keyframes pickNon { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } }

/* ---------- Améliorations v3 (8/11, Kiko) : le nom de l'attaque en gros d'abord, très peu de texte, aucune icône ---------- */
.pick.upg-carte { animation: amEntre .42s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes amEntre { 0% { opacity: 0; transform: translateY(26px) scale(.82) rotate(-2deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.pick.upg-carte.legend { animation: amEntre .42s cubic-bezier(.2,1.4,.4,1) both, shine 1.6s linear .5s infinite; }
.pick.upg-carte:hover { transform: translateY(-5px) scale(1.03); }
.pick.upg-v3 { width: 236px; min-height: 186px; padding: 18px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pick .upg-nom { font-size: 40px; line-height: 1; color: color-mix(in srgb, var(--tc) 45%, #fff); text-shadow: 0 2px 0 #000, 0 -1px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 0 12px var(--tc); animation: upgNom 2.6s ease-in-out calc(var(--d, 0ms) + .5s) infinite; }
.pick .upg-nom.upg-moyen { font-size: 32px; }
.pick .upg-nom.upg-long { font-size: 24px; }
/* les étincelles des cartes Épiques et Légendaires : en bas, pour ne pas passer sur la rareté */
.pick.upg-v3.shine::after { top: auto; bottom: 30px; }
/* téléphone : les boutons des émotes et du signal passaient sur la 3e carte */
body.is-touch:has(#h-picks:not(.turbo) .pick) #emote-btn, body.is-touch:has(#h-picks:not(.turbo) .pick) #signal-btn { display: none !important; } /* (19/11) pas en mode turbo : le jeu continue */
@keyframes upgNom { 0%, 70%, 100% { filter: none; } 80% { filter: brightness(1.45); } }
.pick .upg-trait { width: 76%; height: 2px; background: linear-gradient(90deg, transparent, var(--tc), #fff, var(--tc), transparent); box-shadow: 0 0 6px var(--tc); animation: upgTrait .5s ease-out calc(var(--d, 0ms) + .15s) both; }
@keyframes upgTrait { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.pick .upg-ligne { display: flex; gap: 10px; justify-content: center; align-items: baseline; font-size: 16px; }
.pick .upg-rar { color: var(--rc); letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 0 #000; }
.pick .upg-niv { color: var(--gold); text-shadow: 0 2px 0 #000; }
.pick .upg-socle { font-size: 16px; line-height: 1.2; color: #fff; text-shadow: 0 2px 0 #000; }
.pick .upg-socle .upg-lbl { color: #9fb0d8; }
.pick .upg-socle .upg-virg { color: #9fb0d8; }
/* Bonus de rareté (Épique, Légendaire) : un bandeau qui s'ouvre après la carte, puis un reflet qui passe. */
.pick .upg-plus { position: relative; overflow: hidden; width: calc(100% + 8px); margin: 0 -4px; padding: 3px 6px; font-size: 16px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px var(--rc);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 38%, transparent) 20%, color-mix(in srgb, var(--rc) 38%, transparent) 80%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--rc) 75%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--rc) 75%, transparent);
  animation: upgPlus .45s cubic-bezier(.2,1.5,.4,1) calc(var(--d, 0ms) + .32s + var(--j, 0) * .14s) both; }
.pick .upg-plus::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-130%); animation: upgReflet 2.6s ease-in-out calc(var(--d, 0ms) + .9s + var(--j, 0) * .3s) infinite; }
.pick.upg-r4 .upg-plus { color: #fff6c8; }
@keyframes upgPlus { 0% { opacity: 0; transform: scaleX(.2) scaleY(.6); filter: brightness(2.2); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes upgReflet { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.pick.upg-v3 .k { margin-top: auto; }
@media (max-height: 420px) {
  .pick.upg-v3 { width: 196px; min-height: 0; padding: 10px 8px 8px; gap: 4px; }
  .pick .upg-nom { font-size: 32px; } .pick .upg-nom.upg-moyen { font-size: 24px; } .pick .upg-nom.upg-long { font-size: 16px; }
  .pick .upg-plus { padding: 1px 4px; }
}
@media (prefers-reduced-motion: reduce) { .pick.upg-carte, .pick.upg-carte.legend, .pick .upg-nom, .pick .upg-trait, .pick .upg-plus, .pick .upg-plus::after { animation: none !important; } }

/* Immunité du chef aux états : barre jaune sous sa barre de PV */
body #hud .bossbar .bar-imm { height: 0; margin-top: 0; background: #2a2508; overflow: hidden; transition: height .2s, margin .2s; }
body #hud .bossbar .bar-imm.on { height: 5px; margin-top: 2px; box-shadow: inset 0 0 0 1px #0a0f24; }
/* (4/12, idée n° 7 de Kiko) barre jaune plus claire (plus haute, plus vive) et, à droite, les icônes barrées de ce à quoi il résiste */
body #hud .bossbar .imm-ligne { display: flex; align-items: center; gap: 4px; }
body #hud .bossbar .imm-ligne .bar-imm { flex: 1; }
body #hud .bossbar .bar-imm.on { height: 7px; box-shadow: inset 0 0 0 1px #0a0f24, 0 0 4px rgba(255, 214, 46, .55); }
body #hud .bossbar .imm-ic { display: flex; gap: 2px; margin-top: 2px; }
body #hud .bossbar .imm-ic:empty { display: none; }
body #hud .bossbar .imm-ic img { width: 22px; height: 22px; image-rendering: pixelated; }
body #hud .bossbar .bar-imm i { display: block; height: 100%; background: linear-gradient(180deg, #fff6b0 0 35%, #ffd52e 35%); transform-origin: left; transition: transform .25s linear; }
/* (18/11, boîte à idées) la croix ne passe plus sur le nom de l'attaque ; le titre de la liste n'est plus coupé (téléphone) */
.cap-slot:has(.cap-x) { padding-right: 26px; }
.cap-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* (26/11) les deux colonnes restent dans l'écran (téléphone) */
/* (26/11, Kiko) Ce que fait l'attaque (client/js/attaque-genre.js) : petites étiquettes, plusieurs si elle fait plusieurs choses */
.atq-genres { flex: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 3px; }
.atq-genre-t { display: inline-block; padding: 0 5px 1px; border-radius: 4px; font-size: 12px; line-height: 1.2; white-space: nowrap; color: #fff; background: color-mix(in srgb, var(--tc, #8ab) 38%, rgba(4,8,24,.9)); border: 1px solid color-mix(in srgb, var(--tc, #8ab) 75%, #fff 10%); }
.cap-slot .atq-genres { animation: atq-genre-pop .35s ease-out; }
.cap-slot:hover .atq-genre-t { animation: atq-genre-saut .45s ease-out; }
.cap-slot:hover .atq-genre-t + .atq-genre-t { animation-delay: .08s; }
@keyframes atq-genre-pop { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
@keyframes atq-genre-saut { 40% { transform: translateY(-2px); } }
/* une seule ligne : la case garde sa hauteur quand on change d'attaque (la liste en dessous ne bouge pas) ;
   « Prête au départ » se raccourcit avec « … » s'il manque de place */
.atq-sous { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px 5px; min-width: 0; min-height: 19px; } /* même hauteur avec ou sans étiquette (case vide) */
.cap-quand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-slots { container-type: inline-size; }
@container (max-width: 340px) { /* cases étroites (téléphone ; mesure avant le zoom de l’interface) : les étiquettes passent à la ligne */
  .atq-sous { flex-wrap: wrap; }
  .atq-sous .atq-genres { flex: 0 1 auto; min-width: 0; max-width: 100%; }
}
.cap-mv .atq-genres { margin-right: 3px; min-width: 7.2em; }
.cap-liste-tete { flex-wrap: wrap; row-gap: 4px; }
.cap-liste-tete h3 { white-space: nowrap; }
/* ---------- (19/11) Mode turbo : petites cartes en bas (ou en haut), le jeu continue (game.js, renderPicksTurbo) ---------- */
#h-picks.turbo .tb-zone, .turbo-sortie .tb-zone { position: absolute; left: 50%; bottom: 12px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none; transform: translateX(-50%); animation: tbEntreBas .3s cubic-bezier(.2,1.35,.4,1) both; }
#h-picks.turbo.haut .tb-zone, .turbo-sortie.haut .tb-zone { bottom: auto; top: 54px; animation-name: tbEntreHaut; }
#hud:has(#h-boss:not(.hidden)) #h-picks.turbo.haut .tb-zone, #hud:has(#h-boss:not(.hidden)) .turbo-sortie.haut .tb-zone { top: 104px; } /* sous la barre du chef */
@keyframes tbEntreBas { from { opacity: 0; transform: translate(-50%, 46px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tbEntreHaut { from { opacity: 0; transform: translate(-50%, -46px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0); } }
.tb-tete { display: flex; align-items: center; gap: 8px; padding: 1px 10px; border-radius: 10px; background: rgba(10,8,32,.82); border: 1px solid var(--gold-line); font-size: 16px; color: var(--gold); text-shadow: 0 2px 0 #000; }
.tb-titre { font-family: 'PMD Font', 'Pixelify', sans-serif; }
.tb-pile { padding: 0 7px; border-radius: 8px; background: var(--gold); color: #2a1600; text-shadow: none; font-weight: bold; animation: tbPile 1.1s ease-in-out infinite; }
@keyframes tbPile { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); box-shadow: 0 0 10px var(--gold); } }
#h-picks .picks.tb-cartes, .turbo-sortie .picks.tb-cartes { position: static; transform: none; animation: none; display: flex; gap: 8px; pointer-events: auto; max-height: none; top: auto; left: auto; }
.pick.tb-carte { width: 176px; padding: 7px 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .93;
  background: var(--stars) 0 0 / 23px 23px, linear-gradient(180deg, rgba(30,24,80,.9), rgba(12,10,40,.9));
  box-shadow: inset 0 0 0 2px #0a0820, 0 0 10px color-mix(in srgb, var(--rc) 45%, transparent), 0 6px 16px rgba(0,0,0,.55);
  animation: tbCarte .34s cubic-bezier(.2,1.4,.4,1) var(--d, 0ms) both; }
.pick.tb-carte.legend { animation: tbCarte .34s cubic-bezier(.2,1.4,.4,1) var(--d, 0ms) both, shine 1.6s linear .5s infinite; }
.pick.tb-carte:hover { opacity: 1; transform: translateY(-4px); }
.pick.tb-carte::before { inset: 2px; }
@keyframes tbCarte { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: .93; transform: none; } }
#h-picks.haut .pick.tb-carte { animation-name: tbCarteHaut; }
@keyframes tbCarteHaut { from { opacity: 0; transform: translateY(-18px) scale(.9); } to { opacity: .93; transform: none; } }
.tb-nom { font-family: 'PMD Font', 'Pixelify', sans-serif; font-size: 24px; line-height: 1; color: color-mix(in srgb, var(--tc, #fff) 45%, #fff); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 2px 0 #000, 0 -1px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 0 8px var(--tc, #000); }
.tb-nom.tb-moyen { font-size: 20px; padding-top: 2px; }
.tb-nom.tb-long { font-size: 16px; padding-top: 4px; }
.tb-ligne { display: flex; gap: 8px; font-size: 16px; line-height: 1.1; }
.tb-ligne .upg-rar { color: var(--rc); letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 0 #000; }
.tb-ligne .upg-niv { color: var(--gold); text-shadow: 0 2px 0 #000; }
.tb-socle { font-size: 16px; line-height: 1.1; color: #fff; text-shadow: 0 2px 0 #000; }
.tb-plus { width: calc(100% + 4px); padding: 0 4px; border-radius: 3px; font-size: 16px; line-height: 1.15; color: #fff6c8; text-shadow: 0 2px 0 #000;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 45%, transparent), transparent); }
.pick .tb-k { position: absolute; left: -7px; top: -9px; z-index: 3; min-width: 24px; padding: 0 5px; background: #0a0820; border: 1px solid var(--rc, var(--gold-line)); color: #fff; }
.pick.tb-carte.verrou { opacity: .75; filter: grayscale(.6); }
/* (26/11, bug Discord « Epic upgrade on turbo mode key tooltip ») Épique et Légendaire ont la classe .shine (style.css,
   overflow: hidden) : elle coupait la touche posée en dehors du coin, qui passait sous la bordure. Les étincelles restent dedans. */
.pick.tb-carte.shine { overflow: visible; }
.picks.tb-cartes.attente .pick { filter: saturate(.55) brightness(.8); }
/* sortie : la carte choisie s'allume et file, les autres s'effacent */
.turbo-sortie { position: absolute; inset: 0; pointer-events: none; z-index: 31; }
.turbo-sortie .tb-zone { animation: none; }
.turbo-sortie .tb-tete { animation: tbFond .3s ease-out both; }
.turbo-sortie .pick { animation: tbFond .26s ease-out both !important; }
.turbo-sortie .pick.pris { animation: tbPris .44s ease-out both !important; }
.turbo-sortie.haut .pick.pris { animation-name: tbPrisHaut !important; }
@keyframes tbFond { to { opacity: 0; transform: scale(.88); } }
@keyframes tbPris { 0% { opacity: 1; filter: brightness(1); } 30% { opacity: 1; transform: scale(1.1); filter: brightness(1.7); box-shadow: 0 0 22px var(--rc); } 100% { opacity: 0; transform: translateY(-30px) scale(1.05); filter: brightness(2); } }
@keyframes tbPrisHaut { 0% { opacity: 1; } 30% { opacity: 1; transform: scale(1.1); filter: brightness(1.7); box-shadow: 0 0 22px var(--rc); } 100% { opacity: 0; transform: translateY(30px) scale(1.05); filter: brightness(2); } }
/* téléphone : un peu plus petites, entre le joystick et les ronds des attaques */
body.is-touch .pick.tb-carte { width: 132px; padding: 5px 5px 4px; }
body.is-touch .tb-nom { font-size: 16px; }
body.is-touch #h-picks.turbo .tb-zone, body.is-touch .turbo-sortie .tb-zone { bottom: 6px; }
body.is-touch #h-picks.turbo.haut .tb-zone, body.is-touch .turbo-sortie.haut .tb-zone { top: 44px; }
@media (prefers-reduced-motion: reduce) { #h-picks.turbo .tb-zone, .pick.tb-carte, .tb-pile, .turbo-sortie .pick { animation: none !important; } }

/* (23/11, Kiko) Mode auto par attaque : la case « AUTO » en haut à droite de chaque attaque (client/js/capacites.js) */
.cap-auto { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px 1px 3px; border-radius: 4px; border: 2px solid #5b6a92; background: rgba(8,15,40,.9); color: #8d97b5; font: inherit; font-size: 11px; letter-spacing: .5px; line-height: 1.2; cursor: pointer; text-shadow: none; transition: transform .1s, background .12s, border-color .12s; }
.cap-auto .cap-auto-c { width: 11px; height: 11px; border-radius: 2px; border: 1.5px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 10px; line-height: 1; }
.cap-auto.on { border-color: #49e08a; background: linear-gradient(180deg, #1f7a4a, #11512f); color: #d9ffe8; box-shadow: 0 0 6px rgba(73,224,138,.45); }
.cap-auto.on .cap-auto-c { background: #49e08a; border-color: #49e08a; color: #0b3a20; }
.cap-auto:hover { transform: scale(1.08); }
.cap-auto:active { transform: scale(.94); }
.cap-slot .cap-auto { position: absolute; top: -9px; right: 28px; z-index: 1; } /* (à gauche du ✕ « Retirer ») */
.cap-mv .cap-auto { margin-left: 2px; }
.cap-auto-aide { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; padding: 4px 8px; border-radius: 5px; background: rgba(31,122,74,.18); border: 1px solid rgba(73,224,138,.35); font-size: 14px; color: #cfe9da; }
.cap-auto-aide .cap-auto { cursor: default; pointer-events: none; }
/* HUD : étiquette AUTO / MAIN sur chaque attaque quand le mode auto est actif (client/js/game.js, renderMovesHud, majAuto) */
.mv .mv-auto-tag { display: none; position: absolute; top: 2px; right: 3px; padding: 0 4px; border-radius: 3px; font-size: 10px; line-height: 1.35; letter-spacing: .4px; pointer-events: auto; text-shadow: none; z-index: 2; }
#h-moves.auto-actif .mv .mv-auto-tag { display: block; }
.mv .mv-auto-tag.on { background: #1f7a4a; color: #d9ffe8; border: 1px solid #49e08a; }
.mv .mv-auto-tag.off { background: #4a3a14; color: #ffe8a8; border: 1px solid #e0b049; }
#h-moves.auto-actif .mv.manuel { filter: saturate(.6) brightness(.92); }
.t-btn.manuel-auto { outline: 2px dashed #e0b049; outline-offset: -3px; }
/* (26/11, Kiko ; idée Discord « Level Up Details ») chiffres des cartes d'amélioration : ce que la carte ajoute, une ligne par chose.
   Le mot en bleu pâle, le gain en vert (en gras pixel), qui apparaissent l'un après l'autre. */
.pick .upg-chiffres { display: flex; flex-direction: column; align-items: stretch; gap: 1px; width: 100%; }
.pick .upg-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 6px; font-size: 16px; line-height: 1.2; text-shadow: 0 2px 0 #000;
  animation: upgCh .32s ease-out calc(var(--d, 0ms) + .22s + var(--j, 0) * .07s) both; }
.pick .upg-ch .upg-ch-l { color: #b9c6ec; text-align: left; }
.pick .upg-ch .upg-ch-v { color: #8cff9e; white-space: nowrap; text-shadow: 0 2px 0 #000, 0 0 6px rgba(80, 255, 120, .35); }
.pick .upg-plus-ch { display: flex; justify-content: space-between; gap: 8px; }
.pick .upg-plus-ch .upg-ch-l { color: #fff; } .pick .upg-plus-ch .upg-ch-v { color: #fff6c8; white-space: nowrap; }
@keyframes upgCh { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
/* mode turbo : deux chiffres par ligne au plus, petits bandeaux pour les bonus */
.tb-chiffres { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.tb-chiffres .upg-ch, .tb-plus .upg-ch { padding: 0; gap: 4px; animation: none; }
.tb-plus { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.tb-plus .upg-ch .upg-ch-l { color: #fff; } .tb-plus .upg-ch .upg-ch-v { color: #fff6c8; }
body.is-touch .pick.tb-carte .upg-ch { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .pick .upg-ch { animation: none !important; } }
/* (5/12, Kiko) bonbon maintenu : le bouton reste enfoncé et brille ; pas de menu ni de défilement au doigt */
.cap-bonb { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cap-bonb.cap-tenu { transform: translateY(1px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 10px rgba(255,226,140,.55); }
.cap-bonb.cap-tenu img { animation: cap-bon-tenu .24s steps(2) infinite; }
@keyframes cap-bon-tenu { 50% { transform: translateY(-2px) rotate(-8deg); } }
