.leaderboards-page {
  background:
    radial-gradient(circle at top, rgba(58, 95, 150, 0.16), transparent 32rem),
    linear-gradient(180deg, #07111f 0%, #081520 36%, #091826 100%);
  color: #efe6d0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.leaderboards-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 4rem;
}

.leaderboards-subnav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 1rem 0 0;
  overflow-x: auto;
  border: 1px solid rgba(220, 188, 117, 0.2);
  border-bottom-color: rgba(220, 188, 117, 0.32);
  border-radius: 0.8rem 0.8rem 0 0;
  background: rgba(6, 14, 25, 0.72);
}

.leaderboards-subnav a {
  position: relative;
  flex: 0 0 auto;
  padding: 0.78rem 1rem;
  border-right: 1px solid rgba(220, 188, 117, 0.12);
  color: rgba(239, 228, 203, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.leaderboards-subnav a:hover,
.leaderboards-subnav a:focus-visible,
.leaderboards-subnav a.is-active {
  color: #f8dda4;
  background:
    linear-gradient(180deg, rgba(244, 196, 103, 0.14), rgba(244, 196, 103, 0.04)),
    rgba(13, 28, 43, 0.82);
}

.leaderboards-subnav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 0.16rem;
  background: #e7b861;
}

.stats-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  gap: 1rem;
  align-items: center;
  min-height: 0;
  margin-top: 1rem;
  padding: 1.6rem;
}

.stats-overview-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.stats-overview-art img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 1.2rem 2rem rgba(0, 0, 0, 0.42));
}

.stats-overview-player-search {
  max-width: 42rem;
  margin-top: 1.2rem;
}

.stats-overview-player-search label {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(246, 234, 208, 0.78);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-overview-player-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.stats-overview-player-search input {
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(225, 191, 120, 0.28);
  border-radius: 0.3rem;
  background: rgba(4, 11, 20, 0.9);
  color: #f5eedf;
  font: inherit;
}

.stats-overview-player-search input:focus {
  outline: 2px solid rgba(245, 204, 120, 0.45);
  outline-offset: 2px;
}

.stats-overview-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.stats-overview-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(230, 195, 123, 0.28);
  border-radius: 0.3rem;
  background: rgba(9, 18, 32, 0.84);
  color: #f6e8c7;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.stats-overview-action-primary {
  background: linear-gradient(180deg, #f0c778, #c89046);
  color: #29160a;
}

.stats-overview-action:hover,
.stats-overview-action:focus-visible {
  border-color: rgba(244, 200, 112, 0.68);
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(245, 204, 120, 0.14);
}

.stats-overview-action img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.stats-overview-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.stats-overview-card {
  z-index: 1;
  display: flex;
  min-height: 3.4rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  color: #efe6d0;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.stats-overview-card > span {
  color: #e7b861;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-overview-card > strong {
  margin: 0;
  color: #e7b861;
  font-size: 1.3rem;
  line-height: 1;
}

.stats-overview-card:hover,
.stats-overview-card:focus-visible {
  border-color: rgba(231, 184, 97, 0.62);
  background-color: rgba(21, 42, 61, 0.96);
  transform: translateY(-2px);
}

.stats-overview-section {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: 1rem;
}

.stats-overview-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(226, 193, 122, 0.18);
}

.stats-overview-section-head h2,
.stats-overview-section-head p {
  margin: 0;
}

.stats-overview-section-head h2 {
  margin-top: 0.15rem;
  color: #f7dfaa;
  font-size: 1.25rem;
}

