:root {
  --bg: #041117;
  --surface: rgba(5, 20, 28, 0.92);
  --surface-soft: rgba(37, 221, 241, 0.06);
  --border: rgba(67, 232, 255, 0.18);
  --text: #eff6ff;
  --muted: #9fb3d9;
  --blue: #3ecbf0;
  --cyan: #2ff0ff;
  --violet: #1db9d8;
  --red: #ff7f9f;
  --theme-glow-a: rgba(47, 240, 255, 0.08);
  --theme-glow-b: rgba(36, 197, 214, 0.06);
  --theme-overlay-a: rgba(3, 14, 21, 0.94);
  --theme-overlay-b: rgba(3, 18, 25, 0.8);
  --theme-overlay-c: rgba(3, 22, 29, 0.72);
  --theme-overlay-d: rgba(2, 12, 18, 0.9);
  --shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}

.matchups-page {
  position: relative;
  overflow: visible;
  padding: 30px;
  min-height: 760px;
  background:
    radial-gradient(circle at 50% 20%, rgba(88, 226, 255, 0.12), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(120, 98, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(7, 13, 26, 0.96), rgba(11, 16, 34, 0.98));
}

.matchups-page__backdrop,
.matchups-page__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.matchups-page__backdrop {
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.78), rgba(4, 10, 22, 0.92)),
    url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Yasuo_0.jpg") center/cover no-repeat,
    radial-gradient(circle at center, rgba(126, 216, 255, 0.08), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(169, 116, 255, 0.1), transparent 32%);
  filter: saturate(0.9) brightness(0.72);
}

.matchups-page__grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

.matchups-page > * {
  position: relative;
  z-index: 1;
}

.matchups-page__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}

.matchups-page__header h2 {
  margin: 6px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  max-width: 780px;
}

.matchups-stage {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
  overflow: visible;
}

.matchups-floaters {
  display: grid;
  gap: 18px;
}

.matchups-floaters:first-child {
  justify-items: end;
}

.matchups-floater {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(110, 145, 255, 0.18);
  border-radius: 16px;
  background: rgba(10, 15, 30, 0.68);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  width: max-content;
}

.matchups-floater img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.matchups-floater span {
  color: rgba(190, 205, 235, 0.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.matchup-floater--1 { transform: rotate(-8deg); }
.matchup-floater--2 { transform: rotate(4deg); }
.matchup-floater--3 { transform: rotate(-6deg); }
.matchup-floater--4 { transform: rotate(7deg); }
.matchup-floater--5 { transform: rotate(-5deg); }

.matchups-selector {
  display: grid;
  grid-template-columns: minmax(230px, 280px) 120px minmax(230px, 280px);
  align-items: center;
  gap: 24px;
  overflow: visible;
}

.matchup-picker {
  position: relative;
  z-index: 8;
}

.matchup-picker__card {
  width: 100%;
  min-height: 166px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(116, 156, 255, 0.18);
  background: linear-gradient(180deg, rgba(21, 26, 45, 0.96), rgba(11, 16, 31, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: #f4f8ff;
  cursor: pointer;
}

.matchup-picker__card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 226, 255, 0.34);
}

.matchup-picker__question {
  font-size: 74px;
  line-height: 1;
  color: rgba(186, 205, 255, 0.84);
}

.matchup-picker__image {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.matchup-picker__label {
  font-size: 20px;
  text-align: center;
}

.matchup-picker__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 86vw);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(118, 152, 255, 0.18);
  background: rgba(8, 13, 26, 0.97);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  z-index: 80;
}

.matchup-picker__search {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(116, 156, 255, 0.18);
  background: rgba(17, 23, 40, 0.92);
  color: #f3f8ff;
  margin-bottom: 14px;
}

.matchup-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

.matchup-option {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(117, 153, 255, 0.14);
  background: rgba(16, 22, 37, 0.82);
  color: #edf4ff;
  cursor: pointer;
  text-align: center;
}

.matchup-option img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.matchup-option span {
  font-size: 13px;
  line-height: 1.15;
}

.matchup-option:hover {
  border-color: rgba(112, 228, 255, 0.28);
  background: rgba(21, 29, 48, 0.96);
}

.matchups-versus {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.matchups-versus span {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.matchups-swap {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(117, 154, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(20, 28, 48, 0.96), rgba(11, 17, 30, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(6, 10, 18, 0.26);
  color: #dfeaff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.matchups-swap:hover {
  border-color: rgba(112, 228, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(8, 15, 28, 0.34),
    0 0 0 1px rgba(92, 218, 255, 0.06);
  transform: translateY(-1px);
}

.matchups-swap span {
  transform: translateY(-1px);
}

.matchups-versus select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(117, 154, 255, 0.18);
  background: rgba(14, 20, 34, 0.92);
  color: #edf3ff;
}

.matchups-result {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(13, 19, 36, 0.96));
}

.matchups-result::before,
.matchups-result::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-repeat: no-repeat;
  background-size: 36%;
}

.matchups-result::before {
  background-image: var(--matchup-splash-left);
  background-position: left center;
}

.matchups-result::after {
  background-image: var(--matchup-splash-right);
  background-position: right center;
  transform: scaleX(-1);
}

.matchups-result > * {
  position: relative;
  z-index: 1;
}

.matchups-result__empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  color: rgba(214, 225, 245, 0.88);
}

.matchups-result__summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.matchups-result__summary h3 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.matchups-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.matchups-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 145, 255, 0.16);
  background: rgba(14, 20, 34, 0.86);
  color: #eef6ff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matchups-result__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.matchups-video-stage {
  margin-top: 16px;
}

.matchups-video-shell {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(110, 145, 255, 0.16);
  background: #090d17;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.matchups-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #060913;
}

.matchups-video-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(110, 145, 255, 0.16);
  background: linear-gradient(180deg, rgba(10, 14, 25, 0.72), rgba(15, 20, 36, 0.78));
  color: rgba(226, 236, 248, 0.82);
  text-align: center;
}

.matchups-video-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.matchups-coach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.matchups-coach-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(110, 145, 255, 0.14);
  background: linear-gradient(180deg, rgba(13, 18, 33, 0.96), rgba(8, 13, 24, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.matchups-coach-card h4 {
  margin: 0;
  font-size: 17px;
  color: #f4f8ff;
}

.matchups-coach-card p {
  margin: 0;
  color: rgba(216, 227, 244, 0.82);
  line-height: 1.5;
}

.matchups-video-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(110, 145, 255, 0.14);
  background: rgba(12, 18, 32, 0.92);
  color: #eef5ff;
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.matchups-video-card:hover {
  border-color: rgba(112, 228, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(4, 8, 20, 0.35);
}

.matchups-video-card.is-active {
  border-color: rgba(112, 228, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(112, 228, 255, 0.16), 0 18px 30px rgba(6, 12, 26, 0.36);
}

.matchups-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #080d18;
}

.matchups-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.matchups-video-card__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.84);
  border: 1px solid rgba(120, 145, 255, 0.18);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matchups-video-card__body {
  display: grid;
  gap: 8px;
}

.matchups-video-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.matchups-video-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(208, 222, 242, 0.78);
  font-size: 12px;
}

.matchups-video-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.matchups-query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.matchups-query-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.matchups-query-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(110, 145, 255, 0.14);
  background: rgba(14, 19, 34, 0.88);
  color: #eef5ff;
}

.matchups-query-card:hover {
  border-color: rgba(112, 228, 255, 0.28);
  transform: translateY(-1px);
}

.matchups-query-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(110, 145, 255, 0.14);
  color: #eef5ff;
  background: rgba(18, 24, 40, 0.88);
}

.matchups-query-pill--primary {
  background: linear-gradient(135deg, rgba(85, 228, 255, 0.18), rgba(107, 110, 255, 0.26));
  border-color: rgba(115, 222, 255, 0.24);
}

.matchups-query-pill--secondary {
  background: rgba(18, 24, 40, 0.95);
}

