:root {
  --bg: #0f1117;
  --surface: #1a1d28;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #c9a34a;
  --accent-2: #3d6fb8;
  --ring: #2a3142;
  --radius: 12px;
  --font: "JetBrains Mono", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --prose: 40rem;
  --space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(61, 111, 184, 0.12), transparent 50%),
    radial-gradient(ellipse 100% 60% at 100% 10%, rgba(201, 163, 74, 0.08), transparent 45%),
    linear-gradient(180deg, #0f1117 0%, #12151d 100%);
  min-height: 100vh;
}

a {
  color: #b8d3ff;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--ring);
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand--herocodex {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand__logo {
  display: block;
  height: auto;
  width: auto;
  max-width: min(280px, 72vw);
  max-height: 2.75rem;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--accent);
}

.brand--herocodex:hover .brand__logo,
.brand--herocodex:focus-visible .brand__logo {
  opacity: 0.92;
  filter: brightness(1.06);
}

.nav a {
  font-size: 0.95rem;
  padding: 0.35em 0.6em;
  border-radius: 6px;
  color: #dbe4f5;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: none;
  background: var(--surface);
  border-color: var(--ring);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang__link {
  padding: 0.25em 0.45em;
  border-radius: 4px;
  color: var(--muted) !important;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.lang__link:hover,
.lang__link:focus-visible {
  color: #dbe4f5 !important;
  background: var(--surface);
  border-color: var(--ring);
}

.lang__link.is-active {
  color: var(--accent) !important;
  border-color: rgba(201, 163, 74, 0.35);
  background: rgba(201, 163, 74, 0.08);
}

/* Temporary: hide language switcher until locales are ready — delete this rule to restore */
.lang {
  display: none !important;
}

.main {
  flex: 1;
  padding-top: 1.5rem;
}

.prose {
  max-width: var(--prose);
  font-size: 1.02rem;
  color: #c9ced9;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
  line-height: 1.2;
  font-weight: 600;
}

.prose h2 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 0.9em;
}

.prose ul {
  margin: 0.5em 0 1em 1.2em;
  padding: 0;
}

.prose li {
  margin: 0.3em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1em 0 1.25em;
  line-height: 1.4;
}

.prose th,
.prose td {
  border: 1px solid var(--ring);
  padding: 0.5em 0.65em;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text);
  background: rgba(26, 29, 40, 0.85);
  font-weight: 600;
}

.prose a {
  color: #7eb8ff;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55em 1.1em;
  border-radius: 8px;
  background: linear-gradient(145deg, #3a5280, #2c3f63);
  color: #f0f4ff !important;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #4a5f8b;
  text-decoration: none !important;
  box-shadow: 0 2px 0 #0a0c10;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.08);
  text-decoration: none !important;
}

.home-intro {
  max-width: 40rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.page-hero__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44rem;
}

.page-hero__intro.prose--champions-lede p + p {
  margin-top: 0.85rem;
}

.page-hero__intro.prose--champions-lede strong {
  color: var(--text);
}

.champ-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.champ-card {
  margin: 0;
}

.champ-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.champ-card__link:hover,
.champ-card__link:focus-visible {
  text-decoration: none;
  border-color: var(--accent-2);
  box-shadow: 0 4px 24px rgba(61, 111, 184, 0.2);
  transform: translateY(-2px);
}

.champ-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.champ-card__link--compact {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem 0.55rem;
  height: 100%;
  transform: none;
}

.champ-card__link--compact:hover,
.champ-card__link--compact:focus-visible {
  transform: none;
}

.champ-card__media {
  display: block;
  aspect-ratio: 1;
  background: #12151d;
  overflow: hidden;
}

.champ-card__link--compact .champ-card__media {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  align-self: stretch;
  border-radius: 10px;
  border: 1px solid var(--ring);
}

.champ-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champ-card__link--compact .champ-card__media img {
  object-fit: contain;
  object-position: center center;
}

.champ-card__media--placeholder {
  min-height: 7.5rem;
  background: linear-gradient(160deg, #1e2330, #0f1219);
}

.champ-card__link--compact .champ-card__media--placeholder {
  min-height: 0;
  aspect-ratio: 1;
}

.champ-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem 1.1rem;
  flex: 1;
}

.champ-card__link--compact .champ-card__body {
  padding: 0;
  min-width: 0;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.champ-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.champ-card__link--compact .champ-card__name {
  font-size: 0.82rem;
  line-height: 1.2;
}

.champ-card__excerpt {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.champ-card__link--compact .champ-card__excerpt {
  -webkit-line-clamp: 2;
  font-size: 0.68rem;
  line-height: 1.3;
}

.champ-card__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d7789;
  margin-top: auto;
}

.champ-card__link--compact .champ-card__meta {
  font-size: 0.58rem;
  margin-top: 0.15rem;
  letter-spacing: 0.04em;
}

.champ-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  max-width: none;
  width: 100%;
  font-size: 0.9rem;
}

.champ-pagination__status {
  color: var(--muted);
}

.champ-pagination__link {
  color: #7eb8ff !important;
  font-weight: 600;
  text-decoration: none !important;
}

.champ-pagination__link:hover,
.champ-pagination__link:focus-visible {
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.champ-pagination__muted {
  color: #4a5568;
  cursor: default;
}

.champ-detail__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  .champ-detail__header {
    flex-direction: row;
    align-items: flex-start;
  }
}

.champ-detail__portrait {
  flex: 0 0 auto;
  width: 100%;
  max-width: 12rem;
  border-radius: var(--radius);
  border: 1px solid var(--ring);
  overflow: hidden;
  background: #12151d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.champ-detail__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  vertical-align: top;
}

.champ-detail__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 0.4rem;
  line-height: 1.1;
  color: var(--text);
}

.champ-detail__lede {
  font-size: 1.1rem;
  color: #aeb7c5;
  margin: 0 0 0.8rem;
  line-height: 1.4;
  max-width: 36rem;
}

.champ-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-size: 0.88rem;
}

