/* ---------- Statistiques de campagne (/scoreboard, /awards, /players, /chronicles, /hall-of-fame) ---------- */
.stats { max-width: 1180px; margin: 0 auto; padding: 48px 24px 96px; }
.stats h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 6px; }
.stats h2 { font-size: 22px; margin: 0 0 16px; }
.stats .back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.stats-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.camp-select { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.stats select, .stats input[type=search] {
  background: #0d0d0d; color: var(--text); border: 1px solid #3a3a3a; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 14px;
}
.stats-block { margin-top: 48px; }
.center { text-align: center; }
.strong { font-weight: 700; color: #fff; }

.score-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 20px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.sb-side { display: flex; align-items: baseline; gap: 14px; }
.sb-side.sombrage { justify-content: flex-end; }
.sb-name { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sb-points { font-size: clamp(34px, 6vw, 56px); font-weight: 700; color: #fff; line-height: 1; }
.sb-goal { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.sb-bars { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-bar { height: 8px; background: #1e1e1e; border-radius: 4px; overflow: hidden; }
.sb-bars .sb-bar:last-child { transform: scaleX(-1); } /* Sombrages : la barre part de la droite */
.sb-fill { height: 100%; border-radius: 4px; transition: width .6s; }
.sb-fill.empire { background: #b3261e; }
.sb-fill.sombrage { background: #2f5fa8; }

.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.chart-svg .grid { stroke: #262626; stroke-width: 1; }
.chart-svg .axis { fill: var(--muted); font: 500 11px "Montserrat", sans-serif; }
.chart-svg .direct { fill: #e2ded5; font: 600 12px "Montserrat", sans-serif; }
.chart-svg .cross { stroke: #777; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: 12px; min-width: 170px; padding: 8px 12px; background: rgba(0, 0, 0, .9); border: 1px solid #3a3a3a; border-radius: 4px; font-size: 13px; pointer-events: none; }
.chart-tip div { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 14px; color: #d9d6ce; }
.legend span, .fac { display: inline-flex; align-items: center; gap: 7px; }
.chart-table { margin-top: 14px; color: #d9d6ce; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.chart-table table, .chart-table ul { margin-top: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th, .board td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.board th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.board th[data-sort] { cursor: pointer; user-select: none; }
.board th[data-sort]:hover, .board th[aria-sort=ascending], .board th[aria-sort=descending] { color: #fff; }
.board th[aria-sort=descending]::after { content: " \25BE"; }
.board th[aria-sort=ascending]::after { content: " \25B4"; }
.board td.num, .board th.num { text-align: right; font-variant-numeric: tabular-nums; }
.board tbody tr:hover { background: #111; }
.board a { color: #fff; text-decoration: none; }
.board a:hover { text-decoration: underline; text-underline-offset: 3px; }
.board.compact td, .board.compact th { padding: 7px 10px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; }

.duels { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.duel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.duel-names, .duel-counts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.duel-names span { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; }
.duel-bar { display: flex; gap: 2px; height: 10px; margin: 10px 0 6px; }
.duel-bar > div { flex-basis: 0; min-width: 4px; }
.duel-a { border-radius: 4px 0 0 4px; }
.duel-b { border-radius: 0 4px 4px 0; }
.duel-a.empire, .duel-b.empire { background: #b3261e; }
.duel-a.sombrage, .duel-b.sombrage { background: #2f5fa8; }
.duel-counts > span:first-child, .duel-counts > span:last-child { font-size: 18px; font-weight: 700; color: #fff; }

.globals, .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tiles { margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.tile-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tile-value { font-size: 26px; font-weight: 700; color: #fff; }
.tile-sub { font-size: 13px; color: #cfcbc2; }

.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.award h3 { font-size: 18px; }
.award.military { border-top: 2px solid #bdb8ac; }
.award.humor { border-top: 2px dashed #6b6860; }
.award-winner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }
.award-winner a { color: #fff; font-weight: 700; text-decoration: none; }
.award-value { color: var(--muted) !important; font-size: 14px; }

.feed { list-style: none; margin: 0; padding: 0; border-left: 1px solid #3a3a3a; }
.chron { position: relative; padding: 10px 0 18px 24px; }
.chron::before { content: ""; position: absolute; left: -5px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: #555; border: 1px solid #000; }
.chron.empire::before { background: #b3261e; }
.chron.sombrage::before { background: #2f5fa8; }
.chron.victory::before { background: #f2dc8a; width: 13px; height: 13px; left: -7px; }
.chron time { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.chron p { margin: 4px 0 0; color: #e2ded5; }
.chron.officer p, .chron.victory p { color: #fff; font-weight: 700; }

.hall { display: grid; gap: 20px; }
.hall-score { display: flex; gap: 24px; font-size: 20px; font-weight: 700; color: #fff !important; }
.hall-score span { display: inline-flex; align-items: center; gap: 8px; }
.hall-top { margin: 12px 0; padding-left: 20px; color: #e2ded5; }
.hall-top li { margin: 4px 0; }
.hall-top .lg { margin-right: 8px; }
.hall-card a { color: #fff; }
@media (max-width: 640px) {
  .score-board { grid-template-columns: 1fr 1fr; }
  .sb-goal { grid-column: 1 / -1; order: 3; }
}
