/* Лидерборд v4 (грузится ПОСЛЕ leaderboard-podium-v2.css).
   Шире и крупнее; подиум — вертикальные карточки с рендером по центру; грани светятся цветом места (вместо кубка и светлой рамки);
   киты по центру; клик по любому месту карточки открывает профиль; в списке шапка колонок «# / Ник / Тир». */
html body.lb-page:not(.x) .container { max-width: 1240px; width: min(1240px, calc(100% - 64px)); }

/* ---------- Грани: свечение цвета места, без кубка и белых бликов ---------- */
html body.lb-page:not(.x) .podium .podium-card:not(.ghost) {
  border-radius: 24px !important; border: 1px solid color-mix(in srgb, var(--pc) 60%, transparent) !important; border-image: none !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 10%, #121413), #0e1110 72%) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 14%, transparent), 0 0 34px color-mix(in srgb, var(--pc) 24%, transparent), inset 0 0 50px color-mix(in srgb, var(--pc) 9%, transparent) !important;
  transition: box-shadow .3s ease, border-color .3s ease;
}
html body.lb-page:not(.x) .podium .podium-card.place-1:not(.ghost) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 20%, transparent), 0 0 56px color-mix(in srgb, var(--pc) 32%, transparent), inset 0 0 60px color-mix(in srgb, var(--pc) 12%, transparent) !important; }
html body.lb-page:not(.x) .podium .podium-card:not(.ghost):hover { border-color: var(--pc) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 24%, transparent), 0 0 60px color-mix(in srgb, var(--pc) 38%, transparent), inset 0 0 60px color-mix(in srgb, var(--pc) 14%, transparent) !important; }
html body.lb-page:not(.x) .podium .podium-card::before, html body.lb-page:not(.x) .podium .podium-card::after, html body.lb-page:not(.x) .podium .trophy-wrap { display: none !important; }

/* вся карточка — ссылка на профиль (растянутая ссылка ника) */
html body.lb-page:not(.x) .podium .pm-info { position: static; }
html body.lb-page:not(.x) .podium .name, html body.lb-page:not(.x) .podium .name a { position: static; }
html body.lb-page:not(.x) .podium .name a::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; }
html body.lb-page:not(.x) .podium .podium-card:not(.ghost) { cursor: pointer; }

/* место — таблетка цвета места */
html body.lb-page:not(.x) .podium .rank {
  display: inline-flex; align-items: center; justify-content: center; padding: 7px 16px; border-radius: 999px; font: 800 14px/1 Rubik, sans-serif; letter-spacing: .08em;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 50%, transparent); text-shadow: none;
}

@media (min-width: 761px) {
  /* вертикальный подиум: рендер по центру выступает вверх, ник/очки/киты — по центру под ним */
  html body.lb-page:not(.x) .podium { --pod-h: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: end; margin: 110px 0 28px; }
  html body.lb-page:not(.x) .podium .podium-card:not(.ghost) { height: auto; min-height: 0 !important; align-items: center; justify-content: flex-end; text-align: center; padding: 236px 22px 28px !important; }
  html body.lb-page:not(.x) .podium .podium-card.place-1:not(.ghost) { padding-top: 300px !important; }
  html body.lb-page:not(.x) .podium .podium-card .pm-fig {
    position: absolute; left: 50% !important; right: auto !important; top: -130px !important; bottom: auto !important; height: 372px; aspect-ratio: 440 / 460;
    transform: translateX(-50%); clip-path: none; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%);
  }
  html body.lb-page:not(.x) .podium .podium-card.place-1 .pm-fig { top: -170px !important; height: 470px; }
  html body.lb-page:not(.x) .podium .pm-info { align-items: center; max-width: 100%; gap: 8px; }
  html body.lb-page:not(.x) .podium .name, html body.lb-page:not(.x) .podium .place-1 .name { font-size: 26px; text-align: center; }
  html body.lb-page:not(.x) .podium .place-1 .name { font-size: 30px; }
  html body.lb-page:not(.x) .podium .score { font-size: 17px; }
  html body.lb-page:not(.x) .podium .lb-cards { justify-content: center; max-width: 100%; margin-top: 16px; }
  html body.lb-page:not(.x) .podium .lb-card.sm { width: 58px; height: 60px; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  html body.lb-page:not(.x) .podium { gap: 16px; margin-top: 120px; }
  html body.lb-page:not(.x) .podium .podium-card:not(.ghost) { padding: 200px 12px 22px !important; }
  html body.lb-page:not(.x) .podium .podium-card.place-1:not(.ghost) { padding-top: 262px !important; }
  html body.lb-page:not(.x) .podium .podium-card .pm-fig { top: -110px !important; height: 310px; }
  html body.lb-page:not(.x) .podium .podium-card.place-1 .pm-fig { top: -110px !important; height: 372px; }
  html body.lb-page:not(.x) .podium .name, html body.lb-page:not(.x) .podium .place-1 .name { font-size: 20px; }
  html body.lb-page:not(.x) .podium .lb-card.sm { width: 46px; height: 48px; }
}

/* ---------- Список: крупнее, шапка колонок, киты по центру, вся строка кликабельна ---------- */
html body.lb-page:not(.x) .leader-row, .lb-head { grid-template-columns: 72px minmax(260px, 1.1fr) minmax(0, 1fr); }
html body.lb-page:not(.x) .leader-row { min-height: 116px; gap: 18px; cursor: pointer; transition: background .2s; border-radius: 16px; }
html body.lb-page:not(.x) .leader-row:hover { background: rgba(255,255,255,.035); }
html body.lb-page:not(.x) .leader-row .lb-cards { justify-content: center; }
html body.lb-page:not(.x) .leader-row .lb-player::after { content: ""; position: absolute; inset: 0; z-index: 2; }
html body.lb-page:not(.x) .lb-fig { width: 96px; height: 96px; border-radius: 16px; }
html body.lb-page:not(.x) .lb-who .nick { font-size: 21px; }
html body.lb-page:not(.x) .lb-pts b { font-size: 14px; }
.lb-head { display: grid; align-items: center; gap: 18px; margin: 0 -14px; padding: 4px 14px 12px; font: 800 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6c7274; border-bottom: 1px solid rgba(255,255,255,.07); }
.lb-head span:nth-child(1), .lb-head span:nth-child(3) { text-align: center; }
@media (max-width: 760px) { .lb-head { display: none; } html body.lb-page:not(.x) .lb-fig { width: 68px; height: 68px; } html body.lb-page:not(.x) .leader-row { min-height: 0; } }
