/* ==========================================================================
   Тир-лист в стиле классического тёмного интерфейса Minecraft.
   Подключается ТОЛЬКО на /tierlist (после style.css) и всё скоупит на
   body.tierlist-page — остальные страницы сайта не затрагиваются.
   ========================================================================== */

/* ---------- 1. Шрифт ----------
   Шрифт лежит в public/fonts/minecraft.ttf (Minecraft Rus).
   Запасной вариант — monospace.
   ВАЖНО: сайт русскоязычный — в шрифте должна быть кириллица (Mojangles её содержит). */
@font-face {
  font-family: 'Minecraft';
  src: url('/fonts/minecraft.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-04FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+25A0-25FF;
  font-display: swap;
}

/* ---------- 2. Палитра: только оттенки серого ----------
   Переопределяем переменные из style.css на уровне body — все цветные акценты сайта
   (gold / violet / ok / danger) на этой странице становятся одним серым. */
body.tierlist-page {
  --mc-text: var(--c-aaaaaa);          /* единственный цвет текста — «серый» Minecraft (§7) */
  --mc-shadow: var(--c-2a2a2a);        /* тень текста, как в игре */
  --mc-bg: var(--c-1c1c1c);
  --mc-panel: var(--c-2b2b2b);
  --mc-panel-hi: var(--c-363636);
  --mc-btn: var(--c-3a3a3a);
  --mc-btn-hover: var(--c-484848);
  --mc-light: var(--c-5a5a5a);         /* светлая грань фаски */
  --mc-dark: var(--c-161616);          /* тёмная грань фаски */
  --mc-line: var(--c-000000);
  /* «выпуклая» рамка кнопки/панели, как в интерфейсе игры */
  --mc-bevel: inset 3px 3px 0 var(--mc-light), inset -3px -3px 0 var(--mc-dark), 0 0 0 2px var(--mc-line);
  --mc-bevel-pressed: inset 3px 3px 0 var(--mc-dark), inset -3px -3px 0 var(--c-484848), 0 0 0 2px var(--mc-line);

  --bg: var(--mc-bg); --panel: var(--mc-panel); --panel-2: var(--mc-panel-hi); --panel-solid: var(--c-232323);
  --border: var(--mc-line); --border-strong: var(--mc-light);
  --text: var(--mc-text); --text-dim: var(--mc-text);
  --gold: var(--mc-text); --gold-2: var(--mc-text); --gold-dim: var(--c-555555);
  --violet: var(--mc-text); --danger: var(--mc-text); --ok: var(--mc-text);
  --radius: 0; --radius-sm: 0;
  --glow-gold: none; --shadow-card: none; --shadow-card-hover: none;

  background: var(--mc-bg);
  color: var(--mc-text);
  font-family: 'Minecraft', ui-monospace, 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 var(--mc-shadow);
  -webkit-font-smoothing: none;
  font-smooth: never;
}
body.tierlist-page ::selection { background: var(--c-484848); color: var(--mc-text); }
body.tierlist-page a, body.tierlist-page .muted { color: var(--mc-text); }
/* У Minecraft-шрифта один вес: браузерная «жирность» h1–h6/th портит пиксели, поэтому отключаем */
body.tierlist-page { font-synthesis: none; }
body.tierlist-page h1, body.tierlist-page h2, body.tierlist-page h3, body.tierlist-page h4,
body.tierlist-page th { font-weight: 400; }
body.tierlist-page h1 { font-size: 32px; font-weight: 400; letter-spacing: 0; text-shadow: 4px 4px 0 var(--mc-shadow); }
body.tierlist-page b, body.tierlist-page strong { font-weight: 400; }

/* ---------- 3. Шапка сайта ---------- */
body.tierlist-page .topbar {
  background: var(--c-111111); border-bottom: 2px solid var(--mc-line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.tierlist-page .brand { font-size: 24px; font-weight: 400; letter-spacing: 0; }
body.tierlist-page .brand:hover { transform: none; opacity: 1; }
body.tierlist-page .brand .mark {
  border-radius: 0; background: var(--mc-btn); color: var(--mc-text);
  box-shadow: var(--mc-bevel); font-weight: 400;
}
body.tierlist-page .nav { font-size: 16px; font-weight: 400; gap: 18px; }
body.tierlist-page .nav a { white-space: nowrap; }
body.tierlist-page .topbar-left { gap: 20px; }
body.tierlist-page .nav a::after { border-radius: 0; background: var(--mc-text); }
body.tierlist-page .search-box input {
  border-radius: 0; border: 0; background: var(--c-111111); font-size: 16px; box-shadow: inset 2px 2px 0 var(--mc-line), 0 0 0 2px var(--mc-light);
}
body.tierlist-page .search-box input:focus { box-shadow: inset 2px 2px 0 var(--mc-line), 0 0 0 2px var(--mc-text); }
body.tierlist-page .btn {
  border: 0; border-radius: 0; background: var(--mc-btn); color: var(--mc-text);
  box-shadow: var(--mc-bevel); font-size: 16px; font-weight: 400; padding: 10px 18px;
}
body.tierlist-page .btn:hover { background: var(--mc-btn-hover); transform: none; border: 0; }
body.tierlist-page .btn:active { box-shadow: var(--mc-bevel-pressed); }
body.tierlist-page .btn.primary { background: var(--mc-btn); color: var(--mc-text); box-shadow: var(--mc-bevel); }
body.tierlist-page .btn.primary:hover { background: var(--mc-btn-hover); filter: none; }
/* глобальная плашка анонса (если есть свежий анонс): без золота и без цветного эмодзи */
body.tierlist-page .announce-bar {
  background: var(--mc-panel); border: 0; border-radius: 0; box-shadow: var(--mc-bevel); font-size: 16px;
}
body.tierlist-page .announce-bar-icon { display: none; }
body.tierlist-page .announce-bar-link { color: var(--mc-text); }

/* ---------- 4. Кнопки китов (OP / Sword / NPOT) ---------- */
body.tierlist-page .kit-switcher { gap: 16px; margin: 26px 0 22px; }
body.tierlist-page .kit-tab {
  --spr: 32px;                         /* размер спрайтов предметов */
  position: relative;
  height: 56px; padding: 0 18px;
  border: 0; border-radius: 0;
  background: var(--mc-btn);
  box-shadow: var(--mc-bevel);
  font-size: 24px; font-weight: 400;
  text-shadow: 3px 3px 0 var(--mc-shadow);
  user-select: none;
  /* никакой смены цвета/сдвига на :hover — вместо этого работают анимации ниже */
  transition: none;
}
body.tierlist-page .kit-tab:hover { border: 0; transform: none; background: var(--mc-btn); box-shadow: var(--mc-bevel); }
body.tierlist-page .kit-tab.active,
body.tierlist-page .kit-tab.active:hover {
  background: var(--c-262626); box-shadow: var(--mc-bevel-pressed); border: 0;
}

.kit-tab-label { position: relative; z-index: 0; display: inline-block; line-height: 1; white-space: nowrap; }

/* Общая основа для «вылетающих» предметов */
.kit-fx {
  position: absolute; top: 50%;
  width: var(--spr); height: var(--spr); margin-top: calc(var(--spr) / -2);
  pointer-events: none;
}
.mc-sprite {
  display: block; width: 100%; height: 100%;
  background: var(--sprite) center / 100% 100% no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
}

/* ---- OP: эндер-жемчуг выдвигается из-под надписи, оставляет след и крутится в плоскости, как руль ---- */
.fx-pearl {
  left: 100%; margin-left: 12px;
  z-index: -1;                                   /* под текстом надписи — «выезжает из-под неё» */
  opacity: 0;
  transform: translateX(calc(var(--spr) * -1.15)) scale(.45);
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.15), opacity .22s ease-out;
}
.fx-pearl .mc-sprite {
  --sprite: url('/img/icons/pearl.svg');
  /* анимация висит всегда, но на паузе: при уходе курсора угол не «дёргается» назад */
  animation: mc-spin 1.4s linear infinite paused;
}
.kit-tab:hover .fx-pearl { opacity: 1; transform: none; }
.kit-tab.fx-spin .fx-pearl .mc-sprite { animation-play-state: running; }   /* класс ставит JS после выезда */
@keyframes mc-spin {                              /* поворот вокруг центра на 360°, как штурвал */
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* След: две пиксельные «волны» (бирюзовые квадратики от яркого к тёмному) тянутся за жемчугом,
   пока он выезжает, и затем растворяются. */
.fx-pearl::before, .fx-pearl::after {
  content: ''; position: absolute; right: 70%; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  opacity: 0; transform-origin: 100% 50%; pointer-events: none;
}
.fx-pearl::before {
  background: #3fe6c8;
  box-shadow: -12px -3px #2fbfa6, -24px -9px #23917f, -36px -12px #186a5d, -48px -9px #114b42, -60px -3px #0c342e;
}
.fx-pearl::after {
  background: #2fbfa6;
  box-shadow: -12px 6px #23917f, -24px 12px #186a5d, -36px 15px #114b42, -48px 12px #0c342e, -60px 6px #08231f;
}
.kit-tab:hover .fx-pearl::before, .kit-tab:hover .fx-pearl::after { animation: pearl-trail .95s ease-out both; }
@keyframes pearl-trail {
  0%   { opacity: 0;  transform: translateX(14px) scaleX(.2); }
  25%  { opacity: 1;  transform: none; }
  100% { opacity: 0;  transform: translateX(-10px) scaleX(1.15); }
}

/* ---- Sword: два меча вылетают из центра надписи и занимают места по обе стороны от неё ---- */
.fx-swords {
  left: 0; right: 0; width: auto;                       /* на всю ширину надписи; мечи — по краям */
  /* откуда стартуют: центр надписи (--tw задаёт JS = ширина текста) */
  --from: calc(var(--tw, 72px) / 2 + var(--spr) / 2 + 12px);
}
.mc-sword { position: absolute; top: 0; width: var(--spr); height: var(--spr); opacity: 0; will-change: transform; }
.mc-sword.sw-l { left: calc(var(--spr) * -1 - 12px); }
.mc-sword.sw-r { right: calc(var(--spr) * -1 - 12px); }
.mc-sword .mc-sprite { --sprite: url('/img/icons/sword.svg'); }
.mc-sword.sw-r .mc-sprite { transform: scaleX(-1); }   /* правый меч зеркальный: «/ Sword \» */
.kit-tab:hover .sw-l { animation: sword-l .85s cubic-bezier(.3, .7, .25, 1) both; }
.kit-tab:hover .sw-r { animation: sword-r .85s cubic-bezier(.3, .7, .25, 1) both; }
@keyframes sword-l {
  0%   { opacity: 0; transform: translate(var(--from), 6px) scale(.25) rotate(-140deg); }
  14%  { opacity: 1; }
  45%  { transform: translate(-16px, -12px) scale(1.05) rotate(-50deg); }
  75%  { transform: translate(3px, 1px) scale(1.15) rotate(8deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes sword-r {
  0%   { opacity: 0; transform: translate(calc(var(--from) * -1), 6px) scale(.25) rotate(140deg); }
  14%  { opacity: 1; }
  45%  { transform: translate(16px, -12px) scale(1.05) rotate(50deg); }
  75%  { transform: translate(-3px, 1px) scale(1.15) rotate(-8deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
/* искра в момент, когда меч встаёт на место (пиксельный «плюс», серый) */
.mc-sword::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: var(--mc-text);
  box-shadow: 0 -10px var(--mc-text), 0 10px var(--mc-text), -10px 0 var(--mc-text), 10px 0 var(--mc-text);
  opacity: 0; pointer-events: none;
}
.kit-tab:hover .mc-sword::after { animation: sword-spark .85s ease-out both; }
@keyframes sword-spark {
  0%, 66% { opacity: 0; transform: scale(.3); }
  74%     { opacity: 1; transform: scale(1); }
  100%    { opacity: 0; transform: scale(1.7); }
}

/* ---- NPOT: зелье бросают справа налево — оно вылетает из-под надписи по дуге над словом, крутится
        в полёте и с красными брызгами приземляется СЛЕВА от названия ---- */
.fx-potion {
  right: 100%; margin-right: 12px;
  z-index: -1;                                   /* под текстом — «вылетает из-под надписи», как перл */
  opacity: 0;
  transform: translateX(calc(var(--spr) * 2.4));
}
.fx-potion .mc-arc { display: block; position: relative; width: 100%; height: 100%; }   /* высота полёта (вверх-вниз) */
.fx-potion .mc-sprite { --sprite: url('/img/icons/potion.svg'); }                       /* вращение */

.kit-tab:hover .fx-potion         { animation: potion-x   .8s linear both; }
.kit-tab:hover .fx-potion .mc-arc { animation: potion-y   .8s both; }
.kit-tab:hover .fx-potion .mc-sprite { animation: potion-rot .8s cubic-bezier(.25, .6, .4, 1) both; }

@keyframes potion-x {                             /* влево с постоянной скоростью, приземление на 88% */
  0%   { opacity: 0; transform: translateX(calc(var(--spr) * 2.4)); }
  8%   { opacity: 1; }
  88%  { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
@keyframes potion-y {                             /* дуга: вверх с замедлением, вниз с ускорением, маленький отскок */
  0%   { transform: translateY(6px);   animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  42%  { transform: translateY(-24px); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  88%  { transform: translateY(0);     animation-timing-function: ease-out; }
  94%  { transform: translateY(-4px);  animation-timing-function: ease-in; }
  100% { transform: translateY(0); }
}
@keyframes potion-rot {                           /* два оборота против часовой и встаёт ровно */
  0%   { transform: rotate(60deg); }
  88%  { transform: rotate(-720deg); }
  100% { transform: rotate(-720deg); }
}

/* След: красные пиксели тянутся за зельем (справа от него) в полёте и гаснут */
.fx-potion .mc-arc::before {
  content: ''; position: absolute; left: 60%; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: #ff5a78;
  box-shadow: 12px 3px #e0304f, 24px 9px #b01f3c, 36px 12px #7f1529, 48px 9px #56101d;
  opacity: 0; pointer-events: none;
}
.kit-tab:hover .fx-potion .mc-arc::before { animation: potion-trail .8s ease-out both; }
@keyframes potion-trail {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: .9; }
  100% { opacity: 0; }
}

/* Брызги в момент приземления (две пиксельные «звезды» разных оттенков красного/розового) */
.fx-potion::before, .fx-potion::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  opacity: 0; pointer-events: none;
}
.fx-potion::before {
  background: #ff4d6d;
  box-shadow: 0 -14px #ff4d6d, 0 14px #ff4d6d, -14px 0 #e0304f, 14px 0 #e0304f;
}
.fx-potion::after {
  background: #ff9db0;
  box-shadow: -10px -10px #ff9db0, 10px -10px #ff7a93, -10px 10px #ff7a93, 10px 10px #ff9db0;
}
.kit-tab:hover .fx-potion::before, .kit-tab:hover .fx-potion::after { animation: potion-splash .8s ease-out both; }
@keyframes potion-splash {
  0%, 86% { opacity: 0; transform: scale(.3); }
  90%     { opacity: 1; transform: scale(1); }
  100%    { opacity: 0; transform: scale(2.1); }
}

/* ---------- 5. Баннер выбранного кита ---------- */
body.tierlist-page .kit-banner {
  color: var(--mc-text);
  background: var(--mc-panel); border-radius: 0; box-shadow: var(--mc-bevel);
  padding: 20px 26px; margin-bottom: 24px;
}
body.tierlist-page .kit-banner-title { font-size: 32px; font-weight: 400; letter-spacing: 0; text-shadow: 4px 4px 0 var(--mc-shadow); }
body.tierlist-page .kit-banner-sub { color: var(--mc-text); font-size: 16px; font-weight: 400; }
body.tierlist-page .kit-banner-actions .btn { background: var(--mc-btn); color: var(--mc-text); box-shadow: var(--mc-bevel); }
body.tierlist-page .kit-banner-actions .btn:hover { background: var(--mc-btn-hover); transform: none; }

/* ---------- 6. Колонки тиров: одинаковые серые плашки ---------- */
body.tierlist-page .tierlist-columns {
  background: var(--c-232323); border: 2px solid var(--mc-line); border-radius: 0; box-shadow: none;
}
body.tierlist-page .tierlist-col { border-right: 2px solid var(--mc-line); }
body.tierlist-page .tierlist-col:last-child { border-right: none; }
body.tierlist-page .tierlist-col .col-head,
body.tierlist-page .tierlist-col.b1 .col-head, body.tierlist-page .tierlist-col.b2 .col-head,
body.tierlist-page .tierlist-col.b3 .col-head, body.tierlist-page .tierlist-col.b4 .col-head,
body.tierlist-page .tierlist-col.b5 .col-head {
  background: var(--mc-btn); color: var(--mc-text);
  box-shadow: inset 0 3px 0 var(--mc-light), inset 0 -3px 0 var(--mc-dark);
  padding: 14px; font-size: 16px; font-weight: 400; letter-spacing: 0;
}
/* скроллбары — нейтральный серый вместо цветных по тирам */
body.tierlist-page .tierlist-col .col-body,
body.tierlist-page .tierlist-col.b1 .col-body, body.tierlist-page .tierlist-col.b2 .col-body,
body.tierlist-page .tierlist-col.b3 .col-body, body.tierlist-page .tierlist-col.b4 .col-body,
body.tierlist-page .tierlist-col.b5 .col-body { scrollbar-color: var(--mc-light) var(--mc-dark); }
body.tierlist-page .tierlist-col .col-body::-webkit-scrollbar { width: 8px; }
body.tierlist-page .tierlist-col .col-body::-webkit-scrollbar-track { background: var(--mc-dark); }
body.tierlist-page .tierlist-col .col-body::-webkit-scrollbar-thumb,
body.tierlist-page .tierlist-col.b1 .col-body::-webkit-scrollbar-thumb, body.tierlist-page .tierlist-col.b2 .col-body::-webkit-scrollbar-thumb,
body.tierlist-page .tierlist-col.b3 .col-body::-webkit-scrollbar-thumb, body.tierlist-page .tierlist-col.b4 .col-body::-webkit-scrollbar-thumb,
body.tierlist-page .tierlist-col.b5 .col-body::-webkit-scrollbar-thumb { background: var(--mc-light); border-radius: 0; }

body.tierlist-page .tierlist-col .row { font-size: 16px; font-weight: 400; padding: 6px 14px; }
body.tierlist-page .tierlist-col .row .rank { font-size: 16px; font-weight: 400; width: 26px; }
body.tierlist-page .tierlist-col .row:hover { background: var(--mc-panel-hi); border-left-color: var(--mc-text); }
body.tierlist-page .tierlist-col .row .avatar-head.sm { border-radius: 0; width: 20px; height: 20px; }
body.tierlist-page .avatar-head { border-radius: 0; }
body.tierlist-page .avatar-head img { image-rendering: pixelated; }
body.tierlist-page .tierlist-col .empty { font-size: 16px; }

/* ---------- 7. Адаптив и «уменьшенное движение» ---------- */
@media (max-width: 640px) {
  body.tierlist-page .kit-switcher { gap: 10px; }
  body.tierlist-page .kit-tab { --spr: 16px; font-size: 16px; padding: 0 8px; height: 48px; }
  .fx-pearl { margin-left: 6px; }
  .fx-potion { margin-right: 6px; }
  .fx-swords { --from: calc(var(--tw, 48px) / 2 + var(--spr) / 2 + 6px); }
  .mc-sword.sw-l { left: calc(var(--spr) * -1 - 6px); }
  .mc-sword.sw-r { right: calc(var(--spr) * -1 - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-pearl { transition: opacity .2s; transform: none; }
  .kit-tab:hover .fx-potion, .kit-tab:hover .fx-potion .mc-arc, .kit-tab:hover .fx-potion .mc-sprite,
  .kit-tab:hover .fx-potion .mc-arc::before, .kit-tab:hover .fx-potion::before, .kit-tab:hover .fx-potion::after { animation: none; }
  .kit-tab:hover .fx-potion { opacity: 1; transform: none; }
  .fx-pearl .mc-sprite { animation: none; }
  .kit-tab:hover .fx-pearl::before, .kit-tab:hover .fx-pearl::after { animation: none; }
  .kit-tab:hover .sw-l, .kit-tab:hover .sw-r { animation: none; opacity: 1; }
  .kit-tab:hover .mc-sword::after { animation: none; }
}

/* ==========================================================================
   Доработки
   ========================================================================== */

/* ---------- Горизонтальный скроллбар в колонке тира ----------
   Раньше на hover строка сдвигалась на 2px вправо (translateX) и увеличивала padding —
   из-за overflow-y:auto колонка автоматически получала ещё и горизонтальный скролл.
   Прячем overflow-x и убираем сдвиг: остаётся только подсветка строки. */
body.tierlist-page .tierlist-col .col-body { overflow-x: hidden; }
body.tierlist-page .tierlist-col .row:hover { transform: none; padding-left: 14px; }
body.tierlist-page .tierlist-col .row { border-left: 3px solid transparent; }
body.tierlist-page .tierlist-col .row .name-with-avatar { min-width: 0; }

/* ---------- Шапка: выпадающее меню «Ещё» (Правила, Анонсы, Очередь) ---------- */
body.tierlist-page .nav-more { position: relative; }
body.tierlist-page .nav-more-btn {
  position: relative; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--text-dim); white-space: nowrap;
}
body.tierlist-page .nav-more-btn::before {
  content: ''; display: inline-block; margin-right: 7px; vertical-align: middle;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor;
}
body.tierlist-page .nav-more.open .nav-more-btn::before { border-top: 0; border-bottom: 6px solid currentColor; }
body.tierlist-page .nav-more-btn:hover, body.tierlist-page .nav-more.open .nav-more-btn, body.tierlist-page .nav-more-btn.active { color: var(--text); }
body.tierlist-page .nav-more-btn.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--mc-text);
}
body.tierlist-page .nav-more-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: -10px; min-width: 150px; z-index: 40;
  background: var(--c-1c1c1c); padding: 4px; flex-direction: column;
  box-shadow: var(--mc-bevel), 0 12px 0 -4px rgba(0, 0, 0, .35);
}
body.tierlist-page .nav-more.open .nav-more-menu { display: flex; }
body.tierlist-page .nav-more-menu a {
  display: block; padding: 8px 12px; font-size: 16px; color: var(--mc-text); border-left: 3px solid transparent;
}
body.tierlist-page .nav-more-menu a::after { display: none; }
body.tierlist-page .nav-more-menu a + a { border-top: 2px solid var(--c-000000); }
body.tierlist-page .nav-more-menu a:hover, body.tierlist-page .nav-more-menu a.active {
  background: var(--mc-btn-hover); border-left-color: var(--mc-text); color: var(--c-ffffff);
}

/* ---------- Поиск по нику: выпадающий список в стиле игры ---------- */
body.tierlist-page .search-results {
  top: calc(100% + 8px);
  background: var(--c-1c1c1c); border: 0; border-radius: 0; padding: 4px;
  box-shadow: var(--mc-bevel), 0 12px 0 -4px rgba(0, 0, 0, .35);
  animation: none;
}
body.tierlist-page .search-results a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; font-weight: 400; font-size: 16px; color: var(--mc-text);
  border-left: 3px solid transparent;
}
body.tierlist-page .search-results a + a { border-top: 2px solid var(--c-000000); }
body.tierlist-page .search-results a:hover,
body.tierlist-page .search-results a.active {
  background: var(--mc-btn-hover); padding-left: 10px; border-left-color: var(--mc-text); color: var(--c-ffffff);
}
body.tierlist-page .search-results .avatar-head { width: 28px; height: 28px; flex: none; box-shadow: 0 0 0 2px var(--c-000000); }
body.tierlist-page .search-results .nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Чёткий пиксельный текст ----------
   Шрифт нарисован на сетке 8px: буквы получаются читаемыми только при размерах 16/24/32px
   (и при масштабе страницы 100%). При других размерах пиксели «плывут», и «в», «д», «ы»
   превращаются в «е», «а», «bl». Поэтому во всех mc-стилях оставлены только кратные 8. */
body.tierlist-page, .mc-ui {
  text-rendering: optimizeSpeed;
  font-kerning: none;
  font-variant-ligatures: none;
}


/* ---- Тир-лист: стрелки HT/LT и блок «Ретайред» (защита тира) ---- */
body.tierlist-page .tierlist-col .row .trend {
  box-sizing: content-box; width: 22px; height: 22px; margin: 0 0 0 auto; padding: 0 0 0 8px; flex: none; align-self: center; order: 5;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--c-aaaaaa); opacity: .9; overflow: visible;
  transition: color .3s ease, opacity .3s ease, transform .35s cubic-bezier(.2, .8, .25, 1);
}
body.tierlist-page .tierlist-col .row .trend.up, body.tierlist-page .tierlist-col .row .trend.down { color: var(--c-aaaaaa); }
/* При наведении на строку шевроны светлеют и плавно «подпрыгивают» в свою сторону */
body.tierlist-page .tierlist-col .row:hover .trend { color: var(--c-ffffff); opacity: 1; }
body.tierlist-page .tierlist-col .row:hover .trend.up   { transform: translateY(-3px); }
body.tierlist-page .tierlist-col .row:hover .trend.down { transform: translateY(3px); }
/* Сам шеврон под курсором чуть увеличивается */
body.tierlist-page .tierlist-col .row .trend:hover { transform: scale(1.2); }
body.tierlist-page .tierlist-col .row:hover .trend.up:hover   { transform: translateY(-3px) scale(1.2); }
body.tierlist-page .tierlist-col .row:hover .trend.down:hover { transform: translateY(3px) scale(1.2); }
@media (prefers-reduced-motion: reduce) {
  body.tierlist-page .tierlist-col .row .trend { transition: none; }
}
body.tierlist-page .tierlist-col .retired-sep {
  margin: 10px 14px 2px; padding-top: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: #a0a0a0; border-top: 2px dashed rgba(160,160,160,.45);
}
body.tierlist-page .tierlist-col .row.retired { opacity: .75; }
body.tierlist-page .tierlist-col .row .rank.retired-tag { width: auto; min-width: 26px; margin-right: 8px; color: #a0a0a0; font-size: 13px; }
body.tierlist-page.mc-inv .tierlist-col .row .rank.retired-tag,
body.tierlist-page.sk .tierlist-col .row .rank.retired-tag { color: #c6c6c6; margin: 0 0 0 8px; }
