/* SKLD League (29-11) : LA MONTÉE.
   /ligue : les huit divisions en escalier, de la D6 au Champion ; /ligue/<division> : le hall (l'insigne en objet, dans le
   halo de sa matière), le podium, le classement découpé en zones. Aucun flou, aucun fondu de mélange, aucune boucle
   d'animation (l'allègement du 28-11 : le site doit tourner sur une petite config) ; les insignes sont des WebP
   transparents chargés à leur taille. */

.lg6, .lg6-hall, .lg6-classe, .lg6-autres {
  --lg6-os: #e8e9e4; --lg6-gris: rgba(232, 233, 228, .58); --lg6-fil: rgba(232, 233, 228, .12);
  --lg6-lime: #89f421; --lg6-carte: linear-gradient(180deg, #161917, #0b0c0b);
  --dalle-base: 150px; --dalle-pas: 30px; --halo: 232, 233, 228;
}
/* la matière de chaque division : son halo seulement (le texte reste os et lime) ; la D6 (cuivre) prend le chrome */
.lg6--champion { --halo: 137, 244, 33; } .lg6--elite { --halo: 226, 233, 230; } .lg6--d1 { --halo: 255, 79, 180; }
.lg6--d2 { --halo: 155, 107, 255; } .lg6--d3 { --halo: 63, 123, 255; } .lg6--d4 { --halo: 47, 214, 200; }
.lg6--d5 { --halo: 47, 212, 127; } .lg6--d6 { --halo: 200, 204, 199; }

/* les lettres de chrome (Kiyo aime le chrome) */
.lg6-titre, .lg6-hall__mot, .lg6-podium__rang {
  background: linear-gradient(180deg, #fbfbf8 8%, #b9bdb9 46%, #eef0ec 64%, #6d726e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- /ligue : la bande sombre et l'échelle */
.lg6 { position: relative; color: var(--lg6-os); padding: clamp(48px, 6vw, 92px) 0 clamp(56px, 7vw, 104px);
  background: radial-gradient(70% 90% at 88% 0%, rgba(137, 244, 33, .09), transparent 62%),
              linear-gradient(180deg, #0c0d0c, #050505); }
.lg6 a { color: inherit; }
.lg6-tete { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(26px, 3.4vw, 46px); }
.lg6-titre { font-size: clamp(34px, 10.5vw, 160px); line-height: .9; padding-top: .1em; }

.lg6-echelle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px; align-items: end; }
.lg6-marche { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lg6-marche__insigne { position: relative; z-index: 1; display: block; margin-bottom: -22px;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.lg6-marche__insigne::before { content: ""; position: absolute; inset: -34%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--halo), .34), rgba(var(--halo), .06) 62%, transparent 72%); }
.lg6-marche__insigne img { display: block; width: clamp(64px, 7.6vw, 112px); height: auto; aspect-ratio: 1; }
.lg6-marche:hover .lg6-marche__insigne, .lg6-marche:focus-within .lg6-marche__insigne { transform: translateY(-8px); }
.lg6-marche__dalle { box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 6px;
  min-height: calc(var(--dalle-base) + var(--i) * var(--dalle-pas)); padding: 30px 12px 12px;
  border-radius: 14px 14px 4px 4px; background: var(--lg6-carte);
  box-shadow: inset 0 2px 0 rgba(var(--halo), .9), inset 0 0 0 1px var(--lg6-fil); }
.lg6-marche__nom { font-family: var(--f-mega); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(11px, 1.3vw, 19px); line-height: 1; text-decoration: none; white-space: nowrap; overflow: hidden; }
.lg6-marche__nom:hover, .lg6-marche__nom:focus-visible { color: var(--lg6-lime); }
.lg6-tops { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: auto; font-size: 12.5px;
  font-variant-numeric: tabular-nums; }
.lg6-tops td { padding: 5px 0; border-top: 1px solid var(--lg6-fil); }
.lg6-tops td.r { width: 1.5em; color: var(--lg6-gris); }
.lg6-tops td.j { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lg6-tops td.j a { text-decoration: none; }
.lg6-tops td.n { width: 3.2em; text-align: right; font-weight: 700; color: var(--lg6-lime); }
.lg6-tops tr.is-me td.j a { color: var(--lg6-lime); }

.lg6-toi { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(28px, 3.4vw, 44px); padding: 14px 18px;
  border-radius: 18px; background: var(--lg6-carte); box-shadow: inset 0 2px 0 rgba(var(--halo), .9), inset 0 0 0 1px var(--lg6-fil); }
.lg6-toi img { width: 72px; height: 72px; flex: none; }
.lg6-toi__texte { display: grid; gap: 2px; min-width: 0; }
.lg6-toi__div { font-family: var(--f-mega); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 26px; line-height: 1; }
.lg6-toi__rang { color: var(--lg6-gris); font-size: 14px; }
.lg6-toi__btn { margin-left: auto; }

.lg6-regles { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lg6-regles li { padding-top: 12px; border-top: 2px solid var(--lg6-fil); font-family: var(--f-mega); font-weight: 900;
  text-transform: uppercase; font-size: 17px; line-height: 1.05; }

/* ---------------------------------------------------------------- /ligue : tous les classements */
.lg6-autres { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); }
.lg6-autres__t { margin: 0 0 18px; font-family: var(--f-mega); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em; }
.lg6-autres__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lg6-autre { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border-radius: 18px; text-decoration: none;
  color: var(--lg6-os); background: var(--lg6-carte); box-shadow: inset 0 0 0 1px var(--lg6-fil);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease; }
.lg6-autre svg { color: var(--lg6-lime); }
.lg6-autre b { font-family: var(--f-mega); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; }
.lg6-autre:hover, .lg6-autre:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(137, 244, 33, .5); }

/* ---------------------------------------------------------------- /ligue/<division> : le hall */
.lg6-hall { position: relative; overflow: hidden; color: var(--lg6-os);
  padding: clamp(112px, 11vw, 150px) 0 clamp(40px, 5vw, 70px);
  background: radial-gradient(52% 70% at 74% 46%, rgba(var(--halo), .2), transparent 72%),
              linear-gradient(180deg, #0c0d0c, #050505); }
.lg6-hall a { color: inherit; }
.lg6-hall__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  gap: clamp(20px, 4vw, 64px); }
.lg6-hall__texte { min-width: 0; container-type: inline-size; }
/* le nom tient sur une ligne, quelle que soit sa longueur (D1, ÉLITE, CHAMPION) : sa taille suit la colonne et ses lettres */
.lg6-hall__mot { font-size: min(200px, calc(100cqi / (var(--n, 5) * 1))); line-height: .9; padding-top: .12em; margin: 6px 0 0;
  white-space: nowrap; }
.lg6-hall__releves { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 24px 0 26px; }
.lg6-hall__releves div { display: grid; gap: 6px; }
.lg6-hall__releves dd { margin: 0; font-family: var(--f-mega); font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1;
  font-variant-numeric: tabular-nums; }
.lg6-hall__releves dd.on { color: var(--lg6-lime); }
.lg6-hall__voisins { display: flex; flex-wrap: wrap; gap: 10px; }
.lg6-voisin { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px;
  text-decoration: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--lg6-fil);
  transition: box-shadow .25s ease, transform .25s ease; }
.lg6-voisin--toutes { padding-left: 14px; }
.lg6-voisin img { width: 40px; height: 40px; }
.lg6-voisin span { display: grid; gap: 2px; }
.lg6-voisin b { font-family: var(--f-mega); font-weight: 900; text-transform: uppercase; font-size: 15px; line-height: 1; }
.lg6-voisin:hover, .lg6-voisin:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(137, 244, 33, .55); }
.lg6-hall__objet { position: relative; display: grid; place-items: center; min-height: 300px; }
.lg6-hall__objet::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--halo), .42), rgba(var(--halo), .08) 58%, transparent 72%); }
.lg6-hall__objet::after { content: ""; position: absolute; bottom: 2%; width: 58%; height: 26px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }
.lg6-hall__insigne { position: relative; z-index: 1; width: min(360px, 68vw); height: auto;
  -webkit-box-reflect: below -4px linear-gradient(transparent 64%, rgba(255, 255, 255, .14)); }

