/* MoonTik — Alerte cadeau / Top Combo / Carte membre (widget + aperçus). Rendu : static/js/mt_fx.js */
@font-face { font-family: "MT Luckiest"; src: url("/static/fonts/LuckiestGuy-Regular.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "MT Bangers"; src: url("/static/fonts/Bangers-Regular.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "MT Lilita"; src: url("/static/fonts/LilitaOne-Regular.v2.woff2") format("woff2"), url("/static/fonts/LilitaOne-Regular.v2.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "MT Pixel"; src: url("/static/fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: block; }

/* contour de texte générique : --ol (épaisseur) / --olc (couleur) */
.acx, .tcx, .cmx { --olc: #0b0b12; }
.ol, .fx-ol { text-shadow:
  var(--ol) 0 0 var(--olc), calc(var(--ol) * -1) 0 0 var(--olc), 0 var(--ol) 0 var(--olc), 0 calc(var(--ol) * -1) 0 var(--olc),
  var(--ol) var(--ol) 0 var(--olc), calc(var(--ol) * -1) var(--ol) 0 var(--olc), var(--ol) calc(var(--ol) * -1) 0 var(--olc), calc(var(--ol) * -1) calc(var(--ol) * -1) 0 var(--olc),
  calc(var(--ol) * .6) calc(var(--ol) * 1.6) 0 var(--olc); }
.fx-glow { filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 14px currentColor); }
.fx-rainbow { background: linear-gradient(90deg,#ff0040,#ffcc00,#00ff66,#00ccff,#cc00ff,#ff0040); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none !important; animation: fxRb 3s linear infinite; }
@keyframes fxRb { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* avatar commun (photo ou initiale) */
.acx-av, .tcx-av, .cmx-av { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #26324a; }
.acx-av img, .tcx-av img, .cmx-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acx-av b, .tcx-av b, .cmx-av b { display: none; color: #fff; font: 1em/1 "MT Luckiest", sans-serif; }
.is-ini b { display: block !important; }

/* =====================================================================  ALERTE CADEAU */
.acx { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; --gift: 110px; --accent: #c4b5fd; color: #fff; }
.acx-parts { position: absolute; left: 50%; top: calc(var(--gift) / 2); width: 0; height: 0; z-index: 1; pointer-events: none; }
.acx-pt { position: absolute; left: calc(var(--gift) / -2); top: calc(var(--gift) / -2); width: var(--gift); height: var(--gift); object-fit: contain; opacity: 0;
  animation: acxBoom 1.5s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes acxBoom {
  0% { transform: translate(0,0) scale(.2) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(var(--rot)); opacity: 0; }
}
.acx-hero { position: relative; z-index: 2; display: grid; place-items: center; }
.acx-gift { width: var(--gift); height: var(--gift); object-fit: contain; position: relative; z-index: 2; }
.acx-combo { position: absolute; z-index: 4; right: -58px; top: -14px; font: 700 36px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; --ol: 0; transform: none;
  text-shadow: 0 8px 18px rgba(0,0,0,.55); }
.acx-combo.bump { animation: acxBump .35s ease; }
@keyframes acxBump { 0% { scale: 1; } 40% { scale: 1.45; } 100% { scale: 1; } }
.acx-user { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; }
.acx-av { width: 44px; height: 44px; border: 3px solid #fff; font-size: 20px; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.acx-name { font: 700 28px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; padding-top: 0; white-space: nowrap; --ol: 0; }
.acx-meta { position: relative; z-index: 3; display: flex; align-items: center; gap: 6px; }
.acx-gname { font: 600 16px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; padding-top: 0; --ol: 0; }
.acx-coin { width: 20px; height: 20px; }
.acx-coins { font: 700 16px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0; }
.acx :is(.acx-name, .acx-gname, .acx-coins):not(.fx-rainbow) { text-shadow:
  var(--ol) 0 0 var(--olc), calc(var(--ol) * -1) 0 0 var(--olc), 0 var(--ol) 0 var(--olc), 0 calc(var(--ol) * -1) 0 var(--olc),
  var(--ol) var(--ol) 0 var(--olc), calc(var(--ol) * -1) var(--ol) 0 var(--olc), var(--ol) calc(var(--ol) * -1) 0 var(--olc), calc(var(--ol) * -1) calc(var(--ol) * -1) 0 var(--olc), 0 calc(var(--ol) * 1.8) 0 var(--olc); }
/* Classique : image qui surgit + halo */
.acx-classique .acx-hero::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), color-mix(in srgb, var(--accent) 25%, transparent) 45%, transparent 70%); z-index: 1; }
.acx-classique .acx-gift { filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
/* Contour : médaillon cerclé de blanc */
.acx-medal { width: calc(var(--gift) * 1.18); height: calc(var(--gift) * 1.18); border-radius: 50%; background: transparent; border: 2px solid #c4b5fd; display: grid; place-items: center; box-shadow: 0 0 18px rgba(196,181,253,.45); position: relative; z-index: 2; }
.acx-medal .acx-gift { width: calc(var(--gift) * .78); height: calc(var(--gift) * .78); }
.acx-contour .acx-name { font-size: 32px; }
.acx-contour .acx-gname { color: #ffb020; font-size: 19px; }
.acx-contour .acx-coins { color: #fff; font-family: "MT Luckiest", sans-serif; font-size: 19px; padding-top: 3px; }
/* Manga Impact : case encrée */
.acx-manga { flex-direction: row; }
.acx-manga .acx-parts { left: 110px; top: 50%; }
.acx-panel { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 18px 26px 18px 18px; min-width: 330px; transform: none;
  background: radial-gradient(circle at 0% 0%, #3b2768, #120c22 72%); border-radius: 22px; border: 1px solid rgba(196,181,253,.5);
  box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.acx-frame { width: 150px; height: 150px; flex: 0 0 auto; background: #1a1333; border: 1px solid rgba(196,181,253,.55); border-radius: 28px; display: grid; place-items: center; transform: none; box-shadow: inset 0 0 0 6px rgba(196,181,253,.12); }
.acx-manga .acx-gift { width: 92px; height: 92px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.25)); }
.acx-manga .acx-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.acx-manga .acx-av { width: 40px; height: 40px; border: 2px solid #c4b5fd; font-size: 18px; box-shadow: none; }
.acx-tag { background: rgba(196,181,253,.2); padding: 6px 10px; box-shadow: none; transform: none; border-radius: 999px; }
.acx-manga .acx-name { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; --ol: 0px; padding: 0; }
.acx-manga.no-band .acx-tag { background: none; box-shadow: none; }
.acx-manga.no-band .acx-name { color: #f5f3ff; }
.acx-manga .acx-gname { font: 700 28px/1 "Segoe UI", system-ui, sans-serif; color: #f5d0fe; letter-spacing: .02em; text-transform: none; --ol: 0; transform: none; }
.acx-val { display: flex; align-items: center; gap: 6px; }
.acx-manga .acx-coins { font: 700 20px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0px; }
.acx-manga .acx-combo { right: -8px; top: -10px; font: 700 28px/1 "Segoe UI", system-ui, sans-serif; color: #f5d0fe; }
/* Sticker : stickers à bord blanc collés un par un */
.acx-sticker { flex-direction: row; align-items: center; gap: 26px; }
.acx-sticker .acx-parts { left: 55px; top: 50%; }
.acx-sticker .acx-gift { filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); transform: none; }
.acx-sticker .acx-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; z-index: 3; }
.acx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid rgba(196,181,253,.45); border-radius: 999px; box-shadow: none; position: relative; background: rgba(22,16,40,.92); }
.acx-pill::before { content: none; }
.acx-sticker .acx-av { width: 46px; height: 46px; border: 2px solid #c4b5fd; }
.acx-p-name { background: rgba(22,16,40,.92); transform: none; }
.acx-p-name::before { background: transparent; }
.acx-sticker .acx-name { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; --ol: 0px; padding: 0; }
.acx-p-gift { background: rgba(196,181,253,.18); margin-left: 12px; transform: none; }
.acx-sticker .acx-gname { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #f5d0fe; --ol: 0px; padding: 0; }
.acx-p-coins { background: #2a2158; margin-left: 30px; transform: none; }
.acx-sticker .acx-coins { font: 700 20px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0px; }
.acx-sticker .acx-combo { right: -8px; top: -10px; font: 700 18px/1 "Segoe UI", system-ui, sans-serif; color: #1a1033; background: #fde68a; border: 0; border-radius: 999px; padding: 4px 10px; text-shadow: none; box-shadow: none; }
/* animations d'entrée */
.acx.is-in .acx-hero, .acx.is-in .acx-frame { animation: acxPop .55s cubic-bezier(.2,1.6,.4,1) both; }
.acx.is-in .acx-user, .acx.is-in .acx-meta { animation: acxUp .45s .15s ease both; }
.acx.is-in .acx-panel { animation: acxSlam .5s cubic-bezier(.2,1.5,.4,1) both; }
.acx-sticker.is-in .acx-side > * { animation: acxStick .4s cubic-bezier(.2,1.6,.4,1) both; }
.acx-sticker.is-in .acx-side > *:nth-child(2) { animation-delay: .18s; }
.acx-sticker.is-in .acx-side > *:nth-child(3) { animation-delay: .36s; }
@keyframes acxPop { 0% { scale: .1; } 70% { scale: 1.15; } 100% { scale: 1; } }
@keyframes acxUp { 0% { opacity: 0; translate: 0 14px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes acxSlam { 0% { scale: 1.6; opacity: 0; } 60% { scale: .95; opacity: 1; } 100% { scale: 1; } }
@keyframes acxStick { 0% { scale: 1.8; opacity: 0; } 100% { scale: 1; opacity: 1; } }

/* =====================================================================  TOP COMBO */
.tcx { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; --accent: #c4b5fd; }
.tcx :is(.tcx-label, .tcx-name, .tcx-count, .tcx-gname) { white-space: nowrap; }
.tcx-gift { width: 92px; height: 92px; object-fit: contain; }
.tcx-av { width: 38px; height: 38px; border: 3px solid #fff; font-size: 18px; margin-right: 8px; }
.tcx-who { display: flex; align-items: center; }
.tcx-classique .tcx-label, .tcx-contour .tcx-label { font: 600 14px/1 "Segoe UI", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #c4b5fd; --ol: 0; }
.tcx-classique .tcx-name, .tcx-contour .tcx-name { font: 700 34px/1 "Segoe UI", system-ui, sans-serif; text-transform: none; color: #f5f3ff; --ol: 0; padding-top: 0; }
.tcx-classique .tcx-count, .tcx-contour .tcx-count { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0; }
.tcx :is(.tcx-label, .tcx-name, .tcx-count, .tcx-gname):not(.fx-rainbow) { text-shadow:
  var(--ol, 0) 0 0 var(--olc), calc(var(--ol, 0px) * -1) 0 0 var(--olc), 0 var(--ol, 0) 0 var(--olc), 0 calc(var(--ol, 0px) * -1) 0 var(--olc),
  var(--ol, 0) var(--ol, 0) 0 var(--olc), calc(var(--ol, 0px) * -1) var(--ol, 0) 0 var(--olc), var(--ol, 0) calc(var(--ol, 0px) * -1) 0 var(--olc), calc(var(--ol, 0px) * -1) calc(var(--ol, 0px) * -1) 0 var(--olc), 0 calc(var(--ol, 0px) * 1.8) 0 var(--olc); }
.tcx-classique .tcx-gift { filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.tcx-contour .tcx-label { color: #a5f3fc; }
.tcx-medal { width: 104px; height: 104px; border-radius: 50%; background: transparent; border: 2px solid #c4b5fd; display: grid; place-items: center; box-shadow: 0 0 16px rgba(196,181,253,.4); margin: 4px 0; }
.tcx-medal .tcx-gift { width: 68px; height: 68px; }
/* Manga */
.tcx-panel { position: relative; padding: 16px 30px 18px 16px; min-width: 300px; transform: none; border-radius: 22px; border: 1px solid rgba(196,181,253,.5);
  background: radial-gradient(circle at 0% 0%, #3b2768, #120c22 72%); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.tcx-panel::after { content: none; }
.tcx-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: -34px 0 12px -26px; }
.tcx-tag { display: inline-flex; align-items: center; background: rgba(196,181,253,.18); color: #f5f3ff; padding: 6px 12px; box-shadow: none; border: 1px solid rgba(196,181,253,.4); border-radius: 999px; }
.tcx-tag-l .tcx-label { font: 600 13px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tcx-tag-n { border-color: rgba(196,181,253,.4); }
.tcx-tag-n .tcx-name { font: 700 20px/1 "Segoe UI", system-ui, sans-serif; text-transform: none; }
.tcx-manga .tcx-av { width: 30px; height: 30px; border-width: 2px; }
.tcx-row { display: flex; align-items: center; gap: 16px; }
.tcx-frame { width: 120px; height: 120px; display: grid; place-items: center; background: #1a1333; border: 1px solid rgba(196,181,253,.55); border-radius: 24px; transform: none; box-shadow: inset 0 0 0 6px rgba(196,181,253,.12); }
.tcx-manga .tcx-gift { width: 80px; height: 80px; }
.tcx-side { display: flex; flex-direction: column; align-items: flex-start; }
.tcx-manga .tcx-gname { font: 600 16px/1 "Segoe UI", system-ui, sans-serif; text-transform: none; color: #f5d0fe; }
.tcx-manga .tcx-count { font: 700 40px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0; transform: none; }
/* Sticker */
.tcx-sticker { align-items: flex-start; gap: 10px; }
.tcx-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(196,181,253,.45); border-radius: 999px; padding: 7px 16px; box-shadow: none; position: relative; background: rgba(22,16,40,.92); }
.tcx-pill::before { content: none; }
.tcx-p-label { background: #2a2158; transform: none; }
.tcx-p-label .tcx-label { font: 600 13px/1 "Segoe UI", system-ui, sans-serif; text-transform: uppercase; color: #f5f3ff; }
.tcx-p-name { background: rgba(22,16,40,.92); margin-left: 6px; transform: none; }
.tcx-p-name::before { background: transparent; }
.tcx-p-name .tcx-name { font: 700 20px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; }
.tcx-sticker .tcx-row { gap: 34px; margin-top: 4px; }
.tcx-sticker .tcx-gift { width: 76px; height: 76px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); transform: none; }
.tcx-p-gift { background: rgba(196,181,253,.18); padding: 10px 20px; transform: none; }
.tcx-p-gift .tcx-gname { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #f5d0fe; }
.tcx-p-gift .tcx-count { font: 700 24px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0; }
.tcx-p-coins { background: #2a2158; transform: none; }
.tcx-p-coins .tcx-count { font: 700 16px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0; }
.tcx-sticker .tcx-av { width: 30px; height: 30px; border: 2px solid #1a1033; margin-right: 2px; }

/* =====================================================================  CARTE MEMBRE */
.cmx { position: relative; color: #f5f3ff; --accent: #c4b5fd; }
/* Fond personnalisé (2e couleur / opacité) : priorité sur le dégradé du skin. */
.member-card.has-custom-bg :is(.cmx, .ov-cm-card) { background: var(--card-bg-grad) !important; }
.cmx :is(.cmx-name) { white-space: nowrap; }
/* Passe lunaire — carte nuit, croissant, lignes fines (remplace l'ancienne carte à collectionner) */
.cmx-collection { width: 280px; padding: 16px 16px 14px; border-radius: 22px; overflow: hidden; color: #e8eefc;
  background:
    radial-gradient(circle at 88% 8%, rgba(186, 214, 255, .35), transparent 28%),
    linear-gradient(165deg, #1a2744 0%, #0c1224 55%, #15102a 100%);
  border: 1px solid rgba(214, 226, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 16px 36px rgba(0,0,0,.45);
  font-family: "Segoe UI", system-ui, sans-serif; }
.cmx-lune-mark { display: flex; align-items: center; gap: 8px; }
.cmx-lune-mark i { width: 18px; height: 18px; border-radius: 50%; background: #dbe7ff; box-shadow: inset -7px 0 0 #1a2744; }
.cmx-lune-mark span { font: 700 11px/1 "Segoe UI", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #c5d4f5; }
.cmx-lune-who { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
.cmx-collection .cmx-av { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #dbe7ff; background: #243256; font-size: 26px; box-shadow: 0 0 0 4px rgba(219,231,255,.12); }
.cmx-lune-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cmx-collection .cmx-name { font: 700 22px/1.1 "Segoe UI", system-ui, sans-serif; color: #f4f7ff; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.cmx-lune-id small { font: 700 12px/1 "Segoe UI", sans-serif; color: #9eb6e8; letter-spacing: .04em; }
.cmx-lune-rows { display: flex; flex-direction: column; gap: 6px; }
.cmx-lune-rows div { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(214,226,255,.16); }
.cmx-lune-rows span { flex: 1; font: 600 12px/1 "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8ea4d4; }
.cmx-lune-rows b { font: 700 18px/1 "Segoe UI", sans-serif; color: #f4f7ff; }
.cmx-lune-rows em { font: 700 11px/1 "Segoe UI", sans-serif; color: #0c1224; background: #dbe7ff; border-radius: 999px; padding: 3px 7px; }
.cmx-lune-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font: 600 11px/1 "Segoe UI", sans-serif; color: #8ea4d4; }
.cmx-lune-phases { display: flex; gap: 5px; }
.cmx-lune-phases i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #dbe7ff; }
.cmx-lune-phases i.on { background: #dbe7ff; }
.cmx-lr { font: 12px/1 "MT Luckiest", sans-serif; font-style: normal; color: #fff; background: #ec4f8a; border-radius: 999px; padding: 4px 9px 2px; }
/* commun Contour / Sticker */
.cmx-contour, .cmx-sticker { width: 240px; padding: 20px 20px 16px; border-radius: 22px; background: radial-gradient(circle at 50% 0%, #2a2158, #100e1c 70%); border: 1px solid rgba(196,181,253,.4); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f5f3ff; }
.cmx-avwrap { position: relative; width: 120px; height: 120px; margin-bottom: 4px; }
.cmx-avwrap .cmx-av { width: 120px; height: 120px; font-size: 52px; }
.cmx-rank { position: absolute; right: -16px; bottom: -6px; width: 62px; height: 62px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent, #c4b5fd); color: #1a1033; border: 0; box-shadow: none; }
.cmx-rank b, .cmx-rank small { color: #1a1033; }
.cmx-rank b { font: 26px/1 "MT Luckiest", sans-serif; }
.cmx-rank small { font: 7px/1 "MT Luckiest", sans-serif; text-transform: uppercase; }
.cmx-st { align-self: stretch; display: flex; align-items: center; gap: 8px; }
.cmx-st .cmx-lr { margin-left: auto; }
.cmx-l { text-transform: uppercase; }
.cmx-lives { text-transform: uppercase; }
/* Contour */
.cmx-contour { box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.cmx-contour .cmx-av { background: #241b45; border: 2px solid #c4b5fd; }
.cmx-contour .cmx-av b { font-family: "Segoe UI", system-ui, sans-serif; }
.cmx-contour .cmx-rank { background: #c4b5fd; color: #1a1033; border: 0; box-shadow: none; }
.cmx-contour .cmx-rank small { font-size: 6px; color: #1a1033; }
.cmx-contour .cmx-name { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; --ol: 0; padding-top: 0; }
.cmx-contour .cmx-v, .cmx-contour .cmx-lives b { font: 700 22px/1 "Segoe UI", system-ui, sans-serif; color: #fde68a; --ol: 0; padding-top: 0; }
.cmx-contour .cmx-l, .cmx-contour .cmx-lives { font: 600 12px/1 "Segoe UI", system-ui, sans-serif; color: #ddd6fe; }
.cmx-contour .cmx-lr { border: 0; box-shadow: none; background: #2a2158; color: #f5f3ff; }
.cmx-contour hr { align-self: stretch; border: 0; border-top: 1px solid rgba(196,181,253,.35); margin: 6px 0 2px; }
.cmx-contour .cmx-lives b { font-size: 22px; }
.cmx :is(.cmx-name, .cmx-v, .cmx-lives b):not(.fx-rainbow) { text-shadow:
  var(--ol, 0) 0 0 var(--olc), calc(var(--ol, 0px) * -1) 0 0 var(--olc), 0 var(--ol, 0) 0 var(--olc), 0 calc(var(--ol, 0px) * -1) 0 var(--olc),
  var(--ol, 0) var(--ol, 0) 0 var(--olc), calc(var(--ol, 0px) * -1) var(--ol, 0) 0 var(--olc), var(--ol, 0) calc(var(--ol, 0px) * -1) 0 var(--olc), calc(var(--ol, 0px) * -1) calc(var(--ol, 0px) * -1) 0 var(--olc), 0 calc(var(--ol, 0px) * 1.6) 0 var(--olc); }
/* Orbite — portrait dans un anneau, pastilles (remplace Manga Impact) */
.cmx-manga { width: 250px; padding: 18px 16px 16px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #eef2ff;
  background: radial-gradient(circle at 50% 0%, #2a2158, #100e1c 70%);
  border: 1px solid rgba(167, 139, 250, .45);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, .12), 0 18px 40px rgba(0,0,0,.45); }
.cmx-orbit { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-top: 4px; }
.cmx-orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(196, 181, 253, .7); box-shadow: 0 0 0 8px rgba(167,139,250,.12); }
.cmx-orbit-ring::after { content: ""; position: absolute; right: -3px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #c4b5fd; }
.cmx-manga .cmx-av { width: 78px; height: 78px; border-radius: 50%; border: 2px solid #c4b5fd; background: #241b45; font-size: 32px; }
.cmx-orbit-rank { position: absolute; right: -4px; bottom: 4px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: #c4b5fd; color: #1a1033; font: 700 13px/1 "Segoe UI", sans-serif; }
.cmx-manga .cmx-name { font: 700 20px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.cmx-orbit-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cmx-orbit-pills span { background: rgba(255,255,255,.08); border: 1px solid rgba(196,181,253,.35); border-radius: 999px; padding: 5px 10px; font: 600 12px/1 "Segoe UI", sans-serif; color: #ddd6fe; }
.cmx-orbit-pills b { font-weight: 700; color: #fff; margin-right: 4px; }
.cmx-manga .cmx-lives { margin-top: 2px; font: 600 12px/1 "Segoe UI", sans-serif; color: #c4b5fd; letter-spacing: .04em; text-transform: uppercase; }
.cmx-manga .cmx-lives b { font: 700 14px/1 "Segoe UI", sans-serif; color: #fff; margin-right: 4px; }
/* Sticker */
.cmx-sticker { box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.cmx-sticker .cmx-av { background: #2a2158; border: 2px solid #fde68a; box-shadow: none; }
.cmx-sticker .cmx-av b { font-family: "Segoe UI", system-ui, sans-serif; }
.cmx-sticker .cmx-rank { background: #fde68a; color: #1a1033; border: 0; box-shadow: none; }
.cmx-sticker .cmx-rank b { font-family: "Segoe UI", system-ui, sans-serif; color: #1a1033; }
.cmx-sticker .cmx-tag { background: rgba(196,181,253,.16); color: #f5f3ff; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(196,181,253,.4); box-shadow: none; }
.cmx-sticker .cmx-name { font: 700 20px/1 "Segoe UI", system-ui, sans-serif; color: #f5f3ff; }
.cmx-sticker .cmx-st { gap: 14px; }
.cmx-sticker .cmx-v { font: 700 18px/1 "Segoe UI", system-ui, sans-serif; color: #1a1033; background: #fde68a; border: 0; border-radius: 999px; padding: 6px 12px; box-shadow: none; }
.cmx-sticker .cmx-l { font: 600 12px/1 "Segoe UI", system-ui, sans-serif; color: #ddd6fe; }
.cmx-sticker .cmx-lr { border-radius: 999px; background: #2a2158; border: 0; box-shadow: none; color: #f5f3ff; }
.cmx-sticker .cmx-lives { font: 600 12px/1 "Segoe UI", system-ui, sans-serif; background: rgba(255,255,255,.06); color: #ddd6fe; border-radius: 999px; padding: 8px 14px; box-shadow: none; margin-top: 6px; }
.cmx-sticker .cmx-lives b { font: 700 14px/1 "Segoe UI", system-ui, sans-serif; color: #fff; }
.cmx.is-in { animation: cmxIn .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cmxIn { 0% { opacity: 0; scale: .6; } 100% { opacity: 1; scale: 1; } }

/* aperçus galerie : mise à l'échelle */
.fx-prev { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fx-prev > .fx-scale { flex: none; }
.fx-prev > .fx-scale { transform-origin: center; display: grid; place-items: center; transform: scale(var(--fxs, .8)); }
.ov-cat-preview .fx-prev-alert { --fxs: .62 !important; }
.ov-cat-preview .fx-prev-alert:has(.acx-manga, .acx-sticker) { --fxs: .5 !important; }
.ov-cat-preview .fx-prev-combo { --fxs: .62 !important; }
.ov-cat-preview .fx-prev-card { --fxs: .5 !important; }
.ov-cat-preview .fx-prev-card:has(.cmx-collection) { --fxs: .42 !important; }
.acx-pt.loop { animation: acxBoomLoop 2.4s cubic-bezier(.15,.7,.3,1) infinite; }
@keyframes acxBoomLoop {
  0% { transform: translate(0,0) scale(.2) rotate(0); opacity: 0; }
  6% { opacity: 1; }
  55% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(var(--rot)); opacity: 1; }
  75%, 100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(var(--rot)); opacity: 0; }
}

/* =====================================================================  BANDEAU DÉFILANT t164 */
.bdx {
  /* t170 — hauteur collée au texte (plus la typo utilisateur), petit padding */
  --h: max(30px, calc(var(--bdx-fs, 18px) + 14px));
  --accent: #ff2d55;
  --bdx-dur: 18s;
  --bdx-radius: 10px;
  --bdx-fs: 18px;
  --bdx-fc: #fff;
  --bdx-live-bg: var(--accent);
  --bdx-live-fg: #fff;
  --bdx-live-fs: max(12px, calc(var(--bdx-fs, 18px) * 0.85));
  display: flex;
  align-items: stretch;
  height: var(--h);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  font: 800 var(--bdx-fs, 20px)/1 "Segoe UI", system-ui, sans-serif;
  color: var(--bdx-fc, #fff);
  font-family: var(--bdx-ff, "Segoe UI", system-ui, sans-serif);
}
.bdx.is-upper, .bdx.is-upper .bdx-msg { text-transform: uppercase; }
.bdx-live {
  flex: none;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 14px;
  margin: 0;
  background: var(--bdx-live-bg, var(--accent));
  color: var(--bdx-live-fg, #fff);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 800 var(--bdx-live-fs, 12px)/1 "Segoe UI", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.bdx-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: bdxPulse 1.2s ease-in-out infinite;
  flex: none;
}
@keyframes bdxPulse { 50% { opacity: .35; } }
.bdx-track {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
}
.bdx-run {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: bdxRun var(--bdx-dur, 18s) linear infinite;
  will-change: transform;
  font-size: inherit;
  color: inherit;
}
.bdx.is-rev .bdx-run { animation-direction: reverse; }
.bdx.is-mid .bdx-run { animation-delay: calc(var(--bdx-dur, 18s) * -0.38); }
@keyframes bdxRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.bdx-run-half { display: inline-flex; align-items: center; flex: none; white-space: nowrap; }
.bdx-msg {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  color: inherit;
  font: inherit;
}
.bdx-hl { /* kept for old markup, no chip */ background: none; }
.bdx-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: .85em;
  opacity: .9;
  flex: none;
}
.bdx-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #c4b5fd);
  box-shadow: 0 0 8px var(--accent, #c4b5fd);
  display: inline-block;
}

/* Classique — plaque sombre, onglet d'accent en biais, texte qui défile */
.bdx-classique {
  background: #11121a;
  border-radius: var(--bdx-radius, 10px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.bdx-classique .bdx-live {
  background: var(--bdx-live-bg, var(--accent, #ff2d55));
  color: var(--bdx-live-fg, #fff);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
  margin-right: -6px;
}
.bdx-classique .bdx-live i { background: currentColor; }
.bdx-classique .bdx-msg { color: var(--bdx-fc, #fff); font-weight: 800; }
.bdx-classique .bdx-sep { color: var(--accent, #ff2d55); }

/* Chantier — ruban jaune, bandes hazard, sans rotation de toute la barre */
.bdx-chantier {
  /* t170b — 40px min, badge incrusté entre les bandes hazard */
  --h: max(40px, calc(var(--bdx-fs, 18px) + 24px));
  background: #ffd000;
  color: #111;
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  padding: 0;
  border-radius: 2px;
}
.bdx-chantier::before,
.bdx-chantier::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #111 0 16px, transparent 16px 26px);
}
.bdx-chantier::before { top: 2px; }
.bdx-chantier::after { bottom: 2px; }
.bdx-chantier .bdx-live {
  align-self: stretch;
  background: #111;
  color: #ffd000;
  /* 2px filet + 6px bande + 2px d'air de chaque côté */
  margin: 10px 0 10px 10px;
  border-radius: 2px;
  letter-spacing: .1em;
  padding: 0 12px 0 10px;
}
.bdx-chantier .bdx-live i { background: #ffd000; animation: none; }
.bdx-chantier .bdx-msg,
.bdx-chantier .bdx-sep {
  font: 700 var(--bdx-fs, 24px)/1 "MT Bangers", Impact, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111;
}
.bdx-chantier .bdx-sep { color: #111; }

/* Sport — dégradé violet, capitales italiques, badge clair. Pas de skew sur toute la barre. */
.bdx-sport {
  background: linear-gradient(90deg, #5b21d6, #7c3aed 55%, #5b21d6);
  box-shadow: 0 6px 16px rgba(91,33,214,.4);
  border-radius: 2px;
}
.bdx-sport::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 4px, transparent 4px 10px);
}
.bdx-sport .bdx-live {
  background: linear-gradient(#fff, #e5e7eb);
  color: #3f3f46;
  padding: 0 18px;
  transform: skewX(-10deg);
  margin: 0 10px 0 8px;
}
.bdx-sport .bdx-live i { display: none; }
.bdx-sport .bdx-msg,
.bdx-sport .bdx-sep {
  font: italic 900 var(--bdx-fs, 21px)/1 "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
}
.bdx-sport .bdx-sep { opacity: .85; }

/* Contour — barre visible, Luckiest Guy à gros liseré, badge net */
.bdx-contour {
  background: rgba(8, 8, 16, .78);
  border: 2px solid #fff;
  box-shadow: 4px 4px 0 #0b0b12, 0 0 0 1px #0b0b12;
  border-radius: 4px;
}
.bdx-contour .bdx-live {
  background: transparent;
  color: #fff;
  border-right: 3px solid #ffc21a;
  font-size: max(12px, calc(var(--bdx-fs, 18px) * 0.9));
  text-shadow:
    1.4px 0 0 #0b0b12, -1.4px 0 0 #0b0b12, 0 1.4px 0 #0b0b12, 0 -1.4px 0 #0b0b12,
    1.4px 1.4px 0 #0b0b12, -1.4px 1.4px 0 #0b0b12, 1.4px -1.4px 0 #0b0b12, -1.4px -1.4px 0 #0b0b12;
  font-family: "MT Luckiest", "Luckiest Guy", sans-serif;
  letter-spacing: .06em;
  padding-top: 1px;
}
.bdx-contour .bdx-live i { background: #ffc21a; box-shadow: 0 0 0 2px #0b0b12; animation: none; }
.bdx-contour .bdx-msg {
  font: 400 var(--bdx-fs, 26px)/1 "MT Luckiest", "Luckiest Guy", sans-serif;
  color: #fff;
  padding-top: 4px;
  -webkit-text-stroke: 0;
  text-shadow:
    2.4px 0 0 #0b0b12, -2.4px 0 0 #0b0b12, 0 2.4px 0 #0b0b12, 0 -2.4px 0 #0b0b12,
    2.4px 2.4px 0 #0b0b12, -2.4px 2.4px 0 #0b0b12, 2.4px -2.4px 0 #0b0b12, -2.4px -2.4px 0 #0b0b12,
    0 4px 0 #0b0b12;
}
.bdx-contour .bdx-sep { color: #ffc21a; font-size: 22px; text-shadow: 0 2px 0 #0b0b12; }

/* Nébuleuse — papier tramé, encre, Bangers */
.bdx-manga {
  --h: max(34px, calc(var(--bdx-fs, 18px) + 16px));
  background-color: #fbfaf6;
  background-image: radial-gradient(circle, rgba(0,0,0,.16) 1.1px, transparent 1.5px);
  background-size: 6px 6px;
  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;
  color: #111;
  padding: 0 4px;
}
.bdx-manga .bdx-live {
  background: #e11d2e;
  color: #fff;
  transform: skewX(-6deg);
  box-shadow: 3px 3px 0 #111;
  margin: 4px 8px 4px 4px;
  border-radius: 2px;
}
.bdx-manga .bdx-live i { background: #fff; }
.bdx-manga .bdx-msg,
.bdx-manga .bdx-sep {
  font: italic 700 var(--bdx-fs, 24px)/1 "MT Bangers", Impact, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #111;
}
.bdx-manga .bdx-sep { color: #e11d2e; }

/* Sticker — pastille blanche pleine largeur, Lilita, cyan / rose */
.bdx-sticker {
  --h: max(32px, calc(var(--bdx-fs, 18px) + 14px));
  background: #fff;
  border-radius: 999px;
  border: 3px solid #d7d7de;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.28);
  padding: 0 6px;
  color: #ff2d55;
}
.bdx-sticker .bdx-live {
  background: #2ee6f0;
  color: #10233a;
  border-radius: 999px;
  margin: 4px 6px 4px 2px;
  letter-spacing: .08em;
}
.bdx-sticker .bdx-live i { background: #10233a; animation: none; }
.bdx-sticker .bdx-msg,
.bdx-sticker .bdx-sep {
  font: 400 var(--bdx-fs, 22px)/1 "MT Lilita", "Lilita One", sans-serif;
  color: #ff2d55;
}
.bdx-sticker .bdx-sep { color: #2ee6f0; }

/* Pixel — un seul cadre 8-bit, badge et piste collés */
.bdx-pixel {
  gap: 0;
  background: #1c1838;
  color: #fff;
  box-shadow:
    0 -3px 0 #3a3470, 0 3px 0 #0b0920,
    3px 0 0 #3a3470, -3px 0 0 #3a3470,
    0 0 0 3px #0b0920;
  border-radius: 0;
}
.bdx-pixel .bdx-live {
  background: var(--accent, #ff2d55);
  color: #fff;
  font: 400 max(10px, calc(var(--bdx-fs, 18px) * 0.7))/1 "MT Pixel", "Press Start 2P", monospace;
  letter-spacing: 0;
  padding: 0 12px;
  box-shadow: inset 0 0 0 3px #a3123a;
  margin: 0;
}
.bdx-pixel .bdx-live i { display: none; }
.bdx-pixel .bdx-track { background: transparent; }
.bdx-pixel .bdx-msg,
.bdx-pixel .bdx-sep {
  font: 400 var(--bdx-fs, 13px)/1 "MT Pixel", "Press Start 2P", monospace;
  color: #fff;
  padding: 0 2px;
}
.bdx-pixel .bdx-sep { color: var(--accent, #ff2d55); }
.bdx-pixel .bdx-run { animation-timing-function: steps(180, end); }

/* Séléné — barre de nuit, croissant, filet lilas */
.bdx-selene {
  --h: max(32px, calc(var(--bdx-fs, 18px) + 16px));
  align-items: stretch;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(26,16,51,.96), rgba(12,10,28,.96));
  border: 1px solid color-mix(in srgb, #c4b5fd 55%, transparent);
  box-shadow: 0 0 18px rgba(196,181,253,.35), inset 0 1px 0 rgba(255,255,255,.16);
  color: #e9d5ff;
}
.bdx-selene .bdx-live {
  color: #fde68a;
  background: transparent;
  border-right: 1px solid rgba(196,181,253,.35);
  padding: 0 14px 0 8px;
  letter-spacing: .1em;
  font-size: max(12px, calc(var(--bdx-fs, 18px) * 0.85));
}
.bdx-selene .bdx-live i {
  width: 1.15em; height: 1.15em; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff7d6, #fde68a 42%, transparent 43%),
    radial-gradient(circle at 62% 48%, transparent 38%, #1a1033 40%);
  box-shadow: 0 0 10px #fde68a;
  animation: none;
}
.bdx-selene .bdx-msg,
.bdx-selene .bdx-sep {
  font: 400 var(--bdx-fs, 18px)/1 "MT Luckiest", "Luckiest Guy", sans-serif;
  color: #e9d5ff;
  text-shadow: 0 2px 0 #1a1033, 0 0 10px #c4b5fd;
  padding-top: 2px;
}
.bdx-selene .bdx-sep { color: #fde68a; }

/* ---------- Thumbs picker / galerie : barre ~90 % de la tuile, texte entier, figé ---------- */
.ov-des-live.ov-des-bd,
.ov-des-bd,
.ov-prev-bandeau,
.ov-cat-preview:has(.fx-prev-ticker),
.ov-des-card:has(.fx-prev-ticker) .ov-des-live {
  position: relative;
  display: block;
  width: 100%;
  height: 78px;
  box-sizing: border-box;
  background: transparent;
}
.ov-des-bar:has(.ov-des-bd) .ov-des-card,
#ovScoreSkinBar:has(.ov-des-bd) .ov-des-card {
  width: min(260px, 100%);
  min-width: 200px;
  min-height: 128px;
}
.ov-cat-preview .fx-prev-ticker,
.ov-des-card .fx-prev-ticker,
.ov-des-live .fx-prev-ticker,
.ov-des-bd .fx-prev-ticker,
.ov-prev-bandeau .fx-prev-ticker {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --fxs: 1 !important;
}
.ov-cat-preview .fx-prev-ticker > .fx-scale,
.ov-des-card .fx-prev-ticker > .fx-scale,
.ov-des-live .fx-prev-ticker > .fx-scale,
.ov-des-bd .fx-prev-ticker > .fx-scale,
.ov-des-live .fx-scale,
.ov-des-bd .fx-scale,
.ov-prev-bandeau .fx-scale,
.ov-prev-bandeau .fx-prev-ticker > .fx-scale {
  position: relative !important;
  inset: auto !important;
  width: 90% !important;
  max-width: 90% !important;
  flex: none !important;
  display: block !important;
  transform: none !important;
}
.ov-cat-preview .bdx,
.ov-des-card .bdx,
.ov-des-live .bdx,
.ov-des-bd .bdx,
.ov-prev-bandeau .bdx,
.bdx.is-frozen {
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--h);
  height: var(--h);
  margin: 0 auto;
  transform: none !important; /* pas de rotate / skew en tuile */
  box-sizing: border-box;
}
.ov-cat-preview .bdx-run,
.ov-des-card .bdx-run,
.ov-des-live .bdx-run,
.ov-des-bd .bdx-run,
.ov-prev-bandeau .bdx-run,
.bdx.is-frozen .bdx-run {
  animation: none !important;
  transform: none !important;
  width: auto;
  max-width: 100%;
}
.ov-cat-preview .bdx-track,
.ov-des-card .bdx-track,
.ov-des-bd .bdx-track,
.ov-des-live .bdx-track,
.ov-prev-bandeau .bdx-track,
.bdx.is-frozen .bdx-track {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
}
.ov-cat-preview .bdx-msg,
.ov-des-card .bdx-msg,
.ov-des-bd .bdx-msg,
.ov-des-live .bdx-msg,
.ov-prev-bandeau .bdx-msg,
.bdx.is-frozen .bdx-msg,
.ov-cat-preview .bdx-hl,
.ov-des-card .bdx-hl,
.ov-des-bd .bdx-hl {
  white-space: nowrap !important;
  max-width: none;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}
/* typo compacte pour que « Merci Léa ! » tienne à côté du badge */
.ov-cat-preview .bdx,
.ov-des-card .bdx,
.ov-des-bd .bdx,
.ov-des-live .bdx,
.ov-prev-bandeau .bdx {
  --bdx-fs: 14px;
  --h: 48px;
  font-size: 14px;
}
.ov-cat-preview .bdx-live,
.ov-des-card .bdx-live,
.ov-des-bd .bdx-live,
.ov-prev-bandeau .bdx-live {
  font-size: 10px !important;
  padding-left: 10px;
  padding-right: 12px;
  letter-spacing: .08em;
}
.ov-cat-preview .bdx :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-des-card .bdx :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-des-bd .bdx :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-des-live .bdx :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-prev-bandeau .bdx :is(.bdx-msg, .bdx-hl, .bdx-sep) {
  font-size: 14px !important;
  padding-top: 0;
}
.ov-cat-preview .bdx-pixel :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-des-card .bdx-pixel :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-des-bd .bdx-pixel :is(.bdx-msg, .bdx-hl, .bdx-sep),
.ov-prev-bandeau .bdx-pixel :is(.bdx-msg, .bdx-hl, .bdx-sep) {
  font-size: 9px !important;
}

.ov-cat-preview .bdx-sport .bdx-live,
.ov-des-card .bdx-sport .bdx-live,
.ov-des-bd .bdx-sport .bdx-live,
.ov-des-live .bdx-sport .bdx-live,
.ov-prev-bandeau .bdx-sport .bdx-live,
.ov-cat-preview .bdx-manga .bdx-live,
.ov-des-card .bdx-manga .bdx-live,
.ov-des-bd .bdx-manga .bdx-live,
.ov-prev-bandeau .bdx-manga .bdx-live { transform: none !important; margin-top: 0; margin-bottom: 0; }
.ov-cat-preview .bdx-contour .bdx-msg,
.ov-des-bd .bdx-contour .bdx-msg,
.ov-prev-bandeau .bdx-contour .bdx-msg {
  text-shadow:
    1.6px 0 0 #0b0b12, -1.6px 0 0 #0b0b12, 0 1.6px 0 #0b0b12, 0 -1.6px 0 #0b0b12,
    1.6px 1.6px 0 #0b0b12, -1.6px 1.6px 0 #0b0b12, 1.6px -1.6px 0 #0b0b12, -1.6px -1.6px 0 #0b0b12;
}
.ov-cat-preview .bdx-sep:not(:first-child),
.ov-des-bd .bdx.is-frozen .bdx-run-half .bdx-sep:last-child,
.ov-prev-bandeau .bdx.is-frozen .bdx-run-half .bdx-sep:last-child,
.bdx.is-frozen .bdx-run-half > .bdx-sep:last-child {
  display: none; /* pas de séparateur orphelin après le texte court */
}

/* Aperçu éditeur (#ovPersoLivePreview) : vrai ticker, barre pleine largeur, ça défile */
#ovPersoLivePreview .ov-bd-editor,
#ovPersoLivePreview .ov-bd-live,
.ov-bd-editor {
  width: 100% !important;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 8px 4px;
  background: none !important;
  position: relative;
}
#ovPersoLivePreview .bdx,
.ov-bd-editor .bdx {
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
}
#ovPersoLivePreview .bdx-run,
.ov-bd-editor .bdx-run {
  animation: bdxRun var(--bdx-dur, 18s) linear infinite !important;
}


.acx-sticker .acx-hero { position: relative; }
.acx-trail { position: absolute; left: 70%; top: 20%; display: flex; pointer-events: none; z-index: 0; }
.acx-trail img { width: 28px; height: 28px; object-fit: contain; opacity: calc(0.7 - var(--i) * 0.15); transform: translate(calc(var(--i) * 16px), calc(var(--i) * 10px)) rotate(-12deg); filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }

.ov-cat-preview .ov-fx-burst, .ov-des-card .ov-fx-burst { transform: scale(.88); transform-origin: center; }


/* t348a — vignettes bandeau : moins de bande noire, barre centrée. */
.ov-cat-card.ov-skin-card:has(.fx-prev-ticker),
.ov-cat-card.ov-skin-card:has(.ov-prev-bandeau),
.ov-cat-card.ov-skin-card:has(.bdx) {
  min-height: 0 !important;
}
.ov-skin-card:has(.fx-prev-ticker) .ov-cat-preview,
.ov-skin-card:has(.ov-prev-bandeau) .ov-cat-preview,
.ov-cat-preview:has(.fx-prev-ticker),
.ov-cat-preview:has(.ov-prev-bandeau),
.ov-cat-preview:has(> .bdx),
.ov-des-shot.ov-cat-preview:has(.fx-prev-ticker),
.ov-des-shot.ov-cat-preview:has(.bdx),
.ov-prev-bandeau,
.ov-des-live.ov-des-bd,
.ov-des-card:has(.fx-prev-ticker) .ov-des-live {
  aspect-ratio: auto !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 80px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ov-des-bar:has(.ov-des-bd) .ov-des-card,
#ovScoreSkinBar:has(.ov-des-bd) .ov-des-card,
#ovScoreSkinBar:has(.fx-prev-ticker) .ov-des-card {
  min-height: 0 !important;
  min-width: 180px;
}

/* t348a — aperçu éditeur : bandeau centré dans le cadre, pas collé en haut. */
#ovPersoLivePreview:has(.ov-bd-editor),
#ovPersoLivePreview:has(.ov-bd-live) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#ovPersoLivePreview .ov-bd-editor,
#ovPersoLivePreview .ov-bd-live {
  width: 94% !important;
  max-width: 94% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  align-self: center;
  position: relative !important;
  inset: auto !important;
}
#ovPersoLivePreview:has(.ov-bd-editor) .mt-fit-inner,
#ovPersoLivePreview:has(.ov-bd-live) .mt-fit-inner {
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  left: auto !important;
  top: auto !important;
  position: relative !important;
}
