:root {
  --bg: #05090f;
  --bg2: #081019;
  --bg3: #0d1826;
  --bg4: #12233a;
  --bg5: #17304f;
  --primary: #8b78ff;
  --primary-dark: #6a57e0;
  --blue: #4C8DFF;
  --blue-soft: #8AB4FF;
  --accent: #00e5cc;
  --gold: #ffb340;
  --gold-soft: #ffcf85;
  --green: #2ecc8a;
  --red: #ff5572;
  --rose: #ff6eb0;
  --amber: #f59e0b;
  --mayhem: #8473ff;
  --text: #e8ecf8;
  --text2: #9ba3d4;
  --text3: #6e759c;
  --border: rgba(76,141,255,0.14);
  --border-glow: rgba(76,141,255,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 12% -8%, rgba(76,141,255,0.14), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(0,229,204,0.07), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(132,115,255,0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: var(--blue); }

.dashboard { display: flex; min-height: 100vh; width: 100%; }

/* ── Sidebar ── */
.sidebar {
  width: 264px; flex-shrink: 0;
  background: linear-gradient(180deg, #101d33 0%, var(--bg3) 55%, var(--bg2) 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 30px -14px rgba(0,0,0,0.7);
  padding: 26px 18px; display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: linear-gradient(135deg, var(--blue), var(--primary));
  box-shadow: 0 6px 18px -6px rgba(76,141,255,0.7);
}
.brand-name { font-family: 'Outfit', system-ui, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: 0.05em;
  background: linear-gradient(90deg, #fff, var(--blue-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 11.5px; color: var(--text3); margin-top: 2px; }

nav.navlinks { display: flex; flex-direction: column; gap: 4px; }
.navlink {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--text2);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.nav-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.nav-tx { flex: 1; min-width: 0; }
a.navlink:hover { background: var(--bg4); color: var(--text); transform: translateX(2px); }
a.navlink:hover .nav-ic { background: color-mix(in srgb, var(--c) 30%, transparent); }
.navlink.active {
  background: color-mix(in srgb, var(--c) 15%, var(--bg4));
  border-left-color: var(--c); color: var(--text);
  box-shadow: 0 0 20px -7px color-mix(in srgb, var(--c) 75%, transparent);
}
.navlink.active .nav-ic { background: var(--c); box-shadow: 0 0 14px -3px var(--c); }
.navlink.soon { color: #4a5170; cursor: default; }
.navlink.soon .nav-ic { filter: grayscale(0.5); opacity: 0.75; }
.navlink.soon .tag { margin-left: auto; font-size: 9px; font-weight: 800; background: var(--bg4); padding: 2px 8px; border-radius: 999px; color: var(--text3); }

.profile { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.profile-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-soft),var(--blue)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #ffffff; font-size: 14px; box-shadow: 0 0 14px -2px rgba(76,141,255,0.55); }
.profile-name { font-size: 13.5px; font-weight: 800; }
.profile-sub { font-size: 11.5px; color: var(--text3); }

/* ── Main ── */
main { flex: 1; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.page-title { font-family: 'Outfit', system-ui, sans-serif; font-size: 28px; font-weight: 800; }
.page-sub { font-size: 13.5px; color: var(--text3); margin-top: 4px; }

.card {
  --card-accent: var(--blue);
  position: relative;
  background: linear-gradient(160deg, #122236, var(--bg3) 55%);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 14px 32px -18px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: var(--card-accent); opacity: 0.5; transition: opacity 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-accent) 45%, transparent);
  box-shadow: 0 22px 44px -20px rgba(0,0,0,0.85), 0 0 26px -10px color-mix(in srgb, var(--card-accent) 55%, transparent);
}
.card:hover::before { opacity: 1; }

/* ── Tiles / chips / pills ── */
.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.tiles7 { display: grid; grid-template-columns: 0.86fr 0.96fr 0.82fr 0.74fr 1.34fr 0.86fr 0.9fr; gap: 12px; }
.tiles7 .tile { padding: 14px 12px; }
.tiles7 .tile-value { font-size: 24px; }
.tiles7 .tile-kda .tile-value { font-size: 18.5px; letter-spacing: 0; white-space: nowrap; }
.tile-sub { font-size: 10.5px; color: var(--text2); font-weight: 700; margin-top: 4px; white-space: nowrap; }
.tile {
  padding: 20px 22px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.tile-label { justify-content: center; }
.tile:nth-child(1) { --card-accent: var(--blue); }
.tile:nth-child(2) { --card-accent: var(--green); }
.tile:nth-child(3) { --card-accent: var(--gold); }
.tile:nth-child(4) { --card-accent: var(--rose); }
.tile:nth-child(5) { --card-accent: var(--blue-soft); }
.tile:nth-child(6) { --card-accent: var(--gold); }
.tile:nth-child(7) { --card-accent: var(--accent); }
@media (max-width: 1200px) { .tiles7 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 720px)  { .tiles7 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tile::after {
  content: ""; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 70%); pointer-events: none;
}
.tile-label { display: flex; align-items: center; gap: 8px; color: var(--text3); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.tile-label svg { color: var(--card-accent); }
.tile-value { font-family: 'Outfit', system-ui, sans-serif; font-size: 30px; font-weight: 800; position: relative; }
.tile-unit { font-size: 15px; color: var(--text3); font-weight: 700; }

.chipbar { display: flex; gap: 4px; background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: inset 0 1px 4px rgba(0,0,0,0.3); }
.chip { padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 800; cursor: pointer; border: none; font-family: inherit; background: transparent; color: var(--text2); transition: all 0.15s ease; }
.chip.on { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); color: #ffffff; box-shadow: 0 0 16px -4px rgba(76,141,255,0.65); }

.pillbar { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; cursor: pointer; border: 1px solid var(--border); font-family: inherit; white-space: nowrap; background: var(--bg3); color: var(--text2); transition: all 0.15s ease; }
.pill:hover { border-color: var(--border-glow); color: var(--text); transform: translateY(-1px); }
.pill.on { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); color: #ffffff; border-color: transparent; box-shadow: 0 0 16px -4px rgba(76,141,255,0.65); }

.avatar { border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(255,255,255,0.9); }
.chevron { text-align: center; color: var(--text3); font-size: 11px; }

/* ── Lignes "style scoreboard" (fidèles au vrai scoreboard du bot) ── */
.sb-table { border-radius: 14px; overflow: hidden; border: 1px solid rgba(76,141,255,0.12); }
.sb-scroll { overflow-x: auto; }
.sb-head, .sb-row {
  display: grid;
  /* toutes les colonnes s'étirent proportionnellement -> le tableau reste
     équilibré quelle que soit la largeur (avant : seul "Champion" s'étirait). */
  grid-template-columns:
    minmax(150px, 1.5fr) minmax(76px, 0.9fr) minmax(42px, 0.5fr) minmax(40px, 0.5fr)
    minmax(58px, 0.7fr) minmax(150px, 1.9fr) minmax(46px, 0.55fr) minmax(34px, 0.42fr)
    minmax(58px, 0.7fr) minmax(54px, 0.66fr) 54px;
  align-items: center; gap: 10px; min-width: 900px;
}
.sb-head {
  padding: 9px 14px; background: #0c1420; border-bottom: 1px solid rgba(76,141,255,0.14);
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3);
}
.sb-head .c { text-align: center; }
.sb-row-wrap { border-bottom: 1px solid rgba(76,141,255,0.06); }
.sb-row-wrap:last-child { border-bottom: none; }
.sb-row {
  padding: 8px 14px; cursor: pointer; background: #12151f;
  border-left: 3px solid transparent; transition: background 0.13s ease, border-color 0.13s ease;
}
.sb-row.win  { border-left-color: var(--green); background: linear-gradient(90deg, rgba(46,204,138,0.10), #12151f 26%); }
.sb-row.loss { border-left-color: var(--red);   background: linear-gradient(90deg, rgba(255,92,92,0.10), #12151f 26%); }
.sb-row:hover { background: #171b28; }
.sb-row .c { text-align: center; }
.sb-champ { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sb-champ-txt { min-width: 0; }
.sb-champ-name { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-champ-sub { font-size: 10px; color: var(--text3); font-weight: 700; margin-top: 1px; }
.sb-kda { font-size: 12.5px; font-weight: 800; color: #d7dcec; letter-spacing: 0.2px; }
.sb-kdar { font-size: 12px; font-weight: 800; }
.sb-dmg { font-size: 12px; font-weight: 800; color: #ffb87a; }
.sb-heal { font-size: 12px; font-weight: 700; color: #7ee0b0; }
.sb-tank { font-size: 12px; font-weight: 700; color: #9fb0d8; }
.sb-dim { font-size: 11.5px; font-weight: 700; color: var(--text2); }
.sb-items { display: flex; gap: 3px; align-items: center; }
.sb-items.none { color: var(--text3); font-size: 11px; justify-content: flex-start; padding-left: 4px; }
.sb-items .it { width: 21px; height: 21px; border-radius: 5px; background: #0b0e16; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); overflow: hidden; flex-shrink: 0; }
.sb-items .it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-items .it.miss { background: #0b0e16; }
.sb-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.clipbtn {
  border: 1px solid var(--border); background: var(--bg4); color: var(--text2);
  width: 26px; height: 24px; border-radius: 7px; font-size: 12px; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; position: relative; transition: all 0.13s ease;
}
.clipbtn:hover { border-color: var(--border-glow); background: var(--bg5); }
.clipbtn.has { background: linear-gradient(135deg, #ff6eb0, #b5179e); border-color: transparent; box-shadow: 0 0 12px -3px rgba(255,110,176,0.7); }
.clipbtn .plus { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 9px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.clip-block { margin-top: 14px; }
.clip-frame { position: relative; width: 100%; max-width: 720px; margin: 0 auto; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 12px 36px rgba(0,0,0,0.5); }
.clip-frame iframe, .clip-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-link { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 10px; background: var(--bg4); border: 1px solid var(--border); font-weight: 800; font-size: 13px; }
.clipbtn-spacer { display: inline-block; width: 26px; height: 24px; }

/* ── Accès Invité / Admin ── */
.role-badge { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.role-badge .rb { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--bg4); color: var(--text3); }
.role-badge .rb.admin { background: linear-gradient(135deg, var(--green), #1f9e6a); color: #04120c; }
.role-badge .rb-link { background: none; border: none; color: var(--text3); font-size: 10px; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; }
.role-badge .rb-link:hover { color: var(--blue-soft); }

#gate {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3, 6, 12, 0.86); backdrop-filter: blur(6px);
}
.gate-card {
  width: 100%; max-width: 360px; text-align: center;
  background: linear-gradient(160deg, #14243a, var(--bg3) 60%); border: 1px solid var(--border-glow);
  border-radius: 22px; padding: 34px 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.gate-logo { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: linear-gradient(135deg, var(--blue), var(--primary)); box-shadow: 0 8px 24px -6px rgba(76,141,255,0.7); }
.gate-title { font-family: 'Outfit', system-ui, sans-serif; font-size: 21px; font-weight: 800; }
.gate-sub { font-size: 13px; color: var(--text3); margin: 6px 0 22px; }
.gate-btn {
  display: block; width: 100%; padding: 12px 16px; margin-top: 10px; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  background: var(--bg4); color: var(--text); border: 1px solid var(--border); transition: all 0.14s ease;
}
.gate-btn:hover { border-color: var(--border-glow); background: var(--bg5); }
.gate-btn.primary { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); color: #fff; border-color: transparent; }
.gate-btn.primary:hover { box-shadow: 0 0 20px -4px rgba(76,141,255,0.7); }
.gate-note { font-size: 11px; color: var(--text3); margin-top: 14px; line-height: 1.5; }
#gate-login input {
  display: block; width: 100%; padding: 11px 14px; margin-top: 10px; border-radius: 11px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 13.5px;
}
#gate-login input:focus { outline: none; border-color: var(--border-glow); }
.gate-err { color: var(--red); font-size: 12px; font-weight: 700; margin-top: 10px; min-height: 14px; }

/* Historique : petits éléments */
.g-time { font-size: 12.5px; font-weight: 800; color: var(--text2); }

.expand-panel { margin: 10px 0 4px; padding: 18px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--border); display: none; }
.expand-panel.open { display: block; }
.sb-frame { display: flex; justify-content: center; }
.expand-panel img, .sb-card img, .bw-grid img, .hl-grid img, #detail-img {
  max-width: 100%; width: 100%; height: auto; border-radius: 14px; display: block; margin: 0 auto;
  background: var(--bg); box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.expand-panel .sb-frame img, #detail-img { max-width: 900px; }
.sb-caption { font-size: 12px; color: var(--text2); margin-bottom: 12px; text-align: center; font-weight: 700; }

/* ── Champion table (mode pages) ── */
.champ-table-head, .champ-row {
  display: grid; grid-template-columns: 56px 1fr 90px 80px 220px; align-items: center; gap: 10px;
}
.champ-table-head { font-size: 10px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 12px 8px; }
.champ-row { padding: 10px 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(76,141,255,0.08), var(--bg4) 35%); border: 1px solid rgba(76,141,255,0.08); transition: all 0.15s ease; }
.champ-row:hover { border-color: var(--border-glow); transform: translateX(2px); }
.champ-row + .champ-row { margin-top: 5px; }
.champ-name { font-size: 13.5px; font-weight: 800; }
.champ-games { font-size: 12.5px; color: var(--text2); font-weight: 700; }
.champ-wr { font-size: 13px; font-weight: 800; }
.champ-kda { font-size: 12.5px; color: var(--text2); font-weight: 700; }

/* ── Activité / heatmap ── */
.cal-nav { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg4); color: var(--text2); font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.cal-nav:hover { border-color: var(--border-glow); color: var(--text); background: var(--bg5); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 10px; font-weight: 800; color: var(--text3); text-align: center; margin-bottom: 7px; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 46px; gap: 5px; }
.cal-day { border-radius: 8px; padding: 5px 7px; position: relative; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.cal-day:not(.empty):hover { transform: scale(1.05); box-shadow: 0 0 0 2px rgba(255,255,255,0.15); z-index: 1; }
.cal-day.empty { background: transparent !important; }
.cal-daynum { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.82); }
.cal-cnt { align-self: flex-end; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.cal-daynum { text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.legend { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; font-size: 10px; color: var(--text3); font-weight: 700; }
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; }

/* ── Tops — podium ── */
.podium { display: flex; align-items: flex-end; gap: 18px; justify-content: center; padding: 8px 0 4px; flex-wrap: wrap; }
.podium-card {
  --card-accent: var(--blue);
  cursor: pointer; padding: 20px 18px; width: 232px; text-align: center; border-radius: 20px;
}
.podium-card .rank-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 900; letter-spacing: 0.06em;
  padding: 3px 11px; border-radius: 999px; text-transform: uppercase;
  color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 40%, transparent);
}
.podium-card.rank1 { padding: 26px 20px; width: 258px; margin-bottom: 16px; }
.podium-card.rank1 .rank-badge { color: #2a1a05; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); box-shadow: 0 0 18px -4px rgba(255,179,64,0.7); }
.podium-card.active { box-shadow: 0 0 0 2px var(--card-accent) inset, 0 0 28px -6px color-mix(in srgb, var(--card-accent) 65%, transparent); }
.podium-avatar-wrap { margin: 12px auto; position: relative; }
.podium-avatar-wrap .avatar, .podium-avatar-wrap .avatar-img { margin: 0 auto; box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 30%, transparent); }
.podium-champ { font-size: 15px; font-weight: 800; }
.podium-card.rank1 .podium-champ { font-size: 17px; }
.podium-val { font-family: 'Outfit', system-ui, sans-serif; font-size: 18px; font-weight: 800; margin-top: 5px; color: var(--text); }
.podium-card.rank1 .podium-val { font-size: 23px; color: var(--gold-soft); }
.podium-mode { font-size: 11px; font-weight: 800; margin-top: 7px; }

.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-rankchip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.detail-title { font-family: 'Outfit', system-ui, sans-serif; font-size: 19px; font-weight: 800; }
.detail-meta { font-size: 12.5px; color: var(--text2); }

/* ── Idea badge ── */
.idea-badge { display: flex; align-items: center; gap: 6px; background: rgba(0,229,204,0.1); border: 1px solid rgba(0,229,204,0.3); border-radius: 999px; padding: 5px 12px; }
.idea-badge span { font-size: 10.5px; font-weight: 800; color: var(--accent); letter-spacing: 0.03em; }

/* ── Historique ── */
.day-group { display: flex; flex-direction: column; gap: 0; }
.day-header { display: flex; align-items: baseline; gap: 10px; padding: 4px 4px 8px; }
.day-date { font-family: 'Outfit', system-ui, sans-serif; font-size: 14.5px; font-weight: 800; }
.day-summary { font-size: 12px; color: var(--text3); font-weight: 700; }
.hist-hint { font-size: 12px; color: var(--text3); font-weight: 600; margin-bottom: 14px; }
.hist-hint b { color: var(--rose); }

/* ── Général : splash art champion le plus joué ── */
.splash-card { position: relative; overflow: hidden; padding: 0; min-height: 220px; display: flex; align-items: flex-end; --card-accent: var(--rose); }
.splash-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.splash-card .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,9,15,0.92) 0%, rgba(5,9,15,0.55) 45%, rgba(5,9,15,0.15) 100%); }
.splash-card .inner { position: relative; padding: 22px 24px; }
.splash-card .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rose); }
.splash-card .name { font-family: 'Outfit', system-ui, sans-serif; font-size: 30px; font-weight: 800; margin-top: 4px; }
.splash-card .meta { font-size: 12.5px; color: var(--text2); margin-top: 4px; font-weight: 700; }

/* ── Champion Pool ── */
.cp-head, .cp-row { display: grid; grid-template-columns: 160px 48px 122px 78px minmax(0,1fr); align-items: center; gap: 8px; min-width: 1074px; }
.cp-head { padding: 0 14px 8px; align-items: end; }
.cp-head .c, .cp-row .c { text-align: center; }
.cp-sortnote { font-size: 11px; color: var(--text3); font-weight: 600; line-height: 1.5; }
.cp-sortnote b { color: var(--rose); font-weight: 800; }
.cp-sortbtn {
  font-family: inherit; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text3); background: none; border: none; cursor: pointer; padding: 3px 4px; border-radius: 6px;
  white-space: nowrap; transition: color 0.12s ease, background 0.12s ease;
}
.cp-sortbtn:hover { color: var(--text); background: rgba(76,141,255,0.1); }
.cp-sortbtn.on { color: var(--rose); background: rgba(255,110,176,0.14); }
.cp-kdahead { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; }
.cp-head .cp-tag-slot { display: flex; justify-content: center; align-items: flex-end; }
.cp-row-wrap { border-bottom: 1px solid rgba(76,141,255,0.06); }
.cp-row-wrap:last-child { border-bottom: none; }
.cp-row { padding: 10px 14px; background: #12151f; border-left: 3px solid var(--rose); }
/* Étiquettes records : grille à colonnes FIXES — 2 spéciales (Penta/Perfect) + 6 stats,
   qui s'étirent pour occuper toute la largeur restante. Chaque colonne = toujours la
   même stat -> toutes les "Dégâts" alignées, etc. */
.cp-tags { display: grid; grid-template-columns: 58px 64px repeat(6, minmax(68px,1fr)); gap: 5px; }
.cp-tag-slot { min-width: 0; display: flex; }
.cp-champ { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-champ-name { font-size: 13.5px; font-weight: 800; }
.cp-games { font-size: 12.5px; font-weight: 800; }
.cp-sub { font-size: 10.5px; color: var(--text3); font-weight: 700; }
.cp-tag {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 100%; min-height: 40px; text-align: center; line-height: 1.15;
  font-size: 11px; font-weight: 800; padding: 5px 5px; border-radius: 8px; cursor: pointer;
  background: color-mix(in srgb, var(--tc, var(--blue)) 15%, transparent);
  color: var(--tc, var(--blue)); border: 1px solid color-mix(in srgb, var(--tc, var(--blue)) 35%, transparent);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.cp-tag:hover { background: color-mix(in srgb, var(--tc, var(--blue)) 28%, transparent); transform: translateY(-1px); }
.cp-tag.on { background: var(--tc, var(--blue)); color: #0b0e16; box-shadow: 0 0 12px -3px var(--tc, var(--blue)); }
.cp-tag small { font-size: 11px; font-weight: 900; opacity: 0.92; }

/* ── Teammates ── */
.tm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.tm-search { flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 13px; }
.tm-search::placeholder { color: var(--text3); }
.tm-count { font-size: 12px; color: var(--text3); font-weight: 700; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tm-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #12151f; border: 1px solid rgba(76,141,255,0.1); border-left: 3px solid var(--gold); }
.tm-rank { font-family: 'Outfit', system-ui, sans-serif; font-size: 13px; font-weight: 800; color: var(--text3); width: 30px; flex-shrink: 0; }
.tm-body { flex: 1; min-width: 0; }
.tm-name { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-line { font-size: 11.5px; color: var(--text2); font-weight: 700; margin-top: 2px; }
.tm-last { font-size: 10.5px; color: var(--text3); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.tm-wr { font-weight: 800; }

/* ── Ace & Perfect / cartes de section ── */
.section-title { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', system-ui, sans-serif; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.section-title .badge-count { font-size: 12px; font-weight: 800; color: var(--text3); background: var(--bg4); border-radius: 999px; padding: 2px 10px; }

/* ── Augments (ARAM Mayhem) ── */
.aug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.aug-chip { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 11px; background: #12151f; border: 1px solid rgba(76,141,255,0.1); }
.aug-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #0b0e16; box-shadow: 0 0 0 2px var(--ring, #aeb7c8); display: flex; align-items: center; justify-content: center; }
.aug-ic img { width: 100%; height: 100%; object-fit: cover; }
.aug-name { font-size: 12px; font-weight: 700; flex: 1; min-width: 0; }
.aug-cnt { font-size: 12px; font-weight: 900; color: var(--gold-soft); }

/* ── Best / Worst côte à côte (pages de mode) ── */
.bw-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.bw-grid .sb-frame { overflow: hidden; }
@media (max-width: 1000px) { .bw-grid { grid-template-columns: 1fr; } }

/* ── Historique : filtres + charge incrémentale ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input {
  padding: 8px 12px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 700;
}
.filters .fbtn {
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg3);
  color: var(--text2); font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.filters .fbtn.on { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); color: #fff; border-color: transparent; }
.load-more { text-align: center; margin-top: 16px; }

/* ── Highlights ── */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.hl-card { padding: 0; overflow: hidden; --card-accent: var(--rose); }
.hl-card .clip-frame { border-radius: 0; max-width: none; margin: 0; box-shadow: none; }
.hl-meta { padding: 14px 16px; }
.hl-title { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hl-sub { font-size: 11.5px; color: var(--text3); font-weight: 700; margin-top: 3px; }
.hl-sb-link { font-size: 11.5px; font-weight: 800; color: var(--blue-soft); cursor: pointer; margin-top: 8px; display: inline-block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .dashboard { flex-direction: column; }
  .sidebar { position: static; height: auto; width: 100%; flex-direction: row; flex-wrap: wrap; }
  nav.navlinks { flex-direction: row; flex-wrap: wrap; }
  .profile { margin-top: 0; border-top: none; }
  main { padding: 24px; }
  .tiles4, .champ-table-head, .champ-row { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════ VALORANT — overrides & composants ════════════════════ */
:root {
  --blue: #F56565;
  --blue-soft: #ff9a9a;
  --accent: #F56565;
  --border: rgba(245,101,101,0.16);
  --border-glow: rgba(245,101,101,0.5);
  --mayhem: #F56565;
}
body {
  background-image:
    radial-gradient(1100px 620px at 12% -8%, rgba(245,101,101,0.13), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(255,180,64,0.06), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(245,101,101,0.08), transparent 60%);
}
.brand-logo { background: linear-gradient(135deg, #F56565, #b5179e); box-shadow: 0 6px 18px -6px rgba(245,101,101,0.7); }
.brand-name { background: linear-gradient(90deg, #fff, #ff9a9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sidebar { background: linear-gradient(180deg, #2a1420 0%, var(--bg3) 55%, var(--bg2) 100%); }
.profile-avatar { background: linear-gradient(135deg, #F56565, #b5179e); }

/* Scoreboard "ligne" — 10 colonnes Valorant */
.sb-head, .sb-row {
  grid-template-columns:
    minmax(168px, 1.7fr) minmax(78px, 0.92fr) minmax(40px, 0.42fr)
    minmax(46px, 0.5fr) minmax(46px, 0.5fr) minmax(46px, 0.5fr)
    minmax(36px, 0.42fr) minmax(36px, 0.42fr) minmax(74px, 0.9fr) 52px;
  min-width: 860px;
}
.sb-row.draw { border-left-color: #9ba3d4; background: linear-gradient(90deg, rgba(155,163,212,0.08), #12151f 26%); }
.sb-score { font-size: 10px; font-weight: 800; color: var(--text3); margin-left: 4px; }
.sb-acs { font-size: 12px; font-weight: 800; }
.sb-multi { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
.mk { font-size: 9px; font-weight: 900; padding: 1px 4px; border-radius: 5px; letter-spacing: 0.02em; }
.mk.ace { background: rgba(255,180,64,0.18); color: #ffb340; }
.mk.k4 { background: rgba(46,204,138,0.16); color: #2ecc8a; }
.mk.k3 { background: rgba(155,163,212,0.16); color: #b9c2e4; }
.avatar { border-radius: 10px; }
.sb-champ .avatar { border-radius: 8px; }

/* Tableau scoreboard complet (panneau déplié) */
.sbt-wrap { margin-top: 10px; }
.sbt { min-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.sbt-team { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #10131c; }
.sbt-team.blue { border-left: 3px solid #3E9CFF; }
.sbt-team.red { border-left: 3px solid #F56565; }
.sbt-team-h { padding: 7px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: #0c1119; color: var(--text2); }
.sbt-team.won .sbt-team-h { color: #ffd166; }
.sbt-row {
  display: grid;
  grid-template-columns: minmax(150px,2fr) minmax(70px,1fr) repeat(10, minmax(40px,0.6fr));
  align-items: center; gap: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700;
}
.sbt-row.sbt-h { font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--text3); background: #0c1119; letter-spacing: 0.03em; }
.sbt-row:not(.sbt-h):nth-child(even) { background: rgba(255,255,255,0.02); }
.sbt-row.me { background: rgba(245,101,101,0.14); }
.sbt-row .c { text-align: center; }
.sbt-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sbt-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbt-tag { color: var(--text3); font-weight: 700; }
.sbt-tier { font-size: 10.5px; color: var(--text3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbt-k { color: #3ECF8E; } .sbt-d { color: #F56565; } .sbt-a { color: #d7dcec; }

/* Rang */
.rank-hero { display: flex; align-items: center; gap: 16px; }
.rank-hero img { width: 62px; height: 62px; object-fit: contain; }
.rank-name { font-family: 'Outfit', system-ui, sans-serif; font-size: 20px; font-weight: 800; }
.rank-dist { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rank-dist-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--text2); }
.rank-dist-row img { width: 18px; height: 18px; object-fit: contain; }
.rank-dist-bar { height: 8px; border-radius: 4px; background: #202540; overflow: hidden; }
.rank-dist-bar > div { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #F56565, #ffb340); }

/* Maps */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.map-card { position: relative; overflow: hidden; border-radius: 16px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; cursor: pointer; border: 1px solid var(--border); }
.map-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; }
.map-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,16,0.35), rgba(8,10,16,0.9)); z-index: 1; }
.map-card > * { position: relative; z-index: 2; }
.map-card .map-name { font-family: 'Outfit', system-ui, sans-serif; font-size: 18px; font-weight: 800; }
.map-card .map-stats { display: flex; gap: 12px; font-size: 12px; font-weight: 700; margin-top: 6px; color: #cfd6ee; }

/* Agent pool — grille adaptée (7 étiquettes) */
.cp-head, .cp-row { grid-template-columns: 156px 46px 118px 58px 58px 74px minmax(0,1fr); min-width: 1120px; }
.cp-tags { grid-template-columns: repeat(7, minmax(72px,1fr)); }
.cp-row { border-left-color: #F56565; }
.cp-sortbtn.on { color: #F56565; background: rgba(245,101,101,0.14); }
.cp-sortnote b { color: #F56565; }
.ap-portrait { position: absolute; right: 0; top: 0; height: 100%; width: 40%; object-fit: cover; object-position: center 12%; opacity: 0.14; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cp-row { position: relative; overflow: hidden; }
.cp-row > *:not(.ap-portrait) { position: relative; z-index: 1; }