@media (max-width: 1180px) {
  .matchups-stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .matchups-floaters:first-child,
  .matchups-floaters:last-child {
    justify-items: center;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .matchups-page {
    padding: 18px;
    min-height: auto;
  }

  .matchups-page__header,
  .matchups-result__summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .matchups-selector {
    grid-template-columns: 1fr;
  }

  .matchups-query-groups {
    grid-template-columns: 1fr;
  }

  .matchups-video-cards {
    grid-template-columns: 1fr;
  }

  .matchups-coach-grid,
  .matchups-query-groups {
    grid-template-columns: 1fr;
  }

  .matchup-picker__card {
    min-height: 136px;
  }

  .matchup-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matchups-floaters:first-child,
  .matchups-floaters:last-child {
    grid-template-columns: repeat(2, max-content);
  }
}

.champions-shell {
  grid-template-columns: minmax(350px, 410px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.champions-browser {
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(85, 210, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 30, 52, 0.96), rgba(9, 15, 28, 0.98)),
    rgba(9, 15, 28, 0.98);
}

.champions-toolbar {
  gap: 10px;
}

.champion-browser-grid {
  gap: 10px;
}

.champion-browser-card--premium {
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(100, 219, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(8, 14, 26, 0.86);
}

.champion-browser-card--premium:hover,
.champion-browser-card--premium.active {
  border-color: rgba(96, 231, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(55, 225, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 18, 32, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.champion-browser-card__art {
  position: relative;
}

.champion-browser-card--premium .champion-browser-card__image {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(110, 220, 255, 0.16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.champion-browser-card__role {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(110, 220, 255, 0.16);
  background: rgba(8, 14, 26, 0.86);
  color: #f5fbff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.champion-browser-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.champion-browser-card__headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.champion-browser-card__headline .champion-browser-card__name {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champion-browser-card__headline .champion-browser-card__tier {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(96, 231, 255, 0.1);
  border: 1px solid rgba(96, 231, 255, 0.16);
  color: #f5fbff;
  font-size: 0.74rem;
  font-weight: 800;
}

.champion-browser-card--premium .champion-browser-card__meta {
  margin: 0;
  color: rgba(214, 227, 255, 0.68);
  font-size: 0.8rem;
}

.champion-browser-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.champion-browser-card__metric {
  display: grid;
  gap: 4px;
}

.champion-browser-card__metric span,
.champion-browser-card__metric strong {
  display: block;
}

.champion-browser-card__metric span {
  color: rgba(214, 227, 255, 0.6);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.champion-browser-card__metric strong {
  color: #f8fbff;
  font-size: 0.85rem;
}

.champion-browser-card__bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.champion-browser-card__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #52f0ff, #5fb4ff);
}

.champion-browser-card__bar--pick span {
  background: linear-gradient(90deg, #8fffd1, #39d8c2);
}

.champion-browser-card__bar--ban span {
  background: linear-gradient(90deg, #ff9ca5, #ff5c7b);
}

.champion-detail {
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(85, 210, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(48, 216, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(17, 26, 46, 0.98), rgba(7, 12, 24, 0.98));
}

.champion-detail__hero--premium {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.champion-detail__hero-visual,
.champion-detail__stats--premium,
.champion-detail__section {
  border-radius: 24px;
  border: 1px solid rgba(101, 219, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 14, 26, 0.92);
}

.champion-detail__hero-visual {
  display: grid;
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(85, 210, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(8, 14, 26, 0.92);
}

.champion-detail__identity--hero {
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
}

.champion-detail__image--hero {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  border: 1px solid rgba(110, 220, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.champion-detail__spikes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill--soft {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.champion-detail__stats--premium {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.champion-detail__stat-card {
  min-height: 96px;
  display: grid;
  align-content: space-between;
}

.champion-detail__stat-card strong {
  font-size: 1.5rem;
  line-height: 1;
}

.champion-detail__tags--top {
  margin-top: -2px;
}

.champion-detail__grid--premium {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.champion-detail__section--main {
  grid-row: span 2;
}

.champion-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.champion-build-block--grid {
  gap: 12px;
}

.champion-detail__section--summary {
  grid-column: 1 / -1;
}

.champion-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.champion-summary-card,
.champion-counter-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.champion-summary-card span {
  color: rgba(214, 227, 255, 0.62);
  font-size: 0.78rem;
}

.champion-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.champion-counter-card {
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
}

.champion-counter-card span {
  color: #f4f8ff;
  font-weight: 700;
}

.empty-state--inline {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1180px) {
  .champions-shell,
  .champion-detail__hero--premium,
  .champion-detail__grid--premium {
    grid-template-columns: 1fr;
  }

  .champion-detail__section--main,
  .champion-detail__section--summary {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .champion-browser-card__metrics,
  .champion-build-grid,
  .champion-summary-cards,
  .champion-counter-grid {
    grid-template-columns: 1fr;
  }

  .champion-detail__identity--hero {
    grid-template-columns: 84px 1fr;
  }

  .champion-detail__image--hero {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    linear-gradient(180deg, rgba(2, 13, 18, 0.84) 0%, rgba(3, 15, 21, 0.9) 18%, rgba(2, 10, 14, 0.96) 100%),
    linear-gradient(90deg, var(--theme-overlay-a) 0%, var(--theme-overlay-b) 24%, var(--theme-overlay-c) 48%, var(--theme-overlay-d) 100%),
    var(--profile-splash, none) center top / cover no-repeat,
    radial-gradient(circle at 18% 2%, var(--theme-glow-a), transparent 22%),
    radial-gradient(circle at 82% 0%, var(--theme-glow-b), transparent 24%),
    linear-gradient(180deg, #031117 0%, #062029 48%, #041117 100%);
  overflow-x: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

body.is-landing .ad-rail,
body.is-landing .views {
  display: none;
}

body.is-landing #hero-panel {
  display: none !important;
}

body.is-landing .app-shell {
  width: 100%;
  max-width: none;
  padding: 16px 0 28px;
}

.app-shell {
  position: relative;
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 50px;
}

.ad-rail {
  position: fixed;
  top: 24px;
  bottom: 24px;
  width: 160px;
  z-index: 2;
  display: none;
  align-items: flex-start;
  justify-content: center;
}

body.ads-enabled .ad-rail {
  display: flex;
}

.ad-rail--left {
  left: 10px;
}

.ad-rail--right {
  right: 10px;
}

.ad-slot {
  width: 160px;
  min-height: 600px;
  padding: 16px 14px;
  border-radius: 24px;
  background: rgba(9, 14, 28, 0.9);
  border: 1px solid rgba(95, 149, 255, 0.14);
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
  gap: 10px;
}

.inline-ad {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-color: rgba(111, 166, 255, 0.14);
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.82), rgba(7, 11, 24, 0.94));
}

.inline-ad[hidden] {
  display: none !important;
}

body.ads-enabled .inline-ad:not([hidden]) {
  display: grid;
}

.inline-ad__copy {
  display: grid;
  gap: 6px;
}

.inline-ad__copy p {
  margin: 0;
  color: var(--muted);
}

.inline-ad__slot {
  min-height: 110px;
  border-radius: 18px;
  border: 1px dashed rgba(111, 166, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  padding: 10px;
}

.inline-ad--account {
  margin-top: 16px;
}

.ad-slot strong {
  display: block;
}

.ad-slot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.topbar,
.hero,
.search-bar,
.headline-grid,
.analytics-grid,
.insight-grid,
.analysis-grid,
.card-head,
.profile-card__main,
.profile-tags,
.role-distribution,
.champions-list,
.matches-list,
.match-card,
.match-card__left,
.match-card__stats,
.signal-stack,
.players-grid,
.meta-grid,
.modal__header,
.modal__build,
.modal__teams {
  display: grid;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(4, 17, 24, 0.94);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background:
    radial-gradient(circle at 30% 25%, rgba(220, 245, 255, 0.85), transparent 22%),
    linear-gradient(145deg, rgba(73, 241, 255, 0.95), rgba(111, 124, 255, 0.95));
  box-shadow:
    0 0 14px rgba(73, 241, 255, 0.16),
    inset 0 1px 0 rgba(233, 245, 255, 0.22);
  transform: rotate(45deg);
}

.brand__mark span {
  position: absolute;
  display: block;
  background: rgba(10, 22, 52, 0.92);
  border-radius: 999px;
}

.brand__mark span:nth-child(1) {
  width: 4px;
  height: 18px;
}

.brand__mark span:nth-child(2) {
  width: 18px;
  height: 4px;
}

.brand__mark span:nth-child(3) {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(10, 22, 52, 0.92);
  background: transparent;
  border-radius: 50%;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand span,
.topbar__meta,
.muted,
.eyebrow,
.signal-card span,
.stat-box span,
.team-row__player span,
.team-row__stats span,
.analysis-card li,
.leader-row span,
.meta-row p {
  color: var(--muted);
}

.brand span,
.topbar__meta {
  display: block;
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  order: 3;
  padding: 2px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topbar__side,
.auth-bar,
.auth-switcher {
  display: flex;
  align-items: center;
}

.topbar__side,
.auth-bar {
  gap: 12px;
}

.topbar__side {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.topnav__item,
.filter,
.load-more,
.modal__close,
.leader-row,
.team-row__player,
.auth-button,
.auth-switcher__button,
.auth-submit {
  font: inherit;
  cursor: pointer;
}

.topnav__item {
  position: relative;
  border: 1px solid rgba(121, 171, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(10, 18, 36, 0.82);
  color: #d7e3ff;
  padding: 9px 14px;
  white-space: nowrap;
  border-radius: 12px;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.topnav__item:hover {
  transform: none;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(107, 194, 255, 0.08), rgba(95, 128, 255, 0.03)),
    rgba(11, 22, 43, 0.9);
  border-color: rgba(112, 206, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(111, 196, 255, 0.04);
}

.topnav__item.active {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(113, 221, 255, 0.14), rgba(92, 116, 255, 0.06)),
    rgba(11, 28, 53, 0.96);
  border-color: rgba(108, 214, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(92, 225, 255, 0.08);
}

.topnav__item.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(90, 225, 255, 0.08), rgba(96, 180, 255, 0.95), rgba(90, 225, 255, 0.08));
}

.auth-bar__user {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(219, 235, 255, 0.05);
  border: 1px solid rgba(95, 149, 255, 0.16);
  color: var(--text);
  white-space: nowrap;
}

.auth-button,
.auth-switcher__button,
.auth-submit {
  border: 1px solid rgba(95, 149, 255, 0.18);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(94, 162, 255, 0.12);
}

.auth-button--ghost,
.auth-switcher__button {
  background: rgba(255, 248, 241, 0.03);
}

.auth-button--danger {
  border-color: rgba(255, 110, 141, 0.28);
  background: linear-gradient(135deg, rgba(255, 120, 150, 0.2), rgba(255, 72, 102, 0.14));
  color: #ffdfe8;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 211, 223, 0.08);
}

.auth-button--danger:hover {
  background: linear-gradient(135deg, rgba(255, 120, 150, 0.26), rgba(255, 72, 102, 0.2));
  border-color: rgba(255, 120, 150, 0.38);
}

.auth-switcher__button.active {
  background: rgba(255, 163, 94, 0.18);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(5, 19, 28, 0.96), rgba(3, 14, 21, 0.99));
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(226, 240, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.hero {
  position: relative;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
  background:
    linear-gradient(90deg, var(--theme-overlay-a) 0%, rgba(3, 14, 21, 0.88) 24%, rgba(3, 24, 30, 0.72) 48%, var(--theme-overlay-a) 100%),
    linear-gradient(180deg, rgba(6, 18, 25, 0.18), rgba(4, 16, 23, 0.72)),
    var(--hero-splash, none) center 24% / cover no-repeat,
    linear-gradient(135deg, var(--theme-glow-a), transparent 22%),
    radial-gradient(circle at top right, var(--theme-glow-b), transparent 26%),
    linear-gradient(180deg, rgba(5, 19, 28, 0.96), rgba(3, 14, 21, 0.99));
  overflow: hidden;
}

.landing-page {
  position: relative;
  min-height: calc(100vh - 112px);
  margin-bottom: 16px;
  padding: 36px;
  overflow: hidden;
  contain: layout paint;
  background:
    linear-gradient(102deg, var(--theme-overlay-a) 0%, rgba(3, 14, 21, 0.62) 35%, rgba(3, 20, 28, 0.72) 58%, var(--theme-overlay-a) 100%),
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 18%),
    radial-gradient(circle at 84% 14%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 22%),
    url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Yasuo_0.jpg") center 28% / cover no-repeat,
    linear-gradient(180deg, rgba(5, 19, 28, 0.96), rgba(3, 14, 21, 0.99));
}

body.is-landing .topbar {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto 18px;
}

body.is-landing .landing-page {
  width: 100vw;
  min-height: calc(100dvh - 98px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 42px 32px 36px;
}

.landing-page__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 14, 21, 0.14), rgba(3, 14, 21, 0.68)),
    linear-gradient(90deg, rgba(3, 14, 21, 0.82) 0%, rgba(3, 18, 24, 0.32) 42%, rgba(3, 21, 28, 0.22) 60%, rgba(3, 14, 21, 0.62) 100%);
  pointer-events: none;
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: 18px 24px;
  border-radius: 32px;
  border: 1px solid rgba(67, 232, 255, 0.12);
  background: linear-gradient(140deg, rgba(161, 248, 255, 0.04), transparent 18%);
  pointer-events: none;
}

.landing-page::after {
  content: none;
}

.landing-page__content {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 182px);
  display: grid;
  align-content: start;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding-top: clamp(24px, 7vh, 92px);
  width: 100%;
}

.landing-logo {
  display: grid;
  justify-items: center;
  gap: 0;
}

.landing-logo strong {
  display: block;
  font-size: clamp(3.2rem, 6.8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  color: #f6fbff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.landing-hero__subtitle {
  margin: 0;
  max-width: 52ch;
  color: #d5e4ff;
  line-height: 1.5;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.landing-search {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.landing-search__main {
  display: grid;
  grid-template-columns: minmax(520px, 1.95fr) 110px 170px;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(218, 232, 255, 0.26);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: none;
}

.search-historybox {
  position: relative;
  min-width: 0;
}

.landing-search input,
.landing-search select,
.landing-search button {
  min-height: 52px;
  border-radius: 16px;
  font: inherit;
}

.landing-search input,
.landing-search select {
  border: 1px solid rgba(200, 213, 239, 0.9);
  padding: 0 16px;
  color: #091324;
  background: #ffffff;
}

.landing-search input::placeholder {
  color: #66758f;
}

.landing-search button {
  border: 0;
  color: #07111e;
  font-weight: 800;
  background: linear-gradient(135deg, #7defff, #6d9dff 55%, #8d6dff);
}

.landing-news {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-color: rgba(111, 166, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 12, 26, 0.78), rgba(7, 11, 24, 0.9));
  backdrop-filter: none;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.landing-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.landing-news__stack {
  display: grid;
  gap: 14px;
}

.landing-news-card {
  position: relative;
  min-height: 204px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(95, 149, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.12), rgba(7, 11, 24, 0.88)),
    var(--news-image) center center / cover no-repeat,
    linear-gradient(180deg, rgba(10, 15, 30, 0.96), rgba(6, 10, 22, 0.99));
  color: var(--text);
  text-decoration: none;
  contain: layout paint;
}

.landing-news-card--featured {
  min-height: 300px;
}

.landing-news-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 20, 0.08), rgba(5, 8, 20, 0.82)),
    linear-gradient(90deg, rgba(5, 8, 20, 0.66), rgba(5, 8, 20, 0.18));
}

.landing-news-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.landing-news-card__tag {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 108, 0.22);
  background: rgba(255, 196, 108, 0.12);
  color: #ffe1aa;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-news-card__tag[data-news-category="esport"] {
  border-color: rgba(101, 218, 255, 0.24);
  background: rgba(101, 218, 255, 0.12);
  color: #bff6ff;
}

.landing-news-card__tag[data-news-category="patch"] {
  border-color: rgba(255, 196, 108, 0.24);
  background: rgba(255, 196, 108, 0.12);
  color: #ffe1aa;
}

.landing-news-card__tag[data-news-category="dev"] {
  border-color: rgba(194, 153, 255, 0.24);
  background: rgba(194, 153, 255, 0.12);
  color: #ead7ff;
}

.landing-news-card__tag[data-news-category="evenement"] {
  border-color: rgba(255, 120, 182, 0.24);
  background: rgba(255, 120, 182, 0.12);
  color: #ffc5de;
}

.landing-news-card__tag[data-news-category="jeu"] {
  border-color: rgba(111, 243, 183, 0.24);
  background: rgba(111, 243, 183, 0.12);
  color: #c7ffe7;
}

.landing-news-card h4,
.landing-news-card p {
  margin: 0;
}

.landing-news-card h4 {
  font-size: clamp(1.05rem, 1.55vw, 1.8rem);
  line-height: 1.14;
}

.landing-news-card p {
  color: #d7e6ff;
  font-size: 0.88rem;
}

.landing-news-card__summary {
  color: rgba(223, 236, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 58ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-news-card--compact .landing-news-card__summary {
  font-size: 0.84rem;
  -webkit-line-clamp: 2;
}

.landing-signal {
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.74), rgba(7, 11, 24, 0.88));
  border: 1px solid rgba(111, 166, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(228, 238, 255, 0.04);
  backdrop-filter: none;
}

.landing-signal span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.landing-signal strong {
  display: block;
  line-height: 1.35;
  font-size: 0.98rem;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge,
.pill,
.tag,
.filter,
.hero-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(95, 149, 255, 0.22);
  background: rgba(95, 149, 255, 0.08);
}

.hero__badge,
.pill,
.tag,
.filter,
.hero-chip,
.load-more {
  padding: 8px 12px;
}

.hero__badge {
  color: #dff9ff;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 18ch;
  text-shadow: none;
}

.hero p {
  max-width: 58ch;
  margin: 10px 0 0;
  line-height: 1.55;
  font-size: 0.96rem;
  color: var(--muted);
}

.hero__champion-note {
  max-width: 54ch;
  color: #d7e6ff;
  font-size: 0.88rem;
}

.hero__signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.hero__crest {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(73, 241, 255, 0.18), rgba(111, 124, 255, 0.14)),
    rgba(226, 240, 255, 0.03);
  border: 1px solid rgba(95, 149, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(219, 235, 255, 0.08);
}

.hero__crest span {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #b7f7ff, #69a6ff);
}

.hero__crest span:first-child {
  width: 4px;
  height: 26px;
}

.hero__crest span:last-child {
  width: 20px;
  height: 4px;
}

.hero__signature-copy {
  display: grid;
  gap: 3px;
}

.hero__signature-copy strong {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #d9efff;
}

.hero__signature-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.search-bar {
  grid-template-columns: minmax(420px, 1.9fr) 110px 170px;
  gap: 12px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(219, 235, 255, 0.03);
  border: 1px solid rgba(95, 149, 255, 0.1);
}

.search-error-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, 1180px);
  margin: 12px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 121, 149, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(30, 12, 24, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-error-card__copy {
  display: grid;
  gap: 4px;
}

.search-error-card__copy strong {
  font-size: 0.92rem;
}

.search-error-card__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.search-error-card__retry {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 158, 181, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffe2ea;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-error-card__retry:hover {
  border-color: rgba(255, 181, 201, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.search-history-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 12, 0.98);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.search-history-dropdown[hidden] {
  display: none !important;
}

.search-history-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.search-history-option:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.search-history-option__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-history-option__headline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-history-option__main strong {
  font-size: 0.94rem;
  color: #f7f9ff;
}

.search-history-option__rank {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f6ff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.search-history-option__main span,
.search-history-option__action {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

#search-history-dropdown,
#landing-history-dropdown {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(4, 6, 12, 0.98) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34) !important;
}

#search-history-dropdown .search-history-option,
#landing-history-dropdown .search-history-option {
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

#search-history-dropdown .search-history-option:hover,
#landing-history-dropdown .search-history-option:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

#search-history-dropdown .search-history-option__rank,
#landing-history-dropdown .search-history-option__rank {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f3f6ff !important;
}

#search-history-dropdown .search-history-option__main strong,
#landing-history-dropdown .search-history-option__main strong,
#search-history-dropdown .search-history-option__headline,
#landing-history-dropdown .search-history-option__headline {
  color: #ffffff !important;
}

.search-bar input,
.search-bar select,
.search-bar button {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.landing-search button,
.search-bar button {
  justify-self: end;
  width: 100%;
}

.search-bar input,
.search-bar select {
  color: var(--text);
  background: rgba(219, 235, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(219, 235, 255, 0.05);
}

.search-bar button,
.load-more {
  color: #051423;
  font-weight: 800;
  background: linear-gradient(135deg, #b5fbff, var(--cyan) 16%, var(--blue) 62%, var(--violet));
  box-shadow: 0 8px 18px rgba(73, 241, 255, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.search-bar button:hover,
.load-more:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 10px 20px rgba(73, 241, 255, 0.2);
}

.hero__stats {
  grid-auto-flow: column;
  justify-content: start;
  gap: 12px;
}

.hero__actions {
  display: flex;
  justify-content: flex-start;
}

.hero-link {
  border: 1px solid rgba(95, 149, 255, 0.18);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(94, 162, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-link:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 149, 255, 0.28);
  background: rgba(94, 162, 255, 0.16);
}

.landing-card,
.account-panel {
  padding: 22px;
}

.landing-card {
  display: grid;
  gap: 16px;
}

.landing-card--brand {
  background:
    linear-gradient(135deg, rgba(73, 241, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(10, 15, 30, 0.96), rgba(6, 10, 22, 0.99));
}

.landing-card__logo,
.account-card,
.account-panel__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-card__logo-mark,
.account-card__avatar,
.account-panel__crest {
  width: 62px;
  height: 62px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(95, 149, 255, 0.16);
  background:
    radial-gradient(circle at 30% 25%, rgba(220, 245, 255, 0.25), transparent 22%),
    linear-gradient(145deg, rgba(73, 241, 255, 0.16), rgba(111, 124, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(219, 235, 255, 0.12);
}

.landing-card__logo-mark span {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, #b7f7ff, #69a6ff);
  border-radius: 999px;
}

.landing-card__logo-mark span:nth-child(1) {
  width: 4px;
  height: 28px;
}

.landing-card__logo-mark span:nth-child(2) {
  width: 22px;
  height: 4px;
}

.landing-card__logo-mark span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #69a6ff;
  background: transparent;
}

.landing-card h3,
.account-panel h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.landing-card p {
  margin: 0;
  line-height: 1.6;
}

.landing-points {
  display: grid;
  gap: 14px;
}

.landing-points div,
.account-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 240, 0.03);
  border: 1px solid rgba(95, 149, 255, 0.08);
}

.landing-points strong,
.account-stat strong {
  display: block;
  margin-bottom: 5px;
}

.landing-points span,
.account-card p,
.account-panel__identity p,
.account-stat span {
  color: var(--muted);
}

.account-card__avatar,
.account-panel__crest {
  font-weight: 800;
  color: #ffe4bb;
  letter-spacing: 0.06em;
}

.account-card {
  align-items: flex-start;
}

.account-card strong,
.account-panel__identity strong {
  display: block;
  margin-bottom: 6px;
}

.account-card p,
.account-card__meta {
  margin: 0;
}

.account-card__meta,
.account-panel__stats {
  display: grid;
}

.account-card__meta {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-card__meta span {
  display: inline-flex;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(95, 149, 255, 0.1);
  background: rgba(255, 247, 240, 0.03);
  color: var(--muted);
}

.account-panel__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
}

.account-panel__stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.account-history {
  margin-top: 18px;
}

.account-admin {
  margin-top: 18px;
}

.account-recent-list {
  display: grid;
  gap: 10px;
}

.account-recent-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(95, 149, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(8, 14, 28, 0.82);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.account-recent-card:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 225, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(92, 225, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(8, 17, 32, 0.9);
}

.account-recent-card strong {
  display: block;
  margin: 0;
  font-size: 0.98rem;
}

.account-recent-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.account-admin-list {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(95, 149, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(8, 14, 28, 0.82);
}

.admin-user-card__identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-card__identity strong {
  margin: 0;
}

.admin-user-card__identity span {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.admin-user-card__meta,
.admin-user-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-pill,
.admin-user-role,
.admin-user-toggle {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(95, 149, 255, 0.12);
  background: rgba(10, 18, 34, 0.88);
  color: var(--text);
  font: inherit;
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
}

.admin-user-pill.is-danger {
  border-color: rgba(255, 99, 132, 0.24);
  color: #ffc0cb;
}

.admin-user-role {
  cursor: pointer;
}

.admin-user-toggle {
  cursor: pointer;
}

.hero-chip {
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 229, 196, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 149, 255, 0.28);
  background: rgba(95, 149, 255, 0.11);
}

.hero-chip span,
.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.views {
  display: grid;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.dashboard {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-main {
  display: grid;
  gap: 18px;
}

.headline-grid {
  grid-template-columns: minmax(360px, 1.2fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}

.analytics-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.analytics-grid--compact {
  grid-template-columns: minmax(0, 1fr);
}

.insight-grid {
  display: none;
  gap: 16px;
}

.analysis-grid,
.players-grid,
.meta-grid {
  gap: 16px;
}

.analysis-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-main > .live-panel,
.dashboard-main > .matches-section,
.dashboard-main > .insight-grid {
  grid-column: auto;
}

.players-grid,
.meta-grid {
  grid-template-columns: repeat(2, 1fr);
}

.meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

#view-meta .utility-panel,
#view-players .utility-panel,
#view-patches .utility-panel,
#view-champions .utility-panel {
  width: 100%;
}

.meta-lane-tabs {
  display: none;
}

.meta-lane-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(95, 149, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.meta-lane-tab.is-active {
  color: var(--text);
  border-color: rgba(78, 243, 255, 0.24);
  background: rgba(78, 243, 255, 0.08);
}

.patches-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.patches-sidebar {
  display: grid;
  gap: 10px;
}

.patch-nav {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(95, 149, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.patch-nav span {
  color: var(--muted);
  font-size: 0.9rem;
}

.patch-nav.active,
.patch-nav:hover {
  border-color: rgba(78, 243, 255, 0.2);
  background: rgba(78, 243, 255, 0.07);
}

.patch-detail {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.patch-detail__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.patch-detail__header h2 {
  margin: 6px 0 10px;
}

.patch-detail__header p,
.patch-detail__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.patch-detail__body {
  display: grid;
  gap: 18px;
}

.patch-change {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(95, 149, 255, 0.1);
  line-height: 1.6;
}

.patch-change strong {
  display: block;
  margin-bottom: 10px;
}

.patch-change__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patch-change__head--champion {
  min-height: 48px;
}

.patch-change__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(95, 149, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.patch-change__title {
  display: grid;
  gap: 2px;
}

.patch-change__title strong {
  margin: 0;
}

.patch-change__title span {
  font-size: 0.78rem;
  color: var(--muted);
}

.patch-change ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.patch-subchange {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(95, 149, 255, 0.1);
}

.patch-subchange strong {
  display: block;
  margin-bottom: 8px;
}

.patch-subchange ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.patch-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(95, 149, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 19, 38, 0.96), rgba(7, 12, 24, 0.94));
}

.patch-section__head {
  display: flex;
  justify-content: flex-start;
}

.patch-section__summary {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.patch-section__summary p {
  margin: 0;
  line-height: 1.6;
}

.profile-card,
.metric-card,
.chart-card,
.champion-section,
.signal-panel,
.matches-section,
.analysis-section,
.utility-panel {
  padding: 22px;
}

.chart-card,
.champion-section,
.matches-section,
.analysis-section,
.utility-panel {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.profile-card__main {
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
}

.profile-season-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-season-chip {
  display: grid;
  gap: 1px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(95, 149, 255, 0.1);
}

.profile-season-chip span,
.profile-season-chip em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.15;
}

.profile-season-chip strong {
  font-size: 0.88rem;
  line-height: 1.05;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 192, 120, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.3);
}

.profile-tags {
  grid-auto-flow: column;
  justify-content: start;
  gap: 8px;
  margin-top: 12px;
}

.profile-kda {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.profile-kda strong {
  font-size: 1.5rem;
  line-height: 1;
}

.profile-kda p {
  margin: 0;
}

.profile-rank-emblem {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.profile-external-link {
  color: #c9f3ff;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.profile-external-link:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 218, 255, 0.32);
  background: rgba(101, 218, 255, 0.12);
}

.profile-external-link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(101, 218, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(43, 98, 255, 0.18), rgba(66, 225, 255, 0.18)),
    rgba(10, 15, 31, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(224, 243, 255, 0.08),
    0 10px 24px rgba(8, 14, 30, 0.22);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profile-live-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(91, 224, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 86, 215, 0.28), rgba(48, 204, 255, 0.24));
  color: #eff8ff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.profile-live-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.profile-live-button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.metric-card {
  align-content: center;
  gap: 6px;
  min-height: 118px;
}

.metric-card strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.rank-label-main,
.rank-division {
  display: inline-flex;
  align-items: center;
}

.rank-label-main {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.rank-division {
  margin-left: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text);
  border: 1px solid rgba(95, 149, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.metric-card p,
.analysis-summary,
.meta-row p {
  margin: 0;
}

.metric-card--rank {
  min-height: 0;
  align-content: start;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(73, 241, 255, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(9, 13, 25, 0.96), rgba(6, 9, 18, 0.98));
}

.rank-queues {
  display: grid;
  gap: 10px;
}

.live-panel {
  display: grid;
  gap: 18px;
}

.live-panel__teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.live-team {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(89, 130, 255, 0.14);
  background: rgba(8, 12, 24, 0.72);
}

.live-team h4 {
  margin: 0;
  font-size: 0.95rem;
}

.live-team--blue {
  box-shadow: inset 0 0 0 1px rgba(70, 132, 255, 0.08);
}

.live-team--red {
  box-shadow: inset 0 0 0 1px rgba(255, 100, 120, 0.08);
}

.live-team__list {
  display: grid;
  gap: 8px;
}

.live-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(116, 151, 255, 0.12);
  border-radius: 16px;
  background: rgba(12, 17, 31, 0.92);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.live-player:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 197, 255, 0.26);
  background: rgba(15, 22, 38, 0.96);
}

.live-player.is-target {
  border-color: rgba(93, 239, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(93, 239, 255, 0.08);
}

.live-player__champion {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.live-player__main {
  display: grid;
  min-width: 0;
}

.live-player__main strong,
.live-player__main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-player__main span {
  color: var(--muted);
  font-size: 0.85rem;
}

.live-player__side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.live-player__spells,
.live-player__runes {
  display: inline-flex;
  gap: 4px;
}

.rank-overview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.rank-queue {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(95, 149, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.rank-queue--solo {
  border-left: 3px solid rgba(94, 162, 255, 0.9);
}

.rank-queue--flex {
  border-left: 3px solid rgba(111, 124, 255, 0.9);
}

.rank-queue__top,
.rank-queue__body,
.rank-queue__main,
.rank-queue__stats {
  display: grid;
}

.rank-queue__name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

[hidden] {
  display: none !important;
}

.rank-queue__body {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rank-queue__emblem {
  width: 64px;
  height: 64px;
  object-fit: contain;
  justify-self: center;
}

.rank-sprite {
  background-image: url("/assets/lol-ranks.jpg");
  background-repeat: no-repeat;
  background-size: 1365px 768px;
  background-color: transparent;
}

.rank-sprite--iron {
  background-position: -45px -155px;
}

.rank-sprite--bronze {
  background-position: -288px -144px;
}

.rank-sprite--silver {
  background-position: -545px -140px;
}

.rank-sprite--gold {
  background-position: -815px -138px;
}

.rank-sprite--platinum {
  background-position: -1070px -130px;
}

.rank-sprite--emerald {
  background-position: -55px -500px;
}

.rank-sprite--diamond {
  background-position: -308px -494px;
}

.rank-sprite--master {
  background-position: -574px -490px;
}

.rank-sprite--grandmaster {
  background-position: -846px -486px;
}

.rank-sprite--challenger {
  background-position: -1096px -476px;
}

.rank-queue__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-queue__headline {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rank-queue__emblem--empty {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(95, 149, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-queue__tier {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.92rem;
  line-height: 1;
  min-width: 0;
}

.rank-queue__lp {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.rank-queue__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.rank-queue__stats strong {
  font-size: 0.8rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.rank-queue__stats span {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.rank-last-season {
  font-size: 0.82rem;
  color: var(--muted);
}

.metric-inline {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.metric-inline__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  color: var(--muted);
}

.metric-inline--win {
  color: #57d78e;
}

.metric-inline--loss,
.metric-inline--death {
  color: var(--red);
}

.metric-inline--assist,
.metric-inline--lp {
  color: #ffbe62;
}

.metric-card--kda .metric-inline,
.metric-card--kda .metric-inline__sep {
  color: var(--text);
}

@media (max-width: 1100px) {
  .rank-queue__body {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  .rank-queue__emblem {
    width: 60px;
    height: 60px;
    align-self: center;
  }
}

@media (max-width: 760px) {
  .rank-overview {
    font-size: 0.84rem;
    gap: 6px;
  }

  .rank-queue {
    padding: 11px 12px;
  }

  .rank-queue__body {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }

  .rank-queue__emblem {
    width: 56px;
    height: 56px;
  }

  .rank-queue__tier {
    font-size: 0.86rem;
  }

  .rank-queue__lp {
    font-size: 0.84rem;
  }

  .rank-queue__stats {
    gap: 6px;
  }

  .rank-queue__stats strong,
  .rank-queue__stats span {
    font-size: 0.76rem;
  }
}

.tier-iron {
  color: #8e99aa;
}

.tier-bronze {
  color: #c88e63;
}

.tier-silver {
  color: #ccd8ea;
}

.tier-gold {
  color: #f0c268;
}

.tier-platinum {
  color: #6fe0cf;
}

.tier-emerald {
  color: #57d78e;
}

.tier-diamond {
  color: #78a8ff;
}

.tier-master {
  color: #bb8dff;
}

.tier-grandmaster {
  color: #ff8aa8;
}

.tier-challenger {
  color: #7fe9ff;
}

.card-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.curve-chart {
  position: relative;
  min-height: 260px;
  padding-bottom: 26px;
}

.curve-chart svg {
  width: 100%;
  height: 260px;
}

.curve-chart__labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.curve-chart__labels span {
  text-align: center;
}

.curve-chart__label {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.curve-chart__label strong {
  font-size: 0.74rem;
  color: rgba(240, 246, 255, 0.95);
  font-weight: 700;
}

.curve-chart__label small {
  font-size: 0.66rem;
  color: rgba(157, 176, 224, 0.9);
  line-height: 1.2;
}

.curve-chart__label[data-type="season"] strong {
  color: #7ed8ff;
}

.ring-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.ring-chart {
  --winrate: 0;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(23, 14, 9, 1) 58%, transparent 59%),
    conic-gradient(var(--cyan) calc(var(--winrate) * 1%), rgba(255, 245, 233, 0.08) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 120, 0.08);
}

.ring-chart span {
  font-size: 1.7rem;
  font-weight: 800;
}

.role-distribution,
.signal-stack,
.champions-list,
.matches-list,
.team-detail__list {
  gap: 12px;
}

.matches-list {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

.role-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.role-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.role-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan));
}

.signal-card,
.analysis-card,
.players-card,
.meta-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 246, 239, 0.04), rgba(255, 246, 239, 0.02));
  border: 1px solid rgba(255, 184, 120, 0.08);
  content-visibility: auto;
  contain-intrinsic-size: 160px;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.signal-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.signal-panel {
  align-content: start;
}

.signal-panel .card-head {
  margin-bottom: 12px;
}

.signal-stack {
  align-content: start;
}

.champion-section--compact {
  padding: 16px 14px;
}

.champion-pool-tabs {
  display: flex;
  gap: 12px;
  margin: 4px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(95, 149, 255, 0.1);
}

.champion-pool-tab {
  border: 0;
  padding: 0 0 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.champion-pool-tab.is-active {
  color: var(--text);
  border-bottom: 2px solid var(--cyan);
}

.champion-pool-head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 72px 78px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  color: rgba(172, 191, 231, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.champions-list--compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

.champion-pool-total {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.champion-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.04), rgba(255, 247, 240, 0.02));
  border: 1px solid rgba(255, 184, 120, 0.08);
  content-visibility: auto;
  contain-intrinsic-size: 96px;
  cursor: pointer;
}

.champions-list--compact .champion-card {
  grid-template-columns: minmax(0, 1.7fr) 72px 78px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.champion-card__image {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.champion-card__image-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.champions-list--compact .champion-card__image {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.champion-card__rank {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.champion-card__copy strong,
.meta-row strong,
.leader-row strong {
  display: block;
}

.champion-card__copy p,
.champion-card__stats span {
  margin: 4px 0 0;
}

.champion-card__stats {
  text-align: right;
}

.champions-list--compact .champion-card__copy p {
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.15;
}

.champions-list--compact .champion-card__copy {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "headline"
    "art";
  gap: 6px;
  align-items: start;
}

.champion-card__headline {
  grid-area: headline;
  display: grid;
  gap: 0;
  min-width: 0;
}

.champions-list--compact .champion-card__headline .champion-meta {
  display: none;
}

.champions-list--compact .champion-card__image-wrap {
  grid-area: art;
}

.champions-list--compact .champion-card__copy strong {
  font-size: 0.95rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champions-list--compact .champion-card__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  text-align: left;
}

.champions-list--compact .champion-card__stats span {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  margin: 0;
  font-size: 0.76rem;
}

.champion-card__games {
  display: grid;
  gap: 4px;
}

.champion-card__games strong,
.champion-card__winrate strong {
  font-size: 0.95rem;
  line-height: 1;
}

.champion-card__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.champion-card__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #44e1ff, #4da8ff);
}

.champion-card__winrate {
  display: grid;
  gap: 4px;
}

.champion-card__winrate .champion-card__bar span {
  background: linear-gradient(90deg, #40e8a0, #38d5ff);
}

.champion-card__subline {
  color: rgba(157, 179, 217, 0.9);
  font-size: 0.68rem;
  line-height: 1.15;
}

.champion-card__trend {
  margin-left: auto;
  color: rgba(183, 228, 255, 0.76);
  font-size: 0.72rem;
}

.champion-pool-more {
  justify-self: center;
  min-width: 132px;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(95, 149, 255, 0.18);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  background: rgba(95, 149, 255, 0.1);
  cursor: pointer;
}

.champion-pool-more:hover {
  border-color: rgba(78, 243, 255, 0.26);
  background: rgba(78, 243, 255, 0.1);
}

.matches-section .card-head {
  margin-bottom: 12px;
}

.matches-section {
  padding: 18px 16px;
}

.matches-section .card-head,
.matches-section .load-more {
  width: min(100%, 1320px);
  margin-left: auto;
  margin-right: auto;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid rgba(255, 174, 98, 0.16);
  background: rgba(255, 245, 235, 0.04);
  color: var(--text);
}

.filter.active {
  background: rgba(255, 167, 95, 0.16);
}

.match-card {
  position: relative;
  grid-template-columns: 136px minmax(0, 1fr) 272px;
  grid-template-areas:
    "summary main stats"
    "summary main stats"
    "footer footer footer";
  gap: 6px 10px;
  align-items: start;
  padding: 7px 9px;
  width: min(100%, 1320px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 18%, rgba(108, 181, 255, 0.1), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(255, 115, 222, 0.1), transparent 18%),
    linear-gradient(135deg, rgba(15, 24, 54, 0.98), rgba(10, 14, 31, 0.99) 54%, rgba(20, 15, 40, 0.98));
  border: 1px solid rgba(124, 156, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(105, 177, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(233, 242, 255, 0.05);
  transition: border-color 100ms ease, box-shadow 100ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 132px;
  contain: layout paint;
  overflow: hidden;
}

.match-card:hover {
  border-color: rgba(147, 184, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(124, 183, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(233, 242, 255, 0.06);
}

.match-card__button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  z-index: 1;
}

.match-card__summary-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(128, 172, 255, 0.16);
  background: rgba(8, 13, 27, 0.72);
  color: #dce9ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.match-card__summary-toggle:hover {
  border-color: rgba(110, 213, 255, 0.24);
  background: rgba(11, 18, 36, 0.9);
}

.match-card__summary-toggle[aria-expanded="true"] .match-card__summary-arrow {
  transform: rotate(90deg);
}

.match-card__summary-arrow {
  display: inline-flex;
  transition: transform 140ms ease;
}

.match-card > *:not(.match-card__button) {
  position: relative;
  z-index: 2;
}

.match-card__glow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  border-radius: 999px;
  filter: none;
}

.match-card.victory .match-card__glow {
  background: linear-gradient(180deg, #9ddcff, var(--blue));
}

.match-card.defeat .match-card__glow {
  background: linear-gradient(180deg, #ffb2c0, var(--red));
}

.match-card.victory {
  background:
    radial-gradient(circle at 14% 18%, rgba(95, 202, 255, 0.24), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(84, 150, 255, 0.2), transparent 24%),
    radial-gradient(circle at 52% 88%, rgba(98, 120, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(10, 27, 58, 0.99), rgba(9, 18, 40, 0.99) 52%, rgba(16, 20, 47, 0.98));
  border-color: rgba(101, 205, 255, 0.3);
}

.match-card.defeat {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 105, 145, 0.2), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(196, 92, 255, 0.18), transparent 24%),
    radial-gradient(circle at 52% 88%, rgba(98, 120, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(44, 14, 34, 0.99), rgba(24, 12, 28, 0.99) 52%, rgba(29, 12, 24, 0.98));
  border-color: rgba(255, 112, 146, 0.28);
}

.match-summary {
  grid-area: summary;
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 10px 9px 8px 11px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(93, 170, 255, 0.08), transparent 40%);
  border: 1px solid rgba(130, 174, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(245, 247, 255, 0.05);
}

.match-card.victory .match-summary {
  background:
    linear-gradient(180deg, rgba(84, 192, 255, 0.14), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(93, 220, 255, 0.16), transparent 42%);
  border-color: rgba(97, 204, 255, 0.2);
}

.match-card.defeat .match-summary {
  background:
    linear-gradient(180deg, rgba(255, 104, 148, 0.12), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(255, 109, 148, 0.15), transparent 42%);
  border-color: rgba(255, 122, 157, 0.18);
}

.match-main {
  grid-area: main;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 1px 2px 0 1px;
  min-width: 0;
}

.match-main__hero {
  display: grid;
  grid-template-columns: 64px 22px;
  gap: 6px;
  align-items: start;
  justify-content: start;
}

.match-spell-runes {
  display: grid;
  gap: 4px;
}

.match-main__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}

.match-kda-line,
.match-economy {
  margin: 0;
}

.match-kda-line {
  font-size: 0.9rem;
  font-weight: 800;
}

.match-economy {
  font-size: 0.72rem;
  color: var(--muted);
}

.match-build-preview__runes,
.match-build-preview__spells,
.match-build-preview__items,
.icon-row,
.team-row__build,
.team-row__spells {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-build-preview__items {
  gap: 8px;
}

.preview-icon,
.detail-icon,
.mini-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.preview-icon--round,
.detail-icon--round,
.mini-icon--round {
  border-radius: 50%;
}

.match-build-preview__items .preview-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.match-champion-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(120, 185, 255, 0.22);
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(90, 162, 255, 0.12),
    0 0 14px rgba(91, 187, 255, 0.1);
}

.match-result {
  display: block;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1;
  font-weight: 800;
}

.match-result.is-victory {
  color: #67d7ff;
  text-shadow: 0 0 18px rgba(91, 214, 255, 0.2);
}

.match-result.is-defeat {
  color: #ff7f9d;
  text-shadow: 0 0 18px rgba(255, 115, 145, 0.18);
}

.match-champion {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.match-mode {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.match-lp--inline {
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.match-queue,
.match-duration,
.match-lp {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
}

.match-queue {
  color: #dce8ff;
  order: 3;
}

.match-duration {
  color: #dfe9ff;
  order: 2;
  font-size: 0.9rem;
  line-height: 1;
}

.match-time {
  order: 4;
  font-size: 0.66rem;
}

.match-lp {
  order: 5;
  margin-top: -2px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.match-result {
  order: 1;
}

.match-lp.is-gain {
  color: #6fd4ff;
}

.match-lp.is-loss {
  color: #ff7e9c;
}

.match-card__stats {
  grid-area: stats;
  grid-template-columns: 56px repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
  align-items: stretch;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  border: 0;
  margin-bottom: -4px;
}

.match-footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 4px;
  align-items: start;
  margin-top: -16px;
}

.match-build-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: start;
  padding: 2px 8px 2px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(255, 193, 92, 0.1), transparent 34%);
  border: 1px solid rgba(140, 168, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(245, 247, 255, 0.04);
}

.match-score-summary {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.stat-box {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: 7px 6px;
  border-radius: 12px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(8, 13, 27, 0.88);
  border: 1px solid rgba(120, 164, 255, 0.16);
  box-shadow: none;
}

.stat-box--score {
  display: grid;
  justify-items: center;
  align-content: center;
  overflow: hidden;
  min-width: 0;
  padding-inline: 4px;
}

.match-score,
#modal-score {
  --score-hue: 10;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  max-width: 100%;
  margin: 1px auto 0;
  border-radius: 50%;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--score-hue), 100%, 82%, 0.28), transparent 38%),
    radial-gradient(circle at center, rgba(8, 13, 27, 0.99) 66%, transparent 67%),
    conic-gradient(from 220deg, hsla(var(--score-hue), 88%, 62%, 0.35), hsla(var(--score-hue), 92%, 58%, 0.95), hsla(calc(var(--score-hue) + 6), 94%, 70%, 0.95), hsla(var(--score-hue), 88%, 62%, 0.35));
  border: 1px solid hsla(var(--score-hue), 92%, 64%, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 14px hsla(var(--score-hue), 88%, 58%, 0.18);
  color: hsl(calc(var(--score-hue) + 2), 92%, 78%);
  font-size: 0.68rem !important;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.match-score:empty,
#modal-score:empty {
  display: none !important;
}

.stat-box--score:has(.match-score:empty) {
  display: none !important;
}

#modal-score {
  width: 72px;
  height: 72px;
  margin-top: 10px;
  font-size: 0.95rem !important;
}

.stat-box strong {
  display: block;
  min-width: 0;
  margin-top: 2px;
  font-size: 0.88rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.match-kda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  white-space: nowrap;
  font-size: 0.76rem;
  letter-spacing: -0.02em;
}

.farm,
.damage,
.vision {
  font-size: 0.8rem;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.stat-box > span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.match-roster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-content: stretch;
  min-height: 60px;
  padding: 1px 10px 5px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(163, 115, 255, 0.08), transparent 36%);
  border: 1px solid rgba(123, 165, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(245, 247, 255, 0.04);
}

.match-roster__team {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-start;
  align-items: center;
}

.match-roster__player {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  line-height: 0;
}

.chart-card,
.signal-panel,
.players-card,
.meta-card,
.champion-detail__section,
.leader-row,
.champion-browser-card,
.patch-sidebar__button,
.patch-detail__section,
.patch-entry {
  content-visibility: auto;
  contain-intrinsic-size: 120px;
}

.match-roster__icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(95, 149, 255, 0.16);
}

.match-roster__player.is-self {
  padding: 2px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(92, 225, 255, 0.26),
    0 0 14px rgba(92, 225, 255, 0.18);
}

.match-roster__player.is-self .match-roster__icon {
  width: 28px;
  height: 28px;
  border-color: rgba(111, 223, 255, 0.7);
  box-shadow: 0 0 10px rgba(92, 225, 255, 0.24);
}

.match-summary-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: -2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(128, 168, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(10, 16, 32, 0.9);
}

.match-summary-panel__head {
  display: grid;
  gap: 3px;
}

.match-summary-panel__head strong {
  font-size: 0.86rem;
  line-height: 1.1;
}

.match-summary-panel__head span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.match-summary-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.match-summary-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.match-summary-panel__action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 170, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e2eeff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.match-summary-panel__action:hover {
  border-color: rgba(103, 217, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.match-summary-pill {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 170, 255, 0.08);
}

.match-summary-pill span {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-summary-pill strong {
  font-size: 0.84rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.match-summary-panel__teams {
  display: grid;
  gap: 10px;
}

.match-summary-team {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(124, 170, 255, 0.08);
}

.match-summary-team.is-win {
  border-color: rgba(99, 214, 255, 0.16);
}

.match-summary-team__head {
  display: grid;
  gap: 6px;
}

.match-summary-team__head > strong {
  font-size: 0.84rem;
  line-height: 1.1;
}

.match-summary-team__columns,
.match-summary-team__row {
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) 0.72fr 0.82fr 0.72fr 0.58fr 0.58fr minmax(132px, 1fr);
  gap: 8px;
  align-items: center;
}

.match-summary-team__columns {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-summary-team__body {
  display: grid;
  gap: 6px;
}

.match-summary-team__row {
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.match-summary-team__row.is-self {
  background: rgba(87, 214, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(87, 214, 255, 0.16);
}

.match-summary-team__identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.match-summary-team__avatar-wrap {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
}

.match-summary-team__avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(120, 164, 255, 0.18);
}

.match-summary-team__level {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(8, 13, 27, 0.95);
  border: 1px solid rgba(120, 164, 255, 0.18);
  color: #ddecff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

.match-summary-team__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.match-summary-team__copy strong,
.match-summary-team__copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-summary-team__copy strong {
  font-size: 0.82rem;
}

.match-summary-team__copy span {
  color: var(--muted);
  font-size: 0.68rem;
}

.match-summary-team__metric {
  min-width: 0;
}

.match-summary-team__metric strong {
  display: block;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.match-summary-team__items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.match-summary-team__item {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.match-roster__player.is-blue .match-roster__icon {
  border-color: rgba(121, 195, 255, 0.32);
}

.match-roster__player.is-red .match-roster__icon {
  border-color: rgba(255, 142, 170, 0.32);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.tag {
  background: rgba(255, 159, 82, 0.12);
}

.match-time {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0.72rem;
  color: var(--muted);
  border: 0;
  background: transparent;
}

.match-card__left,
.match-card__right,
.match-card__cta,
.match-build-preview,
.match-build-group,
.match-build-group__label,
.match-meta-row {
  display: none;
}

.stat-kill {
  color: #ffffff;
}

.stat-death {
  color: var(--red);
}

.stat-assist {
  color: #8dc5ff;
}

.stat-sep {
  color: var(--muted);
  margin: 0 1px;
}

.load-more[hidden] {
  display: none;
}

.load-more {
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
}

.leader-list,
.meta-list {
  display: grid;
  gap: 10px;
}

.champions-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.champions-browser,
.champion-detail {
  display: grid;
  gap: 16px;
  align-content: start;
  align-items: start;
}

.champions-toolbar {
  display: grid;
  gap: 12px;
}

.champion-searchbox {
  position: relative;
}

.champions-toolbar input,
.champions-toolbar select {
  width: 100%;
  border: 1px solid rgba(95, 149, 255, 0.12);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.champions-toolbar select {
  cursor: pointer;
}

.champion-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(95, 149, 255, 0.16);
  background: rgba(8, 13, 28, 0.98);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.champion-search-option {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(95, 149, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.champion-search-option:hover {
  border-color: rgba(78, 243, 255, 0.22);
  background: rgba(78, 243, 255, 0.08);
}

.champion-search-option__image {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.champion-search-option__name {
  font-weight: 700;
}

.champion-search-option__role {
  color: var(--muted);
  font-size: 0.85rem;
}

.champion-browser-grid {
  display: grid;
  gap: 10px;
  max-height: 780px;
  overflow: auto;
  padding-right: 4px;
  align-content: start;
}

.champion-browser-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  align-content: start;
  padding: 12px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 184, 120, 0.08);
  background: rgba(255, 247, 240, 0.035);
  color: var(--text);
  transition: border-color 120ms ease, background 120ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 90px;
  contain: layout paint;
}

.champion-browser-card:hover,
.champion-browser-card.active {
  border-color: rgba(78, 243, 255, 0.24);
  background: rgba(78, 243, 255, 0.07);
}

.champion-browser-card__image {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.champion-browser-card__copy strong,
.champion-browser-card__stats span {
  display: block;
}

.champion-browser-card__copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.champion-browser-card__stats {
  text-align: right;
  gap: 4px;
}

.champion-browser-card__tier {
  font-weight: 800;
  color: #f7fbff;
}

.champion-browser-card__wr {
  max-width: 150px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.champion-detail {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.035), rgba(255, 247, 240, 0.02));
  border: 1px solid rgba(255, 184, 120, 0.08);
}

.champion-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.champion-detail__hero--onetricks {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(91, 224, 255, 0.14);
  background:
    linear-gradient(140deg, rgba(51, 221, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(10, 16, 30, 0.72);
}

.champion-detail__identity {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
}

.champion-detail__image {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.champion-detail__identity h2 {
  margin: 6px 0 8px;
}

.champion-detail__identity p,
.champion-text-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.champion-detail__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.champion-detail__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.champion-detail__stats--onetricks {
  min-width: 280px;
}

.champion-detail__stats div,
.champion-detail__section {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 240, 0.03);
  border: 1px solid rgba(255, 184, 120, 0.08);
}

.champion-detail__stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(8, 15, 28, 0.82);
}

.champion-detail__stat-card--tier {
  border-color: rgba(110, 216, 255, 0.2);
}

.champion-detail__stat-card--ban {
  border-color: rgba(255, 123, 160, 0.18);
}

.champion-detail__stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.champion-detail__tags,
.champion-spikes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.champion-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.champion-detail__grid--onetricks {
  align-items: start;
}

.champion-detail__section h3 {
  margin: 6px 0 14px;
}

.champion-build-block {
  display: grid;
  gap: 10px;
}

.champion-build-block--primary {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.champion-build-block + .champion-build-block,
.champion-text-stack {
  margin-top: 14px;
}

.champion-bans-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 110, 141, 0.14);
  background: rgba(255, 110, 141, 0.05);
}

.champion-bans-row .detail-icon {
  box-shadow: 0 0 0 1px rgba(255, 110, 141, 0.16);
}

.leader-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 120, 0.08);
  background: rgba(255, 247, 240, 0.03);
  color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.leader-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 120, 0.16);
  background: rgba(255, 247, 240, 0.045);
}

.leader-row__rank,
.leader-row__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(95, 149, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.78rem;
}

.leader-row__identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.leader-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(95, 149, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.leader-row__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.leader-row__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.leader-row__copy strong {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-row__copy span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-row__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(78, 243, 255, 0.16);
  background: rgba(78, 243, 255, 0.08);
  color: var(--text) !important;
  font-size: 0.74rem !important;
}

.meta-panel {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 23, 42, 0.96), rgba(9, 14, 28, 0.98));
  border: 1px solid rgba(95, 149, 255, 0.12);
}

.meta-panel--lane-compact {
  padding: 14px;
  border-radius: 18px;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.meta-panel__title {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.meta-panel__title strong {
  font-size: 1rem;
  line-height: 1.15;
}

.meta-panel--wide {
  grid-column: 1 / -1;
}

.meta-list--ranked {
  display: grid;
  gap: 10px;
}

.meta-row--compact {
  display: grid;
  grid-template-columns: 26px 42px minmax(0, 1fr) 138px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(95, 149, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.meta-row__position {
  color: #dbe7ff;
  font-weight: 800;
}

.meta-row__identity {
  min-width: 0;
}

.meta-row__identity p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.meta-row__metric {
  display: grid;
  gap: 6px;
}

.meta-row__metric span {
  color: #dbe7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.meta-row__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.meta-row__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #44e1ff, #4da8ff);
}

.meta-row__bar--win span,
.meta-panel--win .meta-row__bar span {
  background: linear-gradient(90deg, #45e48e, #38d8a8);
}

.meta-row__bar--ban span,
.meta-panel--ban .meta-row__bar span {
  background: linear-gradient(90deg, #ff7b88, #ff5469);
}

.meta-stats-table {
  display: grid;
  gap: 10px;
}

.meta-stats-table--compact {
  gap: 8px;
}

.meta-stats-head,
.meta-stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.meta-stats-head {
  padding: 0 12px;
  color: rgba(163, 181, 220, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-stats-head--compact {
  padding: 0 8px;
  font-size: 0.72rem;
}

.meta-stats-row {
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(95, 149, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.meta-stats-row__identity {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.meta-stats-row--mini {
  padding: 8px 10px;
  gap: 10px;
  border-radius: 14px;
}

.meta-stats-row--mini .meta-stats-row__identity {
  grid-template-columns: 34px 1fr;
  gap: 8px;
}

.meta-stats-row--mini .meta-stats-row__identity strong {
  font-size: 0.9rem;
}

.meta-stats-row__metric {
  display: grid;
  gap: 6px;
}

.meta-stats-row__metric span {
  color: #dbe7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.meta-stats-row--mini .meta-stats-row__metric {
  gap: 4px;
}

.meta-stats-row--mini .meta-stats-row__metric span {
  font-size: 0.76rem;
}

.meta-stats-row--mini .meta-row__icon {
  width: 34px;
  height: 34px;
}

.meta-stats-row--mini .meta-row__bar {
  height: 6px;
}

.players-card--showcase {
  display: grid;
  gap: 16px;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.leader-spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.leader-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  text-align: left;
  color: var(--text);
  border-radius: 22px;
  border: 1px solid rgba(95, 149, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 23, 42, 0.96), rgba(9, 14, 28, 0.98)),
    radial-gradient(circle at top left, rgba(112, 207, 255, 0.08), transparent 34%);
}

.leader-hero--1 {
  background:
    linear-gradient(180deg, rgba(20, 26, 48, 0.96), rgba(9, 14, 28, 0.98)),
    linear-gradient(135deg, rgba(255, 213, 100, 0.12), transparent 40%);
}

.leader-hero__topline,
.leader-hero__identity,
.leader-hero__footer,
.leader-table__head {
  display: grid;
  align-items: center;
}

.leader-hero__topline {
  grid-template-columns: auto auto;
  justify-content: space-between;
}

.leader-hero__rank {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffd66b;
}

.leader-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(95, 149, 255, 0.18);
  background: rgba(95, 149, 255, 0.12);
  color: #d8efff;
  font-size: 0.74rem;
  font-weight: 700;
}

.leader-hero__identity {
  grid-template-columns: 58px 1fr;
  gap: 12px;
}

.leader-hero__avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(95, 149, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.leader-hero__avatar--fallback {
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}

.leader-hero__copy strong {
  display: block;
  font-size: 1.08rem;
}

.leader-hero__copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.leader-hero__lp {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #7fd7ff;
  white-space: nowrap;
}

.leader-hero__record {
  color: #dbe7ff;
  font-weight: 700;
}

.leader-hero__footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--muted);
  font-size: 0.82rem;
}

.leader-table {
  display: grid;
  gap: 10px;
}

.leader-table__head {
  grid-template-columns: 54px minmax(0, 1.5fr) 130px 130px 80px 90px;
  padding: 0 14px;
  color: rgba(163, 181, 220, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
}

.players-card--showcase .leader-row {
  grid-template-columns: 54px minmax(0, 1.5fr) 130px 130px 80px 90px;
}

.leader-row__lp {
  color: #7fd7ff;
  font-weight: 800;
  white-space: nowrap;
}

.leader-row__record,
.leader-row__wr {
  color: #dbe7ff;
  font-weight: 700;
}

.esports-grid {
  display: grid;
  gap: 16px;
}

.esports-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(95, 149, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.esports-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.esports-block {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(95, 149, 255, 0.08);
}

.esports-block h4 {
  margin: 0 0 12px;
}

.esports-list {
  display: grid;
  gap: 10px;
}

.esports-match {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(95, 149, 255, 0.08);
}

.esports-match__meta {
  display: grid;
  gap: 3px;
}

.esports-match__meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.esports-match__state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(95, 149, 255, 0.14);
  background: rgba(95, 149, 255, 0.08);
  color: #bfefff;
}

.esports-match__state--done {
  border-color: rgba(126, 255, 178, 0.16);
  background: rgba(126, 255, 178, 0.08);
  color: #d8ffe6;
}

.esports-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.esports-match__teams em {
  color: var(--muted);
  font-style: normal;
}

.esports-match__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(95, 149, 255, 0.12);
  background: rgba(13, 22, 40, 0.85);
  color: var(--text);
}

.esports-match__score.is-live {
  border-color: rgba(255, 125, 125, 0.24);
  color: #ffb3b3;
  box-shadow: 0 0 0 1px rgba(255, 125, 125, 0.08);
}

.esports-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.esports-team--right {
  justify-content: flex-end;
}

.esports-team__logo,
.esports-team__fallback {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex: 0 0 30px;
}

.esports-team__logo {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(95, 149, 255, 0.12);
  padding: 4px;
}

.esports-team__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(95, 149, 255, 0.12);
  border: 1px solid rgba(95, 149, 255, 0.18);
}

.esports-team__fallback--hidden {
  display: none;
}

.esports-team__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esports-team--right .esports-team__name {
  text-align: right;
}

.esports-match--result strong:last-child {
  font-size: 1rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
}

.meta-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.meta-tier {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 166, 92, 0.16);
  border: 1px solid rgba(255, 184, 120, 0.14);
}

.analysis-summary {
  line-height: 1.7;
}

.analysis-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 14, 0.72);
}

.modal__panel {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 24px;
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 174, 98, 0.18);
  background: linear-gradient(180deg, rgba(26, 16, 11, 0.98), rgba(16, 10, 7, 0.99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.modal__panel--auth {
  width: min(520px, calc(100% - 28px));
  max-height: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 184, 120, 0.1);
  background: rgba(255, 246, 239, 0.05);
  color: var(--text);
  font-size: 1.6rem;
}

.auth-panel,
.auth-form {
  display: grid;
}

.curve-chart__tooltip {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(110, 170, 255, 0.24);
  background: rgba(6, 10, 20, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.curve-chart__tooltip-rank {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.curve-chart__tooltip-rank img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.curve-chart__tooltip-rank strong {
  display: block;
  font-size: 0.9rem;
  color: #f6fbff;
}

.curve-chart__tooltip-rank span,
.curve-chart__tooltip small {
  color: var(--muted);
  font-size: 0.74rem;
}

.curve-chart__tooltip small {
  display: block;
  margin-top: 8px;
}

.auth-panel {
  gap: 18px;
}

.auth-panel__header h3 {
  margin: 6px 0 8px;
  font-size: 1.7rem;
}

.auth-panel__header p {
  margin: 0;
}

.auth-switcher {
  gap: 10px;
}

.auth-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 245, 237, 0.04);
  border: 1px solid rgba(255, 184, 120, 0.1);
}

.auth-feedback.is-error {
  border-color: rgba(255, 110, 141, 0.24);
  color: #ffd3dc;
}

.auth-feedback.is-success {
  border-color: rgba(78, 243, 255, 0.24);
  color: #d8fbff;
}

.auth-form {
  gap: 14px;
}

.auth-form:not(.active) {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form input {
  border: 1px solid rgba(255, 184, 120, 0.1);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 247, 240, 0.045);
}

.auth-submit {
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd08b, var(--blue) 55%, var(--violet));
  color: #261107;
}

.modal__header {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 40px;
}

.team-row,
.modal__build > div,
.team-detail,
.match-modal-build__block,
.match-modal-metric,
.match-modal-postgame {
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.match-modal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.match-modal-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.match-modal-tab.is-active {
  color: var(--text);
  border-color: rgba(103, 217, 255, 0.22);
  background: rgba(103, 217, 255, 0.09);
}

.match-modal-view {
  display: none;
}

.match-modal-view.is-active {
  display: block;
}

.match-modal-postgame {
  padding: 16px;
}

.match-modal-build {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.match-modal-build__block,
.match-modal-metric {
  padding: 16px;
}

.match-modal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.match-modal-metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.match-modal-metric strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.team-detail h4 {
  margin: 0 0 14px;
}

.team-row {
  grid-template-columns: 1.35fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 82px;
}

.team-row.self {
  border-color: rgba(78, 243, 255, 0.28);
}

.team-row__player {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.team-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.team-row__stats {
  display: grid;
  gap: 4px;
}

.empty-state {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.item-tooltip {
  position: fixed;
  z-index: 80;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(95, 149, 255, 0.18);
  background: rgba(8, 13, 28, 0.97);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  display: grid;
  gap: 6px;
}

.item-tooltip[hidden] {
  display: none !important;
}

.item-tooltip strong {
  font-size: 0.98rem;
}

.item-tooltip span {
  color: var(--muted);
  font-size: 0.8rem;
}

.item-tooltip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

@media (max-width: 1150px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }

  .inline-ad {
    grid-template-columns: 1fr;
  }

  .topbar,
  .account-panel__grid,
  .search-bar,
  .headline-grid,
  .dashboard-sidebar,
  .dashboard-main,
  .headline-grid,
  .analytics-grid,
  .insight-grid,
  .analysis-grid,
  .players-grid,
  .patches-shell,
  .champions-shell,
  .champion-detail__hero,
  .champion-detail__grid,
  .champion-detail__identity,
  .meta-grid,
  .modal__header,
  .match-modal-build,
  .match-modal-metrics {
    grid-template-columns: 1fr;
  }

  .topbar__side {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .match-card__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .account-panel__stats {
    grid-template-columns: 1fr;
  }

  .admin-user-card {
    grid-template-columns: 1fr;
  }

  .admin-user-card__meta,
  .admin-user-card__actions {
    justify-content: flex-start;
  }

  .leader-spotlight {
    grid-template-columns: 1fr;
  }

  .leader-table__head,
  .players-card--showcase .leader-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .landing-logo {
    gap: 10px;
  }

  .landing-hero {
    padding-top: 28px;
  }

  .landing-search__main,
  .landing-news__grid,
  .esports-columns {
    grid-template-columns: 1fr;
  }

  .match-card {
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas:
      "summary main"
      "summary stats"
      "summary footer";
    align-items: start;
  }

  .match-summary {
    align-content: center;
  }

  .match-card__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .match-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 100%);
    padding-top: 16px;
  }

  .landing-page {
    min-height: auto;
    padding: 22px 18px;
  }

  .landing-page__content {
    min-height: auto;
  }

  .profile-card__main,
  .champion-card,
  .champion-browser-card,
  .match-card,
  .match-card__stats,
  .leader-spotlight,
  .leader-row,
  .leader-row__identity,
  .modal__hero-stats,
  .team-row {
    grid-template-columns: 1fr;
  }

  .match-side-panel,
  .match-card__left,
  .match-card__right {
    justify-items: start;
  }

  .match-build-preview {
    grid-template-columns: 1fr;
  }

  .meta-row--compact,
  .meta-stats-head,
  .meta-stats-row,
  .meta-stats-row__identity {
    grid-template-columns: 1fr;
  }

  .auth-bar {
    flex-wrap: wrap;
  }

  .hero__signature {
    align-items: flex-start;
  }

  .hero__stats,
  .profile-tags {
    grid-auto-flow: row;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .brand,
  .topbar__side {
    width: 100%;
  }

  .topbar__side {
    display: grid;
    gap: 10px;
    justify-items: stretch;
  }

  .auth-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .auth-bar > * {
    width: 100%;
    justify-content: center;
  }

  .topnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav__item {
    flex: 0 0 auto;
  }

  .landing-page {
    padding: 20px 14px;
  }

  .landing-hero {
    gap: 12px;
    padding-top: 18px;
  }

  .landing-logo strong {
    font-size: clamp(2.2rem, 10vw, 4rem);
    line-height: 0.95;
    text-align: center;
  }

  .landing-hero__subtitle {
    max-width: 28ch;
    font-size: 0.95rem;
  }

  .landing-search {
    max-width: 100%;
  }

  .landing-search__main {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .landing-search__main .search-historybox,
  .landing-search__main > button {
    grid-column: 1 / -1;
  }

  .landing-search input,
  .landing-search select,
  .landing-search button {
    min-height: 48px;
  }

  .hero {
    padding: 16px;
    gap: 12px;
  }

  .search-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .search-bar .search-historybox,
  .search-bar > button {
    grid-column: 1 / -1;
  }

  .search-bar input,
  .search-bar select,
  .search-bar button {
    padding: 12px 14px;
    min-height: 46px;
  }

  .search-error-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dashboard {
    gap: 14px;
  }

  .dashboard-sidebar,
  .dashboard-main,
  .headline-grid,
  .insight-grid {
    gap: 14px;
  }

  .profile-card,
  .metric-card,
  .matches-section,
  .chart-card,
  .champion-section {
    padding: 16px;
    border-radius: 20px;
  }

  .profile-card__main {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .profile-season-strip {
    gap: 6px;
  }

  .rank-queues {
    gap: 10px;
  }

  .rank-queue {
    padding: 12px;
  }

  .champion-pool-head {
    grid-template-columns: minmax(0, 1.4fr) 0.8fr 0.8fr;
    gap: 8px;
  }

  .champions-list--compact {
    gap: 8px;
  }

  .match-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "main"
      "stats"
      "footer";
    gap: 8px;
    padding: 12px;
    min-height: 0;
  }

  .match-summary,
  .match-main,
  .match-card__stats,
  .match-footer {
    width: 100%;
  }

  .match-summary {
    min-height: 0;
    padding: 12px;
  }

  .match-main {
    padding: 2px 0;
  }

  .match-main__identity {
    gap: 10px;
  }

  .match-main__hero {
    grid-template-columns: 56px 20px;
  }

  .match-champion-portrait {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .match-spell-runes {
    gap: 4px;
  }

  .match-card__stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .match-footer {
    gap: 8px;
    padding-top: 0;
  }

  .match-build-preview,
  .match-roster {
    min-height: 0;
  }

  .matches-list {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .dashboard {
    display: flex;
    flex-direction: column;
  }

  .dashboard-sidebar,
  .dashboard-main,
  .headline-grid,
  .insight-grid {
    display: contents;
  }

  .profile-card {
    order: 1;
  }

  .metric-card--rank {
    order: 2;
  }

  .champion-section--compact {
    order: 3;
  }

  .chart-card.role-rail-card {
    order: 4;
  }

  .matches-section {
    order: 5;
  }

  .dashboard-sidebar,
  .dashboard-main {
    gap: 12px;
  }

  .dashboard {
    gap: 12px;
  }

  .headline-grid,
  .insight-grid {
    gap: 12px;
  }

  .topbar {
    border-radius: 18px;
  }

  .topbar__meta {
    width: 100%;
    text-align: right;
    font-size: 0.82rem;
  }

  .topbar__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .auth-bar {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .auth-bar > * {
    width: auto;
    justify-content: center;
  }

  .landing-page__content {
    gap: 16px;
  }

  .landing-search__main {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .search-bar {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .hero,
  .landing-news,
  .account-panel,
  .utility-panel {
    border-radius: 20px;
  }

  .headline-grid {
    grid-template-columns: 1fr;
  }

  .profile-card__main {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }

  .profile-kda strong {
    font-size: 1.6rem;
  }

  .profile-kda {
    margin-top: 12px;
    gap: 4px;
  }

  .profile-season-strip {
    gap: 6px;
    margin-top: 8px;
  }

  .profile-season-chip {
    padding: 6px 8px;
  }

  .champion-pool-head {
    display: none;
  }

  .champion-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .champion-card__copy,
  .champion-card__games,
  .champion-card__winrate {
    width: 100%;
  }

  .champion-card__copy {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
  }

  .champion-card__games strong,
  .champion-card__winrate strong {
    font-size: 0.9rem;
  }

  .champion-card__subline,
  .champion-card__trend,
  .champions-list--compact .champion-card__copy p {
    font-size: 0.68rem;
  }

  .metric-card--rank .rank-queue__content {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .rank-emblem {
    width: 64px;
    height: 64px;
  }

  .match-card {
    padding: 10px;
    border-radius: 18px;
    gap: 6px;
  }

  .match-summary {
    padding: 8px 10px;
    gap: 2px;
  }

  .match-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-box--score {
    justify-items: start;
  }

  .match-score {
    width: 32px;
    height: 32px;
  }

  .match-build-preview {
    gap: 6px;
  }

  .match-roster {
    padding: 6px 8px;
    border-radius: 14px;
  }

  .match-card__summary-toggle {
    top: 6px;
    right: 6px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .match-summary-panel {
    padding: 8px 9px;
  }

  .match-summary-panel__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .match-summary-team__columns,
  .match-summary-team__row {
    grid-template-columns: minmax(140px, 1.2fr) 0.8fr 0.9fr 0.8fr 0.6fr 0.6fr minmax(92px, 0.9fr);
    gap: 6px;
  }

  .match-summary-team__item {
    width: 20px;
    height: 20px;
  }

  .match-roster__team {
    gap: 4px;
  }

  .match-roster__icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .champions-shell {
    gap: 14px;
  }

  .champions-browser,
  .champion-detail {
    padding: 14px;
    border-radius: 20px;
  }

  .champion-detail__hero-visual,
  .champion-detail__stats--premium,
  .champion-detail__section {
    border-radius: 18px;
  }

  .matches-section {
    padding: 12px;
  }

  .matches-section .card-head {
    gap: 10px;
    margin-bottom: 8px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 12px, 100%);
    padding-top: 10px;
  }

  .landing-page {
    padding: 14px 10px;
  }

  .landing-logo strong {
    font-size: clamp(2rem, 13vw, 2.9rem);
  }

  .hero {
    padding: 12px;
  }

  .search-bar input,
  .search-bar select,
  .search-bar button,
  .landing-search input,
  .landing-search select,
  .landing-search button {
    min-height: 44px;
    padding: 10px 12px;
  }

  .topnav {
    gap: 6px;
  }

  .topnav__item {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .matches-section,
  .profile-card,
  .metric-card,
  .chart-card,
  .champion-section {
    padding: 12px;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .profile-kda strong {
    font-size: 1.35rem;
  }

  .profile-season-strip {
    display: grid;
    width: 100%;
  }

  .metric-card--rank {
    gap: 8px;
  }

  .rank-queue {
    padding: 10px;
  }

  .match-card__stats {
    grid-template-columns: 1fr 1fr;
  }

  .match-summary,
  .match-main,
  .match-footer {
    gap: 6px;
  }

  .match-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
  }

  .match-main__hero {
    grid-template-columns: 48px 18px;
    gap: 4px;
  }

  .match-champion-portrait {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .match-kda-line {
    font-size: 0.82rem;
  }

  .match-economy,
  .match-mode,
  .match-time,
  .match-queue,
  .match-lp {
    font-size: 0.64rem;
  }

  .match-score {
    width: 30px;
    height: 30px;
    font-size: 0.5rem !important;
  }

  .stat-box {
    padding: 5px 4px;
  }

  .stat-box strong {
    font-size: 0.84rem;
  }

  .match-roster__icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }

  .match-roster__player.is-self .match-roster__icon {
    width: 20px;
    height: 20px;
  }
}

/* Mobile refinement pass: player page and match history only */
@media (max-width: 760px) {
  .dashboard-top {
    gap: 10px;
  }

  .dashboard-sidebar,
  .dashboard-main,
  .headline-grid,
  .insight-grid {
    gap: 10px;
  }

  .profile-card,
  .metric-card,
  .matches-section,
  .chart-card,
  .champion-section {
    padding: 14px;
  }

  .profile-card__main {
    width: 100%;
    grid-template-columns: 56px minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
    align-items: start;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .profile-card__main > div {
    min-width: 0;
  }

  .profile-card__main h2 {
    font-size: 1.45rem;
    line-height: 1.02;
  }

  .profile-season-strip {
    display: flex;
    flex-wrap: nowrap;
    width: calc(100% + 2px);
    overflow-x: auto;
    gap: 6px;
    margin-top: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .profile-season-strip::-webkit-scrollbar {
    display: none;
  }

  .profile-season-chip {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 6px 8px;
  }

  .profile-kda {
    margin-top: 10px;
    gap: 2px;
  }

  .profile-kda strong {
    font-size: 1.42rem;
  }

  .profile-live-button,
  .profile-external-link--button {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .rank-overview {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .rank-queues {
    gap: 8px;
  }

  .rank-queue {
    padding: 10px;
    border-radius: 16px;
  }

  .metric-card--rank .rank-queue__content,
  .rank-queue__body {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .rank-emblem,
  .rank-queue__emblem {
    width: 52px;
    height: 52px;
  }

  .rank-queue__tier {
    font-size: 0.84rem;
  }

  .rank-queue__lp {
    font-size: 0.8rem;
  }

  .champion-pool-total {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .champion-pool-tabs {
    gap: 10px;
    margin: 2px 0 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .champion-pool-tabs::-webkit-scrollbar {
    display: none;
  }

  .champion-pool-tab {
    flex: 0 0 auto;
    font-size: 0.86rem;
  }

  .champions-list--compact {
    gap: 6px;
  }

  .champion-card {
    padding: 9px 10px;
    border-radius: 14px;
  }

  .champion-card__copy {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .champion-card__image-wrap,
  .champions-list--compact .champion-card__image {
    width: 36px;
    height: 36px;
  }

  .champions-list--compact .champion-card__copy strong {
    font-size: 0.9rem;
  }

  .champions-list--compact .champion-card__copy p,
  .champion-card__subline,
  .champion-card__trend {
    font-size: 0.64rem;
  }

  .champion-card__games strong,
  .champion-card__winrate strong {
    font-size: 0.84rem;
  }

  .champion-pool-more {
    min-width: 0;
    width: 100%;
    margin-top: 10px;
    min-height: 40px;
  }

  .matches-section {
    padding: 12px;
  }

  .matches-list {
    gap: 8px;
  }

  .match-card {
    padding: 9px;
    gap: 5px;
    border-radius: 16px;
  }

  .match-summary {
    padding: 7px 9px;
  }

  .match-result {
    font-size: 0.96rem;
  }

  .match-duration {
    font-size: 0.82rem;
  }

  .match-main {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
  }

  .match-main__hero {
    grid-template-columns: 50px 18px;
    gap: 4px;
  }

  .match-champion-portrait {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .match-main__copy {
    gap: 3px;
  }

  .match-champion {
    font-size: 0.86rem;
  }

  .match-kda-line {
    font-size: 0.8rem;
  }

  .match-economy,
  .match-mode,
  .match-time,
  .match-queue,
  .match-lp {
    font-size: 0.63rem;
  }

  .match-card__stats {
    grid-template-columns: 52px repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .stat-box {
    padding: 6px 4px;
    border-radius: 10px;
  }

  .stat-box span {
    font-size: 0.58rem;
  }

  .stat-box strong {
    margin-top: 2px;
    font-size: 0.78rem;
  }

  .match-kda {
    font-size: 0.7rem;
  }

  .match-score {
    width: 28px;
    height: 28px;
    font-size: 0.6rem !important;
  }

  .match-footer {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: -10px;
  }

  .match-build-bar {
    padding: 4px 7px;
    gap: 5px;
    border-radius: 12px;
  }

  .match-build-preview__items {
    gap: 6px;
  }

  .match-build-preview__items .preview-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .match-roster {
    min-height: 0;
    padding: 4px 7px;
    border-radius: 12px;
  }

  .match-roster__team {
    gap: 3px;
  }

  .match-roster__icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
  }

  .match-roster__player.is-self .match-roster__icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 520px) {
  .profile-card,
  .metric-card,
  .matches-section,
  .chart-card,
  .champion-section {
    padding: 11px;
  }

  .profile-card__main {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .profile-card__main h2 {
    font-size: 1.24rem;
  }

  .profile-kda strong {
    font-size: 1.26rem;
  }

  .profile-season-chip {
    min-width: 102px;
    padding: 5px 7px;
  }

  .profile-season-chip span,
  .profile-season-chip em {
    font-size: 0.64rem;
  }

  .profile-season-chip strong {
    font-size: 0.8rem;
  }

  .profile-live-button,
  .profile-external-link--button {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .match-summary-team__columns {
    display: none;
  }

  .match-summary-team__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .match-summary-team__identity {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .match-summary-team__avatar-wrap,
  .match-summary-team__avatar {
    width: 34px;
    height: 34px;
  }

  .match-summary-team__metric strong {
    font-size: 0.74rem;
  }

  .match-summary-team__items {
    gap: 3px;
  }

  .rank-queue {
    padding: 9px;
  }

  .metric-card--rank .rank-queue__content,
  .rank-queue__body {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 7px;
  }

  .rank-emblem,
  .rank-queue__emblem {
    width: 46px;
    height: 46px;
  }

  .rank-queue__name,
  .rank-queue__tier {
    font-size: 0.78rem;
  }

  .rank-queue__lp,
  .rank-queue__stats strong,
  .rank-queue__stats span {
    font-size: 0.7rem;
  }

  .champion-card {
    padding: 8px 9px;
  }

  .champion-card__copy {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .champion-card__image-wrap,
  .champions-list--compact .champion-card__image {
    width: 34px;
    height: 34px;
  }

  .champion-card__games strong,
  .champion-card__winrate strong {
    font-size: 0.8rem;
  }

  .match-card {
    padding: 8px;
    border-radius: 14px;
  }

  .match-summary {
    padding: 7px 8px;
  }

  .match-main {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 7px;
  }

  .match-main__hero {
    grid-template-columns: 46px 16px;
  }

  .match-champion-portrait {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .match-champion {
    font-size: 0.82rem;
  }

  .match-kda-line {
    font-size: 0.76rem;
  }

  .match-card__stats {
    grid-template-columns: 48px repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .stat-box {
    padding: 4px 3px;
  }

  .stat-box span {
    font-size: 0.54rem;
  }

  .stat-box strong {
    font-size: 0.72rem;
  }

  .match-score {
    width: 26px;
    height: 26px;
    font-size: 0.56rem !important;
  }

  .match-build-bar {
    padding: 4px 6px;
  }

  .match-build-preview__items .preview-icon {
    width: 24px;
    height: 24px;
  }

  .match-roster {
    padding: 2px 6px;
  }

  .match-roster__icon {
    width: 19px;
    height: 19px;
    border-radius: 4px;
  }

  .match-roster__player.is-self .match-roster__icon {
    width: 21px;
    height: 21px;
  }
}

