/* =========================================================
   v0.97 : Camp « L'Abîme » (interface gothique, au choix dans les Paramètres)
   Tout est préfixé par #hub.camp.ui-abime : l'interface classique ne change pas.
   Images : public/img/ui/abime/ (kit fourni par le joueur, découpé).
   ========================================================= */
#hub.camp.ui-abime {
  --ab-nav: calc(min(100vw, 1120px) * 176 / 1636);
  --ab-gold: #d8b468; --ab-gold2: #e8c77a; --ab-cream: #efe6d2; --ab-ink: #2b1d0c; --ab-line: #8a6d35;
  background: #07090a url(../img/ui/abime/fond.jpg) 50% 25% / cover no-repeat;
  color: var(--ab-cream);
}
#hub.camp.ui-abime .camp-veil {
  background:
    linear-gradient(90deg, rgba(5,7,8,.92) 0, rgba(5,7,8,.5) 10%, rgba(5,7,8,0) 24%, rgba(5,7,8,0) 62%, rgba(5,7,8,.65) 74%, rgba(5,7,8,.92) 100%),
    linear-gradient(180deg, rgba(5,7,8,.8) 0, rgba(5,7,8,0) 22%),
    linear-gradient(0deg, rgba(5,7,8,.85) 0, rgba(5,7,8,0) 160px);
}
#hub.camp.ui-abime .badge-on::after { border-color: #120e0a; }

/* Pastille « Sans titre » : seulement dans cette interface */
.cp-notitle { display: none; }
#hub.camp.ui-abime .cp-notitle { display: flex; color: #6b5536; font-style: italic; }

/* ---------- Profil : cadre du portrait, barre du nom, bourses ---------- */
#hub.camp.ui-abime .camp-profile {
  top: 8px; left: 12px; width: clamp(380px, 34vw, 540px); aspect-ratio: 573 / 193; height: auto;
  display: block; padding: 0; container-type: inline-size;
}
#hub.camp.ui-abime .camp-profile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url(../img/ui/abime/profil.webp) 0 0 / 100% 100% no-repeat;
}
#hub.camp.ui-abime .cp-avatar-wrap { position: absolute; inset: 0; display: block; }
#hub.camp.ui-abime .cp-avatar {
  position: absolute; left: 4.27%; top: 13.2%; width: 23.2%; height: auto; aspect-ratio: 1; z-index: 0;
  border: 0; border-radius: 50%; box-shadow: inset 0 0 18px #000;
  background: radial-gradient(circle at 50% 38%, #2a6e57 0, #10302a 45%, #060c0b 78%); color: var(--ab-gold2); font-size: 9cqw;
}
#hub.camp.ui-abime .cp-lvl {
  position: absolute; left: 13.7%; top: 78.6%; width: 5.6%; height: 16.6%; z-index: 2; padding: 0;
  display: grid; place-items: center; background: none; border: 0; font-size: 0; color: var(--ab-gold2);
}
#hub.camp.ui-abime .cp-lvl b { font-family: Cinzel, serif; font-size: 2.7cqw; font-weight: 700; text-shadow: 0 1px 2px #000; }
#hub.camp.ui-abime .cp-strips { position: static; display: block; padding: 0; }
#hub.camp.ui-abime .cp-name {
  position: absolute; left: 34.6%; top: 17.5%; right: 5%; height: 47.5%; z-index: 2;
  width: auto; max-width: none; padding: 0; background: none; clip-path: none; color: var(--ab-cream);
}
#hub.camp.ui-abime .cp-who { position: static; font-size: 2.8cqw; line-height: 1.25; text-shadow: 0 1px 2px #000; }
#hub.camp.ui-abime .cp-who > span:first-child { display: block; max-width: 49%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 1.2cqw; }
#hub.camp.ui-abime .cp-title {
  position: absolute; left: 51.7%; top: 11.5%; width: 37.5%; height: 27%; margin: 0; padding: 0 2%;
  display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 0; box-shadow: none;
  font-family: Cinzel, serif; font-size: 1.9cqw; font-weight: 700; letter-spacing: .04em; color: var(--ab-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; cursor: pointer;
}
#hub.camp.ui-abime .cp-rec { margin-top: .8cqw; gap: 2cqw; text-shadow: 0 1px 2px #000; }
#hub.camp.ui-abime .cp-rec span { font-size: 2.2cqw; color: #c9a55a; letter-spacing: .08em; }
#hub.camp.ui-abime .cp-rec b { font-size: 4cqw; color: var(--ab-cream); }
/* XP de compte : anneau dans la petite pastille de droite (l'infobulle reste celle de la barre) */
#hub.camp.ui-abime .cp-acc {
  position: absolute; left: -19.4%; top: 106.5%; width: 9.27%; height: auto; aspect-ratio: 1; margin: 0; z-index: 3;
  border-radius: 50%; cursor: help;
}
#hub.camp.ui-abime .cp-acc .acc-bar { display: none; }
#hub.camp.ui-abime .cp-acc::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: conic-gradient(var(--ab-gold2) calc(var(--accxp, 0) * 1%), rgba(255,255,255,.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%);
}
#hub.camp.ui-abime .cp-money { position: static; display: block; }
#hub.camp.ui-abime .cp-cur {
  position: absolute; z-index: 2; min-width: 0; width: auto; padding: 0; gap: 0; clip-path: none;
  display: flex; align-items: center; justify-content: center; font-size: 3.2cqw; color: var(--ab-cream); text-shadow: 0 1px 2px #000;
  background: url(../img/ui/abime/or.webp) 0 0 / 100% 100% no-repeat;
}
#hub.camp.ui-abime .cp-cur .ic { display: none; }
#hub.camp.ui-abime .cp-cur b { flex: none; text-align: center; }
#hub.camp.ui-abime .cp-money > .cp-cur:nth-child(1) { left: 33.6%; top: 69%; width: 26%; height: 29.5%; padding-left: 6.5%; padding-right: 1.5%; }
#hub.camp.ui-abime .cp-money > .cp-cur:nth-child(2) { left: 61.2%; top: 67.9%; width: 28.3%; height: 31%; padding-left: 6%; padding-right: 7.5%; background-image: url(../img/ui/abime/cristaux.webp); }

/* ---------- Raccourcis de gauche : boutons du kit ---------- */
#hub.camp.ui-abime .camp-side {
  top: calc(clamp(380px, 34vw, 540px) * 193 / 573 + 16px); left: 12px; width: auto;
  display: grid; grid-template-columns: 92px; gap: 4px;
}
#hub.camp.ui-abime .cs-btn { gap: 1px; color: var(--ab-cream); }
#hub.camp.ui-abime .cs-btn .cs-ic {
  width: 88px; height: 54px; border: 0; border-radius: 0; color: var(--ab-gold);
  background: url(../img/ui/abime/bouton.webp) center / contain no-repeat;
}
#hub.camp.ui-abime .cs-btn .cs-ic .ic { width: 24px; height: 24px; stroke: var(--ab-gold); filter: drop-shadow(0 1px 1px #000); }
#hub.camp.ui-abime #hubInboxBtn .cs-ic { background-image: url(../img/ui/abime/b-quetes.webp); }
#hub.camp.ui-abime #hubHarvestBtn .cs-ic { background-image: url(../img/ui/abime/b-recoltes.webp); }
#hub.camp.ui-abime .cs-btn[data-go="season"] .cs-ic { background-image: url(../img/ui/abime/b-saison.webp); }
#hub.camp.ui-abime .cs-btn[data-go="social"] .cs-ic { background-image: url(../img/ui/abime/b-social.webp); }
#hub.camp.ui-abime #hubInboxBtn .cs-ic .ic, #hub.camp.ui-abime #hubHarvestBtn .cs-ic .ic,
#hub.camp.ui-abime .cs-btn[data-go="season"] .cs-ic .ic, #hub.camp.ui-abime .cs-btn[data-go="social"] .cs-ic .ic { visibility: hidden; }
#hub.camp.ui-abime .cs-btn > span:not(.cs-ic) { font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; color: var(--ab-cream); text-shadow: 0 1px 3px #000, 0 0 6px #000; }
#hub.camp.ui-abime .cs-btn .cs-sub { color: var(--ab-gold2); text-shadow: 0 1px 2px #000; }
#hub.camp.ui-abime .cs-btn.badge-on::after { top: 2px; right: 8px; }
#hub.camp.ui-abime .cdots { top: -2px; right: 2px; }
#hub.camp.ui-abime .cdots i { border-color: #120e0a; }
@media (max-height: 880px) and (min-width: 761px) {
  #hub.camp.ui-abime .camp-side { grid-template-columns: 92px 92px; column-gap: 6px; }
}

/* ---------- Options (plein écran, paramètres, déconnexion) ---------- */
#hub.camp.ui-abime .camp-opts { top: 12px; right: 14px; }
#hub.camp.ui-abime .camp-opts button {
  width: 42px; height: 42px; border-radius: 50%; color: var(--ab-gold);
  background: radial-gradient(circle at 50% 35%, #232a28, #0a0d0c 75%); border: 2px solid var(--ab-line); box-shadow: 0 2px 6px #000, inset 0 0 6px #000;
}
#hub.camp.ui-abime .camp-opts .ic { width: 22px; height: 22px; }

/* ---------- Colonne de droite ---------- */
#hub.camp.ui-abime .camp-right { top: 64px; right: 12px; bottom: calc(var(--ab-nav) + 62px); width: clamp(340px, 29vw, 460px); gap: 8px; }
#hub.camp.ui-abime .camp-banner {
  height: auto; aspect-ratio: 559 / 253; border: 0; outline: 0; box-shadow: none; overflow: visible;
  background: url(../img/ui/abime/rappel.webp) 0 0 / 100% 100% no-repeat;
}
#hub.camp.ui-abime .cb-text { left: 3.5%; right: 3.5%; bottom: 6%; padding: 22px 10px 6px; background: linear-gradient(180deg, rgba(5,8,6,0), rgba(5,8,6,.86) 55%); }
#hub.camp.ui-abime .cb-title { font-family: Cinzel, serif; font-weight: 700; font-size: clamp(20px, 1.9vw, 28px); color: var(--ab-gold2); text-shadow: 0 2px 4px #000, 0 0 12px #000; }
#hub.camp.ui-abime .cb-sub { color: var(--ab-cream); text-shadow: 0 1px 3px #000; }

/* Parchemin : Objectif et Chronique */
#hub.camp.ui-abime .camp-goal {
  background: none; box-shadow: none; color: var(--ab-ink);
  border: 18px solid transparent; border-image: url(../img/ui/abime/parchemin.webp) 26 28 24 28 fill / 18px 20px 18px 20px stretch;
  padding: 2px 6px 0; gap: 7px;
}
#hub.camp.ui-abime .camp-goal .cg-kicker { color: #6b4a1c; }
#hub.camp.ui-abime .camp-goal .cg-title { color: var(--ab-ink); }
#hub.camp.ui-abime .camp-goal .cg-row { color: #3a2a16; }
#hub.camp.ui-abime .camp-goal .cg-bar { background: rgba(43,29,12,.2); box-shadow: inset 0 0 0 1px rgba(43,29,12,.25); }
#hub.camp.ui-abime .camp-goal .cg-bar > div { background: linear-gradient(90deg, #1f6b52, #3fb487); }
#hub.camp.ui-abime .camp-goal .cg-rew { color: #4a3a26; }
#hub.camp.ui-abime .camp-goal .cg-chip { background: #16130f; color: var(--ab-cream); border: 1px solid var(--ab-line); }
#hub.camp.ui-abime .camp-goal .cg-zone { color: #5a4630; } #hub.camp.ui-abime .camp-goal .cg-zone em { color: var(--ab-ink); }
#hub.camp.ui-abime .cg-go {
  min-width: 124px; height: 42px; padding: 0 30px 0 14px; border: 0; border-radius: 0;
  background: url(../img/ui/abime/aller.webp) 0 0 / 100% 100% no-repeat; color: #e8dcc0; text-shadow: 0 1px 2px #000;
}
#hub.camp.ui-abime .camp-chron.ready { border-color: transparent; box-shadow: none; filter: drop-shadow(0 0 8px rgba(232,169,42,.75)); }
#hub.camp.ui-abime .camp-chron.ready .cg-go { background-color: transparent; }

/* Saison : panneau à la rose des vents */
#hub.camp.ui-abime .camp-season {
  min-height: 0; aspect-ratio: 559 / 171; border: 0; box-shadow: none; overflow: visible;
  background: url(../img/ui/abime/saison.webp) 0 0 / 100% 100% no-repeat;
}
#hub.camp.ui-abime .camp-season.blocked { filter: drop-shadow(0 0 6px rgba(224,82,74,.8)); }
#hub.camp.ui-abime .camp-season .csn-scene { display: none; }
#hub.camp.ui-abime .camp-season .csn-body { align-content: center; padding: 6% 14% 6% 26%; background: none; }
#hub.camp.ui-abime .camp-season .cg-kicker { color: #c9a55a; }
#hub.camp.ui-abime .camp-season .cg-bar { background: #1a1d1b; box-shadow: inset 0 0 0 1px #6b5a35; }
#hub.camp.ui-abime .camp-season .cg-bar > div { background: linear-gradient(90deg, #2f8f6a, #6fe0a8); }

/* Cadre sombre : Compagnie et Expédition en cours */
#hub.camp.ui-abime .camp-company, #hub.camp.ui-abime #hubIdle.camp-idle {
  background: none; box-shadow: none; color: var(--ab-cream);
  border: 16px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 16px 18px 14px 16px stretch;
  padding: 0 4px;
}
#hub.camp.ui-abime #hubIdle.ci-bad { filter: drop-shadow(0 0 6px rgba(255,90,78,.7)); }
#hub.camp.ui-abime .cc-head { font-family: Cinzel, serif; color: #c9a55a; }
#hub.camp.ui-abime .camp-company .team-bar button { border-color: var(--ab-line); background: linear-gradient(#1f2725, #0f1413); color: var(--ab-cream); }

/* ---------- Menus secondaires : plaques ---------- */
#hub.camp.ui-abime .camp-sec { right: 12px; bottom: calc(var(--ab-nav) + 8px); gap: 6px; }
#hub.camp.ui-abime .camp-sec button {
  flex-direction: row; justify-content: center; min-width: 0; width: 112px; height: 44px; padding: 0 10px;
  background: url(../img/ui/abime/plaque.webp) 0 0 / 100% 100% no-repeat;
  color: var(--ab-cream); font-family: "Cormorant Garamond", Georgia, serif; font-size: 15px; font-weight: 700; text-shadow: 0 1px 2px #000; white-space: nowrap;
}
#hub.camp.ui-abime .camp-sec button .ic { display: none; }

/* ---------- Barre du bas : cadre du kit (sans icônes), icônes à part ----------
   v0.97.1 : largeur plafonnée (1120 px, jamais agrandie au-delà de l'image : plus de flou),
   aucun onglet allumé d'office ; lueur verte au survol, enfoncement au clic. */
#hub.camp.ui-abime .camp-nav {
  left: 50%; right: auto; width: min(100vw, 1120px); transform: translateX(-50%);
  height: var(--ab-nav); display: block; padding: 0; clip-path: none; color: var(--ab-cream);
  background: url(../img/ui/abime/barre.webp) 0 0 / 100% 100% no-repeat;
}
#hub.camp.ui-abime .cn {
  position: absolute; top: 36%; bottom: 8%; width: 13%; height: auto; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  color: #e8dcc0; background: none; border-radius: 10px; transition: background-color .15s, color .15s;
}
#hub.camp.ui-abime .cn::before {
  content: ""; flex: 1; width: 100%; min-height: 0; background: center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.7)); transition: filter .15s, transform .12s;
}
#hub.camp.ui-abime .cn:nth-of-type(1)::before { background-image: url(../img/ui/abime/n-camp.webp); }
#hub.camp.ui-abime .cn:nth-of-type(2)::before { background-image: url(../img/ui/abime/n-heros.webp); }
#hub.camp.ui-abime .cn:nth-of-type(3)::before { background-image: url(../img/ui/abime/n-expe.webp); }
#hub.camp.ui-abime .cn:nth-of-type(4)::before { background-image: url(../img/ui/abime/n-combats.webp); }
#hub.camp.ui-abime .cn:nth-of-type(5)::before { background-image: url(../img/ui/abime/n-metiers.webp); }
#hub.camp.ui-abime .cn:nth-of-type(6)::before { background-image: url(../img/ui/abime/n-bastion.webp); }
#hub.camp.ui-abime .cn .ic { display: none; }
#hub.camp.ui-abime .cn > span { font-family: Cinzel, serif; font-weight: 700; font-size: clamp(11px, .95vw, 15px); letter-spacing: .03em; text-shadow: 0 1px 2px #000; transition: color .15s, text-shadow .15s; }
#hub.camp.ui-abime .cn:nth-of-type(1) { left: 12.6%; }
#hub.camp.ui-abime .cn:nth-of-type(2) { left: 28.9%; }
#hub.camp.ui-abime .cn:nth-of-type(3) { left: 43.4%; }
#hub.camp.ui-abime .cn:nth-of-type(4) { left: 59.3%; }
#hub.camp.ui-abime .cn:nth-of-type(5) { left: 74.9%; }
#hub.camp.ui-abime .cn:nth-of-type(6) { left: 89.3%; }
/* Onglet courant : discret (filet doré sous le nom), pour ne pas ressembler à un survol */
#hub.camp.ui-abime .cn.active { color: var(--ab-gold2); background: none; }
#hub.camp.ui-abime .cn.active > span { text-decoration: underline 2px rgba(232,199,122,.75); text-underline-offset: 5px; }
/* Survol : la lueur verte du kit ; clic : l'onglet s'enfonce */
#hub.camp.ui-abime .cn:hover:not(:disabled), #hub.camp.ui-abime .cn:focus-visible { filter: none; background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(63,180,135,.38), rgba(63,180,135,0) 70%); color: #d6ffe9; }
#hub.camp.ui-abime .cn:hover:not(:disabled)::before, #hub.camp.ui-abime .cn:focus-visible::before { filter: drop-shadow(0 0 6px rgba(111,224,168,.9)) brightness(1.15); transform: translateY(-2px); }
#hub.camp.ui-abime .cn:hover:not(:disabled) > span { text-shadow: 0 0 8px #2f8f6a, 0 1px 2px #000; }
#hub.camp.ui-abime .cn:active:not(:disabled)::before { transform: translateY(1px) scale(.92); filter: drop-shadow(0 0 3px rgba(111,224,168,.9)) brightness(.95); }
#hub.camp.ui-abime .cn:focus-visible { outline: 2px solid #6fe0a8; outline-offset: -2px; }
#hub.camp.ui-abime .cn.open { color: var(--ab-gold2); background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(226,189,95,.25), rgba(226,189,95,0) 70%); }
#hub.camp.ui-abime .cn.badge-on::after { top: 0; right: calc(50% - 26px); }

/* ---------- Survol et clic sur tout le Camp ---------- */
#hub.camp.ui-abime .cs-btn .cs-ic, #hub.camp.ui-abime .camp-sec button, #hub.camp.ui-abime .camp-opts button, #hub.camp.ui-abime .cg-go,
#hub.camp.ui-abime .camp-banner, #hub.camp.ui-abime .camp-season, #hub.camp.ui-abime #hubIdle, #hub.camp.ui-abime .camp-company .team-bar button {
  transition: filter .15s, transform .1s, box-shadow .15s, border-color .15s;
}
#hub.camp.ui-abime .cs-btn:hover:not(:disabled), #hub.camp.ui-abime .camp-sec button:hover:not(:disabled) { filter: none; }
#hub.camp.ui-abime .cs-btn:hover:not(:disabled) .cs-ic, #hub.camp.ui-abime .cs-btn:focus-visible .cs-ic { filter: brightness(1.25) drop-shadow(0 0 7px rgba(111,224,168,.65)); transform: translateY(-2px); }
#hub.camp.ui-abime .cs-btn:hover:not(:disabled) > span:not(.cs-ic) { color: #d6ffe9; }
#hub.camp.ui-abime .cs-btn:active:not(:disabled) .cs-ic { transform: translateY(1px) scale(.94); filter: brightness(.95) drop-shadow(0 0 4px rgba(111,224,168,.8)); }
#hub.camp.ui-abime .camp-sec button:hover:not(:disabled), #hub.camp.ui-abime .camp-sec button:focus-visible { filter: brightness(1.25) drop-shadow(0 0 6px rgba(111,224,168,.6)); transform: translateY(-1px); }
#hub.camp.ui-abime .camp-sec button:active:not(:disabled) { transform: translateY(1px) scale(.96); filter: brightness(.95); }
#hub.camp.ui-abime .camp-opts button:hover, #hub.camp.ui-abime .camp-opts button:focus-visible { filter: none; border-color: var(--ab-gold2); color: #d6ffe9; box-shadow: 0 0 10px rgba(111,224,168,.55), inset 0 0 6px #000; }
#hub.camp.ui-abime .camp-opts button:active { transform: scale(.92); }
#hub.camp.ui-abime .cg-go:hover:not(:disabled), #hub.camp.ui-abime .cg-go:focus-visible { filter: brightness(1.25) drop-shadow(0 0 6px rgba(111,224,168,.7)); }
#hub.camp.ui-abime .cg-go:active:not(:disabled) { transform: scale(.95); filter: brightness(.95); }
#hub.camp.ui-abime .camp-banner:hover, #hub.camp.ui-abime .camp-banner:focus-visible,
#hub.camp.ui-abime .camp-season:hover, #hub.camp.ui-abime #hubIdle.camp-idle:hover { filter: brightness(1.1) drop-shadow(0 0 8px rgba(111,224,168,.45)); }
#hub.camp.ui-abime .camp-banner:active, #hub.camp.ui-abime .camp-season:active, #hub.camp.ui-abime #hubIdle.camp-idle:active { transform: scale(.985); }
#hub.camp.ui-abime .camp-company .team-bar button:hover:not(:disabled) { border-color: var(--ab-gold2); box-shadow: 0 0 6px rgba(111,224,168,.5); }
#hub.camp.ui-abime .camp-company .team-bar button:active:not(:disabled) { transform: scale(.95); }
#hub.camp.ui-abime .cs-btn:focus-visible, #hub.camp.ui-abime .camp-sec button:focus-visible, #hub.camp.ui-abime .cg-go:focus-visible, #hub.camp.ui-abime .camp-banner:focus-visible { outline: 2px solid #6fe0a8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #hub.camp.ui-abime * { transition: none !important; } }

/* Sous-menu Combats */
#hub.camp.ui-abime .combat-menu { bottom: calc(var(--ab-nav) - 4px); background: #0f1312; border-color: var(--ab-line); box-shadow: 0 10px 24px #000; }
#hub.camp.ui-abime .combat-menu::after { background: #0f1312; border-color: var(--ab-line); }
#hub.camp.ui-abime .combat-menu .cm-main { background: linear-gradient(#1f2b27, #121a17); color: var(--ab-cream); border: 1px solid #3c4a3f; }
#hub.camp.ui-abime .combat-menu .cm-main small { color: var(--ab-gold2); }
#hub.camp.ui-abime .combat-menu .cm-sub { color: var(--ab-cream); border-color: #3c4a3f; }
#hub.camp.ui-abime .combat-menu .cm-sub small { color: #a99f8a; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  #hub.camp.ui-abime .camp-sec button { width: 96px; font-size: 14px; }
}

/* ---------- Téléphone : tout empilé, barre du bas sobre ---------- */
@media (max-width: 760px) {
  #hub.camp.ui-abime { --ab-nav: 74px; background: #07090a url(../img/ui/abime/fond.jpg) 42% top / auto 440px no-repeat; }
  #hub.camp.ui-abime .camp-veil { height: 440px; background: linear-gradient(180deg, rgba(5,7,8,.55) 0, rgba(5,7,8,0) 30%, rgba(5,7,8,0) 70%, #07090a 100%); }
  #hub.camp.ui-abime .camp-profile { position: relative; top: 0; left: 0; width: calc(100vw - 66px); margin: 8px 0 0 8px; padding: 0; }
  #hub.camp.ui-abime .camp-opts { flex-direction: column; top: 8px; right: 8px; gap: 6px; }
  #hub.camp.ui-abime .camp-opts button { width: 40px; height: 40px; }
  #hub.camp.ui-abime .camp-side { position: relative; top: 0; left: 0; margin: 150px 8px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
  #hub.camp.ui-abime .cs-btn .cs-ic { width: 100%; height: 48px; }
  #hub.camp.ui-abime .cs-btn > span:not(.cs-ic) { font-size: 14px; color: var(--ab-cream); }
  #hub.camp.ui-abime .camp-right { position: static; width: auto; margin: 14px 10px 0; }
  #hub.camp.ui-abime .camp-sec { position: static; flex-wrap: wrap; justify-content: center; margin: 12px 6px 0; gap: 6px; }
  #hub.camp.ui-abime .camp-sec button { width: calc(33% - 6px); font-size: 14px; }
  #hub.camp.ui-abime .camp-nav {
    position: fixed; height: 74px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; padding: 0 2px 6px;
    background: linear-gradient(#161d1b, #070908); border-top: 2px solid var(--ab-line); box-shadow: 0 -6px 16px rgba(0,0,0,.7);
  }
  #hub.camp.ui-abime .camp-nav { left: 0; right: 0; width: auto; transform: none; }
  #hub.camp.ui-abime .cn { position: relative; left: auto !important; top: auto; bottom: auto; width: auto; height: 62px; transform: none; gap: 2px; }
  #hub.camp.ui-abime .cn::before { display: none; }
  #hub.camp.ui-abime .cn .ic { display: block; width: 22px; height: 22px; stroke: var(--ab-gold); }
  #hub.camp.ui-abime .cn.active .ic { stroke: #6fe0a8; filter: drop-shadow(0 0 5px #2f8f6a); }
  #hub.camp.ui-abime .cn > span { font-size: 10px; }
  #hub.camp.ui-abime .cn.badge-on::after { top: 4px; right: calc(50% - 18px); }
  #hub.camp.ui-abime .combat-menu { bottom: 80px; }
}

