/* Тир-лист: разделитель HT/LT внутри колонки + облегчение страницы (лаги при прокрутке).
   Подключается последним в tierlist.html. Убрать: удалить файл и ссылку на него. */

/* ===== разделители групп тира: «—— HT2 ——», «—— LT2 ——», «—— RHT2 ——», «—— RLT2 ——» ===== */
html body.tierlist-page .tierlist-col .lt-sep {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 4px 10px; padding: 0;
  color: var(--tier-accent, #aab0b8);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1;
  text-transform: uppercase; user-select: none;
}
html body.tierlist-page .tierlist-col .lt-sep::before,
html body.tierlist-page .tierlist-col .lt-sep::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .4;
}
/* разделитель — тоже ребёнок колонки, из-за него сдвигается :nth-child у строк;
   возвращаем цвета номеров 1–3 по классам rk1–rk3, а остальным после разделителя ставим обычный */
html body.tierlist-page .tierlist-col .row:not(.retired):not(.rk1):not(.rk2):not(.rk3) .rank { color: rgba(255,255,255,.56) !important; }
html body.tierlist-page .tierlist-col .row.rk1 .rank { color: #f3bd35 !important; }
html body.tierlist-page .tierlist-col .row.rk2 .rank { color: #c9ced4 !important; }
html body.tierlist-page .tierlist-col .row.rk3 .rank { color: #d27a45 !important; }

/* первый разделитель колонки (HT) прижат к шапке */
html body.tierlist-page .tierlist-col .col-body > .lt-sep:first-child { margin-top: 2px; }
/* ретайред-группы (RHT/RLT) — приглушённые, как и сами строки */
html body.tierlist-page .tierlist-col .lt-sep.retired-grp { color: #a0a0a0; margin-top: 14px; }
html body.tierlist-page .tierlist-col .lt-sep.retired-grp::before,
html body.tierlist-page .tierlist-col .lt-sep.retired-grp::after { background: none; border-top: 1px dashed currentColor; height: 0; opacity: .5; }

/* ===== производительность ===== */
/* фон не «прибит» к окну: background-attachment:fixed заставляет браузер перерисовывать градиенты на каждом кадре прокрутки */
html body.tierlist-page, html body.tierlist-page:not(.x) { background-attachment: scroll !important; }
/* размытие под шапкой пересчитывается при каждой прокрутке — заменяем плотным тёмным фоном */
html body.tierlist-page .topbar, html body.tierlist-page .et-topbar {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: rgba(10,11,13,.97) !important;
}
/* ~100 теней с размытием у рендеров игроков */
html body.tierlist-page:not(.mc-inv):not(.sk) .tl-fig { box-shadow: inset 0 1px 0 rgba(255,255,255,.07) !important; }
html body.tierlist-page:not(.mc-inv):not(.sk) .tierlist-col .row:hover .tl-fig { box-shadow: none !important; }
/* колонка прокручивается синхронно скриптом — изолируем её перерисовку от остальной страницы */
html body.tierlist-page .tierlist-col .col-body { contain: layout paint; overscroll-behavior: contain; }
/* строки не должны анимировать то, что не меняется */
html body.tierlist-page:not(.mc-inv):not(.sk) .tierlist-col .row { transition: background .15s ease, border-color .15s ease !important; }
html body.tierlist-page:not(.mc-inv):not(.sk) .tierlist-col .row:hover { transform: none !important; }