/* ---------------------------------------------------------------- /ligue/<division> : podium, zones, bande */
.lg6-classe { padding: clamp(30px, 4vw, 56px) 0 clamp(56px, 6vw, 88px); }
.lg6-etat, .lg6-carte, .lg6-attente { border-radius: 18px; background: var(--lg6-carte); color: var(--lg6-os);
  box-shadow: inset 0 0 0 1px var(--lg6-fil); }
.lg6-etat { padding: 22px 24px; margin-bottom: 18px; }
.lg6-etat b { font-family: var(--f-mega); font-weight: 900; text-transform: uppercase; font-size: 22px; }

.lg6-podium { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; align-items: end; }
.lg6-podium__p { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px 20px; border-radius: 18px;
  color: var(--lg6-os); background: var(--lg6-carte); box-shadow: inset 0 2px 0 rgba(var(--halo), .9), inset 0 0 0 1px var(--lg6-fil); }
.lg6-podium__p--1 { order: 2; min-height: 250px; } .lg6-podium__p--2 { order: 1; min-height: 214px; }
.lg6-podium__p--3 { order: 3; min-height: 190px; }
.lg6-podium__rang { font-size: clamp(64px, 7vw, 104px); line-height: .8; }
.lg6-podium__nom { margin-top: auto; color: var(--lg6-os); font-family: var(--f-mega); font-weight: 900; font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.05; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg6-podium__nom:hover, .lg6-podium__nom:focus-visible { color: var(--lg6-lime); }
.lg6-podium__pts { font-family: var(--f-mega); font-weight: 900; font-size: 30px; line-height: 1; color: var(--lg6-lime);
  font-variant-numeric: tabular-nums; }
.lg6-podium__pts small { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lg6-gris); }
.lg6-podium__p.is-me { box-shadow: inset 0 2px 0 var(--lg6-lime), inset 0 0 0 2px rgba(137, 244, 33, .6); }