.stats-overview-section-head > span,
.stats-overview-section-head > a {
  color: rgba(240, 210, 145, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.stats-overview-section-head > a:hover,
.stats-overview-section-head > a:focus-visible {
  color: #fff0bd;
}

.stats-overview-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.stats-overview-metrics article {
  min-width: 0;
  padding: 0.8rem;
  border-left: 2px solid rgba(231, 184, 97, 0.52);
  background: rgba(5, 13, 24, 0.48);
}

.stats-overview-metrics span,
.stats-overview-metrics strong,
.stats-overview-metrics small {
  display: block;
}

.stats-overview-metrics span {
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stats-overview-metrics strong {
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  color: #f8dfaa;
  font-size: 1.2rem;
}

.stats-overview-metrics small {
  margin-top: 0.2rem;
  color: rgba(238, 227, 203, 0.58);
}

.stats-overview-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stats-overview-match-list {
  display: grid;
}

.stats-overview-match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(226, 193, 122, 0.12);
  color: #eee3cb;
  text-decoration: none;
}

.stats-overview-match:first-child {
  border-top: 0;
}

.stats-overview-match img {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(226, 193, 122, 0.22);
  border-radius: 0.2rem;
  object-fit: cover;
}

.stats-overview-match span,
.stats-overview-match strong,
.stats-overview-match small {
  display: block;
  min-width: 0;
}

.stats-overview-match strong {
  color: #f6d99e;
}

.stats-overview-match small,
.stats-overview-match em {
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.74rem;
  font-style: normal;
}

.stats-overview-match:hover strong,
.stats-overview-match:focus-visible strong {
  color: #fff0bd;
}

.stats-overview-table-wrap {
  overflow-x: auto;
}

.stats-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.stats-overview-table th,
.stats-overview-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(226, 193, 122, 0.12);
  text-align: left;
}

.stats-overview-table th {
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stats-overview-table a {
  color: #f6d99e;
  font-weight: 800;
  text-decoration: none;
}

.stats-overview-table a:hover,
.stats-overview-table a:focus-visible {
  color: #fff0bd;
  text-decoration: underline;
}

.elite-four-panel {
  margin-top: 1rem;
  padding: 1rem;
}

.elite-four-panel .elite-four-grid {
  width: min(100%, calc(66vh - 0.55rem));
  max-width: 58rem;
  margin-right: auto;
  margin-left: auto;
}

.elite-four-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.elite-four-player {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  aspect-ratio: 1 / 0.92;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(225, 190, 116, 0.17);
  border-left: 2px solid rgba(231, 184, 97, 0.62);
  border-radius: 0.28rem;
  background: rgba(4, 12, 22, 0.62);
  color: #efe6d0;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.elite-four-player:hover,
.elite-four-player:focus-visible {
  border-color: rgba(231, 184, 97, 0.58);
  background: rgba(20, 39, 57, 0.86);
  outline: none;
}

.elite-four-rank {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  min-width: 2.5rem;
  padding: 0.28rem 0.38rem;
  border: 1px solid rgba(231, 184, 97, 0.28);
  border-radius: 0.2rem;
  background: rgba(3, 9, 17, 0.84);
  color: #e5b95f;
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

.elite-four-portrait {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 190, 116, 0.18);
  border-radius: 0.25rem;
  background: rgba(2, 8, 15, 0.76);
}

.elite-four-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elite-four-portrait img.is-fallback {
  width: 4rem;
  height: 4rem;
  margin: auto;
  object-fit: contain;
}

.elite-four-identity,
.elite-four-identity strong,
.elite-four-identity small {
  display: block;
  min-width: 0;
}

.elite-four-identity strong {
  overflow: hidden;
  color: #fae4b2;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elite-four-identity small,
.elite-four-metrics small {
  color: rgba(238, 227, 203, 0.52);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.elite-four-metrics {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.8rem;
  text-align: right;
}

.player-stats-search-only {
  width: min(100%, 54rem);
  margin: 1.25rem auto 0;
  padding: 1rem;
}

.player-stats-page #playerStatsProfilePanel[hidden],
.player-stats-page #playerStatsSearchResultsPanel[hidden],
.player-stats-page #playerStatsMatchModal[hidden] {
  display: none !important;
}

.player-stats-search-only .leaderboards-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
  max-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.player-stats-search-only .leaderboards-search-card > input {
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(225, 191, 120, 0.28);
  border-radius: 0.3rem;
  background: rgba(4, 11, 20, 0.92);
  color: #f5eedf;
  font: inherit;
}

.player-stats-search-only .leaderboards-search-card > button {
  min-width: 8rem;
}

.elite-four-metrics span,
.elite-four-metrics small,
.elite-four-metrics strong {
  display: block;
}

.elite-four-metrics strong {
  margin-top: 0.1rem;
  color: #f2d18b;
  font-size: 0.84rem;
}

.elite-four-empty {
  grid-column: 1 / -1;
}

.in-hunt {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(225, 190, 116, 0.17);
}

.in-hunt-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.in-hunt-heading strong {
  color: #e8c477;
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.in-hunt-heading span {
  color: rgba(238, 227, 203, 0.5);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.in-hunt-row {
  display: grid;
  grid-auto-columns: minmax(7rem, 1fr);
  grid-auto-flow: column;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-color: rgba(220, 178, 92, 0.45) rgba(4, 11, 20, 0.42);
  scrollbar-width: thin;
}

.in-hunt-player {
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid rgba(225, 190, 116, 0.15);
  border-bottom: 2px solid rgba(231, 184, 97, 0.42);
  border-radius: 0.24rem;
  background: rgba(4, 12, 22, 0.58);
  color: #efe6d0;
  text-decoration: none;
}

.in-hunt-player:hover,
.in-hunt-player:focus-visible {
  border-color: rgba(231, 184, 97, 0.55);
  background: rgba(20, 39, 57, 0.82);
  outline: none;
}

.in-hunt-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  border: 1px solid rgba(225, 190, 116, 0.15);
  border-radius: 0.18rem;
  background: rgba(2, 8, 15, 0.72);
}

.in-hunt-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.in-hunt-portrait img.is-fallback {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.in-hunt-portrait small {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  padding: 0.12rem 0.24rem;
  border: 1px solid rgba(231, 184, 97, 0.24);
  background: rgba(3, 9, 17, 0.84);
  color: #e5b95f;
  font-size: 0.63rem;
  font-weight: 900;
}

.in-hunt-player > strong {
  margin-top: 0.38rem;
  overflow: hidden;
  color: #f7dfaa;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.in-hunt-metrics {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: #e9c77f;
  font-size: 0.65rem;
  font-weight: 850;
}

.in-hunt-metrics small {
  margin-right: 0.18rem;
  color: rgba(238, 227, 203, 0.45);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
}

.stats-overview-god-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stats-overview-god-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border-left: 2px solid rgba(231, 184, 97, 0.5);
  background: rgba(5, 13, 24, 0.5);
}

.stats-overview-god-grid img {
  grid-row: span 2;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

.stats-overview-god-grid strong,
.stats-overview-god-grid small {
  display: block;
}

.stats-overview-god-grid strong {
  color: #f8dfaa;
}

.stats-overview-god-grid small,
.stats-overview-god-grid em {
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.72rem;
  font-style: normal;
}

.stats-overview-god-grid em {
  grid-column: 2;
}

.stats-overview-empty {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border-left: 2px solid rgba(231, 184, 97, 0.42);
  background: rgba(5, 13, 24, 0.48);
}

.stats-overview-empty strong {
  color: #f7dda4;
}

.stats-overview-empty span {
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .stats-overview-hero,
  .stats-overview-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-overview-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-overview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats-overview-art {
    display: none;
  }

  .stats-overview-player-search > div,
  .stats-overview-quick-grid,
  .stats-overview-god-grid,
  .elite-four-grid {
    grid-template-columns: 1fr;
  }

  .stats-overview-hero-actions,
  .stats-overview-action {
    width: 100%;
  }

  .stats-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-overview-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-overview-god-grid em {
    grid-column: 2;
  }
}

.leaderboards-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 188, 117, 0.24);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 235, 185, 0.08), rgba(144, 183, 218, 0.035)),
    rgba(13, 28, 43, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.leaderboards-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(118, 176, 226, 0.12), transparent 15rem),
    linear-gradient(120deg, transparent 0 58%, rgba(255, 231, 178, 0.06) 72%, transparent 84%);
  pointer-events: none;
}

.leaderboards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: 1.5rem;
  margin-top: 1.1rem;
}

.leaderboards-hero-copy,
.leaderboards-search-card,
.leaderboards-browse-panel,
.leaderboards-profile-overview,
.leaderboards-profile-gods,
.leaderboards-profile-maps,
.leaderboards-profile-matches {
  position: relative;
  z-index: 1;
}

.leaderboards-kicker {
  margin: 0 0 0.7rem;
  color: rgba(241, 219, 167, 0.8);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leaderboards-hero-copy h1,
.leaderboards-section-head h2,
.leaderboards-search-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 1.06;
}

.leaderboards-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.leaderboards-hero-copy p:last-child {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(236, 226, 207, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.leaderboards-search-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: 1.2rem;
  background: rgba(8, 18, 32, 0.66);
  border: 1px solid rgba(224, 192, 123, 0.16);
}

.leaderboards-search-head {
  display: grid;
  gap: 0.25rem;
}

.leaderboards-search-head span,
.leaderboards-meta-note,
.leaderboards-feedback {
  color: rgba(235, 222, 193, 0.68);
  font-size: 0.82rem;
}

.leaderboards-search-note {
  margin: -0.2rem 0 0;
  color: rgba(235, 222, 193, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

.leaderboards-profile-head-actions {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.leaderboards-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.leaderboards-search-grid > * {
  min-width: 0;
}

.leaderboards-field {
  display: grid;
  gap: 0.42rem;
}

.leaderboards-field span {
  color: rgba(246, 234, 208, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboards-field input,
.leaderboards-field select {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(225, 191, 120, 0.18);
  border-radius: 0.95rem;
  background: rgba(4, 11, 20, 0.88);
  color: #f5eedf;
  font: inherit;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.leaderboards-field input:focus,
.leaderboards-field select:focus,
.leaderboards-primary-button:focus-visible,
.leaderboards-secondary-button:focus-visible,
.leaderboards-ghost-button:focus-visible,
.leaderboards-queue-chip:focus-visible {
  outline: none;
  border-color: rgba(245, 204, 120, 0.58);
  box-shadow: 0 0 0 0.18rem rgba(245, 204, 120, 0.16);
}

.leaderboards-search-actions,
.leaderboards-browse-actions,
.leaderboards-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.leaderboards-section-head {
  margin: -0.1rem -0.1rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(98, 63, 20, 0.42);
  border-radius: 0.95rem;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background:
    linear-gradient(135deg, rgba(245, 214, 145, 0.22), rgba(178, 109, 38, 0.12)),
    rgba(38, 22, 9, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 239, 196, 0.16);
}

.leaderboards-browse-panel > .leaderboards-section-head:first-child,
.leaderboards-search-results > .leaderboards-section-head:first-child {
  margin: -1.35rem -1.35rem 1rem;
  padding: 1rem 1.35rem;
  border-width: 0 0 1px;
  border-radius: 1.35rem 1.35rem 0 0;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  background:
    linear-gradient(135deg, rgba(245, 214, 145, 0.25), rgba(178, 109, 38, 0.14)),
    rgba(48, 31, 15, 0.58);
}

.leaderboards-profile-overview > .leaderboards-section-head:first-child,
.leaderboards-profile-gods > .leaderboards-section-head:first-child,
.leaderboards-profile-maps > .leaderboards-section-head:first-child,
.leaderboards-profile-matches > .leaderboards-section-head:first-child {
  margin: -1.25rem -1.25rem 1rem;
  padding: 1rem 1.25rem;
  border-width: 0 0 1px;
  border-radius: 1.35rem 1.35rem 0 0;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.leaderboards-section-head .leaderboards-kicker,
.leaderboards-section-head h2 {
  color: #f6d48d;
}

.leaderboards-primary-button,
.leaderboards-secondary-button,
.leaderboards-ghost-button,
.leaderboards-queue-chip {
  min-height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 195, 123, 0.2);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.leaderboards-primary-button,
.leaderboards-secondary-button,
.leaderboards-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.05rem;
  cursor: pointer;
  text-transform: uppercase;
}

.leaderboards-button-icon {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.leaderboards-primary-button {
  background: linear-gradient(180deg, #f0c778, #c89046);
  color: #29160a;
}

.leaderboards-secondary-button,
.leaderboards-ghost-button,
.leaderboards-queue-chip {
  background: rgba(9, 18, 32, 0.72);
  color: rgba(245, 235, 214, 0.9);
}

.leaderboards-primary-button:hover,
.leaderboards-secondary-button:hover,
.leaderboards-ghost-button:hover,
.leaderboards-queue-chip:hover,
.leaderboards-queue-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(244, 200, 112, 0.48);
}

.leaderboards-queue-chip.is-active {
  background: linear-gradient(180deg, rgba(244, 196, 103, 0.2), rgba(244, 196, 103, 0.08));
  color: #f8e3af;
}

.leaderboards-browse-panel,
.leaderboards-search-results,
.leaderboards-profile-grid {
  margin-top: 1.2rem;
}

.leaderboards-browse-panel {
  padding: 1.35rem;
}

.leaderboards-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.leaderboards-page-jump {
  display: inline-flex;
  align-items: end;
}

.leaderboards-page-jump .leaderboards-field {
  margin: 0;
  min-width: 7.5rem;
}

.clan-search-click-row {
  cursor: pointer;
}

.clan-search-click-row:hover,
.clan-search-click-row:focus-visible {
  background: rgba(244, 196, 103, 0.07);
  outline: 1px solid rgba(244, 196, 103, 0.28);
}

.leaderboards-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #f3c46e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.leaderboards-ghost-link:hover,
.leaderboards-ghost-link:focus-visible {
  color: #ffe4a5;
}

.leaderboards-queue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.leaderboards-queue-chip {
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.leaderboards-tab-row {
  gap: 0;
  align-items: stretch;
  margin: 1rem 0 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  border: 1px solid rgba(230, 195, 123, 0.18);
  border-bottom-color: rgba(230, 195, 123, 0.28);
  border-radius: 0.85rem 0.85rem 0 0;
  background: rgba(5, 13, 24, 0.58);
}

.leaderboards-tab-row .leaderboards-queue-chip {
  flex: 0 0 auto;
  min-height: 2.7rem;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: transparent;
  color: rgba(238, 228, 204, 0.74);
  transform: none;
}

.leaderboards-tab-row .leaderboards-queue-chip:hover,
.leaderboards-tab-row .leaderboards-queue-chip.is-active {
  border-color: rgba(230, 195, 123, 0.18);
  background:
    linear-gradient(180deg, rgba(244, 196, 103, 0.18), rgba(244, 196, 103, 0.06)),
    rgba(18, 35, 54, 0.74);
  color: #f9dfaa;
  transform: none;
}

.leaderboards-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.2rem;
}

.leaderboards-profile-overview,
.leaderboards-profile-matches {
  grid-column: 1 / -1;
}

.leaderboards-profile-overview,
.leaderboards-profile-gods,
.leaderboards-profile-maps,
.leaderboards-profile-matches {
  padding: 1.25rem;
}

.player-stats-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(20, 37, 57, 0.84), rgba(8, 17, 31, 0.72));
}

.player-stats-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.player-stats-avatar {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(244, 200, 112, 0.34);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 232, 176, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(244, 196, 103, 0.16), rgba(83, 133, 179, 0.18));
  color: #f7e4b5;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.player-stats-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.player-stats-identity-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.player-stats-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.player-stats-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 195, 123, 0.2);
  background: rgba(9, 18, 32, 0.72);
  color: rgba(245, 235, 214, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button.player-stats-badge {
  cursor: pointer;
  font: inherit;
}

button.player-stats-badge:hover {
  border-color: rgba(245, 204, 120, 0.52);
  background: rgba(244, 196, 103, 0.12);
}

.player-stats-identity-line {
  margin: 0;
  color: rgba(236, 226, 205, 0.82);
  font-size: 0.9rem;
}

.player-stats-queue-switcher {
  margin-top: 1rem;
  padding-top: 0.3rem;
}

.player-stats-story-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.player-stats-story-card {
  min-height: 100%;
  border: 1px solid rgba(226, 193, 122, 0.16);
  background:
    radial-gradient(circle at top left, rgba(226, 193, 122, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(16, 28, 45, 0.9), rgba(8, 17, 31, 0.9));
}

.player-stats-verdict-panel {
  position: relative;
  overflow: hidden;
}

.player-stats-verdict-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.22rem;
  background: linear-gradient(90deg, #f3d18a, #d86844, #7aa6d9);
  opacity: 0.95;
}

.player-stats-verdict-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.player-stats-verdict-body {
  margin: 1rem 0 0;
  max-width: 64ch;
  color: rgba(241, 232, 214, 0.92);
  font-size: 1rem;
  line-height: 1.65;
}

.player-stats-verdict-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.leaderboards-stat-grid,
.leaderboards-list-grid {
  display: grid;
  gap: 0.9rem;
}

.leaderboards-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1rem;
}

.leaderboards-stat-card,
.leaderboards-list-card {
  padding: 1rem;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-radius: 1rem;
  background: rgba(8, 17, 31, 0.74);
}

.leaderboards-stat-card span,
.leaderboards-list-card span {
  display: block;
  color: rgba(238, 227, 203, 0.66);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboards-stat-card strong {
  display: block;
  margin-top: 0.38rem;
  font-size: 1.55rem;
  font-family: "Cinzel", serif;
}

.leaderboards-list-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.02rem;
}

.leaderboards-list-card p {
  margin: 0.55rem 0 0;
  color: rgba(236, 226, 205, 0.82);
  font-size: 0.88rem;
}

.player-stats-icon-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-stats-icon-card {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
}

.player-stats-icon-card img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 0.85rem;
  filter: drop-shadow(0 0.55rem 1rem rgba(0, 0, 0, 0.28));
}

.player-stats-icon-card div {
  min-width: 0;
}

.player-stats-icon-card strong,
.player-stats-icon-card p {
  overflow-wrap: anywhere;
}

.stats-placeholder-card {
  align-content: start;
}

.stats-placeholder-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.stats-empty-state {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(244, 196, 103, 0.08), rgba(8, 17, 31, 0.74)),
    rgba(8, 17, 31, 0.74);
}

.replay-match-card {
  display: grid;
  gap: 0.95rem;
}

.replay-detail-link {
  color: inherit;
  text-decoration: none;
}

.replay-detail-link:hover,
.replay-detail-link:focus-visible {
  color: #ffe2a3;
  text-decoration: underline;
}

.replay-detail-button {
  width: fit-content;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.76rem;
}

.replay-strategy-cloud {
  margin-top: 0;
}

.replay-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.replay-player-card {
  padding: 0.9rem;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-radius: 0.95rem;
  background: rgba(5, 13, 24, 0.7);
}

.replay-player-card span {
  display: block;
  color: rgba(238, 227, 203, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-player-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
}

.replay-player-card .player-stats-player-chip span,
.replay-detail-strategy-card .player-stats-player-chip span {
  color: rgba(244, 236, 219, 0.95);
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.replay-player-card p {
  margin: 0.5rem 0 0;
  color: rgba(236, 226, 205, 0.82);
  font-size: 0.86rem;
}

.replay-unit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.replay-unit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(18, 36, 58, 0.88);
  border: 1px solid rgba(99, 151, 200, 0.2);
  color: rgba(226, 236, 247, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
}

.replay-detail-shell {
  display: grid;
  gap: 1.2rem;
}

.replay-detail-hero {
  margin-bottom: 0;
}

.replay-detail-section {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
}

.replay-detail-team-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.replay-detail-player-breakdown {
  display: grid;
  gap: 0.75rem;
  padding: 0.2rem 0 0.7rem;
}

.replay-detail-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.replay-detail-timing-grid article {
  padding: 0.65rem;
  border: 1px solid rgba(226, 193, 122, 0.13);
  border-radius: 0.8rem;
  background: rgba(3, 10, 18, 0.46);
}

.replay-detail-timing-grid span {
  display: block;
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-detail-timing-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: #f7dfaa;
}

.replay-detail-unit-list {
  margin-top: 0;
}

.replay-detail-details {
  margin-top: 0.2rem;
}

.replay-detail-timeline {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.replay-detail-timeline span {
  padding: 0.48rem 0.65rem;
  border-radius: 0.6rem;
  background: rgba(8, 18, 31, 0.72);
  color: rgba(242, 232, 210, 0.84);
  font-size: 0.82rem;
}

.replay-detail-evidence-grid {
  margin-bottom: 0.85rem;
}

.replay-detail-strategy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.replay-detail-strategy-card {
  background:
    linear-gradient(180deg, rgba(244, 196, 103, 0.1), rgba(8, 17, 31, 0.72)),
    rgba(8, 17, 31, 0.72);
}

.replay-detail-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.replay-detail-evidence-list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.22rem 0.52rem;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-radius: 999px;
  background: rgba(3, 10, 18, 0.52);
  color: rgba(242, 232, 210, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.leaderboards-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(219, 188, 118, 0.13);
  border-radius: 0.8rem;
  background: rgba(4, 11, 20, 0.42);
}

.leaderboards-data-note {
  margin: -0.2rem 0 1rem;
  color: rgba(235, 222, 193, 0.72);
  font-size: 0.84rem;
  line-height: 1.55;
}

.leaderboards-table-wrap-flush {
  margin-right: -1.35rem;
  margin-left: -1.35rem;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.leaderboards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboards-table th,
.leaderboards-table td {
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid rgba(219, 188, 118, 0.12);
  text-align: left;
  vertical-align: middle;
}

.leaderboards-table th {
  color: #2a180a;
  background: linear-gradient(180deg, #f3d28a, #c99447);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboards-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.leaderboards-sort-link:hover,
.leaderboards-sort-link:focus-visible,
.leaderboards-sort-link.is-active {
  color: #1c1008;
  text-decoration: underline;
  text-decoration-thickness: 0.08rem;
  text-underline-offset: 0.18rem;
}

.leaderboards-sort-link img {
  width: 0.82rem;
  height: 0.82rem;
  object-fit: contain;
  opacity: 0.76;
}

.leaderboards-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.leaderboards-sort-button::after {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  background: url("/static/assets/images/ui/Icon_Sort_Off.4f5cbf07bdf1.png") center / contain no-repeat;
  opacity: 0.76;
}

.leaderboards-sort-button.is-asc::after {
  background-image: url("/static/assets/images/ui/Icon_Sort_Up.ca632af9fcf7.png");
}

.leaderboards-sort-button.is-desc::after {
  background-image: url("/static/assets/images/ui/Icon_Sort_Down.da33ee2531f2.png");
}

.leaderboards-sort-button:hover,
.leaderboards-sort-button:focus-visible,
.leaderboards-sort-button.is-active {
  color: #1c1008;
  text-decoration: underline;
  text-decoration-thickness: 0.08rem;
  text-underline-offset: 0.18rem;
}

.leaderboards-table td {
  color: rgba(243, 233, 215, 0.92);
  font-size: 0.92rem;
}

.leaderboards-table tbody tr:nth-child(even) {
  background: rgba(255, 239, 198, 0.045);
}

.leaderboards-table tbody tr:hover {
  background: rgba(255, 236, 184, 0.09);
}

.leaderboards-table tbody tr.is-active-row {
  background: rgba(244, 196, 103, 0.14);
}

.leaderboards-table tbody tr[data-player-name],
.leaderboards-table tbody tr[data-select-profile],
.leaderboards-table tbody tr[data-match-id],
.leaderboards-table tbody tr[data-rating-match-type] {
  cursor: pointer;
}

.leaderboards-table-empty {
  color: rgba(233, 219, 188, 0.66);
  text-align: center;
}

.leaderboards-player-cell {
  display: grid;
  gap: 0.12rem;
}

.leaderboards-player-with-avatar {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.6rem;
}

.leaderboards-player-cell small,
.leaderboards-result-pill,
.leaderboards-record-meta {
  color: rgba(235, 222, 193, 0.68);
  font-size: 0.8rem;
}

.leaderboards-rank {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: #f6d89a;
}

.leaderboards-result-pill.is-win {
  color: #8dd1a0;
}

.leaderboards-result-pill.is-loss {
  color: #f0a793;
}

.leaderboards-result-pill.clan-activity-active,
.leaderboards-result-pill.clan-activity-established {
  color: #8dd1a0;
}

.leaderboards-result-pill.clan-activity-quiet,
.leaderboards-result-pill.clan-activity-small {
  color: #f4c467;
}

.leaderboards-result-pill.clan-activity-dormant {
  color: #f0a793;
}

.player-stats-map-cell,
.player-stats-player-chip,
.player-stats-opponent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.player-stats-map-cell img {
  width: 4.6rem;
  height: 3.1rem;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid rgba(231, 197, 126, 0.22);
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.22);
}

.player-stats-opponent-stack {
  display: grid;
  gap: 0.4rem;
}

.player-stats-opponent-pill {
  width: fit-content;
  max-width: 18rem;
  padding: 0.22rem 0.55rem 0.22rem 0.24rem;
  border: 1px solid rgba(155, 196, 231, 0.18);
  border-radius: 999px;
  background: rgba(6, 16, 28, 0.5);
  color: rgba(244, 236, 219, 0.95);
}

.player-stats-mini-avatar {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(230, 195, 123, 0.24);
  background: rgba(9, 20, 35, 0.9);
  color: #f4d28a;
  font-size: 0.72rem;
  font-weight: 900;
}

img.player-stats-mini-avatar {
  object-fit: cover;
}

.player-stats-replay-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.player-stats-replay-button {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(230, 195, 123, 0.24);
  border-radius: 50%;
  background: rgba(8, 20, 34, 0.78);
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.player-stats-replay-button:hover,
.player-stats-replay-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 204, 120, 0.58);
  background: rgba(244, 196, 103, 0.14);
}

.player-stats-advanced-replay-button {
  background: linear-gradient(180deg, rgba(245, 204, 120, 0.22), rgba(92, 63, 23, 0.7));
}

.player-stats-replay-button img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.player-stats-clan-link {
  color: #f5cf81;
  text-decoration: none;
  font-weight: 900;
}

.player-stats-clan-link:hover,
.player-stats-clan-link:focus-visible {
  color: #ffe6a8;
  text-decoration: underline;
}

.player-stats-matchup-grid {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 20rem;
}

.player-stats-matchup-teams {
  display: grid;
  gap: 0.35rem;
  padding-inline: 1.6rem;
}

.player-stats-matchup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.6rem;
  align-items: center;
}

.player-stats-matchup-row > div {
  display: flex;
  min-width: 0;
}

.player-stats-matchup-row > div:first-child {
  justify-content: flex-end;
}

.player-stats-matchup-row > div:first-child .player-stats-match-token-info {
  align-items: flex-end;
  text-align: right;
}

.player-stats-matchup-row > div:last-child {
  justify-content: flex-start;
}

.player-stats-matchup-row > div:last-child .player-stats-match-token-info {
  align-items: flex-start;
  text-align: left;
}

.player-stats-matchup-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0.35rem 0.45rem rgba(0, 0, 0, 0.38));
}

.player-stats-matchup-vs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-stats-matchup-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-stats-match-token {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: rgba(246, 238, 219, 0.94);
  font-size: 0.82rem;
  font-weight: 800;
}

.player-stats-match-token.is-empty {
  min-height: 2rem;
}

.player-stats-match-token-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.player-stats-match-token-rating {
  color: rgba(238, 227, 203, 0.55);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-stats-match-token img,
.player-stats-god-fallback {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(230, 195, 123, 0.24);
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.22);
}

.player-stats-match-token.is-win img {
  border-color: rgba(124, 211, 143, 0.52);
}

.player-stats-match-token.is-loss img {
  border-color: rgba(239, 147, 125, 0.52);
}

.player-stats-match-token-result {
  flex: 0 0 auto;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-stats-match-token-result.is-win {
  background: rgba(124, 211, 143, 0.16);
  color: #8fe3a4;
}

.player-stats-match-token-result.is-loss {
  background: rgba(239, 147, 125, 0.14);
  color: #f0a58f;
}

.clan-detail-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.clan-detail-crest {
  display: grid;
  place-items: center;
  width: clamp(7rem, 18vw, 11rem);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 204, 120, 0.36);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 230, 162, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(85, 48, 14, 0.92), rgba(9, 19, 33, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 239, 198, 0.16), 0 1rem 2.5rem rgba(0, 0, 0, 0.34);
}

.clan-detail-crest span {
  color: #ffe0a0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clan-detail-crest small {
  margin-top: -0.4rem;
  color: rgba(246, 231, 194, 0.76);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.clan-detail-message {
  margin-top: 1rem;
}

.clan-detail-member-link {
  color: rgba(246, 238, 219, 0.95);
  text-decoration: none;
  font-weight: 900;
}

.clan-detail-member-link:hover,
.clan-detail-member-link:focus-visible {
  color: #ffe0a0;
}

.clan-detail-rank,
.clan-detail-presence {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(230, 195, 123, 0.2);
  border-radius: 999px;
  background: rgba(8, 20, 34, 0.66);
  color: rgba(244, 234, 212, 0.88);
  font-size: 0.8rem;
  font-weight: 900;
}

.clan-detail-presence.is-online {
  border-color: rgba(127, 216, 149, 0.36);
  background: rgba(62, 141, 82, 0.16);
  color: #99e0a9;
}

.clan-detail-presence.is-active {
  border-color: rgba(244, 196, 103, 0.42);
  background: rgba(244, 196, 103, 0.15);
  color: #f7d995;
}

.clan-detail-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.clan-detail-mini-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.clan-detail-mini-list a,
.clan-detail-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.48rem 0.6rem;
  border: 1px solid rgba(226, 193, 122, 0.12);
  border-radius: 0.55rem;
  background: rgba(3, 10, 18, 0.36);
  color: rgba(246, 238, 219, 0.94);
  text-decoration: none;
}

.clan-detail-mini-list a:hover,
.clan-detail-mini-list a:focus-visible {
  border-color: rgba(245, 204, 120, 0.36);
  color: #ffe1a2;
}

.clan-search-result-link {
  color: #f6d48d;
  font-weight: 900;
  text-decoration: none;
}

.clan-search-result-link:hover,
.clan-search-result-link:focus-visible {
  color: #ffe5aa;
  text-decoration: underline;
}

.major-god-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.major-god-controls .leaderboards-search-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.major-god-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(246, 238, 219, 0.96);
  font-weight: 900;
  text-decoration: none;
}

.major-god-cell:hover,
.major-god-cell:focus-visible {
  color: #ffe2a3;
  text-decoration: underline;
}

.major-god-cell img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0.35rem 0.7rem rgba(0, 0, 0, 0.28));
}

.major-god-lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 18rem;
}

.major-god-lineup > span {
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(155, 196, 231, 0.14);
  border-radius: 0.45rem;
  background: rgba(6, 16, 28, 0.5);
  color: rgba(244, 236, 219, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.player-stats-modal-open {
  overflow: hidden;
}

.player-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.player-stats-modal[hidden] {
  display: none;
}

.player-stats-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, 0.76);
  backdrop-filter: blur(0.35rem);
}

.player-stats-modal-card {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(86vh, 980px);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid rgba(230, 195, 123, 0.28);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(118, 176, 226, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(13, 27, 45, 0.98), rgba(5, 13, 24, 0.98));
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.5);
}

.player-stats-modal-body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.player-stats-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.player-stats-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.player-stats-match-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.player-stats-match-board-vs {
  display: grid;
  place-items: center;
  align-self: center;
  width: 3.2rem;
  height: 3.2rem;
  filter: drop-shadow(0 0.45rem 0.6rem rgba(0, 0, 0, 0.42));
}

.player-stats-match-board-vs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-stats-match-team {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(230, 195, 123, 0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 204, 120, 0.1), transparent 12rem),
    rgba(5, 13, 24, 0.58);
}

.player-stats-match-team.is-win {
  box-shadow: 0 0 0 1px rgba(126, 218, 151, 0.12), 0 0.9rem 2.1rem rgba(63, 160, 88, 0.13);
}

.player-stats-match-team.is-loss {
  box-shadow: 0 0 0 1px rgba(241, 143, 119, 0.1), 0 0.9rem 2.1rem rgba(182, 67, 50, 0.11);
}

.player-stats-match-team-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(242, 230, 205, 0.78);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-stats-match-team-head strong {
  color: #f5d28c;
}

.player-stats-match-player-list {
  display: grid;
  gap: 0.65rem;
}

.player-stats-match-player-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.7rem;
  border: 0;
  border-radius: 0.9rem;
  background: rgba(8, 18, 31, 0.7);
}

