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

.season-public-layout .lb-content,
.season-widget,
.season-profile-card {
  color: var(--rd-text, #e8eaf2);
}

.season-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  margin: 8px 0 16px;
  border: 1px solid var(--rd-border, #25304a);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 28, 46, .96), rgba(12, 15, 24, .96));
}

.season-kicker,
.season-points,
.season-submetric,
.season-status {
  color: var(--rd-muted, #8a92a8);
  font-size: .78rem;
}

.season-kicker {
  font-weight: 800;
  letter-spacing: .08em;
}

.season-title {
  margin: 4px 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.season-subtitle {
  margin: 0;
  color: var(--rd-muted, #8a92a8);
}

.season-hero-side {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

.season-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(76, 201, 240, .3);
  border-radius: 8px;
  color: #bdefff;
  background: rgba(76, 201, 240, .1);
}

.season-countdown {
  color: #ffc857;
  font-weight: 700;
}

.season-period-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.season-period-tabs a,
.season-archive-select select,
.season-claim-btn,
.season-widget a {
  min-height: 44px;
}

.season-archive-select select {
  padding: 8px 12px;
  border: 1px solid var(--rd-border, #25304a);
  border-radius: 8px;
  background: var(--rd-bg-soft, #0c0f18);
  color: var(--rd-text, #e8eaf2);
}

.season-empty,
.season-user-cta {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--rd-muted, #8a92a8);
}

.season-you-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(76, 201, 240, .14);
  color: #bdefff;
  font-size: .7rem;
  font-weight: 800;
}

.season-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.season-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4cc9f0, #ffc857);
}

.season-widget {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--rd-border, #25304a);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 28, 46, .96), rgba(12, 15, 24, .96));
}

.season-widget-head,
.season-widget-main,
.season-milestones,
.season-profile-scope {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.season-widget-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.season-widget-main {
  align-items: stretch;
}

.season-medal-visual {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.season-profile-medal-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.season-profile-medal {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.season-reward-fallback {
  display: inline-grid;
  place-items: center;
  color: #ffd98a;
  background:
    linear-gradient(135deg, rgba(255, 200, 87, .15), rgba(76, 201, 240, .12)),
    rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 200, 87, .25);
}

.season-reward-fallback > span {
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .08);
}

.season-medal-visual.season-reward-fallback,
.trophy-card-icon.season-reward-fallback {
  width: 96px;
  height: 96px;
}

.season-profile-medal.season-reward-fallback {
  width: 64px;
  height: 64px;
}

.season-widget-body {
  flex: 1 1 260px;
}

.season-widget-value {
  font-size: 1.55rem;
  font-weight: 800;
}

.season-milestones {
  margin-top: 12px;
}

.season-milestone {
  min-width: 92px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--rd-muted, #8a92a8);
  background: rgba(255, 255, 255, .035);
}

.season-milestone.is-claimed,
.season-milestone.is-eligible {
  color: var(--rd-text, #e8eaf2);
  border-color: rgba(76, 201, 240, .35);
}

.season-claim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #ffc857;
  color: #15110a;
  font-weight: 800;
}

.season-claim-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.season-claim-message {
  margin-top: 10px;
  color: var(--rd-muted, #8a92a8);
}

/* Compact season card used on the RETAKE server list. */
.season-widget--retake {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 0;
  border-color: var(--rd-border, #1e2640);
  border-radius: var(--rd-radius, 12px);
  background: var(--rd-surface, #111520);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.season-widget--retake::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 9% 42%, rgba(245, 200, 66, .12), transparent 25%),
    linear-gradient(90deg, rgba(232, 118, 42, .035), transparent 48%);
  pointer-events: none;
}

.season-widget--retake::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--rd-accent, #e8762a), var(--rd-gold, #f5c842) 36%, transparent 78%);
  pointer-events: none;
}

.season-widget--retake .season-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.season-widget--retake .season-widget-intro {
  min-width: 0;
}

.season-widget--retake .season-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--rd-gold, #f5c842);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 10px;
  letter-spacing: .12em;
}

.season-widget--retake .season-kicker i {
  color: var(--rd-accent, #e8762a);
  font-size: 11px;
}

.season-widget--retake .season-title {
  margin: 3px 0 4px;
  color: var(--rd-text, #e8eaf2);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.season-widget--retake .season-subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--rd-faint, #555e78);
  font-size: 12px;
}

.season-widget-timer {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  gap: 2px 10px;
  min-width: 150px;
}

.season-widget--retake .season-status {
  grid-row: 1 / span 2;
  min-height: 26px;
  padding: 4px 9px;
  border-color: rgba(34, 201, 183, .26);
  border-radius: 6px;
  background: rgba(34, 201, 183, .08);
  color: #71ded2;
  font-family: var(--rd-font-head, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.season-widget--retake :where(.season-status--draft, .season-status--scheduled, .season-status--activating, .season-status--boundary) {
  border-color: rgba(245, 200, 66, .3);
  background: rgba(245, 200, 66, .09);
  color: var(--rd-gold, #f5c842);
}

.season-widget--retake :where(.season-status--finalizing, .season-status--finalized, .season-status--legacy) {
  border-color: rgba(138, 146, 168, .26);
  background: rgba(138, 146, 168, .08);
  color: var(--rd-muted, #8a92a8);
}

.season-widget--retake .season-status--finalization_failed {
  border-color: rgba(232, 66, 66, .32);
  background: rgba(232, 66, 66, .09);
  color: #ff8585;
}

.season-countdown-label {
  color: var(--rd-faint, #555e78);
  font-size: 10px;
  line-height: 1;
}

.season-widget--retake .season-countdown {
  color: var(--rd-gold, #f5c842);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.season-widget--retake .season-widget-main {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.season-featured-reward {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(245, 200, 66, .14);
  border-radius: 10px;
  background: rgba(7, 9, 14, .32);
  text-align: center;
}

.season-featured-label {
  color: var(--rd-faint, #555e78);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.season-widget--retake .season-medal-visual,
.season-widget--retake .season-medal-visual.season-reward-fallback {
  width: 112px;
  height: 112px;
  flex-basis: 112px;
  margin: 2px 0 4px;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .36));
}

.season-featured-reward > strong {
  color: var(--rd-gold, #f5c842);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 14px;
  line-height: 1.1;
}

.season-featured-reward > span:last-child {
  margin-top: 3px;
  color: var(--rd-muted, #8a92a8);
  font-size: 10px;
}

.season-widget--retake .season-widget-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.season-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.season-progress-label {
  color: var(--rd-muted, #8a92a8);
  font-size: 11px;
}

.season-widget--retake .season-widget-value {
  color: var(--rd-text, #e8eaf2);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 21px;
  line-height: 1.2;
}

.season-widget--retake .season-widget-value span {
  color: var(--rd-muted, #8a92a8);
  font-size: 13px;
  font-weight: 600;
}

.season-progress-percent {
  color: var(--rd-gold, #f5c842);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 13px;
  font-weight: 800;
}

.season-widget--retake .season-progress {
  height: 7px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .035);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .32);
}

.season-widget--retake .season-progress > span {
  position: relative;
  min-width: 0;
  background: linear-gradient(90deg, var(--rd-accent, #e8762a), var(--rd-gold, #f5c842));
  box-shadow: 0 0 10px rgba(232, 118, 42, .22);
}

.season-widget--retake .season-milestones {
  display: grid;
  grid-template-columns: repeat(var(--season-tier-count, 4), minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 14px;
}

.season-widget--retake .season-milestone {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-color: rgba(255, 255, 255, .065);
  border-radius: 8px;
  background: rgba(7, 9, 14, .28);
}

.season-tier-visual {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
}

.season-tier-medal,
.season-tier-medal.season-reward-fallback {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: saturate(.55) brightness(.7);
}

.season-tier-number {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--rd-border-2, #252d45);
  border-radius: 50%;
  background: var(--rd-bg-soft, #0c0f18);
  color: var(--rd-muted, #8a92a8);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 9px;
  font-weight: 800;
}

.season-tier-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.season-tier-copy b {
  color: var(--rd-muted, #8a92a8);
  font-family: var(--rd-font-head, sans-serif);
  font-size: 11px;
}

.season-tier-copy strong {
  overflow: hidden;
  color: var(--rd-text, #e8eaf2);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-tier-state {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--rd-faint, #555e78);
  font-size: 9px;
}

.season-widget--retake .season-milestone.is-claimed {
  border-color: rgba(46, 201, 119, .24);
  background: rgba(46, 201, 119, .055);
}

.season-widget--retake .season-milestone.is-claimed .season-tier-medal {
  filter: none;
}

.season-widget--retake .season-milestone.is-claimed .season-tier-number,
.season-widget--retake .season-milestone.is-claimed .season-tier-state {
  border-color: rgba(46, 201, 119, .34);
  color: var(--rd-green, #2ec977);
}

.season-widget--retake .season-milestone.is-eligible {
  border-color: rgba(245, 200, 66, .42);
  background: rgba(245, 200, 66, .07);
  box-shadow: inset 0 0 18px rgba(245, 200, 66, .035);
}

.season-widget--retake .season-milestone.is-eligible .season-tier-medal {
  filter: none;
}

.season-widget--retake .season-milestone.is-eligible .season-tier-number,
.season-widget--retake .season-milestone.is-eligible .season-tier-state {
  border-color: rgba(245, 200, 66, .38);
  color: var(--rd-gold, #f5c842);
}

.season-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 14px;
}

.season-claim-area {
  min-width: 0;
}

.season-widget--retake .season-claim-btn {
  min-height: 38px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(240, 149, 42, .72);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--rd-accent, #e8762a), var(--rd-accent-2, #f0952a));
  color: #17100a;
  font-family: var(--rd-font-head, sans-serif);
  font-size: 11px;
  box-shadow: 0 7px 18px rgba(232, 118, 42, .14);
}

.season-widget--retake .season-claim-message {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--rd-muted, #8a92a8);
  font-size: 11px;
}

.season-widget--retake .season-claim-message strong,
.season-widget--retake .season-claim-message i {
  color: var(--rd-gold, #f5c842);
}

.season-widget--retake .season-claim-message.is-success,
.season-widget--retake .season-claim-message.is-success i {
  color: var(--rd-green, #2ec977);
}

.season-widget-note {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  color: var(--rd-faint, #555e78);
  font-size: 10px;
  text-align: right;
}

.season-profile-scope a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--rd-border, #25304a);
  border-radius: 8px;
  color: var(--rd-muted, #8a92a8);
  text-decoration: none;
}

.season-profile-scope a.active {
  color: #bdefff;
  border-color: rgba(76, 201, 240, .35);
  background: rgba(76, 201, 240, .1);
}

.season-profile-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.season-award-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 200, 87, .14);
  color: #ffd98a;
  font-size: .72rem;
  font-weight: 800;
}

:where(.season-period-tabs a, .season-archive-select select, .season-claim-btn, .season-profile-scope a):focus-visible {
  outline: 3px solid rgba(76, 201, 240, .45);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .season-widget--retake .season-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-widget-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .season-widget-note {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .season-hero,
  .season-widget-main {
    flex-direction: column;
  }

  .season-hero-side {
    align-items: flex-start;
    min-width: 0;
  }

  .season-widget--retake .season-widget-head {
    align-items: flex-start;
  }

  .season-widget-timer {
    grid-template-columns: auto;
    justify-items: end;
    min-width: 0;
  }

  .season-widget--retake .season-status {
    grid-row: auto;
  }

  .season-widget--retake .season-widget-main {
    grid-template-columns: 1fr;
  }

  .season-featured-reward {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    justify-items: start;
    text-align: left;
  }

  .season-widget--retake .season-medal-visual,
  .season-widget--retake .season-medal-visual.season-reward-fallback {
    width: 76px;
    height: 76px;
    grid-row: 1 / span 3;
    margin: 0;
  }

}

@media (max-width: 520px) {
  .season-widget--retake .season-widget-head,
  .season-widget--retake .season-widget-main {
    padding: 14px;
  }

  .season-widget--retake .season-widget-head {
    flex-direction: column;
    gap: 10px;
  }

  .season-widget-timer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    width: 100%;
  }

  .season-widget--retake .season-status {
    grid-row: auto;
    max-width: 100%;
    white-space: normal;
  }

  .season-widget--retake .season-milestones {
    grid-template-columns: 1fr;
  }

  .season-widget--retake .season-milestone {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .season-tier-visual {
    width: 54px;
    height: 54px;
  }

  .season-progress-head {
    align-items: flex-start;
  }

  .season-widget--retake .season-claim-btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .season-public-layout *,
  .season-widget *,
  .season-profile-card * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