.lg6-carte { padding: 6px 18px 14px; }
.lg6-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lg6-table th, .lg6-table td { text-align: left; padding: 9px 8px; font-size: 14px; border-top: 1px solid var(--lg6-fil); }
.lg6-table thead th { border-top: 0; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lg6-gris); }
.lg6-table td:first-child, .lg6-table th:first-child { width: 3.4em; }
.lg6-table .n { text-align: right; }
.lg6-table td a { color: var(--lg6-os); text-decoration: none; }
.lg6-table td a:hover, .lg6-table td a:focus-visible { color: var(--lg6-lime); }
.lg6-table tr.z-montee td:first-child { box-shadow: inset 3px 0 0 var(--lg6-lime); }
.lg6-table tr.z-descente td:first-child { box-shadow: inset 3px 0 0 #7d8580; }
.lg6-table tr.is-me td { font-weight: 800; color: var(--lg6-lime); }
.lg6-table tr.is-me td a { color: var(--lg6-lime); }
/* le seuil d'une zone : une ligne qui dit où l'on passe */
.lg6-seuil th { padding: 20px 8px 8px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; border-top: 1px solid var(--lg6-fil); }
.lg6-seuil--montee th { color: var(--lg6-lime); border-top-color: rgba(137, 244, 33, .45); }
.lg6-seuil--maintien th { color: var(--lg6-gris); }
.lg6-seuil--descente th { color: #b3bab5; border-top-color: rgba(179, 186, 181, .4); }

.lg6-attente { margin-top: 14px; padding: 16px 20px; }
.lg6-attente__t { margin: 0 0 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lg6-gris); }
.lg6-attente ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lg6-attente li { display: inline-flex; gap: 8px; align-items: baseline; }
.lg6-attente a { color: var(--lg6-os); text-decoration: none; }

.lg6-bande { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.lg6-bande__d { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; text-decoration: none;
  color: var(--lg6-os); background: var(--lg6-carte); box-shadow: inset 0 0 0 1px var(--lg6-fil);
  transition: transform .25s ease, box-shadow .25s ease; }
.lg6-bande__d img { width: 40px; height: 40px; }
.lg6-bande__d span { font-family: var(--f-mega); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.lg6-bande__d:hover, .lg6-bande__d:focus-visible { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(var(--halo), .9), inset 0 0 0 1px var(--lg6-fil); }
.lg6-bande__d[aria-current="page"] { box-shadow: inset 0 2px 0 rgba(var(--halo), .95), inset 0 0 0 2px rgba(var(--halo), .45); }

/* ---------------------------------------------------------------- petites largeurs */
/* les marches sont étroites : chaque nom prend sa ligne, ses points dessous */
@media (min-width: 981px) {
  .lg6 { --dalle-base: 190px; --dalle-pas: 26px; }
  .lg6-tops tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 4px 0; border-top: 1px solid var(--lg6-fil); }
  .lg6-tops td { padding: 0; border: 0; }
  .lg6-tops td.r { display: none; }
  .lg6-tops td.n { width: auto; text-align: left; font-size: 11px; }
}
@media (min-width: 981px) and (max-width: 1279px) {
  .lg6-echelle { gap: 6px; }
  .lg6-marche__dalle { padding: 28px 9px 10px; }
}
@media (max-width: 980px) {
  /* l'escalier se dresse : le Champion en haut, la D6 en bas */
  .lg6-echelle { display: flex; flex-direction: column-reverse; gap: 10px; align-items: stretch; }
  .lg6-marche { flex-direction: row; align-items: stretch; }
  .lg6-marche__insigne { margin: 0 -14px 0 0; align-self: center; }
  .lg6-marche__insigne img { width: 72px; }
  .lg6-marche__dalle { min-height: 0; padding: 14px 14px 12px 26px; border-radius: 4px 14px 14px 4px;
    box-shadow: inset 2px 0 0 rgba(var(--halo), .9), inset 0 0 0 1px var(--lg6-fil); }
  .lg6-marche__nom { font-size: 20px; }
  .lg6-regles, .lg6-autres__grille { grid-template-columns: minmax(0, 1fr); }
  .lg6-hall__grille { grid-template-columns: minmax(0, 1fr); }
  .lg6-hall__objet { order: -1; min-height: 0; }
  .lg6-hall__insigne { width: min(240px, 60vw); }
  .lg6-bande { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lg6-podium { grid-template-columns: minmax(0, 1fr); }
  .lg6-podium__p--1, .lg6-podium__p--2, .lg6-podium__p--3 { order: 0; min-height: 0; }
  .lg6-podium__rang { font-size: 56px; }
  .lg6-toi { flex-wrap: wrap; }
  .lg6-toi__btn { margin-left: 0; }
  .lg6-table th:nth-child(4), .lg6-table td:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lg6-marche__insigne, .lg6-autre, .lg6-voisin, .lg6-bande__d { transition: none; }
}
