/* Champion portrait — reused in stat tables and match-history rows. Riot's
   splash crops are the only imagery in the app, so they read as coloured
   tokens rather than pictures. */
.champion-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  vertical-align: middle;
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px rgba(20, 21, 26, 0.08);
  flex-shrink: 0;
}

/* Gap between the portrait and the adjacent label in history rows.
   (The match roster uses flex `gap` on `.match__player` instead.) */
.history__position .champion-icon {
  margin-right: var(--space-sm);
}

.champion-icon--blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Champion / games / W–L / win-rate list with a mint rate bar. */
.champion-stats__list {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.champion-stats__item {
  display: grid;
  grid-template-columns: 1fr 56px 72px 110px;
  align-items: center;
  gap: var(--space-md);
  padding: var(--row-pad-y) 0;
  border-bottom: var(--border-width) solid var(--border-default);
  font-size: var(--text-base);
}

.champion-stats__item:last-child {
  border-bottom: none;
}

.champion-stats__item--head {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-secondary);
  padding: 0 0 var(--space-sm);
}

.champion-stats__champ {
  display: flex;
  align-items: center;
  gap: var(--space-smd);
  min-width: 0;
}

.champion-stats__name {
  font-weight: var(--weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-stats__games,
.champion-stats__record,
.champion-stats__rate,
.champion-stats__item--head .champion-stats__rate {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.champion-stats__games {
  color: var(--text-secondary);
}

.champion-stats__record {
  color: var(--ink-700);
}

.champion-stats__rate-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.champion-stats__rate {
  font-weight: var(--weight-semibold);
  color: var(--text-win);
}

/* De-emphasise small-sample win rates (under the games threshold). */
.champion-stats__rate--provisional {
  font-weight: var(--weight-regular);
  color: var(--text-tertiary);
}

.champion-stats__bar {
  display: block;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunk);
  overflow: hidden;
}

.champion-stats__bar-fill {
  display: block;
  height: 100%;
  background: var(--mint-500);
  border-radius: var(--radius-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

/* The league-wide champion-stats page around the table. */
.champion-stats--page {
  max-width: var(--measure-mid);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.champion-stats__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.champion-stats__title {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
}

.champion-stats__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-secondary);
}
