/* Лидерборд с рендерами игроков: подиум 1–2–3 с разными позами и список с моделями вместо аватарок.
   Подключается ПОСЛЕ leaderboard-top3.css. Картинки — /api/figure (лёгкие WebP, кэшируются сервером и браузером). */

/* ---- Кнопка «Очки за тиры» (вместо пустой кнопки с точкой) ---- */
html body.lb-page .lb-info {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: 6px; padding: 0 18px; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(245,197,24,.38); background: rgba(245,197,24,.08);
  color: #f5c518; font: 700 13px/1 Inter, system-ui, sans-serif; letter-spacing: .02em;
  transition: background .2s, border-color .2s, transform .2s;
}
html body.lb-page .lb-info:hover { background: rgba(245,197,24,.16); border-color: rgba(245,197,24,.75); transform: translateY(-1px); }
html body.lb-page .lb-info-dot { width: 8px; height: 8px; background: currentColor; flex: none; }
html body.lb-page .lb-gap { height: 26px; }

/* ---- Подиум: модель сверху, кубок — значком в углу ---- */
html body.lb-page:not(.x) .podium { align-items: end; }
html body.lb-page:not(.x) .podium .podium-card { position: relative; min-height: 0 !important; padding: 20px 20px 24px; }
html body.lb-page:not(.x) .podium .trophy-wrap { position: absolute; top: 14px; left: 14px; z-index: 3; width: 46px; height: 54px; margin: 0; }
html body.lb-page:not(.x) .podium .trophy { width: 38px; height: 44px; animation: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
html body.lb-page:not(.x) .podium .place-1 .trophy-wrap { width: 56px; height: 64px; }
html body.lb-page:not(.x) .podium .place-1 .trophy { width: 46px; height: 53px; animation: none; }
html body.lb-page:not(.x) .podium .pm-fig { position: relative; z-index: 1; display: block; width: min(100%, 210px); aspect-ratio: 300 / 340; margin: 0 auto -30px; }
html body.lb-page:not(.x) .podium .place-1 .pm-fig { width: min(100%, 250px); margin-bottom: -36px; }
html body.lb-page:not(.x) .podium .pm-fig img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.5)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
html body.lb-page:not(.x) .podium .podium-card:hover .pm-fig img { transform: translateY(-5px) scale(1.025); }
html body.lb-page:not(.x) .podium .rank { position: relative; z-index: 2; }
html body.lb-page:not(.x) .podium .name a { display: inline-block; max-width: 100%; }
html body.lb-page:not(.x) .podium .ghost { min-height: 220px !important; justify-content: center; }

/* ---- Список: место, модель, ник + очки, тиры ---- */
html body.lb-page:not(.x) .leader-row { grid-template-columns: 54px minmax(0, 1fr) auto; min-height: 100px; padding: 8px 14px; gap: 10px; }
html body.lb-page:not(.x) .leader-row .rank {
  width: auto; height: auto; background: none; box-shadow: none; text-shadow: none;
  font: 800 24px/1 Rubik, sans-serif !important; color: #5f666b; font-variant-numeric: tabular-nums;
}
html body.lb-page:not(.x) .leader-row .rank.top10 { background: none; box-shadow: none; color: #f5c518; }
html body.lb-page:not(.x) .leader-row .lb-player { gap: 14px; }
html body.lb-page:not(.x) .lb-fig {
  position: relative; flex: none; width: 84px; height: 84px; overflow: hidden; border-radius: 14px;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(245,197,24,.12), transparent 75%), #121514;
  border: 1px solid rgba(255,255,255,.07);
}
html body.lb-page:not(.x) .leader-row:nth-child(-n+7) .lb-fig { border-color: rgba(245,197,24,.28); }
html body.lb-page:not(.x) .lb-fig img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
html body.lb-page:not(.x) .leader-row:hover .lb-fig img { transform: scale(1.07); }
html body.lb-page:not(.x) .lb-who { gap: 7px; }
html body.lb-page:not(.x) .lb-who .nick { font-size: 19px; }
html body.lb-page:not(.x) .lb-pts b { font-size: 13px; color: #c3c7ca; }
#list[data-no-motion] .leader-row { min-height: 100px; }

@media (max-width: 760px) {
  html body.lb-page:not(.x) .leader-row { grid-template-columns: 34px minmax(0, 1fr); min-height: 0; }
  html body.lb-page:not(.x) .leader-row .rank { font-size: 19px !important; }
  html body.lb-page:not(.x) .lb-fig { width: 64px; height: 64px; border-radius: 12px; }
  html body.lb-page:not(.x) .podium .place-1 { order: -1; }
  html body.lb-page:not(.x) .podium .pm-fig, html body.lb-page:not(.x) .podium .place-1 .pm-fig { width: min(100%, 220px); }
}
@media (prefers-reduced-motion: reduce) {
  html body.lb-page:not(.x) .podium .pm-fig img, html body.lb-page:not(.x) .lb-fig img { transition: none; }
}
