/* LES LIGNES DU CLASSEMENT (1201), celles de l'accueil. La couleur vient des
   joueurs : face teintée par leur couleur d'avatar (cardTinted), pseudo, anneau
   et tranche à leur teinte relevée, ciel de leur bannière derrière. Les rangs
   restent en encre secondaire. Variables posées par rowEl : --tface, --hi,
   --ring, --slab. */
.brows { display: flex; flex-direction: column; gap: 8px; }
.podium { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.podium .first { grid-column: 1 / -1; }

.top, .lrow { position: relative; overflow: hidden; border: 2px solid var(--ring, transparent); border-radius: 16px; flex: none; color: #fff; text-decoration: none; background: var(--tface); animation: pop-in .4s var(--press-up) both; transition: border-color .2s, translate .34s var(--press-up), box-shadow .34s var(--press-up); }
.top { box-shadow: 0 6px 0 var(--slab); }
.top > :not(.bsky), .lrow > :not(.bsky) { position: relative; }
.bsky { position: absolute; inset: 0; pointer-events: none; }
/* Un voile plat de la face du joueur sur la bannière : le pseudo reste lisible sur un motif clair. */
.veil { z-index: 0; }
a.link:active { translate: 0 1px; transition-duration: .07s; }
a.link:focus-visible, .btabs button:focus-visible, .btn:focus-visible, .foot a:focus-visible, .miss a:focus-visible, .state a:focus-visible, .back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  a.link:hover { translate: 0 -2px; border-color: var(--hi); }
  a.top.link:hover { translate: 0 -3px; box-shadow: 0 9px 0 var(--slab); }
  a.link:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
}

/* Encre secondaire : le rang est une place, pas une identité. */
.rk { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: #cdd6da; text-align: center; }
.who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who b { font-weight: 800; font-size: 17px; line-height: 1.2; display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .rec { font-size: 13px; color: #d6dde0; font-weight: 600; font-variant-numeric: tabular-nums; }
.who .pro { flex: none; font-weight: 800; font-size: 11px; letter-spacing: .3px; color: #ffa94d; }
.sc { font-weight: 800; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; white-space: nowrap; }
.lvbig { flex: none; display: grid; place-items: center; }
.who > .lvbig { align-self: flex-start; margin: 2px 0; }
.ringed { outline: 3px solid var(--hi); outline-offset: 3px; box-shadow: none !important; }
.ringed > span:first-child:not(:last-child) { display: none; }

/* La liste : une grille, pour que rangs, pseudos et chiffres tombent à la même verticale. */
.lrow { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) 36px 78px; align-items: center; column-gap: 10px; padding: 8px 12px 8px 6px; min-height: 56px; }
.lrow .who b { font-size: 16px; }
.lrow .sc { text-align: right; font-size: 16px; }
.lrow > .lvbig:last-child { justify-self: end; width: 78px; }

/* Le podium, téléphone. */
.first { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 10px; border-radius: 22px; min-height: 104px; }
.first .rk { font-size: 20px; width: 24px; flex: none; }
.first .who { flex: 1; gap: 4px; }
.first .who b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.first .sc { font-size: 30px; line-height: 1.05; }
.first > .lv { margin-left: auto; }
.duo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 46px 12px 14px; border-radius: 20px; min-height: 160px; }
.duo .rk { position: absolute; top: 10px; left: 14px; font-size: 18px; }
.duo > .lv { position: absolute; top: 10px; right: 12px; }
.duo .who { width: 100%; gap: 2px; }
.duo .who b { font-size: 16px; }
.duo .sc { font-size: 24px; line-height: 1.1; }

/* Grand écran : deux colonnes, la liste respire, la bannière est un décor. */
@media (min-width: 960px) {
  .podium { gap: 16px; margin-bottom: 26px; }
  .brows { gap: 10px; }
  .lrow { grid-template-columns: 52px auto minmax(0, 1fr) 44px 120px; column-gap: 16px; padding: 10px 22px 10px 8px; min-height: 68px; border-radius: 18px; }
  .lrow .rk { font-size: 17px; }
  .lrow .who b { font-size: 18px; }
  .lrow .sc { font-size: 21px; }
  .lrow > .lvbig:last-child { width: 120px; }
  .first { gap: 28px; padding: 26px 36px 26px 22px; min-height: 196px; border-radius: 28px; }
  .first .rk { font-size: 54px; width: 84px; font-family: var(--display); letter-spacing: -0.04em; }
  .first .who { gap: 8px; }
  .first .who b { font-size: 38px; line-height: 1.1; }
  .first .who .nm { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .first .sc { font-size: 58px; }
  .duo { gap: 14px; padding: 64px 22px 24px; min-height: 262px; border-radius: 24px; }
  .duo .rk { top: 16px; left: 22px; font-size: 28px; font-family: var(--display); letter-spacing: -0.04em; }
  .duo > .lv { top: 16px; right: 20px; }
  .duo .who b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
  .duo .sc { font-size: 38px; }
}

@media (max-width: 380px) {
  .lrow { grid-template-columns: 22px auto minmax(0, 1fr) 28px 62px; column-gap: 6px; padding-right: 8px; }
  .lrow > .lvbig:last-child { width: 62px; }
  .lrow .lv > span { zoom: .8; }
  .lrow .sc { font-size: 15px; }
  .lrow .rk { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .top, .lrow { animation: none; }
  a.link, a.link:hover, a.top.link:hover { transition: border-color .2s; translate: none; }
}

/* Pages à petits textes : les confettis du sol passent en retrait. */
.mote { opacity: .45; }

/* LE VOILE DE LECTURE est DANS RowBanner (TextVeil de l'app, pensé pour une ligne
   étroite : il ne laisse nu que 62-70 % de la largeur). Un second voile par-dessus
   effaçait les bannières ; ici on allège celui de l'app, et on n'en ajoute pas. */
.fb-live [style*="linear-gradient(90deg"] { background-image: linear-gradient(90deg, #0f0f1399 0, #0f0f138c 36%, #0f0f1300 58%, #0f0f1300 78%, #0f0f1380 100%) !important; }
.top .fb-live [style*="linear-gradient(90deg"], .id .fb-live [style*="linear-gradient(90deg"] { background-image: linear-gradient(90deg, #0f0f13a6 0, #0f0f1399 46%, #0f0f1300 80%) !important; }
