/* MoonTik — MOON ROYALE : arène lunaire. Identité volontairement distincte
   (cyan / magenta / violet, formes angulaires, vocabulaire FR, gem lunaire). */
@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"); }

.mr-root {
  --cyan: #4de8ff;
  --magenta: #ff4fa3;
  --violet: #8b5cf6;
  --ink: #07091c;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  padding: 18px 22px 20px;
  color: #f2f6ff;
  font-family: "MT Lilita", "Segoe UI", sans-serif;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: 4px;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 99%, transparent),
    radial-gradient(1px 1px at 78% 12%, #b9e8ff 99%, transparent),
    radial-gradient(1px 1px at 42% 72%, #fff 99%, transparent),
    radial-gradient(1px 1px at 91% 63%, #ffd9f0 99%, transparent),
    radial-gradient(1px 1px at 27% 88%, #fff 99%, transparent),
    radial-gradient(circle at 82% -10%, rgba(139, 92, 246, .32), transparent 55%),
    radial-gradient(circle at 8% 110%, rgba(77, 232, 255, .16), transparent 50%),
    linear-gradient(155deg, #0d1030 0%, var(--ink) 55%, #150b2e 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .5), 0 24px 70px rgba(0, 0, 0, .6);
}
.mr-root * { box-sizing: border-box; }

/* ── en-tête ─────────────────────────────────────────────────────── */
.mr-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mr-brand { display: flex; align-items: center; gap: 10px; }
.mr-crescent {
  width: clamp(22px, 2.6vw, 36px); height: clamp(22px, 2.6vw, 36px); flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(77, 232, 255, .65));
}
.mr-logo {
  font: 800 clamp(22px, 3vw, 40px)/1 "MT Lilita", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--cyan) 5%, #fff 48%, var(--magenta) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(77, 232, 255, .18);
  white-space: nowrap;
}
.mr-sub {
  display: block;
  margin-top: 3px;
  font: 700 clamp(8px, .85vw, 11px)/1 "MT Lilita", sans-serif;
  letter-spacing: .42em;
  color: #9aa8d8;
}
.mr-round {
  flex: 0 0 auto;
  background: linear-gradient(120deg, rgba(77, 232, 255, .22), rgba(139, 92, 246, .28));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font: 800 clamp(11px, 1.15vw, 15px)/1 "MT Lilita", sans-serif;
  letter-spacing: .16em;
  padding: 9px 16px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 18px rgba(77, 232, 255, .2);
  text-transform: uppercase;
}
.mr-head-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.mr-timer {
  font: 800 clamp(20px, 2.6vw, 36px)/1 ui-monospace, "Consolas", monospace;
  letter-spacing: .06em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(77, 232, 255, .45);
}
.mr-timer.is-danger {
  color: var(--magenta);
  text-shadow: 0 0 22px rgba(255, 79, 163, .8);
  animation: mrPulse .7s ease-in-out infinite alternate;
}
@keyframes mrPulse { to { opacity: .55; } }
.mr-alive {
  font: 800 clamp(12px, 1.4vw, 18px)/1 "MT Lilita", sans-serif;
  letter-spacing: .1em;
  color: #cbd5f5;
  text-transform: uppercase;
  white-space: nowrap;
}
.mr-alive b { color: #fff; font-size: 1.25em; }

/* ── tableau ─────────────────────────────────────────────────────── */
.mr-board { position: relative; padding-left: 2px; }
.mr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(38px, 5.4vh, 56px);
  padding: 6px 22px 6px 14px;
  margin-bottom: 7px;
  position: relative;
  background: linear-gradient(90deg, rgba(30, 41, 82, .75), rgba(16, 17, 48, .45));
  border-left: 3px solid rgba(148, 163, 214, .35);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}
.mr-row::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 60%, rgba(77, 232, 255, .04));
}
.mr-rank {
  flex: 0 0 28px;
  text-align: center;
  font: 800 clamp(14px, 1.5vw, 19px)/1 ui-monospace, "Consolas", monospace;
  color: #8fa0d0;
}
.mr-avatar {
  flex: 0 0 clamp(28px, 3.4vw, 40px);
  width: clamp(28px, 3.4vw, 40px); height: clamp(28px, 3.4vw, 40px);
  display: grid; place-items: center;
  border-radius: 6px;             /* carré arrondi, pas un cercle */
  transform: rotate(-4deg);
  overflow: hidden;
  font: 800 clamp(10px, 1.05vw, 13px)/1 "MT Lilita", sans-serif;
  color: #060a18;
  box-shadow: 0 0 12px rgba(0, 0, 0, .45);
}
.mr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mr-name {
  font: 800 clamp(14px, 1.65vw, 21px)/1 "MT Lilita", sans-serif;
  letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mr-score {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  font: 800 clamp(15px, 1.8vw, 23px)/1 ui-monospace, "Consolas", monospace;
  color: #fff;
  white-space: nowrap;
}
.mr-gem { width: clamp(18px, 2vw, 26px); height: clamp(18px, 2vw, 26px); flex: 0 0 auto; }
.mr-gem.is-dim { opacity: .4; filter: grayscale(.7); }

/* 1re place : cyan + couronne (pas d'or) */
.mr-row--top {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(77, 232, 255, .2), rgba(30, 20, 70, .55));
  box-shadow: inset 0 0 22px rgba(77, 232, 255, .1), 0 0 20px rgba(77, 232, 255, .16);
}
.mr-row--top .mr-rank, .mr-row--top .mr-score { color: var(--cyan); }
.mr-crown { margin-right: 4px; font-size: .9em; }

