.student-league {
  --league-ink: #19243b;
  --league-paper: #f7f5ed;
  box-sizing: border-box;
  background: var(--league-paper);
  color: var(--league-ink);
  padding: 38px 48px 24px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  line-height: 1.25;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}
.progress-tv.leaderboard-tv {
  display: block;
  padding: 0;
  min-height: 100vh;
  background: #f7f5ed;
}
.leaderboard-tv__controls {
  position: absolute;
  right: 48px;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #526176;
}
.leaderboard-tv__controls .btn {
  min-height: 36px;
  font-size: 14px;
  padding: 6px 12px;
}
.leaderboard-tv__controls a {
  color: #526176;
  font-size: 14px;
}
.leaderboard-tv__controls .progress-connection {
  font-size: 14px;
}
.leaderboard-tv .progress-tv__unavailable {
  color: #f6f8fb;
}
.progress-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.progress-mode[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .leaderboard-tv__controls {
    position: static;
    padding: 16px 24px;
    flex-wrap: wrap;
  }
}
.student-league *,
.student-league *::before,
.student-league *::after {
  box-sizing: border-box;
}
.student-league h2,
.student-league h3,
.student-league h4,
.student-league p {
  margin: 0;
}
.league-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.league-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.league-brand {
  background: var(--league-ink);
  color: #fff;
  padding: 7px 11px;
  border-radius: 10px;
  letter-spacing: -0.03em;
}
.student-league .league-title {
  font-size: clamp(36px, 3.6vw, 70px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.12;
  margin: 14px 0 10px;
}
.league-subtitle {
  font-size: clamp(18px, 1.4vw, 28px);
  color: #566077;
}
.league-score-rule {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 16px;
  align-items: center;
  border-left: 2px solid #d5d6d0;
  padding-left: 28px;
}
.league-score-rule strong {
  grid-row: span 2;
  font-size: 58px;
  letter-spacing: -0.06em;
}
.league-score-rule span {
  font-size: 22px;
  font-weight: 750;
}
.league-score-rule small {
  font-size: 19px;
  color: #566077;
}
.league-body {
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  gap: 48px;
  flex: 1;
  min-height: 0;
}
.league-leaders,
.league-standings {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.league-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  margin-bottom: 16px;
}
.league-section-title h3 {
  font-size: 30px;
  letter-spacing: -0.03em;
}
.league-section-title > span {
  font-size: 16px;
  letter-spacing: 0.14em;
  font-weight: 750;
}
.league-section-title .league-leader-summary {
  letter-spacing: normal;
  color: #566077;
  text-align: right;
  margin-left: 12px;
}
.league-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  flex: 1;
}
.league-leader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 140px 140px 26px 26px;
  border: 2px solid var(--league-ink);
  padding: 35px 15px 25px;
  background: #f0cf67;
  color: var(--league-ink);
  text-align: center;
  overflow: hidden;
}
.league-leader--2 {
  background: #b8a7f0;
}
.league-leader--3 {
  background: #9ed9c8;
}
.league-leader--first {
  background: #f0cf67;
}
.league-leader::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #19243b1c;
  border-radius: 50%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.league-rank {
  border: 2px solid var(--league-ink);
  border-radius: 100px;
  padding: 10px 17px;
  font-size: 25px;
  font-weight: 850;
  background: var(--league-paper);
  z-index: 1;
  white-space: nowrap;
}
.league-mascot-stage {
  width: 100%;
  max-width: 220px;
  padding: 10px 0 4px;
  position: relative;
}
.player-mascot {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.league-leader h4 {
  font-size: clamp(24px, 1.8vw, 36px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  z-index: 1;
}
.league-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(52px, 4.3vw, 84px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.065em;
  margin-top: 18px;
  z-index: 1;
}
.league-points span {
  font-size: 15px;
  letter-spacing: 0.16em;
  margin-top: 7px;
}
.league-place-stamp {
  font-size: 28px;
  margin-top: 25px;
}
.league-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.league-row {
  width: 100%;
  color: var(--league-ink);
  display: grid;
  grid-template-columns: 44px 65px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #d2d6dd;
  border-radius: 16px;
  padding: 10px 20px;
  min-height: 82px;
  text-align: left;
  flex: 1;
}
.league-row-rank {
  font-size: 28px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.league-row-avatar {
  width: 65px;
  height: 65px;
  overflow: hidden;
  border-radius: 50%;
  background: #ede7fa;
}
.league-row-avatar--orbit {
  background: #ddf3eb;
}
.league-row-avatar--spark {
  background: #ffecdb;
}
.league-row-avatar--leaf {
  background: #edf2d7;
}
.league-row-avatar .player-mascot {
  width: 67px;
  transform: translateY(5px);
}
.league-row-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.league-row-name strong {
  font-size: clamp(22px, 1.7vw, 34px);
  font-weight: 780;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-row-name > span {
  font-size: 17px;
  color: #5c6679;
}
.league-row-points {
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.league-row--moved {
  background: #e4f5c2;
  border-color: #6a8c31;
}
.league-row--moved .league-row-name > span {
  color: #3b5919;
  font-weight: 750;
}
.league-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  font-size: 16px;
  color: #566077;
}
.league-pagination > div {
  display: flex;
  gap: 6px;
}
.league-page-button {
  font: inherit;
  font-size: 23px;
  background: transparent;
  color: var(--league-ink);
  border: 1px solid #7c8697;
  width: 44px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
}
.league-page-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.league-page-button:hover:not(:disabled) {
  background: #e5dfef;
}
.student-league button:focus-visible {
  outline: 3px solid #244c7c;
  outline-offset: 4px;
}
.student-league button.league-leader,
.student-league button.league-row {
  font-family: inherit;
  cursor: pointer;
}
.student-league button.league-row:hover {
  border-color: #7660ad;
  background: #f2eefb;
}
.league-footer {
  border-top: 2px solid #19243b;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.league-recognition {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  min-width: 0;
}
.league-pulse {
  background: #d9e9ab;
  border: 1px solid #19243b;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-size: 31px;
  flex-shrink: 0;
}
.league-award {
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: league-award-in 400ms ease-out;
}
@keyframes league-award-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .league-award {
    animation: none;
  }
}
.league-award > span {
  font-size: 18px;
  color: #566077;
}
.league-school-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.league-school-score strong {
  font-size: 32px;
  letter-spacing: -0.04em;
}
.league-school-score span {
  font-size: 18px;
  color: #566077;
}
.league-empty {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: #e7e1f3;
  border-radius: 28px;
  padding: 32px;
}
.league-empty .player-mascot {
  width: 180px;
}
.league-empty h4 {
  font-size: 32px;
}
.league-empty p,
.league-empty-copy {
  font-size: 23px;
  line-height: 1.5;
}
.student-league--compact {
  min-height: 0;
  padding: 28px;
  border-radius: 20px;
  gap: 24px;
}
.student-league--compact .league-title {
  font-size: 38px;
}
.student-league--compact .league-subtitle {
  font-size: 17px;
}
.student-league--compact .league-body {
  gap: 24px;
}
.student-league--compact .league-score-rule {
  display: none;
}
.student-league--compact .league-rank {
  font-size: 18px;
  padding: 8px 12px;
}
.student-league--compact .league-leader h4 {
  font-size: 23px;
}
.student-league--compact .league-points {
  font-size: 52px;
}
.student-league--compact .league-row {
  grid-template-columns: 30px 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 70px;
  padding: 10px 12px;
}
.student-league--compact .league-row-avatar {
  width: 42px;
  height: 42px;
}
.student-league--compact .league-row-avatar .player-mascot {
  width: 46px;
}
.student-league--compact .league-row-name strong {
  font-size: 22px;
}
.student-league--compact .league-row-points {
  font-size: 28px;
}
.student-league--compact .league-row-name > span {
  font-size: 14px;
}
.student-league--compact .league-footer {
  flex-wrap: wrap;
}
.student-league--compact .league-recognition {
  font-size: 19px;
}
@media (min-width: 2500px) {
  .student-league {
    padding: 76px 96px 48px;
    gap: 56px;
  }
  .league-kicker {
    font-size: 40px;
    gap: 32px;
  }
  .student-league .league-title {
    font-size: 120px;
  }
  .league-subtitle {
    font-size: 48px;
  }
  .league-body {
    gap: 96px;
  }
  .league-section-title {
    min-height: 96px;
    margin-bottom: 32px;
  }
  .league-section-title h3 {
    font-size: 60px;
  }
  .league-section-title > span {
    font-size: 32px;
  }
  .league-podium {
    gap: 28px;
  }
  .league-leader {
    border-radius: 280px 280px 52px 52px;
    padding: 70px 30px 50px;
  }
  .league-rank {
    font-size: 50px;
    padding: 20px 34px;
  }
  .league-mascot-stage {
    max-width: 440px;
  }
  .league-leader h4 {
    font-size: 66px;
  }
  .league-points {
    font-size: 160px;
  }
  .league-points span {
    font-size: 30px;
  }
  .league-row {
    grid-template-columns: 88px 130px minmax(0, 1fr) auto;
    gap: 32px;
    padding: 26px 40px;
    border-radius: 32px;
  }
  .league-rows {
    gap: 20px;
  }
  .league-row-rank {
    font-size: 56px;
  }
  .league-row-avatar {
    width: 130px;
    height: 130px;
  }
  .league-row-avatar .player-mascot {
    width: 134px;
  }
  .league-row-name strong {
    font-size: 60px;
  }
  .league-row-name > span,
  .league-pagination {
    font-size: 32px;
  }
  .league-row-points {
    font-size: 76px;
  }
  .league-footer {
    padding-top: 36px;
  }
  .league-recognition {
    font-size: 44px;
  }
  .league-school-score strong {
    font-size: 64px;
  }
  .league-school-score span,
  .league-award > span {
    font-size: 32px;
  }
}
@media (max-width: 1100px) {
  .student-league {
    padding: 24px;
  }
  .league-score-rule {
    display: none;
  }
  .league-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .league-leader {
    min-height: 360px;
  }
  .league-mascot-stage {
    max-width: 150px;
  }
  .league-row {
    min-height: 86px;
  }
  .league-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .student-league,
  .student-league--compact {
    padding: 20px 14px;
    gap: 22px;
  }
  .league-kicker {
    font-size: 14px;
  }
  .student-league .league-title {
    font-size: 34px;
  }
  .league-subtitle,
  .student-league--compact .league-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }
  .league-section-title h3 {
    font-size: 24px;
  }
  .league-podium {
    gap: 6px;
  }
  .league-leader {
    min-height: 270px;
    border-radius: 65px 65px 16px 16px;
    padding: 20px 6px 14px;
  }
  .league-rank,
  .student-league--compact .league-rank {
    font-size: 13px;
    padding: 6px;
  }
  .league-leader h4,
  .student-league--compact .league-leader h4 {
    font-size: 17px;
  }
  .league-points,
  .student-league--compact .league-points {
    font-size: 36px;
    margin-top: 12px;
  }
  .league-points span {
    font-size: 10px;
  }
  .league-place-stamp {
    font-size: 20px;
    margin-top: 12px;
  }
  .league-row,
  .student-league--compact .league-row {
    grid-template-columns: 26px 40px minmax(0, 1fr) auto;
    padding: 10px;
    gap: 8px;
    min-height: 74px;
  }
  .league-row-rank {
    font-size: 22px;
  }
  .league-row-avatar,
  .student-league--compact .league-row-avatar {
    width: 40px;
    height: 40px;
  }
  .league-row-avatar .player-mascot {
    width: 44px;
  }
  .league-row-name strong,
  .student-league--compact .league-row-name strong {
    font-size: 20px;
  }
  .league-row-name > span {
    font-size: 13px;
  }
  .league-row-points {
    font-size: 28px;
  }
  .league-pagination {
    font-size: 12px;
  }
  .league-recognition {
    font-size: 18px;
  }
  .league-school-score {
    white-space: normal;
  }
  .league-school-score strong {
    font-size: 28px;
  }
  .league-school-score span {
    font-size: 15px;
  }
}
