/* ==========================================================================
   All-champion build overview (/champions)
   One card per champion: best-sampled lane, core/boots and the enemy-type
   counters drawn from the same purchases.
   ========================================================================== */

.champions-page .ch-shell { padding-top: 26px; }

.ch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr);
  gap: 30px;
  align-items: stretch;
  padding: 12px 2px 26px;
}

.ch-hero-copy { min-width: 0; padding: 10px 0; }

.ch-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 800;
}
.ch-hero h1 em {
  font-style: normal;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.ch-hero h1 span {
  background: linear-gradient(100deg, var(--accent), #ff9a55 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ch-hero .lede { max-width: 820px; }

.ch-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.ch-hero-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 20, 31, .55);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
}

.ch-hero-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 61, 129, .1), transparent 55%),
    linear-gradient(180deg, rgba(17, 27, 41, .94), rgba(9, 14, 22, .97));
  box-shadow: var(--shadow);
}
.ch-hero-card > .note-kicker { color: var(--accent-2); }

.ch-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-soft);
}
.ch-hero-stats div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 10px 12px;
  background: rgba(9, 14, 22, .92);
}
.ch-hero-stats strong {
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.ch-hero-stats span {
  margin-top: 6px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .06em;
}
.ch-hero-note {
  margin: auto 0 0;
  padding-top: 14px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

/* --------------------------------------------------------------- controls */
.ch-controls { margin-bottom: 16px; padding: 16px 18px 13px; }
.ch-controls-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ch-controls-head .eyebrow { margin-bottom: 4px; }
.ch-controls-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }

.ch-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, .8fr));
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.ch-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ch-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ch-field select,
.ch-field input { width: 100%; min-height: 36px; }
.ch-field input[type="search"] { padding-right: 12px; }

.ch-result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.ch-result-meta { margin: 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-status { margin: 0; color: var(--dim); font-size: 11px; }
.ch-status.is-error { color: #ff9aac; }

/* ------------------------------------------------------------------- grid */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.champ-card {
  --lane: #8b9bb2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(17, 27, 41, .86), rgba(10, 15, 24, .95));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.champ-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 46px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--lane);
  opacity: .85;
}
.champ-card:hover {
  border-color: #385472;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
}
.champ-card[data-lane="TOP"] { --lane: #ffbf5b; }
.champ-card[data-lane="JUNGLE"] { --lane: #48d7a0; }
.champ-card[data-lane="MIDDLE"] { --lane: #46a7ff; }
.champ-card[data-lane="BOTTOM"] { --lane: #ff7c9c; }
.champ-card[data-lane="UTILITY"] { --lane: #b69cff; }

.champ-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.champ-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.champ-identity:hover .champ-names strong { color: var(--accent); }
.champ-portrait {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid #31445e;
  border-radius: 9px;
  object-fit: cover;
  background: #101a28;
}
.champ-portrait.is-missing {
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 14px;
  font-weight: 800;
}
.champ-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.champ-names strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .16s ease;
}
.champ-names span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.champ-lane {
  flex: none;
  padding: 3px 6px;
  border: 1px solid var(--lane);
  border-radius: 6px;
  color: var(--lane);
  background: rgba(255, 255, 255, .025);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.champ-lane.is-empty { border-color: var(--line); color: var(--dim); }

.champ-sample {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.champ-sample b { color: var(--text); font-size: 12px; }
.champ-wr { color: #9ad8bd; }
.champ-wr.is-bad { color: #ff9aac; }
.champ-low {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid rgba(232, 185, 120, .35);
  border-radius: 5px;
  color: #e8b978;
  font-size: 8px;
  letter-spacing: .04em;
}

.champ-block { min-width: 0; margin-top: 9px; }
.champ-block-label {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.champ-block-label .champ-block-meta {
  margin-left: 6px;
  color: rgba(198, 211, 229, .55);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}
.champ-items { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.champ-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  padding: 2px 6px 2px 2px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, .022);
  color: #c6d3e5;
  font-size: 9px;
  line-height: 1.2;
}
.champ-item img {
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .06);
}
.champ-item span {
  overflow: hidden;
  max-width: 118px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.champ-item.is-empty,
.champ-item.is-boots {
  padding: 4px 6px;
  color: var(--muted);
}
.champ-item.is-empty { color: var(--dim); border-style: dashed; }

.champ-counter-block { margin-top: 10px; }
.champ-counters { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.champ-counter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border: 1px solid rgba(70, 167, 255, .3);
  border-radius: 6px;
  background: rgba(70, 167, 255, .065);
  color: #a9d3ff;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}
.champ-counter img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .07);
}
.champ-counter.is-empty {
  border-color: var(--line-soft);
  border-style: dashed;
  background: none;
  color: var(--dim);
}

.champ-guide-link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .02em;
}
.champ-guide-link:hover { color: var(--accent); }

.ch-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  margin-top: 16px;
  padding: 42px 18px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}
.ch-empty strong { color: var(--text); font-size: 14px; }

/* ----------------------------------------------------------------- method */
.ch-method { margin-top: 18px; padding-bottom: 14px; }
.ch-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-soft);
}
.ch-method-grid article { padding: 14px; background: rgba(9, 14, 22, .9); }
.ch-method-grid .note-kicker { color: var(--accent-2); font-size: 9px; }
.ch-method-grid h3 { margin: 6px 0 5px; font-size: 13px; letter-spacing: -.01em; }
.ch-method-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.ch-method-foot { margin: 12px 14px 0; color: var(--dim); font-size: 10px; line-height: 1.6; }
.ch-method-foot a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.ch-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 2px 26px;
  color: var(--dim);
  font-size: 9px;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-hero { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .75fr); gap: 22px; }
  .ch-filter-grid { grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(128px, .8fr)); }
}

@media (max-width: 960px) {
  .ch-hero { grid-template-columns: 1fr; gap: 14px; padding-top: 6px; }
  .ch-hero-copy { padding-top: 8px; }
  .ch-hero-card { padding: 16px; }
  .ch-hero-note { margin-top: 12px; }
  .ch-filter-grid { grid-template-columns: 1fr 1fr; }
  .ch-field-search { grid-column: 1 / -1; }
  .ch-method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-shell { padding-top: 16px; }
  .ch-hero h1 { font-size: 31px; }
  .ch-hero h1 span { display: block; }
  .ch-hero-stats strong { font-size: 22px; }
  .champ-item span { max-width: 150px; }
}

@media (max-width: 520px) {
  .ch-filter-grid { grid-template-columns: 1fr; }
  .ch-field-search { grid-column: auto; }
  .ch-hero-stats { grid-template-columns: 1fr 1fr; }
  .ch-foot { width: calc(100% - 20px); }
}
