/*
 * LES STYLES DES ÉCRANS « MAPS & MODES » ET « ARMES » (public/js/stats-maps-modes.js
 * et public/js/stats-armes.js). Sortis de stats.html le 14 octobre 2026 : la page
 * Statistiques de tout Splatelo (statistiques.html) montre les mêmes écrans.
 *
 * Les deux conteneurs reprennent les couleurs de la page de la Ligue (surfaces
 * translucides, --body-txt), quelle que soit la page qui les accueille.
 */
#maps-container, #armes-container {
  min-width: 0;   /* dans une grille (page de tout Splatelo) : le nuage et les tableaux défilent dans leur cadre */
  --surface:  rgba(255,255,255,.05);
  --surface2: rgba(255,255,255,.10);
  --body-txt: #c9c3dd;
}

/* ── Maps & modes (public/js/stats-maps-modes.js) ──────────────────────
   Tuiles des modes et des maps, tableau map × mode, fiche d'une map.
   Maquettes « Maps et modes » et « Fiche map » du 5 octobre 2026. */
.mm-resume { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.mm-resume b { color: var(--body-txt); }
.mm-sec { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800;
  margin: 6px 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mm-sec small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.mm-note { font-size: 12px; color: var(--muted); margin: 8px 0 22px; }
.mm-muet { color: var(--muted); }
.mm-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; flex: none; }
.mm-ico img { width: 32px; height: 32px; object-fit: contain; }

.mm-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 26px; }
.mm-tmode { text-align: left; font-family: inherit; color: inherit; cursor: pointer; width: auto;
  background: var(--surface); border: 1px solid var(--surface2); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 3px 0 var(--c); transition: border-color .12s, background .12s; }
.mm-tmode:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.mm-tmode.actif { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); }
.mm-th { display: flex; gap: 10px; align-items: center; }
.mm-th b { display: block; font-size: 15px; color: var(--text); }
.mm-th span { font-size: 12px; color: var(--muted); }
.mm-mt { display: grid; grid-template-columns: 96px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; }
.mm-ml { color: var(--muted); font-size: 11.5px; }
.mm-mt b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.mm-mb { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.mm-mb i { display: block; height: 100%; border-radius: 99px; }
.mm-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.mm-chiffres b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--text); }
.mm-chiffres span { font-size: 11px; color: var(--muted); }
.mm-armes-l { display: flex; flex-direction: column; gap: 6px; }
.mm-ars { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-ar { position: relative; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line); display: grid; place-items: center; }
.mm-ar img { width: 36px; height: 36px; object-fit: contain; }
.mm-ar small { position: absolute; bottom: -6px; right: -6px; background: #241d33; border: 1px solid var(--line);
  border-radius: 99px; font-size: 10px; font-weight: 800; padding: 0 5px; color: var(--body-txt); }
.mm-ar.sm { width: 34px; height: 34px; }
.mm-ar.sm img { width: 28px; height: 28px; }

