.xp-leagues-page .support-main {
  padding-bottom: 18px;
}

.xp-hero {
  padding: 54px 0 34px;
}

.xp-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 64px;
}

.xp-hero__copy {
  max-width: 720px;
}

.xp-hero__copy h1 {
  max-width: 680px;
  margin: 20px 0 18px;
  color: #102033;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.xp-hero__copy p {
  max-width: 650px;
  margin: 0;
  color: #5c6f85;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
}

.xp-hero__scorecard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 214px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(145deg, #0968dd 0%, #234fc1 56%, #4634a8 100%);
  box-shadow: 0 28px 70px rgba(26, 74, 172, 0.28);
  color: #fff;
}

.xp-hero__scorecard::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -100px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.xp-hero__shield {
  display: grid;
  place-items: center;
  width: 116px;
  height: 132px;
  flex: 0 0 auto;
  clip-path: polygon(50% 0, 92% 17%, 86% 70%, 50% 100%, 14% 70%, 8% 17%);
  background: linear-gradient(150deg, #fff7b9 0%, #ffd45f 42%, #f39b31 100%);
  filter: drop-shadow(0 14px 18px rgba(6, 28, 75, 0.28));
}

.xp-hero__shield span {
  color: #744008;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.xp-hero__scorecopy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.xp-hero__scorecopy span,
.xp-hero__scorecopy small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.xp-hero__scorecopy strong {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.xp-section {
  padding: 20px 0;
}

.xp-section--last {
  padding-bottom: 48px;
}

.xp-definition-grid,
.xp-rules-grid,
.xp-bottom-grid {
  display: grid;
  gap: 22px;
}

.xp-definition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xp-definition-card,
.xp-rules-card,
.xp-profile-card,
.xp-summary-card {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 46px rgba(16, 32, 51, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.xp-definition-card {
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
}

.xp-definition-card__mark {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 10px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: rgba(23, 118, 230, 0.11);
  color: #0d4ea6;
  font-size: 20px;
  font-weight: 900;
}

.xp-definition-card--weekly .xp-definition-card__mark {
  background: rgba(243, 184, 102, 0.2);
  color: #9a580b;
}

.xp-definition-card--level .xp-definition-card__mark {
  background: rgba(93, 72, 190, 0.12);
  color: #513da5;
}

.xp-definition-card h2,
.xp-rules-card h2,
.xp-profile-card h2,
.xp-summary-card h2 {
  margin: 0 0 10px;
  color: #102033;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.xp-definition-card p,
.xp-rules-card > p,
.xp-profile-card p,
.xp-summary-card p {
  margin: 0;
  color: #5c6f85;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

.xp-rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.xp-rules-card {
  padding: 34px;
  border-radius: 34px;
}

.xp-rules-card__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.xp-rules-card__number {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: linear-gradient(145deg, #1776e6, #0d4ea6);
  box-shadow: 0 12px 25px rgba(23, 118, 230, 0.22);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.xp-rules-card--league .xp-rules-card__number {
  background: linear-gradient(145deg, #745ac7, #49349b);
  box-shadow: 0 12px 25px rgba(83, 57, 168, 0.22);
}

.xp-rules-card__kicker {
  display: block;
  margin-bottom: 4px;
  color: #1776e6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp-rules-card--league .xp-rules-card__kicker {
  color: #6550b3;
}

.xp-rules-card__heading h2 {
  margin-bottom: 0;
}

.xp-check-list,
.xp-step-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.xp-check-list li,
.xp-step-list li {
  position: relative;
  min-height: 48px;
  padding: 13px 15px 13px 50px;
  border-radius: 16px;
  background: rgba(23, 118, 230, 0.07);
  color: #25374b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.xp-check-list li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1776e6;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.xp-step-list {
  counter-reset: league-step;
}

.xp-step-list li {
  padding-left: 56px;
  background: rgba(93, 72, 190, 0.07);
  counter-increment: league-step;
}

.xp-step-list li::before {
  content: counter(league-step);
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #6550b3;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.xp-note,
.xp-tier-block {
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
}

.xp-note {
  border: 1px solid rgba(243, 184, 102, 0.28);
  background: rgba(243, 184, 102, 0.12);
}

.xp-note strong,
.xp-tier-block strong {
  display: block;
  margin-bottom: 6px;
  color: #102033;
  font-size: 15px;
  font-weight: 900;
}

.xp-note p {
  margin: 0;
  color: #70552c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.xp-tier-block {
  background: #111c2e;
  color: #fff;
}

.xp-tier-block strong {
  color: #fff;
}

.xp-tier-block small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.xp-tier-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin-top: 14px;
}

.xp-tier-track span {
  height: 9px;
  border-radius: 999px;
}

.tier-bronze { background: #a96c46; }
.tier-silver { background: #aeb8c6; }
.tier-gold { background: #f4c94e; }
.tier-sapphire { background: #3b8eea; }
.tier-ruby { background: #e24a59; }
.tier-emerald { background: #38b878; }
.tier-amethyst { background: #9c64d8; }
.tier-pearl { background: #e8e1d6; }
.tier-obsidian { background: #5c6575; }
.tier-diamond { background: #7be7f4; }

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

.xp-profile-card,
.xp-summary-card {
  padding: 34px;
  border-radius: 30px;
}

.xp-summary-card {
  border-color: transparent;
  background: linear-gradient(135deg, #102033, #1d3f67);
}

.xp-summary-card h2,
.xp-summary-card p {
  color: #fff;
}

.xp-summary-card p {
  color: rgba(255, 255, 255, 0.75);
}

.xp-summary-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  margin-top: 22px;
  border-radius: 999px;
  background: #fff;
  color: #14345a;
  font-size: 14px;
  font-weight: 900;
}

.xp-summary-card a:hover,
.xp-summary-card a:focus {
  color: #0d4ea6;
  text-decoration: none;
}

[dir="rtl"] .xp-check-list li,
[dir="rtl"] .xp-step-list li {
  padding-right: 56px;
  padding-left: 15px;
}

[dir="rtl"] .xp-check-list li::before,
[dir="rtl"] .xp-step-list li::before {
  right: 14px;
  left: auto;
}

@media only screen and (max-width: 992px) {
  .xp-hero {
    padding-top: 26px;
  }

  .xp-hero .container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .xp-hero__scorecard {
    max-width: 520px;
  }

  .xp-definition-grid,
  .xp-rules-grid,
  .xp-bottom-grid {
    grid-template-columns: 1fr;
  }

  .xp-definition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 768px) {
  .xp-hero {
    padding: 18px 0 20px;
  }

  .xp-hero__copy h1 {
    margin-top: 16px;
    font-size: 42px;
  }

  .xp-hero__copy p {
    font-size: 16px;
  }

  .xp-hero__scorecard {
    min-height: 172px;
    padding: 24px;
    border-radius: 28px;
  }

  .xp-hero__shield {
    width: 86px;
    height: 100px;
  }

  .xp-hero__shield span {
    font-size: 22px;
  }

  .xp-definition-grid {
    grid-template-columns: 1fr;
  }

  .xp-definition-card {
    min-height: 0;
  }

  .xp-rules-card,
  .xp-profile-card,
  .xp-summary-card {
    padding: 24px;
    border-radius: 26px;
  }
}

@media only screen and (max-width: 480px) {
  .xp-hero__scorecard {
    gap: 16px;
  }

  .xp-hero__scorecopy strong {
    font-size: 34px;
  }

  .xp-hero__scorecopy span,
  .xp-hero__scorecopy small {
    font-size: 10px;
  }

  .xp-rules-card__heading {
    align-items: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  .xp-leagues-page .xp-definition-card,
  .xp-leagues-page .xp-rules-card,
  .xp-leagues-page .xp-profile-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(20, 30, 42, 0.9);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  }

  .xp-leagues-page .xp-definition-card h2,
  .xp-leagues-page .xp-rules-card h2,
  .xp-leagues-page .xp-profile-card h2,
  .xp-leagues-page .xp-note strong {
    color: #f5f8fc !important;
  }

  .xp-leagues-page .xp-definition-card p,
  .xp-leagues-page .xp-rules-card > p,
  .xp-leagues-page .xp-profile-card p {
    color: #aebdcd;
  }

  .xp-leagues-page .xp-check-list li,
  .xp-leagues-page .xp-step-list li {
    color: #dce6ef;
  }

  .xp-leagues-page .xp-check-list li {
    background: rgba(23, 118, 230, 0.12);
  }

  .xp-leagues-page .xp-step-list li {
    background: rgba(126, 102, 214, 0.12);
  }

  .xp-leagues-page .xp-note {
    border-color: rgba(243, 184, 102, 0.2);
    background: rgba(243, 184, 102, 0.09);
  }

  .xp-leagues-page .xp-note p {
    color: #d5bd96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xp-leagues-page * {
    scroll-behavior: auto !important;
  }
}
