/* =========================================================
   Les Cendres : écrans du prototype multijoueur
   (complète style.css, repris du prototype HD-2D)
   ========================================================= */
.pad { padding-left: 12px; padding-right: 12px; }
.center { justify-content: center; text-align: center; }
.dim { opacity: .25; }
.warn { color: var(--danger); font-size: 13px; font-weight: 700; min-height: 1em; }
.ok { color: var(--hp); }
.link-btn.inline { display: inline; width: auto; }
input, select {
  font: inherit; color: var(--text); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--gold-soft); border-radius: 6px; padding: 8px 10px; width: 100%;
}
select { width: auto; padding: 5px 8px; font-size: 12px; }
input:focus, select:focus { outline: none; border-color: var(--teal); }
label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }

/* ---------- Connexion ---------- */
.login-box { max-width: 380px; margin: -40px auto 20px; position: relative; z-index: 5; padding: 16px; display: grid; gap: 12px; }

/* ---------- Camp ---------- */
.hub-modes.six { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .hub-modes.six { grid-template-columns: repeat(4, 1fr); } }
.hub-modes.six .mode { min-height: 84px; }
.mode-summon { border-color: rgba(255, 211, 90, .55); }
.mode-raid { border-color: rgba(69, 220, 210, .55); }
.hub-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 30px; gap: 10px; flex-wrap: wrap; }
.party-card.busy { opacity: .55; }
.board { list-style: none; text-align: left; display: grid; gap: 4px; margin-top: 8px; }
.board li { display: flex; gap: 8px; padding: 5px 8px; border-radius: 4px; background: rgba(255, 255, 255, .04); }
.board li span { margin-left: auto; color: var(--lb); font-weight: 800; }
.board li.me { outline: 1px solid var(--teal); }
.info-text { text-align: left; line-height: 1.55; font-size: 14px; margin: 10px 0 14px; max-height: 60vh; overflow: auto; }
.pick-list { max-height: 62vh; overflow: auto; display: grid; gap: 5px; margin: 10px 0; }
.sk-line { display: flex; align-items: center; gap: 6px; width: 100%; }
.sk-line .sk-mp { margin-left: auto; }
.sk-tag.lb { background: var(--lb); color: #2a1f00; }
.sk-tag.item { background: #7ad; color: #001a2a; }
.pick-row.lb-row { border-color: var(--lb); box-shadow: 0 0 10px rgba(255, 211, 90, .35); }

/* Éléments */
.elem {
  display: inline-block; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 3px; margin: 0 1px;
  color: #0a0a0a; background: var(--ec, #ccc); letter-spacing: .02em; font-style: normal;
}
.elem.unknown { background: #333a50; color: #aab; }

/* ---------- Vue de combat générique ---------- */
.bv-enemies { position: absolute; inset: 0; z-index: 3; }
.enemy-actor { cursor: pointer; }
.enemy-actor.en0 { left: 26%; top: 74%; z-index: 5; }
.enemy-actor.en1 { left: 41%; top: 60%; z-index: 4; }
.enemy-actor.en2 { left: 13%; top: 90%; z-index: 6; }
.bv-enemies.has-boss .enemy-actor.en0 { left: 27%; top: 93%; }
.bv-enemies.has-boss .enemy-actor.en1 { left: 52%; top: 44%; }
.bv-enemies.has-boss .enemy-actor.en2 { left: 13%; top: 42%; }
.enemy-actor .px { filter: drop-shadow(0 0 1px #000); }
.enemy-actor.boss .px { filter: drop-shadow(0 0 14px rgba(127, 227, 255, .35)) drop-shadow(0 0 1px #000); }
.enemy-actor.is-broken .px { filter: drop-shadow(0 0 12px rgba(255, 211, 90, .9)) brightness(1.2); }
.enemy-actor.hit .px { animation: shake .2s; }
.enemy-actor.lunge .px { animation: lunge .35s; }
.enemy-actor.dead { opacity: .12; filter: grayscale(1); transition: opacity .6s; }
.enemy-actor.dead .en-plate { opacity: 1; }
.en-plate {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: 132px; text-align: center; background: rgba(8, 12, 24, .82);
  border: 1px solid var(--gold-soft); border-radius: 5px; padding: 3px 5px; margin-bottom: 4px; z-index: 9;
}
.enemy-actor.boss .en-plate, .enemy-actor.guardian .en-plate { width: 170px; }
.en-name { display: block; font-size: 11px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enemy-actor.boss .en-name, .enemy-actor.guardian .en-name { color: var(--lb); font-family: var(--font-title); font-size: 12px; }
.en-info { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; font-size: 11px; font-weight: 900; }
.shield-ico { color: #9fd8ff; margin-right: 2px; }
.broken { color: var(--lb); animation: brkPulse .8s infinite alternate; }
.en-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 2px; }
.en-tags .tag { font-size: 9px; }
@keyframes brkPulse { from { opacity: .6; } to { opacity: 1; } }
.hero-actor.hit .px { animation: hurt .35s; }
.bv-turn { position: absolute; top: 8px; right: 10px; z-index: 8; font-family: var(--font-title); font-weight: 900; font-size: 13px; color: var(--gold); text-shadow: 0 1px 3px #000; }
.bv-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.bv-controls .grow { flex: 1; }
.card.foreign { opacity: .75; border-style: dashed; }
.card.lb-ready { box-shadow: 0 0 0 1px var(--lb), 0 0 12px rgba(255, 211, 90, .4); }
.card-state { position: absolute; right: 8px; bottom: 5px; font-size: 10px; font-weight: 900; color: var(--teal); }
.card.ko .card-state { color: var(--danger); }
.num.weak { color: #ffb45a; font-size: 26px; }
.num.reveal { color: #ffe9a8; font-size: 14px; font-style: normal; }
.num.break { color: var(--lb); font-size: 34px; font-family: var(--font-title); }
.num.labelBad { color: #ff9f9f; font-size: 13px; font-style: normal; font-weight: 800; }

/* ---------- Invocation ---------- */
.summon-stage { height: clamp(220px, 34vw, 300px); }
.summon-altar { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; }
.summon-circle {
  width: 180px; height: 70px; border-radius: 50%; margin-top: 110px;
  border: 2px solid rgba(255, 211, 90, .7); box-shadow: 0 0 30px rgba(255, 211, 90, .5), inset 0 0 30px rgba(255, 211, 90, .4);
  animation: summonGlow 2.4s infinite alternate;
}
.summon-stage.casting .summon-circle { animation: summonCast .5s infinite alternate; }
@keyframes summonGlow { from { opacity: .5; } to { opacity: 1; } }
@keyframes summonCast { from { transform: scale(1); box-shadow: 0 0 30px #fff6c0; } to { transform: scale(1.25); box-shadow: 0 0 80px #ffe070; } }
.summon-panel { margin: 10px 12px; padding: 12px; display: grid; gap: 10px; text-align: center; }
.summon-btns { display: flex; gap: 10px; justify-content: center; }
.summon-btns button { min-width: 150px; }
.sum-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0 12px 30px; }
.sum-card {
  text-align: center; padding: 8px 4px; border-radius: 6px; background: var(--panel); border: 1px solid var(--gold-soft);
  opacity: 0; transform: translateY(12px) scale(.9); animation: sumIn .35s forwards;
}
.sum-card.s4 { border-color: #b98cff; box-shadow: 0 0 12px rgba(185, 140, 255, .45); }
.sum-card.s5 { border-color: var(--lb); box-shadow: 0 0 18px rgba(255, 211, 90, .7); }
.sum-card .px { margin: 0 auto; }
.sum-card b { display: block; font-size: 12px; margin-top: 4px; }
.sum-card small { font-size: 10px; color: var(--muted); display: block; }
.sum-card .new { color: var(--teal); font-weight: 900; }
.sum-card .stars { font-size: 11px; color: var(--lb); }
@keyframes sumIn { to { opacity: 1; transform: none; } }

/* ---------- Expédition ---------- */
.map.scroll { justify-content: flex-start; overflow-x: auto; }
.map-node.cleared { border-color: var(--gold); }
.map-node.frontier { background: linear-gradient(135deg, #ffe08a, #a0701a); color: #2a1a00; }
.exp-controls { margin: 8px 12px; padding: 10px 12px; }
.wave-row { display: grid; gap: 4px; }
.exp-log { font-size: 12px; color: var(--muted); max-height: 110px; overflow: auto; padding: 0 12px 20px; }
.exp-log div { padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }

/* ---------- Boss ---------- */
.boss-list { display: grid; gap: 12px; padding: 12px; }
@media (min-width: 760px) { .boss-list { grid-template-columns: 1fr 1fr; } }
.boss-card { padding: 14px; display: grid; gap: 8px; }
.boss-card .bc-head { display: flex; gap: 12px; align-items: center; }
.boss-card .bc-face { width: 90px; display: grid; place-items: center; }
.boss-card h3 { font-family: var(--font-title); font-size: 18px; }
.boss-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.boss-card .rec { color: var(--teal); font-weight: 800; font-size: 12px; }
.boss-card .wins { color: var(--lb); font-size: 12px; font-weight: 800; }
.boss-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Raid ---------- */
.raid-lobby { padding: 12px; display: grid; gap: 12px; }
.raid-box { padding: 14px; display: grid; gap: 10px; }
.raid-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.raid-row input { flex: 1; min-width: 120px; text-transform: uppercase; letter-spacing: .2em; font-weight: 900; }
.raid-code { font-family: var(--font-title); font-size: 30px; letter-spacing: .3em; color: var(--lb); text-align: center; }
.raid-players { display: grid; gap: 8px; }
@media (min-width: 700px) { .raid-players { grid-template-columns: 1fr 1fr; } }
.raid-player { padding: 10px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--gold-soft); }
.raid-player h4 { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.raid-player .dot { width: 8px; height: 8px; border-radius: 50%; background: #555; display: inline-block; margin-right: 6px; }
.raid-player .dot.on { background: var(--hp); box-shadow: 0 0 6px var(--hp); }
.raid-heroes { display: flex; gap: 6px; flex-wrap: wrap; min-height: 40px; }
.raid-heroes .rh { display: flex; flex-direction: column; align-items: center; font-size: 10px; }
.raid-chat { margin: 8px 10px 20px; padding: 10px; display: grid; gap: 6px; }
.chat-log { max-height: 140px; overflow: auto; font-size: 13px; display: grid; gap: 2px; }
.chat-log .ping { color: var(--lb); font-weight: 800; }
.chat-log b { color: var(--teal); }
.chat-form { display: flex; gap: 6px; }
.ping-row { display: flex; gap: 5px; flex-wrap: wrap; }
.ping-row button { font-size: 11px; padding: 4px 8px; }
.timer-low { color: var(--danger) !important; }

/* ---------- Équipement ---------- */
.gear-main { display: grid; gap: 10px; padding: 10px 12px; }
.gear-doll, .gear-inv { padding: 12px; }
.gear-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.inv-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Fiche personnage à la WoW : pièces à gauche et à droite, héros au centre, arme dessous, stats à droite */
.doll { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr) 200px; grid-template-areas: "left center right stats"; align-items: start; }
#dollLeft { grid-area: left; } .doll-center { grid-area: center; } #dollRight { grid-area: right; } .doll-stats { grid-area: stats; }
.doll-col { display: grid; gap: 6px; }
.doll-center { display: grid; gap: 6px; }
.doll-stage { position: relative; height: 230px; border-radius: 8px; border: 1px solid var(--gold-soft);
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 211, 90, .18), transparent 60%), linear-gradient(180deg, #121a33, #070b16); overflow: hidden; }
.doll-sprite { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.doll-sprite .px { filter: drop-shadow(0 0 12px rgba(255, 220, 140, .35)); }
.doll-stats { background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; padding: 8px 10px; }
.doll-stat-list { display: grid; gap: 3px; font-size: 12px; }
.doll-stat-list div { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.doll-stat-list span { color: var(--muted); }
.doll-stat-list b { font-weight: 900; }
.doll-stat-list .sep { border: 0; margin-top: 6px; color: var(--gold); font-size: 11px; font-weight: 800; }
@media (max-width: 760px) {
  .doll { grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); grid-template-areas: "left center right" "stats stats stats"; }
  .doll-stage { height: 170px; }
}
.slot-box.active-slot { border-color: var(--teal); box-shadow: 0 0 8px rgba(69, 220, 210, .4); }
.slot-box { text-align: left; padding: 6px 8px; min-height: 58px; display: grid; gap: 2px; font-size: 12px; min-width: 0; }
.slot-box .sl-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-box .sl-name { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.slot-box .sl-item { font-weight: 800; }
.slot-box.empty .sl-item { color: #666d85; font-weight: 600; }
.slot-box.broken { border-color: var(--danger); }
.q-commun { color: #e6e6e6; }
.q-rare { color: #5ab0ff; }
.q-epique { color: #c68cff; }
.dura { font-size: 10px; font-weight: 800; color: var(--hp); }
.dura.mid { color: var(--lb); }
.dura.low, .dura.zero { color: var(--danger); }
.gear-list { display: grid; gap: 5px; max-height: 60vh; overflow: auto; }
.gear-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 7px 9px; font-size: 12px; }
.gear-row small { grid-column: span 2; color: var(--muted); }
.gear-row .gr-score { font-weight: 900; }
.gear-row .up { color: var(--hp); } .gear-row .down { color: var(--danger); }
.gear-row.cant { opacity: .45; }
.armor-tag { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); color: var(--muted); margin-left: 4px; }

/* ---------- Métiers ---------- */
.craft-body { padding: 10px 12px 30px; display: grid; gap: 10px; }
.craft-box { padding: 12px; display: grid; gap: 8px; }
.craft-box h4 { font-family: var(--font-title); font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.craft-box h4 small { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.recipe { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.recipe small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.recipe .cost { font-size: 12px; }
.recipe .cost .miss { color: var(--danger); }
.recipe.locked { opacity: .5; }
.mats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.mat { padding: 7px 9px; border-radius: 6px; background: rgba(255, 255, 255, .04); display: flex; justify-content: space-between; font-size: 13px; }
.mat b { color: var(--lb); }
.gather-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
.gather-row .bar { margin-top: 4px; }
.prof-bar { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.prof-bar .bar { flex: 1; }

/* ---------- Téléphone ---------- */
@media (max-width: 600px) {
  .en-plate, .enemy-actor.boss .en-plate, .enemy-actor.guardian .en-plate { width: 98px; padding: 2px 4px; }
  .en-name { font-size: 10px; }
  .enemy-actor.boss .en-name, .enemy-actor.guardian .en-name { font-size: 10px; }
  .en-info { font-size: 10px; }
  .elem { font-size: 9px; padding: 0 3px; }
  .enemy-actor.en0 { left: 30%; top: 78%; }
  .enemy-actor.en1 { left: 44%; top: 56%; }
  .enemy-actor.en2 { left: 15%; top: 95%; }
  .bv-enemies.has-boss .enemy-actor.en0 { left: 28%; top: 95%; }
  .bv-enemies.has-boss .enemy-actor.en1 { left: 50%; top: 46%; }
  .bv-enemies.has-boss .enemy-actor.en2 { left: 15%; top: 40%; }
  .hub-modes.six .mode { min-height: 70px; }
  .summon-btns button { min-width: 0; flex: 1; }
}

.filter-tabs .hide-eq { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; }

/* ---------- Autel : compétences ---------- */
#altarSkills .section-h.small { margin: 12px 0 6px; }
#altarSkills .section-h.small:first-child { margin-top: 4px; }
.skill-line.rainbow { border: 2px solid transparent; border-left-width: 2px;
  background: linear-gradient(rgba(14, 20, 38, .96), rgba(14, 20, 38, .96)) padding-box,
              linear-gradient(90deg, #ff5a4e, #ffd35a, #45dcd2, #a07bff, #ff5a4e) border-box;
  background-size: 100% 100%, 300% 100%; animation: rainbowShift 4s linear infinite; }
@keyframes rainbowShift { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 300% 0; } }
.skill-line.echo-line { border-left-color: #a07bff; }
.skill-line.echo-line .sk-tag { color: #c9b2ff; }
.skill-line.sup-line { border-left-color: #7ad; }
.skill-line.pas-line { border-left-color: var(--hp); }
.skill-line.pas-line .sk-tag { color: var(--hp); }
.skill-line.off { opacity: .6; }

/* ---------- Compteur de combat (« kikimeter ») ---------- */
.bv-meter { margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--gold-soft); display: grid; gap: 3px; }
.meter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; font-size: 12px; }
.meter-head b { font-family: var(--font-title); color: var(--gold); letter-spacing: .05em; }
.meter-tabs { display: flex; gap: 3px; }
.meter-tabs button { font-size: 10px; padding: 2px 7px; border-radius: 3px; }
.meter-tabs button.on { background: var(--teal-dark); color: #fff; border-color: var(--teal); }
.meter-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; height: 20px; padding: 0 6px;
  font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .04); border-radius: 3px; overflow: hidden; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: .35; transition: width .3s; }
.meter-name, .meter-val { position: relative; white-space: nowrap; }
.meter-name small, .meter-val small { color: var(--muted); font-weight: 600; }
.meter-total { font-size: 10px; color: var(--muted); text-align: right; }
.bv-help { flex-basis: 100%; font-size: 11px; color: var(--muted); margin: 0; }

/* ---------- Expédition ---------- */
.exp-top { display: grid; gap: 10px; padding: 10px 12px 0; }
@media (min-width: 860px) { .exp-top { grid-template-columns: 1fr 1.3fr; } }
.exp-box { padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.exp-box-h { font-family: var(--font-title); font-size: 13px; color: var(--gold); letter-spacing: .05em; }
.exp-zone .wave-label { font-size: 13px; color: var(--text); font-weight: 600; margin: 0; }
.exp-zone-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.exp-zone-row .btn-primary { font-size: 13px; padding: 8px 20px; }
.exp-zone-row .btn-primary:disabled { filter: grayscale(1); animation: none; }
.exp-zone-row .hint { margin: 0; flex: 1; min-width: 160px; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mode-tabs button { display: grid; gap: 1px; padding: 7px 4px; text-align: center; }
.mode-tabs button b { font-size: 14px; }
.mode-tabs button small { font-size: 10px; color: var(--muted); }
.mode-tabs button.active { border-color: var(--teal); background: linear-gradient(180deg, rgba(69, 220, 210, .25), rgba(22, 125, 134, .25)); box-shadow: 0 0 10px rgba(69, 220, 210, .3); }
.mode-help { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.mode-help b { color: var(--text); }
.exp-foot { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px 30px; flex-wrap: wrap; }
.exp-foot .exp-log { flex: 1; padding: 0; max-height: none; }

/* ---------- Infobulles ---------- */
.tip { position: fixed; z-index: 200; max-width: 280px; padding: 8px 10px; border-radius: 6px; pointer-events: none;
  background: rgba(8, 12, 24, .97); border: 1px solid var(--gold-soft); box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  font-size: 12px; line-height: 1.45; color: var(--text); }
.tip .t-name { font-weight: 900; font-size: 13px; }
.tip .t-sub { color: var(--muted); font-size: 11px; }
.tip .t-stat { color: #fff; }
.tip .t-up { color: var(--hp); } .tip .t-down { color: var(--danger); }
.tip hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 5px 0; }

/* ---------- Équipes ---------- */
.team-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 12px; padding: 8px 12px; }
.team-bar.slim { margin: 8px 12px 0; padding: 6px 10px; }
.tp-label { font-family: var(--font-title); color: var(--gold); font-size: 13px; }
.tp-list { display: flex; gap: 5px; flex-wrap: wrap; }
.tp-btn { font-size: 12px; padding: 5px 10px; }
.tp-current { display: flex; gap: 2px; flex: 1; min-width: 120px; }
.tp-face .px { display: block; }
.mode-teams { border-color: rgba(95, 220, 143, .5); }
.team-current-box { margin: 10px 12px; padding: 12px; }
.team-current { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 6px 0; }
@media (max-width: 600px) { .team-current { grid-template-columns: repeat(3, 1fr); } }
.team-slot { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 110px; align-content: end; }
.team-slot b { font-size: 12px; } .team-slot small { font-size: 10px; color: var(--muted); }
.team-slot.empty { border-style: dashed; opacity: .6; align-content: center; }
.team-slot .plus { font-size: 26px; color: var(--muted); }
.team-presets { display: grid; gap: 10px; padding: 0 12px; }
@media (min-width: 760px) { .team-presets { grid-template-columns: repeat(3, 1fr); } }
.preset { padding: 10px; display: grid; gap: 8px; }
.preset-name { font-weight: 800; }
.preset-faces { display: flex; gap: 2px; min-height: 40px; align-items: flex-end; }
.preset-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.team-pool { padding: 0 12px; display: grid; gap: 6px; }
.pool-h { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ---------- Compteur : rôles et détail ---------- */
.meter-row { width: 100%; border: 0; cursor: pointer; text-align: left; }
.meter-row:hover { background: rgba(255, 255, 255, .09); }
.role-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 2px; vertical-align: middle; }
.md-sum { font-size: 13px; margin-bottom: 8px; }
.md-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.md-table th { text-align: right; color: var(--muted); font-weight: 800; padding: 3px 4px; border-bottom: 1px solid var(--gold-soft); }
.md-table td { text-align: right; white-space: nowrap; padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.md-table th:first-child, .md-table td:first-child { text-align: left; font-weight: 800; }

/* ---------- Mannequins (6 cibles) ---------- */
.bv-enemies.many .enemy-actor.en0 { left: 12%; top: 50%; }
.bv-enemies.many .enemy-actor.en1 { left: 27%; top: 48%; }
.bv-enemies.many .enemy-actor.en2 { left: 42%; top: 50%; }
.bv-enemies.many .enemy-actor.en3 { left: 12%; top: 92%; }
.bv-enemies.many .enemy-actor.en4 { left: 27%; top: 90%; }
.bv-enemies.many .enemy-actor.en5 { left: 42%; top: 92%; }
.bv-enemies.many .en-plate { width: 96px; padding: 2px 4px; }
.bv-enemies.many .en-name { font-size: 10px; }
.training-card { border-color: rgba(201, 162, 74, .6); }
/* ---------- Compte ---------- */
.hub-account { margin: 8px 12px 0; position: relative; z-index: 2; padding: 8px 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.hub-account .acc-bar { flex: 1; min-width: 120px; }
.hub-account .acc-next { color: var(--muted); font-size: 12px; }
.mode-lock.locked-mode { opacity: .55; border-style: dashed; }
.mode-lock.locked-mode .mode-title::after { content: " 🔒"; font-size: 13px; }

/* ---------- Onglets de héros regroupés ---------- */
.hero-tabs.grouped { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; overflow: visible; }
.tab-group { display: grid; gap: 4px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.tab-group-h { font-size: 11px; font-weight: 900; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; cursor: default; }
.tab-group.others summary { cursor: pointer; color: var(--muted); }
.tab-group.others[open] summary { color: var(--gold); }
.tab-row { display: flex; gap: 6px; flex-wrap: wrap; }

.pc-info { position: absolute; top: 3px; right: 5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: var(--teal); background: rgba(0, 0, 0, .35); border: 1px solid rgba(69, 220, 210, .5); cursor: pointer; }
.pc-info:hover { background: var(--teal-dark); color: #fff; }
.party-card, .team-slot { position: relative; }
.sheet-stats { margin: 6px 0; }
#infoText .skill-line { margin-bottom: 4px; }

.gem-colors { align-items: center; margin-top: -4px; }
.gem-colors .fc-label { font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.gem-colors button { display: inline-flex; align-items: center; gap: 4px; }
.gem-colors select { margin-left: auto; }

/* ---------- Rareté et XP ---------- */
.rar { font-size: 11px; letter-spacing: 1px; }
.rar-3 { color: #7fb8ff; } .rar-4 { color: #c490ff; } .rar-5 { color: var(--lb); text-shadow: 0 0 6px rgba(255, 211, 90, .6); }
.xpbar { display: block; width: 100%; margin-top: 3px; }
.team-slot .xpbar { width: 80%; }
.party-card .pc-xp { grid-column: 1 / -1; margin-top: 2px; }
.camp-lvl .camp-xp { width: 40px; margin: 2px auto 0; }
.plate-xp { width: 70%; margin: 4px auto 0; }
.head-xp { width: 160px; margin-top: 4px; }
.preset-hero { display: grid; justify-items: center; }
.preset-hero small { font-size: 9px; }
.hero-tab .rar { font-size: 9px; }

/* ---------- Guilde ---------- */
.guild-body { padding: 10px 12px 30px; display: grid; gap: 10px; }
.guild-head { padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.guild-name { font-family: var(--font-title); font-size: 22px; color: var(--gold); }
.motd { color: var(--muted); font-size: 13px; font-style: italic; margin-top: 2px; }
.guild-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.guild-meta b { color: var(--text); }
.guild-tab { display: grid; gap: 10px; }
.guild-box { padding: 12px; display: grid; gap: 8px; }
.g-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.g-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.rank { font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 3px; margin: 0 4px; background: rgba(255, 255, 255, .08); }
.rank-chef { color: var(--lb); } .rank-officier { color: var(--teal); }
.btn-small.danger { color: #ffb0b0; border-color: rgba(255, 107, 107, .5); }
.g-chat { max-height: 50vh; min-height: 200px; }
.g-chat .sys { color: var(--lb); }
.g-log { font-size: 12px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.gold-in { width: 110px; }
.grow { flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #555; display: inline-block; margin-right: 6px; }
.dot.on { background: var(--hp); box-shadow: 0 0 6px var(--hp); }
.mode.badge-on { box-shadow: 0 0 0 2px var(--lb), 0 0 14px rgba(255, 211, 90, .5); }
.mode.badge-on .mode-title::before { content: "● "; color: var(--lb); }
.g-chat { display: block; align-content: start; }
.g-chat > div { padding: 2px 0; }
.raid-row input.gold-in, .raid-row #gName, .raid-row #gInvite { text-transform: none; letter-spacing: normal; font-weight: 600; }
.raid-row input.gold-in { flex: 0 0 120px; }

/* =========================================================
   Camp « Le Codex » : fond d'écran, bandes d'encre, barre du bas
   ========================================================= */
#hub.camp {
  --c-navy: #21347a; --c-ink: #101a3a; --c-paper: #f4ecd8; --c-gold: #c8a04a; --c-gold2: #e2bd5f; --c-text: #1b2144; --c-muted: #5d5a4c; --c-red: #d8452e;
  max-width: none; position: relative; height: 100vh; height: 100dvh; min-height: 560px; padding: 0; overflow: hidden;
  background: var(--c-paper) url(../img/wallpaper.jpg) 18% center / cover no-repeat; color: var(--c-text);
}
#hub .camp-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 75% at 42% 45%, rgba(244,236,216,0) 55%, rgba(244,236,216,.9) 100%); }
#hub button { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 0; padding: 0; }
#hub button:hover:not(:disabled) { filter: brightness(1.08); }
#hub .ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#hub .ic.gold { stroke: var(--c-gold2); } #hub .ic.crys { stroke: #9fc4ff; }
#hub .ink { background: var(--c-ink); color: var(--c-paper); clip-path: polygon(0 8%, 96% 0, 100% 45%, 94% 100%, 2% 92%); }
#hub .badge-on { position: relative; }
#hub .badge-on::after { content: ""; position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--c-paper); }
#hub .locked-mode { opacity: .5; }

/* Profil */
.camp-profile { position: absolute; top: 18px; left: 18px; z-index: 3; display: flex; gap: 12px; align-items: flex-start; }
.cp-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--c-navy); color: var(--c-paper); border: 3px solid var(--c-gold); box-shadow: 0 4px 12px rgba(0,0,0,.35); font-family: var(--font-title); font-weight: 900; font-size: 38px; }
.cp-avatar img { image-rendering: pixelated; }
.cp-lvl { padding: 2px 10px; background: var(--c-ink); color: var(--c-gold2); border: 1px solid var(--c-gold); border-radius: 4px; font-family: var(--font-title); font-weight: 700; font-size: 13px; }
.cp-strips { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.cp-name { width: 400px; max-width: 70vw; padding: 7px 56px 9px 16px; }
.cp-who { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 20px; }
.cp-rec { display: flex; align-items: baseline; gap: 12px; }
.cp-rec span { font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--c-gold2); }
.cp-rec b { font-family: var(--font-title); font-size: 24px; }
.cp-acc .acc-bar { margin-top: 4px; max-width: 260px; }
.cp-money { display: flex; gap: 8px; align-items: center; }
.cp-cur { display: flex; align-items: center; gap: 8px; width: 160px; padding: 5px 14px 5px 12px; font-weight: 800; background: rgba(16,26,58,.85); clip-path: polygon(0 10%, 97% 0, 100% 90%, 3% 100%); }
.cp-cur .ic { width: 18px; height: 18px; } .cp-cur b { flex: 1; text-align: right; }
#hub .cp-plus { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c-paper); border: 2px solid var(--c-gold); color: var(--c-navy); font-weight: 900; font-size: 18px; }

/* Raccourcis de gauche */
.camp-side { position: absolute; top: 160px; left: 30px; z-index: 2; display: flex; flex-direction: column; gap: 12px; width: 110px; }
#hub .cs-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--c-paper); }
#hub .cs-btn .cs-ic { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; background: var(--c-paper); border: 2px solid var(--c-gold); color: var(--c-navy); }
#hub .cs-btn > span:not(.cs-ic) { font-family: var(--font-title); font-weight: 700; font-size: 14px; text-shadow: 0 0 4px var(--c-ink), 0 0 2px var(--c-ink); }
#hub .cs-btn.badge-on::after { top: -3px; right: 18px; }

/* Options */
.camp-opts { position: absolute; top: 18px; right: 22px; z-index: 3; display: flex; gap: 6px; }
#hub .camp-opts button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--c-navy); }

/* Colonne de droite */
.camp-right { position: absolute; top: 84px; right: 36px; bottom: 210px; width: 440px; z-index: 2; display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: none; }
#hub .camp-banner { position: relative; flex: none; height: 180px; width: 100%; border: 3px solid var(--c-paper); outline: 1px solid var(--c-gold); box-shadow: 0 8px 20px rgba(0,0,0,.35); overflow: hidden;
  background: url(../img/wallpaper.jpg) 92% 38% / 260% auto no-repeat; }
.cb-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 10px; display: flex; flex-direction: column; align-items: center; color: var(--c-paper); background: linear-gradient(180deg, rgba(16,26,58,0), rgba(16,26,58,.92)); }
.cb-title { font-family: var(--font-title); font-weight: 900; font-size: 26px; letter-spacing: .04em; color: #f7e3a8; }
.cb-sub { font-size: 14px; font-weight: 700; }
.camp-goal { flex: none; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; background: rgba(244,236,216,.94); border: 1px solid var(--c-gold); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.cg-head > div { display: flex; flex-direction: column; gap: 2px; }
.cg-kicker { font-family: var(--font-title); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: #9a7428; }
.cg-title { font-size: 17px; font-weight: 900; }
.cg-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.cg-bar { height: 8px; border-radius: 4px; background: rgba(33,52,122,.15); } .cg-bar > div { height: 8px; border-radius: 4px; background: var(--c-navy); }
.cg-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.cg-rew { font-size: 13px; color: var(--c-muted); display: flex; align-items: center; gap: 8px; }
.cg-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; background: var(--c-navy); color: var(--c-paper); border-radius: 4px; }
.cg-chip .ic { width: 15px; height: 15px; }
#hub .cg-go { height: 42px; padding: 0 24px; background: var(--c-navy); color: var(--c-paper); border: 2px solid var(--c-gold); border-radius: 4px; font-family: var(--font-title); font-weight: 700; font-size: 15px; }
.cg-zone { font-size: 12px; color: var(--c-muted); } .cg-zone em { font-style: normal; font-weight: 800; color: var(--c-text); }
.camp-company { flex: none; padding: 10px 12px; background: rgba(16,26,58,.9); color: var(--text); border: 1px solid var(--c-gold); }
.cc-head { font-family: var(--font-title); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--c-gold2); margin-bottom: 4px; }
.cc-head small { color: var(--muted); font-family: var(--font-ui); letter-spacing: 0; }
#hub .camp-company .team-bar { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
#hub .camp-company .team-bar button { padding: 4px 10px; border: 1px solid var(--gold-soft); background: linear-gradient(#253257, #141c34); border-radius: 4px; }

/* Menus secondaires (icônes) */
.camp-sec { position: absolute; right: 36px; bottom: 124px; z-index: 2; display: flex; gap: 20px; }
#hub .camp-sec button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; color: var(--c-navy); font-weight: 800; font-size: 14px; text-shadow: 0 0 6px var(--c-paper), 0 0 3px var(--c-paper); }
#hub .camp-sec small { display: none; }

/* Barre du bas en encre déchirée */
.camp-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 108px; z-index: 4; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; padding: 0 24px 10px;
  background: var(--c-ink); color: var(--c-paper);
  clip-path: polygon(0 18%, 4% 12%, 9% 16%, 15% 9%, 22% 14%, 28% 8%, 35% 13%, 41% 10%, 48% 15%, 55% 9%, 61% 14%, 68% 10%, 74% 15%, 81% 9%, 87% 13%, 93% 8%, 100% 14%, 100% 100%, 0 100%); }
#hub .cn { position: relative; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; color: var(--c-paper); }
#hub .cn > span { font-family: var(--font-title); font-weight: 700; font-size: 14px; white-space: nowrap; }
#hub .cn small { display: none; }
#hub .cn.active, #hub .cn.open { color: #f7e3a8; background: radial-gradient(ellipse at 50% 60%, rgba(226,189,95,.35), rgba(226,189,95,0) 70%); }
#hub .cn.badge-on::after { top: 6px; right: calc(50% - 26px); border-color: var(--c-ink); }
#hub .cn:disabled { opacity: .35; }

/* Sous-menu Combats */
.combat-menu { position: fixed; bottom: 112px; z-index: 20; width: 240px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #f4ecd8; border: 2px solid #c8a04a; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.combat-menu::after { content: ""; position: absolute; left: calc(var(--arrow, 120px) - 9px); bottom: -10px; width: 16px; height: 16px; background: #f4ecd8; border-right: 2px solid #c8a04a; border-bottom: 2px solid #c8a04a; transform: rotate(45deg); }
#hub .combat-menu button { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: 4px; text-align: left; }
#hub .combat-menu button span { flex: 1; }
#hub .combat-menu .cm-main { background: #21347a; color: #f4ecd8; }
#hub .combat-menu .cm-main span { font-family: var(--font-title); font-weight: 700; font-size: 16px; }
#hub .combat-menu .cm-main small { font-size: 12px; color: #e2bd5f; }
#hub .combat-menu .cm-sub { height: 44px; color: #1b2144; border: 1px solid rgba(33,52,122,.3); font-weight: 800; }
#hub .combat-menu .cm-sub small { font-size: 12px; color: #5d5a4c; }

/* Tablette : colonne de droite plus étroite */
@media (max-width: 1100px) { .camp-right { width: 360px; } #hub .camp-banner { height: 150px; } .camp-sec { gap: 10px; } }

/* Téléphone : tout empilé, fond d'écran en bandeau */
@media (max-width: 760px) {
  #hub.camp { height: auto; min-height: 100vh; overflow: visible; padding-bottom: 96px; background: #f4ecd8 url(../img/wallpaper.jpg) 26% top / auto 330px no-repeat; }
  #hub .camp-veil { height: 330px; background: linear-gradient(180deg, rgba(10,16,40,.55) 0%, rgba(10,16,40,0) 35%, rgba(244,236,216,0) 75%, #f4ecd8 100%); }
  .camp-profile { position: relative; top: 0; left: 0; padding: 12px 12px 0; gap: 8px; }
  .cp-avatar { width: 60px; height: 60px; font-size: 26px; }
  .cp-name { width: auto; max-width: none; padding-right: 36px; } .cp-who { font-size: 17px; } .cp-rec b { font-size: 18px; }
  .cp-cur { width: auto; min-width: 96px; font-size: 13px; }
  .camp-opts { top: 8px; right: 6px; } #hub .camp-opts button { width: 40px; height: 40px; }
  .camp-side { position: relative; top: 0; left: 0; width: auto; flex-direction: row; justify-content: space-around; margin-top: 150px; padding: 0 8px; }
  #hub .cs-btn .cs-ic { width: 50px; height: 50px; }
  #hub .cs-btn > span:not(.cs-ic) { color: var(--c-text); text-shadow: none; font-size: 12px; }
  .camp-right { position: static; width: auto; margin: 14px 12px 0; overflow: visible; }
  #hub .camp-banner { height: 130px; }
  .camp-sec { position: static; justify-content: space-around; margin: 14px 8px 0; gap: 4px; }
  #hub .camp-sec button { font-size: 12px; min-width: 0; text-shadow: none; }
  .camp-nav { position: fixed; height: 78px; padding: 0 2px 6px; clip-path: polygon(0 12%, 12% 6%, 25% 11%, 38% 5%, 50% 10%, 63% 4%, 76% 10%, 88% 5%, 100% 10%, 100% 100%, 0 100%); }
  #hub .cn { height: 62px; gap: 2px; } #hub .cn .ic { width: 22px; height: 22px; } #hub .cn > span { font-size: 9.5px; font-family: var(--font-ui); font-weight: 800; }
  #hub .cn.badge-on::after { right: calc(50% - 18px); width: 10px; height: 10px; }
  .combat-menu { bottom: 82px; }
}
#hub .cn i { font-style: normal; } #hub .cn i.s { display: none; }
.combat-menu { width: 270px; }
#hub .cp-avatar img { width: auto !important; height: 78% !important; }
.cp-lvl { white-space: nowrap; }
@media (max-width: 760px) {
  .camp-profile { padding-right: 88px; }
  .cp-lvl { font-size: 11px; padding: 2px 6px; }
  #hub .cn i.l { display: none; } #hub .cn i.s { display: inline; }
  #hub .cn > span { font-size: 10px; }
  .combat-menu { width: 250px; }
}
/* Rareté mythique et qualité Fantastique */
.q-fantastique { color: #ff9a3c; text-shadow: 0 0 6px rgba(255, 154, 60, .55); }
.rar-mythic { background: linear-gradient(90deg, #ff6b6b, #ffd35a, #5fdc8f, #45dcd2, #62b0ff, #c490ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.sum-card.mythic { border-color: #ffd35a; box-shadow: 0 0 0 2px #ff9a3c, 0 0 22px rgba(255, 154, 60, .7); }
.sum-card.mythic .stars::after { content: " Mythique"; font-size: 11px; }

/* ---------- v0.11 : éléments, frise d'initiative, altérations ---------- */
.c-feu { --gc: #ff7a45; } .c-eau { --gc: #4fa8f7; } .c-foudre { --gc: #f5d63b; } .c-glace { --gc: #a8e6ff; }
.c-vent { --gc: #8fd16a; } .c-terre { --gc: #c8a27a; } .c-lumiere { --gc: #fff3c4; } .c-neutre { --gc: #8d93a0; }
.socket.c-neutre { border-style: dashed; }
.socket.reso { box-shadow: inset 0 0 12px color-mix(in srgb, var(--gc) 60%, transparent), 0 0 16px var(--gc), 0 0 3px #fff; }
.bv-order { margin-bottom: 8px; padding: 5px 6px; background: rgba(8, 12, 24, .6); border: 1px solid rgba(201, 162, 74, .35); border-radius: 6px; }
.bv-order:empty { display: none; }
.ord-row { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.ord-row.next { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ord-lab { font-size: 9px; font-weight: 900; color: var(--gold, #e8c46a); text-transform: uppercase; letter-spacing: .02em; width: 40px; flex: none; line-height: 1.15; }
.ord { display: inline-flex; flex-direction: column; align-items: center; width: 34px; padding: 2px 1px 1px; border-radius: 4px;
  background: rgba(70, 150, 140, .25); border: 1px solid rgba(90, 200, 185, .5); transition: transform .15s; }
.ord.enemy { background: rgba(170, 60, 60, .25); border-color: rgba(230, 100, 100, .55); }
.ord .px, .ord img, .ord canvas { height: 22px; width: auto; image-rendering: pixelated; }
.ord b { font-size: 8px; line-height: 1.1; max-width: 33px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #eef; }
.ord.small { width: 28px; opacity: .7; }
.ord.small .px, .ord.small img, .ord.small canvas { height: 16px; }
.ord.small b { font-size: 7.5px; }
.ord.ko { opacity: .25; filter: grayscale(1); }
.ord.brk { border-color: var(--lb, #ffd35a); }
.ord.cur { transform: translateY(-3px) scale(1.12); border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.actor.my-turn .px { animation: myTurn .45s; }
@keyframes myTurn { 0% { filter: brightness(1); } 40% { filter: brightness(1.8) drop-shadow(0 0 8px #fff); } 100% { filter: brightness(1); } }
.tag.st { background: color-mix(in srgb, var(--ec) 30%, rgba(0,0,0,.5)); border-color: var(--ec); color: #fff; }
.tag.neutral { background: #5a606c; color: #fff; }
.en-own { display: flex; justify-content: center; margin-top: 1px; }
.en-own .elem { font-size: 8.5px; opacity: .85; }

/* Bannières élémentaires */
.sum-tabs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 8px 10px 0; }
.sum-tab { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 14px; border: 1px solid var(--ec); background: rgba(8, 12, 24, .7); color: #eee; cursor: pointer; }
.sum-tab.on { background: var(--ec); color: #111; box-shadow: 0 0 10px var(--ec); }
#summonStage.elemental { box-shadow: inset 0 0 60px color-mix(in srgb, var(--ec) 35%, transparent); }
#summonStage.elemental .summon-circle { border-color: var(--ec); box-shadow: 0 0 30px var(--ec), inset 0 0 30px var(--ec); }
.sum-featured { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; z-index: 3; max-width: 42%; }
@media (max-width: 600px) { .sum-featured { max-width: 30%; gap: 3px; right: 8px; } .sf-hero { padding: 2px 3px; } .sf-hero img, .sf-hero canvas, .sf-hero .px { height: 36px; width: auto; } .sf-hero b { font-size: 9px; } #summonStage .sum-banner-text { max-width: 64%; left: 14px; } }
.sf-hero { display: flex; flex-direction: column; align-items: center; background: rgba(8, 12, 24, .78); color: #f7e3a8; border: 1px solid var(--ec); border-radius: 6px; padding: 4px 6px; }
.sf-hero b { font-size: 11px; } .sf-hero small { font-size: 10px; color: var(--lb, #ffd35a); }
.sf-hero.owned { opacity: .8; }
.sum-list-btn { margin-top: 6px; }
.md-table.rates tr.feat td { background: rgba(255, 211, 90, .08); }
.md-table.rates td { white-space: nowrap; }
.md-table.rates { width: 100%; font-size: 12px; }
.md-table.rates td small { color: var(--muted, #aab); font-weight: 400; }

/* Historique des invocations */
.sum-links { display: flex; gap: 6px; flex-wrap: wrap; }
.hist-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 6px; margin-bottom: 8px; }
.hist-sum div { background: rgba(0, 0, 0, .25); border: 1px solid rgba(201, 162, 74, .3); border-radius: 6px; padding: 6px; text-align: center; }
.hist-sum b { display: block; font-size: 18px; color: #f7e3a8; } .hist-sum small { font-size: 10px; color: #cbd; }
.hist-sum .s5 b { color: #ffd35a; } .hist-sum .s4 b { color: #c490ff; }
.hist-list { max-height: 46vh; overflow-y: auto; }
.hist-row { border-top: 1px solid rgba(255, 255, 255, .1); padding: 6px 0; }
.hist-head { display: flex; justify-content: space-between; font-size: 12px; } .hist-head small { color: #aab; }
.hist-heroes { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.hh { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #dde; }
.hh.s4 { background: rgba(160, 110, 255, .3); color: #fff; } .hh.s5 { background: rgba(255, 200, 60, .35); color: #fff; font-weight: 800; }
.hh.mythic { background: linear-gradient(90deg, #ff9a3c, #ffd35a); color: #1a1420; }
.hh i { font-style: normal; font-size: 9px; font-weight: 900; color: #7fffd4; }

/* Annonces du boss et Garde double (v0.11.5) */
.bv-intent { position: absolute; left: 10px; top: 8px; right: 110px; z-index: 9; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.bv-intent .it { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: rgba(8, 12, 24, .82); color: #e6ecff; border-left: 3px solid #7fb0ff; max-width: 520px; }
.bv-intent .it.danger { border-left-color: #ff5a4e; color: #ffd9d4; background: rgba(60, 10, 10, .85); }
.bv-intent .it.info { opacity: .8; font-weight: 600; }
.bv-intent.flash .it.danger { animation: intentFlash .9s 2; }
@keyframes intentFlash { 50% { background: rgba(160, 30, 30, .95); } }
.enemy-actor.dormant { display: none; }
.en-shields .dual { font-size: 10px; padding: 0 4px; border-radius: 3px; background: #3a4a7a; color: #fff; }
.en-shields .charge { font-size: 10px; color: #f5d63b; }
.weak-row.weak-shown .weak-els .elem { box-shadow: 0 0 6px var(--ec); outline: 1px solid #fff; }
@media (max-width: 700px) { .bv-intent { right: 60px; } .bv-intent .it { font-size: 10px; } }
.toast.t-warn { border-color: #ff5a4e; background: rgba(70, 14, 14, .95); color: #ffe2dd; }
.card-state { max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* Ressources des héros (v0.12) */
.res-line { display: flex; gap: 4px; margin-top: 3px; min-height: 0; }
.res-pill { position: relative; overflow: hidden; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); color: #e6ecff; }
.res-pill i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rc, #888); opacity: .45; }
.res-pill b { position: relative; }
.r-rage { --rc: #e0453a; } .r-energy { --rc: #f5d63b; } .r-heat { --rc: #ff8a3a; } .r-focus { --rc: #8fb8ff; } .r-faith { --rc: #fff3c4; } .r-elan { --rc: #6fd8ff; }
.r-ammo { background: rgba(139, 101, 55, .35); } .r-combo { background: rgba(245, 214, 59, .25); }
.skill-line.locked { opacity: .55; }
/* carte avec jauge de ressource : l'état passe sous la jauge au lieu de la chevaucher */
.card-state { position: static; display: block; margin-top: 2px; max-width: 100%; min-height: 12px; }

/* Bandeau « Idle en cours » au Camp (v0.12.2) */
#hubIdle.camp-idle { flex: none; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 14px; background: linear-gradient(100deg, #17204a, #243061); color: #f4ecd8; border: 1px solid var(--c-gold, #e2bd5f);
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 1px rgba(226,189,95,.15); }
#hubIdle.camp-idle:hover { filter: brightness(1.08); }
#hubIdle.camp-idle.hidden { display: none; }
.ci-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ci-kicker { font-size: 10.5px; font-weight: 900; letter-spacing: .12em; color: #8fe39a; display: inline-flex; align-items: center; gap: 6px; }
.ci-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fd36e; box-shadow: 0 0 0 0 rgba(95,211,110,.7); animation: ciPulse 1.6s infinite; }
.ci-text b { font-size: 15px; color: #fff3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-text small { font-size: 11px; color: #cfd6f2; }
.ci-text .ci-next { font-size: 10px; color: #9aa4cc; }
.ci-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 3px; }
.ci-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e2bd5f, #fff3c4); transition: width 4.8s linear; }
.ci-anim { position: relative; flex: none; width: 34px; height: 34px; }
.ci-sw { position: absolute; left: 15px; top: 3px; width: 4px; height: 26px; border-radius: 2px; background: linear-gradient(#f4f6ff 0 70%, #b58a2c 70% 78%, #6b4a1c 78%); transform-origin: 50% 85%; }
.ci-a { left: 6px; animation: ciClashA 1.2s ease-in-out infinite; }
.ci-b { left: 24px; animation: ciClashB 1.2s ease-in-out infinite; }
@keyframes ciClashA { 0%, 100% { transform: rotate(18deg); } 45% { transform: rotate(38deg); } 55% { transform: rotate(33deg); } }
@keyframes ciClashB { 0%, 100% { transform: rotate(-18deg); } 45% { transform: rotate(-38deg); } 55% { transform: rotate(-33deg); } }
@keyframes ciPulse { 0% { box-shadow: 0 0 0 0 rgba(95,211,110,.7); } 70% { box-shadow: 0 0 0 7px rgba(95,211,110,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,110,0); } }
@media (prefers-reduced-motion: reduce) { .ci-a, .ci-b, .ci-kicker::before { animation: none; } .ci-a { transform: rotate(35deg); } .ci-b { transform: rotate(-35deg); } }
#hubIdle.ci-stopped .ci-kicker { color: #f5d67a; }
#hubIdle.ci-stopped .ci-kicker::before { background: #e2bd5f; animation: none; }
#hubIdle.ci-bad { background: linear-gradient(100deg, #3a1420, #5a1d24); border-color: #ff7a6b; }
#hubIdle.ci-bad .ci-kicker { color: #ffb3a8; }
#hubIdle.ci-bad .ci-kicker::before { background: #ff5a4e; }
.ci-icon { flex: none; width: 34px; text-align: center; font-size: 24px; color: #fff3c4; }

/* v0.12.4 — cartes de combat : largeur fixe, bonus sur une ligne, ressource principale */
.cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card { min-width: 0; overflow: hidden; }
.card-id { flex: 1 1 auto; overflow: hidden; }
.card-id strong, .card-id .job { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tags { flex: 0 1 auto; flex-wrap: nowrap; overflow: hidden; max-width: 60%; }
.card .tags .tag { flex: none; }
.tag.more { background: rgba(255,255,255,.14); color: #f4ecd8; cursor: help; }
.fill.resf { background: var(--rc, #888); }
.fill.resf.r-ammo { --rc: #c89456; background: repeating-linear-gradient(90deg, var(--rc) 0 calc(16.66% - 2px), transparent calc(16.66% - 2px) 16.66%); }
.lab.r-lab { color: var(--rc, #ccc); }
.lab.r-lab.r-rage { --rc: #ff6b5e; } .lab.r-lab.r-energy { --rc: #f5d63b; } .lab.r-lab.r-ammo { --rc: #e0b27a; }
.stat-row.mp-small { font-size: 10px; margin-top: 1px; }
.stat-row.mp-small .val { font-size: 11px; }
.bar.thin.mp-small { height: 3px; }
/* v0.12.4 — compteurs d'or / cristaux : jamais rognés */
.cp-cur { flex-shrink: 0; min-width: 170px; width: auto; }
.cp-cur b { white-space: nowrap; }
@media (max-width: 760px) { .cp-cur { min-width: 112px; } }
/* v0.12.4 — compagnie du Camp : visages sur leur propre ligne, colonne de droite défilable */
#hub .team-bar { flex-wrap: wrap; }
#hub .team-bar .tp-current { flex: 1 1 100%; order: 3; flex-wrap: nowrap; justify-content: space-around; min-width: 0; }
#hub .team-bar .tp-edit { margin-left: auto; }
#hub .camp-banner { height: clamp(110px, 19vh, 180px); }
.camp-right { scrollbar-width: thin; scrollbar-color: rgba(226,189,95,.6) transparent; }
/* bonus / altérations : ligne dédiée sous le nom, hauteur fixe */
.card > .tags { margin: 0 0 1px; max-width: none; min-height: 15px; display: flex; flex-wrap: nowrap; gap: 2px; overflow: hidden; justify-content: flex-start; }

/* =========================================================
   v0.13 — Interface de combat « E »
   ========================================================= */
.battle-layout.bv-e { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.bv-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bv-round { display: flex; flex-direction: column; min-width: 170px; }
.bv-rn { font-family: var(--font-title); font-weight: 900; font-size: 21px; color: #fff3c4; line-height: 1.05; }
.bv-phase { font-size: 12px; font-weight: 800; color: #cfe3ff; }
.bv-phase.done { color: #9ee6a8; } .bv-phase.play { color: #e2bd5f; }
.bv-e .bv-top .bv-controls { flex: 1; margin: 0; justify-content: flex-end; min-width: 0; }
.bv-e .bv-top .bv-help { display: none; }
.bv-e .bv-top .hint { font-size: 11.5px; }

/* Frise pleine largeur */
.bv-e .bv-order { margin: 0; padding: 6px 8px; overflow-x: auto; scrollbar-width: thin; }
.bv-e .ord-row { flex-wrap: nowrap; gap: 4px; align-items: flex-start; }
.bv-e .ord-row.next { margin-top: 5px; padding-top: 5px; }
.bv-e .ord-lab { width: 54px; padding-top: 4px; }
.bv-e .ord { position: relative; width: 44px; padding: 3px 1px 2px; flex: none; }
.bv-e .ord .px, .bv-e .ord img, .bv-e .ord canvas { height: 26px; }
.bv-e .ord b { font-size: 9px; max-width: 42px; }
.bv-e .ord.other { width: 30px; opacity: .78; margin-top: 8px; }
.bv-e .ord.other .px, .bv-e .ord.other img, .bv-e .ord.other canvas { height: 18px; }
.bv-e .ord.other b { font-size: 7.5px; max-width: 29px; }
.bv-e .ord.mine { border-color: #6fb4ff; }
.bv-e .ord.small { width: 22px; margin-top: 0; opacity: .6; }
.bv-e .ord.small .px, .bv-e .ord.small img, .bv-e .ord.small canvas { height: 14px; }
.ord .own-bar { display: block; width: 70%; height: 3px; margin-top: 2px; border-radius: 2px; }
.ord-tag { display: block; font-style: normal; font-size: 8.5px; font-weight: 900; color: #fff3c4; white-space: nowrap; line-height: 1.2; }
.ord-tag.bad { color: #ffb3a8; }
.ord.cur .ord-tag { color: #fff3c4; }

/* Corps : scène + cartes, liste des alliés à droite en raid */
.bv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
.bv-e.has-others .bv-body { grid-template-columns: minmax(0, 1fr) 280px; }
.bv-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bv-e .field { height: clamp(300px, 38vw, 440px); border-radius: 8px; border: 1px solid var(--gold-soft); }
.bv-e .bv-intent { right: auto; max-width: calc(100% - 330px); }

/* Cartes de vos héros sous la scène */
.bv-e .bv-cards { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1150px) { .bv-e:not(.has-others) .bv-cards[data-n="6"], .bv-e:not(.has-others) .bv-cards[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bv-e .bv-cards[data-n="1"] { grid-template-columns: minmax(0, 360px); }
.bv-e .bv-cards[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv-e .card-id { display: flex; flex-direction: column; gap: 1px; }
.fx-row { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; margin-top: 3px; }
.card.low-hp { box-shadow: inset 0 0 0 1px #ff5a4e; }
.bv-e .card-face { align-self: flex-start; }

/* Icônes d'effets */
.fxi { position: relative; display: inline-flex; flex: none; width: 20px; height: 20px; border-radius: 5px; align-items: center; justify-content: center; cursor: help; box-sizing: border-box; }
.fxi svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fx-up { background: #143a28; border: 1.5px solid #6fdc93; color: #b9f5c8; }
.fx-down { background: #3d1520; border: 1.5px solid #ff8a7c; color: #ffc9c1; }
.fx-el { background: #10162e; background: color-mix(in srgb, var(--ec) 32%, #0b1128); border: 1.5px solid var(--ec); color: #fff; }
.fx-more { background: #2b2f4a; border: 1.5px solid #9aa4cc; color: #eef1ff; font-size: 9.5px; font-weight: 900; }
.fxi i { position: absolute; right: -5px; bottom: -5px; min-width: 11px; height: 11px; padding: 0 1px; border-radius: 6px; background: #0b1128; border: 1px solid #5a6aa8;
  font-size: 7.5px; font-style: normal; font-weight: 900; line-height: 10px; text-align: center; color: #fff; box-sizing: border-box; }
.en-tags .fx-row { justify-content: center; margin-top: 2px; min-height: 0; }
.en-tags .fxi { width: 18px; height: 18px; }
.en-tags .fxi svg { width: 12px; height: 12px; }

/* Barres de PV : couleur du rôle + bouclier au bout */
.hpbar, .hero-mini { display: flex; }
.hpbar .fill, .hero-mini .fill { flex: none; }
.bar.hpbar { height: 9px; }
.hp-tank .fill.hp { background: linear-gradient(180deg, #d9a06a, #a8703f 50%, #7a4c26); }
.hp-heal .fill.hp { background: linear-gradient(180deg, #ffffff, #e9e9e9 50%, #b9b9c4); }
.hp-dps .fill.hp { background: linear-gradient(180deg, #ff9a8f, #e0483c 50%, #a52a22); }
.fill.shield { background: repeating-linear-gradient(135deg, #d8efff 0 3px, #6fa8d6 3px 6px); }
.hp-lab-tank { color: #d9a06a !important; } .hp-lab-heal { color: #f2f2f2 !important; } .hp-lab-dps { color: #ff8a7f !important; }

/* Compteur flottant dans la scène : masquable, redimensionnable */
.bv-e .bv-float { position: absolute; right: 8px; top: 8px; z-index: 12; max-height: calc(100% - 16px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.bv-e .bv-float > * { pointer-events: auto; }
.bv-e .bv-meter { position: relative; flex: none; margin: 0; padding: 7px 8px 16px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(12, 18, 44, .9); border: 1px solid rgba(90, 106, 168, .8); box-sizing: border-box; overflow: hidden; min-width: 190px; min-height: 110px; }
.bv-e .bv-meter .meter-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 3px; align-content: start; scrollbar-width: thin; }
.bv-e .bv-meter .meter-total { font-size: 9.5px; }
.meter-min { margin-left: 4px; width: 22px; padding: 0 !important; font-weight: 900; }
.meter-grip { position: absolute; left: 0; bottom: 0; width: 18px; height: 18px; cursor: nesw-resize; touch-action: none;
  background: linear-gradient(45deg, transparent 0 45%, #e2bd5f 45% 52%, transparent 52% 62%, #e2bd5f 62% 69%, transparent 69%); }
.bv-e .bv-meter.closed { min-width: 0; min-height: 0; padding: 0; background: none; border: 0; }
.meter-pill { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(90, 106, 168, .9); background: rgba(12, 18, 44, .92); color: #eef1ff; font-size: 12px; font-weight: 800; }

/* Fenêtre « Faiblesses » (sous le Compteur, même style) */
.bv-e .bv-weakwin { flex: 0 1 auto; min-height: 0; width: 240px; max-width: 100%; box-sizing: border-box; padding: 7px 8px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(12, 18, 44, .9); border: 1px solid rgba(90, 106, 168, .8); overflow: hidden; }
.bv-e .bv-weakwin.hidden { display: none; }
.bv-e .bv-weakwin.closed { width: auto; padding: 0; background: none; border: 0; }
.bv-weakwin .meter-head { margin-bottom: 0; }
.weak-list { min-height: 0; overflow-y: auto; display: grid; gap: 3px; scrollbar-width: thin; }
.weak-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px; align-items: center; text-align: left; padding: 3px 6px; border-radius: 5px; font-size: 11px;
  background: rgba(19, 29, 69, .9); border: 1px solid rgba(90, 106, 168, .45); color: #eef1ff; }
.weak-row:hover { border-color: var(--gold-soft); }
.weak-row.boss .weak-name { color: var(--lb); font-family: var(--font-title); }
.weak-name { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weak-sh { font-weight: 900; font-size: 11px; white-space: nowrap; }
.weak-els { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px; }
.weak-els .elem { font-size: 10px; }
.weak-els small { color: var(--muted); }
.enemy-actor.weak-spot .px { animation: weakSpot .9s 2; }
@keyframes weakSpot { 50% { filter: drop-shadow(0 0 10px #ffd35a) brightness(1.35); } }

/* Alliés des autres joueurs */
.bv-others { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 8px; background: rgba(12, 18, 44, .7); border: 1px solid var(--gold-soft); }
.bv-others.hidden { display: none; }
.ot-head b { font-family: var(--font-title); color: #f7e3a8; font-size: 14px; }
.ot-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10.5px; font-weight: 800; color: #cfd6f2; }
.ot-legend i { display: inline-block; width: 14px; height: 6px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.ot-legend i.hp-tank { background: #a8703f; } .ot-legend i.hp-heal { background: #f2f2f2; } .ot-legend i.hp-dps { background: #e0483c; }
.ot-legend i.shield-sw { background: repeating-linear-gradient(135deg, #d8efff 0 3px, #6fa8d6 3px 6px); }
.ot-filters { display: flex; gap: 4px; }
.ot-filters button { flex: 1; padding: 4px 2px; font-size: 11.5px; }
.ot-filters button.on { background: var(--teal-dark); color: #fff; border-color: var(--teal); }
.ot-player { display: flex; flex-direction: column; gap: 5px; padding: 7px 8px; border-radius: 7px; background: rgba(19, 29, 69, .9); border: 1px solid rgba(90, 106, 168, .6); }
.ot-ph { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.ot-ph .grow { flex: 1; } .ot-ph .ok { color: #9ee6a8; font-weight: 800; } .ot-ph .wait { color: #e2bd5f; font-weight: 800; }
.ot-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 14px; align-items: center; gap: 6px; }
.ot-row.ko { opacity: .45; }
.ot-name { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-row .bar { height: 6px; }
.ot-fx { display: flex; gap: 2px; }
.ot-fx .fxi { width: 15px; height: 15px; border-radius: 4px; }
.ot-fx .fxi svg { width: 10px; height: 10px; }
.ot-fx .fxi i { display: none; }
.ot-st { font-size: 11px; font-weight: 900; color: #9ee6a8; text-align: center; }
.ot-empty { font-size: 11px; color: var(--muted); }
/* Couleur + forme de chaque joueur (lisible sans les couleurs) */
.own-mark { display: inline-block; width: 10px; height: 10px; flex: none; }
.own-mark.own-0, .own-bar.own-0 { background: #6fb4ff; border-radius: 5px; }
.own-mark.own-1, .own-bar.own-1 { background: #f0a04b; }
.own-mark.own-2, .own-bar.own-2 { background: #b58cff; transform: rotate(45deg) scale(.85); }
.own-mark.own-3 { background: transparent; border: 2px solid #5fd3c0; border-radius: 5px; box-sizing: border-box; }
.own-bar.own-2 { transform: none; }
.own-bar.own-3 { background: #5fd3c0; height: 2px; }
.ot-player.own-1 { border-style: dashed; border-color: rgba(240, 160, 75, .7); }
.ot-player.own-2 { border-style: dotted; border-color: rgba(181, 140, 255, .8); }
.ot-player.own-3 { border-style: double; border-width: 3px; border-color: rgba(95, 211, 192, .7); }

/* Formation des héros : tank → mêlée → distance → soigneur de gauche à droite (positions calculées par BattleView.placeAlly) */
.bv-e .party-area .hero-actor[style] { left: var(--ax); top: var(--ay); z-index: var(--az); }
@media (max-width: 600px) { .bv-e .party-area .hero-actor[style] { left: var(--axm); } }
/* Scène : héros des autres joueurs estompés, formation à 12 */
.hero-actor.other { opacity: .72; }
.party-area.many .hero-actor { transform: translate(-50%, -100%) scale(.72); transform-origin: 50% 100%; }
.party-area.many .hero-actor.f0 { left: 58%; top: 60%; } .party-area.many .hero-actor.f1 { left: 68%; top: 60%; } .party-area.many .hero-actor.f2 { left: 78%; top: 60%; } .party-area.many .hero-actor.f3 { left: 88%; top: 60%; }
.party-area.many .hero-actor.f4 { left: 61%; top: 76%; } .party-area.many .hero-actor.f5 { left: 71%; top: 76%; } .party-area.many .hero-actor.f6 { left: 81%; top: 76%; } .party-area.many .hero-actor.f7 { left: 91%; top: 76%; }
.party-area.many .hero-actor.f8 { left: 58%; top: 93%; } .party-area.many .hero-actor.f9 { left: 68%; top: 93%; } .party-area.many .hero-actor.f10 { left: 78%; top: 93%; } .party-area.many .hero-actor.f11 { left: 88%; top: 93%; }

/* Tablette / mobile */
@media (max-width: 1000px) { .bv-e.has-others .bv-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .battle-layout.bv-e { padding: 4px; gap: 6px; }
  .bv-round { min-width: 0; }
  .bv-rn { font-size: 17px; }
  .bv-e .bv-cards, .bv-e .bv-cards[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bv-e .bv-cards[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .bv-e .bv-cards[data-n="3"] .card { padding: 5px 6px; }
  .bv-e .field { height: 290px; }
  .bv-e .bv-intent { max-width: calc(100% - 20px); top: 44px; }
  .bv-e .bv-meter:not(.closed) { max-width: calc(100% - 16px); }
  .bv-e .bv-weakwin:not(.closed) { width: 210px; }
}
@media (max-width: 760px) { .bv-e .bv-top .hint { display: none; } .bv-e .bv-top .bv-controls { flex: 0 0 auto; margin-left: auto; } }
/* pendant la manche, les cartes restent survolables (infobulles) : le clic est bloqué par le code */
.bv-e .bv-cards.locked { pointer-events: auto; }
.bv-e .bv-cards.locked .card { cursor: default; }

.ot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ot-fold { padding: 2px 8px; font-size: 11px; }
.bv-others.folded .ot-legend, .bv-others.folded .ot-filters, .bv-others.folded .ot-row, .bv-others.folded .ot-empty { display: none; }

/* =========================================================
   v0.13.1 — Galerie des héros (« Pokédex »)
   ========================================================= */
.topbar-r { display: flex; align-items: center; gap: 10px; }
.ga-head { display: grid; grid-template-columns: minmax(220px, 1.2fr) auto; gap: 10px 18px; align-items: center; margin: 10px 12px 0; padding: 12px 16px !important; }
.ga-prog > div:first-child { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ga-prog span { font-weight: 900; color: var(--gold); }
.ga-rar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ga-elems { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ga-el-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; }
.ga-el-chip small { font-weight: 800; opacity: .85; }
.ga-el-chip.on { outline: 2px solid var(--gold); background: rgba(226, 189, 95, .2); }
.ga-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 12px; }
.ga-seg { margin: 0; }
.ga-sort { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.ga-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 12px 20px; }
.ga-cards .ga-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; border-radius: 8px; text-align: center;
  background: rgba(16, 26, 58, .92); border: 1px solid var(--gold-soft); color: #eef1ff; min-height: 200px; }
.ga-cards .ga-item:hover { box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(0, 0, 0, .3); }
.ga-item.r4 { border-color: rgba(181, 140, 255, .7); } .ga-item.r5 { border-color: rgba(226, 189, 95, .9); } .ga-item.r6 { border-color: #ff9ad0; box-shadow: 0 0 10px rgba(255, 154, 208, .25); }
.ga-num { font-family: var(--font-title); font-weight: 900; font-size: 12px; color: #9aa4cc; }
.ga-cards .ga-num { position: absolute; left: 8px; top: 6px; }
.ga-cards .ga-el { position: absolute; right: 6px; top: 5px; }
.ga-sprite { height: 84px; display: flex; align-items: flex-end; justify-content: center; margin-top: 14px; }
.ga-name { font-family: var(--font-title); font-size: 15px; }
.ga-item small { font-size: 11px; color: #cfd6f2; }
.ga-state { color: #9ee6a8 !important; font-weight: 800; }
.ga-item.missing { background: rgba(10, 14, 32, .85); border-style: dashed; }
.ga-item.missing .ga-sprite .px, .ga-item.missing .ga-face .px, .ga-big.missing .px { filter: brightness(0) drop-shadow(0 0 1px rgba(226, 189, 95, .8)); opacity: .75; }
.ga-item.missing .ga-name { color: #aeb5d6; }
.ga-item.missing .ga-state { color: #e2bd5f !important; }
.ga-lock { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 10px; background: rgba(8, 12, 24, .85); color: #e2bd5f; border: 1px solid rgba(226, 189, 95, .6); white-space: nowrap; }
/* Affichage « liste » */
.ga-list { display: flex; flex-direction: column; gap: 6px; margin: 0 12px 20px; }
.ga-list .ga-item { display: grid; grid-template-columns: 38px 40px minmax(110px, 1fr) 84px 84px 84px minmax(170px, 1.4fr); justify-items: start; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px;
  background: rgba(16, 26, 58, .92); border: 1px solid var(--gold-soft); color: #eef1ff; text-align: left; }
.ga-list .ga-face { height: 34px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ga-list .ga-role { font-size: 12px; color: #cfd6f2; }
@media (max-width: 760px) {
  .ga-head { grid-template-columns: 1fr; }
  .ga-rar { justify-content: flex-start; }
  .ga-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ga-list .ga-item { grid-template-columns: 32px 36px minmax(0, 1fr) auto; }
  .ga-list .ga-role, .ga-list .rar, .ga-list .ga-state { display: none; }
}
/* Fiche */
.ga-detail { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; }
.ga-big { height: 140px; display: flex; align-items: flex-end; justify-content: center; border-radius: 8px; background: rgba(8, 12, 24, .45); overflow: hidden; }
.ga-info p { margin: 4px 0; }
.ga-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ga-actions .btn-small { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 12px; }
.ga-actions small { font-weight: 600; opacity: .85; }
@media (max-width: 520px) { .ga-detail { grid-template-columns: 1fr; } }

/* =========================================================
   v0.13.2 — Écran de ciblage des sorts
   ========================================================= */
.tg-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 7, 18, .72); }
.tg-panel { width: min(1180px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px;
  border-radius: 12px; background: #0b1128; border: 1px solid var(--c-gold, #e2bd5f); color: #eef1ff; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.tg-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tg-steps i { width: 24px; height: 2px; background: #3a4a86; }
.tg-steps .grow { flex: 1; }
.tg-step { padding: 7px 13px; border-radius: 18px; background: #1d2a5c; color: #9aa4cc; font-weight: 800; font-size: 13px; }
.tg-step.done { background: #1f4a33; color: #b9f5c8; }
.tg-step.cur { background: #e2bd5f; color: #1b2144; font-weight: 900; }
.tg-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.tg-side { display: flex; flex-direction: column; gap: 10px; }
.tg-spell { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; background: #f4ecd8; color: #1b2144; border: 2px solid #e2bd5f; }
.tg-spell small { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: #7a5a1c; text-transform: uppercase; }
.tg-spell b { font-family: var(--font-title); font-size: 22px; }
.tg-spell p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.tg-spell .tg-eff { font-weight: 800; color: #1f6b43; }
.tg-cost { display: flex; flex-wrap: wrap; gap: 5px; }
.tg-cost span { padding: 1px 8px; border-radius: 4px; background: #dfe9ff; color: #1b3a7a; font-size: 12px; font-weight: 800; }
.tg-when { padding: 12px; border-radius: 10px; background: #131d45; border: 1px solid #2c3a74; }
.tg-when small { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: #9aa4cc; text-transform: uppercase; }
.tg-when p { margin: 8px 0 0; font-size: 13px; color: #cfd6f2; }
.tg-ord { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tg-ord span { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #1d2a5c; border: 1px solid #6fb4ff; }
.tg-ord span.enemy { background: #4a1d28; border-color: #ff7a6b; }
.tg-ord span.me { background: #e2bd5f; border: 2px solid #fff3c4; }
.tg-ord .px { height: 20px; width: auto; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-content: start; }
.tg-card { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border-radius: 10px; text-align: left; color: #eef1ff;
  background: #16204a; border: 1px solid #3a4a86; cursor: pointer; min-height: 120px; }
.tg-card:hover, .tg-card:focus-visible { border-color: #e2bd5f; box-shadow: 0 0 0 1px #e2bd5f, 0 6px 16px rgba(0, 0, 0, .35); }
.tg-card.best { background: #243268; border: 2px solid #e2bd5f; }
.tg-card.enemy { background: #221629; border-color: #7a3a48; }
.tg-card.enemy.weak { border: 2px solid #ffcf5a; }
.tg-h { display: flex; align-items: center; gap: 8px; }
.tg-h b { font-family: var(--font-title); font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-face { width: 30px; height: 30px; flex: none; border-radius: 6px; background: #2a3a74; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.tg-face .px { height: 28px; width: auto; }
.tg-role { flex: none; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 900; }
.tg-role.role-tank { background: #a8703f; color: #fff; } .tg-role.role-heal { background: #f2f2f2; color: #1b2144; } .tg-role.role-dps { background: #e0483c; color: #fff; }
.tg-badge { flex: none; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 900; background: #e2bd5f; color: #1b2144; }
.tg-badge.warn { background: #ffcf5a; }
.tg-sub { font-size: 11.5px; color: #9aa4cc; }
.tg-plan { color: #9ee6a8; font-weight: 800; }
.tg-bar { height: 12px; border-radius: 6px; display: flex; overflow: hidden; }
.tg-bar .fill { flex: none; }
.fill.gain { background: #b9f5c8; }
.tg-line { font-size: 13px; }
.tg-line small { color: #cfd6f2; font-weight: 700; } .tg-line small.ok { color: #9ee6a8; }
.tg-line .brk { color: #ffd35a; }
.tg-note { font-size: 12px; font-weight: 800; color: #cfd6f2; }
.tg-note.warn { color: #e2bd5f; } .tg-note.bad { color: #ffb3a8; } .tg-note.ok { color: #9ee6a8; }
.tg-foot { padding: 10px 14px; border-radius: 10px; background: #131d45; border: 1px solid #2c3a74; font-size: 13.5px; color: #cfd6f2; }
.tg-foot b { color: #fff3c4; }
@media (max-width: 760px) {
  .tg-overlay { padding: 0; align-items: stretch; }
  .tg-panel { max-height: 100vh; border-radius: 0; padding: 12px; gap: 10px; }
  .tg-steps i, .tg-step:not(.cur) { display: none; }
  .tg-body { grid-template-columns: 1fr; }
  .tg-when { display: none; }
  .tg-spell { padding: 10px; } .tg-spell b { font-size: 18px; }
  .tg-grid { grid-template-columns: 1fr; }
}

/* ---------- v0.22 — Combats en boucle (loop.js) ---------- */
.loop-sel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.loop-lbl { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.loop-pills { display: inline-flex; gap: 4px; }
.loop-pill { min-width: 34px; padding: 4px 8px; font-weight: 900; font-size: 13px; background: #1a2550; border-color: rgba(200, 160, 74, .45); }
.loop-pill.on { background: var(--c-gold2); color: var(--c-ink); box-shadow: 0 0 0 2px #fff1c4; }
.loop-quick { margin-left: auto; }
.loop-quick:disabled { opacity: .5; }
.screen .crypt-card .loop-sel .loop-lbl { color: var(--muted); }
.exp-replay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.exp-replay .loop-sel { margin: 0; flex: 1 1 260px; }
.exp-replay .btn-primary { font-size: 13px; padding: 8px 16px; }
.exp-replay .btn-primary:disabled { filter: grayscale(1); animation: none; }
.loop-banner { display: flex; align-items: center; gap: 10px; margin: 6px 12px; padding: 7px 12px; border-radius: 8px;
  background: var(--c-ink); border: 1px solid var(--c-gold); color: #f4ecd8; font-size: 13.5px; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.loop-banner .loop-txt { flex: 1; min-width: 0; }
.loop-banner .loop-txt b { color: #fff1c4; }
.loop-banner .loop-txt i { color: #ffcf5a; font-style: normal; }
.loop-banner .loop-stop { flex: none; white-space: nowrap; }
.modal-box.loop-modal { max-width: 460px; }
.loop-bilan { font-size: 13.5px; }
.loop-bilan .lb-head { color: #f4ecd8; margin-bottom: 10px; line-height: 1.5; }
.loop-bilan .lb-head small { color: var(--muted); }
.loop-bilan .lb-win { color: #9ee6a8; font-weight: 800; } .loop-bilan .lb-lose { color: #ffb3a8; font-weight: 800; }
.loop-tag { display: inline-block; padding: 0 7px; border-radius: 9px; background: var(--c-gold2); color: var(--c-ink); font-size: 11px; font-weight: 900; }
.loop-bilan .lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.loop-bilan .lb-row { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 6px; background: #182552; border: 1px solid #2c3a74; }
.loop-bilan .lb-row span { font-size: 11px; color: var(--muted); } .loop-bilan .lb-row b { color: #fff1c4; font-size: 15px; text-align: center; }
.loop-bilan .lb-row small { display: block; font-size: 10.5px; color: #cfd6f2; }
.loop-bilan h4 { margin: 12px 0 4px; font-family: var(--font-title); font-size: 13px; color: var(--c-gold2); }
.loop-bilan .lb-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.loop-bilan .lb-list b { white-space: nowrap; color: #f4ecd8; text-align: right; } .loop-bilan .lb-list small { color: #9ee6a8; font-weight: 700; }
@media (max-width: 600px) {
  .loop-banner { margin: 6px 8px; padding: 6px 8px; font-size: 12.5px; }
  .loop-quick { margin-left: 0; }
}

/* ---------- v0.28 : canalisations (jauge, menu, annonce du boss) et Silence ---------- */
.chan-bar { display: flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 800;
  background: rgba(179, 157, 219, .16); border: 1px solid rgba(179, 157, 219, .55); color: #e4d8ff; min-width: 0; }
.chan-bar .cb-lab { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan-bar b { font-size: 10.5px; }
.pips { display: inline-flex; gap: 2px; flex: none; }
.pips i { width: 9px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.pips i.on { background: #c9b2ff; box-shadow: 0 0 4px #b39ddb; }
.chan-bar.foe .cb-lab { white-space: normal; line-height: 1.15; text-align: left; }
.chan-bar.foe { background: rgba(80, 10, 10, .78); border-color: #ff5a4e; color: #ffd9d4; animation: chanWarn 1s infinite alternate; }
.chan-bar.foe .pips i.on { background: #ff7a5e; box-shadow: 0 0 5px #ff5a4e; }
@keyframes chanWarn { from { box-shadow: 0 0 0 rgba(255, 90, 78, 0); } to { box-shadow: 0 0 10px rgba(255, 90, 78, .75); } }
.en-chan:empty { display: none; }
.en-chan .chan-soon { display: inline-block; margin-top: 2px; font-size: 9.5px; font-weight: 800; color: #ffcf9e; background: rgba(60, 30, 5, .75); border: 1px dashed #d9a15a; border-radius: 3px; padding: 0 5px; }
.enemy-actor.channeling .px { filter: drop-shadow(0 0 10px rgba(255, 80, 60, .85)) drop-shadow(0 0 1px #000); }
.enemy-actor.chan-pulse .px { animation: chanPulse .5s; }
@keyframes chanPulse { 40% { transform: scale(1.06); filter: brightness(1.6) drop-shadow(0 0 16px #ff5a4e); } }
.act-chan { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 4; pointer-events: none; }
.act-chan .pips i { width: 8px; height: 4px; }
.hero-actor.channeling .px { filter: drop-shadow(0 0 8px rgba(179, 157, 219, .95)) drop-shadow(0 0 1px #000); }
.chan-line:empty { display: none; }
.card.acted.chan-def { opacity: .85; border-color: rgba(179, 157, 219, .7); }
.card.chan-def .card-state { color: #c9b2ff; }
.sk-tag.chan { background: #b39ddb; color: #1c0f3a; }
.pick-row.chan-row { border-color: #b39ddb; box-shadow: 0 0 10px rgba(179, 157, 219, .35); }
.banner[data-kind]:not([data-kind=""]) { font-size: 20px; letter-spacing: .06em; padding: 8px 12px; }
.banner[data-kind="warn"] { color: #ffe0d6; text-shadow: 0 0 12px #ff5a4e, 0 2px 0 #000; border-color: rgba(255, 90, 78, .7); background: linear-gradient(90deg, transparent, rgba(60, 10, 10, .88) 20%, rgba(60, 10, 10, .88) 80%, transparent); }
.banner[data-kind="danger"] { color: #fff; text-shadow: 0 0 16px #ff2a1e, 0 2px 0 #000; border-color: #ff5a4e; background: linear-gradient(90deg, transparent, rgba(110, 10, 10, .92) 20%, rgba(110, 10, 10, .92) 80%, transparent); }
.banner[data-kind="good"] { color: #fff6d6; text-shadow: 0 0 12px var(--lb), 0 2px 0 #000; border-color: rgba(255, 211, 90, .7); }
@media (max-width: 700px) { .banner[data-kind]:not([data-kind=""]) { font-size: 14px; letter-spacing: .03em; padding: 6px 8px; } .chan-bar { font-size: 9px; padding: 1px 4px; } .en-chan .chan-soon { font-size: 8.5px; } }
.tier-info.chan-info { color: #ffd2c8; font-size: 12px; }
.tier-info.chan-info.off { color: var(--muted); opacity: .8; }
/* Téléphone étroit : les boutons du bandeau (Auto, Vitesse, Jouer la manche) passent à la ligne au lieu de déborder */
@media (max-width: 440px) { .bv-e .bv-top .bv-controls { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; } }
/* Menus de choix : la description passe sous la ligne du sort (évitait une colonne étroite, coupée sur téléphone) */
.pick-row { flex-wrap: wrap; }
.pick-row > .sk-line + small { flex: 1 1 100%; margin-top: 0; }
@media (max-width: 700px) { .en-chan .chan-bar .pips { display: none; } .en-chan .chan-bar { gap: 3px; font-size: 8.5px; } .en-chan .chan-bar .cb-lab { overflow: visible; text-overflow: clip; } }

/* v0.30 — Tension (Mira), Absorption (Anselme), Imprégnation et pierres levées (Malo), balles d'Isaure, interruptions */
.r-tension { --rc: #7fd07a; } .r-absorption { --rc: #9b8cff; }
.lab.r-lab.r-tension { --rc: #9ee89a; } .lab.r-lab.r-absorption { --rc: #b9aeff; }
.fill.resf.r-ammo { background: repeating-linear-gradient(90deg, var(--rc) 0 calc(100% / var(--n, 6) - 2px), transparent calc(100% / var(--n, 6) - 2px) calc(100% / var(--n, 6))); }
.bar.res-bar { position: relative; }
.res-mark { position: absolute; top: -1px; bottom: -1px; width: 1px; background: rgba(255, 255, 255, .55); pointer-events: auto; }
.res-line { flex-wrap: wrap; }
.res-pill.r-imp, .res-pill.r-load { background: color-mix(in srgb, var(--ec, #888) 28%, transparent); display: inline-flex; align-items: center; gap: 3px; }
.res-pill.r-imp .elem, .res-pill.r-load .elem { font-size: 8.5px; }
.res-pill.r-totem { background: rgba(245, 214, 59, .22); }
.res-pill.r-first { background: rgba(200, 148, 86, .3); }
.sk-tag.int { background: #ff9a3c; color: #2a1200; padding: 0 4px; border-radius: 3px; }
.skill-line .sk-tag.int { margin-left: 4px; }
.tag.immune { background: #3a3350; color: #d9d0ff; border: 1px solid #8a7cd8; }
.tag.caster { background: #2e3558; color: #bfd0ff; }
.tag.mk { background: rgba(245, 214, 59, .2); color: #ffe89a; }
.en-own { flex-wrap: wrap; gap: 3px; }
.ga-lore { font-style: italic; line-height: 1.5; margin: 4px 0 6px; color: #e9e1c9; }
.elem.imp-el { background: linear-gradient(90deg, #ff7a45, #a8e6ff, #f5d63b, #8fd16a); color: #1a1420; padding: 0 4px; border-radius: 3px; font-size: 9px; font-weight: 800; }