.player-stats-match-player-card.is-win {
  background:
    linear-gradient(90deg, rgba(76, 156, 97, 0.14), rgba(8, 18, 31, 0.7));
}

.player-stats-match-player-card.is-loss {
  background:
    linear-gradient(90deg, rgba(154, 60, 48, 0.12), rgba(8, 18, 31, 0.7));
}

.player-stats-match-player-god {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  min-width: 4rem;
}

.player-stats-match-player-god img,
.player-stats-match-player-god .player-stats-god-fallback {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(230, 195, 123, 0.26);
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.28);
}

.player-stats-match-player-god span {
  max-width: 5.5rem;
  color: #f5d28c;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.player-stats-match-player-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.player-stats-match-player-copy strong {
  overflow-wrap: anywhere;
  color: rgba(246, 238, 219, 0.96);
}

.player-stats-player-link {
  color: inherit;
  text-decoration: none;
}

.player-stats-player-link:hover,
.player-stats-player-link:focus-visible {
  color: #ffe2a3;
  text-decoration: underline;
}

.player-stats-match-player-copy p {
  margin: 0;
  color: rgba(235, 222, 193, 0.66);
  font-size: 0.78rem;
}

.player-stats-match-hero {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(90deg, rgba(244, 196, 103, 0.09), rgba(8, 17, 31, 0.5)),
    rgba(8, 17, 31, 0.64);
}

