/* Style « Collection » : seul style du catalogue (personnages, tags, équipements). */
@font-face {
  font-family:LegendsUI;
  src:url('../assets/game/ui/Legends-Condensed-Bold.ttf') format('truetype');
  font-display:swap;
}
.catalog-preview a:focus-visible { outline:3px solid #00a9cf; outline-offset:4px; }
.catalog-eyebrow,.catalog-intro { display:none; }
.catalog-results { display:flex; justify-content:space-between; gap:12px; margin:16px 0; font-size:13px; }
.catalog-empty { grid-column:1/-1; padding:48px 20px; text-align:center; }
.catalog-preview { font-family:LegendsUI,Arial,sans-serif; }
.catalog-preview .characters-layout { max-width:1440px; padding:12px 32px 60px; margin:auto; }
/* En-tête du site : même style que la fiche perso (game-theme.css), bouton actif = bouton doré du jeu. */
.catalog-preview .site-header { background:#15171a; border-bottom:3px solid #f3b917; box-shadow:0 4px 16px #0005; }
.catalog-preview .site-nav a { border-radius:0; color:#eee; font-size:17px; }
.catalog-preview .site-nav a.is-active { background:url('../assets/game/ui/Cmn_2_btnDecide52.png') center/100% 100%; color:#111; box-shadow:none; }
.catalog-preview .characters-top { margin:0; }
.catalog-preview .catalog-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin:24px 0; }
.catalog-preview .catalog-eyebrow { display:block; font:11px Arial,sans-serif; letter-spacing:2px; margin-bottom:9px; }
.catalog-preview .catalog-heading h1 { text-align:left; font-size:52px; font-style:italic; line-height:1; margin:0; }
.catalog-preview .catalog-intro { display:block; font-size:16px; line-height:1.4; margin:0 0 3px; opacity:.7; }
.catalog-preview .characters-filters { margin:0; }
.catalog-preview .filter-row { display:flex; flex-wrap:wrap; gap:8px; padding:14px; }
.catalog-preview .filter-row select,.catalog-preview .filter-row input {
  min-width:120px; flex:1; border:1px solid #83858b; border-radius:2px; padding:11px 12px;
  font:15px LegendsUI,Arial,sans-serif; height:44px;
}
.catalog-preview .filter-row input { flex:2; min-width:210px; }
.catalog-preview .characters-grid { gap:16px; }
.catalog-preview .char-card { border-radius:3px; box-shadow:none; padding:0; height:100%; }
.catalog-preview .char-card::after { display:none; }
.catalog-preview .char-card:hover { transform:translateY(-3px); box-shadow:0 8px 18px #0003; }
.catalog-preview .char-card-name { font-size:17px; }
.catalog-preview .char-card-name-text { -webkit-line-clamp:2; }
.catalog-preview .char-card-type { border-radius:0; padding:0; margin:4px 0; background:none; font-size:12px; opacity:.75; }
.catalog-preview .char-card-id { font:10px Arial,sans-serif; letter-spacing:.5px; }
.catalog-preview .char-card-thumb-wrap { min-width:0; }
.catalog-preview .char-card-thumb-wrap .tag-thumb-stack { width:100%; height:100%; padding:0; }
.catalog-preview .char-card-thumb-wrap .tag-thumb-stack .tag-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.catalog-preview .char-card-thumb-wrap>.char-card-thumb { width:100%; height:100%; object-fit:contain; }
.catalog-preview .char-card-badges-left { top:8px; left:8px; }
.catalog-preview .char-card-badges-right { bottom:auto; top:10px; right:8px; }
/* Icône courte du jeu (LR, UL, SP…), plus grande et lisible. */
.catalog-preview .badge-rarity { width:auto; height:34px; object-fit:contain; filter:drop-shadow(0 2px 3px #0008); }
.catalog-preview .badge-zenkai { max-width:36px; height:25px; object-fit:contain; }
.catalog-preview .char-pill { background:none; }
.catalog-preview .char-card-ll { bottom:0; }

/* 01 · Collection : grille de portraits et panneaux du jeu. */
.catalog-collection { color:#1b1e22; background:#e8e9eb url('../assets/game/ui/background_NextGenUI.png') center/cover no-repeat fixed; }
.catalog-collection .characters-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.catalog-collection .filter-row { background:#24282d; border-bottom:4px solid #eab62b; }
.catalog-collection .filter-row select,.catalog-collection .filter-row input { background:#fff; color:#161719; }
.catalog-collection .char-card { color:#191c20; background:#f8f8f8; border:1px solid #a4a7ab; border-bottom:4px solid #30343a; }
.catalog-collection .char-card-main { display:flex; flex-direction:column; gap:0; }
.catalog-collection .char-card-thumb-wrap { flex:none; width:100%; height:212px; background:#333840 url('../assets/game/ui/background_cmn.png') center/cover; overflow:hidden; }
/* Corps entiers : la silhouette tient dans le cadre, posée en bas. */
.catalog-collection .char-card-thumb-wrap>.char-card-thumb,
.catalog-collection .char-card-thumb-wrap .tag-thumb-stack .tag-thumb { padding:14px 6px 4px; object-fit:contain; object-position:50% 100%; }
/* ULTRA : portrait HopeCard en plein cadre (le haut du corps reste visible). */
.catalog-collection .char-card--art .char-card-thumb-wrap>.char-card-thumb { padding:0; object-fit:cover; object-position:50% 12%; }
.catalog-collection .char-card-text { width:100%; padding:12px 10px; min-height:112px; }
.catalog-collection .char-card-name { align-items:start; }
.catalog-collection .char-card-name-text { min-height:42px; }
.catalog-collection .char-card-text { display:flex; flex-direction:column; min-height:126px; }
.catalog-collection .char-card-meta { margin-top:auto; padding-top:8px; text-align:left; }
.catalog-collection .char-card-type { display:block; margin:0 0 4px; }
.catalog-preview .char-card-ll {
  inset:auto 0 0; width:100%; height:24px; transform:none; display:block;
  background:#e6bf39; border-top:1px solid #fff5b1; border-bottom:1px solid #8c6d15;
}
.catalog-preview .char-card-ll img { display:block; width:100%; height:100%; object-fit:fill; }

@media(max-width:1100px) {
  .catalog-collection .characters-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .catalog-preview .characters-layout { display:block; padding:10px 14px 40px; }
  .catalog-preview .catalog-heading { margin:18px 0; }
  .catalog-preview .catalog-heading h1 { font-size:38px; }
  .catalog-preview .catalog-intro { display:none; }
  .catalog-preview .filter-row { padding:10px; gap:6px; flex-direction:row; }
  .catalog-preview .filter-row select { width:calc(50% - 3px); min-width:0; flex:auto; font-size:13px; }
  .catalog-preview .filter-row input { min-width:0; width:100%; flex:auto; }
  .catalog-preview .catalog-results { font-size:12px; align-items:center; }
  .catalog-results>span:last-child { max-width:110px; text-align:right; }
  .catalog-preview .characters-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .catalog-preview .char-card-name { font-size:16px; }
  .catalog-collection .char-card-thumb-wrap { height:190px; }
  .catalog-preview .badge-rarity { height:28px; }
  .catalog-collection .char-card-text { padding:10px 7px; }
}
@media(prefers-reduced-motion:reduce) {
  .catalog-preview .char-card { transition:none; }
}

/* 04 · Page Tag : même grille et même en-tête que la Collection. */
.page-tag .catalog-heading h1 { overflow-wrap:anywhere; }
.page-tag .catalog-intro { max-width:520px; text-align:right; }
.page-tag .catalog-intro p { margin:0; }
.page-tag .tag-description { color:inherit; background:none; border-left:4px solid #eab62b; border-radius:0; padding:4px 0 4px 14px; text-align:left; font-size:16px; }
.page-tag .error:empty { display:none; }

/* 05 · Bouton clair / sombre (en-tête). */
.theme-toggle {
  flex:none; width:40px; height:40px; display:grid; place-items:center; cursor:pointer;
  border:1px solid #ffffff33; border-radius:4px; background:#ffffff12; color:#ffce31;
}
.theme-toggle span { width:18px; height:18px; border-radius:50%; background:currentColor; box-shadow:inset -6px -3px 0 0 #161719; }
[data-theme="dark"] .theme-toggle span { box-shadow:none; background:radial-gradient(circle,#ffce31 45%,transparent 48%); outline:2px dotted #ffce31; outline-offset:2px; }
.theme-toggle:hover { background:#ffffff22; }
.theme-toggle:focus-visible { outline:3px solid #00a9cf; outline-offset:3px; }

/* 06 · Thème sombre : fond sombre du jeu (background_cmn) et panneaux foncés. */
[data-theme="dark"] .catalog-collection { color:#eef0f3; background:#0f1217 url('../assets/game/ui/background_cmn.png') center/cover no-repeat fixed; }
[data-theme="dark"] .catalog-collection .char-card { color:#eef0f3; background:#1b1f26; border-color:#3b414b; border-bottom-color:#eab62b; }
[data-theme="dark"] .catalog-collection .char-card:hover { box-shadow:0 8px 18px #000a; }
[data-theme="dark"] .catalog-collection .char-card-thumb-wrap { background-color:#0c0f14; }
[data-theme="dark"] .catalog-collection .filter-row select,[data-theme="dark"] .catalog-collection .filter-row input { color:#eef0f3; background:#11151b; border-color:#4a505a; }

/* 07 · Accueil : les cartes « Personnages à découvrir » reprennent la carte Collection (variante sombre). */
.collection-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; font-family:LegendsUI,Arial,sans-serif; }
.collection-cards .char-card { height:100%; padding:0; border-radius:3px; color:#eef0f3; background:#1b1f26; border:1px solid #3b414b; border-bottom:4px solid #eab62b; box-shadow:none; }
.collection-cards .char-card::after { display:none; }
.collection-cards .char-card:hover { transform:translateY(-3px); box-shadow:0 8px 18px #000a; }
.collection-cards .char-card-main { display:flex; flex-direction:column; gap:0; }
.collection-cards .char-card-thumb-wrap { flex:none; width:100%; height:240px; overflow:hidden; background:#0c0f14 url('../assets/game/ui/background_cmn.png') center/cover; }
.collection-cards .char-card-thumb-wrap>.char-card-thumb { width:100%; height:100%; padding:14px 6px 4px; object-fit:contain; object-position:50% 100%; }
.collection-cards .char-card-thumb-wrap .tag-thumb-stack { position:relative; width:100%; height:100%; padding:0; }
.collection-cards .char-card-thumb-wrap .tag-thumb-stack .tag-thumb { position:absolute; inset:0; width:100%; height:100%; padding:14px 6px 4px; object-fit:contain; object-position:50% 100%; }
.collection-cards .char-card--art .char-card-thumb-wrap>.char-card-thumb { padding:0; object-fit:cover; object-position:50% 12%; }
.collection-cards .char-card-text { display:flex; flex-direction:column; width:100%; padding:12px 10px; min-height:118px; }
.collection-cards .char-card-name { font-size:17px; align-items:start; }
.collection-cards .char-card-name-text { -webkit-line-clamp:2; min-height:42px; }
.collection-cards .char-card-meta { margin-top:auto; padding-top:8px; }
.collection-cards .char-card-type { display:block; margin:0 0 4px; padding:0; border-radius:0; background:none; font-size:12px; opacity:.75; }
.collection-cards .char-card-id { font:10px Arial,sans-serif; letter-spacing:.5px; }
.collection-cards .char-pill { background:none; }
.collection-cards .char-card-badges-left { top:8px; left:8px; }
.collection-cards .char-card-badges-right { bottom:auto; top:10px; right:8px; }
.collection-cards .badge-rarity { width:auto; height:34px; object-fit:contain; filter:drop-shadow(0 2px 3px #0008); }
.collection-cards .badge-zenkai { max-width:36px; height:25px; object-fit:contain; }
.collection-cards .char-card-ll { inset:auto 0 0; width:100%; height:24px; transform:none; display:block; background:#e6bf39; }
.collection-cards .char-card-ll img { display:block; width:100%; height:100%; object-fit:fill; }
@media(max-width:900px) { .collection-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .collection-cards .char-card-thumb-wrap { height:200px; } }
@media(prefers-reduced-motion:reduce) { .collection-cards .char-card { transition:none; } }

/* 08 · Équipements : même en-tête et même barre de filtres que la Collection. */
.catalog-preview.page-equipments .wrap,.catalog-preview.page-equipment .wrap { max-width:1440px; padding:12px 32px 60px; }
.catalog-preview.page-equipments .page-title { margin:24px 0; font-size:52px; font-style:italic; line-height:1; }
.catalog-collection .filters-row { display:flex; flex-wrap:wrap; gap:8px; padding:14px; background:#24282d; border-bottom:4px solid #eab62b; }
.catalog-collection .filters-row .filter-input { flex:1; min-width:150px; height:44px; padding:11px 12px; border:1px solid #83858b; border-radius:2px; color:#161719; background:#fff; font:15px LegendsUI,Arial,sans-serif; }
.catalog-collection .filters-row input.filter-input { flex:2; }
[data-theme="dark"] .catalog-collection .filters-row .filter-input { color:#eef0f3; background:#11151b; border-color:#4a505a; }
/* Fiche équipement en thème clair : panneaux du jeu opaques pour garder le texte clair lisible. */
.catalog-collection.page-equipment :is(.equip-slot,.rank-calculator,.compat-card) { background-color:#1d222a; }
.catalog-collection .req-pill { background:#24282d; }
@media(max-width:700px) {
  .catalog-preview.page-equipments .wrap,.catalog-preview.page-equipment .wrap { padding:10px 14px 40px; }
  .catalog-preview.page-equipments .page-title { font-size:38px; margin:18px 0; }
}
.collection-cards .home-new-stamp { position:static; width:auto; height:26px; }
@media(max-width:700px) {
  .page-tag .catalog-heading { flex-wrap:wrap; }
  .page-tag .catalog-intro { display:block; max-width:none; text-align:left; font-size:14px; }
}

/* 09 · Legends Limited : badge du jeu (CharaTop_icnLegendsLimitedBadge) en bas à gauche de l'illustration. */
.char-card-llbadge { position:absolute; left:0; bottom:0; z-index:2; width:118px; aspect-ratio:250/181; pointer-events:none; filter:drop-shadow(0 2px 4px #000a); }
.char-card-llbadge img { display:block; width:100%; height:100%; }
/* Reflet lumineux (comme le matériau UI_LLlight) : une bande claire traverse le badge, découpée à sa forme. */
.llbadge-shine {
  position:absolute; inset:0; mix-blend-mode:screen;
  background:linear-gradient(110deg, transparent 42%, rgba(255,248,200,.9) 50%, transparent 58%) 100% 0/300% 100% no-repeat;
  -webkit-mask:url('../assets/game/ui/ll-badge.webp') center/100% 100% no-repeat;
          mask:url('../assets/game/ui/ll-badge.webp') center/100% 100% no-repeat;
  animation:ll-shine 5s ease-in-out infinite;
}
@keyframes ll-shine { 0% { background-position:100% 0; } 24%,100% { background-position:0 0; } } /* passage ≈1,2 s puis pause */

/* 10 · Badges UL / LR animés, avec les textures du jeu (dossier assets/game/ui/rarity) :
   fx-mask-ul / fx-mask-lr = silhouettes du texte (MChaIco_effRarityUL1 / LR1), qui découpent les effets ;
   fx-orbs = boules de lumière LR (MChaIco_effRarityLR) ; fx-sweep = bande du reflet ; fx-star = étoile (MChaIco_effRarityUL).
   Réglages rapides : --glint-cycle (temps entre deux scintillements), --orbs-speed (défilement des boules). */
.badge-rarity-fx { --glint-cycle:3.6s; --orbs-speed:6s; position:relative; display:inline-block; line-height:0; }
/* Zone du texte « UL » / « LR » dans l'icône 64×40 du jeu (là où la silhouette doit tomber). */
.fx-ul { --glyph-l:12.5%; --glyph-t:7.5%; --glyph-w:76.6%; --glyph-h:85%; }
.fx-lr { --glyph-l:9.4%; --glyph-t:2.5%; --glyph-w:79.7%; --glyph-h:97.5%; }
.badge-fx, .badge-glint { position:absolute; pointer-events:none; }
/* UL : éclair (planche de 4 images, inchangé). */
.fx-ul .badge-fx {
  left:50%; top:50%; width:120%; aspect-ratio:1; transform:translate(-50%,-50%); mix-blend-mode:screen;
  background:url('../assets/game/ui/rarity/fx-ul.webp') 0 0/400% 100% no-repeat;
  animation:rarity-frames .5s infinite, rarity-flash 2.6s ease-out infinite;
}
/* LR : texture de boules de lumière du jeu qui défile lentement, découpée à la forme des lettres. */
.fx-lr .badge-fx {
  left:var(--glyph-l); top:var(--glyph-t); width:var(--glyph-w); height:var(--glyph-h); mix-blend-mode:plus-lighter;
  background:url('../assets/game/ui/rarity/fx-orbs.png') 0 0/180% auto repeat; /* boules à taille lisible */
  animation:lr-orbs var(--orbs-speed) linear infinite, lr-twinkle 1.8s ease-in-out infinite;
}
/* Découpe à la forme des lettres (url écrite ici : une url dans une variable CSS se résout mal). */
.fx-ul .glint-sweep { -webkit-mask:url('../assets/game/ui/rarity/fx-mask-ul.png') center/100% 100% no-repeat; mask:url('../assets/game/ui/rarity/fx-mask-ul.png') center/100% 100% no-repeat; }
.fx-lr .badge-fx, .fx-lr .glint-sweep { -webkit-mask:url('../assets/game/ui/rarity/fx-mask-lr.png') center/100% 100% no-repeat; mask:url('../assets/game/ui/rarity/fx-mask-lr.png') center/100% 100% no-repeat; }
@keyframes lr-orbs { from { background-position:0 0; } to { background-position:0 -200%; } }
@keyframes lr-twinkle { 0%,100% { opacity:.55; } 50% { opacity:1; } }
/* Scintillement (UL et LR) : une bande claire traverse les lettres, puis une étoile brille en haut à droite. */
.badge-glint { left:var(--glyph-l); top:var(--glyph-t); width:var(--glyph-w); height:var(--glyph-h); }
.glint-sweep {
  position:absolute; inset:0; mix-blend-mode:plus-lighter; opacity:.9;
  background:url('../assets/game/ui/rarity/fx-sweep.png') -60% 0/45% 100% no-repeat;
  animation:glint-sweep var(--glint-cycle) ease-in-out infinite;
}
.glint-star {
  position:absolute; right:-14%; top:-22%; width:46%; aspect-ratio:1; opacity:0;
  background:url('../assets/game/ui/rarity/fx-star.png') center/contain no-repeat; mix-blend-mode:plus-lighter;
  animation:glint-star var(--glint-cycle) ease-out infinite;
}
@keyframes glint-sweep { 0% { background-position:-60% 0; } 22%,100% { background-position:160% 0; } }
@keyframes glint-star { 0%,16% { opacity:0; transform:scale(.2) rotate(0); } 22% { opacity:1; transform:scale(1) rotate(45deg); } 34%,100% { opacity:0; transform:scale(.3) rotate(90deg); } }
/* Changement d'image net (pas de fondu) : 4 vignettes de la planche (éclair UL). */
@keyframes rarity-frames {
  0% { background-position:0 0; animation-timing-function:steps(1,end); }
  25% { background-position:33.333% 0; animation-timing-function:steps(1,end); }
  50% { background-position:66.667% 0; animation-timing-function:steps(1,end); }
  75%,100% { background-position:100% 0; }
}
/* UL : éclairs brefs puis pause. */
@keyframes rarity-flash { 0%,58%,100% { opacity:0; } 62% { opacity:1; } 68% { opacity:.35; } 72% { opacity:1; } 88% { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .llbadge-shine,.badge-fx,.glint-sweep,.glint-star { animation:none; opacity:0; } }

/* 11 · Fiche équipement : en-tête, conditions et slots avec les éléments du jeu. */
/* En-tête : grande icône encadrée + plaque de rareté (Cmn_pltHeadLine). */
.page-equipment .equip-hero { gap:20px; margin:16px 0 28px; }
.page-equipment .equip-hero-left { width:128px; }
.page-equipment .equip-hero .equip-icon { width:128px; height:128px; }
.page-equipment .equip-name { margin:0 0 10px; font-size:40px; font-style:italic; line-height:1.05; }
.equip-rarity-plate {
  display:inline-block; min-width:170px; padding:6px 96px 6px 14px;
  /* fond noir plein sous le texte, puis la fin tramée de la plaque du jeu (Cmn_pltHeadLine) */
  background:url('../assets/game/ui/Cmn_pltHeadLine.png') right center/150px 100% no-repeat,
             linear-gradient(#000,#000) left center/calc(100% - 140px) 100% no-repeat;
  font:italic 20px/1.2 LegendsUI,Arial,sans-serif; letter-spacing:1px; color:#fff;
}
.equip-rarity-plate.rarity-bronze   { color:#e0a06a; }
.equip-rarity-plate.rarity-silver   { color:#dfe7ee; }
.equip-rarity-plate.rarity-gold     { color:#ffd23f; }
.equip-rarity-plate.rarity-iron     { color:#b9bec4; }
.equip-rarity-plate.rarity-unique   { color:#f3d77a; }
.equip-rarity-plate.rarity-platinum { color:#bfefff; text-shadow:0 0 8px #7fd4ff; }
.equip-rarity-plate.is-awakened { text-shadow:0 0 6px currentColor; }
@media(max-width:700px) {
  .page-equipment .equip-hero-left { width:96px; }
  .page-equipment .equip-hero .equip-icon { width:96px; height:96px; }
  .page-equipment .equip-name { font-size:28px; }
  .equip-rarity-plate { font-size:16px; min-width:130px; }
}

/* Conditions : puces claires avec icône de tag du jeu (perso / saga / catégorie) ou d'élément. */
.catalog-collection .req-inline { gap:8px; }
.catalog-collection .req-pill {
  display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:4px 14px 4px 6px;
  border:2px solid #1d2026; border-radius:999px; background:#fff; color:#161719;
  font:15px LegendsUI,Arial,sans-serif; box-shadow:0 2px 0 #1d2026;
}
.catalog-collection .req-pill:hover { background:#fff6d6; }
.catalog-collection .req-pill img { width:26px; height:26px; object-fit:contain; }
.catalog-collection .req-pill.req-rar img { width:auto; height:22px; }
.catalog-collection .req-connector { font:italic 15px LegendsUI,Arial,sans-serif; text-transform:uppercase; opacity:.7; }
[data-theme="dark"] .catalog-collection .req-pill { background:#eef0f3; }

/* Slots : boîte de dialogue du jeu (Cmn_2_pltGameDialog_Base) + barre de titre orange (TitleBase). */
.catalog-collection.page-equipment .equip-slot {
  margin-bottom:18px; padding:0; border-radius:0; background:none;
  border:16px solid transparent; border-image:url('../assets/game/ui/Cmn_2_pltGameDialog_Base.png') 16 fill / 16px stretch;
  color:#1d2026;
}
.page-equipment .equip-slot .slot-title {
  margin:-6px -6px 12px; padding:7px 16px;
  background:url('../assets/game/ui/Cmn_2_pltGameDialog_TitleBase.png') center/100% 100% no-repeat;
  font:italic 19px/1.2 LegendsUI,Arial,sans-serif; letter-spacing:1px;
  /* texte blanc détouré de noir : lisible sur l'orange comme sur la trame noire du coin */
  color:#fff; text-shadow:-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000,2px 2px 0 #000,0 2px 0 #000,0 -2px 0 #000,2px 0 0 #000,-2px 0 0 #000;
}
.page-equipment .equip-slot-platinum .slot-title { filter:hue-rotate(180deg) saturate(.8); } /* barre bleue pour le platine */
.page-equipment .equip-slot .slot-unlock { font-size:14px; font-style:normal; opacity:.8; }
.page-equipment .equip-slot :is(.slot-effect-main,.stat-label,.slot-choice-text) { color:#1d2026; }
.page-equipment .equip-slot .slot-effect-sub { color:#4b5563; }
.page-equipment .equip-slot .slot-effects { padding:0 6px 4px; transform:none; white-space:normal; }
.page-equipment .equip-slot .slot-stat { border-bottom-color:#0001; }
.page-equipment .equip-slot .stat-range-max { color:#16803c; } /* vert lisible sur fond clair */
.page-equipment .equip-slot .stat-range-sep { color:#555; }

/* Pourcentages des slots : mis en avant (plage min → max, ou valeur seule). */
.page-equipment .equip-slot .slot-pct { font-weight:700; color:#c2410c; white-space:nowrap; }
.page-equipment .equip-slot .slot-pct-range { padding:0 4px; border-radius:4px; background:#fff3e0; box-shadow:inset 0 0 0 1px #f3c08a; }
.page-equipment .equip-slot .slot-pct-min { color:#b91c1c; }
.page-equipment .equip-slot .slot-pct-max { color:#15803d; }
.page-equipment .equip-slot .slot-effect-text { white-space:normal; }
/* Plusieurs choix possibles dans un slot : « Choix 1 », séparateur « OU », « Choix 2 »… */
.page-equipment .slot-options { list-style:none; margin:0; padding:0 6px 4px; }
.page-equipment .slot-option { padding:10px 12px; border:2px solid #1d202633; border-radius:8px; background:#ffffffb3; }
.page-equipment .slot-option-no { display:inline-block; margin-bottom:6px; padding:1px 10px; border-radius:999px; background:#1d2026; color:#fff; font:italic 13px LegendsUI,Arial,sans-serif; letter-spacing:.5px; }
.page-equipment .slot-option .slot-effects { padding:0; }
.page-equipment .slot-or { display:flex; align-items:center; gap:10px; margin:8px 0; color:#1d2026; font:italic 14px LegendsUI,Arial,sans-serif; }
.page-equipment .slot-or::before,.page-equipment .slot-or::after { content:""; flex:1; height:2px; background:#1d202640; }
/* Platine : valeurs fixes en doré lisible sur fond clair. */
.page-equipment .equip-slot .stat-value-fixed { background:#ffd23f; border:2px solid #1d2026; color:#1d2026; }
/* Conditions platine : nom du perso + son ID. */
.catalog-collection .req-char .req-char-id { margin-left:4px; font:11px Arial,sans-serif; letter-spacing:.5px; opacity:.7; }

/* 12 · Persos Zenkai : cadre Zenkai du jeu (MChaIco_frmPlentyHigh_Thumbnail) autour du perso + éclat. */
:is(.catalog-preview,.collection-cards) .char-card.card-zenkai { box-shadow:none; }
:is(.catalog-preview,.collection-cards) .char-card.card-zenkai { overflow:visible; }  /* le cadre déborde à l'extérieur */
:is(.catalog-preview,.collection-cards) .card-zenkai .char-card-thumb-wrap { position:relative; overflow:visible; }
/* Cadre posé sur le bord de la vignette (tag-thumb-stack compris), découpé en 9 morceaux : coins nets, côtés étirés,
   bas ouvert comme dans le jeu. Le texte de la carte reste dégagé. */
:is(.catalog-preview,.collection-cards) .card-zenkai .char-card-thumb-wrap::after {
  content:""; display:block; position:absolute; inset:-9px -9px 0 -9px; /* le trait doré passe sur le bord, côté extérieur */
  z-index:4; pointer-events:none;
  /* image du cadre recadrée sur ses bords (sans marge transparente) : il épouse le bord de la vignette */
  border-style:solid; border-width:20px 16px 0 17px;
  border-image:url('../assets/game/ui/zenkai/frm-zenkai-edge.webp') 26 20 0 22 / 20px 16px 0 17px stretch;
  filter:drop-shadow(0 0 1px #2b1a00) drop-shadow(0 0 3px #ffb30099);
}
/* Éclat du jeu (MChaIco_effPlentySparkle) dans le coin haut gauche du cadre. */
:is(.catalog-preview,.collection-cards) .char-card.card-zenkai::before {
  content:""; position:absolute; top:-16px; left:-16px; z-index:5; width:44px; height:40px; pointer-events:none;
  background:url('../assets/game/ui/zenkai/zenkai-sparkle.webp') center/contain no-repeat;
  animation:zenkai-sparkle 2.4s ease-in-out infinite;
}
@keyframes zenkai-sparkle { 0%,100% { opacity:.3; transform:scale(.8) rotate(0deg); } 50% { opacity:1; transform:scale(1.1) rotate(12deg); } }
@media(prefers-reduced-motion:reduce) { :is(.catalog-preview,.collection-cards) .char-card.card-zenkai::before { animation:none; } }
/* Texte lisible (l'ancien style Zenkai le passait en beige clair sur fond blanc). */
:is(.catalog-preview,.collection-cards) .card-zenkai :is(.char-card-name,.char-card-id,.char-card-type) { color:inherit; }
/* Logo Zenkai plus grand, décalé pour ne pas chevaucher le cadre. */
:is(.catalog-preview,.collection-cards) .card-zenkai img.badge-zenkai[alt="Zenkai"] { width:auto; max-width:none; height:40px; filter:drop-shadow(0 2px 3px #000a); }
:is(.catalog-preview,.collection-cards) .card-zenkai .char-card-badges-left { top:12px; left:12px; z-index:6; }
:is(.catalog-preview,.collection-cards) .card-zenkai .char-card-badges-right { top:14px; right:12px; z-index:6; }

/* ============================================================
   13. Badge « équipement exclusif » : cadre du jeu (EqIco_frm*) de son
       équipement exclusif le plus rare, en bas à droite de la vignette
   ============================================================ */
.char-card-thumb-wrap { position:relative; }
.char-card-equipbadge { position:absolute; right:6px; bottom:6px; z-index:5; width:34px; height:34px; line-height:0; pointer-events:auto; }
.char-card-equipbadge img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 1px 3px #000c); }
@media (max-width:520px) { .char-card-equipbadge { width:28px; height:28px; } }

/* Archive : logo de chaque rareté (LEGEND, ULTRA, SPARKING…) au-dessus de son groupe, sur toute la largeur.
   Même image que le tampon de la fiche perso (.stamp-rarity), sans barre. */
.catalog-rarity-title { grid-column:1/-1; margin:22px 0 0; line-height:0; }
.catalog-rarity-title:first-child { margin-top:0; }
.catalog-rarity-title .stamp-rarity { display:block; height:60px; width:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
@media (max-width:480px) { .catalog-rarity-title .stamp-rarity { height:44px; } }
