/* Правки лидерборда по пометкам на скриншоте. Подключать ПОСЛЕДНИМ (после leaderboard-v4.css). */

/* 1) Чипы «N игроков в рейтинге» и «Лидер …» убраны */
html body.lb-page .pb-chips,
html body.lb-page .lb-head .pb-chip { display: none !important; }

/* 2) Кнопка «Очки за тиры» — на уровень заголовка, справа (а не внизу шапки) */
html body.lb-page .lb-head { align-items: flex-start; }
html body.lb-page .lb-head > .lb-info { align-self: flex-start; margin: 14px 0 0 auto; flex: none; }
@media (max-width: 640px) { html body.lb-page .lb-head > .lb-info { margin: 0; } }

/* 3) Киты в строках списка — прижаты к правому краю строки (колонка «Тир» тоже справа) */
html body.lb-page:not(.x) .leader-row .lb-cards { justify-content: flex-end; justify-self: end; margin-left: auto; }
html body.lb-page:not(.x) #list .lb-head span:nth-child(3) { text-align: right; }

/* 4) Подиум: широкие горизонтальные карточки (текст слева, рендер справа), а не вытянутые вертикальные.
   Перекрывает вертикальную раскладку из leaderboard-v4.css на десктопе; цвета граней и таблетка места из v4 остаются.
   Рендер умеренного размера и сдвинут вправо: ник, очки и плитки тиров остаются читаемыми. */
@media (min-width: 761px) {
  html body.lb-page:not(.x) .podium { --pod-h: 290px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; margin: 90px 0 22px; }
  html body.lb-page:not(.x) .podium .podium-card:not(.ghost),
  html body.lb-page:not(.x) .podium .podium-card.place-1:not(.ghost) {
    height: var(--pod-h) !important; min-height: var(--pod-h) !important;
    align-items: flex-start !important; justify-content: flex-end !important; text-align: left !important;
    padding: 22px !important; overflow: visible !important;
  }
  html body.lb-page:not(.x) .podium .pm-info { align-items: flex-start; max-width: 54%; text-align: left; gap: 6px; }
  html body.lb-page:not(.x) .podium .name, html body.lb-page:not(.x) .podium .place-1 .name { font-size: 22px; text-align: left; }
  html body.lb-page:not(.x) .podium .score { font-size: 16px; }
  html body.lb-page:not(.x) .podium .lb-cards { justify-content: flex-start; max-width: 54%; margin-top: 12px; flex-wrap: nowrap; }
  html body.lb-page:not(.x) .podium .lb-card.sm { width: 44px; height: 46px; }

  /* рендер справа, прижат к низу карточки: ниже карточки срезается, голова чуть выступает вверх; у 1-го места немного крупнее */
  html body.lb-page:not(.x) .podium .podium-card .pm-fig {
    position: absolute; left: auto !important; right: -100px !important; top: auto !important; bottom: 0 !important;
    height: 345px; aspect-ratio: 520 / 460; transform: none;
    clip-path: inset(-500px -500px 0 -500px); -webkit-mask-image: none; mask-image: none;
  }
  html body.lb-page:not(.x) .podium .podium-card.place-1 .pm-fig { right: -108px !important; top: auto !important; height: 372px; aspect-ratio: 520 / 460; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  html body.lb-page:not(.x) .podium { --pod-h: 270px; gap: 14px; margin-top: 80px; }
  html body.lb-page:not(.x) .podium .podium-card:not(.ghost), html body.lb-page:not(.x) .podium .podium-card.place-1:not(.ghost) { padding: 18px 14px !important; }
  html body.lb-page:not(.x) .podium .podium-card .pm-fig { height: 290px; right: -84px !important; }
  html body.lb-page:not(.x) .podium .podium-card.place-1 .pm-fig { height: 312px; right: -90px !important; top: auto !important; }
  html body.lb-page:not(.x) .podium .name, html body.lb-page:not(.x) .podium .place-1 .name { font-size: 18px; }
  html body.lb-page:not(.x) .podium .lb-card.sm { width: 38px; height: 40px; }
}