.player-stats-match-map-art {
  width: 100%;
  min-height: 10rem;
  height: 100%;
  object-fit: cover;
}

.player-stats-match-hero > div {
  display: grid;
  align-content: center;
  padding: 1rem;
}

.player-stats-match-hero h3 {
  margin: 0;
  color: #f8e3b4;
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.player-stats-match-hero p {
  margin: 0.5rem 0 0;
  color: rgba(236, 226, 205, 0.82);
}

.player-stats-modal-section {
  display: grid;
  gap: 0.8rem;
}

.player-stats-modal-section h3 {
  margin: 0;
  color: #f5d28c;
  font-family: "Cinzel", serif;
}

.player-stats-modal-kv,
.player-stats-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.player-stats-modal-kv article {
  padding: 0.8rem;
  border: 1px solid rgba(226, 193, 122, 0.14);
  border-radius: 0.85rem;
  background: rgba(5, 13, 24, 0.58);
}

.player-stats-modal-kv span {
  display: block;
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-stats-modal-kv strong {
  display: block;
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
}

.player-stats-modal pre,
.player-stats-modal-raw pre {
  max-height: 20rem;
  overflow: auto;
  margin: 0.7rem 0 0;
  padding: 0.85rem;
  border-radius: 0.8rem;
  background: rgba(2, 7, 14, 0.78);
  color: rgba(242, 232, 210, 0.86);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.player-stats-modal-raw {
  padding: 0.85rem;
  border: 1px solid rgba(226, 193, 122, 0.14);
  border-radius: 0.9rem;
  background: rgba(5, 13, 24, 0.52);
}

.player-stats-modal-raw summary {
  cursor: pointer;
  color: #f5d28c;
  font-weight: 800;
}

.match-award-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.match-award-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  flex: 1 1 calc(33.333% - 0.45rem);
  gap: 0.6rem;
  align-items: center;
  min-width: 11rem;
  max-width: calc(33.333% - 0.45rem);
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-radius: 0.85rem;
  background: rgba(5, 13, 24, 0.58);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.match-award-card:hover {
  border-color: rgba(230, 195, 123, 0.32);
  background: rgba(9, 20, 34, 0.72);
}

.match-award-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.match-award-card-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.match-award-card-label {
  color: #f5d28c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-award-card-player {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(246, 238, 219, 0.96);
  font-size: 0.85rem;
}

.match-award-card-player img {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  object-fit: cover;
}

.match-award-card-value {
  color: rgba(235, 222, 193, 0.78);
  font-size: 0.78rem;
}

/* Recent games and progressive replay details */
.recent-games-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.35rem;
}

.match-filters {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: 1.1rem;
}

.recent-games-player-search {
  display: grid;
  grid-template-columns: minmax(15rem, 0.55fr) minmax(24rem, 1fr);
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.recent-games-player-search label span,
.recent-games-player-search label strong {
  display: block;
}

.recent-games-player-search label span {
  color: #d8ac5c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.recent-games-player-search label strong {
  margin-top: 0.12rem;
  color: #f5dfb0;
  font-size: 1rem;
}

.recent-games-player-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.recent-games-player-search input,
.recent-games-player-search button {
  min-height: 2.65rem;
  border: 1px solid rgba(230, 195, 123, 0.28);
  border-radius: 0.28rem;
  font: inherit;
}

.recent-games-player-search input {
  min-width: 0;
  padding: 0.58rem 0.75rem;
  background: rgba(4, 11, 21, 0.88);
  color: #f5ead1;
}

.recent-games-player-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 1rem;
  background: linear-gradient(180deg, #f0c778, #c89046);
  color: #29160a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.recent-games-player-search button img {
  width: 0.78rem;
  height: 0.78rem;
  object-fit: contain;
}

.recent-games-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.7rem;
}

.recent-games-active-filters > span {
  color: rgba(240, 210, 145, 0.7);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recent-games-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(220, 178, 92, 0.28);
  border-radius: 999px;
  background: rgba(9, 20, 34, 0.82);
  color: #efd598;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.recent-games-active-filters a:hover,
.recent-games-active-filters a:focus-visible {
  border-color: rgba(232, 190, 105, 0.58);
  color: #ffebb9;
}

.recent-games-active-filters b {
  color: rgba(238, 227, 203, 0.58);
  font-size: 0.9rem;
}

.recent-games-panel {
  min-width: 0;
  margin-top: 1.2rem;
}

.match-filters-heading,
.recent-games-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(226, 193, 122, 0.18);
}

.match-filters-heading {
  margin-bottom: 0.9rem;
}

.match-filters-heading h2,
.match-filters-heading p,
.recent-games-results-heading h2,
.recent-games-results-heading p {
  margin: 0;
}

.match-filters-heading h2,
.recent-games-results-heading h2 {
  margin-top: 0.12rem;
  color: #f7dfaa;
  font-size: 1.25rem;
}

.match-filters-clear-all,
.recent-games-results-heading > span {
  color: rgba(240, 210, 145, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.recent-games-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.42rem;
  margin-top: 0.9rem;
}

.recent-games-shortcuts a {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(226, 193, 122, 0.15);
  border-radius: 0.65rem;
  background: rgba(5, 13, 24, 0.5);
  color: rgba(242, 224, 185, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.recent-games-shortcuts a:hover,
.recent-games-shortcuts a:focus-visible,
.recent-games-shortcuts a.is-active {
  border-color: rgba(217, 172, 88, 0.45);
  background: rgba(207, 161, 75, 0.14);
  color: #ffe5aa;
}

.recent-games-shortcuts a.is-active {
  box-shadow: inset 3px 0 0 #d9ac58;
}

.recent-games-shortcuts small {
  color: rgba(240, 210, 145, 0.62);
  font-size: 0.62rem;
}

.match-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.match-filters-grid .leaderboards-field input,
.match-filters-grid .leaderboards-field select {
  min-height: 2.65rem;
  padding: 0.58rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.83rem;
}

/* Match history basic filter bar: tighter than the shared .leaderboards-page
   defaults so this specific panel doesn't dominate the page above the table.
   Scoped to .recent-games-page to avoid regressing other leaderboard pages
   that reuse .match-filters/.leaderboards-field. */
.recent-games-page .match-filters {
  padding: 0.75rem 0.9rem;
}

.recent-games-page .match-filters-heading {
  min-height: 0;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
}

.recent-games-page .recent-games-shortcuts {
  margin-top: 0.65rem;
  gap: 0.32rem;
}

.recent-games-page .recent-games-shortcuts a {
  padding: 0.42rem 0.6rem;
  font-size: 0.64rem;
}

.recent-games-page .match-filters-grid {
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.recent-games-page .match-filters-grid .leaderboards-field input,
.recent-games-page .match-filters-grid .leaderboards-field select {
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
}

.recent-games-page .match-filters-grid .leaderboards-field span {
  font-size: 0.68rem;
}

.match-filters-checkbox-field .match-filters-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
}

.recent-games-page .match-filters-grid .match-filters-checkbox-field input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 0.3rem;
  accent-color: #e6c37b;
  cursor: pointer;
  flex: 0 0 auto;
}

.match-filters-checkbox-field .match-filters-checkbox span {
  color: rgba(240, 231, 214, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
}

.match-filters-range-inputs {
  display: flex;
  gap: 0.4rem;
}

.match-filters-range-inputs input {
  min-width: 0;
}

.match-filters-multiselect select {
  min-height: 6.5rem;
  padding: 0.35rem;
}

.match-filters-multiselect select option {
  padding: 0.3rem 0.4rem;
}

.match-filters-multiselect small {
  color: rgba(238, 227, 203, 0.5);
  font-size: 0.68rem;
}

.match-filters-advanced {
  min-height: 0;
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(226, 193, 122, 0.15);
  border-radius: 0.75rem;
  background: rgba(5, 13, 24, 0.42);
}

.match-filters-advanced[open] {
  display: block;
}

.match-filters-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem;
  color: #f1d69d;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.match-filters-advanced > summary::-webkit-details-marker {
  display: none;
}

.match-filters-advanced > summary::after {
  content: "+";
  color: #d9ac58;
  font-size: 1rem;
}

.match-filters-advanced[open] > summary::after {
  content: "−";
}

.match-filters-advanced > summary small {
  margin-left: auto;
  color: rgba(238, 227, 203, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
}

.match-filters-advanced-body {
  padding: 0 0.9rem 0.9rem;
}

.recent-games-analysis-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem;
  border-left: 2px solid rgba(218, 172, 87, 0.55);
  background: rgba(183, 130, 50, 0.08);
  color: rgba(242, 224, 185, 0.72);
  font-size: 0.72rem;
  line-height: 1.45;
}

.recent-games-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(226, 193, 122, 0.16);
  background: #0c1929;
}

.recent-games-filter-actions button,
.recent-games-filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(230, 195, 123, 0.28);
  border-radius: 0.28rem;
  background: rgba(9, 18, 32, 0.84);
  color: #f6e8c7;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.recent-games-filter-actions button {
  background: linear-gradient(180deg, #f0c778, #c89046);
  color: #29160a;
}

.recent-games-filter-actions img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

/* Compact, right-aligned action row instead of two full-width halves. */
.match-filters-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.match-filters-actions button,
.match-filters-actions a {
  min-height: 2.15rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.66rem;
}

@media (max-width: 640px) {
  .match-filters-actions {
    flex-wrap: wrap;
  }

  .match-filters-actions button,
  .match-filters-actions a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.recent-games-filter-note {
  margin: 0.7rem 0 0;
  color: rgba(238, 227, 203, 0.56);
  font-size: 0.72rem;
}

.recent-games-sort-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-games-sort-form label {
  color: rgba(240, 210, 145, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recent-games-sort-form select,
.recent-games-sort-form button {
  min-height: 2.45rem;
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(230, 195, 123, 0.24);
  border-radius: 0.28rem;
  background: rgba(3, 10, 18, 0.86);
  color: #f5dfb0;
  font: inherit;
  font-size: 0.78rem;
}

.recent-games-panel .leaderboards-pagination .leaderboards-secondary-button {
  border-radius: 0.28rem;
}

.match-filters-page-jump {
  margin: 0;
}

.match-filters-page-jump .leaderboards-field {
  min-width: 4.5rem;
  gap: 0.2rem;
}

.match-filters-page-jump .leaderboards-field span {
  font-size: 0.62rem;
}

.match-filters-page-jump select {
  min-height: 2.15rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
}

.match-filters-page-jump noscript button {
  margin-left: 0.4rem;
}

.recent-games-summary {
  padding: 1.2rem;
  border: 1px solid rgba(226, 193, 122, 0.2);
  border-radius: 0.35rem;
  background: rgba(5, 13, 24, 0.68);
}

.recent-games-summary span,
.recent-games-summary strong {
  display: block;
}

.recent-games-summary span,
.replay-detail-awaiting,
.replay-detail-player-identity span,
.replay-detail-parser-state {
  color: rgba(238, 227, 203, 0.65);
}

.recent-games-summary strong {
  margin-top: 0.3rem;
  color: #f8e3b4;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
}

.recent-games-panel,
.replay-detail-section {
  margin-top: 1.2rem;
  padding: 1.35rem;
}

.replay-detail-map-hero,
.replay-detail-player-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.replay-detail-map-hero > img {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(226, 193, 122, 0.22);
  border-radius: 0.65rem;
  object-fit: cover;
}

.replay-detail-map-hero > div {
  min-width: 0;
}

.recent-game-player-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f2e7cf;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-game-player-link:hover,
.recent-game-player-link:focus-visible {
  color: #ffe2a3;
  text-decoration: underline;
}

.replay-detail-team-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.replay-detail-team {
  min-width: 0;
  border-left: 2px solid rgba(226, 193, 122, 0.28);
  border-radius: 0 0.55rem 0.55rem 0;
  padding: 0.55rem 0.6rem 0.6rem 0.75rem;
  background: rgba(8, 18, 31, 0.4);
}

.replay-detail-team > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(238, 227, 203, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-detail-team-win > header strong {
  color: #9bdca8;
}

.replay-detail-team-loss > header strong {
  color: #e69a91;
}

.replay-detail-player-list,
.replay-detail-unit-list,
.replay-detail-timeline,
.replay-detail-strategy-list {
  display: grid;
  gap: 0.45rem;
}

.replay-detail-player-identity img {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 193, 122, 0.2);
  border-radius: 0.28rem;
  object-fit: cover;
}

.replay-detail-actions {
  display: grid;
  gap: 0.5rem;
  align-content: center;
}

.recent-game-strategy-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.recent-game-strategy-tags > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(207, 165, 82, 0.25);
  border-radius: 999px;
  background: rgba(177, 119, 37, 0.08);
  color: rgba(238, 227, 203, 0.72);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.recent-game-strategy-tags > .recent-game-signal-analysis {
  border-color: rgba(119, 206, 140, 0.36);
  background: rgba(55, 130, 77, 0.14);
  color: #a9e2b4;
}

.recent-game-signal-analysis::before {
  content: "✓";
  margin-right: 0.3rem;
}

.recent-games-table-wrap {
  margin-top: 0.85rem;
}

.recent-games-table th:nth-child(1),
.recent-games-table td:nth-child(1) {
  width: 10rem;
}

.recent-games-table th:nth-child(2),
.recent-games-table td:nth-child(2) {
  width: 16rem;
}

.recent-games-table th:nth-child(4),
.recent-games-table td:nth-child(4) {
  width: 6.5rem;
}

.recent-games-map-cell {
  gap: 0.8rem;
}

.recent-games-map-cell picture {
  display: block;
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
}

.recent-games-map-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(7, 18, 30, 0.65);
  border-radius: 0.45rem;
}

.recent-games-team-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr);
  gap: 2.8rem;
  align-items: stretch;
  min-width: 24rem;
  max-width: 42rem;
  margin-inline: auto;
}

.recent-games-team-side {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
}

.recent-games-team-side header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.35rem;
  color: rgba(240, 231, 214, 0.64);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-games-team-side header span,
.recent-games-team-side header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-games-team-side header strong {
  color: #f5d58d;
  font-size: 0.62rem;
}

.recent-games-team-side.is-winner header strong {
  color: #9fe4b4;
}

.recent-games-team-side.is-loser header strong {
  color: #eaa0a0;
}

.recent-games-team-roster {
  display: grid;
  gap: 0.35rem;
}

.recent-games-team-side:first-child .recent-games-team-roster {
  justify-items: end;
}

.recent-games-team-side:first-child .player-stats-match-token-info {
  align-items: flex-end;
  text-align: right;
}

.recent-games-team-side:last-child .recent-games-team-roster {
  justify-items: start;
}

.recent-games-team-side:last-child .player-stats-match-token-info {
  align-items: flex-start;
  text-align: left;
}

.recent-games-team-side .player-stats-match-token {
  max-width: 100%;
}

.recent-games-team-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0.35rem 0.45rem rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.recent-games-team-vs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recent-games-multi-team-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.45rem;
  max-width: 42rem;
  max-height: 13rem;
  min-width: 24rem;
  margin-inline: auto;
  overflow: auto;
  padding-right: 0.2rem;
}

.recent-games-multi-team {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.45rem;
  background: rgba(11, 28, 45, 0.44);
  border: 1px solid rgba(228, 197, 125, 0.16);
  border-radius: 0.45rem;
}

.recent-games-multi-team header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: rgba(240, 231, 214, 0.64);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-games-multi-team header span,
.recent-games-multi-team header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-games-multi-team header strong {
  color: #f5d58d;
}

.recent-games-multi-team.is-winner header strong {
  color: #9fe4b4;
}

.recent-games-multi-team.is-loser header strong {
  color: #eaa0a0;
}

.recent-games-team-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2rem;
  min-height: 1.35rem;
  padding: 0.1rem 0.45rem;
  color: rgba(240, 231, 214, 0.74);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.recent-games-matchup-grid {
  display: grid;
  min-width: 16rem;
  max-width: 34rem;
  margin-inline: auto;
}

.recent-games-matchup-grid .player-stats-matchup-teams {
  width: 100%;
  padding-inline: 0.5rem;
}

.recent-games-matchup-grid .player-stats-matchup-row {
  gap: 4rem;
}

.recent-games-matchup-grid .player-stats-match-token-info {
  max-width: 10rem;
}

.recent-games-matchup-grid .player-stats-matchup-row > div:last-child .player-stats-match-token-result {
  order: 1;
}

/* The global matchup column is much wider than the player-history one, so
   pull each portrait to the inner (VS) edge and let the names extend
   outward. That keeps the VS icon centered in the column with the two
   names balanced to either side, instead of a compact cluster floating in
   dead space. Scoped to the global table so the player-history grid is
   untouched. */
.recent-games-matchup-grid .player-stats-matchup-row > div:first-child .player-stats-match-token > img {
  order: 1;
}

.recent-games-matchup-grid .player-stats-match-token-info span,
.recent-games-matchup-grid .player-stats-match-token-info a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.recent-games-table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-games-table-button {
  min-height: 2.15rem;
  padding: 0.48rem 0.85rem;
  font-size: 0.66rem;
  white-space: nowrap;
}

.recent-games-table-signals {
  margin-top: 0.4rem;
}

.recent-games-result-pills {
  display: grid;
  gap: 0.2rem;
}

.replay-detail-actions .leaderboards-primary-button,
.replay-detail-actions .leaderboards-secondary-button {
  justify-content: center;
}

.replay-detail-parser-state {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.replay-detail-map-hero > img {
  width: 7rem;
  height: 7rem;
}

.replay-detail-map-hero h1 {
  margin: 0.18rem 0;
}

.replay-detail-fact-grid,
.replay-detail-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.replay-detail-fact-grid article,
.replay-detail-timing-grid article {
  padding: 0.7rem;
  border: 1px solid rgba(226, 193, 122, 0.14);
  border-radius: 0.25rem;
  background: rgba(5, 13, 24, 0.52);
}

.replay-detail-fact-grid span,
.replay-detail-timing-grid span {
  display: block;
  color: rgba(238, 227, 203, 0.62);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.replay-detail-fact-grid strong,
.replay-detail-timing-grid strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.replay-detail-team {
  padding: 0.9rem;
  border: 1px solid rgba(226, 193, 122, 0.16);
  border-left-width: 3px;
  border-radius: 0.3rem;
  background: rgba(5, 13, 24, 0.48);
}

.replay-detail-player {
  padding: 0.75rem;
  border-top: 1px solid rgba(226, 193, 122, 0.12);
}

.replay-detail-player:first-child {
  border-top: 0;
}

.replay-detail-player-identity div > strong,
.replay-detail-player-identity div > span {
  display: block;
}

.replay-detail-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  color: rgba(242, 232, 210, 0.82);
  font-size: 0.82rem;
}

.replay-detail-minor-gods,
.replay-detail-awaiting {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}

.replay-detail-unit-list,
.replay-detail-timeline {
  margin-top: 0.65rem;
}

.replay-detail-unit-list span,
.replay-detail-timeline span {
  padding: 0.4rem 0.55rem;
  border-left: 2px solid rgba(244, 196, 103, 0.42);
  background: rgba(8, 18, 31, 0.55);
  font-size: 0.78rem;
}

.replay-detail-strategy-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.replay-detail-strategy-list article {
  padding: 0.8rem;
  border-left: 2px solid rgba(244, 196, 103, 0.45);
  background: rgba(5, 13, 24, 0.52);
}

.replay-detail-strategy-list article > strong,
.replay-detail-strategy-list article > span,
.replay-detail-strategy-list article > small {
  display: block;
}

@media (max-width: 940px) {
  .leaderboards-hero,
  .leaderboards-profile-grid,
  .leaderboards-search-grid {
    grid-template-columns: 1fr;
  }

  .recent-games-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-games-player-search {
    grid-template-columns: 1fr;
  }

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

  .recent-games-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .stats-placeholder-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .replay-player-grid {
    grid-template-columns: 1fr;
  }

  .player-stats-banner {
    align-items: flex-start;
  }

  .player-stats-story-strip,
  .player-stats-verdict-evidence,
  .player-stats-icon-list,
  .clan-detail-summary-grid,
  .replay-detail-team-board,
  .replay-detail-strategy-grid,
  .replay-detail-strategy-list,
  .player-stats-match-hero,
  .player-stats-modal-summary,
  .player-stats-modal-kv,
  .player-stats-match-board,
  .player-stats-report-grid {
    grid-template-columns: 1fr;
  }

  .player-stats-match-board-vs {
    justify-self: center;
    width: 2.6rem;
    height: 2.6rem;
  }

  .replay-detail-timing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .leaderboards-shell {
    width: min(100% - 1rem, 1180px);
  }

  .recent-games-hero,
  .match-filters-grid {
    grid-template-columns: 1fr;
  }

  .recent-games-hero {
    gap: 0.85rem;
    padding: 1rem;
  }

  .recent-games-hero .leaderboards-hero-copy h1 {
    font-size: clamp(1.75rem, 10vw, 2.35rem);
  }

  .recent-games-hero .leaderboards-hero-copy p:last-child {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .recent-games-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.18rem 0.65rem;
    align-items: center;
    padding: 0.8rem;
  }

  .recent-games-summary strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
  }

  .recent-games-summary p {
    margin: 0;
    font-size: 0.72rem;
  }

  .recent-games-player-search {
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .recent-games-player-search label strong {
    font-size: 0.9rem;
  }

  .recent-games-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-filters-heading,
  .recent-games-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-games-sort-form {
    width: 100%;
  }

  .recent-games-sort-form select {
    flex: 1;
    min-width: 0;
  }

  .recent-games-filter-actions,
  .recent-games-filter-actions button,
  .recent-games-filter-actions a {
    width: 100%;
  }

  .recent-games-panel {
    padding: 0.72rem;
  }

  .recent-games-team-board {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-width: 14rem;
    max-width: none;
    margin-inline: 0;
  }

  .recent-games-team-vs {
    display: none;
  }

  .recent-games-multi-team-board {
    grid-template-columns: 1fr;
    min-width: 14rem;
    max-width: none;
    margin-inline: 0;
  }

  .recent-games-team-side:first-child .recent-games-team-roster,
  .recent-games-team-side:last-child .recent-games-team-roster {
    justify-items: start;
  }

  .recent-games-team-side:first-child .player-stats-match-token-info,
  .recent-games-team-side:last-child .player-stats-match-token-info {
    align-items: flex-start;
    text-align: left;
  }

  .leaderboards-hero,
  .major-god-hero,
  .leaderboards-browse-panel,
  .leaderboards-profile-overview,
  .leaderboards-profile-gods,
  .leaderboards-profile-maps,
  .leaderboards-profile-matches {
    padding: 1rem;
  }

  .leaderboards-table-wrap-flush {
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .leaderboards-stat-grid {
    grid-template-columns: 1fr;
  }

  .stats-placeholder-stat-grid {
    grid-template-columns: 1fr;
  }

  .leaderboards-primary-button,
  .leaderboards-secondary-button {
    flex: 1 1 0;
  }

  .player-stats-identity {
    align-items: flex-start;
  }

  .player-stats-avatar {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.08rem;
  }

  .player-stats-story-strip {
    margin-top: 0.8rem;
  }

  .replay-detail-section {
    padding: 1rem;
  }

  .replay-detail-timing-grid {
    grid-template-columns: 1fr;
  }

  .replay-detail-fact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboards-primary-button,
  .leaderboards-secondary-button,
  .leaderboards-ghost-button,
  .leaderboards-queue-chip,
  .leaderboards-field input,
  .leaderboards-field select {
    transition: none !important;
  }
}

/* Shared Stats visual system. */
.leaderboards-page .leaderboards-shell {
  width: min(1240px, calc(100% - 2rem));
}

.leaderboards-page .leaderboards-subnav {
  align-items: stretch;
  margin-top: 0.9rem;
  border-color: rgba(220, 188, 117, 0.2);
  border-radius: 0.35rem 0.35rem 0 0;
  background: rgba(4, 11, 19, 0.84);
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.16);
  scrollbar-width: thin;
}

.leaderboards-page .leaderboards-subnav a {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border-right-color: rgba(220, 188, 117, 0.13);
  color: rgba(239, 228, 203, 0.68);
  letter-spacing: 0.065em;
}

.leaderboards-page .leaderboards-subnav a:hover,
.leaderboards-page .leaderboards-subnav a:focus-visible {
  background: rgba(211, 165, 78, 0.09);
  color: #f5ddaa;
}

.leaderboards-page .leaderboards-subnav a.is-active {
  background:
    linear-gradient(180deg, rgba(228, 184, 96, 0.16), rgba(228, 184, 96, 0.035)),
    rgba(14, 26, 38, 0.94);
  color: #ffe8af;
  text-shadow: 0 0 1rem rgba(230, 187, 99, 0.25);
}

.leaderboards-page .leaderboards-subnav a.is-active::after {
  right: 0;
  left: 0;
  height: 0.18rem;
  background: linear-gradient(90deg, transparent, #e8bd68 18% 82%, transparent);
}

.leaderboards-page .leaderboards-panel {
  border-color: rgba(220, 188, 117, 0.2);
  border-radius: 0.55rem;
  background:
    linear-gradient(180deg, rgba(255, 237, 194, 0.045), rgba(113, 158, 195, 0.018)),
    rgba(10, 22, 34, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.035),
    0 1rem 2.7rem rgba(0, 0, 0, 0.23);
}

.leaderboards-page .leaderboards-panel::before {
  opacity: 0.52;
}

.leaderboards-page .leaderboards-hero,
.leaderboards-page .stats-overview-hero,
.leaderboards-page .recent-games-hero {
  gap: 1.25rem;
  margin-top: 0.9rem;
  padding: 1.35rem;
}

.leaderboards-page .leaderboards-hero-copy h1 {
  color: #f8e7bd;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

.leaderboards-page .leaderboards-hero-copy p:last-child {
  margin-top: 0.7rem;
  line-height: 1.58;
}

.leaderboards-page .leaderboards-kicker {
  margin-bottom: 0.42rem;
  color: #d7b368;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.leaderboards-page .leaderboards-search-card {
  gap: 0.78rem;
  padding: 1rem;
  border-radius: 0.42rem;
  border-color: rgba(224, 192, 123, 0.2);
  background: rgba(3, 10, 18, 0.67);
}

.leaderboards-page .leaderboards-search-head {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(224, 192, 123, 0.14);
}

.leaderboards-page .leaderboards-search-head h2,
.leaderboards-page .leaderboards-section-head h2,
.leaderboards-page .stats-overview-section-head h2,
.leaderboards-page .recent-games-results-heading h2,
.leaderboards-page .match-filters-heading h2 {
  color: #eccb83;
}

.leaderboards-page .leaderboards-field {
  gap: 0.34rem;
}

.leaderboards-page .leaderboards-field span {
  color: rgba(239, 220, 180, 0.76);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.leaderboards-page .leaderboards-field input,
.leaderboards-page .leaderboards-field select {
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border-color: rgba(225, 191, 120, 0.21);
  border-radius: 0.3rem;
  background: rgba(2, 8, 15, 0.86);
}

.leaderboards-page .leaderboards-primary-button,
.leaderboards-page .leaderboards-secondary-button,
.leaderboards-page .leaderboards-ghost-button,
.leaderboards-page .leaderboards-queue-chip,
.leaderboards-page .leaderboards-result-pill,
.leaderboards-page .replay-detail-evidence-list span {
  border-radius: 0.3rem;
}

.leaderboards-page .leaderboards-browse-panel,
.leaderboards-page .leaderboards-search-results {
  padding: 1rem;
}

.leaderboards-page .leaderboards-section-head,
.leaderboards-page .leaderboards-browse-panel > .leaderboards-section-head:first-child,
.leaderboards-page .leaderboards-search-results > .leaderboards-section-head:first-child,
.leaderboards-page .leaderboards-profile-overview > .leaderboards-section-head:first-child,
.leaderboards-page .leaderboards-profile-gods > .leaderboards-section-head:first-child,
.leaderboards-page .leaderboards-profile-maps > .leaderboards-section-head:first-child,
.leaderboards-page .leaderboards-profile-matches > .leaderboards-section-head:first-child {
  margin: -1rem -1rem 0.8rem;
  padding: 0.82rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(223, 188, 111, 0.2);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(218, 168, 77, 0.16), rgba(218, 168, 77, 0.025) 65%),
    rgba(6, 14, 23, 0.72);
  box-shadow: none;
}

.leaderboards-page .leaderboards-table-wrap {
  margin-top: 0.75rem;
  border-color: rgba(219, 188, 118, 0.16);
  border-radius: 0.28rem;
  background: rgba(2, 8, 15, 0.52);
}

.leaderboards-page .leaderboards-table-wrap-flush {
  margin-right: -1rem;
  margin-bottom: -1rem;
  margin-left: -1rem;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.leaderboards-page .leaderboards-table {
  border-collapse: collapse;
}

.leaderboards-page .leaderboards-table th,
.leaderboards-page .leaderboards-table td {
  height: 3.15rem;
  padding: 0.68rem 0.72rem;
}

.leaderboards-page .leaderboards-table th {
  border-bottom: 2px solid rgba(219, 174, 84, 0.62);
  background:
    linear-gradient(180deg, rgba(224, 180, 91, 0.1), transparent),
    #101b27;
  color: #e8c87f;
  font-size: 0.7rem;
  letter-spacing: 0.075em;
}

.leaderboards-page .leaderboards-sort-link:hover,
.leaderboards-page .leaderboards-sort-link:focus-visible,
.leaderboards-page .leaderboards-sort-link.is-active,
.leaderboards-page .leaderboards-sort-button:hover,
.leaderboards-page .leaderboards-sort-button:focus-visible,
.leaderboards-page .leaderboards-sort-button.is-active {
  color: #fff0bd;
}

.leaderboards-page .leaderboards-table td {
  color: rgba(240, 231, 214, 0.88);
  font-size: 0.87rem;
}

.leaderboards-page .leaderboards-table tbody tr:nth-child(even) {
  background: rgba(134, 168, 196, 0.025);
}

.leaderboards-page .leaderboards-table tbody tr:hover {
  background: rgba(231, 187, 99, 0.075);
}

.leaderboards-page .stats-overview-card,
.leaderboards-page .leaderboards-list-card,
.leaderboards-page .leaderboards-stat-card {
  border-radius: 0.38rem;
}

.leaderboards-page .stats-overview-card {
  padding: 0.95rem;
}

.leaderboards-page .stats-overview-section,
.leaderboards-page .recent-games-panel,
.leaderboards-page .match-filters {
  padding: 1rem;
}

.leaderboards-page .stats-overview-section-head,
.leaderboards-page .recent-games-results-heading,
.leaderboards-page .match-filters-heading {
  min-height: 3.1rem;
  padding-bottom: 0.65rem;
  border-bottom-color: rgba(223, 188, 111, 0.22);
}

.leaderboards-page .stats-overview-player-search > div {
  align-items: stretch;
}

.leaderboards-page .stats-overview-action,
.leaderboards-page .recent-games-filter-actions button,
.leaderboards-page .recent-games-filter-actions a {
  border-radius: 0.3rem;
}

@media (max-width: 720px) {
  .leaderboards-page .leaderboards-shell {
    width: min(100% - 0.75rem, 1240px);
  }

  .leaderboards-page .leaderboards-subnav {
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
  }

  .leaderboards-page .leaderboards-subnav a {
    min-height: 2.8rem;
    scroll-snap-align: start;
  }

  .leaderboards-page .leaderboards-hero,
  .leaderboards-page .stats-overview-hero,
  .leaderboards-page .recent-games-hero {
    padding: 1rem;
  }

  .leaderboards-page .recent-games-hero .leaderboards-hero-copy h1 {
    font-size: clamp(1.75rem, 10vw, 2.35rem);
  }

  .leaderboards-page .recent-games-hero .leaderboards-hero-copy p:last-child {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .leaderboards-page .recent-games-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.18rem 0.65rem;
    align-items: center;
    padding: 0.8rem;
  }

  .leaderboards-page .recent-games-summary strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
  }

  .leaderboards-page .recent-games-summary p {
    margin: 0;
    font-size: 0.72rem;
  }

  .leaderboards-page .match-filters {
    padding: 0.72rem;
  }

  .leaderboards-page .recent-games-panel {
    padding: 0.72rem;
  }

  .leaderboards-page .leaderboards-search-actions > *,
  .leaderboards-page .stats-overview-player-search button {
    min-height: 2.9rem;
  }

  .leaderboards-page .leaderboards-table {
    min-width: 42rem;
  }

  .leaderboards-page .stats-overview-table {
    min-width: 0;
  }
}

/* Audited major-god stats and matchup matrix. */
.god-stats-shell,
.major-god-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.god-stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 0;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(230, 181, 82, 0.13), transparent 18rem),
    linear-gradient(125deg, rgba(23, 49, 70, 0.94), rgba(7, 17, 29, 0.98));
}

.god-stats-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.god-stats-hero-portraits-label {
  margin: 0 0 0.4rem;
  color: rgba(238, 227, 203, 0.58);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.god-stats-hero-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
}

.god-stats-hero-god {
  display: grid;
  gap: 0.25rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.god-stats-hero-god img {
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(231, 194, 111, 0.22);
  border-bottom: 3px solid rgba(222, 176, 82, 0.54);
  background: rgba(3, 9, 17, 0.7);
}

.god-stats-hero-god strong {
  font-size: 0.72rem;
  color: #f7dfaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.god-stats-hero-god span {
  font-size: 0.72rem;
  font-weight: 850;
  color: #efd08b;
}

.god-stats-hero-empty {
  grid-column: 1 / -1;
  color: rgba(238, 227, 203, 0.58);
  font-size: 0.78rem;
}

.god-stats-filter-bar,
.major-god-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 1rem;
}

.major-god-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}

.god-stats-filter-bar .leaderboards-primary-button,
.major-god-filter-grid .leaderboards-primary-button {
  min-height: 2.8rem;
}

.god-stats-context {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.god-stats-context article {
  display: grid;
  gap: 0.18rem;
  min-height: 6.4rem;
  padding: 0.85rem;
  border: 1px solid rgba(220, 188, 117, 0.18);
  border-top: 2px solid rgba(226, 180, 88, 0.62);
  background: linear-gradient(180deg, rgba(20, 42, 60, 0.96), rgba(8, 20, 32, 0.96));
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.18);
}

.god-stats-context span,
.god-stats-context small {
  color: rgba(238, 227, 203, 0.58);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.god-stats-context strong {
  align-self: end;
  color: #f3d28d;
  font-family: var(--site-font-display);
  font-size: 1.55rem;
}

.god-stats-trends {
  padding: 1rem;
}

.god-stats-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.god-stats-trend-grid > div {
  padding: 0.75rem;
  border-left: 2px solid rgba(224, 180, 87, 0.44);
  background: rgba(3, 11, 20, 0.52);
}

.god-stats-trend-grid h3 {
  margin: 0 0 0.55rem;
  color: #e8c77f;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.god-stats-trend-grid article {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(223, 190, 118, 0.1);
}

.god-stats-trend-grid article img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
}

.god-stats-trend-grid article strong,
.god-stats-trend-grid article small {
  display: block;
}

.god-stats-trend-grid article strong { color: #f7dfaa; }
.god-stats-trend-grid article small,
.god-stats-trend-grid p { color: rgba(238, 227, 203, 0.58); font-size: 0.72rem; }
.god-stats-trend-grid article em { color: #efd08b; font-size: 1.05rem; font-style: normal; font-weight: 850; }

.major-god-hero-stats {
  align-self: stretch;
}

.major-god-table {
  min-width: 72rem;
}

.major-god-table .major-god-cell strong {
  color: inherit;
}

.major-god-recent-matches {
  margin-top: 0;
}

.god-matchup-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(220, 188, 117, 0.16);
  background: rgba(2, 8, 15, 0.74);
  scrollbar-color: rgba(221, 177, 87, 0.55) rgba(3, 9, 16, 0.7);
}

.god-matchup-scroll:focus-visible {
  outline: 2px solid rgba(235, 194, 102, 0.68);
  outline-offset: 2px;
}

.god-matchup-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
}

.god-matchup-table th,
.god-matchup-table td {
  width: 3.1rem;
  min-width: 3.1rem;
  height: 3.1rem;
  padding: 0.18rem;
  text-align: center;
}

.god-matchup-table-pantheon th,
.god-matchup-table-pantheon td {
  width: 4.6rem;
  min-width: 4.6rem;
}

.god-matchup-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 5.6rem;
  background: #101d2a;
  color: rgba(241, 220, 176, 0.72);
  font-size: 0.54rem;
}

.god-matchup-table thead th img,
.god-matchup-table tbody th img {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0 auto 0.2rem;
  object-fit: cover;
}

.god-matchup-table thead th span,
.god-matchup-table tbody th span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.god-matchup-table .god-matchup-corner {
  left: 0;
  z-index: 5;
  width: 7.5rem;
  min-width: 7.5rem;
}

.god-matchup-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 7.5rem;
  min-width: 7.5rem;
  background: #101d2a;
  color: #edcf8c;
  font-size: 0.65rem;
}