.champ-detail__meta div {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  margin: 0;
}

.champ-detail__meta dt {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.champ-detail__meta dd {
  margin: 0;
  color: #dbe0ea;
  font-weight: 500;
}

.champ-detail__affinity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.champ-detail__affinity-icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.champ-detail__faction {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.champ-detail__faction-icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

/* Raid-style rarity pills (common → legendary) */
.champ-rarity-badge {
  display: inline-block;
  padding: 0.2em 0.6em 0.22em;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.35);
  /* default: common-style slate if slug has no matching variant */
  color: #e4e8ee;
  background: linear-gradient(180deg, #5a616e 0%, #3d4450 55%, #323843 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Common — slate (explicit) */
.champ-rarity-badge--common {
  color: #e4e8ee;
  background: linear-gradient(180deg, #5a616e 0%, #3d4450 55%, #323843 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Uncommon — green */
.champ-rarity-badge--uncommon {
  color: #dfffea;
  background: linear-gradient(180deg, #2f8f46 0%, #1e6b32 50%, #164a24 100%);
  border-color: rgba(80, 220, 120, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Rare — blue */
.champ-rarity-badge--rare {
  color: #e8f2ff;
  background: linear-gradient(180deg, #2a6fbf 0%, #1a4d8c 50%, #123a6a 100%);
  border-color: rgba(100, 180, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Epic — purple */
.champ-rarity-badge--epic {
  color: #f2e8ff;
  background: linear-gradient(180deg, #7a3ab5 0%, #5a2888 50%, #3d1a5e 100%);
  border-color: rgba(200, 140, 255, 0.38);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Legendary — gold */
.champ-rarity-badge--legendary {
  color: #1a1408;
  background: linear-gradient(145deg, #f0d078 0%, #c9a34a 42%, #8a6a28 100%);
  border-color: rgba(255, 220, 140, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(201, 163, 74, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Mythical (if used) — strong red / rose gold accent */
.champ-rarity-badge--mythical {
  color: #fff5f5;
  background: linear-gradient(145deg, #c43c5a 0%, #8a2040 50%, #5a1228 100%);
  border-color: rgba(255, 140, 160, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.champ-detail__body {
  padding-top: 0.5rem;
  border-top: 1px solid var(--ring);
}

/* —— Arbiter-style deep guide (params.guideView) —— */
.champ-detail--guide .champ-detail__header--hero {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 163, 74, 0.2);
  background:
    linear-gradient(135deg, rgba(61, 111, 184, 0.14) 0%, rgba(15, 17, 23, 0.92) 45%, rgba(201, 163, 74, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.champ-detail--guide .champ-detail__header--hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--accent) 0%, #5a4a2a 50%, var(--accent-2) 100%);
  box-shadow: 0 0 20px rgba(201, 163, 74, 0.35);
}

.champ-detail--guide .champ-detail__portrait {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 163, 74, 0.2),
    0 0 24px rgba(61, 111, 184, 0.15);
}

.champ-detail--guide .champ-detail__title {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.champ-detail--guide .champ-detail__meta div {
  padding: 0.2em 0.55em 0.2em 0.45em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ring);
}

.champ-detail--guide .champ-detail__meta dt {
  font-size: 0.65rem;
  opacity: 0.9;
}

.prose.prose--guide h2 {
  position: relative;
  margin-top: 2.1em;
  padding-left: 0.9rem;
  font-size: 1.3rem;
  border-left: 3px solid rgba(201, 163, 74, 0.55);
  background: linear-gradient(90deg, rgba(201, 163, 74, 0.06) 0%, transparent 100%);
  scroll-margin-top: 0.5rem;
}

.prose.prose--guide h2:first-of-type,
.prose.prose--guide > h2:nth-of-type(1) {
  margin-top: 0;
}

.prose.prose--guide h3 {
  margin-top: 1.35em;
  color: #dce2ec;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.guide-card {
  margin: 0 0 1.75em;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 111, 184, 0.3);
  background: linear-gradient(160deg, rgba(61, 111, 184, 0.12) 0%, rgba(26, 29, 40, 0.5) 60%, #151821 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* “Quick read” callout (original look: gold wash + ◆ list) */
.guide-card--quick {
  border-color: rgba(201, 163, 74, 0.28);
  background: linear-gradient(160deg, rgba(201, 163, 74, 0.1) 0%, rgba(26, 29, 40, 0.4) 55%, #13161e 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 6px 28px rgba(0, 0, 0, 0.18);
  padding: 1.1rem 1.15rem 1.05rem;
}

.guide-card__label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.95;
}

.guide-card__intro {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #d0d6e0;
  max-width: 40rem;
  text-align: left;
}

.guide-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

/* Inside prose, reset default `ul` indent so the card width matches the intro */
.prose .guide-ticks {
  margin-left: 0;
  margin-bottom: 0;
}

/* Do not use flex on `li` here: each text node and <strong> become separate flex
   children, so `gap` widens the spaces *between* words. Icon is positioned so body text flows as one line. */
.guide-ticks li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.4rem;
  line-height: 1.6;
  font-size: 0.94rem;
  color: #bfc6d2;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
}

.guide-ticks__icon {
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--accent);
  font-size: 0.65em;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(201, 163, 74, 0.45);
  user-select: none;
}

.guide-callout {
  margin: 2em 0 0.5em;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
}

.guide-callout--final {
  border: 1px solid rgba(201, 163, 74, 0.3);
  background: linear-gradient(180deg, rgba(201, 163, 74, 0.1) 0%, rgba(15, 17, 23, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prose.prose--guide .guide-callout h2,
.guide-callout h2 {
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

.guide-callout__text {
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
  color: #ced4df;
}

.prose.prose--guide table {
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.prose.prose--guide th {
  background: linear-gradient(180deg, #232836 0%, #1a1d28 100%);
}

.page-single h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ring);
}

.disclaimer {
  max-width: 50rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5c6575;
  margin: 0;
}

/* Champions index grid — REMINDER: use `ul.champ-list` only (never `champ-grid` on this page).
   `.champ-grid` uses auto-fill + minmax(15rem) and caps at ~4 columns; that caused the old bug.
   Thumbnail sizing lives on `.champ-card__link--compact .champ-card__media` — do not bump when tuning columns. */
ul.champ-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  width: 100%;
  gap: 0.65rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
  ul.champ-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  ul.champ-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* —— Best champions landing (/best-champions/) —— */
.prose.prose--best {
  max-width: 100%;
}

.best-page {
  padding-bottom: 2rem;
}

.best-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.65rem;
  color: var(--text);
  line-height: 1.15;
}

.best-hero__intro {
  margin: 0 0 1rem;
  max-width: 44rem;
}

.best-hero__intro p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.best-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.best-cta-row .btn {
  margin-top: 0;
}

.btn--secondary {
  background: linear-gradient(145deg, #2a3448, #222a3a);
  border-color: var(--ring);
  color: #dbe4f5 !important;
}

.best-rule {
  border: none;
  border-top: 1px solid var(--ring);
  margin: 2rem 0;
}

.best-section {
  margin-bottom: 2.25rem;
}

.best-section__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.best-section__title--sm {
  font-size: 1.15rem;
  margin-top: 0;
}

.best-section--picks {
  margin-bottom: 0;
}

.best-picks-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .best-picks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.best-pick-block {
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: rgba(26, 29, 40, 0.55);
}

.best-pick-block__title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Pick blocks: no per-champion chip borders */
.best-section--picks .best-champ-rows--pick.best-champ-rows--col .best-champ-icon {
  border: none;
  background: transparent;
  padding-left: 0;
}

.best-section--picks .best-champ-rows--pick.best-champ-rows--col .best-champ-icon:hover,
.best-section--picks .best-champ-rows--pick.best-champ-rows--col .best-champ-icon:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.best-ad-slot {
  margin: 2rem 0;
  padding: 2rem 1rem;
  border: 1px dashed rgba(154, 163, 178, 0.35);
  border-radius: var(--radius);
  background: rgba(26, 29, 40, 0.35);
  text-align: center;
}

.best-ad-slot__placeholder {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.best-tier-lede {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Icon + name row (matches comparison table column; used in lists too) */
.best-champ-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: var(--text) !important;
  font-weight: 600;
}

.best-champ-icon:hover .best-champ-icon__name,
.best-champ-icon:focus-visible .best-champ-icon__name {
  color: #9ec5ff;
}

.best-champ-icon__media {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ring);
  background: #12151d;
}

.best-champ-icon__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-champ-icon__media--placeholder {
  background: linear-gradient(160deg, #1e2330, #0f1219);
}

.best-champ-icon__name {
  min-width: 0;
}

/* Best page lists: inline order, wrap like chips (table column still uses plain .best-champ-icon) */
.best-champ-rows {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
}

.best-champ-rows__item {
  margin: 0;
}

.best-champ-rows .best-champ-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.55rem 0.28rem 0.32rem;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ring);
  border-radius: 8px;
  background: rgba(22, 26, 36, 0.55);
}

.best-champ-rows .best-champ-icon:hover,
.best-champ-rows .best-champ-icon:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

/* Slightly tighter portrait in inline chips (table keeps default 40px from .best-champ-icon__media) */
.best-champ-rows .best-champ-icon__media {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.best-champ-rows .best-champ-icon__name {
  font-size: 0.86rem;
  line-height: 1.25;
}

.prose.prose--best .best-section--picks ul.best-champ-rows {
  margin-left: 0;
  padding-left: 0;
}

.prose.prose--best .best-section--picks .best-champ-rows > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.best-champ-rows--quick {
  gap: 0.32rem 0.4rem;
}

.best-champ-rows--quick .best-champ-icon {
  padding: 0.2rem 0.45rem 0.2rem 0.26rem;
}

.best-champ-rows--quick .best-champ-icon__media {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.best-champ-rows--quick .best-champ-icon__name {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Best * strips: one block per row, chips stacked in a column */
.best-champ-rows--col {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.best-champ-rows--col .best-champ-rows__item {
  width: 100%;
}

.best-champ-rows--col .best-champ-icon {
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

/* Tier & beginners: vertical list, icon+name — short reason */
.best-name-col {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 48rem;
}

.best-name-col__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 0;
  margin: 0;
  border-bottom: 1px solid var(--ring);
}

.best-name-col__item:last-child {
  border-bottom: none;
}

.best-name-col--tier .best-name-col__item {
  border-bottom: none;
  padding: 0.4rem 0;
}

/* Separator between S-tier and A-tier (may have ads between sections) */
main .best-section--tier ~ .best-section--tier {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ring);
}

.best-name-col .best-champ-icon {
  flex: 0 1 auto;
}

.best-name-col__sep {
  color: #5c6575;
  flex-shrink: 0;
  user-select: none;
}

.best-name-col__why {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.38;
  color: var(--muted);
  min-width: 0;
}

@media (max-width: 520px) {
  .best-name-col__sep {
    display: none;
  }

  .best-name-col__why {
    flex-basis: 100%;
    padding-left: calc(40px + 0.45rem);
  }
}

.best-name-col--beginner {
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: transparent;
}

.best-name-col--beginner .best-name-col__item {
  border-bottom: none;
  padding: 0.4rem 0;
}

.prose.prose--best ul.best-name-col {
  margin-left: 0;
  padding-left: 0;
}

.prose.prose--best .best-name-col > li {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.best-mode-intro {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.best-mode-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.best-mode-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--ring);
  background: var(--surface);
  text-align: center;
  font-weight: 600;
  color: #dbe4f5 !important;
}

.best-mode-link.is-placeholder {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.best-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.best-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.best-table th,
.best-table td {
  border: 1px solid var(--ring);
  padding: 0.5em 0.65em;
  text-align: left;
}

.best-table th {
  background: rgba(26, 29, 40, 0.85);
  color: var(--text);
  font-weight: 600;
}

.best-rank-list {
  margin: 0.5em 0 0;
  padding-left: 1.2rem;
}

.best-rank-list li {
  margin: 0.45em 0;
}

.best-faq dt {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
}

.best-faq dt:first-child {
  margin-top: 0;
}

.best-faq dd {
  margin: 0.35rem 0 0;
  color: #aeb6c4;
}

.addon-markdown {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ring);
}