/* ---------- Fenêtre Paramètres ---------- */
.set-ui { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 14px; }
.set-ui label { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid #3a3350; border-radius: 8px; cursor: pointer; background: #16131e; }
.set-ui label:has(input:checked) { border-color: #e2bd5f; background: #2a2213; }
.set-ui input { position: absolute; opacity: 0; pointer-events: none; }
.set-ui .su-prev { height: 70px; border-radius: 4px; background-size: cover; background-position: center; }
.set-ui .su-prev.classique { background-image: url(../img/wallpaper.jpg); }
.set-ui .su-prev.abime { background-image: url(../img/ui/abime/fond.jpg); }
.set-ui b { font-size: 15px; } .set-ui small { color: #a9a3b8; font-size: 12px; }
.set-ui label:focus-within { outline: 2px solid #e2bd5f; outline-offset: 2px; }
.set-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================================================
   v0.98 : L'Abîme hors du Camp — Quêtes, Rappel des Mondes, invocation
   Préfixe body.ui-abime (classe posée par applyCampUi). Rien ne change en Classique.
   ========================================================= */
.cal-ic, .miss-pips, .sum-rv { display: none; }

/* ---------- Fenêtre des Quêtes ---------- */
body.ui-abime #dailyModal .daily-box {
  max-width: 820px; background: none; box-shadow: none; color: #efe6d2; padding: 6px 12px 8px;
  border: 26px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 26px 28px 22px 26px stretch;
  filter: drop-shadow(0 18px 40px #000);
}
body.ui-abime #dailyModal .daily-box::before, body.ui-abime #dailyModal .daily-box::after { display: none; }
body.ui-abime #dailyModal h2 { font-family: Cinzel, serif; font-weight: 700; color: #e8c77a; text-shadow: 0 2px 4px #000; }
body.ui-abime #dailyModal .hint { color: #bdb29a; }
body.ui-abime #dailyModal .section-h { font-family: Cinzel, serif; color: #c9a55a; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
body.ui-abime #dailyModal .section-h small { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: 0; color: #bdb29a; display: inline-flex; align-items: center; gap: 8px; }
body.ui-abime .miss-pips { display: inline-flex; gap: 1px; }
body.ui-abime .miss-pips i { width: 17px; height: 19px; background: url(../img/ui/abime/pip-off.webp) center / contain no-repeat; }
body.ui-abime .miss-pips i.on { background-image: url(../img/ui/abime/pip-on.webp); }
/* Onglets : plaques */
body.ui-abime #dailyModal .miss-tabs { gap: 8px; }
body.ui-abime #dailyModal .miss-tabs button {
  min-height: 56px; background: none; box-shadow: none; color: #efe6d2; border-radius: 0;
  border: 14px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 14px 22px 14px 22px stretch; padding: 0 2px;
  transition: filter .15s, transform .1s;
}
body.ui-abime #dailyModal .miss-tabs button b { font-family: Cinzel, serif; font-size: 16px; text-shadow: 0 1px 2px #000; }
body.ui-abime #dailyModal .miss-tabs button small { color: #bdb29a; }
body.ui-abime #dailyModal .miss-tabs button.active { background: none; box-shadow: none; filter: brightness(1.25) drop-shadow(0 0 8px rgba(111,224,168,.55)); }
body.ui-abime #dailyModal .miss-tabs button.active b { color: #bff5dc; text-shadow: 0 0 8px #2f8f6a, 0 1px 2px #000; }
body.ui-abime #dailyModal .miss-tabs button.active small { color: #d6cdb6; }
body.ui-abime #dailyModal .miss-tabs .badge-on::after { top: -10px; right: -16px; border-color: #120e0a; }
/* Calendrier : 7 cases identiques */
body.ui-abime #dailyModal .daily-cal { gap: 8px; }
body.ui-abime #dailyModal .cal-day {
  min-height: 96px; display: grid; grid-template-rows: 16px 36px auto 14px; justify-items: center; align-items: center; row-gap: 2px; padding: 0;
  background: none; box-shadow: none; border-radius: 0; color: #efe6d2;
  border: 12px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 12px 13px 10px 12px stretch;
}
body.ui-abime #dailyModal .cal-n { font-family: Cinzel, serif; font-size: 12px; font-weight: 700; color: #c9a55a; }
body.ui-abime #dailyModal .cal-day b { font-size: 12px; line-height: 1.15; white-space: nowrap; }
body.ui-abime #dailyModal .cal-rest { display: none; }
body.ui-abime #dailyModal .cal-day small { color: #6fe0a8; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
body.ui-abime #dailyModal .cal-day small .ui-ic { width: 12px; height: 12px; }
body.ui-abime .cal-ic { display: block; position: relative; width: 34px; height: 34px; background: center / contain no-repeat; }
body.ui-abime .cal-ic.ci-or { background-image: url(../img/ui/abime/i-or.webp); }
body.ui-abime .cal-ic.ci-cristal { background-image: url(../img/ui/abime/i-cristal.webp); }
body.ui-abime .cal-ic.ci-esprit { background-image: url(../img/ui/abime/i-esprit.webp); }
body.ui-abime .cal-pot { position: absolute; right: -26px; bottom: 0; padding-left: 13px; font-style: normal; font-size: 11px; font-weight: 800; color: #efe6d2; text-shadow: 0 1px 2px #000;
  background: url(../img/ui/abime/i-potion.webp) 0 50% / 11px auto no-repeat; }
body.ui-abime #dailyModal .cal-day.past { opacity: .5; }
body.ui-abime #dailyModal .cal-day.past::after { content: "✓ Reçu"; font-size: 10.5px; color: #6fe0a8; letter-spacing: .04em; text-transform: uppercase; }
body.ui-abime #dailyModal .cal-day.today { background: none; border-color: transparent; box-shadow: none; filter: drop-shadow(0 0 9px rgba(232,199,122,.75)) brightness(1.15); }
body.ui-abime #dailyModal .cal-day.today .cal-n { color: #e8c77a; }
body.ui-abime #dailyModal .cal-day.claimed { background: none; filter: none; }
body.ui-abime #dailyModal .cal-day.big:not(.today) { border-color: transparent; filter: drop-shadow(0 0 6px rgba(226,189,95,.45)); }
body.ui-abime #dailyModal .cal-day.big:not(.today):not(.past)::after { content: "Grand prix"; font-size: 10.5px; color: #e8c77a; padding-left: 14px; background: url(../img/ui/abime/medaille.webp) 0 50% / 10px auto no-repeat; }
body.ui-abime #dailyModal .cal-claim {
  margin-top: 8px; height: 58px; background: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; font-size: 19px; clip-path: none; border-radius: 0;
  border: 0 solid transparent; border-width: 16px 40px 16px 18px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 16px 40px 16px 18px stretch;
}
/* Quêtes : cadres, socle ou coche, jauge à losange */
body.ui-abime #dailyModal .daily-missions { gap: 6px; }
body.ui-abime #dailyModal .mission {
  grid-template-columns: 30px 1fr auto 170px 74px; min-height: 30px; padding: 0 4px; border-radius: 0; background: none; color: #efe6d2;
  border: 12px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 12px 13px 10px 12px stretch;
}
body.ui-abime #dailyModal .mission.wk { grid-template-columns: 30px 1fr auto 150px 110px; }
body.ui-abime #dailyModal .mission.done { background: none; box-shadow: inset 0 0 0 999px rgba(47,143,106,.16); }
body.ui-abime #dailyModal .m-check { width: 30px; height: 30px; border: 0; border-radius: 0; background: url(../img/ui/abime/socle.webp) center / contain no-repeat; color: #e8c77a; }
body.ui-abime #dailyModal .mission.done .m-check, body.ui-abime #dailyModal .mission.claimed .m-check { background-image: url(../img/ui/abime/coche.webp); }
body.ui-abime #dailyModal .m-check .ui-ic { display: none; }
body.ui-abime #dailyModal .m-name { font-size: 16px; font-weight: 600; }
body.ui-abime #dailyModal .mission .bar {
  height: 34px; padding: 0 5% 0 18%; box-sizing: border-box; display: flex; align-items: center; border: 0; border-radius: 0; box-shadow: none;
  background: url(../img/ui/abime/jauge.webp) 0 0 / 100% 100% no-repeat;
}
body.ui-abime #dailyModal .mission .bar .fill { height: 10px; border-radius: 3px; background: linear-gradient(90deg, #1f6b52, #6fe0a8); }
body.ui-abime #dailyModal .m-pts { color: #a99f8a; font-size: 13px; }
body.ui-abime #dailyModal .mission.done .m-pts { color: #6fe0a8; font-weight: 700; }
/* Coffres : parchemin */
body.ui-abime #dailyModal .daily-chest .chest {
  grid-template-columns: 80px 1fr auto; padding: 0 6px; border-radius: 0; background: none; box-shadow: none; color: #2b1d0c;
  border: 16px solid transparent; border-image: url(../img/ui/abime/parchemin.webp) 26 28 24 28 fill / 16px 18px 16px 18px stretch;
}
body.ui-abime #dailyModal .daily-chest .chest::before { content: ""; grid-row: 1 / span 4; width: 80px; height: 54px; background: url(../img/ui/abime/b-recoltes.webp) center / contain no-repeat; }
body.ui-abime #dailyModal .daily-chest .chest > :not(button) { grid-column: 2; }
body.ui-abime #dailyModal .daily-chest .chest button { grid-column: 3; grid-row: 1 / span 4; }
body.ui-abime #dailyModal .daily-chest .chest b { font-family: Cinzel, serif; font-size: 18px; color: #2b1d0c; }
body.ui-abime #dailyModal .daily-chest .chest small { color: #4a3a26; }
body.ui-abime #dailyModal .daily-chest .chest .chest-need { color: #6b4a1c; }
body.ui-abime #dailyModal .daily-chest .chest .bar { background: rgba(43,29,12,.22); border: 0; box-shadow: inset 0 0 0 1px rgba(43,29,12,.3); }
body.ui-abime #dailyModal .daily-chest .chest .fill { background: linear-gradient(90deg, #1f6b52, #3fb487); }
body.ui-abime #dailyModal .daily-chest .chest.ready { background: none; filter: drop-shadow(0 0 10px rgba(232,199,122,.7)); }
/* Boutons de la fenêtre */
body.ui-abime #dailyModal .btn-small, body.ui-abime #dailyModal #dailyInbox {
  min-height: 46px; background: none; box-shadow: none; color: #efe6d2; text-shadow: 0 1px 2px #000; border-radius: 0; clip-path: none;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 12px 20px 12px 20px stretch; padding: 0 4px;
}
body.ui-abime #dailyModal .btn-small:disabled { opacity: .6; }
body.ui-abime #dailyModal .btn-primary, body.ui-abime #dailyModal #dailyClose {
  min-height: 50px; background: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; border-radius: 0; clip-path: none;
  border: 0 solid transparent; border-width: 14px 38px 14px 16px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 14px 38px 14px 16px stretch; padding: 0 4px;
}
body.ui-abime #dailyModal button { transition: filter .15s, transform .1s; }
body.ui-abime #dailyModal button:hover:not(:disabled) { filter: brightness(1.2) drop-shadow(0 0 6px rgba(111,224,168,.6)); }
body.ui-abime #dailyModal button:active:not(:disabled) { transform: scale(.97); }
@media (max-width: 640px) {
  body.ui-abime #dailyModal .daily-box { border-width: 18px; border-image-width: 18px 20px 16px 18px; padding: 4px 4px 6px; }
  body.ui-abime #dailyModal .mission { grid-template-columns: 30px 1fr auto; }
  body.ui-abime #dailyModal .mission.wk { grid-template-columns: 30px 1fr auto; }
  body.ui-abime #dailyModal .cal-day { min-height: 92px; border-width: 9px; border-image-width: 9px 10px 8px 9px; }
  body.ui-abime #dailyModal .cal-day b { white-space: normal; font-size: 11px; text-align: center; }
  body.ui-abime #dailyModal .cal-day small, body.ui-abime #dailyModal .cal-day::after { font-size: 9px !important; }
  body.ui-abime .cal-ic { width: 28px; height: 28px; }
  body.ui-abime .cal-pot { right: -14px; font-size: 10px; }
  body.ui-abime #dailyModal .miss-tabs { gap: 4px; }
  body.ui-abime #dailyModal .miss-tabs button { min-height: 46px; border-width: 10px; border-image-width: 10px 14px 10px 14px; }
  body.ui-abime #dailyModal .miss-tabs button b { font-size: 12px; }
  body.ui-abime #dailyModal .cal-claim { font-size: 15px; height: 52px; }
  body.ui-abime #dailyModal .m-name { font-size: 14px; }
  body.ui-abime #dailyModal .daily-chest .chest { grid-template-columns: 1fr auto; }
  body.ui-abime #dailyModal .daily-chest .chest::before { display: none; }
  body.ui-abime #dailyModal .daily-chest .chest > :not(button) { grid-column: 1; }
  body.ui-abime #dailyModal .daily-chest .chest button { grid-column: 2; }
}

/* ---------- Rappel des Mondes ---------- */
body.ui-abime #summon { background: #07090a url(../img/ui/abime/fond.jpg) 50% 25% / cover fixed no-repeat; position: relative; }
body.ui-abime #summon::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgba(5,7,8,.62); }
body.ui-abime #summon > * { position: relative; z-index: 1; }
body.ui-abime #summon .topbar { background: linear-gradient(180deg, rgba(5,7,8,.9), rgba(5,7,8,0)); border: 0; }
body.ui-abime #summon .topbar .back {
  background: none; box-shadow: none; color: #efe6d2; border-radius: 0; text-shadow: 0 1px 2px #000;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 12px 20px 12px 20px stretch; padding: 0 4px;
}
body.ui-abime #summon .topbar .zone-name { font-family: Cinzel, serif; color: #e8c77a; font-size: 24px; text-shadow: 0 2px 4px #000; }
body.ui-abime #summon .topbar .gold { min-width: 160px; height: 54px; display: flex; align-items: center; justify-content: center; padding: 0 46px 0 44px !important; box-sizing: border-box; font-size: 0 !important;
  background: url(../img/ui/abime/cristaux.webp) 0 0 / 100% 100% no-repeat; border: 0; color: #efe6d2; font-weight: 700; text-shadow: 0 1px 2px #000; }
body.ui-abime #summon .topbar .gold span { font-size: 17px; }
/* Rituels : plaques, losange de la couleur de l'élément */
body.ui-abime #summon .sum-tab {
  display: flex; align-items: center; gap: 10px; min-height: 48px; background: none; box-shadow: none; color: #e3d9c2; border-radius: 0;
  font-family: Cinzel, serif; font-size: 13.5px; text-shadow: 0 1px 2px #000; padding: 0 6px;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 12px 20px 12px 20px stretch;
  transition: filter .15s, transform .1s;
}
body.ui-abime #summon .sum-tab::before { content: ""; flex: none; width: 11px; height: 11px; transform: rotate(45deg); background: var(--ec); box-shadow: 0 0 0 2px #2a2213, 0 0 0 3px #8a6d35; }
body.ui-abime #summon .sum-tab.on { background: none; color: #fff3d6; box-shadow: none; filter: brightness(1.3) drop-shadow(0 0 8px var(--ec)); }
body.ui-abime #summon .sum-tab:hover { filter: brightness(1.2) drop-shadow(0 0 6px rgba(111,224,168,.6)); }
body.ui-abime #summon .sum-tab .ui-ic { display: none; }
/* Scène : cadre sculpté, cercle doré */
body.ui-abime #summon .sum-banner {
  background: radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--ec, #e8c46a) 30%, transparent), transparent 45%), #0b0f0e;
  border-radius: 0; box-shadow: none; outline: 0;
  border: 22px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 22px 24px 18px 22px stretch;
}
body.ui-abime #summon .sum-banner:not(.elemental):not(.friend) { --ec: #e8c46a; }
body.ui-abime #summon .sum-banner::before {
  right: calc(20% - 150px); top: calc(50% - 150px); width: 300px; height: 300px; box-shadow: none; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 58px, rgba(232,199,122,.55) 59px 60px, transparent 61px),
    radial-gradient(circle, transparent 0 128px, rgba(232,199,122,.35) 129px 130px, transparent 131px),
    radial-gradient(circle, transparent 0 138px, rgba(232,199,122,.6) 139px 141px, transparent 142px),
    repeating-conic-gradient(rgba(232,199,122,.5) 0 .5deg, transparent .5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 146px, transparent 147px); mask: radial-gradient(circle, #000 0 146px, transparent 147px);
  opacity: .85;
}
body.ui-abime #summon .sum-banner::after { background: linear-gradient(90deg, rgba(8,11,10,.92) 0%, rgba(8,11,10,.55) 45%, rgba(8,11,10,0) 72%); }
body.ui-abime #summon .sum-kicker { font-family: Cinzel, serif; color: var(--ec, #e8c46a); letter-spacing: .12em; }
body.ui-abime #summon .sum-title { font-family: Cinzel, serif; font-weight: 700; color: #efe6d2; text-shadow: 0 2px 4px #000; }
body.ui-abime #summon .sum-info { color: #d6cdb6; }
body.ui-abime #summon .sum-links .btn-small {
  background: none; box-shadow: none; color: #efe6d2; text-shadow: 0 1px 2px #000; border-radius: 0; min-height: 44px;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 12px 20px 12px 20px stretch; padding: 0 4px;
}
body.ui-abime #summon .sf-hero { background: rgba(8,11,10,.85); border-color: var(--ec); border-radius: 4px; }
/* Fil du Rappel : jauge à losange */
body.ui-abime #summon .sum-pity { background: none; box-shadow: none; border-radius: 0; color: #efe6d2; padding: 2px 6px;
  border: 14px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 14px 15px 12px 14px stretch; }
body.ui-abime #summon .sum-pity-row span { font-family: Cinzel, serif; color: #c9a55a; }
body.ui-abime #summon .sum-pity .bar { height: 40px; padding: 0 5% 0 18%; box-sizing: border-box; display: flex; align-items: center; border: 0; border-radius: 0; box-shadow: none;
  background: url(../img/ui/abime/jauge.webp) 0 0 / 100% 100% no-repeat; }
body.ui-abime #summon .sum-pity .fill { height: 11px; border-radius: 3px; background: linear-gradient(90deg, #1f6b52, #6fe0a8); }
/* Boutons ×1 (plaque) et ×10 (vert) */
body.ui-abime #summon .sum-btn {
  background: none; box-shadow: none; color: #efe6d2; text-shadow: 0 1px 2px #000; border-radius: 0; min-height: 80px;
  border: 14px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 14px 22px 14px 22px stretch;
  transition: filter .15s, transform .1s;
}
body.ui-abime #summon .sum-btn.main { background: none; box-shadow: none; color: #e8dcc0; min-height: 92px;
  border: 0 solid transparent; border-width: 18px 44px 18px 20px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 18px 44px 18px 20px stretch; }
body.ui-abime #summon .sum-btn .sb-title { font-family: Cinzel, serif; font-weight: 700; }
body.ui-abime #summon .sum-btn .sb-cost, body.ui-abime #summon .sum-btn.main .sb-cost { background: rgba(5,7,8,.55); color: #e3d9c2; border-radius: 3px; }
body.ui-abime #summon .sum-btn .sb-ribbon { background: linear-gradient(#f0dcae, #d9bd82); color: #2b1d0c; border: 1px solid #8a6d35; box-shadow: 0 2px 6px #000; clip-path: none; border-radius: 4px; }
body.ui-abime #summon .sum-btn:hover:not(:disabled) { filter: brightness(1.2) drop-shadow(0 0 7px rgba(111,224,168,.6)); }
body.ui-abime #summon .sum-btn:active:not(:disabled) { transform: scale(.97); }
body.ui-abime #summon #sumRates { color: #bdb29a; }
/* Cartes de résultat */
body.ui-abime #summon .sum-card {
  background: none; box-shadow: none; border-radius: 0; color: #efe6d2; padding: 4px 2px 6px;
  border: 10px solid transparent; border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 10px 10px 9px 10px stretch;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