.god-matchup-cell {
  border: 1px solid rgba(221, 194, 135, 0.09);
  color: #f8efd9;
  background: rgba(69, 83, 92, 0.48);
  transition: filter 120ms ease, outline-color 120ms ease, transform 120ms ease;
}

.god-matchup-cell strong,
.god-matchup-cell small { display: block; }
.god-matchup-cell strong { font-size: 0.78rem; }
.god-matchup-cell small { margin-top: 0.12rem; color: rgba(255, 246, 221, 0.57); font-size: 0.55rem; }
.god-matchup-cell.is-positive { background: rgba(40, 119, 83, 0.64); }
.god-matchup-cell.is-positive-strong { background: rgba(27, 142, 88, 0.76); }
.god-matchup-cell.is-negative { background: rgba(143, 65, 65, 0.62); }
.god-matchup-cell.is-negative-strong { background: rgba(159, 45, 54, 0.74); }
.god-matchup-cell.is-neutral { background: rgba(113, 105, 79, 0.62); }
.god-matchup-cell.is-empty { color: rgba(239, 228, 203, 0.28); background: rgba(27, 39, 49, 0.54); }
.god-matchup-cell.is-low-sample { opacity: 0.48; background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255, 255, 255, 0.045) 5px 7px); }
.god-matchup-cell:hover,
.god-matchup-cell:focus-visible { z-index: 4; filter: brightness(1.22); outline: 2px solid #efcb7c; outline-offset: -2px; opacity: 1; transform: scale(1.04); }

/* Backwards-"L" highlight on matchup hover: the row arm runs from the row
   label to the hovered cell, and the column arm runs from the column label
   down to the hovered cell -- nothing past the cursor lights up. */
.god-matchup-table .is-row-active,
.god-matchup-table .is-col-active {
  box-shadow: inset 0 0 0 999px rgba(239, 203, 124, 0.1);
}

.god-matchup-table tbody th.is-row-active,
.god-matchup-table thead th.is-col-active {
  z-index: 6;
  color: #fff2ce;
  background: #1c3145;
}

/* Wider container for the matchup section only -- other panels (hero,
   filters, performance tables) keep the shell's normal content width. */
.god-matchup-panel-wide {
  width: min(1560px, calc(100vw - 2rem));
  margin-left: 50%;
  transform: translateX(-50%);
}

.god-matchup-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.god-matchup-tab {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(220, 188, 117, 0.24);
  border-radius: 0.6rem;
  background: rgba(6, 14, 25, 0.72);
  color: rgba(238, 227, 203, 0.68);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.god-matchup-tab:hover {
  color: #f7dfaa;
}

.god-matchup-tab.is-active {
  border-color: rgba(226, 180, 88, 0.62);
  background: rgba(226, 180, 88, 0.14);
  color: #f3d28d;
}

.stat-indicator {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

.stat-indicator-up { color: #4fbf85; }
.stat-indicator-down { color: #d1685f; }
.stat-indicator-popular { color: #8fb8e8; }
.stat-indicator-rare { color: rgba(238, 227, 203, 0.45); }

.god-matchup-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.god-matchup-lists > div {
  padding: 0.75rem;
  border-left: 2px solid rgba(224, 180, 87, 0.44);
  background: rgba(3, 11, 20, 0.52);
}

.god-matchup-lists h3 {
  margin: 0 0 0.55rem;
  color: #e8c77f;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.god-matchup-lists article {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(223, 190, 118, 0.1);
}

.god-matchup-lists article img { width: 2.35rem; height: 2.35rem; object-fit: cover; }
.god-matchup-lists article strong { display: block; color: #f7dfaa; }
.god-matchup-lists article small { display: block; color: rgba(238, 227, 203, 0.58); font-size: 0.72rem; }
.god-matchup-lists article em { color: #efd08b; font-size: 1.05rem; font-style: normal; font-weight: 850; }
.god-matchup-lists p { color: rgba(238, 227, 203, 0.58); font-size: 0.72rem; }

@media (max-width: 720px) {
  .god-matchup-lists { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .major-god-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .god-stats-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .god-stats-context { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .god-stats-hero { grid-template-columns: 1fr; padding: 1rem; }
  .god-stats-hero-icons { max-width: 24rem; }
  .god-stats-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .god-stats-trend-grid { grid-template-columns: 1fr; }
  .major-god-filter-grid,
  .god-stats-filter-bar { grid-template-columns: 1fr 1fr; }
  .major-god-filter-grid .leaderboards-primary-button,
  .god-stats-filter-bar .leaderboards-primary-button { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .god-stats-context,
  .major-god-filter-grid,
  .god-stats-filter-bar { grid-template-columns: 1fr; }
  .god-stats-hero-links > * { width: 100%; }
}
