/* Тир-лист: минималистичная кнопка «Пройти тест» рядом с заголовком — ведёт в очередь выбранного кита (/queue#<kit>). */
html body.tierlist-page .tl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 18px; }
html body.tierlist-page .tl-head > h1 { margin-bottom: 0; }
html body.tierlist-page .tl-test {
  --tc: #f5c518;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 700 13.5px/1 'Onest', 'Inter', system-ui, sans-serif; letter-spacing: .01em; color: var(--tc);
  background: color-mix(in srgb, var(--tc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 38%, transparent);
  transition: background .18s, color .18s, border-color .18s;
}
html body.tierlist-page .tl-test:hover { background: var(--tc); border-color: var(--tc); color: #151515; }
html body.tierlist-page .tl-test:focus-visible { outline: 2px solid var(--tc); outline-offset: 3px; }
html body.tierlist-page .tl-test .tt-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: currentColor; opacity: .45; }
html body.tierlist-page .tl-test.open .tt-dot { background: #3fbf3f; opacity: 1; animation: tt-pulse 2s ease-out infinite; }
html body.tierlist-page .tl-test.closed .tt-dot { background: #e04444; opacity: 1; }
html body.tierlist-page .tl-test .tt-arrow { font-style: normal; font-weight: 600; transition: transform .18s; }
html body.tierlist-page .tl-test:hover .tt-arrow { transform: translateX(3px); }
@keyframes tt-pulse { 0% { box-shadow: 0 0 0 0 rgba(63,191,63,.55); } 100% { box-shadow: 0 0 0 7px transparent; } }
@media (max-width: 640px) { html body.tierlist-page .tl-test { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { html body.tierlist-page .tl-test, html body.tierlist-page .tl-test .tt-arrow { transition: none; } html body.tierlist-page .tl-test.open .tt-dot { animation: none; } }

/* v2 — заголовок и кнопка на одной линии по центру, кнопке больше воздуха (раньше она «сидела» по нижнему краю и казалась ужатой) */
html body.tierlist-page:not(.x) .tl-head { align-items: center; margin-bottom: 22px; }
html body.tierlist-page:not(.x) .tl-head > h1 { margin: 0; line-height: 1; }
html body.tierlist-page:not(.x) .tl-test {
  height: 46px; padding: 0 22px 0 18px; gap: 12px; font-size: 14px; line-height: 1; white-space: nowrap; flex: none;
}
html body.tierlist-page:not(.x) .tl-test > span { display: inline-block; line-height: 1; }
html body.tierlist-page:not(.x) .tl-test .tt-arrow { line-height: 1; font-size: 15px; }
@media (max-width: 640px) { html body.tierlist-page:not(.x) .tl-head { align-items: stretch; } }