/* v0.98.1 : même zone d'image pour toutes les cartes (illustration ou sprite), le texte reste aligné */
body.ui-abime #summon .sum-card > :first-child { flex: none; width: 100%; height: 92px; margin: 0 0 2px; object-fit: contain; }
body.ui-abime #summon .sum-card > img.hero-art, body.ui-abime #summon .sum-card.art > :first-child { object-fit: contain; object-position: 50% 100%; height: 84px !important; width: 100% !important; margin-top: 8px; }
body.ui-abime #summon .sum-card > .px:first-child, body.ui-abime #summon .sum-card > canvas:first-child { width: auto !important; max-width: 100%; height: 92px !important; }
body.ui-abime #summon .sum-card .elem, body.ui-abime #summon .sum-card .og-tag { font-size: 9px; padding: 0 4px; }
body.ui-abime #summon .sum-card .elem .el-ico { display: none; }
@media (min-width: 1200px) { body.ui-abime #summon > #sumResults { grid-column: 2 / -1; } }
body.ui-abime #summon .sum-card b { font-family: Cinzel, serif; color: #f4ead2; }
body.ui-abime #summon .sum-card small { color: #bdb29a; }
body.ui-abime #summon .sum-card .stars { color: #cbb68a; }
body.ui-abime #summon .sum-card.s4 { filter: drop-shadow(0 0 9px rgba(176,122,255,.8)); }
body.ui-abime #summon .sum-card.s4 .stars { color: #d4b8ff; }
body.ui-abime #summon .sum-card.s5, body.ui-abime #summon .sum-card.mythic { filter: drop-shadow(0 0 13px rgba(255,190,60,.85)) brightness(1.1); }
body.ui-abime #summon .sum-card.s5 .stars, body.ui-abime #summon .sum-card.mythic .stars { color: #ffd35a; }
body.ui-abime #summon .sum-card .new { display: inline-block; padding: 0 6px; border-radius: 3px; background: #6fe0a8; color: #12100a; letter-spacing: .08em; font-size: 10px; }
body.ui-abime #summon .sum-plus { color: #e8c77a; }

/* ---------- Dernier instant ---------- */
body.ui-abime .sum-lm { background: radial-gradient(ellipse at 50% 45%, #1e160a, #000 70%); }
body.ui-abime .lm-k { font-family: Cinzel, serif; color: #c9a55a; }
body.ui-abime .lm-box p { color: #f4ead2; }
body.ui-abime .lm-box .lm-name { font-family: Cinzel, serif; color: #e8c77a; text-shadow: 0 0 18px rgba(232,199,122,.5); }
body.ui-abime .lm-skip { color: #a99f8a; }

/* ---------- Révélation d'un 5★ (nouvelle, L'Abîme seulement) ---------- */
body.ui-abime .sum-rv { position: fixed; inset: 0; z-index: 81; display: flex; align-items: center; justify-content: center; background: rgba(4,5,6,.94); animation: lmIn .35s; }
body.ui-abime .sum-rv.out { opacity: 0; transition: opacity .3s; }
.rv-rays { position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(255,211,90,.07) 0deg 6deg, rgba(255,211,90,0) 6deg 18deg), radial-gradient(circle at 50% 42%, rgba(255,225,140,.4), rgba(5,7,10,0) 45%);
  animation: rvSpin 40s linear infinite; }
@keyframes rvSpin { to { transform: rotate(360deg); } }
.rv-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; max-height: 100vh; box-sizing: border-box; }
.rv-frame { position: relative; width: min(400px, 78vw); height: min(500px, 58vh); overflow: hidden; animation: rvIn .6s cubic-bezier(.2,.9,.3,1.2);
  border: 22px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 22px 24px 18px 22px stretch; filter: drop-shadow(0 0 24px rgba(255,211,90,.7)); }
@keyframes rvIn { from { transform: scale(.8); opacity: 0; } }
.rv-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rv-art .hero-art { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rv-art .px, .rv-art canvas, .rv-art img { image-rendering: pixelated; }
.rv-stars { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 10px; text-align: center; font-size: 28px; letter-spacing: .12em; color: #ffd35a; text-shadow: 0 0 10px #ffb02e; background: linear-gradient(180deg, transparent, rgba(5,7,10,.9)); }
.rv-k { font-family: Cinzel, serif; font-size: 15px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #ffd35a; margin-top: 6px; }
.sum-rv.mythic .rv-k { background: linear-gradient(90deg, #ff6b6b, #ffd35a, #5fdc8f, #45dcd2, #62b0ff, #c490ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-name { margin: 0; font-family: Cinzel, serif; font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1; color: #f4ead2; text-shadow: 0 2px 8px #000, 0 0 24px rgba(255,211,90,.45); }
.rv-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 17px; color: #d6cdb6; }
.rv-btns { display: flex; gap: 18px; margin-top: 12px; }
.rv-btns button { cursor: pointer; font: inherit; transition: filter .15s, transform .1s; }
.rv-skip { min-height: 50px; padding: 0 6px; background: none; color: #efe6d2; text-shadow: 0 1px 2px #000; font-weight: 700;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 24 34 24 34 fill / 12px 20px 12px 20px stretch; }
.rv-go { min-height: 56px; min-width: 260px; padding: 0 6px; background: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; font-size: 18px; font-weight: 700;
  border: 0 solid transparent; border-width: 16px 40px 16px 18px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 16px 40px 16px 18px stretch; }
.rv-btns button:hover { filter: brightness(1.2) drop-shadow(0 0 7px rgba(111,224,168,.6)); }
.rv-btns button:active { transform: scale(.97); }
.rv-btns button:focus-visible { outline: 2px solid #6fe0a8; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rv-rays, .rv-frame { animation: none; } }
@media (min-width: 1200px) { body.ui-abime #summon > #sumRates { grid-row: 3; } }
@media (max-width: 640px) {
  body.ui-abime #summon .topbar .zone-name { font-size: 17px; }
  body.ui-abime #summon .topbar .gold { min-width: 130px; height: 46px; }
  body.ui-abime #summon .sum-banner { border-width: 14px; border-image-width: 14px 15px 12px 14px; }
  body.ui-abime #summon .sum-kicker { font-size: 10px; letter-spacing: .06em; }
  body.ui-abime #summon .sum-title { font-size: 24px; }
  body.ui-abime #summon .sum-links .btn-small { min-height: 38px; font-size: 12px; border-width: 10px; border-image-width: 10px 16px 10px 16px; }
  body.ui-abime #summon .sum-tab { min-height: 40px; font-size: 12px; border-width: 10px; border-image-width: 10px 16px 10px 16px; }
}

/* =========================================================
   v0.99 : L'Abîme — Métiers, Bastion, notifications, fenêtres, Discussion
   ========================================================= */
/* ---------- Fond et barre du haut communs aux écrans plein écran ---------- */
body.ui-abime :is(#crafts, #guild).screen { background: #07090a url(../img/ui/abime/fond.jpg) 50% 25% / cover fixed no-repeat; position: relative; }
body.ui-abime :is(#crafts, #guild).screen::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgba(5,7,8,.66); }
body.ui-abime :is(#crafts, #guild).screen > * { position: relative; z-index: 1; }
body.ui-abime :is(#crafts, #guild) .topbar { background: linear-gradient(180deg, rgba(5,7,8,.9), rgba(5,7,8,0)); border: 0; box-shadow: none; }
body.ui-abime :is(#crafts, #guild) .topbar::after, body.ui-abime :is(#crafts, #guild) .topbar::before { display: none; }
body.ui-abime :is(#crafts, #guild) .topbar .back {
  background: none; box-shadow: none; color: #efe6d2; border-radius: 0; text-shadow: 0 1px 2px #000;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 22 34 20 34 fill / 12px 20px 12px 20px stretch; padding: 0 4px;
}
body.ui-abime :is(#crafts, #guild) .topbar .zone-name { font-family: Cinzel, serif; color: #e8c77a; font-size: 24px; text-shadow: 0 2px 4px #000; }
body.ui-abime #crafts .topbar .gold { min-width: 150px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 12px 0 48px; box-sizing: border-box;
  background: url(../img/ui/abime/or.webp) 0 0 / 100% 100% no-repeat; color: #efe6d2; font-weight: 700; text-shadow: 0 1px 2px #000; }

/* ---------- Métiers (v0.100 : texture A, filet doré et losanges ; maquette MetiersFiletA) ---------- */
body.ui-abime #crafts { --g1: #c9a55a; --g2: #e8c77a; --g3: #f4e2b0; --ink: #efe6d2; --mute: #a99f8a; --glow: #6fe0a8;
  --fell: 'IM Fell English', Georgia, serif; --fellsc: 'IM Fell English SC', Georgia, serif; --goth: 'UnifrakturCook', 'Cinzel', serif; font-family: var(--fell); }
body.ui-abime .mt { box-sizing: border-box; position: relative; padding-top: 96px; margin-bottom: 8px; gap: 26px; background: none; border: 0; border-radius: 0; overflow: visible; color: var(--ink); height: calc(100vh - 92px); }
body.ui-abime :is(.mt-L, .mt-C, .mt-R) { position: relative; border: 0; border-radius: 2px; padding: 16px 16px 12px; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,165,90,.10), transparent 60%), linear-gradient(180deg, rgba(18,23,22,.96), rgba(10,13,13,.97));
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, 0 14px 34px rgba(0,0,0,.7); }
body.ui-abime :is(.mt-L, .mt-C, .mt-R)::before, body.ui-abime :is(.mt-L, .mt-C, .mt-R)::after { content: ""; position: absolute; left: calc(50% - 5px); top: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #c9a55a; box-shadow: 0 0 0 2px #0b0f0e; z-index: 2; pointer-events: none; }
body.ui-abime :is(.mt-L, .mt-C, .mt-R)::after { top: auto; bottom: -6px; }
body.ui-abime .mt-L { position: static; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #8a6d35 transparent; }
body.ui-abime .mt-L::before, body.ui-abime .mt-L::after { display: none; }
body.ui-abime .mt-C { padding: 22px 26px; }
/* Onglets de métier : même traitement que « Fabriquer » */
body.ui-abime .mt-tabs { position: absolute; top: 4px; left: 6px; right: 6px; padding: 0; gap: 30px; z-index: 2; }
body.ui-abime .mt-tabs button {
  position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; justify-items: start; text-align: left;
  min-height: 78px; padding: 0 20px; border: 0; border-radius: 2px; color: var(--ink); font: 400 24px var(--fellsc); letter-spacing: 0; text-transform: none; text-shadow: 0 2px 4px #000;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,199,122,.10), transparent 70%), linear-gradient(180deg, #161b1a, #0a0d0d);
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #8a7340, inset 0 0 18px rgba(232,199,122,.12), 0 14px 30px rgba(0,0,0,.7); transition: filter .15s, transform .1s; }
body.ui-abime .mt-tabs button::before, body.ui-abime .mt-tabs button::after { content: ""; position: absolute; top: calc(50% - 5px); left: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #c9a55a; box-shadow: 0 0 0 2px #0b0f0e; }
body.ui-abime .mt-tabs button::after { left: auto; right: -6px; }
body.ui-abime .mt-tabs .mt-tic { grid-row: 1 / span 2; width: 50px; height: 50px; padding: 12px; box-sizing: border-box; margin: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); filter: none; box-shadow: 0 0 0 1.5px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, inset 0 0 10px rgba(111,224,168,.25); }
body.ui-abime .mt-tabs button small { font: italic 400 15px var(--fell); color: var(--mute); max-width: none; text-shadow: none; }
body.ui-abime .mt-tabs button.on { color: var(--g3); text-shadow: 0 0 12px rgba(111,224,168,.5), 0 2px 4px #000; filter: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.24), transparent 72%), linear-gradient(180deg, #16211d, #0a0f0d);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(111,224,168,.35), 0 0 22px rgba(111,224,168,.28), 0 14px 30px rgba(0,0,0,.7); }
body.ui-abime .mt-tabs button.on::before, body.ui-abime .mt-tabs button.on::after { background: #e8c77a; box-shadow: 0 0 0 2px #0b0f0e, 0 0 8px rgba(232,199,122,.6); }
body.ui-abime .mt-tabs button.on .mt-tic { box-shadow: 0 0 0 1.5px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 14px #6fe0a8, 0 0 12px rgba(111,224,168,.5); }
body.ui-abime .mt-tabs button.on small { color: #cbe8d8; }
body.ui-abime .mt-tabs button:hover:not(.on) { filter: brightness(1.18); }
body.ui-abime .mt-tabs button.badge-on::after { top: -6px; right: -6px; left: auto; width: 12px; height: 12px; border-radius: 50%; transform: none; background: #e0604a; }
/* Filtres et recherche */
body.ui-abime .mt-mode { margin: 0 0 4px; border: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(201,165,90,.45); }
body.ui-abime .mt-mode button { background: none; color: var(--mute); font: 400 15px var(--fellsc); }
body.ui-abime .mt-mode button.on { color: var(--g3); background: linear-gradient(180deg, rgba(232,199,122,.16), rgba(232,199,122,.04)); box-shadow: inset 0 -2px 0 #e8c77a; }
body.ui-abime .mt-chips { padding: 0; gap: 6px; }
body.ui-abime .mt-chip { border: 0; padding: 3px 11px; border-radius: 13px; font: 400 14px var(--fellsc); color: #cbbfa6; background: #0b0f0e; box-shadow: inset 0 0 0 1px #3a3020; }
body.ui-abime .mt-chip:hover { color: var(--g3); box-shadow: inset 0 0 0 1px #c9a55a; }
body.ui-abime .mt-chip.on { color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); box-shadow: 0 0 8px rgba(232,199,122,.35); }
body.ui-abime .mt-srch { margin: 6px 0; border: 0; border-radius: 18px; background: rgba(7,9,10,.85); box-shadow: inset 0 0 0 1px rgba(201,165,90,.45), 0 0 0 3px #0b0f0e; }
body.ui-abime .mt-srch:focus-within { box-shadow: inset 0 0 0 1px #e8c77a, 0 0 0 3px #0b0f0e, 0 0 10px rgba(111,224,168,.35); }
body.ui-abime .mt-srch input { font-family: var(--fell); font-size: 15px; color: var(--g3); }
body.ui-abime .mt-srch input::placeholder { font-style: italic; color: #7a7060; }
body.ui-abime .mt-srch svg { stroke: #c9a55a; }
/* Liste des recettes */
body.ui-abime .mt-list { padding: 0; gap: 6px; }
body.ui-abime .mt-row { border: 0; border-radius: 0; color: var(--ink); padding: 7px 12px 7px 8px; min-height: 56px; box-sizing: border-box; background: rgba(11,15,14,.8); box-shadow: inset 0 0 0 1px rgba(201,165,90,.16); filter: none; transition: box-shadow .15s; }
body.ui-abime .mt-row:hover { box-shadow: inset 0 0 0 1px rgba(201,165,90,.55); filter: none; }
body.ui-abime .mt-row.sel { filter: none; background: linear-gradient(90deg, rgba(111,224,168,.10), rgba(11,15,14,.85) 60%); box-shadow: inset 2px 0 0 #6fe0a8, inset 0 0 0 1px #e8c77a, 0 0 12px rgba(111,224,168,.25); }
body.ui-abime .mt-row.sel .mt-nm b { color: var(--g3); }
body.ui-abime .mt-ic { width: 44px; height: 44px; border: 0; border-radius: 50%; background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 1.5px #5a4a2c; }
body.ui-abime .mt-row.sel .mt-ic { box-shadow: 0 0 0 1.5px #e8c77a, 0 0 8px rgba(111,224,168,.5); }
body.ui-abime .mt-nm b { font: 400 16px var(--fellsc); color: var(--g3); }
body.ui-abime .mt-nm small { color: var(--mute); font-size: 12.5px; font-style: italic; }
body.ui-abime .mt-ok { color: #6fe0a8; font-family: var(--fellsc); } body.ui-abime .mt-ko { color: #e88a6a; font-family: var(--fellsc); }
body.ui-abime .mt-grp { font-family: var(--fellsc); color: var(--g2); letter-spacing: .06em; }
body.ui-abime .mt-change { color: var(--mute); font-style: italic; }
/* Centre */
body.ui-abime .mt-title { font: 400 38px var(--fellsc); color: var(--g3); text-shadow: 0 2px 4px #000; }
body.ui-abime .mt-title::first-letter { font-family: var(--goth); color: var(--g2); font-size: 1.3em; }
body.ui-abime .mt-sub { display: inline-block; padding: 1px 10px; border-radius: 10px; color: #9af0c8; font: 400 13px var(--fellsc); letter-spacing: .04em; background: rgba(63,138,98,.12); box-shadow: inset 0 0 0 1px rgba(111,224,168,.45); }
body.ui-abime .mt-art { background: radial-gradient(circle, rgba(111,224,168,.10), rgba(7,9,10,0) 62%), radial-gradient(circle, #141a19, #07090a 70%); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(201,165,90,.55), inset 0 0 0 12px rgba(11,15,14,.7), inset 0 0 0 13px rgba(201,165,90,.25), 0 0 0 1px #c9a55a, 0 0 0 5px #0b0f0e, 0 0 0 6px #5a4a2c, 0 20px 40px rgba(0,0,0,.6); }
body.ui-abime .mt-art::before { display: none; }
body.ui-abime .mt-art::after { border: 1px dashed rgba(201,165,90,.3); }
body.ui-abime .mt-art .it-ico { filter: drop-shadow(0 10px 14px rgba(0,0,0,.7)); }
body.ui-abime .mt-mast, body.ui-abime .mt-roll { color: #d8cdb4; }
body.ui-abime :is(.mt-C, .mt-R, .mt-L) .bar { background: #0b0f0e; border: 0; box-shadow: inset 0 0 0 1px #5a4a2c; border-radius: 0; height: 6px; }
body.ui-abime :is(.mt-C, .mt-R, .mt-L) .bar .fill { background: linear-gradient(90deg, #3fae7c, #6fe0a8); box-shadow: 0 0 6px #6fe0a8; border-radius: 0; }
body.ui-abime .mt-qsel button { width: 44px; height: 44px; border: 0; border-radius: 50%; font: 400 16px var(--fellsc); color: #d8cdb4; background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 1.5px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c; }
body.ui-abime .mt-qsel button.on { color: var(--g3); box-shadow: 0 0 0 1.5px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 12px #6fe0a8, 0 0 12px rgba(111,224,168,.5); }
body.ui-abime .mt-wide .mt-C .panel { background: rgba(11,15,14,.75); border: 0; box-shadow: inset 0 0 0 1px rgba(201,165,90,.2); }
/* Droite : composants et fabrication */
body.ui-abime .mt-rt { font: 400 30px var(--fellsc); color: var(--g3); text-shadow: 0 2px 4px #000; }
body.ui-abime .mt-rt::first-letter { font-family: var(--goth); color: var(--g2); font-size: 1.3em; }
body.ui-abime .mt-R .hint { color: var(--mute); font-style: italic; }
body.ui-abime :is(.mt-ug, .mt-foot) h5 { font: 400 16px var(--fellsc); color: var(--g2); letter-spacing: .04em; }
body.ui-abime :is(.mt-cost, .mt-u, .mt-hero, .mt-R .queue-row) { border: 0; border-radius: 0; color: var(--ink); padding: 8px 12px 8px 8px; background: rgba(11,15,14,.8); box-shadow: inset 0 0 0 1px rgba(201,165,90,.16); }
body.ui-abime .mt-cost.miss { box-shadow: inset 0 0 0 1px rgba(224,96,74,.5); background: rgba(60,16,12,.4); }
body.ui-abime :is(.mt-cost, .mt-u.link):hover { filter: none; box-shadow: inset 0 0 0 1px rgba(201,165,90,.6); }
body.ui-abime .mt-hero.full { box-shadow: inset 0 0 0 1px rgba(111,224,168,.5); }
body.ui-abime .mt-have { font-family: var(--fellsc); font-size: 19px; }
body.ui-abime .mt-have.ok { color: #6fe0a8; } body.ui-abime .mt-have.ko { color: #e88a6a; }
body.ui-abime .mt-chev { color: var(--g2); }
/* Bouton principal (Fabriquer) */
body.ui-abime .mt-big, body.ui-abime .mt-big.red { position: relative; min-height: 70px; padding: 0 20px; border: 0; border-radius: 2px; font: 400 27px var(--fellsc); color: var(--g3);
  background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.22), transparent 70%), linear-gradient(180deg, #16211d, #0a0f0d);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(111,224,168,.35), 0 0 22px rgba(111,224,168,.25); text-shadow: 0 0 12px rgba(111,224,168,.5); filter: none; transition: filter .15s, transform .1s; }
body.ui-abime .mt-big.red { background: radial-gradient(ellipse at 50% 50%, rgba(224,96,74,.28), transparent 70%), linear-gradient(180deg, #24120f, #0d0807);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(224,96,74,.4), 0 0 22px rgba(224,96,74,.25); text-shadow: 0 0 12px rgba(224,96,74,.6); }
body.ui-abime .mt-big::before, body.ui-abime .mt-big::after { content: ""; position: absolute; top: calc(50% - 5px); left: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #e8c77a; box-shadow: 0 0 0 2px #0b0f0e; }
body.ui-abime .mt-big::after { left: auto; right: -6px; }
body.ui-abime .mt-big:hover:not(:disabled) { filter: brightness(1.15); }
body.ui-abime .mt-big:active:not(:disabled) { transform: scale(.98); }
body.ui-abime .mt-big:disabled { filter: grayscale(.7) brightness(.65); }
body.ui-abime #crafts :is(.btn-small, .link-btn.btn-small) { border: 0; border-radius: 12px; padding: 3px 12px; font: 400 14px var(--fellsc); color: #f0d9a0;
  background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 1px #c9a55a, 0 0 0 3px #0b0f0e, 0 0 0 4px #5a4a2c; }
body.ui-abime #crafts .btn-small:hover:not(:disabled) { color: var(--g3); box-shadow: 0 0 0 1px #e8c77a, 0 0 0 3px #0b0f0e, 0 0 0 4px #c9a55a, 0 0 10px rgba(111,224,168,.5); }
body.ui-abime #crafts .btn-primary { position: relative; min-height: 46px; padding: 0 16px; border: 0; border-radius: 2px; clip-path: none; font: 400 18px var(--fellsc); color: var(--g3);
  background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.22), transparent 70%), linear-gradient(180deg, #16211d, #0a0f0d);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 18px rgba(111,224,168,.3); text-shadow: 0 0 10px rgba(111,224,168,.5); }
/* Choix du métier (premier accès) */
body.ui-abime #crafts :is(.panel, .craft-box) { border: 0; border-radius: 2px; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,165,90,.10), transparent 60%), linear-gradient(180deg, rgba(18,23,22,.96), rgba(10,13,13,.97));
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, 0 14px 34px rgba(0,0,0,.7); }
body.ui-abime #crafts .panel::before, body.ui-abime #crafts .panel::after { display: none; }
body.ui-abime #crafts .prof-choice button { border: 0; border-radius: 0; color: var(--ink); background: rgba(11,15,14,.8); box-shadow: inset 0 0 0 1px rgba(201,165,90,.25); }
body.ui-abime #crafts .prof-choice button:hover { box-shadow: inset 0 0 0 1px #e8c77a, 0 0 12px rgba(111,224,168,.3); }
@media (max-width: 1100px) {
  body.ui-abime .mt { height: auto; padding-top: 0; gap: 18px; }
  body.ui-abime .mt-tabs { position: static; gap: 12px; margin: 6px 6px 10px; }
  body.ui-abime .mt-tabs button { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 72px; font-size: 15px; padding: 6px 4px; }
  body.ui-abime .mt-tabs button::before, body.ui-abime .mt-tabs button::after { display: none; }
  body.ui-abime .mt-tabs .mt-tic { grid-row: auto; width: 36px; height: 36px; padding: 8px; }
  body.ui-abime .mt-tabs button small { font-size: 12px; }
  body.ui-abime .mt-title { font-size: 28px; }
}
/* ---------- Bastion (v0.100 : texture A ; maquettes BastionFiletA et FleauxFiletA) ---------- */
body.ui-abime #guild { --g1: #c9a55a; --g2: #e8c77a; --g3: #f4e2b0; --ink: #efe6d2; --mute: #a99f8a; --glow: #6fe0a8;
  --fell: 'IM Fell English', Georgia, serif; --fellsc: 'IM Fell English SC', Georgia, serif; --goth: 'UnifrakturCook', 'Cinzel', serif; font-family: var(--fell); }
/* v0.103.1 : le Codex (#gallery) reprend la mise en page .bs-* mais n'avait pas ces variables → encre globale (#0b1020) sur fond noir */
body.ui-abime #gallery { --g1: #c9a55a; --g2: #e8c77a; --g3: #f4e2b0; --ink: #efe6d2; --mute: #a99f8a; --glow: #6fe0a8;
  --fell: 'IM Fell English', Georgia, serif; --fellsc: 'IM Fell English SC', Georgia, serif; --goth: 'UnifrakturCook', 'Cinzel', serif; }
body.ui-abime #guildBody.bs-on { padding: 4px 14px 14px; }
body.ui-abime .bs { background: none; border: 0; border-radius: 0; gap: 26px; color: var(--ink); overflow: visible; }
/* Panneau A : fond sombre, filet doré, losanges */
body.ui-abime :is(.bs-side, .bs-box, #guild .guild-box:not(.bs-corr), .gb-sum, .bs-table) { position: relative; border: 0; border-radius: 2px; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,165,90,.10), transparent 60%), linear-gradient(180deg, rgba(18,23,22,.96), rgba(10,13,13,.97));
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, 0 14px 34px rgba(0,0,0,.7); }
body.ui-abime :is(.bs-side, .bs-box)::before, body.ui-abime :is(.bs-side, .bs-box)::after { content: ""; position: absolute; left: calc(50% - 5px); top: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #c9a55a; box-shadow: 0 0 0 2px #0b0f0e; z-index: 2; pointer-events: none; display: block; inset: auto; }
body.ui-abime :is(.bs-side, .bs-box)::before { left: calc(50% - 5px); top: -6px; }
body.ui-abime :is(.bs-side, .bs-box)::after { left: calc(50% - 5px); bottom: -6px; }
body.ui-abime .bs-box { padding: 16px 20px; }
body.ui-abime .bs-box h3, body.ui-abime #guild .guild-box h3 { font: 400 21px var(--fellsc); letter-spacing: 0; color: var(--g3); }
body.ui-abime .bs-box h3::first-letter { font-family: var(--goth); color: var(--g2); font-size: 1.25em; }
body.ui-abime .bs-box h3 small { font: italic 400 13px var(--fell); color: var(--mute); }
body.ui-abime #guild .hint { color: var(--mute); font-style: italic; }
/* Colonne de gauche */
body.ui-abime .bs-side { padding: 20px 18px 16px; }
body.ui-abime .bs-name { font: 400 25px var(--fellsc); color: var(--g3); letter-spacing: 0; text-shadow: 0 2px 4px #000; }
body.ui-abime .bs-name::first-letter { font-family: var(--goth); color: var(--g2); font-size: 1.25em; }
body.ui-abime .bs-motd { font: italic 400 15px var(--fell); color: #cbb68a; }
body.ui-abime .bs-ring { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border-top: 1px solid rgba(201,165,90,.25); border-bottom: 1px solid rgba(201,165,90,.25); text-align: left; transition: background .15s; }
body.ui-abime .bs-ring:hover { background: linear-gradient(90deg, rgba(111,224,168,.08), transparent); }
body.ui-abime .bs-ring b { font: 400 19px var(--fellsc); color: var(--g3); }
body.ui-abime .bs-ring small { font: italic 400 13px var(--fell); color: var(--mute); }
body.ui-abime .bs-ring small.gold { color: #9af0c8; font-style: normal; }
body.ui-abime .bs-st { gap: 12px; }
body.ui-abime .bs-st > div { border: 0; border-radius: 2px; padding: 8px 10px; background: rgba(11,15,14,.8); box-shadow: 0 0 0 1px rgba(201,165,90,.55), 0 0 0 3px #0b0f0e; }
body.ui-abime .bs-st small { font: 400 11.5px var(--fellsc); letter-spacing: .06em; text-transform: none; color: var(--mute); }
body.ui-abime .bs-st b { font: 400 21px var(--fellsc); color: var(--g3); }
body.ui-abime .bs-st b.gold { color: #9af0c8; font-size: 19px; }
body.ui-abime .bs-st em { font-style: italic; color: var(--mute); font-size: 12.5px; }
body.ui-abime .bs-coin { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 0; border-radius: 2px; background: rgba(11,15,14,.8); box-shadow: 0 0 0 1px rgba(201,165,90,.55), 0 0 0 3px #0b0f0e; color: var(--ink); font-family: var(--fellsc); }
body.ui-abime .bs-foot { border-top: 1px solid rgba(201,165,90,.25); color: var(--mute); font-size: 14px; }
body.ui-abime .bs-foot .gold { color: var(--g2); font-family: var(--fellsc); font-weight: 400; }
body.ui-abime .bs-leave { color: var(--mute); font-style: italic; text-decoration: underline; text-decoration-color: rgba(201,165,90,.5); }
body.ui-abime .bs .gold { color: #9af0c8; }
body.ui-abime .bs-main { gap: 16px; }
/* Onglets : même traitement que « Fabriquer » */
body.ui-abime .bs-tabs { min-height: 0; padding: 4px 6px 6px; gap: 14px; background: none; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); overflow: visible; }
body.ui-abime .bs-tabs::before, body.ui-abime .bs-tabs::after { display: none; }
body.ui-abime .bs-tabs button { position: relative; overflow: visible; box-sizing: border-box; height: auto; min-height: 56px; justify-content: center; padding: 0 8px; gap: 8px; white-space: nowrap;
  font: 400 17px var(--fellsc); letter-spacing: 0; color: var(--ink); text-shadow: 0 2px 4px #000; border-radius: 2px; filter: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,199,122,.10), transparent 70%), linear-gradient(180deg, #161b1a, #0a0d0d);
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #8a7340, inset 0 0 18px rgba(232,199,122,.12), 0 14px 30px rgba(0,0,0,.7); transition: filter .15s; }
body.ui-abime .bs-tabs button i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%);
  box-shadow: 0 0 0 1.5px #c9a55a, 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px #5a4a2c, inset 0 0 8px rgba(111,224,168,.25); }
body.ui-abime .bs-tabs button i .bs-tic { width: 22px; height: 22px; }
body.ui-abime .bs-tabs button:hover:not(.on) { filter: brightness(1.18); color: var(--ink); }
body.ui-abime .bs-tabs button.on { color: var(--g3); text-shadow: 0 0 12px rgba(111,224,168,.5), 0 2px 4px #000; filter: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.24), transparent 72%), linear-gradient(180deg, #16211d, #0a0f0d);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(111,224,168,.35), 0 0 22px rgba(111,224,168,.28), 0 14px 30px rgba(0,0,0,.7); }
body.ui-abime .bs-tabs button.on i { box-shadow: 0 0 0 1.5px #e8c77a, 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px #c9a55a, inset 0 0 12px #6fe0a8, 0 0 10px rgba(111,224,168,.5); }
body.ui-abime .bs-tabs button.on::after { content: ""; display: block; position: absolute; left: calc(50% - 6px); right: auto; top: auto; bottom: -7px; width: 12px; height: 12px; border-radius: 0; transform: rotate(45deg); background: #e8c77a; box-shadow: 0 0 0 2px #0b0f0e, 0 0 10px rgba(111,224,168,.7); }
body.ui-abime .bs-tabs button.badge-on:not(.on)::after { content: ""; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: #e0604a; box-shadow: 0 0 0 2px #0b0f0e; }
body.ui-abime .bs-cnt { min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font: 400 12px var(--fellsc); color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); }
body.ui-abime .bs-soon { font: italic 400 11.5px var(--fell); color: var(--mute); border: 0; box-shadow: inset 0 0 0 1px #5a4a2c; border-radius: 8px; padding: 0 6px; }
body.ui-abime .bs-dot { background: #e0604a; }
/* Contenu */
body.ui-abime .bs-body { padding: 6px 4px 4px; gap: 22px; }
body.ui-abime .bs-h h2 { font: 400 27px var(--fellsc); letter-spacing: 0; color: var(--g3); text-shadow: 0 2px 4px #000; }
body.ui-abime .bs-h h2::first-letter { font-family: var(--goth); color: var(--g2); font-size: 1.25em; }
body.ui-abime .bs-h span { font-style: italic; font-size: 15px; color: var(--mute); }
body.ui-abime .bs-fh { align-items: center; }
body.ui-abime .bs-tac { margin-left: auto; font: 400 15px var(--fellsc); color: #d8cdb4; text-decoration: none; }
body.ui-abime .bs-tac:hover { color: var(--g3); }
/* Fléaux : deux grands panneaux de boss */
body.ui-abime .bs-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
body.ui-abime .bs-fx .gb-sum { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px 20px; padding: 16px; min-height: 270px; box-sizing: border-box; }
body.ui-abime .bs-fx .gb-sum::before, body.ui-abime .bs-fx .gb-sum::after { content: ""; position: absolute; left: calc(50% - 5px); top: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #c9a55a; box-shadow: 0 0 0 2px #0b0f0e; z-index: 2; }
body.ui-abime .bs-fx .gb-sum::after { top: auto; bottom: -6px; }
body.ui-abime .bs-fx .gb-sum-head { display: contents; }
body.ui-abime .bs-fx .gb-sum-face { grid-row: 1 / span 3; position: relative; width: 210px; height: 236px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 48% 48% 6px 6px / 30% 30% 6px 6px; background: radial-gradient(ellipse at 50% 60%, rgba(120,200,230,.45), transparent 70%), radial-gradient(circle at 50% 40%, #151b1a, #050707 80%);
  box-shadow: inset 0 0 0 2px #c9a55a, inset 0 0 0 5px #0b0f0e, inset 0 0 0 6px rgba(201,165,90,.5), inset 0 -40px 50px rgba(0,0,0,.55); }
body.ui-abime .bs-fx .gg-sum .gb-sum-face { background: radial-gradient(ellipse at 50% 60%, rgba(170,90,230,.5), transparent 70%), radial-gradient(circle at 50% 40%, #151b1a, #050707 80%); }
body.ui-abime .bs-fx .gb-sum-face img { width: 180px !important; height: auto !important; max-height: 200px; object-fit: contain; transform: none !important; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(255,255,255,.12)) drop-shadow(0 6px 6px #000); }
body.ui-abime .bs-fx .gg-sum .gb-sum-face img { width: 200px !important; }
body.ui-abime .bs-fx .gb-sum-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.ui-abime .bs-fx .gb-sum-txt > b { font: 400 28px var(--fellsc); line-height: 1.05; color: var(--g3); text-shadow: 0 0 14px rgba(232,199,122,.25); }
body.ui-abime .bs-fx .gb-bar { height: 22px; border: 0; border-radius: 0; background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c, 0 0 0 3px #0b0f0e, 0 0 0 4px #5a4a2c; }
body.ui-abime .bs-fx .gb-bar .fill { border-radius: 0; background: linear-gradient(180deg, #e0604a, #8a1e14); box-shadow: 0 0 10px rgba(224,96,74,.6); }
body.ui-abime .bs-fx .gb-sum-txt small { font-size: 14px; line-height: 1.35; color: #d8cdb4; font-style: italic; }
body.ui-abime .bs-fx .gb-sum-txt small b { font-family: var(--fellsc); font-weight: 400; font-style: normal; color: var(--g3); }
body.ui-abime .bs-fx .gb-sum-top { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: #d8cdb4; align-self: start; }
body.ui-abime .bs-fx .gb-sum-top b { font-family: var(--fellsc); font-weight: 400; color: var(--g2); }
body.ui-abime .bs-fx .gb-sum > p.hint { margin: 0; align-self: start; }
body.ui-abime #guild .bs-fx .gb-sum .btn-primary { grid-column: 2; align-self: end; position: relative; overflow: visible; min-height: 54px; border: 0; border-radius: 2px; clip-path: none; font: 400 19px var(--fellsc); letter-spacing: 0; color: var(--g3);
  background: radial-gradient(ellipse at 50% 50%, rgba(224,96,74,.28), transparent 70%), linear-gradient(180deg, #24120f, #0d0807);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(224,96,74,.4), 0 0 22px rgba(224,96,74,.25); text-shadow: 0 0 12px rgba(224,96,74,.6); }
body.ui-abime #guild .bs-fx .gb-sum .btn-primary::before, body.ui-abime #guild .bs-fx .gb-sum .btn-primary::after { content: ""; position: absolute; top: calc(50% - 5px); left: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #e8c77a; box-shadow: 0 0 0 2px #0b0f0e; }
body.ui-abime #guild .bs-fx .gb-sum .btn-primary::after { left: auto; right: -6px; }
body.ui-abime .bs-fx .gb-sum .btn-primary:hover { filter: brightness(1.15); }
/* Serments : parchemin posé dans un cadre A */
body.ui-abime .bs-seals { gap: 22px; }
body.ui-abime .bs-seal { position: relative; padding: 2px 6px 0; color: #2b1d0c; background: none; border: 16px solid transparent; border-radius: 0;
  border-image: url(../img/ui/abime/parchemin.webp) 26 28 24 28 fill / 16px 18px 16px 18px stretch;
  box-shadow: 0 0 0 5px #121716, 0 0 0 6px #c9a55a, 0 0 0 9px #0b0f0e, 0 0 0 10px #5a4a2c, 0 14px 30px rgba(0,0,0,.7); margin: 10px; }
body.ui-abime .bs-seal b { font: 400 16.5px var(--fellsc); color: #2b1d0c; }
body.ui-abime .bs-seal small { font-style: italic; color: #4a3a26; font-size: 13.5px; }
body.ui-abime .bs-seal span { font-family: var(--fellsc); font-weight: 400; color: #6b4a1c; }
body.ui-abime .bs-seal.done { filter: none; box-shadow: 0 0 0 5px #121716, 0 0 0 6px #6fe0a8, 0 0 0 9px #0b0f0e, 0 0 0 10px #3f8a62, 0 0 18px rgba(111,224,168,.35), 0 14px 30px rgba(0,0,0,.7); }
body.ui-abime .bs-seal.done span { color: #1f6b52; }
/* Piliers, Chronique, échelle */
body.ui-abime .bs-step { border-radius: 0; border: 0; background: linear-gradient(180deg, rgba(232,199,122,.16), rgba(11,15,14,.9)); box-shadow: inset 0 0 0 1px rgba(201,165,90,.55); color: var(--g2); font-family: var(--fellsc); }
body.ui-abime .bs-av { border: 0; color: var(--g3); font-family: var(--fellsc); background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 1.5px #5a4a2c, 0 0 0 4px #0b0f0e; }
body.ui-abime .bs-pod.p1 .bs-av { box-shadow: 0 0 0 1.5px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 12px #6fe0a8, 0 0 12px rgba(111,224,168,.4); }
body.ui-abime .bs-pod b, body.ui-abime .bs-rk b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); }
body.ui-abime .bs-chip { padding: 3px 11px; border-radius: 13px; font: 400 14px var(--fellsc); color: #cbbfa6; background: #0b0f0e; box-shadow: inset 0 0 0 1px #3a3020; border: 0; }
body.ui-abime .bs-chip:hover { color: var(--g3); box-shadow: inset 0 0 0 1px #c9a55a; }
body.ui-abime .bs-chip.on { color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); box-shadow: 0 0 8px rgba(232,199,122,.35); }
body.ui-abime .bs-ev { border-bottom: 1px solid rgba(201,165,90,.12); font-size: 14.5px; color: #d8cdb4; }
body.ui-abime .bs-ev small { font-style: italic; color: var(--mute); }
body.ui-abime .bs-track::before { background: rgba(201,165,90,.3); }
body.ui-abime .bs-track::after { background: linear-gradient(90deg, #3fae7c, #6fe0a8); }
body.ui-abime .bs-tk span { width: 26px; height: 26px; border-radius: 0; transform: rotate(45deg); background: #0b0f0e; border: 0; box-shadow: 0 0 0 1px #5a4a2c, 0 0 0 3px #0b0f0e; color: var(--mute); font: 400 13px var(--fellsc); }
body.ui-abime .bs-tk.ok span { color: #12100a; background: linear-gradient(135deg, #b8f5d8, #3fae7c); box-shadow: 0 0 0 1px #e8c77a, 0 0 0 3px #0b0f0e, 0 0 10px rgba(111,224,168,.5); }
body.ui-abime .bs-tk b { font: 400 15px var(--fellsc); color: #d8cdb4; margin-top: 10px; } body.ui-abime .bs-tk.ok b { color: var(--g3); }
body.ui-abime .bs-tk small { font-style: italic; color: #7a7060; }
/* Chat : en ligne · correspondance · registre */
body.ui-abime .bs-onm b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); }
body.ui-abime .bs-onm.on .bs-av { box-shadow: 0 0 0 1.5px #e8c77a, 0 0 0 4px #0b0f0e, inset 0 0 10px #6fe0a8; }
body.ui-abime .bs-onm.on i { color: #6fe0a8; font-style: italic; }
body.ui-abime .bs-lock { font: 400 11.5px var(--fellsc); color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); }
body.ui-abime .bs-corr { position: relative; color: #3a2212; padding: 40px 48px 34px; transform: rotate(-.3deg);
  background: url(../img/ui/abime/papier-v.webp) 0 0 / 100% 100% no-repeat !important; box-shadow: none !important; filter: drop-shadow(0 18px 30px #000); }
body.ui-abime .bs-corr::before, body.ui-abime .bs-corr::after { display: none !important; }
body.ui-abime .bs-corr-h span { font: 400 38px var(--goth); color: #3a2212; } body.ui-abime .bs-corr-h span::first-letter { color: #7a1f14; font-size: 1.2em; }
body.ui-abime .bs-corr-h small { font: italic 400 16px var(--fell); color: rgba(58,34,18,.7); }
body.ui-abime .bs-corr .chat-log.g-chat { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; border-top: 1px solid rgba(59,36,20,.4) !important; padding: 10px 4px 0; color: #3a2212; font: 400 17px/1.3 var(--fell); }
body.ui-abime .bs-corr .chat-log > div { margin: 0 0 8px; }
body.ui-abime .bs-corr .chat-log b { font: 400 17px var(--fellsc); color: #3a2212; }
body.ui-abime .bs-corr .chat-log small.hint { color: rgba(58,34,18,.6); font-size: 13px; }
body.ui-abime .bs-corr .chat-log .sys { font-style: italic; color: #7a1f14; text-align: center; }
body.ui-abime .bs-corr .chat-log .empty { color: rgba(58,34,18,.65) !important; font-style: italic; font-size: 16px; }
body.ui-abime .bs-corr .chat-form { border-top: 1px solid rgba(59,36,20,.4); padding-top: 10px; display: flex; gap: 12px; align-items: center; }
body.ui-abime #guild .bs-corr .chat-form input { flex: 1; background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px dotted rgba(59,36,20,.55) !important; border-radius: 0 !important; color: #3a2212 !important; font: italic 400 17px var(--fell); padding: 4px 2px; }
body.ui-abime .bs-corr .chat-form input::placeholder { color: rgba(58,34,18,.55); }
body.ui-abime .bs-corr .chat-form .btn-small { width: 104px; height: 52px; border: 0 !important; border-radius: 50% !important; font: 400 17px var(--fellsc); color: #f4dcc0 !important; text-shadow: 0 1px 1px rgba(0,0,0,.5);
  background: radial-gradient(ellipse at 40% 35%, #2f6a4e, #123a28 72%) !important; box-shadow: inset 0 0 0 3px #0c2a1c, inset 0 0 0 6px rgba(255,200,170,.25), 0 4px 8px rgba(40,10,0,.5) !important; filter: saturate(.6) brightness(.82) sepia(.25); }
body.ui-abime .bs-corr .chat-form .btn-small:hover { filter: saturate(.7) brightness(1.05) sepia(.2); }
/* Tableaux, champs, boutons des autres onglets */
body.ui-abime .bs-table { border: 0; border-radius: 2px; padding: 8px 18px; }
body.ui-abime #guild .guild-box:not(.bs-corr) { padding: 16px 20px; }
body.ui-abime .gbk-tab { border: 0; padding: 3px 12px; border-radius: 13px; font: 400 14px var(--fellsc); color: #cbbfa6; background: #0b0f0e; box-shadow: inset 0 0 0 1px #3a3020; }
body.ui-abime .gbk-tab.on { color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); }
body.ui-abime #guild .raid-row b { font-family: var(--fellsc); font-weight: 400; font-size: 19px; color: var(--g3); }
body.ui-abime .bs-tr { border-bottom: 1px solid rgba(201,165,90,.12); background: none !important; }
body.ui-abime .bs-th { background: none !important; font: 400 12px var(--fellsc); letter-spacing: .08em; text-transform: none; color: var(--mute); border-bottom: 1px solid rgba(201,165,90,.35); }
body.ui-abime .bs-tr.sel { background: linear-gradient(90deg, rgba(111,224,168,.1), transparent) !important; box-shadow: inset 2px 0 #6fe0a8; }
body.ui-abime .bs-who b { font: 400 17px var(--fellsc); color: var(--g3); }
body.ui-abime .bs-lvl { font: 400 20px var(--fellsc); color: var(--g3); }
body.ui-abime .bs-prof { font: 400 12.5px var(--fellsc); color: #cbbfa6; padding: 1px 9px; border-radius: 9px; background: #0b0f0e; border: 0; box-shadow: inset 0 0 0 1px #5a4a2c; }
body.ui-abime .bs-prof b { color: var(--g2); font-weight: 400; }
body.ui-abime #guild :is(input:not([type=checkbox]):not([type=range]):not([type=color]), select, textarea) { background: rgba(7,9,10,.85); border: 0; border-radius: 18px; color: var(--g3); font-family: var(--fell); box-shadow: inset 0 0 0 1px rgba(201,165,90,.45), 0 0 0 3px #0b0f0e; }
body.ui-abime #guild textarea { border-radius: 2px; }
body.ui-abime #guild :is(input, textarea)::placeholder { color: #7a7060; font-style: italic; }
body.ui-abime #guild .btn-small { border: 0; border-radius: 12px; padding: 3px 12px; font: 400 14px var(--fellsc); color: #f0d9a0; background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 1px #c9a55a, 0 0 0 3px #0b0f0e, 0 0 0 4px #5a4a2c; }
body.ui-abime #guild .btn-small:hover:not(:disabled) { color: var(--g3); box-shadow: 0 0 0 1px #e8c77a, 0 0 0 3px #0b0f0e, 0 0 0 4px #c9a55a, 0 0 10px rgba(111,224,168,.5); }
body.ui-abime #guild .btn-primary { position: relative; overflow: visible; min-height: 46px; padding: 0 18px; border: 0; border-radius: 2px; clip-path: none; font: 400 18px var(--fellsc); color: var(--g3);
  background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.22), transparent 70%), linear-gradient(180deg, #16211d, #0a0f0d);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 18px rgba(111,224,168,.3); text-shadow: 0 0 10px rgba(111,224,168,.5); }
body.ui-abime #guild .btn-primary:hover:not(:disabled) { filter: brightness(1.15); }
body.ui-abime #guild .panel:not(.bs-corr):not(.gb-sum):not(.guild-box) { background: rgba(11,15,14,.7); border: 0; box-shadow: inset 0 0 0 1px rgba(201,165,90,.2); }
body.ui-abime #guild .gb-banner.tc-banner { display: none; }
@media (max-width: 900px) {
  body.ui-abime .bs { grid-template-columns: 1fr; }
  body.ui-abime .bs-tabs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  body.ui-abime .bs-tabs button { min-height: 50px; font-size: 14px; padding: 0 4px; }
  body.ui-abime .bs-tabs button i { width: 28px; height: 28px; }
  body.ui-abime .bs-fx { grid-template-columns: 1fr; }
  body.ui-abime .bs-fx .gb-sum { grid-template-columns: 130px minmax(0, 1fr); min-height: 0; }
  body.ui-abime .bs-fx .gb-sum-face { width: 130px; height: 160px; }
  body.ui-abime #guild .bs-fx .gb-sum .btn-primary { grid-column: 1 / -1; }
  body.ui-abime .bs-seals { grid-template-columns: 1fr 1fr; }
  body.ui-abime .bs-corr { padding: 30px 26px 24px; transform: none; }
}

/* ---------- Notifications ---------- */
body.ui-abime .toasts { width: min(92vw, 420px); }
body.ui-abime .toast {
  display: block; min-height: 30px; padding: 4px 6px; border-radius: 0; background: none; box-shadow: none; color: #efe6d2;
  font: 600 16px "Cormorant Garamond", Georgia, serif; line-height: 1.3; text-shadow: 0 1px 2px #000; --tc: #bdb29a;
  border: 10px solid transparent; border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 10px 10px 9px 10px stretch;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.7));
}
body.ui-abime .toast { position: relative; padding-left: 40px; }
body.ui-abime .toast::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 20px; height: 20px; margin-top: -10px; transform: rotate(45deg);
  background: #0b0f0e; border: 2px solid var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 55%, transparent);
}
body.ui-abime .toast::after { content: "i"; position: absolute; left: 4px; top: 50%; width: 24px; margin-top: -10px; text-align: center; color: var(--tc); font: 700 13px/20px Cinzel, serif; }
body.ui-abime .toast.t-gem { --tc: #c9a4ff; } body.ui-abime .toast.t-gem::after { content: "★"; }
body.ui-abime .toast.t-loot { --tc: #ffd35a; } body.ui-abime .toast.t-loot::after { content: "◆"; }
body.ui-abime .toast.t-warn { --tc: #e0523f; background: none; color: #ffe2dd; filter: drop-shadow(0 6px 14px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(224,82,63,.45)); }
body.ui-abime .toast.t-warn::after { content: "!"; }
body.ui-abime .toast .ui-ic { width: 18px; height: 18px; }
body.ui-abime .toast .t-count { color: #e8c77a; }

/* ---------- Fenêtres (information, choix, mot de passe, notes) ---------- */
body.ui-abime .modal { background: rgba(2,3,4,.78); }
body.ui-abime .modal-box:not(.daily-box) {
  background: none; box-shadow: none; border-radius: 0; color: #efe6d2; padding: 4px 10px 8px;
  border: 24px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 24px 26px 20px 24px stretch;
  filter: drop-shadow(0 18px 40px #000);
}
body.ui-abime .modal-box:not(.daily-box)::before, body.ui-abime .modal-box:not(.daily-box)::after { display: none; }
body.ui-abime .modal-box:not(.daily-box) :is(h2, h3) { font-family: Cinzel, serif; font-weight: 700; color: #e8c77a; text-shadow: 0 2px 4px #000; }
body.ui-abime .modal-box:not(.daily-box) p { color: #d6cdb6; }
body.ui-abime .modal-box:not(.daily-box) .info-text { color: #efe6d2; font-size: 16px; }
body.ui-abime .modal-box:not(.daily-box) .btn-primary {
  min-height: 52px; background: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; border-radius: 0; clip-path: none;
  border: 0 solid transparent; border-width: 15px 40px 15px 17px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 15px 40px 15px 17px stretch; padding: 0 4px;
}
body.ui-abime .modal-box:not(.daily-box) .btn-small { background: #0b0f0e; border: 1px solid #5a4a2c; border-radius: 3px; color: #efe6d2; box-shadow: none; }
body.ui-abime .modal-box:not(.daily-box) .btn-small:hover:not(:disabled) { border-color: #c9a55a; color: #e8c77a; }
body.ui-abime .modal-box:not(.daily-box) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { background: #0b0f0e; border: 1px solid #5a4a2c; border-radius: 3px; color: #efe6d2; }
body.ui-abime .pick-row {
  background: none; border-radius: 0; color: #efe6d2; box-shadow: none;
  border: 10px solid transparent; border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 10px 10px 9px 10px stretch;
}
body.ui-abime .pick-row:hover:not(:disabled) { background: none; filter: brightness(1.2) drop-shadow(0 0 6px rgba(111,224,168,.5)); }
body.ui-abime .modal-box button { transition: filter .15s, transform .1s; }
body.ui-abime .modal-box .btn-primary:hover:not(:disabled) { filter: brightness(1.2) drop-shadow(0 0 7px rgba(111,224,168,.6)); }
body.ui-abime .modal-box button:active:not(:disabled) { transform: scale(.97); }
/* Notes de mise à jour : dernière version sur parchemin, les autres en cadres */
body.ui-abime .patch-notes details {
  margin-bottom: 6px; padding: 0 6px; border-radius: 0; background: none; color: #efe6d2;
  border: 10px solid transparent; border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 10px 10px 9px 10px stretch;
}
body.ui-abime .patch-notes details[open] {
  color: #2b1d0c; border-width: 16px; border-image: url(../img/ui/abime/parchemin.webp) 26 28 24 28 fill / 16px 18px 16px 18px stretch;
}
body.ui-abime .patch-notes summary { font-size: 16px; color: #d6cdb6; }
body.ui-abime .patch-notes summary b { font-family: Cinzel, serif; color: #e8c77a; }
body.ui-abime .patch-notes details[open] summary { color: #2b1d0c; }
body.ui-abime .patch-notes details[open] summary b { color: #2b1d0c; }
body.ui-abime .patch-notes li { font-size: 15.5px; color: #3a2a16; }
body.ui-abime .patch-notes li b { color: #2b1d0c; }
body.ui-abime .modal-box:has(.patch-notes) { max-width: 680px; }

/* ---------- Discussion (v0.99.3 : « Correspondance » sur papier vieilli) ---------- */
body.ui-abime .chat-drawer {
  --ink: #3a2212; --ink-red: #7a1f14; --ink-mute: rgba(58,34,18,.62);
  --fell: 'IM Fell English', 'Cormorant Garamond', Georgia, serif; --fellsc: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif;
  top: 12px; bottom: 12px; right: 10px; width: min(480px, calc(100vw - 20px)); padding: 40px 38px 34px; box-sizing: border-box;
  background: url(../img/ui/abime/papier-v.webp) 0 0 / 100% 100% no-repeat; border: 0; box-shadow: none; filter: drop-shadow(-8px 14px 26px rgba(0,0,0,.85));
  color: var(--ink); --text: var(--ink); font-family: var(--fell); z-index: 70;
}
body.ui-abime .cdr-h { border-bottom: 0; padding: 0 0 10px; align-items: center; }
body.ui-abime .cdr-h b { font-family: 'UnifrakturCook', 'Cinzel', serif; font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); text-shadow: none; font-size: 0; }
body.ui-abime .cdr-h b::before { content: "C"; font-family: 'UnifrakturCook', 'Cinzel', serif; font-size: 42px; color: var(--ink-red); }
body.ui-abime .cdr-h b::after { content: "orrespondance"; font-family: 'UnifrakturCook', 'Cinzel', serif; font-size: 34px; color: var(--ink); }
/* Sceaux de cire */
body.ui-abime :is(.cdr-x, .cdr-tabs button, .cdr-form .btn-small, .cdr-empty .btn-small) {
  --wa: #a8321e; --wb: #6a160e; --wd: #5a120a; --wl: 1;
  font-family: var(--fellsc); font-weight: 400; color: #f4dcc0; text-shadow: 0 1px 1px rgba(0,0,0,.5); border: 0; border-radius: 50%; border-image: none;
  background: radial-gradient(ellipse at 40% 35%, var(--wa), var(--wb) 72%); box-shadow: inset 0 0 0 3px var(--wd), inset 0 0 0 6px rgba(255,200,170,.25), 0 4px 8px rgba(40,10,0,.5);
  filter: saturate(.6) brightness(calc(.82 * var(--wl))) sepia(.25); transition: filter .15s, transform .1s;
}
body.ui-abime :is(.cdr-x, .cdr-tabs button, .cdr-form .btn-small, .cdr-empty .btn-small):hover { filter: saturate(.7) brightness(calc(.98 * var(--wl) + .1)) sepia(.2); }
body.ui-abime :is(.cdr-x, .cdr-tabs button, .cdr-form .btn-small, .cdr-empty .btn-small):active { transform: scale(.96); }
body.ui-abime .cdr-x { width: 42px; height: 42px; padding: 0; font-size: 18px; --wl: .8; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
body.ui-abime .cdr-tabs { gap: 10px; padding: 4px 0 12px; border-bottom: 1px solid rgba(59,36,20,.4); margin-bottom: 8px; }
body.ui-abime .cdr-tabs button { min-height: 46px; font-size: 17px; --wl: .62; position: relative; }
body.ui-abime .cdr-tabs button.on { --wl: 1.05; }
body.ui-abime .cdr-tabs button[data-ct="b"] { --wa: #2f6a4e; --wb: #123a28; --wd: #0c2a1c; }
body.ui-abime .cdr-tabs button[data-ct="p"] { --wa: #5e4478; --wb: #2e1c40; --wd: #22142f; }
body.ui-abime .cdr-tabs i { display: none; }
body.ui-abime .cdr-tabs button.unread:not(.on) i { display: block; position: absolute; top: 5px; right: 16px; width: 8px; height: 8px; background: #f4dcc0 !important; box-shadow: 0 0 4px #f4dcc0 !important; opacity: 1; }
body.ui-abime .cdr-tabs em { color: #f4dcc0; font-size: 12px; }
body.ui-abime .cdr-body { border: 0; border-image: none; background: none; }
body.ui-abime .cdr-log { font-family: var(--fell); font-size: 18px; padding: 2px 4px 2px 0; color: var(--ink); scrollbar-color: rgba(90,52,16,.5) transparent; }
body.ui-abime .ch-l { position: relative; display: block; margin: 0 0 3px; line-height: 1.28; }
body.ui-abime .ch-l .ch-bn { position: absolute; left: 0; top: 3px; filter: sepia(.7) saturate(.6); }
body.ui-abime .ch-l .ch-bn.none { display: none; }
body.ui-abime .ch-l .ch-tx { color: var(--ink); }
body.ui-abime .ch-l .ch-tx b { display: block; font-family: var(--fellsc); font-weight: 400; font-size: 17px; color: var(--ink); padding-right: 60px; }
body.ui-abime .ch-l .ch-tx { display: block; }
body.ui-abime .ch-l:has(.ch-bn:not(.none)) .ch-tx b { padding-left: 24px; }
body.ui-abime .ch-l.me .ch-tx b { color: var(--ink-red); }
body.ui-abime .ch-l small { position: absolute; top: 2px; right: 0; margin: 0; font-family: var(--fell); font-style: italic; font-size: 13px; color: var(--ink-mute); }
body.ui-abime .ch-l.sys { text-align: center; }
body.ui-abime .ch-l.sys .ch-tx { color: var(--ink-red); font-style: italic; font-size: 16px; }
body.ui-abime .ch-l.sys .ch-tx::before { content: "✠ "; } body.ui-abime .ch-l.sys .ch-tx::after { content: " ✠"; }
body.ui-abime .ch-l.sys small { position: static; display: block; }
body.ui-abime .cdr-empty { color: var(--ink-mute); font-style: italic; }
body.ui-abime .cdr-empty .btn-small { min-height: 44px; padding: 0 22px; font-size: 16px; margin-top: 10px; }
body.ui-abime .cdr-form { border-top: 1px solid rgba(59,36,20,.4); padding: 12px 0 0; gap: 12px; align-items: center; }
body.ui-abime .cdr-form::before { content: "✒"; font-size: 22px; color: #5a3a1e; }
body.ui-abime .cdr-form input { background: none; border: 0; border-bottom: 1px dotted rgba(59,36,20,.55); border-radius: 0; box-shadow: none; color: var(--ink); font-family: var(--fell); font-style: italic; font-size: 18px; padding: 4px 2px; }
body.ui-abime .cdr-form input::placeholder { color: rgba(58,34,18,.55); }
body.ui-abime .cdr-form input:focus { outline: none; border-bottom-color: var(--ink-red); }
body.ui-abime .cdr-form .btn-small { min-height: 54px; min-width: 104px; padding: 0 10px; font-size: 18px; }
/* Amis et messages privés */
body.ui-abime .cdr-f { border-radius: 0; background: none; border: 0; border-bottom: 1px dotted rgba(59,36,20,.35); border-image: none; color: var(--ink); font-family: var(--fell); padding: 8px 4px; }
body.ui-abime .cdr-f b { font-family: var(--fellsc); font-weight: 400; font-size: 17px; color: var(--ink); }
body.ui-abime .cdr-f small { color: var(--ink-mute); font-style: italic; }
body.ui-abime .cdr-f:hover { background: linear-gradient(90deg, transparent, rgba(122,31,20,.09) 20%, rgba(122,31,20,.09) 80%, transparent); }
body.ui-abime .cdr-f.unread { box-shadow: none; background: linear-gradient(90deg, transparent, rgba(122,31,20,.15) 20%, rgba(122,31,20,.15) 80%, transparent); }
body.ui-abime .cdr-f em { background: var(--ink-red); color: #f4dcc0; }
body.ui-abime .cdr-f .dot { background: rgba(58,34,18,.35); box-shadow: none; } body.ui-abime .cdr-f .dot.on { background: #2f6a4e; }
body.ui-abime .cdr-pmh { border-bottom: 1px solid rgba(59,36,20,.4); color: var(--ink); }
body.ui-abime .cdr-pmh b { font-family: var(--fellsc); font-weight: 400; font-size: 19px; }
body.ui-abime .cdr-pmh .link-btn { color: var(--ink-red); font-family: var(--fell); font-style: italic; }
body.ui-abime .cdr-bub { border: 0; border-image: none; background: none; border-radius: 0; padding: 2px 0 8px; color: #2a4a3a; font-family: var(--fell); font-size: 18px; font-style: italic; max-width: 100%; box-shadow: none; }
body.ui-abime .cdr-bub.me { filter: none; color: var(--ink); font-style: normal; text-align: right; margin-left: auto; }
body.ui-abime .cdr-bub small { display: block; color: var(--ink-mute); font-size: 12.5px; }
@media (max-width: 600px) { body.ui-abime .chat-drawer { top: 0; bottom: 0; right: 0; width: 100vw; padding: 32px 26px 28px; background: url(../img/ui/abime/papier-v.webp) 0 0 / 100% 100% no-repeat, #07090a; } }

/* ---------- Bandeau « Nouvelle version » (v0.99.4) ---------- */
body.ui-abime .version-bar {
  top: 10px; gap: 16px; padding: 4px 8px 4px 18px; border-radius: 0; background: linear-gradient(180deg, rgba(14,17,17,.94), rgba(8,10,10,.96)); background-clip: padding-box; box-shadow: none;
  border: 22px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 / 22px 24px 18px 22px stretch;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.8)); color: #efe6d2; font: 600 17px "Cormorant Garamond", Georgia, serif; text-shadow: 0 1px 2px #000;
}
body.ui-abime .version-bar .btn-primary {
  min-height: 52px; min-width: 150px; background: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; font-size: 15px; border-radius: 0; clip-path: none;
  border: 0 solid transparent; border-width: 15px 40px 15px 17px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 15px 40px 15px 17px stretch; padding: 0 4px; transition: filter .15s, transform .1s;
}
@media (min-width: 760px) { body.ui-abime .version-bar { flex-wrap: nowrap; width: max-content; } body.ui-abime .version-bar span { white-space: nowrap; } }
body.ui-abime .version-bar .btn-primary::before, body.ui-abime .version-bar .btn-primary::after { display: none; }
body.ui-abime .version-bar .btn-primary:hover { filter: brightness(1.2) drop-shadow(0 0 7px rgba(111,224,168,.6)); }
body.ui-abime .version-bar .btn-primary:active { transform: scale(.97); }

/* ---------- Bulles du tutoriel ---------- */
body.ui-abime .tuto-ring { border-color: #6fe0a8; box-shadow: 0 0 18px rgba(111,224,168,.7); }
body.ui-abime .tuto-bubble {
  background: none; box-shadow: none; border-radius: 0; color: #efe6d2; padding: 2px 6px 4px;
  border: 18px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 fill / 18px 20px 16px 18px stretch;
  filter: drop-shadow(0 12px 28px #000);
}
body.ui-abime .tuto-count { color: #c9a55a; font-family: Cinzel, serif; }
body.ui-abime .tuto-title { font-family: Cinzel, serif; color: #e8c77a; }
body.ui-abime .tuto-text { color: #efe6d2; font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; }
body.ui-abime .tuto-btns .btn-small { background: #0b0f0e; border: 1px solid #5a4a2c; border-radius: 3px; color: #efe6d2; }
body.ui-abime .tuto-btns .btn-primary {
  min-height: 44px; background: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; border-radius: 0; clip-path: none;
  border: 0 solid transparent; border-width: 13px 32px 13px 13px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 13px 32px 13px 13px stretch; padding: 0 4px;
}

/* ---------- v0.99.1 : barre « Tutoriel en pause » et récit d'ouverture ---------- */
body.ui-abime .tuto-pause {
  border-radius: 0; background: none; box-shadow: none; color: #efe6d2; font: 600 15px "Cormorant Garamond", Georgia, serif; text-shadow: 0 1px 2px #000; padding: 0 4px;
  border: 12px solid transparent; border-image: url(../img/ui/abime/plaque.webp) 22 34 20 34 fill / 12px 20px 12px 20px stretch;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.7));
}
body.ui-abime .tuto-pause b { color: #e8c77a; font-family: Cinzel, serif; }
body.ui-abime .tuto-pause .tp-go {
  min-height: 34px; background: none; box-shadow: none; color: #e8dcc0; font-family: Cinzel, serif; border-radius: 0;
  border: 0 solid transparent; border-width: 10px 28px 10px 11px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 10px 28px 10px 11px stretch; padding: 0 2px;
}
body.ui-abime .tuto-pause .tp-skip { background: #0b0f0e; border: 1px solid #5a4a2c; border-radius: 3px; color: #bdb29a; }
body.ui-abime #hub:not(.hidden) ~ .tuto-pause { bottom: calc(var(--ab-nav, 110px) + 8px); }
/* Récit d'ouverture (Faille du Seuil) : mêmes teintes que le Dernier instant */
body.ui-abime .intro-lm { background: radial-gradient(ellipse at 50% 20%, #10201a 0%, #000 65%); }
body.ui-abime .intro-crack { background: linear-gradient(#f4fff8, #6fe0a8); box-shadow: 0 0 18px 6px rgba(111,224,168,.6); }
body.ui-abime .intro-lm .lm-box p.intro-hint { color: #bdb29a; }
body.ui-abime .intro-lm .pt-name input { background: #0b0f0e; border: 1px solid #8a6d35; border-radius: 3px; color: #efe6d2; font-family: Cinzel, serif; }
body.ui-abime .intro-btns .btn-primary {
  min-height: 52px; background: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px #000; font-family: Cinzel, serif; border-radius: 0; clip-path: none;
  border: 0 solid transparent; border-width: 15px 40px 15px 17px; border-image: url(../img/ui/abime/aller.webp) 18 46 18 20 fill / 15px 40px 15px 17px stretch; padding: 0 6px;
}
body.ui-abime .intro-btns .btn-small { background: #0b0f0e; border: 1px solid #5a4a2c; border-radius: 3px; color: #efe6d2; box-shadow: none; }
body.ui-abime :is(.tuto-pause, .intro-btns) button { transition: filter .15s, transform .1s; }
body.ui-abime :is(.tuto-pause, .intro-btns) button:hover { filter: brightness(1.2) drop-shadow(0 0 6px rgba(111,224,168,.6)); }

/* =========================================================
   v0.99.5 : écran Héros L'Abîme — grande fiche + collection en vignettes
   (remplace le « registre » de 0.99.2). Maquette : HerosVitrineAbime / HerosVitrinePortrait.
   ========================================================= */
body.ui-abime #heroes {
  --g1: #c9a55a; --g2: #e8c77a; --g3: #f4e2b0; --ink: #efe6d2; --mute: #a99f8a; --glow: #6fe0a8;
  --fell: 'IM Fell English', 'Cormorant Garamond', Georgia, serif; --fellsc: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif; --goth: 'UnifrakturCook', 'Cinzel', serif;
  background: #07090a url(../img/ui/abime/fond.jpg) 50% 25% / cover fixed no-repeat; position: relative; max-width: none; color: var(--ink); font-family: var(--fell);
}
body.ui-abime #heroes::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgba(5,7,8,.66); }
body.ui-abime #heroes > * { position: relative; z-index: 1; }

/* Petit médaillon + nom (Camp, Codex, filtres, tri, Tout équiper…) */
body.ui-abime #heroes :where(.ab-pil, .topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button) {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 2px 4px 2px 0;
  font-family: var(--fellsc); font-size: 15px; color: #d8cdb4; transition: color .15s, transform .1s;
}
body.ui-abime #heroes :where(.ab-pil .m, .topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button)::before,
body.ui-abime #heroes .ab-pil .m {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f0d9a0;
  background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%) 50% 50% / 100% 100%;
  box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px #5a4a2c, inset 0 0 8px rgba(111,224,168,.25); transition: box-shadow .15s;
}
body.ui-abime #heroes .ab-pil .m::before { display: none; }
body.ui-abime #heroes .ab-pil::before { display: none; }
body.ui-abime #heroes :where(.ab-pil, .topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button):is(:hover, .active, [aria-pressed="true"]) { color: var(--g3); }
body.ui-abime #heroes :where(.topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button):is(:hover, .active, [aria-pressed="true"])::before,
body.ui-abime #heroes .ab-pil:hover .m {
  box-shadow: 0 0 0 1.5px var(--g2), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px var(--g1), inset 0 0 12px var(--glow), 0 0 12px rgba(111,224,168,.5);
}
body.ui-abime #heroes :where(.ab-pil, .topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button):active { transform: scale(.96); }
body.ui-abime #heroes :where(.ab-pil, .topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button):focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 20px; }
body.ui-abime #heroes .hl-kind button::before { background-image: radial-gradient(circle, var(--g1) 2.5px, transparent 3.5px), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
body.ui-abime #heroes .hl-kind button.active::before, body.ui-abime #heroes .hsort button.active::before { background-image: radial-gradient(circle, var(--glow) 3px, transparent 4.5px), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
body.ui-abime #heroes .hsort button::before, body.ui-abime #heroes .hl-dupf button::before { width: 22px; height: 22px; background-image: radial-gradient(circle, var(--g1) 2px, transparent 3px), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }

/* Barre du haut */
body.ui-abime #heroes .topbar { background: linear-gradient(180deg, rgba(5,7,8,.9), rgba(5,7,8,0)); border: 0; box-shadow: none; }
body.ui-abime #heroes .topbar::after, body.ui-abime #heroes .topbar::before { display: none; }
body.ui-abime #heroes .topbar .back { font-size: 0; gap: 0; }
body.ui-abime #heroes .topbar .back::before { content: "‹"; width: 40px; height: 40px; font: 28px/1 var(--fell); padding-bottom: 4px; box-sizing: border-box; }
body.ui-abime #heroes .topbar .back::after { content: "Camp"; font: 18px var(--fellsc); margin-left: 9px; }
body.ui-abime #heroes #hrGallery { font-size: 18px; }
body.ui-abime #heroes #hrGallery::before { width: 40px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M19 19v2H6'/%3E%3C/svg%3E") 50% 50% / 20px no-repeat, radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
body.ui-abime #heroes .topbar .zone-name { font-family: var(--goth); font-size: 38px; font-weight: 400; color: var(--g2); text-shadow: 0 2px 4px #000; letter-spacing: 0; }
body.ui-abime #heroes .topbar .gold { font-family: var(--fellsc); font-size: 20px; color: var(--g2); text-shadow: 0 2px 3px #000; background: none; border: 0; }

/* Disposition : fiche à gauche, collection à droite */
body.ui-abime #heroes .hm-layout { grid-template-columns: minmax(0, 1fr) clamp(430px, 37vw, 640px); grid-template-areas: "tabs list" "content list"; gap: 8px 24px; padding: 4px 22px 24px; }
body.ui-abime #heroes .hm-layout.hm-empty { grid-template-columns: 1fr; grid-template-areas: "content"; }
body.ui-abime #heroes .hm-list { grid-area: list; position: sticky; top: 66px; height: calc(100vh - 84px); max-height: none; min-height: 420px; padding: 4px 2px 6px;
  background: linear-gradient(180deg, rgba(14,17,17,.9), rgba(8,10,10,.94)); background-clip: padding-box; border-radius: 0; box-shadow: none;
  border: 22px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 / 22px 24px 18px 22px stretch; }
body.ui-abime #heroes .hm-list::before, body.ui-abime #heroes .hm-list::after { display: none; }
body.ui-abime #heroes .hm-tabs { grid-area: tabs; position: static; flex-direction: row; gap: 4px; padding: 0; }
body.ui-abime #heroes .hm-content { grid-area: content; }

/* Collection */
body.ui-abime #heroes .hl-bar { gap: 8px; }
body.ui-abime #heroes .hl-bar input[type=search] { background: #0b0f0e; border: 1px solid #5a4a2c; border-radius: 3px; color: var(--ink); font-family: var(--fell); font-style: italic; font-size: 16px; box-shadow: none; }
body.ui-abime #heroes .hl-kind { gap: 16px; flex-wrap: wrap; }
body.ui-abime #heroes .hl-kind button { flex: none; }
body.ui-abime #heroes .hsort { color: var(--mute); font-family: var(--fell); font-style: italic; gap: 10px; }
body.ui-abime #heroes .hsort .filter-tabs { gap: 12px; background: none; }
body.ui-abime #heroes .hsort small, body.ui-abime #heroes .hsort span { color: var(--mute); }
body.ui-abime #heroes #hrGroup { align-self: flex-start; }
body.ui-abime #heroes #hrGroup::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6M6 20l6-6 6 6'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); background-size: 16px, 100%; background-repeat: no-repeat; background-position: 50% 50%; }
body.ui-abime #heroes .hl-dupf { color: var(--mute); gap: 10px; }
body.ui-abime #heroes .hl-legend { color: var(--mute); font-style: italic; font-family: var(--fell); }
body.ui-abime #heroes .hl-grid { --cw: 128px; grid-template-columns: repeat(auto-fill, var(--cw)); justify-content: space-between; grid-auto-rows: max-content; gap: 12px 6px; padding: 4px 4px 4px 2px; scrollbar-color: #5a4a2c transparent; }
body.ui-abime #heroes .hl-role { font-family: var(--fellsc); font-weight: 400; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--g2); border-bottom: 1px solid rgba(201,165,90,.3); padding: 6px 2px 2px; }
body.ui-abime #heroes .hl-card { width: var(--cw, 128px); height: auto; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); filter: none; transition: transform .12s; }
body.ui-abime #heroes .hl-card:hover { transform: translateY(-3px); filter: none; }
body.ui-abime #heroes .hl-card:hover .hc-pic { filter: drop-shadow(0 0 8px rgba(111,224,168,.45)); }
body.ui-abime #heroes .hc-pic { position: relative; display: block; width: var(--cw, 128px); height: var(--cw, 128px); flex: none; overflow: hidden; border-radius: 48% 48% 6px 6px / 26% 26% 6px 6px; background: #0b0f0e; transition: filter .15s; }
body.ui-abime #heroes .hc-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(0deg, rgba(7,9,10,.78), transparent 42%); box-shadow: inset 0 0 0 2px #5a4a2c, inset 0 0 0 4px #0b0f0e, inset 0 0 0 5px rgba(90,74,44,.6); }
body.ui-abime #heroes .hl-card.active .hc-pic::after { box-shadow: inset 0 0 0 2px var(--g2), inset 0 0 0 4px #0b0f0e, inset 0 0 0 5px rgba(232,199,122,.6); }
body.ui-abime #heroes .hl-card.active .hc-pic { filter: drop-shadow(0 0 10px rgba(111,224,168,.55)); }
body.ui-abime #heroes .hc-pic .vit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.ui-abime #heroes .hc-por { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 20%;
  -webkit-mask: radial-gradient(ellipse 50% 60% at 50% 42%, #000 60%, transparent 98%); mask: radial-gradient(ellipse 50% 60% at 50% 42%, #000 60%, transparent 98%); }
body.ui-abime #heroes .hc-pic > :not(.vit):not(.hc-por):not(span) { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 1;
  filter: drop-shadow(1.5px 0 0 #15100b) drop-shadow(-1.5px 0 0 #15100b) drop-shadow(0 1.5px 0 #15100b) drop-shadow(0 -1.5px 0 #15100b) drop-shadow(0 0 8px rgba(255,240,200,.55)); }
body.ui-abime #heroes .hc-lvl { position: absolute; left: 8px; bottom: 4px; z-index: 4; font: 24px/1 var(--fellsc); color: var(--g2); text-shadow: 0 2px 3px #000; }
body.ui-abime #heroes .hc-el { position: absolute; right: 7px; bottom: 7px; z-index: 4; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c; color: var(--ec); }
body.ui-abime #heroes .hc-el .ico { width: 14px; height: 14px; fill: currentColor; }
body.ui-abime #heroes .hc-eq { position: absolute; right: 8px; top: 20%; z-index: 4; font: 12px var(--fellsc); color: #12100a; background: var(--g1); padding: 0 5px; }
body.ui-abime #heroes .hc-eq.mx { background: #8a7a5a; }
body.ui-abime #heroes .hl-card .hl-stars { margin-top: 3px; font-size: 12px; letter-spacing: .04em; line-height: 1; }
body.ui-abime #heroes .hl-card .hl-name { font-family: var(--fell); font-weight: 400; font-size: 16px; line-height: 1.15; color: var(--ink); max-width: 100%; }
body.ui-abime #heroes .hl-card.active .hl-name { font-weight: 700; color: var(--g3); }
body.ui-abime #heroes .hl-card .hl-name .dd { font-size: 12px; color: var(--mute); }
body.ui-abime #heroes .hc-pow { font: 13px var(--fellsc); color: var(--mute); }
body.ui-abime #heroes .hl-card.dupe { opacity: .62; } body.ui-abime #heroes .hl-card.dupe.active { opacity: 1; }
body.ui-abime #heroes .hl-card .hl-lock { position: absolute; top: 8%; left: 10px; right: auto; z-index: 5; color: var(--g2); }
body.ui-abime #heroes .hl-card .better-chip { position: absolute; top: 30%; left: 4px; right: auto; z-index: 5; }
body.ui-abime #heroes .hl-card .prest-dot { position: absolute; top: 44%; bottom: auto; left: 50%; transform: translateX(-50%); z-index: 6; height: 17px; font-size: 10.5px; padding: 0 7px 0 4px; }
body.ui-abime #heroes .hl-card .hl-todo { font-size: 11px; font-style: italic; color: #e0a090; background: none; }

/* Rubriques (Détails, Aptitudes, Équipement, Éclats) : grands médaillons */
body.ui-abime #heroes .hm-tabs button, body.ui-abime #heroes .hm-tabs button.active { background: none !important; border: 0 !important; box-shadow: none !important; }
body.ui-abime #heroes .hm-tabs button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 16px/1.05 var(--fellsc); color: #d8cdb4; --e: var(--glow); transition: color .15s, transform .1s; }
body.ui-abime #heroes .hm-tabs button svg.ic { width: 56px; height: 56px; padding: 15px; box-sizing: border-box; border-radius: 50%; color: #f0d9a0; fill: none; stroke: currentColor; stroke-width: 1.8;
  background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 2px var(--g1), 0 0 0 5px #0b0f0e, 0 0 0 6px #5a4a2c, inset 0 0 12px color-mix(in srgb, var(--e) 40%, transparent); transition: box-shadow .15s; }
body.ui-abime #heroes .hm-tabs [data-htab="details"] { --e: #c84a32; } body.ui-abime #heroes .hm-tabs [data-htab="skills"] { --e: #3f8a62; }
body.ui-abime #heroes .hm-tabs [data-htab="equip"] { --e: #d8a840; } body.ui-abime #heroes .hm-tabs [data-htab="gems"] { --e: #7a5a9a; }
body.ui-abime #heroes .hm-tabs button:is(:hover, .active) { color: var(--g3); }
body.ui-abime #heroes .hm-tabs button:is(:hover, .active) svg.ic { box-shadow: 0 0 0 2px var(--g2), 0 0 0 5px #0b0f0e, 0 0 0 6px var(--g1), inset 0 0 16px var(--e), 0 0 16px color-mix(in srgb, var(--e) 60%, transparent); }
body.ui-abime #heroes .hm-tabs button:active { transform: scale(.96); }
body.ui-abime #heroes .hm-tabs button.badge-on::after { top: 2px; right: 22px; border: 0; box-shadow: 0 0 6px #e0413a; }

/* Grande fiche */
body.ui-abime #heroes .hm-card.abf { display: grid; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); grid-template-areas: "left art" "hint hint" "acts acts"; gap: 6px 18px;
  padding: 6px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--ink); }
body.ui-abime #heroes .hm-card.abf::before, body.ui-abime #heroes .hm-card.abf::after { display: none; }
body.ui-abime #heroes .abf-left { grid-area: left; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.ui-abime #heroes .abf-name { display: flex; gap: 12px; align-items: flex-start; }
body.ui-abime #heroes .abf-l { flex: none; width: 66px; height: 76px; display: flex; align-items: center; justify-content: center; font: 64px/1 var(--goth); color: var(--g3); background: #5a140c;
  box-shadow: inset 0 0 0 3px #c9a24a, inset 0 0 0 6px #5a140c, inset 0 0 0 7px #c9a24a, 0 4px 12px rgba(0,0,0,.7); text-shadow: 0 2px 3px #000; }
body.ui-abime #heroes .abf-n { font: 46px/.95 var(--goth); color: var(--g3); text-shadow: 0 2px 6px #000; }
body.ui-abime #heroes .abf-name small { display: block; font-style: italic; font-size: 17px; color: #cbb68a; margin-top: 2px; }
body.ui-abime #heroes .abf-ren { all: unset; cursor: pointer; margin-left: 8px; vertical-align: 8px; opacity: .8; } body.ui-abime #heroes .abf-ren:hover { opacity: 1; }
body.ui-abime #heroes .abf-lvlrow { display: flex; align-items: center; gap: 14px; }
body.ui-abime #heroes .abf-medal { flex: none; width: 90px; height: 90px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 2px var(--g1), 0 0 0 5px #0b0f0e, 0 0 0 6px #5a4a2c, 0 0 18px rgba(111,224,168,.25); }
body.ui-abime #heroes .abf-medal small { font-style: italic; font-size: 12px; color: var(--mute); }
body.ui-abime #heroes .abf-medal b { font: 36px/.9 var(--fellsc); color: var(--g3); font-weight: 400; }
body.ui-abime #heroes .abf .hr-stars { font-size: 23px; letter-spacing: .08em; color: #ffd35a; }
body.ui-abime #heroes .abf .hr-stars .dim { color: rgba(255,255,255,.15); }
body.ui-abime #heroes .abf-sub { display: block; font-style: italic; font-size: 14.5px; color: var(--mute); }
body.ui-abime #heroes .abf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
body.ui-abime #heroes .abf-stats > div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(201,165,90,.2); padding: 2px 0; }
body.ui-abime #heroes .abf-stats span { font-style: italic; font-size: 15px; color: var(--mute); }
body.ui-abime #heroes .abf-stats b { font: 17px var(--fellsc); font-weight: 400; color: var(--ink); }
body.ui-abime #heroes .abf-eqh { font: 18px var(--fellsc); color: var(--g2); border-bottom: 1px solid rgba(201,165,90,.35); padding-bottom: 2px; margin-top: 4px; }
body.ui-abime #heroes .abf-eqh i { font: italic 13.5px var(--fell); color: var(--mute); }
body.ui-abime #heroes .abf-eq { display: grid; grid-template-columns: repeat(5, 52px); justify-content: space-between; gap: 8px 0; }
body.ui-abime #heroes .abf-slot { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; --qc: #6a6050;
  border: 9px solid transparent; border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 9px 9px 8px 9px stretch;
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--qc, #5a4a2c) 35%, transparent), 0 0 0 1px color-mix(in srgb, var(--qc, #5a4a2c) 55%, transparent); color: var(--qc, #5a4a2c); transition: filter .15s; }
body.ui-abime #heroes .abf-slot .ico { width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--qc, #5a4a2c) 60%, transparent)); }
body.ui-abime #heroes .abf-slot .ico-img { width: 32px; height: 32px; object-fit: contain; }
body.ui-abime #heroes .abf-slot.empty { --qc: #4a4438; opacity: .55; }
body.ui-abime #heroes .abf-slot small { position: absolute; right: -5px; bottom: -7px; font: 11px var(--fellsc); color: var(--ink); text-shadow: 0 1px 2px #000; }
body.ui-abime #heroes .abf-set { position: absolute; left: -4px; top: -4px; width: 13px; height: 13px; }
body.ui-abime #heroes .abf-slot:hover { filter: brightness(1.25) drop-shadow(0 0 6px rgba(111,224,168,.5)); }
body.ui-abime #heroes .abf-setl { display: flex; align-items: center; gap: 7px; font-size: 15px; } body.ui-abime #heroes .abf-setl img { width: 20px; height: 20px; }
body.ui-abime #heroes .abf-setl span { font-family: var(--fellsc); } body.ui-abime #heroes .abf-setl b { color: var(--g2); font-weight: 400; }
body.ui-abime #heroes .abf-eqb { display: flex; gap: 22px; margin-top: 2px; }
body.ui-abime #heroes .abf-art { grid-area: art; position: relative; min-height: 560px; }
body.ui-abime #heroes .abf .hm-visual { position: absolute; inset: 0 70px 92px 0; height: auto; min-height: 0; padding: 0; border: 0; background: radial-gradient(ellipse 50% 55% at 50% 50%, rgba(111,224,168,.10), transparent 70%); overflow: visible; display: block; }
body.ui-abime #heroes .abf .hm-visual::after { display: none; }
body.ui-abime #heroes .abf .hm-sprite { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
body.ui-abime #heroes .abf .hm-visual.art .hm-sprite img { height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 24px rgba(232,199,122,.25)) drop-shadow(0 20px 30px rgba(0,0,0,.8)); }
body.ui-abime #heroes .abf .hm-visual:not(.art) .hm-sprite { align-items: center; }
body.ui-abime #heroes .abf-side { position: absolute; right: 6px; top: 40px; display: flex; flex-direction: column; gap: 14px; }
body.ui-abime #heroes .abf-rnd { all: unset; box-sizing: border-box; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--g2); font-size: 20px;
  background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 2px #5a4a2c, 0 0 0 4px #0b0f0e; transition: box-shadow .15s; }
body.ui-abime #heroes .abf-rnd .ico { width: 20px; height: 20px; }
body.ui-abime #heroes .abf-rnd:is(:hover, .on) { box-shadow: 0 0 0 2px var(--g2), 0 0 0 4px #0b0f0e, 0 0 12px rgba(111,224,168,.45); color: var(--g3); }
body.ui-abime #heroes span.abf-rnd { cursor: default; }
body.ui-abime #heroes .abf-pow { position: absolute; left: 0; right: 70px; bottom: 0; text-align: center; }
body.ui-abime #heroes .abf-pow > span { font-style: italic; font-size: 17px; color: #cbb68a; }
body.ui-abime #heroes .abf-pow > b { display: block; font: 46px/1 var(--fellsc); font-weight: 400; color: var(--g2); text-shadow: 0 2px 8px #000, 0 0 14px rgba(232,199,122,.35); }
body.ui-abime #heroes .abf-xp { display: block; width: 260px; max-width: 80%; height: 6px; margin: 6px auto 2px; background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c; }
body.ui-abime #heroes .abf-xp > i { display: block; height: 100%; background: linear-gradient(90deg, #3fae7c, #6fe0a8); box-shadow: 0 0 6px #6fe0a8; }
body.ui-abime #heroes .abf-pow small { font-style: italic; font-size: 12.5px; color: var(--mute); }
body.ui-abime #heroes .abf .hr-dupe-hint { grid-area: hint; color: var(--mute); font-style: italic; margin: 0; }
body.ui-abime #heroes .abf .hm-acts { grid-area: acts; display: flex; gap: 6px; margin: 4px 0 0; }
body.ui-abime #heroes .abf .hm-act { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: 16px/1.05 var(--fellsc); color: var(--ink); --e: #d8a840; transition: transform .1s; }
body.ui-abime #heroes .abf .hm-act.a-evo { --e: #c84a32; } body.ui-abime #heroes .abf .hm-act.a-pr { --e: #7a5a9a; } body.ui-abime #heroes .abf .hm-act.a-reliq { --e: #6fe0a8; }
body.ui-abime #heroes .abf .hm-act .m { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f0d9a0;
  background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 2px var(--g1), 0 0 0 5px #0b0f0e, 0 0 0 6px #5a4a2c, inset 0 0 12px color-mix(in srgb, var(--e) 45%, transparent); transition: box-shadow .15s; }
body.ui-abime #heroes .abf .hm-act:is(:hover, .on) .m { box-shadow: 0 0 0 2px var(--g2), 0 0 0 5px #0b0f0e, 0 0 0 6px var(--g1), inset 0 0 16px var(--e), 0 0 16px color-mix(in srgb, var(--e) 60%, transparent); }
body.ui-abime #heroes .abf .hm-act.on .t { color: var(--g3); }
body.ui-abime #heroes .abf .hm-act small { font: italic 12px var(--fell); color: var(--mute); max-width: 110px; text-align: center; }
body.ui-abime #heroes .abf .hm-act.off { opacity: .55; }
body.ui-abime #heroes .abf .hm-act:active { transform: scale(.96); }
body.ui-abime #heroes .abf .hm-act::after { display: none; }
body.ui-abime #heroes .abf .hm-act .dot-new { position: absolute; top: 2px; right: 26px; }
body.ui-abime #heroes .abf .gather-chip { align-self: flex-start; }

/* Bandeau des autres rubriques */
body.ui-abime #heroes .hm-strip { background: linear-gradient(180deg, rgba(14,17,17,.9), rgba(8,10,10,.94)); border: 1px solid #5a4a2c; border-radius: 3px; color: var(--ink); }
body.ui-abime #heroes .hm-strip-name { font-family: var(--goth); font-size: 28px; color: var(--g3); }
body.ui-abime #heroes .hm-strip :is(.hm-strip-meta, .hm-strip-pow small) { color: var(--mute); font-style: italic; }
body.ui-abime #heroes .hm-strip :is(.hm-strip-pow b) { color: var(--g2); font-family: var(--fellsc); font-weight: 400; font-size: 20px; }
body.ui-abime #heroes .hm-rar { background: none; padding: 0; color: var(--g2); font-family: var(--fellsc); }

/* Autres panneaux (Aptitudes, Équipement, Éclats, Faire boire…) : cadre sombre sobre */
body.ui-abime #heroes .hm-content .panel:not(.hm-card) { background: linear-gradient(180deg, rgba(20,16,12,.92), rgba(10,9,8,.94)); border: 1px solid #5a4a2c; border-radius: 3px; box-shadow: 0 10px 20px rgba(0,0,0,.6); }
body.ui-abime #heroes .hm-content .panel:not(.hm-card)::before, body.ui-abime #heroes .hm-content .panel:not(.hm-card)::after { display: none; }
body.ui-abime #heroes .hm-content .section-h { font-family: var(--fellsc); color: var(--g2); }

/* Écrans moyens et téléphone : collection au-dessus en rangée défilante, puis rubriques et fiche */
@media (max-width: 1180px) {
  body.ui-abime #heroes .hm-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "tabs" "content"; padding: 4px 10px 30px; }
  body.ui-abime #heroes .hm-list { position: static; height: auto; min-height: 0; border-width: 16px 18px 12px 16px; border-image-width: 16px 18px 12px 16px; }
  body.ui-abime #heroes .hl-grid { display: flex; overflow-x: auto; overflow-y: hidden; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; max-height: none; }
  body.ui-abime #heroes .hl-grid { --cw: 104px; }
  body.ui-abime #heroes .hl-grid .hl-card { flex: none; scroll-snap-align: start; }
  body.ui-abime #heroes .hl-grid .hl-role { display: none; }
  body.ui-abime #heroes .hl-legend { display: none; }
  body.ui-abime #heroes .hm-tabs { justify-content: space-around; position: static; background: none; }
}
@media (max-width: 760px) {
  body.ui-abime #heroes .topbar .zone-name { font-size: 28px; }
  body.ui-abime #heroes .topbar .gold { font-size: 15px; }
  body.ui-abime #heroes #hrGallery { font-size: 0; gap: 0; }
  body.ui-abime #heroes .topbar .back::after { font-size: 15px; }
  body.ui-abime #heroes .hm-card.abf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "lvl" "art" "acts" "hint"; gap: 10px; }
  body.ui-abime #heroes .abf-left { display: contents; }
  body.ui-abime #heroes .abf-name { grid-area: name; } body.ui-abime #heroes .abf-lvlrow { grid-area: lvl; }
  body.ui-abime #heroes .abf-art { min-height: 400px; }
  body.ui-abime #heroes .abf .hm-visual { inset: 0 56px 88px 0; }
  body.ui-abime #heroes .abf .hm-acts { justify-content: space-around; }
  body.ui-abime #heroes .abf .hm-act { width: auto; flex: 1; font-size: 14px; }
  body.ui-abime #heroes .abf .hm-act .m { width: 54px; height: 54px; }
  body.ui-abime #heroes .hm-tabs button { width: auto; flex: 1; font-size: 13px; }
  body.ui-abime #heroes .hm-tabs button svg.ic { width: 48px; height: 48px; padding: 13px; }
  body.ui-abime #heroes .abf-eq { grid-template-columns: repeat(5, 48px); }
  body.ui-abime #heroes .abf-slot { width: 48px; height: 48px; }
  body.ui-abime #heroes .abf-n { font-size: 38px; }
}
body.ui-abime #heroes :is(.topbar .back, #hrGallery, .hl-kind button, .hl-todo-tab, .hsort button, #hrGroup, .hl-dupf button, .ab-pil) { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; min-height: 0; height: auto; }
body.ui-abime #heroes :is(.hl-kind, .hsort .filter-tabs) { background: none; border: 0; box-shadow: none; }
body.ui-abime #heroes .hl-legend { display: none; }

/* ---------- v0.99.6 : infobulles L'Abîme (proposition A : filet doré, losanges, séparateurs ornés) ---------- */
body.ui-abime .tip { max-width: 330px; padding: 9px 14px; border: 0; border-radius: 2px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,165,90,.10), transparent 60%), linear-gradient(180deg, #121716, #0a0d0d);
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, 0 14px 34px rgba(0,0,0,.85);
  font: 14px/1.42 'IM Fell English', Georgia, serif; color: #efe6d2; }
body.ui-abime .tip:has(hr) { padding: 12px 16px; color: #d8cdb4; }
body.ui-abime .tip:has(hr)::before, body.ui-abime .tip:has(hr)::after { content: ""; position: absolute; left: calc(50% - 4.5px); top: -5px; width: 9px; height: 9px;
  transform: rotate(45deg); background: #c9a55a; box-shadow: 0 0 0 2px #0b0f0e; }
body.ui-abime .tip:has(hr)::after { top: auto; bottom: -5px; }
body.ui-abime .tip b, body.ui-abime .tip strong { font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; color: #e8c77a; }
body.ui-abime .tip .t-name { font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.15; color: #f4e2b0; }
body.ui-abime .tip .t-sub { font-style: italic; font-size: 13px; color: #a99f8a; }
body.ui-abime .tip .t-stat { font-size: 15px; color: #efe6d2; }
body.ui-abime .tip .t-gem { font-style: italic; font-size: 13px; color: #9af0c8; }
body.ui-abime .tip .t-affixes { margin-top: 4px; padding-top: 4px; border-top: 1px dotted rgba(201,165,90,.35); }
body.ui-abime .tip .t-affix { color: #9cc8e0; } body.ui-abime .tip .t-affix small { font-style: italic; color: #7f8f98; }
body.ui-abime .tip .t-facture { color: #f0c890; font-size: 13.5px; }
body.ui-abime .tip .t-up { color: #6fe0a8; } body.ui-abime .tip .t-down { color: #e88a6a; }
body.ui-abime .tip hr { border: 0; height: 9px; margin: 5px -4px;
  background: linear-gradient(90deg, transparent, rgba(201,165,90,.55) 20%, rgba(201,165,90,.55) 80%, transparent) 0 50% / 100% 1px no-repeat,
    radial-gradient(circle, #c9a55a 1.6px, transparent 2.2px) 50% 50% / 9px 9px no-repeat; }
body.ui-abime .tip .t-set { margin: 8px 0 2px; padding: 6px 10px; border-left: 0; background: rgba(63,138,98,.08);
  box-shadow: inset 2px 0 0 #6fe0a8, inset 0 0 0 1px rgba(63,138,98,.3); font-size: 13.5px; color: #7a7060; }
body.ui-abime .tip .t-set b { font-size: 15.5px; color: #9af0c8; } body.ui-abime .tip .t-set div.on { color: #d8f5e4; }
body.ui-abime .tip .t-fier { margin: 6px 0 2px; padding: 6px 10px; font-style: normal; color: #7a7060; background: rgba(232,199,122,.05);
  box-shadow: inset 2px 0 0 #c9a55a, inset 0 0 0 1px rgba(201,165,90,.22); }
body.ui-abime .tip .t-fier div.on { color: #efe6d2; }
body.ui-abime .tip .it-ico.xs { width: 18px; height: 18px; vertical-align: -4px; }
body.ui-abime .tip .q-commun { color: #e0dccf; } body.ui-abime .tip .q-rare { color: #7ab4f0; } body.ui-abime .tip .q-epique { color: #c09af0; }
body.ui-abime .tip .q-fantastique { color: #f0a050; text-shadow: 0 0 8px rgba(240,160,80,.4); }
body.ui-abime .tip .q-remanente { color: #f0d070; text-shadow: 0 0 8px rgba(240,208,112,.45); }
body.ui-abime .tip .elem, body.ui-abime .tip .tip-link { font-style: normal; }

/* ---------- v0.99.6 : onglet Aptitudes L'Abîme (maquette HerosOngletsAbime) ---------- */
body.ui-abime #heroes .hm-skills.abk-on { display: block; }
body.ui-abime #heroes .hm-skills.abk-on > .hm-visual { display: none; }
body.ui-abime #heroes .hm-skills.abk-on > .hm-sk-list { background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 0 0; }
body.ui-abime #heroes .abk { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 26px; }
body.ui-abime #heroes .abk::before { content: ""; position: absolute; left: 38%; top: -10px; width: 52%; height: 100%; max-height: 760px; z-index: -1; pointer-events: none;
  background: var(--abk-art, none) 50% 0 / contain no-repeat; opacity: .10; -webkit-mask: linear-gradient(180deg, #000 60%, transparent); mask: linear-gradient(180deg, #000 60%, transparent); }
body.ui-abime #heroes .abk .section-h { display: flex; align-items: baseline; font-family: var(--fellsc); font-size: 19px; color: var(--g3); letter-spacing: 0; margin: 14px 0 6px; }
body.ui-abime #heroes .abk .section-h::first-letter { font-family: var(--goth); font-size: 25px; color: var(--g2); }
body.ui-abime #heroes .abk .section-h::after { content: ""; flex: 1; height: 1px; margin-left: 12px; align-self: center; background: linear-gradient(90deg, var(--g1), transparent); }
body.ui-abime #heroes .abk > div > .section-h:first-child { margin-top: 0; }
body.ui-abime #heroes .abk .hint { font-style: italic; font-size: 13.5px; color: var(--mute); background: none; border: 0; padding: 0; margin: 2px 0 6px; }
body.ui-abime #heroes .abk .hint b { font-style: normal; font-family: var(--fellsc); font-weight: 400; color: var(--g2); }
/* Lignes de sort */
body.ui-abime #heroes .abk .skill-line { display: flex; gap: 12px; align-items: flex-start; padding: 7px 8px 7px 4px; margin: 0; background: none; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(201,165,90,.14); box-shadow: none; color: #d8cdb4; }
body.ui-abime #heroes .abk .skill-line:hover { background: linear-gradient(90deg, rgba(111,224,168,.06), transparent); }
body.ui-abime #heroes .abk .skm { --e: #c9a55a; flex: none; position: relative; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f0d9a0;
  background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, inset 0 0 12px color-mix(in srgb, var(--e) 55%, transparent); }
body.ui-abime #heroes .abk .skill-line.rainbow .skm, body.ui-abime #heroes .abk .skill-line.lb:not(.locked) .skm { box-shadow: 0 0 0 4px #0b0f0e, 0 0 14px rgba(154,240,176,.35), inset 0 0 12px rgba(232,199,122,.4); }
body.ui-abime #heroes .abk .skill-line.rainbow .skm::before, body.ui-abime #heroes .abk .skill-line.lb:not(.locked) .skm::before { content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff8a6a, #ffe08a, #9af0b0, #8ac8ff, #c8a0ff, #ff8a6a); -webkit-mask: radial-gradient(circle, transparent 25px, #000 26px); mask: radial-gradient(circle, transparent 25px, #000 26px); }
body.ui-abime #heroes .abk .skill-line.lb:not(.locked) .skm::before { background: conic-gradient(#e8c77a, #fff0c0, #c9a24a, #fff0c0, #e8c77a); }
body.ui-abime #heroes .abk .skill-line.rainbow { border-image: none; }
body.ui-abime #heroes .abk .skill-line.locked { opacity: .5; }
body.ui-abime #heroes .abk .skill-line.locked .skm { background: #0b0f0e; color: var(--mute); box-shadow: 0 0 0 1.5px #5a4a2c, 0 0 0 4px #0b0f0e, 0 0 0 5px #3a3020; }
body.ui-abime #heroes .abk .skb { flex: 1; min-width: 0; }
body.ui-abime #heroes .abk .skh { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
body.ui-abime #heroes .abk .skh .skt { flex-basis: 100%; margin: 0 0 -3px; padding: 0; background: none; font-family: var(--fellsc); font-weight: 400; font-size: 11.5px; letter-spacing: .05em; color: var(--mute); text-transform: none; }
body.ui-abime #heroes .abk .skh > b { font-family: var(--fellsc); font-weight: 400; font-size: 18px; color: var(--g3); }
body.ui-abime #heroes .abk .skh .sk-mp { margin-left: auto; font-style: italic; font-size: 13px; color: var(--g2); white-space: nowrap; }
body.ui-abime #heroes .abk .skh .sk-tag.int { font-family: var(--fellsc); font-size: 11.5px; padding: 0 7px; border-radius: 9px; background: rgba(240,160,80,.12); color: #f0a050; box-shadow: inset 0 0 0 1px rgba(240,160,80,.5); }
body.ui-abime #heroes .abk .skb > p { margin: 2px 0 0; font-size: 14px; line-height: 1.32; color: #d8cdb4; }
body.ui-abime #heroes .abk .skb > p em { color: #9af0c8; }
body.ui-abime #heroes .abk .skb .warn { color: #e88a6a; font-family: var(--fell); font-weight: 400; }
body.ui-abime #heroes .abk .elem { font-family: var(--fellsc); font-size: 12px; font-weight: 400; padding: 0 7px; border-radius: 9px; color: var(--ec); background: color-mix(in srgb, var(--ec) 14%, #07090a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec) 55%, transparent); border: 0; }
body.ui-abime #heroes .abk .abk-plus { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-style: normal; }
body.ui-abime #heroes .abk-bar { flex: 1; min-width: 80px; height: 5px; background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c; }
body.ui-abime #heroes .abk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fae7c, #6fe0a8); box-shadow: 0 0 6px #6fe0a8; }
/* Passifs en chaîne */
body.ui-abime #heroes .abk-chain { --on: 0; position: relative; display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
body.ui-abime #heroes .abk-chain::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(180deg, var(--g1) calc(var(--on) * 100%), #3a3020 calc(var(--on) * 100% + 1px)); }
body.ui-abime #heroes .abk-chain .pas { position: relative; display: grid; grid-template-columns: 44px 38px 1fr; align-items: center; gap: 6px; padding: 2px 0; background: none; border: 0; opacity: 1; }
body.ui-abime #heroes .abk-chain .pas-ico { width: 44px; height: 44px; border-radius: 50%; background: #07090a; box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 4px #0b0f0e; }
body.ui-abime #heroes .abk-chain .pas.excl .pas-ico { box-shadow: 0 0 0 1.5px #c9a0ff, 0 0 0 4px #0b0f0e, 0 0 10px rgba(201,160,255,.35); }
body.ui-abime #heroes .abk-chain .pas .lv { min-width: 0; text-align: center; font-family: var(--fellsc); font-weight: 400; font-size: 13px; color: var(--g2); }
body.ui-abime #heroes .abk-chain .pas > span:last-child { font-size: 13.5px; line-height: 1.25; color: #d8cdb4; }
body.ui-abime #heroes .abk-chain .pas b { font-family: var(--fellsc); font-weight: 400; font-size: 15.5px; color: var(--g3); }
body.ui-abime #heroes .abk-chain .pas.off .pas-ico { filter: grayscale(1) brightness(.5); box-shadow: 0 0 0 1.5px #5a4a2c, 0 0 0 4px #0b0f0e; }
body.ui-abime #heroes .abk-chain .pas.off :is(.lv, b, span) { color: #7a7060; }
/* Paliers de doublons en médaillons */
body.ui-abime #heroes .abk-pal { display: flex; gap: 10px; margin: 4px 0; }
body.ui-abime #heroes .abk-pal .pas { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; text-align: center; background: none; border: 0; opacity: 1; }
body.ui-abime #heroes .abk-pal .pas .lv { min-width: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fellsc); font-weight: 400; font-size: 17px; color: var(--g3);
  background: radial-gradient(circle at 50% 40%, #2a2440, #07090a 75%); box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, inset 0 0 12px rgba(122,90,154,.8); }
body.ui-abime #heroes .abk-pal .pas > span:last-child { font-style: italic; font-size: 12.5px; line-height: 1.15; color: #d8cdb4; }
body.ui-abime #heroes .abk-pal .pas.off { opacity: .45; }
body.ui-abime #heroes .abk-pal .pas.off .lv { color: var(--mute); background: #0b0f0e; box-shadow: 0 0 0 1.5px #5a4a2c, 0 0 0 4px #0b0f0e, 0 0 0 5px #3a3020; }
@media (max-width: 900px) { body.ui-abime #heroes .abk { grid-template-columns: minmax(0, 1fr); gap: 4px; } body.ui-abime #heroes .abk-pal { flex-wrap: wrap; } }
body.ui-abime #heroes .abk .skill-line { animation: none; }
body.ui-abime #heroes .abk .skh .skt { -webkit-text-fill-color: currentColor; }
body.ui-abime #heroes .abk .skill-line.inf .skh .skt { color: #9af0c8; }

/* ---------- v0.99.6 : onglet Équipement L'Abîme ---------- */
body.ui-abime #heroes :is(.rq-commun) { --qc: #c8c4b8; } body.ui-abime #heroes .rq-rare { --qc: #7ab4f0; } body.ui-abime #heroes .rq-epique { --qc: #c09af0; }
body.ui-abime #heroes .rq-fantastique { --qc: #f0a050; } body.ui-abime #heroes .rq-remanente { --qc: #f0d070; } body.ui-abime #heroes .rq-mythique { --qc: #e86a4a; }
body.ui-abime #heroes #hmEquip .panel { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; }
body.ui-abime #heroes #hmEquip .gear-main { gap: 18px; }
body.ui-abime #heroes #hmEquip .gear-head { margin-bottom: 10px; }
/* Légende des qualités en petits losanges */
body.ui-abime #heroes #hmEquip .rq-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 3px; background: none; border: 0; border-radius: 0; font-family: var(--fellsc); font-weight: 400; font-size: 13px; color: #cbbfa6; }
body.ui-abime #heroes #hmEquip .rq-chip::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--qc, #5a4a2c); box-shadow: 0 0 6px var(--qc, #5a4a2c); }
body.ui-abime #heroes #hmEquip .rq-chip.set-card::before { background: #6fe0a8; box-shadow: 0 0 6px #6fe0a8; }
body.ui-abime #heroes #hmEquip .hm-legend .armor-tag { font-style: italic; font-size: 13px; color: var(--mute); background: none; border: 0; }
/* Boutons (Équiper le meilleur, Tout déséquiper, réparer) en petits médaillons */
body.ui-abime #heroes :is(#btnBest, #btnUnequipAll, #btnRepair) { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-family: var(--fellsc); font-size: 15px; color: #d8cdb4; }
body.ui-abime #heroes :is(#btnBest, #btnUnequipAll, #btnRepair)::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: 50% 50% / 15px no-repeat, radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%);
  box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px #5a4a2c, inset 0 0 8px rgba(111,224,168,.25); }
body.ui-abime #heroes #btnBest::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
body.ui-abime #heroes #btnUnequipAll::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 5-3 8-7 9-4-1-7-4-7-9V6z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
body.ui-abime #heroes #btnRepair::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 6l4 4M4 20l9-9M13 5l6 6-2 2-6-6z'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
body.ui-abime #heroes :is(#btnBest, #btnUnequipAll, #btnRepair):not(:disabled):hover { color: var(--g3); }
body.ui-abime #heroes :is(#btnBest, #btnUnequipAll, #btnRepair):not(:disabled):hover::before { box-shadow: 0 0 0 1.5px var(--g2), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px var(--g1), inset 0 0 12px var(--glow), 0 0 12px rgba(111,224,168,.5); }
body.ui-abime #heroes #btnRepair:disabled { opacity: .5; cursor: default; }
body.ui-abime #heroes #hmEquip .gear-btns { display: inline-flex; gap: 18px; }
body.ui-abime #heroes #hmEquip .hub-foot { background: none; border: 0; padding: 10px 0 0; }
/* Poupée : illustration au centre, cases autour */
body.ui-abime #heroes #hmEquip .doll { gap: 6px 12px; }
body.ui-abime #heroes #hmEquip .doll-stage { border: 0; border-radius: 0; background: radial-gradient(ellipse 50% 46% at 50% 48%, rgba(111,224,168,.10), transparent 70%); box-shadow: none; }
body.ui-abime #heroes #hmEquip .doll-stage.has-art { height: 100%; min-height: 360px; overflow: visible; }
body.ui-abime #heroes #hmEquip .doll-stage.has-art .doll-sprite { position: absolute; inset: -6px 0 0; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
body.ui-abime #heroes #hmEquip .doll-art { width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; filter: drop-shadow(0 0 18px rgba(232,199,122,.2)) drop-shadow(0 14px 20px rgba(0,0,0,.8));
  -webkit-mask: linear-gradient(180deg, #000 82%, transparent); mask: linear-gradient(180deg, #000 82%, transparent); }
body.ui-abime #heroes #hmEquip .slot-box { position: relative; z-index: 1; height: 66px; gap: 10px; background: none; border: 0; border-radius: 0; box-shadow: none; outline: 0; color: var(--ink); }
body.ui-abime #heroes #hmEquip .slot-box .sl-ico { width: 58px; height: 58px; align-self: center; box-sizing: border-box; border: 9px solid transparent; border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 9px 9px 8px 9px stretch;
  color: var(--qc, #5a4a2c); opacity: 1; box-shadow: inset 0 0 14px color-mix(in srgb, var(--qc, #5a4a2c) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--qc, #5a4a2c) 60%, transparent); }
body.ui-abime #heroes #hmEquip .slot-box .sl-ico svg.ico { width: 32px; height: 32px; }
body.ui-abime #heroes #hmEquip .slot-box.ico-r .sl-ico, body.ui-abime #heroes #hmEquip .slot-box.ico-l .sl-ico { border-left-width: 9px; border-right-width: 9px; }
body.ui-abime #heroes #hmEquip .slot-box.ico-r { text-align: right; }
body.ui-abime #heroes #hmEquip .slot-box .sl-txt { padding: 0; gap: 1px; }
body.ui-abime #heroes #hmEquip .slot-box .sl-name { font-family: var(--fellsc); font-size: 12px; letter-spacing: .05em; color: var(--mute); }
body.ui-abime #heroes #hmEquip .slot-box .sl-item { font-family: var(--fell); font-weight: 400; font-size: 15px; color: var(--qc, #5a4a2c); text-shadow: none; }
body.ui-abime #heroes #hmEquip .slot-box small, body.ui-abime #heroes #hmEquip .slot-box .sl-meta { font-size: 12px; color: var(--mute); }
body.ui-abime #heroes #hmEquip .slot-box.ico-r .sl-meta { justify-content: flex-end; }
body.ui-abime #heroes #hmEquip .slot-box.empty .sl-ico, body.ui-abime #heroes #hmEquip .slot-box.occupied .sl-ico { border: 1.5px dashed #4a4030; border-image: none; background: rgba(7,9,10,.5); box-shadow: none; color: #3a352a; }
body.ui-abime #heroes #hmEquip .slot-box.empty .sl-item, body.ui-abime #heroes #hmEquip .slot-box.occupied .sl-item { font-style: italic; color: #7a7060; }
body.ui-abime #heroes #hmEquip .slot-box.occupied { opacity: .8; }
body.ui-abime #heroes #hmEquip .slot-box:hover .sl-ico { box-shadow: inset 0 0 18px color-mix(in srgb, var(--qc, #5a4a2c) 60%, transparent), 0 0 10px color-mix(in srgb, var(--qc, #5a4a2c) 60%, transparent); }
body.ui-abime #heroes #hmEquip .slot-box.empty:hover .sl-ico { border-color: var(--g1); }
body.ui-abime #heroes #hmEquip .slot-box.active-slot .sl-ico { box-shadow: 0 0 0 2px var(--g2), 0 0 14px rgba(111,224,168,.6); }
body.ui-abime #heroes #hmEquip .slot-box.broken .sl-item { color: #e88a6a; }
body.ui-abime #heroes #hmEquip .slot-box.weapon-slot { margin-top: 4px; }
body.ui-abime #heroes #hmEquip .slot-box .dura { background: none; padding: 0; color: #6fe0a8; font-family: var(--fellsc); }
/* Châsses : petits ronds, image de la gemme ou « + » en pointillés */
body.ui-abime #heroes .sl-ch { width: 20px !important; height: 20px !important; border-radius: 50%; border: 1px dashed var(--g1); background: #07090a; }
body.ui-abime #heroes .sl-ch b { color: var(--g1); font-size: 13px; font-weight: 400; }
body.ui-abime #heroes .sl-ch.full { border: 0; box-shadow: 0 0 0 1px var(--g1); }
body.ui-abime #heroes .sl-ch .it-ico { width: 17px !important; height: 17px !important; }
body.ui-abime #heroes .sl-ch:hover, body.ui-abime #heroes .sl-ch:focus-visible { outline: 0; box-shadow: 0 0 0 1.5px var(--g2), 0 0 8px rgba(111,224,168,.7); }
/* Caractéristiques : pointillés */
body.ui-abime #heroes #hmEquip .doll-stats { background: none; border: 0; padding: 0 0 0 6px; }
body.ui-abime #heroes #hmEquip .doll-stats .section-h { font-size: 17px; color: var(--g3); }
body.ui-abime #heroes #hmEquip .doll-stats .section-h::first-letter { font-family: var(--goth); font-size: 22px; color: var(--g2); }
body.ui-abime #heroes #hmEquip .doll-stat-list { gap: 0; font-size: 13.5px; }
body.ui-abime #heroes #hmEquip .doll-stat-list > div:not(.sep) { align-items: baseline; gap: 4px; padding: 1px 0; border: 0; }
body.ui-abime #heroes #hmEquip .doll-stat-list > div:not(.sep)::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(201,165,90,.3); }
body.ui-abime #heroes #hmEquip .doll-stat-list span { color: #cbbfa6; white-space: nowrap; }
body.ui-abime #heroes #hmEquip .doll-stat-list b { order: 2; font-family: var(--fellsc); font-weight: 400; font-size: 14px; color: var(--g3); }
body.ui-abime #heroes #hmEquip .doll-stat-list .sep { margin: 8px 0 2px; font-family: var(--fellsc); font-size: 12.5px; color: var(--g2); background: none; border: 0; }
/* Inventaire */
body.ui-abime #heroes #hmEquip .gear-inv .section-h { font-size: 19px; color: var(--g3); margin: 0; }
body.ui-abime #heroes #hmEquip .gear-inv .section-h::first-letter { font-family: var(--goth); font-size: 25px; color: var(--g2); }
body.ui-abime #heroes #hmEquip .inv-tools { gap: 14px; font-family: var(--fellsc); font-size: 14px; color: #d8cdb4; }
body.ui-abime #heroes #hmEquip .inv-tools .toggle input { accent-color: #3f8a62; }
body.ui-abime #heroes #hmEquip .inv-tools select { font-family: var(--fellsc); font-size: 14px; color: #efe6d2; background: #0b0f0e; border: 0; border-radius: 14px; padding: 4px 12px; box-shadow: inset 0 0 0 1px #5a4a2c; }
body.ui-abime #heroes #hmEquip .inv-tools select:hover { box-shadow: inset 0 0 0 1px var(--g1); }
body.ui-abime #heroes #hmEquip .gear-list { gap: 4px; }
body.ui-abime #heroes #hmEquip .gear-row { border: 0; border-radius: 0; padding: 6px 12px 6px 14px; color: var(--ink);
  background: linear-gradient(90deg, color-mix(in srgb, var(--qc, #5a4a2c) 14%, rgba(11,15,14,.85)), rgba(11,15,14,.85) 40%) !important;
  box-shadow: inset 3px 0 0 var(--qc, #5a4a2c), inset 0 0 0 1px rgba(201,165,90,.16); filter: none; }
body.ui-abime #heroes #hmEquip .gear-row:hover { box-shadow: inset 3px 0 0 var(--qc, #5a4a2c), inset 0 0 0 1px rgba(201,165,90,.5); filter: none; }
body.ui-abime #heroes #hmEquip .gear-row.worn { box-shadow: inset 3px 0 0 var(--qc, #5a4a2c), inset 0 0 0 1px var(--g1), 0 0 10px rgba(232,199,122,.18); }
body.ui-abime #heroes #hmEquip .gear-row b[class*="q-"] { font-family: var(--fellsc); font-weight: 400; font-size: 16px; color: var(--qc, #5a4a2c); text-shadow: none; }
body.ui-abime #heroes #hmEquip .gear-row :is(small, .armor-tag) { font-family: var(--fell); color: var(--mute); background: none; border: 0; }
body.ui-abime #heroes #hmEquip .gear-row .armor-tag { font-style: italic; }
body.ui-abime #heroes #hmEquip .gear-row .gr-score { background: none; font-family: var(--fellsc); font-size: 15px; }
body.ui-abime #heroes #hmEquip .gear-row .gr-score.up { color: #6fe0a8; } body.ui-abime #heroes #hmEquip .gear-row .gr-score.down { color: #e88a6a; }
body.ui-abime #heroes #hmEquip .gear-row.worn .gr-score { color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); padding: 0 10px; border-radius: 10px; font-size: 13px; }
body.ui-abime #heroes #hmEquip .gear-list .empty { font-style: italic; color: var(--mute); }
body.ui-abime #heroes #hmEquip .doll { grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr) 180px; }
body.ui-abime #heroes #hmEquip .rq-chip.set-card { border: 0; background: none; box-shadow: none; outline: 0; }
body.ui-abime #heroes #hmEquip .slot-box .sl-name { text-transform: none; font-weight: 400; }
body.ui-abime #heroes #hmEquip .doll-stage { position: relative; }
@container (max-width: 760px) {
  body.ui-abime #heroes #hmEquip .doll { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); }
  body.ui-abime #heroes #hmEquip .doll-stage.has-art { min-height: 300px; }
  body.ui-abime #heroes #hmEquip .slot-box .sl-ico { width: 46px; height: 46px; }
}
body.ui-abime #heroes #hmEquip .doll-stage.has-art .doll-sprite { left: 0; right: 0; bottom: 0; transform: none; }
body.ui-abime #heroes #hmEquip .doll-center { position: relative; z-index: 0; }

/* ---------- v0.99.6 : fenêtre Sertissage (L'Abîme) ---------- */
.ab-sert { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px;
  --g1: #c9a55a; --g2: #e8c77a; --g3: #f4e2b0; --ink: #efe6d2; --mute: #a99f8a; --glow: #6fe0a8;
  --fell: 'IM Fell English', Georgia, serif; --fellsc: 'IM Fell English SC', Georgia, serif; --goth: 'UnifrakturCook', 'Cinzel', serif; font-family: var(--fell); color: var(--ink); }
.ab-sert.hidden { display: none; }
.ab-sert .as-back { position: absolute; inset: 0; background: rgba(4,6,6,.74); backdrop-filter: blur(2px); }
.ab-sert .as-box { position: relative; width: min(880px, 100%); max-height: calc(100vh - 32px); box-sizing: border-box; display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "h h" "p b" "f f"; gap: 10px 22px; padding: 8px 14px 10px; overflow: hidden;
  border: 22px solid transparent; border-image: url(../img/ui/abime/cadre.webp) 22 24 18 22 / 22px 24px 18px 22px stretch;
  background: linear-gradient(180deg, rgba(14,17,17,.98), rgba(8,10,10,.99)); background-clip: padding-box; box-shadow: 0 20px 50px #000; }
.ab-sert .as-h { grid-area: h; display: flex; align-items: center; gap: 12px; }
.ab-sert .as-t { font-family: var(--fellsc); font-size: 26px; color: var(--g3); } .ab-sert .as-t span, .ab-sert .as-t2 span { font-family: var(--goth); color: var(--g2); font-size: 1.3em; }
.ab-sert .as-h i { flex: 1; min-width: 0; font-size: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-sert button { font: inherit; cursor: pointer; border: 0; color: inherit; }
.ab-sert .as-x { flex: none; width: 36px; height: 36px; border-radius: 50%; color: #f0d9a0; font-size: 15px; background: radial-gradient(circle, #1e2624, #07090a);
  box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c; }
.ab-sert .as-x:hover { box-shadow: 0 0 0 1.5px var(--g2), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--g1), 0 0 10px rgba(200,74,50,.6); }
.ab-sert .as-piece { grid-area: p; min-height: 0; overflow: auto; text-align: center; }
.ab-sert .as-big { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 104px; box-sizing: border-box; border: 13px solid transparent;
  border-image: url(../img/ui/abime/carte.webp) 20 20 18 20 fill / 13px stretch; color: var(--qc, #c9a55a); box-shadow: inset 0 0 18px color-mix(in srgb, var(--qc, #c9a55a) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--qc, #c9a55a) 60%, transparent); }
.ab-sert .rq-commun { --qc: #c8c4b8; } .ab-sert .rq-rare { --qc: #7ab4f0; } .ab-sert .rq-epique { --qc: #c09af0; } .ab-sert .rq-fantastique { --qc: #f0a050; } .ab-sert .rq-remanente { --qc: #f0d070; } .ab-sert .rq-mythique { --qc: #e86a4a; }
.ab-sert .as-big svg.ico { width: 56px; height: 56px; }
.ab-sert .as-big b { position: absolute; right: -8px; bottom: -10px; font-family: var(--fellsc); font-weight: 400; font-size: 15px; color: var(--ink); text-shadow: 0 1px 2px #000; }
.ab-sert .as-pn { margin-top: 10px; font-family: var(--fellsc); font-size: 18px; }
.ab-sert .q-commun { color: #e0dccf; } .ab-sert .q-rare { color: #7ab4f0; } .ab-sert .q-epique { color: #c09af0; } .ab-sert .q-fantastique { color: #f0a050; } .ab-sert .q-remanente { color: #f0d070; } .ab-sert .q-mythique { color: #e86a4a; }
.ab-sert .as-ps { font-style: italic; font-size: 13.5px; color: var(--mute); }
.ab-sert .as-chs { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin: 20px 0 10px; }
.ab-sert .as-cs { position: relative; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1a201e, #07090a);
  box-shadow: 0 0 0 2px var(--g1), 0 0 0 5px #0b0f0e, 0 0 0 6px #5a4a2c; }
.ab-sert .as-cs .it-ico { width: 44px; height: 44px; margin: 0; }
.ab-sert .as-cs.hot { box-shadow: 0 0 0 2px var(--g2), 0 0 0 5px #0b0f0e, 0 0 0 6px var(--g1), 0 0 18px rgba(111,224,168,.55); }
.ab-sert .as-cs.hot:not(.f)::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(232,199,122,.55); }
.ab-sert .as-prev .it-ico { opacity: .9; filter: drop-shadow(0 0 6px rgba(111,224,168,.8)); }
.ab-sert .as-cs > b { position: absolute; left: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--fellsc); font-weight: 400; font-size: 12px; color: var(--g3); background: #0b0f0e; box-shadow: 0 0 0 1px var(--g1); }
.ab-sert .as-recap { font-size: 14px; line-height: 1.4; }
.ab-sert .as-recap b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); } .ab-sert .as-recap i { color: var(--mute); } .ab-sert .as-recap .as-pv { color: #9af0c8; }
.ab-sert .as-jw { margin-top: 16px; padding: 8px 10px; text-align: left; font-size: 13.5px; line-height: 1.3; color: #cbbfa6; background: rgba(63,138,98,.08); box-shadow: inset 0 0 0 1px rgba(63,138,98,.35); }
.ab-sert .as-jw b { font-family: var(--fellsc); font-weight: 400; color: #9af0c8; }
.ab-sert .as-jw.no { background: rgba(200,74,50,.08); box-shadow: inset 0 0 0 1px rgba(200,74,50,.4); } .ab-sert .as-jw.no b { color: #e88a6a; }
.ab-sert .as-bag { grid-area: b; min-height: 0; display: flex; flex-direction: column; }
.ab-sert .as-bh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; } .ab-sert .as-t2 { font-family: var(--fellsc); font-size: 19px; color: var(--g3); white-space: nowrap; }
.ab-sert .as-bh i { font-size: 13px; color: var(--mute); }
.ab-sert .as-sr { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; margin: 0 0 6px; color: var(--g1); background: rgba(7,9,10,.85); border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(201,165,90,.45), 0 0 0 3px #0b0f0e; }
.ab-sert .as-sr:focus-within { box-shadow: inset 0 0 0 1px var(--g2), 0 0 0 3px #0b0f0e, 0 0 10px rgba(111,224,168,.35); }
.ab-sert .as-sr input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--g3); font-family: var(--fell); font-size: 15px; }
.ab-sert .as-sr input::placeholder { color: #7a7060; font-style: italic; } .ab-sert .as-sr input::-webkit-search-cancel-button { display: none; }
.ab-sert .as-qx { width: 24px; height: 24px; border-radius: 50%; font-size: 11px; color: #f0d9a0; background: #0b0f0e; box-shadow: 0 0 0 1px #5a4a2c; }
.ab-sert .as-kw { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 12.5px; color: var(--mute); }
.ab-sert .as-kw span { flex: 1; }
.ab-sert .as-kw button { padding: 1px 9px; border-radius: 11px; font-family: var(--fellsc); font-size: 12.5px; color: #cbbfa6; background: #0b0f0e; box-shadow: inset 0 0 0 1px #3a3020; }
.ab-sert .as-kw button:hover { color: var(--g3); box-shadow: inset 0 0 0 1px var(--g1); }
.ab-sert .as-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ab-sert .as-sf { height: 32px; min-width: 32px; padding: 0 8px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--fellsc); font-size: 13px; color: var(--mute);
  background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 1px #3a3020; }
.ab-sert .as-sf .it-ico { width: 24px; height: 24px; margin: 0; }
.ab-sert .as-sf:hover { box-shadow: 0 0 0 1px var(--g1); } .ab-sert .as-sf.on { color: var(--g3); box-shadow: 0 0 0 1.5px var(--g2), 0 0 8px rgba(111,224,168,.5); }
.ab-sert .as-grid { flex: 1; min-height: 120px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-content: start; gap: 10px 6px; padding: 8px 4px 4px 0; }
.ab-sert .as-gc { position: relative; text-align: left; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; background: rgba(11,15,14,.85); box-shadow: inset 0 0 0 1px rgba(201,165,90,.18); }
.ab-sert .as-gc:hover { box-shadow: inset 0 0 0 1px rgba(201,165,90,.6); }
.ab-sert .as-gc.on { background: rgba(36,48,44,.9); box-shadow: inset 0 0 0 1.5px var(--g2), 0 0 12px rgba(111,224,168,.35); }
.ab-sert .as-gs { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 1.5px #5a4a2c; }
.ab-sert .as-gs .it-ico { width: 36px; height: 36px; margin: 0; }
.ab-sert .as-gb { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ab-sert .as-gb > b { font-family: var(--fellsc); font-weight: 400; font-size: 15px; color: var(--g3); } .ab-sert .as-gb small { font-size: 13px; color: #cbbfa6; }
.ab-sert .as-gv { display: flex; align-items: center; gap: 6px; margin-top: 3px; } .ab-sert .as-gv b { font-family: var(--fellsc); font-weight: 400; font-size: 12.5px; color: var(--g2); } .ab-sert .as-gv i { font-size: 12px; color: #7a7060; }
.ab-sert .as-bar { flex: 1; height: 4px; background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c; } .ab-sert .as-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fae7c, #6fe0a8); box-shadow: 0 0 6px #6fe0a8; }
.ab-sert .as-gn { align-self: flex-start; font-family: var(--fellsc); font-size: 13px; color: var(--mute); }
.ab-sert .as-best { position: absolute; right: 10px; top: -7px; font-family: var(--fellsc); font-size: 10.5px; color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); padding: 0 6px; border-radius: 8px; }
.ab-sert .as-empty { grid-column: 1 / -1; font-style: italic; color: var(--mute); }
.ab-sert .as-f { grid-area: f; display: flex; align-items: center; gap: 18px; padding-top: 8px; border-top: 1px solid rgba(201,165,90,.3); }
.ab-sert .as-sum { flex: 1; min-width: 0; font-size: 15px; } .ab-sert .as-sum b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); } .ab-sert .as-sum .warn { color: #e88a6a; }
.ab-sert .as-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fellsc); font-size: 16px; color: #d8cdb4; background: none; }
.ab-sert .as-btn .m { width: 36px; height: 36px; border-radius: 50%; background: 50% 50% / 18px no-repeat, radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%);
  box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, inset 0 0 10px color-mix(in srgb, var(--e) 50%, transparent); }
.ab-sert .as-btn.ok { --e: #3f8a62; font-size: 18px; } .ab-sert .as-btn.ok .m { width: 44px; height: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
.ab-sert .as-btn.red { --e: #c84a32; } .ab-sert .as-btn.red .m { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 5-3 8-7 9-4-1-7-4-7-9V6z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); }
.ab-sert .as-btn:not(:disabled):hover { color: var(--g3); } .ab-sert .as-btn:not(:disabled):hover .m { box-shadow: 0 0 0 1.5px var(--g2), 0 0 0 4px #0b0f0e, 0 0 0 5px var(--g1), inset 0 0 14px var(--e), 0 0 14px color-mix(in srgb, var(--e) 60%, transparent); }
.ab-sert .as-btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) {
  .ab-sert { padding: 6px; }
  .ab-sert .as-box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "b" "f"; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: auto; border-width: 14px; padding: 4px 6px 8px; }
  .ab-sert .as-piece { overflow: visible; } .ab-sert .as-big { width: 76px; height: 76px; } .ab-sert .as-big svg.ico { width: 40px; height: 40px; }
  .ab-sert .as-jw { margin-top: 8px; } .ab-sert .as-grid { overflow: visible; grid-template-columns: minmax(0, 1fr); }
  .ab-sert .as-f { flex-wrap: wrap; gap: 10px 16px; } .ab-sert .as-sum { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .ab-sert .as-box { display: flex; flex-direction: column; gap: 10px; overflow: auto; overscroll-behavior: contain; }
  .ab-sert .as-bag, .ab-sert .as-piece { flex: none; }
  .ab-sert .as-grid { flex: none; min-height: 0; }
  .ab-sert .as-f { position: sticky; bottom: -8px; z-index: 2; margin: 0 -6px; padding: 8px 6px; background: #0a0d0d; }
  .ab-sert .as-chs { gap: 16px; margin: 12px 0 8px; }
}

/* ---------- v0.99.6 : onglet Éclats L'Abîme ---------- */
.ab-gem-help { display: none; }
body.ui-abime #heroes #hmGems .panel { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; }
body.ui-abime #heroes #hmGems .hm-gems { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 26px; }
body.ui-abime #heroes #hmGems .weapon-head { display: flex; align-items: flex-start; gap: 12px; background: none; border: 0; padding: 0; }
body.ui-abime #heroes #hmGems .weapon-head > div:first-child { flex: 1; min-width: 0; }
body.ui-abime #heroes #hmGems .weapon-name { font-family: var(--fellsc); font-weight: 400; font-size: 23px; color: var(--g3); line-height: 1.15; }
body.ui-abime #heroes #hmGems .weapon-name.off { font-size: 16px; color: #d8cdb4; }
body.ui-abime #heroes #hmGems .weapon-name i { color: var(--mute); }
body.ui-abime #heroes #hmGems .weapon-stat { font-size: 14px; color: var(--mute); }
body.ui-abime #heroes #hmGems .weapon-stat small { font-style: italic; font-size: 13px; } body.ui-abime #heroes #hmGems .lock-note { color: #e88a6a; }
body.ui-abime #heroes #hmGems .elem { font-family: var(--fellsc); font-size: 12px; font-weight: 400; padding: 0 7px; border-radius: 9px; color: var(--ec); background: color-mix(in srgb, var(--ec) 14%, #07090a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec) 55%, transparent); border: 0; vertical-align: 3px; }
body.ui-abime #heroes :is(#btnWeapon, #btnOff, #hmGems .gc-sock) { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-family: var(--fellsc); font-size: 15px; color: #d8cdb4; }
body.ui-abime #heroes :is(#btnWeapon, #btnOff)::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d9a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14l-4-4M20 16H6l4 4'/%3E%3C/svg%3E") 50% 50% / 15px no-repeat, radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%);
  box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px #5a4a2c, inset 0 0 8px rgba(111,224,168,.25); }
body.ui-abime #heroes :is(#btnWeapon, #btnOff):hover { color: var(--g3); }
body.ui-abime #heroes :is(#btnWeapon, #btnOff):hover::before { box-shadow: 0 0 0 1.5px var(--g2), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px var(--g1), inset 0 0 12px var(--glow), 0 0 12px rgba(111,224,168,.5); }
/* Cercle d'orifices */
body.ui-abime #heroes #socketRow { padding: 18px 0 26px; }
body.ui-abime #heroes .sockets.ab-ring { --R: 128px; position: relative; width: 340px; height: 340px; margin: 0 auto; display: block; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(201,165,90,.5), inset 0 0 0 10px rgba(11,15,14,.6), inset 0 0 0 11px rgba(201,165,90,.25); background: radial-gradient(circle, rgba(232,199,122,.10), transparent 60%); }
body.ui-abime #heroes .sockets.ab-ring::before { content: ""; position: absolute; inset: calc(50% - var(--R)); border-radius: 50%; border: 1px dashed rgba(201,165,90,.35); pointer-events: none; }
body.ui-abime #heroes .sockets.ab-ring::after { content: ""; position: absolute; inset: 70px; background: var(--w-img, none) 50% 50% / contain no-repeat; transform: rotate(-45deg); pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(232,199,122,.45)) drop-shadow(0 8px 10px #000); }
body.ui-abime #heroes .ab-ring .socket { position: absolute; left: 50%; top: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  transform: rotate(var(--a)) translate(var(--R)) rotate(calc(-1 * var(--a))) rotate(45deg); background: radial-gradient(circle, #1a201e, #07090a); border-radius: 3px;
  box-shadow: 0 0 0 2px #0b0f0e, 0 0 0 3px #5a4a2c, inset 0 0 10px rgba(0,0,0,.9); }
body.ui-abime #heroes .ab-ring .socket.filled { box-shadow: 0 0 0 2px #0b0f0e, 0 0 0 3px var(--g1), inset 0 0 12px color-mix(in srgb, var(--gc) 50%, transparent), 0 0 14px color-mix(in srgb, var(--gc) 60%, transparent); }
body.ui-abime #heroes .ab-ring .socket:not(.locked):not(.filled) { box-shadow: 0 0 0 2px #0b0f0e, 0 0 0 3px var(--g1), 0 0 14px rgba(111,224,168,.35); }
body.ui-abime #heroes .ab-ring .socket.reso { box-shadow: 0 0 0 2px #0b0f0e, 0 0 0 3px var(--g2), inset 0 0 12px color-mix(in srgb, var(--gc) 60%, transparent), 0 0 18px var(--gc); }
body.ui-abime #heroes .ab-ring .socket:hover { filter: brightness(1.3); }
body.ui-abime #heroes .ab-ring .socket .sock-n { bottom: auto; top: 100%; left: 0; transform: rotate(-45deg) translate(-2px, -2px); width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--fellsc); font-weight: 400; font-size: 11px; color: var(--g3); background: #0b0f0e; box-shadow: 0 0 0 1px var(--g1); }
body.ui-abime #heroes .ab-ring .link { position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; transform: rotate(var(--a)) translate(var(--R)) rotate(90deg); background: rgba(201,165,90,.18); border-radius: 2px; }
body.ui-abime #heroes .ab-ring .link.on { background: linear-gradient(90deg, #fff1a8, #e8c77a, #c9901a); box-shadow: 0 0 8px rgba(255,211,90,.7); }
body.ui-abime #heroes #offRow .sockets { justify-content: center; }
body.ui-abime #heroes #hmGems .off-head { margin-top: 8px; display: flex; align-items: flex-start; gap: 12px; background: none; border: 0; padding: 0; }
body.ui-abime #heroes #hmGems .off-head > div { flex: 1; min-width: 0; }
body.ui-abime #heroes #hmGems .affinity { font-size: 14px; color: #efe6d2; margin: 8px 0 4px; } body.ui-abime #heroes #hmGems .affinity em { font-style: normal; color: #d8cdb4; }
body.ui-abime #heroes .ab-gem-help { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin: 6px 0; font-style: italic; font-size: 13.5px; color: var(--mute); }
body.ui-abime #heroes .ab-gem-help .m { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--fellsc); color: #f0d9a0;
  background: radial-gradient(circle, #1a201e, #07090a); box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 3.5px #0b0f0e, 0 0 0 4.5px #5a4a2c; }
body.ui-abime #heroes .ab-gem-help:hover { color: var(--g3); }
body.ui-abime #heroes #hmGems .altar-panel > p.hint { display: none; font-size: 13.5px; font-style: italic; color: var(--mute); background: none; border: 0; padding: 0; }
body.ui-abime #heroes #hmGems .altar-panel.show-help > p.hint { display: block; }
body.ui-abime #heroes #hmGems .section-h { display: flex; align-items: baseline; font-family: var(--fellsc); font-weight: 400; font-size: 18px; color: var(--g3); letter-spacing: 0; text-transform: none; margin: 14px 0 6px; }
body.ui-abime #heroes #hmGems .section-h::first-letter { font-family: var(--goth); font-size: 24px; color: var(--g2); }
body.ui-abime #heroes #hmGems .section-h::after { content: ""; flex: 1; height: 1px; margin-left: 12px; align-self: center; background: linear-gradient(90deg, var(--g1), transparent); }
body.ui-abime #heroes #hmGems .section-h small { margin-left: 8px; font-family: var(--fell); font-style: italic; font-size: 13px; color: var(--mute); font-weight: 400; }
body.ui-abime #heroes #altarSkills .skill-line { background: none; border: 0; border-left: 2px solid var(--g1); border-radius: 0; padding: 4px 10px; color: #d8cdb4; }
body.ui-abime #heroes #altarSkills .skill-line b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); }
body.ui-abime #heroes #altarSkills .skill-line small, body.ui-abime #heroes #altarSkills .hint { font-style: italic; color: var(--mute); }
body.ui-abime #heroes #altarSkills .sk-tag { background: none; padding: 0; font-family: var(--fellsc); font-weight: 400; font-size: 11.5px; color: var(--mute); }
/* Sac d'Éclats */
body.ui-abime #heroes #hmGems .hm-bag { gap: 8px; }
body.ui-abime #heroes #hmGems .hm-bag-f { gap: 6px 14px; }
body.ui-abime #heroes #hmGems #gemFilter button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--fellsc); font-size: 14px; color: #d8cdb4; }
body.ui-abime #heroes #hmGems #gemFilter button::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, var(--g1) 2px, transparent 3px), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%);
  box-shadow: 0 0 0 1.5px var(--g1), 0 0 0 3px #0b0f0e, 0 0 0 4px #5a4a2c; }
body.ui-abime #heroes #hmGems #gemFilter button.active { color: var(--g3); }
body.ui-abime #heroes #hmGems #gemFilter button.active::before { background: radial-gradient(circle, var(--glow) 2.5px, transparent 4px), radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 1.5px var(--g2), 0 0 0 3px #0b0f0e, 0 0 0 4px var(--g1), 0 0 10px rgba(111,224,168,.5); }
body.ui-abime #heroes #hmGems #gemColors { gap: 4px; }
body.ui-abime #heroes #hmGems #gemColors button { min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 4px; background: radial-gradient(circle, #1a201e, #07090a); box-shadow: inset 0 0 0 1px #3a3020; color: var(--mute); font-family: var(--fellsc); font-size: 13px; }
body.ui-abime #heroes #hmGems #gemColors button.active { box-shadow: inset 0 0 0 1px var(--g2), 0 0 8px rgba(111,224,168,.45); color: var(--g3); }
body.ui-abime #heroes #hmGems .hm-bag-tools { font-family: var(--fellsc); font-size: 13.5px; color: #d8cdb4; }
body.ui-abime #heroes #hmGems .hm-bag-tools label { font-size: 13.5px; color: #d8cdb4; } body.ui-abime #heroes #hmGems .hm-bag-tools input { accent-color: #3f8a62; }
body.ui-abime #heroes #hmGems .hm-bag-tools select { font-family: var(--fellsc); font-size: 13.5px; color: #efe6d2; background: #0b0f0e; border: 0; border-radius: 14px; padding: 3px 10px; box-shadow: inset 0 0 0 1px #5a4a2c; }
body.ui-abime #heroes #hmGems .hm-bag-hint { font-style: italic; font-size: 13px; color: var(--mute); background: none; border: 0; padding: 0; }
body.ui-abime #heroes #hmGems .hm-gem { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 7px 10px; border: 0; border-radius: 0; background: rgba(11,15,14,.8); box-shadow: inset 0 0 0 1px rgba(201,165,90,.16); color: var(--ink); }
body.ui-abime #heroes #hmGems .hm-gem:hover, body.ui-abime #heroes #hmGems .hm-gem:focus-visible { box-shadow: inset 0 0 0 1px rgba(201,165,90,.55); filter: none; }
body.ui-abime #heroes #hmGems .hm-gem .gem { width: 24px; height: 24px; }
body.ui-abime #heroes #hmGems .hg-body > b { font-family: var(--fellsc); font-weight: 400; font-size: 15px; color: var(--g3); }
body.ui-abime #heroes #hmGems .hg-body small { font-style: italic; font-size: 12.5px; color: var(--mute); }
body.ui-abime #heroes #hmGems .hg-n { font-family: var(--fellsc); font-weight: 400; color: var(--g2); }
body.ui-abime #heroes #hmGems .gc-sock { padding: 2px 10px; font-size: 13px; color: #f0d9a0; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #1e2624, #07090a 75%); box-shadow: 0 0 0 1px var(--g1), 0 0 0 3px #0b0f0e, 0 0 0 4px #5a4a2c; }
body.ui-abime #heroes #hmGems .gc-sock:hover { color: var(--g3); box-shadow: 0 0 0 1px var(--g2), 0 0 0 3px #0b0f0e, 0 0 0 4px var(--g1), 0 0 10px rgba(111,224,168,.5); }
@media (max-width: 900px) { body.ui-abime #heroes #hmGems .hm-gems { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { body.ui-abime #heroes .sockets.ab-ring { --R: 108px; width: 290px; height: 290px; } body.ui-abime #heroes .sockets.ab-ring::after { inset: 62px; } }

/* ---------- v0.99.6 : vignette d'un héros dont le sort transmissible n'a pas encore d'Écho ---------- */
body.ui-abime #heroes .hc-trx { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 2.5px;
  background: conic-gradient(from 0deg, #ff8a6a, #ffe08a, #9af0b0, #8ac8ff, #c8a0ff, #ff8a6a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 4px rgba(200,240,220,.5)); }
body.ui-abime #heroes .hl-card { position: relative; }
body.ui-abime #heroes .hc-trd { position: absolute; left: calc(var(--cw, 128px) / 2 - 7px); top: 4px; z-index: 5; width: 14px; height: 14px; transform: rotate(45deg);
  background: conic-gradient(from 45deg, #ff8a6a, #ffe08a, #9af0b0, #8ac8ff, #c8a0ff, #ff8a6a); box-shadow: 0 0 0 2px #0b0f0e, 0 0 0 3px #c9a55a, 0 0 10px rgba(255,240,200,.7); }

/* v0.99.8 : sort transmissible (pas encore d'Écho) bien visible dans Aptitudes : cadre irisé, fond teinté, étiquette en pastille */
body.ui-abime #heroes .abk .skill-line.rainbow { position: relative; margin: 6px 0; padding: 10px 12px 10px 8px; border-bottom: 0;
  background: linear-gradient(90deg, rgba(154,240,200,.10), rgba(200,160,255,.07) 55%, rgba(255,224,138,.04)); }
body.ui-abime #heroes .abk .skill-line.rainbow::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 3px; padding: 1.5px;
  background: linear-gradient(90deg, #ff8a6a, #ffe08a, #9af0b0, #8ac8ff, #c8a0ff, #ff8a6a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  box-shadow: 0 0 12px rgba(200,240,220,.25); }
body.ui-abime #heroes .abk .skill-line.rainbow:hover { background: linear-gradient(90deg, rgba(154,240,200,.14), rgba(200,160,255,.10) 55%, rgba(255,224,138,.06)); }
body.ui-abime #heroes .abk .skill-line.rainbow .skh .skt { flex-basis: auto; margin: 0 100% 2px 0; padding: 1px 9px; border-radius: 9px; font-size: 12px; letter-spacing: .06em;
  color: #12100a; -webkit-text-fill-color: #12100a; background: linear-gradient(90deg, #ffb89a, #ffe9a8, #b8f5c8, #b0d8ff, #dcc0ff); box-shadow: 0 0 10px rgba(200,240,220,.35); }
body.ui-abime #heroes .abk .skill-line.rainbow .skh > b { font-size: 19px; color: #fff4d6; }
body.ui-abime #heroes .abk .skill-line.rainbow .skb > p em { display: block; margin-bottom: 3px; color: #b8f5d8; }
body.ui-abime .mt-tabs { overflow: visible; }
body.ui-abime .mt-tabs button.on { box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(111,224,168,.35), 0 0 22px rgba(111,224,168,.28), 0 14px 30px rgba(0,0,0,.7); }
body.ui-abime .mt-tabs button .mt-pt { display: none; }
body.ui-abime .mt-tabs button, body.ui-abime .mt-big { overflow: visible; }
body.ui-abime .mt-tabs button.on > .mt-tic + * { position: relative; }
/* v0.100 : Administration (sous-onglets, éditeur de bannière en lignes) */
body.ui-abime .bs-st2 { padding: 7px 18px; border: 0; border-radius: 0; font: 400 16px var(--fellsc); color: var(--mute); background: linear-gradient(180deg, #121716, #0a0d0d); box-shadow: 0 0 0 1px rgba(201,165,90,.45), 0 0 0 3px #0b0f0e; }
body.ui-abime .bs-st2.on { color: var(--g3); background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.2), transparent 75%), linear-gradient(180deg, #16211d, #0a0f0d); box-shadow: 0 0 0 1px #e8c77a, 0 0 0 3px #0b0f0e, 0 0 0 4px #c9a55a, 0 0 14px rgba(111,224,168,.25); }
body.ui-abime .bs-subt { gap: 12px; }
body.ui-abime .bs-ed { grid-template-columns: 320px minmax(0, 1fr); gap: 26px; }
body.ui-abime .bs-prev-bg { background: radial-gradient(ellipse 55% 60% at 50% 45%, rgba(232,199,122,.16), transparent 70%); border-radius: 0; }
body.ui-abime .bs-genh h3 { margin: 0; }
body.ui-abime .bs-genh span { font-style: italic; color: var(--mute); font-size: 13.5px; }
body.ui-abime .bs-row { border-top: 1px solid rgba(201,165,90,.14); grid-template-columns: 120px minmax(0, 1fr); }
body.ui-abime .bs-rl h3 { font: 400 17px var(--fellsc); color: var(--g3); }
body.ui-abime .bs-rl h3::first-letter { font-family: var(--fellsc); color: var(--g3); font-size: 1em; }
body.ui-abime .bs-rl i { font-style: italic; color: #9af0c8; font-size: 13px; }
body.ui-abime .bs-opt { border: 0; border-radius: 0; background: rgba(11,15,14,.85); box-shadow: inset 0 0 0 1px rgba(201,165,90,.16); color: #cbbfa6; }
body.ui-abime .bs-opt small { font: 400 12px var(--fell); color: #cbbfa6; }
body.ui-abime .bs-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(201,165,90,.6); }
body.ui-abime .bs-opt.on { background: linear-gradient(180deg, rgba(111,224,168,.14), rgba(11,15,14,.85)); box-shadow: inset 0 0 0 1.5px #e8c77a, 0 0 10px rgba(111,224,168,.3); }
body.ui-abime .bs-opt.on small { color: var(--g3); }
body.ui-abime .bs-opt small em { font-family: var(--fellsc); color: var(--g2); }
body.ui-abime :is(.bs-lay, .bs-pill, .bs-sw) { border-radius: 0; }
body.ui-abime .bs-lay { background: rgba(11,15,14,.85); border: 0; box-shadow: inset 0 0 0 1px rgba(201,165,90,.25); color: var(--ink); }
body.ui-abime .bs-lay.on { box-shadow: inset 0 0 0 1px #e8c77a; }
body.ui-abime .bs-pill { border: 0; padding: 3px 11px; border-radius: 13px; font: 400 14px var(--fellsc); color: #cbbfa6; background: #0b0f0e; box-shadow: inset 0 0 0 1px #3a3020; }
body.ui-abime .bs-pill.on { color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); }

/* ---------- v0.100 : écrans des Fléaux (Sceau, Ossaroth) en texture A ; maquette FleauxFiletA ---------- */
body.ui-abime #guildboss { --g1: #c9a55a; --g2: #e8c77a; --g3: #f4e2b0; --ink: #efe6d2; --mute: #a99f8a; --glow: #6fe0a8;
  --fell: 'IM Fell English', Georgia, serif; --fellsc: 'IM Fell English SC', Georgia, serif; --goth: 'UnifrakturCook', 'Cinzel', serif; font-family: var(--fell); color: var(--ink); }
body.ui-abime #gbBody { gap: 22px; padding: 6px 16px 20px; }
body.ui-abime #guildboss .panel { position: relative; border: 0; border-radius: 2px; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,165,90,.10), transparent 60%), linear-gradient(180deg, rgba(18,23,22,.96), rgba(10,13,13,.97));
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, 0 14px 34px rgba(0,0,0,.7); }
body.ui-abime #guildboss .panel::before, body.ui-abime #guildboss .panel::after { content: ""; display: block; position: absolute; left: calc(50% - 5px); top: -6px; right: auto; bottom: auto; width: 10px; height: 10px; transform: rotate(45deg); background: #c9a55a; box-shadow: 0 0 0 2px #0b0f0e; z-index: 2; border: 0; border-radius: 0; }
body.ui-abime #guildboss .panel::after { top: auto; bottom: -6px; }
body.ui-abime #guildboss .section-h { font: 400 21px var(--fellsc); letter-spacing: 0; text-transform: none; color: var(--g3); }
body.ui-abime #guildboss .section-h::first-letter { font-family: var(--goth); color: var(--g2); font-size: 1.25em; }
body.ui-abime #guildboss .section-h::after { background: linear-gradient(90deg, #c9a55a, transparent); }
body.ui-abime #guildboss .hint { font-style: italic; color: var(--mute); }
body.ui-abime #guildboss .hint b { font-style: normal; font-family: var(--fellsc); font-weight: 400; color: var(--g2); }
/* Onglets Sceau / Ossaroth : façon « Fabriquer » */
body.ui-abime #guildboss .gb-modes { gap: 26px; padding: 4px 6px; border: 0; background: none; }
body.ui-abime #guildboss .gb-modes button { position: relative; overflow: visible; border: 0; border-radius: 2px; padding: 10px 18px; text-align: left; font: 400 21px var(--fellsc); color: var(--ink);
  background: radial-gradient(ellipse at 30% 50%, rgba(232,199,122,.10), transparent 70%), linear-gradient(180deg, #161b1a, #0a0d0d);
  box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #8a7340, inset 0 0 18px rgba(232,199,122,.12), 0 14px 30px rgba(0,0,0,.7); }
body.ui-abime #guildboss .gb-modes button small { font: italic 400 14px var(--fell); color: var(--mute); }
body.ui-abime #guildboss .gb-modes button.on { color: var(--g3); text-shadow: 0 0 12px rgba(111,224,168,.5);
  background: radial-gradient(ellipse at 50% 50%, rgba(111,224,168,.24), transparent 72%), linear-gradient(180deg, #16211d, #0a0f0d);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(111,224,168,.35), 0 0 22px rgba(111,224,168,.28), 0 14px 30px rgba(0,0,0,.7); }
body.ui-abime #guildboss .gb-modes button.on::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: -7px; width: 12px; height: 12px; transform: rotate(45deg); background: #e8c77a; box-shadow: 0 0 0 2px #0b0f0e, 0 0 10px rgba(111,224,168,.7); }
/* Bandeau de disponibilité */
body.ui-abime #guildboss .gb-avail { border: 0; border-radius: 2px; padding: 8px 16px; background: linear-gradient(90deg, rgba(224,96,74,.18), rgba(11,15,14,.85) 60%); box-shadow: inset 2px 0 0 #e0604a, 0 0 0 1px rgba(201,165,90,.45); color: var(--ink); }
body.ui-abime #guildboss .gb-avail b { font: 400 17px var(--fellsc); color: var(--g3); }
body.ui-abime #guildboss .gb-avail.off { background: rgba(11,15,14,.85); box-shadow: 0 0 0 1px rgba(201,165,90,.3); }
/* Tête du boss */
body.ui-abime #guildboss .gb-face { border-radius: 48% 48% 6px 6px / 30% 30% 6px 6px; border: 0; background: radial-gradient(ellipse at 50% 60%, rgba(120,200,230,.4), transparent 70%), radial-gradient(circle at 50% 40%, #151b1a, #050707 80%);
  box-shadow: inset 0 0 0 2px #c9a55a, inset 0 0 0 5px #0b0f0e, inset 0 0 0 6px rgba(201,165,90,.5); }
body.ui-abime #guildboss .gg-head .gb-face { background: radial-gradient(ellipse at 50% 60%, rgba(170,90,230,.45), transparent 70%), radial-gradient(circle at 50% 40%, #151b1a, #050707 80%); }
body.ui-abime #guildboss .gb-kicker { font: 400 13px var(--fellsc); letter-spacing: .06em; color: var(--mute); }
body.ui-abime #guildboss .gb-name { font: 400 40px var(--goth); color: var(--g3); text-shadow: 0 0 16px rgba(232,199,122,.25), 0 2px 4px #000; }
body.ui-abime #guildboss .gb-lvl b { font: 400 18px var(--fellsc); color: #e88a6a; }
body.ui-abime #guildboss .gb-bar { height: 24px; border: 0; border-radius: 0; background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c, 0 0 0 3px #0b0f0e, 0 0 0 4px #5a4a2c; }
body.ui-abime #guildboss .gb-bar .fill { border-radius: 0; background: linear-gradient(180deg, #e0604a, #8a1e14); box-shadow: 0 0 10px rgba(224,96,74,.6); }
body.ui-abime #guildboss .gb-pool-txt b, body.ui-abime #guildboss .gb-sub b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); }
body.ui-abime #guildboss .gb-sub, body.ui-abime #guildboss .gb-pool-txt { font-style: italic; color: var(--mute); font-size: 14px; }
/* Niveaux */
body.ui-abime #guildboss .gb-lv { border: 0; border-radius: 0; background: rgba(11,15,14,.85); box-shadow: inset 0 0 0 1px rgba(201,165,90,.25); color: var(--ink); }
body.ui-abime #guildboss .gb-lv b { font: 400 22px var(--fellsc); color: var(--g2); }
body.ui-abime #guildboss .gb-lv .gb-lvn { font: 400 14px var(--fellsc); font-style: normal; color: #d8cdb4; }
body.ui-abime #guildboss .gb-lv.on { background: linear-gradient(180deg, rgba(224,96,74,.18), rgba(11,15,14,.85)); box-shadow: inset 0 0 0 1.5px #e8c77a, 0 0 14px rgba(224,96,74,.35); }
body.ui-abime #guildboss .gb-lv.on b { color: #ffb89a; }
body.ui-abime #guildboss .gb-lv.lock { opacity: .55; box-shadow: inset 0 0 0 1px #3a3020; }
body.ui-abime #guildboss .gb-lv.lock b { color: var(--mute); }
/* Attaque */
body.ui-abime #guildboss .gb-tries b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); font-size: 18px; }
body.ui-abime #guildboss .gb-pips i { width: 14px; height: 14px; border-radius: 0; transform: rotate(45deg); background: #0b0f0e; box-shadow: inset 0 0 0 1px #5a4a2c; border: 0; }
body.ui-abime #guildboss .gb-pips i.on { background: linear-gradient(135deg, #ffb89a, #c84a32); box-shadow: 0 0 8px rgba(200,74,50,.7); }
body.ui-abime #guildboss .gb-go { position: relative; overflow: visible; min-height: 58px; border: 0; border-radius: 2px; clip-path: none; font: 400 22px var(--fellsc); letter-spacing: 0; color: var(--g3);
  background: radial-gradient(ellipse at 50% 50%, rgba(224,96,74,.28), transparent 70%), linear-gradient(180deg, #24120f, #0d0807);
  box-shadow: 0 0 0 1px #e8c77a, 0 0 0 4px #0b0f0e, 0 0 0 5px #c9a55a, inset 0 0 22px rgba(224,96,74,.4), 0 0 22px rgba(224,96,74,.25); text-shadow: 0 0 12px rgba(224,96,74,.6); }
body.ui-abime #guildboss .gb-go::before, body.ui-abime #guildboss .gb-go::after { content: ""; position: absolute; top: calc(50% - 5px); left: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #e8c77a; box-shadow: 0 0 0 2px #0b0f0e; }
body.ui-abime #guildboss .gb-go::after { left: auto; right: -6px; }
body.ui-abime #guildboss .gb-go:hover:not(:disabled) { filter: brightness(1.15); }
body.ui-abime #guildboss .gb-go:disabled { filter: grayscale(.6) brightness(.7); }
/* Classement, récompenses */
body.ui-abime #guildboss .gb-row { border: 0; border-bottom: 1px solid rgba(201,165,90,.12); border-radius: 0; background: none; }
body.ui-abime #guildboss .gb-row.me { background: linear-gradient(90deg, rgba(111,224,168,.1), transparent); box-shadow: inset 2px 0 0 #6fe0a8; }
body.ui-abime #guildboss .gb-who b, body.ui-abime #guildboss .gb-dmg b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); }
body.ui-abime #guildboss .gb-pos { font-family: var(--fellsc); font-weight: 400; color: var(--g2); }
body.ui-abime #guildboss .gb-rw { border: 0; border-radius: 0; background: rgba(11,15,14,.7); box-shadow: inset 0 0 0 1px rgba(201,165,90,.16); color: #d8cdb4; }
body.ui-abime #guildboss .gb-rw.cur { background: linear-gradient(90deg, rgba(192,154,240,.12), rgba(11,15,14,.7)); box-shadow: inset 2px 0 0 #c09af0, inset 0 0 0 1px rgba(201,165,90,.3); }
body.ui-abime #guildboss .gb-rw b { font-family: var(--fellsc); font-weight: 400; color: var(--g3); }
/* Scène du géant, en texture A */
body.ui-abime #guildboss .gg-scene { border: 0; border-radius: 2px; box-shadow: 0 0 0 1px #c9a55a, 0 0 0 4px #0b0f0e, 0 0 0 5px #5a4a2c, 0 14px 34px rgba(0,0,0,.7); overflow: hidden; }
body.ui-abime #guildboss .gg-tag { border-radius: 0; font: 400 14px var(--fell); background: rgba(11,15,14,.88); border: 0; box-shadow: 0 0 0 1px #c9a55a, 0 0 0 3px #0b0f0e; }
body.ui-abime #guildboss .gg-tag b { font-family: var(--fellsc); font-weight: 400; color: var(--g2); }
body.ui-abime #guildboss .gg-tag.red { color: #ffc4b4; box-shadow: 0 0 0 1px #e0604a, 0 0 0 3px #0b0f0e, 0 0 10px rgba(224,96,74,.35); }
body.ui-abime #guildboss .gg-tag.tr, body.ui-abime #guildboss .gg-tag.eye { box-shadow: 0 0 0 1px #e8c77a, 0 0 0 3px #0b0f0e, 0 0 12px rgba(232,199,122,.3); }
body.ui-abime #guildboss .gg-lvtag { font: 400 14px var(--fellsc); color: #12100a; background: linear-gradient(180deg, #f0d9a0, #c9a55a); }
@media (max-width: 900px) {
  body.ui-abime .bs-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ui-abime .bs-tabs button { white-space: normal; text-align: center; font-size: 13.5px; gap: 5px; padding: 4px 4px; min-width: 0; }
  body.ui-abime .bs-tabs button i { width: 24px; height: 24px; }
  body.ui-abime .bs-tabs button i .bs-tic { width: 16px; height: 16px; }
  body.ui-abime .bs-soon { display: none; }
}

/* v0.102 : « Tout rappeler et relancer » (Récolte) : bouton doré bien visible */
body.ui-abime #crafts .mt-foot .g-all { padding: 5px 14px; font: 400 15px var(--fellsc); color: #1a1206; text-shadow: none;
  background: radial-gradient(ellipse at 50% 30%, #f7dc8c, #c9a55a 70%); box-shadow: 0 0 0 1px #f4e2b0, 0 0 0 3px #0b0f0e, 0 0 0 4px #c9a55a, 0 0 14px rgba(232,199,122,.45); }
body.ui-abime #crafts .mt-foot .g-all:hover { color: #000; filter: brightness(1.1); box-shadow: 0 0 0 1px #fff2c8, 0 0 0 3px #0b0f0e, 0 0 0 4px #e8c77a, 0 0 18px rgba(232,199,122,.7); }
body.ui-abime #gallery .cx-intro { grid-column: 1 / -1; margin: 0 0 12px; color: var(--mute); }
