.progression-page,
.profile-dashboard-page {
  --evolution-ink: #352854;
  --evolution-muted: #655573;
  --evolution-line: #e8dbf1;
  --evolution-fill: linear-gradient(90deg, #6355a7 15%, #a66a9f 64%, #d58d87);
}

.progression-page {
  min-height: 73vh;
  padding: clamp(24px, 5vw, 58px) 16px clamp(34px, 6vw, 58px);
  color: var(--evolution-ink);
  background:
    radial-gradient(ellipse at top left, #eae3fb, transparent 62%),
    radial-gradient(ellipse at right 24%, #ffe7df, transparent 57%),
    #faf6fc;
}

.progression-shell {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.progression-back {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 10px;
  color: #533d76;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}
.progression-back:hover { text-decoration: underline; text-underline-offset: 3px; }

.progression-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr);
  align-items: center;
  gap: clamp(22px, 5vw, 55px);
  padding: clamp(22px, 5vw, 45px);
  border: 1px solid #ded0e9;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at top right, #ffe2db, transparent 62%),
    linear-gradient(125deg, #ece6fc, #fdf5fc 60%, #fce8e4);
  box-shadow: 0 13px 32px #65578013;
}

.progression-hero-copy h1,
.progression-section-head h2,
.progression-empty h1 {
  margin: 0;
  color: var(--evolution-ink);
  font: 700 clamp(2.05rem, 5vw, 3.5rem)/1.08 Karma, Georgia, serif;
  overflow-wrap: anywhere;
}

.progression-hero-copy p,
.progression-empty p {
  max-width: 52ch;
  margin: 9px 0 0;
  color: var(--evolution-muted);
  line-height: 1.6;
}

.progression-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.progression-hero-actions a,
.progression-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d8c9e6;
  border-radius: 9px;
  color: #4f3970;
  background: #ffffffa6;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.progression-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px 13px;
  padding: clamp(15px, 3vw, 25px);
  border: 1px solid #ffffffa8;
  border-radius: 18px;
  background: #fffcffe8;
  box-shadow: inset 0 0 0 1px #cec1e53b, 0 9px 24px #4d386019;
}

.progression-level-badge {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 78px;
  min-height: 78px;
  padding: 8px 7px;
  border: 1px solid #e3c9eb;
  border-radius: 19px;
  background: linear-gradient(150deg, #dfd9f9, #ffdad2);
  color: #4d3875;
  text-align: center;
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1;
}

.progression-level-badge strong {
  font-size: 2.05rem;
  font-variant-numeric: tabular-nums;
}
.progression-level-badge small { font-size: .72rem; }

.progression-level-info { min-width: 0; }
.progression-level-info :is(strong, small) { display: block; }
.progression-level-info :is(p, h2, h3) { margin: 0; overflow-wrap: anywhere; }
.progression-level-info :is(h2, h3, strong) { color: #513a77; font-weight: 900; }
.progression-level-info :is(p, small) { color: #685879; line-height: 1.5; }
.progression-overview > :is(.progression-progress, .progression-next) { grid-column: 1 / -1; }

.progression-page .progression-progress,
.profile-dashboard-page .player-level progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 99px;
  background: #e9e0f3;
  accent-color: #8062ad;
}

.progression-page .progression-progress::-webkit-progress-bar,
.profile-dashboard-page .player-level progress::-webkit-progress-bar { background: #e9e0f3; border-radius: 99px; }
.progression-page .progression-progress::-webkit-progress-value,
.profile-dashboard-page .player-level progress::-webkit-progress-value { background: var(--evolution-fill); border-radius: 99px; }
.progression-page .progression-progress::-moz-progress-bar,
.profile-dashboard-page .player-level progress::-moz-progress-bar { background: var(--evolution-fill); border-radius: 99px; }

.progression-next {
  margin: 0;
  color: #655577;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.progression-section {
  margin-top: clamp(22px, 4vw, 34px);
}

.progression-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px 12px;
  margin-bottom: 12px;
}

.progression-section-head h2 { font-size: clamp(1.55rem, 3.5vw, 2rem); }
.progression-section-head p { max-width: 65ch; margin: 0; color: var(--evolution-muted); line-height: 1.5; }
.progression-section-head > span {
  padding: 4px 9px;
  border: 1px solid #e0d4ed;
  border-radius: 99px;
  background: #fffaff;
  color: #5e497b;
  font-size: .77rem;
  font-weight: 900;
}

.progression-suggestion {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 7px 14px;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid #dfcce5;
  border-radius: 12px;
  background: linear-gradient(110deg, #eee6fc, #fff0eb);
}
.progression-suggestion :is(strong, small) { display: block; }
.progression-suggestion strong { color: var(--evolution-ink); overflow-wrap: anywhere; }
.progression-suggestion small { color: #69557f; font-weight: 800; }
.progression-suggestion a { padding: 7px 11px; }

.progression-missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr));
  gap: 12px;
}

.progression-mission {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--evolution-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fcf6ff);
  box-shadow: 0 7px 20px #6557800d;
}

.progression-mission-top,
.progression-mission-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
}

.progression-mission-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #ede4fc, #feded5);
  color: #634694;
  font-size: 1.13rem;
  font-weight: 900;
}

.progression-mission-xp {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 99px;
  background: #eee6fb;
  color: #50357a;
  text-align: center;
  font-size: .78rem;
  font-weight: 900;
}

.progression-mission h3 { margin: 0; color: var(--evolution-ink); font-size: 1.03rem; overflow-wrap: anywhere; }
.progression-mission p { flex: 1; margin: 0; color: var(--evolution-muted); font-size: .87rem; line-height: 1.5; }
.progression-mission-foot { color: #655577; font-size: .78rem; font-variant-numeric: tabular-nums; }
.progression-mission-foot a { padding-block: 4px; color: #543b80; font-weight: 900; text-underline-offset: 3px; }
.progression-mission.is-unlocked { border-color: #d9cbe8; background: linear-gradient(145deg, #f9f3ff, #fff9f7); }
.progression-mission.is-unlocked .progression-mission-foot span { color: #4e3974; font-weight: 900; }

.progression-ranks,
.progression-activity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 164px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progression-rank,
.progression-activity li {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--evolution-line);
  border-radius: 11px;
  background: #fffcff;
  color: #5e4e71;
  overflow-wrap: anywhere;
}

.progression-rank.is-unlocked { background: #f4eefa; color: #4d3971; }
.progression-rank.is-current {
  border-color: #b49ad2;
  background: linear-gradient(120deg, #eae0f8, #ffe3dc);
  color: #4b306d;
}
.progression-rank small,
.progression-activity small { color: #685978; font-size: .75rem; }
.progression-rank > span { color: #695978; font-size: .75rem; }
.progression-rank.is-current > span { color: #51357f; font-weight: 900; }
.progression-activity {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.progression-activity li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.progression-activity li > span { color: #7959a7; }
.progression-activity li :is(strong, small) { display: block; }
.progression-activity strong { color: #523b78; font-variant-numeric: tabular-nums; }
.progression-activity b { color: #4e3b73; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.progression-empty {
  padding: clamp(22px, 5vw, 52px);
  border: 1px solid var(--evolution-line);
  border-radius: 18px;
  background: #fffcff;
}
.progression-empty a { margin-top: 12px; }

.profile-dashboard-page .player-level {
  display: grid;
  grid-template-columns: auto minmax(38px, 1fr) auto;
  align-items: center;
  gap: 4px 7px;
  width: min(100%, 250px);
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid #dccce8;
  border-radius: 8px;
  background: linear-gradient(115deg, #f2eafa, #fff3ee);
  color: #4d376f;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.profile-dashboard-page .player-level strong { font-size: .76rem; }
.profile-dashboard-page .player-level p { min-width: 0; margin: 0; }
.profile-dashboard-page .player-level progress { height: 5px; }
.profile-dashboard-page .player-level small { color: #625075; font-size: .68rem; overflow-wrap: anywhere; }
.profile-dashboard-page .player-level:hover,
.profile-dashboard-page .profile-evolution-link:hover { border-color: #ac91c8; }
.profile-dashboard-page .profile-evolution-link {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid #dbcae7;
  border-radius: 8px;
  background: #fcf3fb;
  color: #594079;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 900;
}

@media (max-width: 640px) {
  .progression-hero { grid-template-columns: minmax(0, 1fr); }
  .progression-level-badge { width: 65px; min-height: 65px; border-radius: 15px; }
}

@media (max-width: 400px) {
  .profile-dashboard-page .player-level { grid-template-columns: auto minmax(0, 1fr); }
  .profile-dashboard-page .player-level small { grid-column: 1 / -1; }
}
