/* =========================
  ScanWin — rewards.css
========================= */

/* =========================
  Rewards page shell
========================= */
.sw-rewards {
  display: flex;
  flex-direction: column;
}

/* Tab switch (segmented control) */
.sw-rewards__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.sw-rewards__tab {
  height: 37px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.sw-rewards__tab:hover {
  color: var(--sw-text);
}

.sw-rewards__tab.is-active {
  background: #fff;
  color: var(--sw-violet);
  box-shadow: 0 1px 3px rgba(15, 16, 32, 0.06);
}

/* Panel: switched via [hidden] in JS */
.sw-rewards__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sw-rewards__panel[hidden] {
  display: none;
}

/* Leaderboard placeholder card */
.sw-rewards__placeholder {
  background: #fff;
  border: 1px dashed var(--sw-border);
  border-radius: 16px;
  padding: 64px 32px;
  text-align: center;
}

.sw-rewards__placeholder-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--sw-text);
  margin: 0 0 6px;
}

.sw-rewards__placeholder-sub {
  font-size: 14px;
  color: var(--sw-text-muted);
  margin: 0;
}

/* =========================
  Hero card (current tier + progress to next)
========================= */
.sw-rewards-hero {
  position: relative;
  background: linear-gradient(90deg, #0f0f21 0%, #4a3dc4 100%);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  color: #fff;
}

.sw-rewards-hero__badge {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sw-rewards-hero__badge svg {
  width: 50px;
  height: 50px;
}

.sw-rewards-hero__badge--bronze {
  background: #c97a3a;
}
.sw-rewards-hero__badge--silver {
  background: #9aa3b2;
}
.sw-rewards-hero__badge--gold {
  background: #e0a82e;
}
.sw-rewards-hero__badge--platinum {
  background: #b8bdc9;
}

.sw-rewards-hero__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sw-rewards-hero__tier-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-rewards-hero__tier-name {
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  color: #fff;
  margin: 0;
  letter-spacing: -0.28px;
}

.sw-rewards-hero__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #e0a82e;
  color: #0f0f21;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.sw-rewards-hero__sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #e5e0fb;
  margin: 0;
}

.sw-rewards-hero__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-rewards-hero__progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.sw-rewards-hero__progress-current {
  color: #fff;
  font-weight: 600;
}

.sw-rewards-hero__progress-target {
  color: #e5e0fb;
  font-weight: 500;
}

.sw-rewards-hero__track {
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.sw-rewards-hero__fill {
  height: 100%;
  background: #d4ff3f;
  border-radius: 999px;
  transition: width 0.4s ease-out;
}

/* =========================
  Tier Ladder (4 cards side-by-side)
========================= */
.sw-rewards-ladder {
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  padding: 24px 28px;
}

.sw-rewards-ladder__title {
  font-size: 16px;
  font-weight: 600;
  list-style: 22px;
  color: var(--sw-text);
  margin: 0 0 16px;
}

.sw-rewards-ladder__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Tier card */
.sw-rewards-tier {
  background: #fafafb;
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

.sw-rewards-tier__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sw-rewards-tier__badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sw-rewards-tier__badge svg {
  width: 18px;
  height: 18px;
}

.sw-rewards-tier__badge--bronze {
  background: #C17F4A;
}
.sw-rewards-tier__badge--silver {
  background: #9CA3AF;
}
.sw-rewards-tier__badge--gold {
  background: #E0A82E;
}
.sw-rewards-tier__badge--platinum {
  background: #6E5DF8;
}

/* State indicators */
.sw-rewards-tier__state {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: #D1FAE5;
}

.sw-rewards-tier--locked .sw-rewards-tier__state {
  background: #F3F4F6;
}

.sw-rewards-tier__state svg {
  width: 14px;
  height: 14px;
}

.sw-rewards-tier__you {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  background: var(--sw-violet);
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.sw-rewards-tier--done .sw-rewards-tier__state {
  color: #10b981;
}

.sw-rewards-tier--current {
  border-color: var(--sw-violet);
  border-width: 2px;
  background: #F5F4FE;
}

.sw-rewards-tier__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--sw-text);
  margin: 0;
  margin-top: 8px;
}

.sw-rewards-tier__range {
  font-size: 13px;
  font-weight: 500;
  color: var(--sw-text-muted);
  margin: 0;
}

/* =========================
  Bottom row: Perks + Milestones (2-col)
========================= */
.sw-rewards-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sw-rewards-perks,
.sw-rewards-milestones {
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  padding: 24px 28px;
}

.sw-rewards-perks__title,
.sw-rewards-milestones__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--sw-text);
  margin: 0 0 16px;
}