.mm-filtres { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.mm-filtres .mm-sec { margin: 0; }
.mm-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.mm-ch { display: inline-flex; align-items: center; gap: 6px; width: auto; border: 1px solid rgba(255,255,255,.14);
  background: transparent; color: var(--body-txt); border-radius: 999px; padding: 4px 11px 4px 6px;
  font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.mm-ch img { width: 20px; height: 20px; }
.mm-ch.ic { padding: 4px 9px; }   /* puce de mode : l'icône seule */
.mm-ch.tous { padding-left: 11px; }
.mm-ch:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.mm-ch[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mm-menu { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mm-menu select { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 700; width: auto; }

.mm-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 26px; }
.mm-tmap { background: var(--surface); border: 1px solid var(--surface2); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .12s, transform .12s; }
.mm-tmap:hover { border-color: var(--c); color: inherit; transform: translateY(-1px); }
.mm-vis { position: relative; aspect-ratio: 16 / 8; max-width: 100%; background-size: cover; background-position: center; background-color: #1a1526; }
.mm-vis::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,10,20,.85)); }
.mm-pms { position: absolute; left: 10px; top: 10px; right: 10px; z-index: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.mm-pm { display: inline-flex; gap: 5px; align-items: center; background: rgba(13,10,20,.78); border: 1px solid var(--c);
  color: var(--text); border-radius: 99px; padding: 2px 9px 2px 4px; font-size: 11.5px; font-weight: 800; }
.mm-pm img { width: 18px; height: 18px; }
.mm-pm { padding-right: 8px; font-variant-numeric: tabular-nums; }
.mm-pm small { color: var(--muted); font-weight: 700; }
.mm-nb { position: absolute; right: 10px; bottom: 8px; z-index: 1; font-size: 11.5px; font-weight: 800; color: var(--text); }
.mm-corps { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mm-corps h3 { font-size: 15px; margin: 0; color: var(--text); }
.mm-kpi { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mm-kpi b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Cadres « .cadre-tableau » (css/style.css) : en-tête collant sous la barre. */
.mm-tw { border: 1px solid var(--surface2); border-radius: 12px; --rayon-tableau: 11px; background: rgba(255,255,255,.02); }
.mm-table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; font-size: 13px; } /* separate : voir « .cadre-tableau », css/style.css */
.mm-table th, .mm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  text-align: right; font-variant-numeric: tabular-nums; }
.mm-table tr:last-child td { border-bottom: none; }
.mm-table thead th { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: #120f1b; cursor: pointer; user-select: none; }
.mm-table thead th:hover { color: var(--text); }
.mm-table th.tri, .mm-table td.tri { color: var(--accent); }
.mm-table td.tri { font-weight: 800; }
.mm-table .g { text-align: left; }
.mm-table td.rg { color: var(--muted); font-weight: 800; text-align: center; }
.mm-table td.rg.or { color: var(--yellow); }
.mm-table td.map a, .mm-table td.j a { color: var(--text); font-weight: 700; text-decoration: none; }
.mm-table td.map a:hover, .mm-table td.j a:hover { color: var(--cyan); }
.mm-table td.md { color: var(--body-txt); }
.mm-table td.md img, .mm-table td.a1 img { width: 18px; height: 18px; vertical-align: -4px; object-fit: contain; }
.mm-table td.a1 small { color: var(--muted); }
.mm-table td.eq { color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.mm-tj th, .mm-tj td { padding: 8px 7px; }
/* ── Armes (public/js/stats-armes.js) ─────────────────────────────────
   Classes, nuage popularité / victoires, cartes, tableau, fiche d'une
   arme. Maquette « Stats armes » du 5 octobre 2026. Réutilise les
   briques .mm-* de Maps & modes (puces, tableau, titres, notes). */
.sup { color: var(--win); } .inf { color: #ff8fb4; } .muet { color: var(--muted); }
.am-tete { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 20px; }
.am-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 2px; }
.am-seg button { width: auto; border: 0; background: none; border-radius: 999px; padding: 4px 12px; font: inherit;
  font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.am-seg button[aria-pressed="true"] { background: var(--cyan); color: #0d0a14; }

.am-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 26px; }
.am-cl { text-align: left; width: auto; font: inherit; color: inherit; cursor: pointer; background: var(--surface);
  border: 1px solid var(--surface2); border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.am-cl:hover { border-color: rgba(18,224,224,.5); }
.am-cl.actif { border-color: var(--cyan); background: rgba(18,224,224,.08); }
.am-cl.hors { border-style: dashed; }
.am-cli { display: flex; gap: 4px; min-height: 30px; }
.am-cli img { width: 30px; height: 30px; object-fit: contain; }
.am-cl b { font-size: 14.5px; color: var(--text); }
.am-clb { display: grid; grid-template-columns: 1fr 40px; gap: 8px; align-items: center; }
.am-clb > span { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.am-clb i { display: block; height: 100%; background: var(--cyan); border-radius: 99px; }
.am-clb em { font-style: normal; font-weight: 800; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.am-cl small { font-size: 11.5px; color: var(--muted); }

/* Le nuage peut défiler en largeur sur téléphone : en dessous de 640 px,
   les icônes se marcheraient dessus. */
.am-nw { background: var(--surface); border: 1px solid var(--surface2); border-radius: 16px; padding: 10px 6px 2px; overflow-x: auto; }
.am-nuage { width: 100%; min-width: 640px; height: auto; display: block; }
.am-nuage .grille { stroke: rgba(255,255,255,.06); }
.am-nuage .mid { stroke: rgba(255,255,255,.35); stroke-dasharray: 4 4; }
.am-nuage .axe { fill: var(--muted); font-size: 11px; }
.am-nuage .quad { fill: rgba(255,255,255,.3); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.am-nuage .lab { fill: var(--body-txt); font-size: 11px; font-weight: 700; }
.am-nuage .pt circle { fill: #1d1729; stroke: rgba(18,224,224,.45); stroke-width: 1.5; }
.am-nuage .pt:hover circle { stroke: var(--accent); stroke-width: 2.5; }

.am-leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin: 0 0 10px; }
.am-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.am-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.am-carte { background: var(--surface); border: 1px solid var(--surface2); border-radius: 16px; padding: 13px;
  display: flex; flex-direction: column; gap: 9px; color: inherit; text-decoration: none; }
.am-carte:hover { border-color: rgba(255,47,146,.55); color: inherit; }
.am-ch { display: flex; gap: 10px; align-items: center; min-width: 0; }
.am-ch b { display: block; font-size: 15px; color: var(--text); }
.am-ch span { font-size: 11.5px; color: var(--muted); }
.am-rg { width: 20px; flex: none; text-align: center; font-weight: 800; color: var(--muted); font-size: 12.5px; }
.am-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.am-ic img { width: 46px; height: 46px; object-fit: contain; }
.am-vol { font-size: 12.5px; color: var(--body-txt); }
.am-vol b { color: var(--text); font-size: 17px; }
.am-vol span { color: var(--muted); }
.am-cv { display: grid; grid-template-columns: 62px 1fr 40px; gap: 8px; align-items: center; }
.am-cv b { text-align: right; font-size: 13px; }
.am-dv { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); }
.am-dvm { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(255,255,255,.35); }
.am-dv i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.am-dv i.d { left: 50%; background: var(--win); } .am-dv i.g { right: 50%; background: #ff8fb4; }
.am-st { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.am-st b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text); }
.am-st span { font-size: 11px; color: var(--muted); }
.am-st em { font-style: normal; font-weight: 800; margin-left: 3px; }
.am-cmo { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; }
.am-bm { display: flex; gap: 2px; height: 8px; }
.am-bm i { border-radius: 2px; }
.am-cj { font-size: 12px; color: var(--body-txt); }
.am-cj span { color: var(--muted); }
.mm-table td.am-tn a { color: var(--text); font-weight: 700; text-decoration: none; }
.mm-table td.am-tn a:hover { color: var(--cyan); }
.mm-table td.am-tn img { width: 22px; height: 22px; vertical-align: -6px; object-fit: contain; }
.mm-table td.md small { color: var(--muted); }

/* Fiche d'une arme */
.am-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--surface2);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 22px; }
.am-hic { width: 92px; height: 92px; border-radius: 18px; background: rgba(255,255,255,.05); display: grid; place-items: center; flex: none; }
.am-hic img { width: 80px; height: 80px; object-fit: contain; }
.am-hero h2 { font-size: 24px; line-height: 1.1; margin: 0; color: var(--text); }
.am-cat { font-size: 13px; color: var(--muted); }
.am-kits { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.am-kits span { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,.06); display: grid; place-items: center; border: 1px solid var(--line); }
.am-kits span.joue { border-color: rgba(18,224,224,.5); }
.am-kits img { width: 24px; height: 24px; object-fit: contain; }
.am-kp { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-left: auto; }
.am-kp b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--text); }
.am-kp span { font-size: 11.5px; color: var(--muted); }
.am-kp em { font-style: normal; font-weight: 800; }
.am-kp b > span { font-size: inherit; }
.am-kp b > span.sup { color: var(--win); } .am-kp b > span.inf { color: #ff8fb4; }
.am-fms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 24px; }
.am-fm { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--surface2);
  border-radius: 14px; padding: 12px; box-shadow: inset 0 3px 0 var(--c); }
.am-fm > img { width: 32px; height: 32px; flex: none; }
.am-fm b { display: block; font-size: 14px; color: var(--text); }
.am-fm span { display: block; font-size: 12px; color: var(--muted); }
.am-fm em { font-style: normal; font-weight: 800; }
.am-fm small { font-size: 11px; color: var(--muted); }
.am-bp { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 6px 0 2px; }
.am-bp i { display: block; height: 100%; }
.am-fm.vide { opacity: .45; box-shadow: none; border-style: dashed; }
.am-fm.vide > img { filter: grayscale(1); }
.am-fdeux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.am-pan { background: var(--surface); border: 1px solid var(--surface2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.am-fl { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px 40px; gap: 8px; align-items: center; font-size: 13px; }
.am-fln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.am-flb { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.am-flb i { display: block; height: 100%; background: var(--cyan); }
.am-fl b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.am-fl em { text-align: right; font-style: normal; font-weight: 700; font-size: 12px; }
.am-fj { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.am-fj a { color: var(--text); text-decoration: none; } .am-fj a:hover b { color: var(--cyan); }
.am-fj b { display: block; font-size: 14px; }
.am-fj small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-fr { font-weight: 800; text-align: center; color: var(--muted); }
.am-fr.r1 { color: #ffcc33; } .am-fr.r2 { color: #cfd6e6; } .am-fr.r3 { color: #d08a52; }
.am-av { box-sizing: border-box; width: 40px; height: 40px; margin: 0; font-size: 12px; border-width: 2px; --metal: rgba(255,255,255,.2); }
.am-av.r1 { --metal: #ffcc33; } .am-av.r2 { --metal: #cfd6e6; } .am-av.r3 { --metal: #d08a52; }
.am-fjv { text-align: right; }
.am-lien { font-size: 13px; color: var(--cyan); font-weight: 700; text-decoration: none; }
.am-lien:hover { color: var(--yellow); }

.mm-mini { display: inline-block; width: 46px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.07);
  margin-right: 8px; vertical-align: 1px; overflow: hidden; }
.mm-mini i { display: block; height: 100%; background: var(--cyan); }
.mm-ajc { display: inline-flex; align-items: center; gap: 1px; margin-right: 6px; }
.mm-ajc img { width: 24px; height: 24px; object-fit: contain; }
.mm-ajc small { font-size: 10.5px; color: var(--muted); }

/* Fiche d'une map */
.mm-retour { display: inline-block; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-bottom: 12px; }
.mm-retour:hover { color: var(--text); }
.mm-hero { border-radius: 16px; padding: 22px 20px 18px; min-height: 180px; display: flex; flex-direction: column;
  justify-content: flex-end; background-size: cover; background-position: center; margin-bottom: 22px; border: 1px solid var(--surface2); }
.mm-hero h2 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; margin: 0; line-height: 1.1; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.mm-sous { font-size: 13px; color: var(--body-txt); margin: 4px 0 12px; }
.mm-kpis { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.mm-kpis b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.mm-kpis span { font-size: 11.5px; color: var(--body-txt); }
.mm-cms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 26px; }
.mm-cm { display: flex; gap: 10px; align-items: flex-start; text-align: left; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--surface2); border-radius: 14px; padding: 12px; box-shadow: inset 0 3px 0 var(--c); }
a.mm-cm:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); color: inherit; }
.mm-cm b { display: block; font-size: 14px; color: var(--text); }
.mm-cm span { font-size: 12px; color: var(--muted); }
.mm-cm.actif { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); }
.mm-cm.vide { opacity: .45; box-shadow: none; border-style: dashed; }
.mm-cm.vide .mm-ico { filter: grayscale(1); }
.mm-cmk { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mm-cmk b { display: inline; font-size: 12px; }
.mm-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 26px; }
.mm-rec { background: var(--surface); border: 1px solid var(--surface2); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
a.mm-rec:hover { border-color: rgba(255,47,146,.55); color: inherit; }
.mm-rl { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mm-rq { display: flex; gap: 8px; align-items: center; min-width: 0; }
.mm-ric img { width: 36px; height: 36px; object-fit: contain; }
.mm-rq b { display: block; font-size: 14.5px; color: var(--text); }
.mm-rq small { font-size: 11.5px; color: var(--muted); }
.mm-rv { margin-top: auto; }
.mm-rv b { display: block; font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.mm-rv.grand b { font-size: 34px; color: var(--cyan); }
.mm-rv small { font-size: 11.5px; color: var(--muted); }

/* Joueurs puis armes, l'un sous l'autre : le tableau des joueurs a besoin
   de toute la largeur de la page pour tenir sans défilement. */
.mm-deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.mm-deux > * { min-width: 0; }
.mm-cmd { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.mm-etiq { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mm-grp { display: flex; gap: 4px; flex-wrap: wrap; }
.mm-grp button { width: auto; border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--body-txt);
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mm-grp button:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.mm-grp button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.mm-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; max-width: 560px; margin: 6px auto 16px; }
.mm-marche { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.mm-marche.r1 { --metal: #ffcc33; } .mm-marche.r2 { --metal: #cfd6e6; } .mm-marche.r3 { --metal: #d08a52; }
.mm-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 800;
  background: #241d33; color: var(--text); border: 3px solid var(--metal); margin-bottom: 6px; flex: none; }
.mm-av img { width: 100%; height: 100%; object-fit: cover; }
.mm-marche.r1 .mm-av { width: 62px; height: 62px; }
.mm-qui { font-weight: 800; font-size: 14px; color: var(--text); text-decoration: none; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.mm-qui:hover { color: var(--cyan); }
.mm-eqp { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-val { font-size: 12px; color: var(--body-txt); margin: 3px 0; }
.mm-val b { color: var(--text); }
.mm-pars { display: flex; gap: 2px; margin-bottom: 6px; min-height: 26px; }
.mm-pic img { width: 26px; height: 26px; object-fit: contain; }
.mm-bloc { width: 100%; border-radius: 8px 8px 3px 3px; display: grid; place-items: center; font-weight: 800; color: #0d0a14;
  background: linear-gradient(180deg, var(--metal), color-mix(in srgb, var(--metal) 55%, #0d0a14)); }
.mm-marche.r1 .mm-bloc { height: 70px; font-size: 22px; }
.mm-marche.r2 .mm-bloc { height: 50px; font-size: 18px; }
.mm-marche.r3 .mm-bloc { height: 36px; font-size: 15px; }
.mm-marche.vide .mm-av { border-style: dashed; border-color: rgba(255,255,255,.2); color: var(--muted); background: transparent; }
.mm-marche.vide .mm-bloc { background: rgba(255,255,255,.06); color: var(--muted); }

.mm-armes { background: var(--surface); border: 1px solid var(--surface2); border-radius: 14px; padding: 12px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 28px; }
.mm-armes .mm-plus { grid-column: 1 / -1; }
.mm-la { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px 26px 40px; gap: 8px; align-items: center; font-size: 12.5px; }
.mm-la.ent { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mm-la.ent span:nth-child(n+4) { text-align: right; }
.mm-lic img { width: 28px; height: 28px; object-fit: contain; display: block; }
.mm-lan { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mm-lab { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.mm-lab i { display: block; height: 100%; background: var(--cyan); }
.mm-la b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.mm-law { text-align: right; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.mm-law.sup { color: var(--win); } .mm-law.inf { color: #ff8fb4; }
.mm-plus { align-self: flex-start; width: auto; margin-top: 4px; background: none; border: 0; color: var(--cyan);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
.mm-plus:hover { color: var(--yellow); }
@media (max-width: 480px) {
  .mm-mt { grid-template-columns: 84px 1fr 40px; }
  .mm-podium { gap: 6px; }
  .mm-av { width: 44px; height: 44px; } .mm-marche.r1 .mm-av { width: 52px; height: 52px; }
}

/* ── Builds et bonus des armes (14 octobre 2026, maquette « Statistiques Splatelo ») ──
   Icônes : /images/bonus (scripts/gen-bonus.mjs). Grand rond : bonus principal. */
.am-bo { width: 18px; height: 18px; border-radius: 50%; background: #1b1527; padding: 1px; flex: none; }
.am-bo.p { width: 28px; height: 28px; padding: 2px; border: 1px solid rgba(255,255,255,.14); }
.am-bo.verrou { opacity: .45; }
.am-pc { display: inline-flex; align-items: center; gap: 2px; }
/* La ligne « Bonus » d'une carte : ses 3 bonus qui pèsent le plus. */
.am-cbo { display: grid; grid-template-columns: 62px repeat(3, auto) 1fr; gap: 4px; align-items: center; }   /* aligné sur « Modes » */
.am-cbo .mm-ml { margin-right: 4px; }
/* La section de la fiche. */
.am-bonus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 22px; }
.am-bonus .am-pan { display: grid; gap: 8px; align-content: start; }
.am-sous { margin: 0 0 2px; }
.am-bl { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.am-bl:last-of-type { border-bottom: 0; }
.am-blr { font-weight: 800; color: var(--muted); text-align: center; } .am-blr.r1 { color: var(--yellow); }
.am-blp { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.am-bln { text-align: right; } .am-bln b { display: block; font-size: 13px; color: var(--text); } .am-bln small { display: block; font-size: 11.5px; color: var(--muted); }
.am-ap { display: grid; grid-template-columns: minmax(140px, 210px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; }
.am-ap > span:first-child { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; color: var(--body-txt); min-width: 0; }
.am-apb { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.am-apb i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #6bf0c9); border-radius: 99px; }
.am-ap b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text); }
.am-uniq { display: flex; flex-wrap: wrap; gap: 6px; }
.am-uniq > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: 12.5px; color: var(--body-txt); }
.am-uniq b { color: var(--yellow); }
@media (max-width: 560px) {
  .am-ap { grid-template-columns: minmax(0, 1fr) 64px 34px; }
  .am-bl { grid-template-columns: 20px minmax(0, 1fr); }
  .am-bln { grid-column: 2; text-align: left; }
}