/* zone menacée : magenta */
.mr-row--risk {
  border-left-color: var(--magenta);
  background: linear-gradient(90deg, rgba(255, 79, 163, .22), rgba(45, 10, 50, .5));
  box-shadow: inset 0 0 22px rgba(255, 79, 163, .12);
}
.mr-row--risk .mr-rank { color: #ffd0e6; }

/* éliminés */
.mr-row--out {
  border-left-color: rgba(148, 163, 214, .25);
  background: rgba(16, 17, 48, .38);
  opacity: .5;
}
.mr-row--out .mr-name { text-decoration: line-through; text-decoration-color: var(--magenta); }
.mr-row--out .mr-score, .mr-row--out .mr-rank { color: #7c88b8; }

.mr-stay {
  margin-left: auto; margin-right: 12px;
  background: rgba(77, 232, 255, .14);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font: 800 clamp(10px, 1.05vw, 14px)/1 "MT Lilita", sans-serif;
  letter-spacing: .06em;
  padding: 7px 11px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  white-space: nowrap;
  text-transform: uppercase;
}
.mr-ko {
  margin-left: auto; margin-right: 12px;
  border: 1px solid rgba(255, 79, 163, .6);
  color: #ffc4e0;
  font: 800 clamp(10px, 1.05vw, 14px)/1 "MT Lilita", sans-serif;
  letter-spacing: .12em;
  padding: 7px 11px;
  background: rgba(255, 79, 163, .16);
}
.mr-more {
  text-align: center;
  color: #7f8dc4;
  font: 800 clamp(11px, 1.1vw, 14px)/1 "MT Lilita", sans-serif;
  letter-spacing: .32em;
  padding: 4px 0 6px;
}

/* ── faille d'élimination ────────────────────────────────────────── */
.mr-rift {
  position: relative;
  height: 0;
  margin: 14px 0 12px;
  border-top: 2px dashed var(--magenta);
  filter: drop-shadow(0 0 8px rgba(255, 79, 163, .6));
  display: flex; justify-content: center;
}
.mr-rift-label {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: linear-gradient(100deg, #3a0d33, #70184e, #3a0d33);
  border: 1px solid var(--magenta);
  color: #ffd9ec;
  font: 800 clamp(10px, 1.05vw, 14px)/1 "MT Lilita", sans-serif;
  letter-spacing: .14em;
  padding: 7px 18px;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── bandeaux ────────────────────────────────────────────────────── */
.mr-recap {
  margin-top: 13px;
  padding: 12px 16px;
  text-align: center;
  background: linear-gradient(90deg, rgba(112, 24, 78, .25), rgba(255, 79, 163, .12), rgba(112, 24, 78, .25));
  border-top: 1px solid rgba(255, 79, 163, .5);
  border-bottom: 1px solid rgba(255, 79, 163, .5);
}
.mr-recap-main { font: 800 clamp(14px, 1.7vw, 21px)/1.3 "MT Lilita", sans-serif; }
.mr-recap-main b { color: var(--magenta); }
.mr-recap-out { margin-top: 4px; color: #b9c4ea; font-size: clamp(11px, 1.15vw, 14px); letter-spacing: .1em; }
.mr-winner {
  margin-top: 12px; padding: 14px; text-align: center;
  border: 1px solid var(--cyan);
  background: linear-gradient(90deg, rgba(77, 232, 255, .08), rgba(77, 232, 255, .2), rgba(77, 232, 255, .08));
  color: var(--cyan);
  font: 800 clamp(19px, 2.5vw, 33px)/1 "MT Lilita", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mr-idle { padding: 26px 10px; text-align: center; color: #8f9ccc; font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .08em; }

/* ── panneau ─────────────────────────────────────────────────────── */
.mr-panel { max-width: 1180px; margin: 0 auto; padding: 18px; color: #dbe3ff; font-family: "Segoe UI", sans-serif; }
.mr-panel .mr-logo { font-size: 26px; }
.mr-topbar { display: flex; align-items: center; gap: 14px; padding: 16px 18px 0; max-width: 1180px; margin: 0 auto; }
.mr-panel h2 { font-size: 15px; letter-spacing: .1em; margin: 0 0 12px; color: var(--cyan); text-transform: uppercase; }
.mr-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.mr-card { background: #0e1130; border: 1px solid rgba(139, 92, 246, .4); border-radius: 4px; padding: 16px; }
.mr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.mr-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #93a0d0; }
.mr-field input, .mr-field select {
  background: #080a1c; color: #fff; border: 1px solid #394170;
  border-radius: 3px; padding: 8px 10px; font: 600 13px "Segoe UI", sans-serif; width: 100%;
}
.mr-field input:focus { outline: 1px solid var(--cyan); }
.mr-check { flex-direction: row; align-items: center; gap: 8px; }
.mr-check input { width: auto; }
.mr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mr-btn {
  border: 1px solid #4a5591; background: #171c48; color: #fff;
  border-radius: 3px; padding: 9px 13px; font: 700 13px "Segoe UI", sans-serif; cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.mr-btn:hover { border-color: var(--cyan); }
.mr-btn--primary { background: linear-gradient(100deg, #0e6b86, #156f9e); border-color: var(--cyan); }
.mr-btn--danger { background: #5c143f; border-color: var(--magenta); }
.mr-preview { width: 100%; height: 340px; border: 1px solid #394170; background: #080a1c; }
.mr-status { margin-top: 10px; font-size: 13px; color: #93a0d0; }
.mr-status b { color: var(--cyan); }
.mr-link { display: flex; gap: 8px; margin-top: 10px; }
.mr-link input { flex: 1; background: #080a1c; color: #fff; border: 1px solid #394170; border-radius: 3px; padding: 8px 10px; font: 12px monospace; }
.mr-back { display: inline-block; margin-top: 16px; color: #cfe8ff; text-decoration: none; font: 700 12px "Segoe UI", sans-serif; border-bottom: 1px solid var(--cyan); padding-bottom: 2px; }
.mr-back:hover { color: var(--cyan); }
@media (max-width: 860px) { .mr-grid { grid-template-columns: 1fr; } }

/* ── t392u : variantes de style Moon Royale ─────────────────────────
   Le rendu sans attribut, ou data-mr-style="survivor", reprend
   STRICTEMENT les règles ci-dessus (arène actuelle). Les autres
   styles n'ajoutent que des surcharges. Aucune nouvelle police. */

/* sélecteur du panneau */
.mr-style-hint { margin: 0 0 12px; font: 400 12px/1.45 "Segoe UI", sans-serif; color: #93a0d0; }
.mr-style-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .mr-style-grid { grid-template-columns: 1fr 1fr; } }
.mr-style-card {
  cursor: pointer; border: 1px solid #394170; border-radius: 8px;
  overflow: hidden; background: #080a1c; color: #dbe3ff; padding: 0;
  text-align: left; font: 700 11px/1.3 "Segoe UI", sans-serif;
}
.mr-style-card:hover { border-color: #6b7ad0; }
.mr-style-card.is-on { border-color: #4de8ff; box-shadow: 0 0 0 1px #4de8ff, 0 0 16px rgba(77,232,255,.25); }
.mr-style-frame { height: 128px; overflow: hidden; pointer-events: none; background: #05061a; }
.mr-style-frame .mr-root.mr-mini {
  transform: scale(.36); transform-origin: top left;
  width: 278%; min-height: 360px; padding: 12px 14px 16px;
}
.mr-style-name { padding: 8px 9px 9px; letter-spacing: .02em; }
.mr-style-card.is-on .mr-style-name { color: #4de8ff; }

/* particules d'élimination (communes) */
.mr-burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 4; }
.mr-burst i {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0;
  transform: translate(-50%, -50%);
  animation: mrBurst 800ms ease-out forwards;
  animation-delay: calc(var(--i, 0) * 18ms);
}
@keyframes mrBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 70px), calc(-50% + var(--dy) * 42px)) scale(.2); }
}

/* ═══════════════ 1. MoonTik — verre, lune, violet → cyan ═══════════════ */
.mr-root[data-mr-style="moontik"] {
  --cyan: #5eead4; --magenta: #c4b5fd; --violet: #8b5cf6;
  border: 1px solid rgba(196, 181, 253, .45);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(94, 234, 212, .2), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(139, 92, 246, .32), transparent 46%),
    linear-gradient(160deg, rgba(22, 18, 48, .82), rgba(8, 10, 28, .88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px rgba(8, 6, 28, .55);
}
.mr-root[data-mr-style="moontik"] .mr-logo {
  background: linear-gradient(100deg, #c4b5fd 0%, #fff 48%, #5eead4 100%);
  -webkit-background-clip: text; background-clip: text;
  letter-spacing: .12em;
}
.mr-root[data-mr-style="moontik"] .mr-round {
  clip-path: none; border-radius: 999px;
  background: rgba(196, 181, 253, .16);
  border: 1px solid rgba(94, 234, 212, .45);
  color: #e0fdfa;
  box-shadow: 0 0 18px rgba(94, 234, 212, .2);
}
.mr-root[data-mr-style="moontik"] .mr-row {
  clip-path: none; border-left: 0;
  border-radius: 14px;
  margin-bottom: 5px;
  min-height: clamp(32px, 4.6vh, 48px);
  padding: 5px 18px 5px 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(139, 92, 246, .12));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.mr-root[data-mr-style="moontik"] .mr-row::after { background: none; }
.mr-root[data-mr-style="moontik"] .mr-avatar {
  border-radius: 50%; transform: none;
  box-shadow: 0 0 0 2px rgba(196, 181, 253, .45), 0 0 14px rgba(94, 234, 212, .3);
}
.mr-root[data-mr-style="moontik"] .mr-row--top {
  background: linear-gradient(90deg, rgba(196, 181, 253, .28), rgba(94, 234, 212, .16));
  border-color: rgba(94, 234, 212, .45);
  box-shadow: 0 0 22px rgba(94, 234, 212, .18);
}
.mr-root[data-mr-style="moontik"] .mr-row--risk {
  background: linear-gradient(90deg, rgba(167, 139, 250, .22), rgba(14, 12, 40, .4));
  border-color: rgba(196, 181, 253, .4);
}
.mr-root[data-mr-style="moontik"] .mr-row--out {
  background: rgba(16, 14, 36, .35);
  border-color: rgba(255,255,255,.06);
  opacity: 1; filter: saturate(.6);
}
.mr-root[data-mr-style="moontik"] .mr-stay,
.mr-root[data-mr-style="moontik"] .mr-ko,
.mr-root[data-mr-style="moontik"] .mr-rift-label {
  clip-path: none; border-radius: 999px;
}
.mr-root[data-mr-style="moontik"] .mr-rift {
  border-top: 0; height: auto; margin: 10px 0 8px;
  display: flex; justify-content: center;
}
.mr-root[data-mr-style="moontik"] .mr-rift::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, #c4b5fd, #5eead4, transparent);
}
.mr-root[data-mr-style="moontik"] .mr-rift-label {
  position: relative; transform: none; top: auto;
  background: rgba(18, 14, 40, .85);
  border: 1px solid rgba(196, 181, 253, .45);
  color: #ede9fe;
}
.mr-root[data-mr-style="moontik"] .mr-recap,
.mr-root[data-mr-style="moontik"] .mr-winner {
  border-radius: 16px; border: 1px solid rgba(196, 181, 253, .3);
  background: rgba(255,255,255,.06);
  margin-top: 8px; padding: 8px 14px;
}
.mr-root[data-mr-style="moontik"] .mr-row--out.mr-elim-in {
  animation: mrMtFade 1.1s ease forwards;
}
@keyframes mrMtFade {
  0% { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); }
  100% { opacity: .55; filter: blur(1px) saturate(.55); transform: scale(.98); }
}
.mr-root[data-mr-style="moontik"] .mr-burst i {
  background: radial-gradient(circle, #fff, #5eead4);
  box-shadow: 0 0 8px #5eead4;
}

/* ═══════════════ 2. Survivor = rendu actuel (aucune surcharge) ═══════════════ */
.mr-root[data-mr-style="survivor"] .mr-row--out.mr-elim-in {
  animation: mrSurvFade .7s ease forwards;
}
@keyframes mrSurvFade { from { opacity: 1; } to { opacity: .5; } }

/* ═══════════════ 3. Arcade néon ═══════════════ */
.mr-root[data-mr-style="arcade"] {
  --cyan: #39ff14; --magenta: #ff2bd6; --violet: #00f0ff;
  border: 3px solid #00f0ff;
  border-radius: 6px;
  background:
    linear-gradient(rgba(0, 240, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, .05) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #2a0050, #05010a 70%);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: inset 0 0 40px rgba(0, 240, 255, .15), 0 0 24px rgba(255, 43, 214, .25);
  font-family: ui-monospace, "Consolas", monospace;
}
.mr-root[data-mr-style="arcade"]::before {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
  z-index: 5; mix-blend-mode: multiply;
}
.mr-root[data-mr-style="arcade"] { position: relative; }
.mr-root[data-mr-style="arcade"] .mr-logo {
  background: none; -webkit-background-clip: unset; background-clip: unset; color: #39ff14;
  text-shadow: 0 0 8px #39ff14, 2px 0 #ff2bd6, -2px 0 #00f0ff;
  letter-spacing: .22em;
}
.mr-root[data-mr-style="arcade"] .mr-sub { color: #00f0ff; letter-spacing: .5em; }
.mr-root[data-mr-style="arcade"] .mr-round {
  clip-path: none; border-radius: 0;
  background: #111; border: 2px solid #39ff14; color: #39ff14;
  box-shadow: 0 0 12px #39ff14;
}
.mr-root[data-mr-style="arcade"] .mr-timer { color: #00f0ff; text-shadow: 0 0 12px #00f0ff; }
.mr-root[data-mr-style="arcade"] .mr-timer.is-danger { color: #ff2bd6; text-shadow: 0 0 14px #ff2bd6; }
.mr-root[data-mr-style="arcade"] .mr-row {
  clip-path: none; border-radius: 0; border-left: 3px solid #00f0ff;
  background: rgba(0, 0, 0, .65);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .25);
  margin-bottom: 4px; min-height: 42px;
}
.mr-root[data-mr-style="arcade"] .mr-row::after { background: none; }
.mr-root[data-mr-style="arcade"] .mr-avatar {
  border-radius: 0; transform: none;
  box-shadow: 0 0 0 2px #ff2bd6, 0 0 10px #ff2bd6;
}
.mr-root[data-mr-style="arcade"] .mr-row--top {
  border-left-color: #39ff14;
  background: rgba(57, 255, 20, .1);
  box-shadow: inset 0 0 16px rgba(57, 255, 20, .2), 0 0 12px rgba(57, 255, 20, .2);
}
.mr-root[data-mr-style="arcade"] .mr-row--risk {
  border-left-color: #ff2bd6;
  background: rgba(255, 43, 214, .12);
}
.mr-root[data-mr-style="arcade"] .mr-row--out {
  opacity: 1; background: rgba(20, 0, 20, .5);
  border-left-color: #555;
}
.mr-root[data-mr-style="arcade"] .mr-stay,
.mr-root[data-mr-style="arcade"] .mr-ko,
.mr-root[data-mr-style="arcade"] .mr-rift-label {
  clip-path: none; border-radius: 0;
}
.mr-root[data-mr-style="arcade"] .mr-rift { border-top: 2px dashed #ff2bd6; filter: drop-shadow(0 0 8px #ff2bd6); }
.mr-root[data-mr-style="arcade"] .mr-rift-label {
  background: #000; border: 2px solid #ff2bd6; color: #ff2bd6;
  box-shadow: 0 0 12px #ff2bd6;
}
.mr-root[data-mr-style="arcade"] .mr-row--out.mr-elim-in {
  animation: mrGlitch 800ms steps(2, end) forwards;
}
@keyframes mrGlitch {
  0% { opacity: 1; transform: translate(0,0); filter: none; }
  15% { transform: translate(-6px, 1px); filter: hue-rotate(90deg) contrast(1.4); }
  30% { transform: translate(7px, -2px) skewX(-8deg); filter: drop-shadow(-3px 0 #ff2bd6) drop-shadow(3px 0 #00f0ff); }
  50% { transform: translate(-3px, 0) skewX(6deg); opacity: .7; }
  70% { transform: translate(4px, 2px); filter: grayscale(.3) contrast(1.6); }
  100% { transform: none; opacity: .45; filter: grayscale(.8) brightness(.7); }
}

/* ═══════════════ 4. Luxe or / marbre ═══════════════ */
.mr-root[data-mr-style="luxe"] {
  --cyan: #f3d48a; --magenta: #b8860b; --violet: #d4af37;
  border: 1px solid #c9a227;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, .12), transparent 28%),
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.07), transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(180, 140, 60, .12), transparent 45%),
    linear-gradient(160deg, #1a140c 0%, #0c0a07 55%, #16110a 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 212, 138, .25), 0 24px 60px rgba(0,0,0,.7);
}
.mr-root[data-mr-style="luxe"] .mr-logo {
  background: linear-gradient(100deg, #7a5a12, #f8e7b0 40%, #d4af37 70%, #fff4c8 100%);
  -webkit-background-clip: text; background-clip: text;
  letter-spacing: .22em;
}
.mr-root[data-mr-style="luxe"] .mr-sub { color: #c9b896; letter-spacing: .38em; }
.mr-root[data-mr-style="luxe"] .mr-round {
  clip-path: none; border-radius: 0;
  background: transparent; border: 1px solid #d4af37; color: #f3d48a;
  box-shadow: none; letter-spacing: .22em;
}
.mr-root[data-mr-style="luxe"] .mr-timer { color: #f3d48a; text-shadow: 0 0 16px rgba(212,175,55,.4); font-family: "MT Lilita", sans-serif; }
.mr-root[data-mr-style="luxe"] .mr-row {
  clip-path: none; border-radius: 0;
  border-left: 0; border-bottom: 1px solid rgba(212, 175, 55, .28);
  background: linear-gradient(90deg, rgba(42, 34, 18, .8), rgba(16, 12, 8, .5));
  margin-bottom: 0; padding: 10px 20px 10px 16px;
}
.mr-root[data-mr-style="luxe"] .mr-row::after { background: none; }
.mr-root[data-mr-style="luxe"] .mr-avatar {
  border-radius: 50%; transform: none;
  box-shadow: 0 0 0 1px #d4af37, 0 0 0 4px rgba(12,10,7,.8), 0 0 10px rgba(212,175,55,.35);
}
.mr-root[data-mr-style="luxe"] .mr-row--top {
  background: linear-gradient(90deg, rgba(212, 175, 55, .22), rgba(20, 16, 8, .55));
  box-shadow: inset 0 0 20px rgba(212, 175, 55, .12);
}
.mr-root[data-mr-style="luxe"] .mr-row--top .mr-rank,
.mr-root[data-mr-style="luxe"] .mr-row--top .mr-score { color: #f3d48a; }
.mr-root[data-mr-style="luxe"] .mr-row--risk {
  background: linear-gradient(90deg, rgba(120, 30, 20, .28), rgba(20, 10, 8, .5));
  border-bottom-color: rgba(180, 60, 40, .4);
}
.mr-root[data-mr-style="luxe"] .mr-row--out {
  opacity: 1; background: rgba(10, 8, 6, .45);
  border-bottom-color: rgba(212,175,55,.1);
}
.mr-root[data-mr-style="luxe"] .mr-stay,
.mr-root[data-mr-style="luxe"] .mr-ko,
.mr-root[data-mr-style="luxe"] .mr-rift-label { clip-path: none; border-radius: 0; }
.mr-root[data-mr-style="luxe"] .mr-rift {
  border-top: 1px solid #d4af37; filter: none; margin: 0; height: 0;
}
.mr-root[data-mr-style="luxe"] .mr-rift-label {
  background: #0c0a07; border: 1px solid #d4af37; color: #f3d48a;
  letter-spacing: .28em;
}
.mr-root[data-mr-style="luxe"] .mr-recap {
  background: transparent; border-top: 1px solid #d4af37; border-bottom: 1px solid #d4af37;
}
.mr-root[data-mr-style="luxe"] .mr-winner {
  border: 1px solid #d4af37; color: #f3d48a;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.15), transparent);
}
.mr-root[data-mr-style="luxe"] .mr-row--out.mr-elim-in {
  animation: mrLuxeOut 1s ease forwards;
}
@keyframes mrLuxeOut {
  0% { opacity: 1; filter: brightness(1.6) saturate(1.4); }
  40% { opacity: 1; filter: brightness(1.2); }
  100% { opacity: .42; filter: grayscale(.5) brightness(.8); }
}
.mr-root[data-mr-style="luxe"] .mr-burst i {
  background: radial-gradient(circle, #fff8dc, #d4af37);
  box-shadow: 0 0 10px #d4af37; border-radius: 1px;
}

/* ═══════════════ 5. Glace / cristal ═══════════════ */
.mr-root[data-mr-style="glace"] {
  --cyan: #e0f2fe; --magenta: #7dd3fc; --violet: #38bdf8;
  border: 1px solid rgba(186, 230, 253, .55);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, .08) 0%, transparent 40%),
    linear-gradient(200deg, #0a1c2e 0%, #071018 50%, #0c2233 100%);
  box-shadow: inset 0 0 80px rgba(56, 189, 248, .12), 0 20px 50px rgba(0,0,0,.55);
}
.mr-root[data-mr-style="glace"] .mr-logo {
  background: linear-gradient(100deg, #e0f2fe, #7dd3fc 50%, #bae6fd);
  -webkit-background-clip: text; background-clip: text;
  letter-spacing: .14em;
}
.mr-root[data-mr-style="glace"] .mr-round {
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  background: rgba(56, 189, 248, .12);
  border: 1px solid #7dd3fc; color: #e0f2fe;
  box-shadow: 0 0 16px rgba(125, 211, 252, .25);
}
.mr-root[data-mr-style="glace"] .mr-timer { color: #e0f2fe; text-shadow: 0 0 16px rgba(125,211,252,.6); }
.mr-root[data-mr-style="glace"] .mr-row {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  border-left: 0;
  background: linear-gradient(90deg, rgba(186, 230, 253, .16), rgba(8, 20, 32, .45));
  border: 1px solid rgba(186, 230, 253, .28);
  box-shadow: inset 0 0 18px rgba(224, 242, 254, .08);
}
.mr-root[data-mr-style="glace"] .mr-row::after {
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
}
.mr-root[data-mr-style="glace"] .mr-avatar {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border-radius: 0; transform: none;
  box-shadow: 0 0 12px rgba(125, 211, 252, .45);
}
.mr-root[data-mr-style="glace"] .mr-row--top {
  background: linear-gradient(90deg, rgba(186, 230, 253, .3), rgba(8, 30, 48, .5));
  box-shadow: 0 0 20px rgba(125, 211, 252, .2);
}
.mr-root[data-mr-style="glace"] .mr-row--risk {
  background: linear-gradient(90deg, rgba(14, 165, 233, .2), rgba(8, 16, 28, .5));
}
.mr-root[data-mr-style="glace"] .mr-row--out {
  opacity: 1; background: rgba(8, 16, 28, .4);
  filter: grayscale(.3);
}
.mr-root[data-mr-style="glace"] .mr-stay,
.mr-root[data-mr-style="glace"] .mr-ko,
.mr-root[data-mr-style="glace"] .mr-rift-label {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.mr-root[data-mr-style="glace"] .mr-rift { border-top: 2px solid rgba(125, 211, 252, .6); filter: drop-shadow(0 0 8px #7dd3fc); }
.mr-root[data-mr-style="glace"] .mr-rift-label {
  background: #0a1c2e; border: 1px solid #7dd3fc; color: #e0f2fe;
}
.mr-root[data-mr-style="glace"] .mr-row--out.mr-elim-in {
  animation: mrIceFall 1.05s ease-in forwards;
}
@keyframes mrIceFall {
  0% { opacity: 1; filter: none; transform: translateY(0) rotate(0); }
  30% { filter: contrast(1.4) brightness(1.5); }
  100% { opacity: .4; filter: grayscale(.4) blur(.4px); transform: translateY(4px) rotate(.6deg); }
}
.mr-root[data-mr-style="glace"] .mr-burst i {
  width: 8px; height: 8px; border-radius: 1px;
  background: linear-gradient(135deg, #fff, #38bdf8);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation-name: mrShard;
}
@keyframes mrShard {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 80px), calc(-50% + 50px + var(--dy) * 30px)) rotate(160deg) scale(.3); }
}

/* ═══════════════ 6. Manga / sticker ═══════════════ */
.mr-root[data-mr-style="manga"] {
  --cyan: #111; --magenta: #ff2d2d; --violet: #111;
  padding: 12px 16px 12px;
  border: 4px solid #111; border-radius: 18px;
  background:
    radial-gradient(circle, #111 0.9px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(180deg, #fff7ea, #ffe8c8);
  color: #111;
  box-shadow: 8px 8px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-logo {
  background: none; -webkit-background-clip: unset; background-clip: unset;
  color: #111; text-shadow: 3px 3px 0 #ffd60a, -1px -1px 0 #fff;
  letter-spacing: .06em;
}
.mr-root[data-mr-style="manga"] .mr-sub { color: #333; letter-spacing: .28em; }
.mr-root[data-mr-style="manga"] .mr-round {
  clip-path: none; border-radius: 8px 2px 10px 3px;
  background: #ffd60a; border: 3px solid #111; color: #111;
  box-shadow: 3px 3px 0 #111; transform: rotate(-3deg);
}
.mr-root[data-mr-style="manga"] .mr-timer { color: #111; text-shadow: 2px 2px 0 #ffd60a; }
.mr-root[data-mr-style="manga"] .mr-timer.is-danger { color: #ff2d2d; text-shadow: 2px 2px 0 #111; }
.mr-root[data-mr-style="manga"] .mr-alive { color: #111; }
.mr-root[data-mr-style="manga"] .mr-alive b { color: #ff2d2d; }
.mr-root[data-mr-style="manga"] .mr-row {
  clip-path: none;
  border-radius: 14px 4px 16px 6px;
  border: 3px solid #111; border-left: 3px solid #111;
  background: #fff;
  margin-bottom: 5px;
  min-height: clamp(32px, 4.6vh, 48px);
  padding: 4px 16px 4px 10px;
  transform: rotate(-0.4deg);
  box-shadow: 3px 3px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-row:nth-child(even) { transform: rotate(.5deg); }
.mr-root[data-mr-style="manga"] .mr-row::after { background: none; }
.mr-root[data-mr-style="manga"] .mr-rank { color: #111; }
.mr-root[data-mr-style="manga"] .mr-name { color: #111; }
.mr-root[data-mr-style="manga"] .mr-score { color: #111; }
.mr-root[data-mr-style="manga"] .mr-avatar {
  border-radius: 8px; transform: rotate(-8deg);
  box-shadow: 0 0 0 3px #111; border: 0;
}
.mr-root[data-mr-style="manga"] .mr-row--top {
  background: #fff3a0; box-shadow: 5px 5px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-row--risk {
  background: #ffd0d0; border-color: #ff2d2d;
}
.mr-root[data-mr-style="manga"] .mr-row--out {
  opacity: 1; background: #ddd; color: #555;
  box-shadow: 2px 2px 0 #666;
}
.mr-root[data-mr-style="manga"] .mr-row--out .mr-name { text-decoration-color: #ff2d2d; }
.mr-root[data-mr-style="manga"] .mr-stay,
.mr-root[data-mr-style="manga"] .mr-ko {
  clip-path: none; border-radius: 8px;
  border: 2px solid #111; background: #ffd60a; color: #111;
  box-shadow: 2px 2px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-ko { background: #ff2d2d; color: #fff; }
.mr-root[data-mr-style="manga"] .mr-more { color: #333; }
.mr-root[data-mr-style="manga"] .mr-rift { border-top: 4px solid #111; filter: none; margin: 8px 0 8px; }
.mr-root[data-mr-style="manga"] .mr-rift-label {
  clip-path: none; border-radius: 6px;
  background: #ff2d2d; border: 3px solid #111; color: #fff;
  transform: translateY(-50%) rotate(-2deg);
  box-shadow: 3px 3px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-recap {
  background: #fff; border: 3px solid #111; color: #111; border-radius: 10px;
  margin-top: 8px; padding: 8px 12px;
}
.mr-root[data-mr-style="manga"] .mr-recap-main b { color: #ff2d2d; }
.mr-root[data-mr-style="manga"] .mr-recap-out { color: #333; }
.mr-root[data-mr-style="manga"] .mr-winner {
  background: #ffd60a; border: 4px solid #111; color: #111;
  border-radius: 12px; box-shadow: 6px 6px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-idle { color: #333; }
.mr-root[data-mr-style="manga"] .mr-row--out.mr-elim-in {
  animation: mrStamp 700ms cubic-bezier(.2, 1.6, .4, 1) forwards;
}
@keyframes mrStamp {
  0% { transform: scale(1.4) rotate(-8deg); filter: contrast(1.4); }
  50% { transform: scale(.92) rotate(2deg); }
  100% { transform: scale(1) rotate(-0.4deg); opacity: 1; filter: grayscale(.4); }
}
.mr-root[data-mr-style="manga"] .mr-burst i {
  width: 14px; height: 14px; border-radius: 0;
  background: #ffd60a; border: 2px solid #111;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation-name: mrStar;
}
@keyframes mrStar {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.2) rotate(0); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(20deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 60px), calc(-50% + var(--dy) * 40px)) scale(.4) rotate(80deg); }
}

/* ── t395u : cartes mascotte / photos viewers ───────────────────────
   Appliqué seulement si data-mr-av est mascot | photo | mascot_photo.
   Sans cet attribut, le rendu lignes (configs existantes) est inchangé. */

.mr-av-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .mr-av-grid { grid-template-columns: 1fr; } }
.mr-av-opt {
  cursor: pointer; border: 1px solid #394170; border-radius: 8px;
  background: #080a1c; color: #dbe3ff; padding: 10px 8px; text-align: left;
  font: 700 12px/1.35 "Segoe UI", sans-serif;
}
.mr-av-opt:hover { border-color: #6b7ad0; }
.mr-av-opt.is-on { border-color: #4de8ff; box-shadow: 0 0 0 1px #4de8ff, 0 0 12px rgba(77,232,255,.22); color: #4de8ff; }
.mr-av-opt.is-preview:not(.is-on) { border-color: rgba(77,232,255,.45); }
.mr-av-opt small { display: block; font: 400 11px/1.35 "Segoe UI", sans-serif; color: #93a0d0; margin-top: 3px; }

.mr-board--cards {
  display: flex; flex-wrap: wrap; gap: 8px 8px; align-items: flex-start; align-content: flex-start;
  padding-left: 0;
}
.mr-board--cards .mr-rift,
.mr-board--cards .mr-recap,
.mr-board--cards .mr-winner,
.mr-board--cards .mr-idle,
.mr-board--cards .mr-more,
.mr-board--cards .mr-cd-more { flex: 1 0 100%; }
.mr-cd-more {
  min-width: 88px; min-height: 28px; display: grid; place-items: center;
  text-align: center; color: #7f8dc4; font: 800 11px/1.3 "MT Lilita", sans-serif;
  letter-spacing: .12em; padding: 8px;
}

.mr-cd {
  position: relative;
  width: 100px;
  min-height: 122px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 16px 5px 6px;
  background: linear-gradient(180deg, rgba(30, 41, 82, .8), rgba(16, 17, 48, .55));
  border: 1px solid rgba(148, 163, 214, .28);
  overflow: hidden;
}
.mr-cd-rank {
  position: absolute; top: 5px; left: 5px; z-index: 2;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: rgba(0,0,0,.45);
  font: 800 10px/18px ui-monospace, "Consolas", monospace; color: #dbe3ff;
}
.mr-cd-badge {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  font-size: 12px; line-height: 1;
}
.mr-cd-ko {
  font: 800 8px/1 "MT Lilita", sans-serif; letter-spacing: .08em;
  border: 1px solid rgba(255, 79, 163, .6); color: #ffc4e0;
  background: rgba(255, 79, 163, .16); padding: 3px 5px;
}
.mr-cd-art {
  position: relative;
  width: 58px; height: 58px; margin: 1px 0 4px;
  display: grid; place-items: center;
  overflow: hidden; background: var(--c, #312e81);
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.mr-cd-art img { width: 100%; height: 100%; display: block; }
.mr-cd-art img.mr-cd-mascot { object-fit: contain; object-position: center 40%; background: transparent; }
.mr-cd-art img.mr-cd-photo { object-fit: cover; object-position: center 28%; }
.mr-cd-art img.mr-cd-mascot-badge { width: 22px; height: 22px; }
.mr-cd-art.is-framed { box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 4px 10px rgba(0,0,0,.4); }
.mr-cd-mascot-badge {
  position: absolute; right: 1px; bottom: 1px; width: 22px; height: 22px;
  object-fit: contain; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
  background: rgba(8,10,28,.35); border-radius: 50%;
}
.mr-cd-ini {
  position: absolute; inset: 0; display: none; place-items: center;
  font: 800 18px/1 "MT Lilita", sans-serif; color: #fff;
}
.mr-cd-ini:not([hidden]) { display: grid; }
.mr-cd-nm {
  font: 800 12px/1.15 "MT Lilita", sans-serif;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0 2px;
}
.mr-cd-co { margin-top: 3px; font: 800 11px/1 ui-monospace, "Consolas", monospace; color: #fde68a; }
.mr-cd-stay {
  margin-top: 4px; font: 800 8px/1 "MT Lilita", sans-serif; letter-spacing: .04em;
  color: var(--cyan, #4de8ff); border: 1px solid var(--cyan, #4de8ff);
  padding: 3px 5px; text-transform: uppercase; white-space: nowrap;
}
.mr-cd--top { border-color: var(--cyan, #4de8ff); box-shadow: 0 0 16px rgba(77,232,255,.2); }
.mr-cd--risk { border-color: var(--magenta, #ff4fa3); }
.mr-cd--out { opacity: .55; filter: grayscale(.55); }

/* recadrage selon le style */
.mr-root[data-mr-style="moontik"] .mr-cd {
  border-radius: 16px; border: 1px solid rgba(196,181,253,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(139,92,246,.14));
  backdrop-filter: blur(10px);
}
.mr-root[data-mr-style="moontik"] .mr-cd-art { border-radius: 50%; }
.mr-root[data-mr-style="moontik"] .mr-cd-ko,
.mr-root[data-mr-style="moontik"] .mr-cd-stay { border-radius: 999px; clip-path: none; }
.mr-root[data-mr-style="moontik"] .mr-cd--top {
  background: linear-gradient(180deg, rgba(196,181,253,.3), rgba(94,234,212,.16));
}
.mr-root[data-mr-style="moontik"] .mr-cd--out { opacity: 1; filter: saturate(.6); }
.mr-root[data-mr-style="moontik"] .mr-cd--out.mr-elim-in { animation: mrMtFade 1.1s ease forwards; }

.mr-root[data-mr-style="survivor"] .mr-cd {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  border-left: 3px solid rgba(148,163,214,.35);
}
.mr-root[data-mr-style="survivor"] .mr-cd-art { border-radius: 6px; transform: rotate(-4deg); }
.mr-root[data-mr-style="survivor"] .mr-cd-ko { clip-path: none; }
.mr-root[data-mr-style="survivor"] .mr-cd--out.mr-elim-in { animation: mrSurvFade .7s ease forwards; }

.mr-root[data-mr-style="arcade"] .mr-cd {
  border-radius: 0; border: 2px solid #00f0ff; background: rgba(0,0,0,.7);
}
.mr-root[data-mr-style="arcade"] .mr-cd-art { border-radius: 0; box-shadow: 0 0 0 2px #ff2bd6, 0 0 8px #ff2bd6; }
.mr-root[data-mr-style="arcade"] .mr-cd-nm,
.mr-root[data-mr-style="arcade"] .mr-cd-co { font-family: ui-monospace, "Consolas", monospace; }
.mr-root[data-mr-style="arcade"] .mr-cd--top { border-color: #39ff14; box-shadow: 0 0 12px rgba(57,255,20,.3); }
.mr-root[data-mr-style="arcade"] .mr-cd--out.mr-elim-in { animation: mrGlitch 800ms steps(2, end) forwards; }

.mr-root[data-mr-style="luxe"] .mr-cd {
  border-radius: 0; border: 1px solid rgba(212,175,55,.45);
  background: linear-gradient(180deg, rgba(42,34,18,.85), rgba(16,12,8,.7));
}
.mr-root[data-mr-style="luxe"] .mr-cd-art {
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d4af37, 0 0 0 4px rgba(12,10,7,.8);
}
.mr-root[data-mr-style="luxe"] .mr-cd-co { color: #f3d48a; }
.mr-root[data-mr-style="luxe"] .mr-cd--top { box-shadow: inset 0 0 16px rgba(212,175,55,.18); }
.mr-root[data-mr-style="luxe"] .mr-cd--out.mr-elim-in { animation: mrLuxeOut 1s ease forwards; }

.mr-root[data-mr-style="glace"] .mr-cd {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  border: 1px solid rgba(186,230,253,.35);
  background: linear-gradient(180deg, rgba(186,230,253,.18), rgba(8,20,32,.5));
}
.mr-root[data-mr-style="glace"] .mr-cd-art {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border-radius: 0; box-shadow: 0 0 12px rgba(125,211,252,.4);
}
.mr-root[data-mr-style="glace"] .mr-cd--out.mr-elim-in { animation: mrIceFall 1.05s ease-in forwards; }

.mr-root[data-mr-style="manga"] .mr-cd {
  border-radius: 14px 4px 16px 6px; border: 3px solid #111; background: #fff; color: #111;
  box-shadow: 3px 3px 0 #111; transform: rotate(-0.5deg);
}
.mr-root[data-mr-style="manga"] .mr-cd:nth-child(even) { transform: rotate(.4deg); }
.mr-root[data-mr-style="manga"] .mr-cd-nm,
.mr-root[data-mr-style="manga"] .mr-cd-rank { color: #111; }
.mr-root[data-mr-style="manga"] .mr-cd-rank { background: #ffd60a; border: 2px solid #111; }
.mr-root[data-mr-style="manga"] .mr-cd-co { color: #111; }
.mr-root[data-mr-style="manga"] .mr-cd-art { border-radius: 8px; transform: rotate(-6deg); box-shadow: 0 0 0 3px #111; }
.mr-root[data-mr-style="manga"] .mr-cd--top { background: #fff3a0; }
.mr-root[data-mr-style="manga"] .mr-cd--out { background: #ddd; opacity: 1; filter: grayscale(.35); box-shadow: 2px 2px 0 #666; }
.mr-root[data-mr-style="manga"] .mr-cd-ko { background: #ff2d2d; color: #fff; border: 2px solid #111; }
.mr-root[data-mr-style="manga"] .mr-cd--out.mr-elim-in { animation: mrStamp 700ms cubic-bezier(.2, 1.6, .4, 1) forwards; }

/* mini cartes dans le sélecteur de style du panneau */
.mr-style-frame .mr-board--cards { gap: 6px; }
.mr-style-frame .mr-cd { width: 90px; min-height: 116px; padding: 16px 4px 6px; }
.mr-style-frame .mr-cd-art { width: 52px; height: 52px; }

/* t400 / t401 — classement visible, podium, zone d'élimination, anim de rang.
   Ne modifie pas le layout des lignes live (.mr-row) hors animations transitoires. */
.mr-board--cards .mr-podium,
.mr-board--cards .mr-ladder,
.mr-board--cards .mr-rift,
.mr-board--cards .mr-rift--danger,
.mr-board--cards .mr-rift--out { flex: 1 0 100%; }

.mr-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 4px 0 10px;
  flex-wrap: wrap;
}
.mr-podium .mr-cd {
  overflow: visible;
  width: 128px;
  min-height: 168px;
  padding: 28px 8px 10px;
}
.mr-podium .mr-cd-art { width: 76px; height: 76px; margin-bottom: 6px; }
.mr-podium .mr-cd-nm { font-size: 15px; }
.mr-podium .mr-cd-co { font-size: 16px; margin-top: 4px; }
.mr-cd--p1 { width: 156px; min-height: 200px; order: 2; z-index: 2; }
.mr-cd--p2 { order: 1; }
.mr-cd--p3 { order: 3; }
.mr-podium .mr-cd--p1 { width: 156px; min-height: 200px; padding-top: 32px; }
.mr-podium .mr-cd--p1 .mr-cd-art { width: 92px; height: 92px; }
.mr-podium .mr-cd--p1 .mr-cd-nm { font-size: 17px; }
.mr-podium .mr-cd--p1 .mr-cd-co { font-size: 20px; }

.mr-cd-rank {
  min-width: 28px; height: 28px; padding: 0 6px;
  font: 800 16px/28px ui-monospace, "Consolas", monospace;
  border-radius: 8px;
}
.mr-podium .mr-cd-rank {
  top: 8px; left: 8px;
  min-width: 36px; height: 36px; font-size: 22px; line-height: 36px;
}
.mr-medal-gold { background: linear-gradient(180deg, #fde68a, #d97706); color: #1a1033; box-shadow: 0 0 10px rgba(251,191,36,.55); }
.mr-medal-silver { background: linear-gradient(180deg, #f8fafc, #94a3b8); color: #111; box-shadow: 0 0 8px rgba(226,232,240,.45); }
.mr-medal-bronze { background: linear-gradient(180deg, #fdba74, #c2410c); color: #fff; box-shadow: 0 0 8px rgba(234,88,12,.4); }
.mr-cd-crown { font-size: 20px; filter: drop-shadow(0 0 6px rgba(253,230,138,.8)); }

.mr-ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.mr-ladder .mr-cd {
  width: 100%;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 8px 12px 8px 8px;
  gap: 10px;
  overflow: visible;
}
.mr-ladder .mr-cd-rank {
  position: static;
  flex: 0 0 52px;
  min-width: 52px; height: auto;
  font: 800 28px/1 ui-monospace, "Consolas", monospace;
  background: transparent;
  color: #e8edff;
  text-align: center;
  padding: 0;
}
.mr-ladder .mr-medal-gold,
.mr-ladder .mr-medal-silver,
.mr-ladder .mr-medal-bronze { background: none; box-shadow: none; }
.mr-ladder .mr-medal-gold { color: #fbbf24; }
.mr-ladder .mr-medal-silver { color: #e2e8f0; }
.mr-ladder .mr-medal-bronze { color: #fb923c; }
.mr-ladder .mr-cd-art { width: 52px; height: 52px; margin: 0; flex: 0 0 52px; }
.mr-ladder .mr-cd-art img.mr-cd-mascot-badge { width: 18px; height: 18px; }
.mr-ladder .mr-cd-meta { flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 12px; }
.mr-ladder .mr-cd-nm { font-size: 16px; max-width: 100%; }
.mr-ladder .mr-cd-co { font-size: 22px; margin-top: 0; margin-left: auto; }
.mr-ladder .mr-cd-stay,
.mr-ladder .mr-cd-ko {
  font-size: 12px; padding: 5px 8px; margin-top: 0; white-space: nowrap;
}
.mr-ladder .mr-cd-badge { position: static; margin-left: auto; }

.mr-rift--danger {
  height: auto;
  margin: 14px 0 10px;
  border-top: 0;
  filter: none;
  display: flex; justify-content: center; align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,45,85,.12), rgba(255,45,85,.38), rgba(255,45,85,.12));
  box-shadow: 0 0 18px rgba(255,45,85,.25);
  animation: mrZonePulse 1s ease-in-out infinite alternate;
}
.mr-rift--danger .mr-rift-label {
  position: relative; top: auto; transform: none;
  background: #7f0528;
  border: 2px solid #ff4d6d;
  color: #fff;
  font-size: clamp(13px, 1.7vw, 20px);
  letter-spacing: .12em;
  padding: 8px 18px;
}
.mr-rift--out { height: auto; margin: 14px 0 10px; border-top: 0; filter: none; display: flex; justify-content: center; padding: 8px; }
.mr-ladder--danger .mr-cd {
  border-color: #ff4d6d;
  background: linear-gradient(90deg, rgba(255,45,85,.22), rgba(30,8,18,.55));
  box-shadow: 0 0 14px rgba(255,45,85,.28);
}
@keyframes mrZonePulse {
  from { box-shadow: 0 0 10px rgba(255,45,85,.2); }
  to { box-shadow: 0 0 22px rgba(255,45,85,.5); filter: brightness(1.08); }
}
@keyframes mrRankUp {
  0% { transform: translateY(10px) scale(.98); filter: brightness(1); box-shadow: 0 0 0 rgba(77,232,255,0); }
  35% { transform: translateY(-6px) scale(1.03); filter: brightness(1.25); box-shadow: 0 0 22px rgba(77,232,255,.45); }
  100% { transform: none; filter: none; box-shadow: none; }
}
@keyframes mrRankDown {
  0% { transform: translateY(-8px); filter: brightness(.85); }
  100% { transform: none; filter: none; }
}
@keyframes mrDangerIn {
  0% { transform: scale(1); box-shadow: inset 0 0 0 rgba(255,45,85,0); }
  25% { transform: scale(1.02); box-shadow: 0 0 0 2px rgba(255,79,163,.85), 0 0 28px rgba(255,45,85,.55); }
  100% { transform: none; box-shadow: none; }
}
.mr-rank-up, .mr-cd.mr-rank-up, .mr-row.mr-rank-up { animation: mrRankUp .75s ease; }
.mr-rank-down, .mr-cd.mr-rank-down, .mr-row.mr-rank-down { animation: mrRankDown .6s ease; }
.mr-danger-in, .mr-cd.mr-danger-in, .mr-row.mr-danger-in { animation: mrDangerIn .85s ease; }

.mr-root[data-mr-style="moontik"] .mr-rift--danger {
  background: linear-gradient(90deg, rgba(167,139,250,.15), rgba(255,45,85,.3), rgba(94,234,212,.12));
}
.mr-root[data-mr-style="arcade"] .mr-rift--danger { background: rgba(255,43,214,.18); }
.mr-root[data-mr-style="arcade"] .mr-rift--danger .mr-rift-label { background: #160014; border-color: #ff2bd6; color: #fff; }
.mr-root[data-mr-style="luxe"] .mr-rift--danger .mr-rift-label { background: #3a120c; border-color: #e8b86d; color: #fde68a; }
.mr-root[data-mr-style="glace"] .mr-rift--danger { background: rgba(14,165,233,.15); }
.mr-root[data-mr-style="glace"] .mr-rift--danger .mr-rift-label { background: #0b1c2c; border-color: #7dd3fc; }
.mr-root[data-mr-style="manga"] .mr-rift--danger { background: #ffe4e6; box-shadow: 3px 3px 0 #111; }
.mr-root[data-mr-style="manga"] .mr-rift--danger .mr-rift-label {
  background: #ff2d2d; border: 3px solid #111; color: #fff; clip-path: none; border-radius: 8px;
  box-shadow: 3px 3px 0 #111;
}
.mr-root[data-mr-style="manga"] .mr-ladder .mr-cd-rank { color: #111; }
.mr-root[data-mr-style="manga"] .mr-ladder .mr-cd:nth-child(even) { transform: none; }

@media (max-width: 700px), (max-aspect-ratio: 3/4) {
  .mr-cd--p1, .mr-podium .mr-cd--p1 { order: 0; width: min(70vw, 180px); }
  .mr-cd--p2, .mr-cd--p3 { width: min(42vw, 140px); }
  .mr-ladder .mr-cd-rank { flex-basis: 40px; min-width: 40px; font-size: 22px; }
  .mr-ladder .mr-cd-co { font-size: 16px; }
  .mr-rift--danger .mr-rift-label { font-size: 13px; letter-spacing: .08em; padding: 6px 12px; white-space: normal; text-align: center; }
}

/* t404 — aperçu panneau toujours visible */
.mr-grid { align-items: start; }
.mr-preview-col { position: sticky; top: 12px; }
.mr-preview-col .mr-preview { height: min(52vh, 520px); }
.mr-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
@media (max-width: 860px) {
  .mr-grid { grid-template-columns: 1fr; }
  .mr-preview-col {
    position: sticky; top: 0; z-index: 30; order: -1;
    padding: 0 0 8px; background: #07091c;
  }
  .mr-preview-col .mr-preview { height: 180px; }
  .mr-preview-col h2 { margin-bottom: 6px; }
}

/* t403 — sons / t406 cadeaux dans le panneau */
.mr-sfx { margin-top: 10px; }
.mr-sfx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.mr-sfx-row h4 { flex: 1 0 140px; margin: 0; font-size: 12px; color: #c9d4ff; font-weight: 700; }
.mr-field--full { grid-column: 1 / -1; }
.mr-gift-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.mr-gift-chip { display: inline-flex; align-items: center; gap: 4px; }
.mr-gift-chip .mr-chip-x { border: 0; background: #1a1f44; color: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }
.gift-picker-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4,6,18,.72);
  display: grid; place-items: center; padding: 16px;
}
.gift-picker-overlay[hidden] { display: none !important; }
.gift-picker {
  width: min(920px, 96vw); max-height: 86vh;
  background: #0e1130; border: 1px solid rgba(139,92,246,.5);
  border-radius: 10px; padding: 14px; overflow: auto; color: #dbe3ff;
}
.gift-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gift-picker-filters, .gift-picker-value-row, .gift-picker-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gift-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; min-height: 200px; }
.gift-banner { display: inline-flex; align-items: center; gap: 8px; background: #080a1c; border: 1px solid #394170; color: #dbe3ff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.gift-banner-thumb, .gift-banner-thumb img { width: 28px; height: 28px; object-fit: contain; }
.gift-banner-coins { color: #fde68a; font-size: 12px; }
.ps-mi-grid { max-height: 50vh; overflow: auto; }


/* t407 — écran de victoire (plein overlay, propre à Moon Royale, pas une copie) */
.mr-root { position: relative; }
.mr-root:has(.mr-victory) { min-height: 100vh; }

.mr-victory {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 62% at 50% 42%, rgba(16, 8, 42, .58), transparent 72%),
    radial-gradient(circle at 50% 108%, rgba(77, 232, 255, .14), transparent 48%);
  animation: mrVicIn .8s ease both;
}
.mr-victory.is-leaving { animation: mrVicOut .55s ease forwards; }
@keyframes mrVicIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mrVicOut { to { opacity: 0; } }
@keyframes mrVicSpin { to { transform: rotate(360deg); } }
@keyframes mrVicCore {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes mrVicFall {
  0% { opacity: 0; transform: translateY(0) rotate(12deg) scale(.8); }
  14% { opacity: .95; }
  100% { opacity: 0; transform: translateY(115vh) rotate(240deg) scale(1.1); }
}

.mr-vic-rays {
  position: absolute; inset: -22%;
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    rgba(255, 214, 130, 0) 0 7deg,
    rgba(201, 162, 255, .14) 8deg,
    rgba(77, 232, 255, .16) 10deg,
    rgba(255, 214, 130, 0) 15deg);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0 16%, transparent 64%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0 16%, transparent 64%);
  animation: mrVicSpin 30s linear infinite;
  opacity: .9;
}
.mr-vic-fx { position: absolute; inset: 0; overflow: hidden; }
.mr-vic-fx i {
  position: absolute;
  left: calc(3% + (var(--i) * 5.3%));
  top: -8%;
  width: 6px; height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #ffd56a 45%, #c4a2ff);
  box-shadow: 0 0 8px rgba(255, 220, 140, .7);
  opacity: 0;
  animation: mrVicFall 2.9s ease-in infinite;
  animation-delay: calc(var(--i) * -.16s);
}

.mr-vic-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(920px, 94%);
  padding: 12px 16px 16px;
  animation: mrVicCore .85s cubic-bezier(.2, 1.15, .3, 1) both;
}
.mr-vic-kicker {
  letter-spacing: .28em;
  font-size: clamp(9px, 1.1vw, 13px);
  color: #b9e8ff;
  text-transform: uppercase;
  opacity: .88;
  margin-bottom: 2px;
}
.mr-vic-title {
  font: 800 clamp(26px, 5vw, 66px)/1 "MT Lilita", "Segoe UI", sans-serif;
  letter-spacing: .05em;
  background: linear-gradient(92deg, #e9d5ff, #fff 45%, #7eeaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(139, 92, 246, .5));
  margin: 0 0 12px;
}

.mr-vic-hero {
  position: relative;
  width: clamp(132px, 17vw, 200px);
  height: clamp(132px, 17vw, 200px);
  margin: 2px 0 10px;
}
.mr-vic-halo {
  position: absolute; inset: -20%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #c4a2ff, #4de8ff, #ffe08a, #ff7ac6, #c4a2ff);
  filter: blur(9px);
  opacity: .9;
  animation: mrVicSpin 8s linear infinite;
  z-index: 0;
}
.mr-vic-halo::after {
  content: "";
  position: absolute; inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 62%);
}
.mr-vic-portrait {
  position: absolute; inset: 0;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #16103a;
  box-shadow: 0 0 0 3px rgba(255,255,255,.58), 0 14px 40px rgba(0,0,0,.5);
}
.mr-vic-portrait .mr-cd-art {
  width: 100%; height: 100%; margin: 0; border-radius: 50%;
}
.mr-vic-portrait .mr-cd-ini,
.mr-vic-portrait .mr-cd-in { font-size: 48px; }

.mr-vic-name {
  font: 800 clamp(22px, 3.3vw, 42px)/1.1 "MT Lilita", "Segoe UI", sans-serif;
  margin: 2px 0 2px;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.mr-vic-coins {
  font-size: clamp(16px, 2vw, 24px);
  color: #ffe08a;
  text-shadow: 0 0 16px rgba(255, 208, 80, .55);
  margin-bottom: 8px;
}
.mr-vic-msg {
  max-width: 28em;
  margin: 2px auto 12px;
  padding: 8px 14px;
  font: 500 14px/1.4 "Segoe UI", sans-serif;
  color: #e8eeff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.mr-vic-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 4px 0 14px;
}
.mr-vic-stat {
  min-width: 96px;
  padding: 8px 14px 7px;
  background: rgba(12, 10, 36, .48);
  border: 1px solid rgba(180, 200, 255, .22);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.mr-vic-stat b {
  display: block;
  font: 800 clamp(16px, 2.2vw, 26px)/1 "MT Lilita", sans-serif;
  color: #fff;
}
.mr-vic-stat span {
  font: 600 10px/1.3 "Segoe UI", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9db0e8;
}

.mr-vic-places { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mr-vic-place {
  width: 132px;
  padding: 10px 8px 8px;
  background: rgba(12, 10, 36, .5);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.mr-vic-plab {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9d4ff;
  margin-bottom: 4px;
}
.mr-vic-place .mr-cd-art {
  width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%;
}
.mr-vic-pname { font-size: 13px; }
.mr-vic-pco { font-size: 12px; color: #ffe08a; }

/* Survivor — braise, cadres angulaires (identité arène actuelle) */
.mr-victory[data-mr-style="survivor"] {
  background:
    radial-gradient(ellipse 58% 62% at 50% 42%, rgba(40, 12, 8, .55), transparent 72%),
    radial-gradient(circle at 50% 108%, rgba(255, 80, 40, .16), transparent 48%);
}
.mr-victory[data-mr-style="survivor"] .mr-vic-rays {
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    rgba(255, 90, 40, 0) 0 8deg, rgba(255, 140, 60, .18) 9deg, rgba(255, 210, 120, .12) 12deg, rgba(255, 90, 40, 0) 16deg);
}
.mr-victory[data-mr-style="survivor"] .mr-vic-title {
  background: linear-gradient(92deg, #ffb088, #fff4d6, #ff6a3a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(255, 80, 30, .45));
  letter-spacing: .08em;
}
.mr-victory[data-mr-style="survivor"] .mr-vic-kicker { color: #ffb08a; }
.mr-victory[data-mr-style="survivor"] .mr-vic-portrait {
  border-radius: 8px;
  box-shadow: 0 0 0 3px #ff9a4a, 0 0 0 6px rgba(40, 12, 8, .8), 0 14px 40px rgba(0,0,0,.55);
}
.mr-victory[data-mr-style="survivor"] .mr-vic-halo { filter: blur(10px); background: conic-gradient(#ff6a3a, #ffd56a, #ff8a4a, #ff6a3a); }
.mr-victory[data-mr-style="survivor"] .mr-vic-fx i { background: linear-gradient(180deg, #fff, #ffb060, #ff4a20); border-radius: 0; }

/* Arcade — néon, scan, confettis pixel */
.mr-victory[data-mr-style="arcade"] {
  background:
    radial-gradient(ellipse 58% 62% at 50% 42%, rgba(8, 0, 28, .55), transparent 72%),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,255,200,.04) 3px 4px);
}
.mr-victory[data-mr-style="arcade"] .mr-vic-rays {
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    rgba(0, 255, 200, 0) 0 8deg, rgba(255, 0, 200, .2) 9deg, rgba(0, 255, 255, .18) 12deg, rgba(0, 255, 200, 0) 16deg);
}
.mr-victory[data-mr-style="arcade"] .mr-vic-title {
  background: none; color: #5cffef;
  text-shadow: 0 0 8px #5cffef, 0 0 22px #ff3ad8, 3px 0 #ff3ad8, -3px 0 #00f0ff;
  filter: none;
  letter-spacing: .12em;
}
.mr-victory[data-mr-style="arcade"] .mr-vic-kicker { color: #ff4cf0; }
.mr-victory[data-mr-style="arcade"] .mr-vic-portrait {
  border-radius: 4px;
  box-shadow: 0 0 0 3px #5cffef, 0 0 24px #ff3ad8;
}
.mr-victory[data-mr-style="arcade"] .mr-vic-fx i {
  width: 8px; height: 8px; border-radius: 0;
  background: #5cffef; box-shadow: 0 0 8px #ff3ad8;
}

/* Luxe — champagne, velours, bokeh doux */
.mr-victory[data-mr-style="luxe"] {
  background:
    radial-gradient(ellipse 58% 62% at 50% 42%, rgba(28, 18, 8, .55), transparent 72%),
    radial-gradient(circle at 50% 108%, rgba(212, 175, 55, .18), transparent 48%);
}
.mr-victory[data-mr-style="luxe"] .mr-vic-rays {
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    rgba(212, 175, 55, 0) 0 9deg, rgba(255, 230, 170, .2) 10deg, rgba(212, 175, 55, .12) 13deg, rgba(212, 175, 55, 0) 18deg);
}
.mr-victory[data-mr-style="luxe"] .mr-vic-title {
  background: linear-gradient(92deg, #c9a227, #fff4c8, #e6c35c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(212, 175, 55, .45));
}
.mr-victory[data-mr-style="luxe"] .mr-vic-kicker { color: #e6c35c; letter-spacing: .36em; }
.mr-victory[data-mr-style="luxe"] .mr-vic-portrait {
  box-shadow: 0 0 0 3px #e6c35c, 0 0 0 7px rgba(40, 28, 8, .7), 0 16px 44px rgba(0,0,0,.5);
}
.mr-victory[data-mr-style="luxe"] .mr-vic-halo { background: conic-gradient(#fff4c8, #c9a227, #ffe08a, #fff4c8); }
.mr-victory[data-mr-style="luxe"] .mr-vic-msg,
.mr-victory[data-mr-style="luxe"] .mr-vic-stat,
.mr-victory[data-mr-style="luxe"] .mr-vic-place {
  border-color: rgba(230, 195, 92, .35);
  background: rgba(28, 20, 8, .5);
}

/* Glace — givre, étincelles froides */
.mr-victory[data-mr-style="glace"] {
  background:
    radial-gradient(ellipse 58% 62% at 50% 42%, rgba(8, 24, 40, .55), transparent 72%),
    radial-gradient(circle at 50% 108%, rgba(160, 230, 255, .2), transparent 48%);
}
.mr-victory[data-mr-style="glace"] .mr-vic-rays {
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    rgba(160, 230, 255, 0) 0 8deg, rgba(200, 245, 255, .22) 9deg, rgba(120, 190, 255, .14) 12deg, rgba(160, 230, 255, 0) 16deg);
}
.mr-victory[data-mr-style="glace"] .mr-vic-title {
  background: linear-gradient(92deg, #c8f4ff, #fff, #7ad4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(80, 200, 255, .5));
}
.mr-victory[data-mr-style="glace"] .mr-vic-kicker { color: #b8eeff; }
.mr-victory[data-mr-style="glace"] .mr-vic-portrait {
  box-shadow: 0 0 0 3px #c8f4ff, 0 0 28px rgba(120, 210, 255, .7);
}
.mr-victory[data-mr-style="glace"] .mr-vic-halo { background: conic-gradient(#fff, #7ad4ff, #c8f4ff, #fff); }
.mr-victory[data-mr-style="glace"] .mr-vic-fx i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #e8fbff; box-shadow: 0 0 8px #9be8ff;
}

/* Manga — tramage, lignes de vitesse, éclat encre */
.mr-victory[data-mr-style="manga"] {
  background:
    radial-gradient(ellipse 50% 50% at 50% 42%, rgba(255, 240, 248, .08), transparent 60%),
    radial-gradient(ellipse 58% 62% at 50% 42%, rgba(20, 4, 16, .55), transparent 72%);
}
.mr-victory[data-mr-style="manga"] .mr-vic-rays {
  background: repeating-conic-gradient(from 0deg at 50% 46%,
    #0000 0 4deg, rgba(255,255,255,.2) 4.4deg, #0000 6deg, rgba(255, 80, 140, .16) 7deg, #0000 12deg);
  animation-duration: 40s;
}
.mr-victory[data-mr-style="manga"] .mr-vic-title {
  background: none; color: #fff;
  -webkit-text-stroke: 1px #111;
  text-shadow: 4px 4px 0 #ff4f8a, -2px 0 #111;
  filter: none;
  letter-spacing: .02em;
  transform: skewX(-6deg);
}
.mr-victory[data-mr-style="manga"] .mr-vic-kicker { color: #ff7aa8; }
.mr-victory[data-mr-style="manga"] .mr-vic-name {
  -webkit-text-stroke: 0;
  color: #1a0a12;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #ff4f8a;
}
.mr-victory[data-mr-style="manga"] .mr-vic-msg {
  background: rgba(255,255,255,.9);
  color: #1a0a12;
  border: 2px solid #111;
}
.mr-victory[data-mr-style="manga"] .mr-vic-portrait {
  border-radius: 6px;
  box-shadow: 0 0 0 3px #111, 0 0 0 6px #fff, 0 0 0 9px #ff4f8a;
}
.mr-victory[data-mr-style="manga"] .mr-vic-halo { filter: blur(4px); background: conic-gradient(#fff, #ff4f8a, #111, #fff); }
.mr-victory[data-mr-style="manga"] .mr-vic-fx i {
  width: 10px; height: 3px; border-radius: 0;
  background: #fff; box-shadow: 2px 2px 0 #ff4f8a;
}

@media (max-width: 720px), (orientation: portrait) {
  .mr-vic-title { font-size: clamp(22px, 8vw, 44px); }
  .mr-vic-hero { width: clamp(110px, 38vw, 160px); height: clamp(110px, 38vw, 160px); }
  .mr-vic-stats { gap: 6px; }
  .mr-vic-stat { min-width: 72px; padding: 6px 10px; }
  .mr-vic-place { width: 110px; }
  .mr-vic-msg { font-size: 13px; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mr-victory, .mr-vic-rays, .mr-vic-fx i, .mr-vic-halo, .mr-vic-core,
  .mr-rank-up, .mr-rank-down, .mr-danger-in, .mr-elim-in, .mr-rift--danger, .mr-burst, .mr-burst i {
    animation: none !important;
  }
  .mr-victory.is-leaving { opacity: 0; }
}