.sw-rewards-perks__list,
.sw-rewards-milestones__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Perk row */
.sw-rewards-perk,
.sw-rewards-milestone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-rewards-perk__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--sw-violet-50);
  color: var(--sw-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-rewards-perk__icon svg {
  width: 18px;
  height: 18px;
}

.sw-rewards-perk__text,
.sw-rewards-milestone__text {
  min-width: 0;
  flex: 1;
}

.sw-rewards-perk__title,
.sw-rewards-milestone__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--sw-text);
  margin: 0;
}

.sw-rewards-perk__sub,
.sw-rewards-milestone__sub {
  font-size: 12px;
  line-height: 16px;
  color: var(--sw-text-muted);
  margin: 2px 0 0;
}

.sw-rewards-milestone__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-rewards-milestone__icon svg {
  width: 16px;
  height: 16px;
}

.sw-rewards-milestone--done .sw-rewards-milestone__icon {
  color: #10b981;
  background: #d1fae5;
}

.sw-rewards-milestone--locked .sw-rewards-milestone__icon {
  color: var(--sw-text-faint);
  background: #f3f4f6;
}

.sw-rewards-milestone--locked .sw-rewards-milestone__title {
  color: var(--sw-text-muted);
}

@media (max-width: 1199.98px) {
  .sw-rewards-ladder__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .sw-rewards__tabs {
    display: flex;
    align-self: stretch;
  }

  .sw-rewards__tab {
    flex: 1;
  }

  .sw-rewards-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .sw-rewards-hero__badge {
    width: 88px;
    height: 88px;
    border-radius: 999px;
  }

  .sw-rewards-hero__badge svg {
    width: 40px;
    height: 40px;
  }

  .sw-rewards-hero__info {
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .sw-rewards-hero__tier-row {
    justify-content: center;
  }

  .sw-rewards-hero__tier-name {
    font-size: 22px;
    line-height: 28px;
  }

  .sw-rewards-hero__sub {
    font-size: 13px;
    text-align: center;
  }

  .sw-rewards-hero__progress {
    width: 100%;
  }

  .sw-rewards-ladder,
  .sw-rewards-perks,
  .sw-rewards-milestones {
    padding: 20px;
  }

  .sw-rewards-ladder__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sw-rewards-tier {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .sw-rewards-tier__top {
    flex-shrink: 0;
    flex-grow: 0;
    width: 44px;
    justify-content: center;
  }
  .sw-rewards-tier__state,
  .sw-rewards-tier__you {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .sw-rewards-tier {
    position: relative;
  }

  .sw-rewards-tier__name {
    font-size: 15px;
    line-height: 18px;
    margin-top: 0;
  }

  .sw-rewards-tier__range {
    font-size: 12px;
    margin-top: 2px;
  }

  .sw-rewards-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================
  LEADERBOARD TAB
========================= */

.sw-leader__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sw-leader__head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-leader__head-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.22px;
  color: #0f1020;
  margin: 0;
}

.sw-leader__head-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #6b7280;
  margin: 0;
}

.sw-leader__range {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #F3F4F6;
  border-radius: 10px;
}

.sw-leader__range-tab {
  height: 32px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.sw-leader__range-tab:hover {
  color: #0f1020;
}

.sw-leader__range-tab.is-active {
  background: #fff;
  color: #0f1020;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* =========================
  Podium (top 3) — dark gradient
========================= */
.sw-leader__podium {
  background: linear-gradient(90deg, #0F0F21 0%, #4A3DC4 100%);
  border-radius: 20px;
  padding: 26px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.sw-leader__podium-dot {
  position: absolute;
  background: #d4ff3f;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.7;
}

.sw-leader__podium-dot--a { top: 50px; left: 70px; width: 8px; height: 8px; }
.sw-leader__podium-dot--b { top: 110px; left: 150px; width: 5px; height: 5px; opacity: 0.5; }
.sw-leader__podium-dot--c { top: 200px; left: 110px; width: 6px; height: 6px; opacity: 0.45; }
.sw-leader__podium-dot--d { top: 60px; right: 70px; width: 10px; height: 10px; }
.sw-leader__podium-dot--e { top: 130px; right: 130px; width: 5px; height: 5px; opacity: 0.5; }
.sw-leader__podium-dot--f { top: 210px; right: 40px; width: 6px; height: 6px; opacity: 0.45; }
.sw-leader__podium-dot--g { top: 40px; left: 250px; width: 4px; height: 4px; opacity: 0.5; }
.sw-leader__podium-dot--h { top: 40px; right: 250px; width: 4px; height: 4px; opacity: 0.5; }

.sw-leader__podium-header {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4ff3f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.88px;
  position: relative;
  z-index: 1;
}

.sw-leader__podium-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sw-leader__podium-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.sw-leader-place {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
  padding: 18px 16px;
  width: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

.sw-leader-place--1 {
  background: #4a4398;
  width: 248px;
  border-left: 2px solid #a3e635;
  border-right: 2px solid #a3e635;
  border-top: 2px solid #a3e635;
  box-shadow: 0 0 30px 0 rgba(212, 255, 64, 0.2);
}

.sw-leader-place__rank {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(192, 192, 192, 0.44);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.sw-leader-place__crown {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  color: #e0a82e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sw-leader-place__crown svg {
  width: 100%;
  height: 100%;
}

.sw-leader-place__avatar-ring {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-leader-place__avatar-ring--silver { background: #c0c0c0; }
.sw-leader-place__avatar-ring--white { background: #fff; }
.sw-leader-place__avatar-ring--platinum { background: rgba(255, 255, 255, 0.4); }

.sw-leader-place--1 .sw-leader-place__avatar-ring {
  width: 80px;
  height: 80px;
}

.sw-leader-place__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
}

.sw-leader-place--1 .sw-leader-place__avatar {
  width: 72px;
  height: 72px;
}

.sw-leader-place__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
  margin: 0;
  text-align: center;
}

.sw-leader-place--1 .sw-leader-place__name {
  font-size: 16px;
  line-height: 22px;
}

.sw-leader-place__tier-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sw-leader-place__tier {
  font-size: 11px;
  font-weight: 500;
  color: #e5e0fb;
}

.sw-leader-place__tier--platinum {
  color: #fff;
}

.sw-leader-place__scans-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sw-leader-place__scans-num {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #d4ff3f;
  letter-spacing: -0.075px;
}

.sw-leader-place__scans-num--violet {
  color: #edebff;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.09px;
}

.sw-leader-place__scans-label {
  background: #352d8a;
  border-radius: 999px;
  padding: 2px 6px 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  color: #fff;
}

.sw-leader-place__scans-label--violet { background: #675ada; }
.sw-leader-place__scans-label--dark { background: #2f287a; }

.sw-tier-pin {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sw-tier-pin svg {
  width: 9px;
  height: 9px;
}

.sw-tier-pin--lg {
  width: 22px;
  height: 22px;
}

.sw-tier-pin--lg svg {
  width: 11px;
  height: 11px;
}

.sw-tier-pin--bronze {
  background: #c17f4a;
}
.sw-tier-pin--silver {
  background: #9ca3af;
}
.sw-tier-pin--gold {
  background: #e0a82e;
}
.sw-tier-pin--platinum {
  background: #6e5df8;
}

/* =========================
  Your rank card
========================= */
.sw-leader-you {
  background: #f5f4fe;
  border: 2px solid #6e5df8;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sw-leader-you__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sw-leader-you__rank {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #6e5df8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-leader-you__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.sw-leader-you__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sw-leader-you__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-leader-you__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #1a1232;
}

.sw-leader-you__you {
  color: #1a1232;
  font-weight: 600;
}

.sw-leader-you__delta {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #6b7280;
  margin: 0;
}

.sw-leader-you__scans {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.sw-leader-you__scans-num {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #6e5df8;
}

.sw-leader-you__scans-label {
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  color: #9ca3af;
}

/* =========================
   Ranked list (rank 4+)
========================= */
.sw-leader-list {
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  width: 100%;
  border-collapse: collapse;
}

.sw-leader-list thead,
.sw-leader-list tbody {
  display: block;
}

.sw-leader-list__head {
  display: grid;
  grid-template-columns: 60px 1fr 200px 160px 80px;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.66px;
  color: #9ca3af;
}

.sw-leader-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px 160px 80px;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid #f5f4fe;
}

.sw-leader-row:first-of-type {
  border-top: 0;
}

.sw-leader-row__rank {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

.sw-leader-row__creator {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sw-leader-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.sw-leader-row__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #1a1232;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-leader-row__tier {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-leader-row__tier-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.sw-leader-row__scans {
  font-size: 14px;
  font-weight: 600;
  color: #1a1232;
}

.sw-leader-row__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}

.sw-leader-row__trend svg {
  width: 14px;
  height: 14px;
}

.sw-leader-row__trend--up {
  color: #10b981;
}
.sw-leader-row__trend--down {
  color: #ef4444;
}

@media (max-width: 1199.98px) {
  .sw-leader-place {
    width: 220px;
  }
  .sw-leader-place--1 {
    width: 220px;
    height: 206px;
  }
  .sw-leader-list__head,
  .sw-leader-row {
    grid-template-columns: 50px 1fr 160px 130px 70px;
    padding: 14px 18px;
  }
}

/* =========================
   Mobile (≤767px)
========================= */
@media (max-width: 767.98px) {
  .sw-leader__head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sw-leader__head-title {
    font-size: 20px;
    line-height: 26px;
  }

  .sw-leader__range {
    display: flex;
    align-self: stretch;
  }

  .sw-leader__range-tab {
    flex: 1;
    padding: 0 10px;
    font-size: 12px;
  }

  .sw-leader__podium {
    padding: 18px 0 0;
    gap: 12px;
    border-radius: 14px;
  }

  .sw-leader__podium-header {
    padding: 5px 10px;
    font-size: 9px;
    letter-spacing: 0.6px;
    gap: 6px;
  }

  .sw-leader__podium-header svg {
    width: 12px;
    height: 12px;
  }

  .sw-leader__podium-row {
    gap: 8px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-end;
  }

  .sw-leader-place {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 12px 8px;
    gap: 6px;
    border-radius: 11px 11px 0 0;
  }

  .sw-leader-place--1 {
    flex: 1 1 0;
    width: auto;
    border-left-width: 1.5px;
    border-right-width: 1.5px;
    border-top-width: 1.5px;
    box-shadow: 0 0 20px 0 rgba(212, 255, 64, 0.2);
  }

  .sw-leader-place--1 {
    height: 146px;
  }

  .sw-leader-place__rank {
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .sw-leader-place__crown {
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
  }

  .sw-leader-place__avatar-ring {
    width: 42px;
    height: 42px;
  }

  .sw-leader-place--1 .sw-leader-place__avatar-ring {
    width: 54px;
    height: 54px;
  }

  .sw-leader-place__avatar {
    width: 38px;
    height: 38px;
  }

  .sw-leader-place--1 .sw-leader-place__avatar {
    width: 48px;
    height: 48px;
  }

  .sw-leader-place__name {
    font-size: 10px;
    line-height: 14px;
  }

  .sw-leader-place--1 .sw-leader-place__name {
    font-size: 11px;
    line-height: 15px;
  }

  .sw-leader-place__tier-row {
    gap: 4px;
  }

  .sw-leader-place__tier {
    font-size: 8px;
  }

  .sw-leader-place__scans-row {
    gap: 5px;
  }

  .sw-leader-place__scans-num {
    font-size: 10px;
    line-height: 13px;
  }

  .sw-leader-place--1 .sw-leader-place__scans-num,
  .sw-leader-place__scans-num--violet {
    font-size: 12px;
    line-height: 16px;
  }

  .sw-leader-place__scans-label {
    padding: 1px 4px 2px;
    font-size: 8px;
    line-height: 10px;
  }

  .sw-leader__podium-dot {
    transform: scale(0.6);
  }

  .sw-leader__podium-dot--g,
  .sw-leader__podium-dot--h {
    display: none;
  }

  .sw-leader-you {
    padding: 14px;
    border-radius: 14px;
  }

  .sw-leader-you__left {
    gap: 12px;
  }

  .sw-leader-you__rank,
  .sw-leader-you__avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .sw-leader-you__name {
    font-size: 13px;
    line-height: 18px;
  }

  .sw-leader-you__name {
    font-size: 0;
  }
  .sw-leader-you__name::before {
    content: "You";
    font-size: 13px;
  }
  .sw-leader-you__you {
    display: none;
  }

  .sw-leader-you__delta {
    font-size: 11px;
    line-height: 14px;
  }

  .sw-leader-you__scans-num {
    font-size: 16px;
    line-height: 20px;
  }

  .sw-leader-you__scans-label {
    font-size: 10px;
    line-height: 13px;
  }

  .sw-leader-list {
    border-radius: 14px;
  }

  .sw-leader-list__head {
    display: none;
  }

  .sw-leader-row {
    grid-template-columns: 28px 32px 1fr auto;
    grid-template-areas:
      "rank avatar name scans"
      "rank avatar tier trend";
    column-gap: 10px;
    row-gap: 1px;
    padding: 12px 14px;
  }

  .sw-leader-row__creator {
    display: contents;
  }

  .sw-leader-row__rank {
    grid-area: rank;
    align-self: center;
    font-size: 13px;
  }
  .sw-leader-row__avatar {
    grid-area: avatar;
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .sw-leader-row__name {
    grid-area: name;
    align-self: end;
    font-size: 13px;
    line-height: 17px;
  }
  .sw-leader-row__tier {
    grid-area: tier;
    align-self: start;
    gap: 4px;
  }
  .sw-leader-row__tier-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
  }
  .sw-leader-row__scans {
    grid-area: scans;
    text-align: right;
    align-self: end;
    font-size: 13px;
    line-height: 17px;
  }
  .sw-leader-row__trend {
    grid-area: trend;
    justify-self: end;
    align-self: start;
    font-size: 11px;
  }
  .sw-leader-row__trend svg {
    width: 12px;
    height: 12px;
  }

  .sw-leader-row .sw-tier-pin--lg {
    width: 14px;
    height: 14px;
  }
  .sw-leader-row .sw-tier-pin--lg svg {
    width: 7px;
    height: 7px;
  }
}

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {
  .sw-rewards-hero__fill,
  .sw-rewards-tier,
  .sw-leader__range-tab {
    transition: none;
  }
}
