/* Styles tuned to match the original leaderboard widget computed styles
 * (palette = Tailwind slate/sky/amber). All measurements taken from the
 * live page via getComputedStyle and reproduced here.
 */

:root {
  /* slate */
  --slate-50: rgb(248, 250, 252);
  --slate-100: rgb(241, 245, 249);
  --slate-200: rgb(226, 232, 240);
  --slate-300: rgb(203, 213, 225);
  --slate-400: rgb(148, 163, 184);
  --slate-500: rgb(100, 116, 139);
  --slate-600: rgb(71, 85, 105);
  --slate-700: rgb(30, 41, 59);
  --slate-900: rgb(15, 23, 42);
  /* amber (gold) */
  --amber-100: rgb(254, 243, 199);
  --amber-200: rgb(253, 230, 138);
  --amber-300: rgb(253, 224, 71);
  --amber-400: rgb(251, 191, 36);
  --amber-500: rgb(234, 179, 8);
  --amber-700: rgb(202, 138, 4);
  --amber-900: rgb(146, 64, 14);
  --amber-pale: rgb(254, 249, 195);
  /* sky (accent blue) */
  --sky-100: rgb(224, 242, 254);
  --sky-500: rgb(14, 165, 233);
  /* page bg outside the widget */
  --page-bg: rgb(235, 235, 237);
  /* text */
  --text: var(--slate-900);
  --text-muted: var(--slate-500);
  --text-faint: var(--slate-400);
  /* shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-filter: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-block: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-avatar: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* font */
  --font:
    "Segoe UI", -apple-system, "system-ui", Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}

/* --- Page wrap (centers the widget like the original) --- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 83px 32px 80px;
}

/* --- Leaderboard section: matches the live widget's outer block --- */
.leaderboard-card {
  background: var(--slate-50);
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

/* --- Header --- */
.lb-header {
  display: none;
  margin-bottom: 0;
}
.lb-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.5px;
  line-height: normal;
}
.lb-subtitle {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
}

/* --- Filter bar (white card with shadow) --- */
.lb-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-filter);
}
.filter-controls {
  display: flex;
  gap: 12px;
}
/* Filter buttons mimic the FluentUI Dropdown / SearchBox the original page
 * renders: gray fill, near-black 1px border, almost square corners (2px). */
.select-wrap {
  position: relative;
  width: 120px;
}
.select-wrap:nth-child(3) {
  width: 150px;
}
.select-wrap select {
  width: 100%;
  height: 32px;
  border: 1px solid rgb(55, 55, 55);
  background: rgb(235, 235, 237);
  border-radius: 2px;
  padding: 0 34px 0 8px;
  font-size: 14px;
  color: var(--slate-900);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select-wrap select:focus {
  outline: 1px solid rgb(0, 90, 158);
  outline-offset: 0;
  border-color: rgb(0, 90, 158);
}
.select-wrap .caret {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(96, 94, 92);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.select-wrap .caret svg {
  display: block;
}
.search-wrap {
  position: relative;
  flex: 1 1 560px;
  min-width: 220px;
}
.search-wrap input {
  width: 100%;
  height: 32px;
  border: 1px solid rgb(55, 55, 55);
  background: rgb(235, 235, 237);
  border-radius: 2px;
  padding: 0 12px 0 30px;
  font-size: 14px;
  color: var(--slate-900);
  font-family: inherit;
}
.search-wrap input:focus {
  outline: 1px solid rgb(0, 90, 158);
  outline-offset: 0;
  border-color: rgb(0, 90, 158);
}
.search-wrap input::placeholder {
  color: rgb(96, 94, 92);
}
.search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(55, 55, 55);
  font-size: 14px;
  pointer-events: none;
}

/* --- Podium --- */
.lb-podium {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 8px;
  margin: 0 auto 64px;
  max-width: 900px;
}
.podium-slot {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.podium-slot.first {
  margin-top: -32px;
}
.podium-slot.empty {
  visibility: hidden;
}

.podium-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 10;
}
.podium-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}
.podium-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--slate-300);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  box-shadow: var(--shadow-avatar);
}
.podium-slot.first .podium-avatar {
  width: 112px;
  height: 112px;
  border-color: var(--amber-400);
  font-size: 32px;
}
.podium-rank-badge {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--slate-400);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.podium-slot.first .podium-rank-badge {
  width: 52px;
  height: 52px;
  font-size: 22px;
  background: var(--amber-500);
  right: -8px;
  bottom: -8px;
}
.podium-slot.second .podium-rank-badge {
  background: var(--slate-400);
}
.podium-slot.third .podium-rank-badge {
  background: var(--amber-900);
}

.podium-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px;
  text-align: center;
  line-height: 1.2;
}
.podium-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  text-align: center;
  margin: 0 0 8px;
}
.podium-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 18px;
  color: var(--sky-500);
  box-shadow: var(--shadow-pill);
}
.podium-score .star {
  color: var(--sky-500);
  width: 16px;
  height: 16px;
}
.podium-slot.first .podium-score {
  background: var(--amber-pale);
  border-color: var(--amber-300);
  color: var(--amber-700);
  font-size: 20px;
  padding: 8px 20px;
}
.podium-slot.first .podium-score .star {
  color: var(--amber-700);
  width: 24px;
  height: 24px;
}

/* Block (the colored riser) */
.podium-block {
  position: relative;
  width: 100%;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-block);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.podium-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--slate-300);
}
.podium-slot.first .podium-block {
  height: 176px;
  background: linear-gradient(var(--amber-100), var(--amber-200));
  border-top: 2px solid var(--amber-300);
}
.podium-slot.first .podium-block::before {
  background: var(--amber-300);
}
.podium-slot.second .podium-block {
  height: 144px;
  background: linear-gradient(var(--slate-200), var(--slate-300));
  border-top: 2px solid var(--slate-300);
}
.podium-slot.third .podium-block {
  height: 112px;
  background: linear-gradient(var(--slate-200), var(--slate-300));
  border-top: 2px solid var(--slate-300);
}
.podium-rank-number {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: rgba(148, 163, 184, 0.2);
  position: relative;
  user-select: none;
}
.podium-slot.first .podium-rank-number {
  font-size: 112px;
  color: rgba(234, 179, 8, 0.2);
}
.podium-slot.third .podium-rank-number {
  top: 0;
}

/* --- Ranking list --- */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  max-width: 1200px;
}
.lb-row {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.2s;
}
.lb-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.lb-row.expanded {
  border-color: var(--sky-500);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.lb-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
}
.lb-row-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.lb-rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--slate-400);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.lb-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber-400);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.lb-info {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: normal;
}
.lb-role {
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 0;
}

.lb-row-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lb-cat-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lb-cat-stat {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-900);
}
.lb-cat-stat .icon {
  width: 20px;
  height: 20px;
  color: var(--sky-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-cat-stat span:last-child {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 600;
}
.lb-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid var(--slate-200);
  min-width: 90px;
}
.lb-total .label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--slate-400);
  font-weight: 600;
}
.lb-total .value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 24px;
  color: var(--sky-500);
}
.lb-total .value .star {
  color: var(--sky-500);
  width: 35px;
  height: 35px;
}
.lb-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--slate-100);
  color: var(--sky-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}
.lb-row.expanded .lb-toggle {
  background: var(--sky-100);
}

.lb-row-detail {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 24px;
}
.detail-title {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.activity-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.activity-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.activity-table .activity-col {
  width: 70%;
}
.activity-table .category-col {
  width: 13%;
}
.activity-table .date-col {
  width: 10%;
}
.activity-table .points-col-width {
  width: 7%;
}
.activity-table thead tr {
  border-bottom: 2px solid var(--slate-200);
}
.activity-table th {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 12px 8px;
  border: 0;
  text-transform: uppercase;
}
.activity-table td.points-col {
  color: var(--sky-500);
  text-align: right;
}
.activity-table th.points-col {
  text-align: right;
}
.activity-table tbody tr {
  transition: background-color 0.2s;
}
.activity-table tbody tr:hover {
  background: var(--slate-100);
}
.activity-table td {
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 8px;
  font-size: 14px;
  color: var(--slate-900);
}
.activity-table tbody tr:last-child td {
  border-bottom: 0;
}
.activity-table .activity-name {
  color: var(--slate-700);
  font-weight: 600;
}
.activity-table .activity-date {
  color: var(--slate-500);
  line-height: 1.2;
  white-space: normal;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--slate-200);
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.15;
  min-width: 106px;
  padding: 5px 12px;
  border-radius: 12px;
  font-weight: 600;
  text-align: left;
  white-space: normal;
}
.points-col {
  font-weight: 700;
  color: var(--sky-500);
}
.empty-state {
  text-align: center;
  color: var(--slate-500);
  padding: 32px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

/* --- Avatar palettes for fictional initial avatars --- */
.av-1 {
  background: #f4a261;
}
.av-2 {
  background: #2a9d8f;
}
.av-3 {
  background: #6c5ce7;
}
.av-4 {
  background: #e76f51;
}
.av-5 {
  background: #00b4d8;
}
.av-6 {
  background: #ef476f;
}
.av-7 {
  background: #06d6a0;
  color: #064e3b;
}
.av-8 {
  background: #ffd166;
  color: #4a3c00;
}
.av-9 {
  background: #118ab2;
}
.av-10 {
  background: #8338ec;
}
.av-11 {
  background: #fb5607;
}
.av-12 {
  background: #3a86ff;
}

/* --- Responsive --- ported 1:1 from the original (single breakpoint 768px) */
@media (max-width: 768px) {
  /* Section + header */
  .leaderboard-card {
    padding: 16px;
  }
  .lb-header {
    margin-bottom: 24px;
  }
  .lb-header h2 {
    font-size: 24px;
  }

  /* Filter bar stacks vertically */
  .lb-filters {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }
  .select-wrap {
    width: 100%;
    min-width: 0;
  }
  .search-wrap {
    width: 100%;
    min-width: 0;
    flex: initial;
  }

  /* Podium becomes a vertical column: 1 on top, then 2, then 3 */
  .lb-podium {
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    max-width: none;
  }
  .podium-slot {
    width: 100%;
    max-width: 360px;
  }
  .podium-slot.first {
    order: 1;
    margin-top: 0;
  }
  .podium-slot.second {
    order: 2;
  }
  .podium-slot.third {
    order: 3;
  }
  .podium-slot.first .podium-block {
    height: 140px;
  }
  .podium-slot.second .podium-block {
    height: 96px;
  }
  .podium-slot.third .podium-block {
    height: 64px;
  }

  /* List rows become column layout: identity on top, stats below */
  .lb-row-main {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .lb-row-left {
    gap: 16px;
    width: 100%;
  }
  .lb-info {
    flex: 1 1 0%;
  }
  .lb-row-right {
    border-top: 1px solid var(--slate-200);
    justify-content: space-between;
    padding-top: 12px;
    width: 100%;
  }
  .lb-cat-stats {
    gap: 16px;
  }
  /* Original hides the TOTAL block on mobile */
  .lb-total {
    display: none;
  }
  .lb-row-detail {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    font-size: 13px;
  }

  .page {
    padding: 8px;
  }

  .leaderboard-card {
    border-radius: 10px;
    padding: 14px;
  }

  .lb-header h2 {
    font-size: 22px;
  }

  .lb-subtitle {
    margin-bottom: 16px;
  }

  .lb-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    margin-bottom: 16px;
  }

  .select-wrap,
  .search-wrap {
    min-width: 0;
    width: 100%;
  }

  .select-wrap select,
  .search-wrap input {
    height: 40px;
    font-size: 16px;
  }

  .lb-podium {
    align-items: center;
    gap: 32px;
    padding: 12px 0 28px;
    margin-bottom: 12px;
  }

  .lb-podium .podium-slot {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    flex-direction: column;
    padding: 0;
    width: min(100%, 360px);
  }

  .lb-podium .podium-slot.first {
    background: transparent;
    border-color: transparent;
  }

  .lb-podium .podium-block {
    display: flex;
    margin-top: 18px;
  }

  .podium-slot.first .podium-block {
    height: 170px;
  }

  .podium-slot.second .podium-block {
    height: 145px;
  }

  .podium-slot.third .podium-block {
    height: 120px;
  }

  .podium-rank-number {
    font-size: 110px;
  }

  .podium-slot.first .podium-rank-number {
    font-size: 125px;
  }

  .podium-user {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    width: min(100%, 340px);
  }

  .podium-avatar-wrap {
    margin-bottom: 12px;
  }

  .podium-avatar {
    height: 76px;
    width: 76px;
  }

  .podium-slot.first .podium-avatar {
    height: 92px;
    width: 92px;
  }

  .podium-name {
    font-size: 22px;
    text-align: center;
  }

  .podium-role {
    font-size: 15px;
    margin-bottom: 10px;
    text-align: center;
  }

  .podium-score,
  .podium-slot.first .podium-score {
    font-size: 19px;
    padding: 8px 18px;
  }

  .lb-list {
    gap: 10px;
  }

  .lb-row {
    border-radius: 16px;
  }

  .lb-row-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 18px;
  }

  .lb-row-left {
    gap: 16px;
    width: 100%;
  }

  .lb-info {
    flex: 1;
  }

  .lb-rank {
    font-size: 26px;
    width: 32px;
  }

  .lb-avatar {
    height: 60px;
    width: 60px;
  }

  .lb-name {
    font-size: 21px;
  }

  .lb-role {
    font-size: 16px;
  }

  .lb-row-right {
    border-top: 1px solid var(--slate-200);
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    padding-left: 0;
  }

  .lb-cat-stats {
    gap: 18px;
  }

  .lb-cat-stat {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
    font-weight: 600;
  }

  .lb-cat-stat .icon {
    height: 26px;
    width: 26px;
  }

  .lb-total {
    display: none;
  }

  .lb-toggle {
    background: var(--slate-100);
    height: 52px;
    margin-left: auto;
    width: 52px;
  }

  .lb-row-detail {
    padding: 14px;
  }

  .activity-table,
  .activity-table tbody,
  .activity-table tr,
  .activity-table td {
    display: block;
    width: 100%;
  }

  .activity-table thead {
    display: none;
  }

  .activity-table tbody tr {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 8px 10px;
  }

  .activity-table tbody tr + tr {
    margin-top: 10px;
  }

  .activity-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--slate-100);
    text-align: right;
  }

  .activity-table td:last-child {
    border-bottom: 0;
  }

  .activity-table td::before {
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
  }

  .activity-table td:nth-child(1)::before {
    content: "Activity";
  }
  .activity-table td:nth-child(2)::before {
    content: "Category";
  }
  .activity-table td:nth-child(3)::before {
    content: "Date";
  }
  .activity-table td:nth-child(4)::before {
    content: "Points";
  }

  .activity-table th.points-col,
  .activity-table td.points-col {
    text-align: right;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 0;
  }

  .leaderboard-card {
    border-radius: 0;
    padding: 12px;
  }

  .lb-rank {
    font-size: 24px;
    width: 30px;
  }

  .lb-avatar {
    height: 56px;
    width: 56px;
  }

  .lb-row-right {
    padding-left: 0;
  }

  .lb-cat-stat {
    font-size: 13px;
  }

  .lb-total .label {
    font-size: 9px;
  }

  .lb-total .value {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    font-size: 14px;
  }

  .page {
    padding: 83px 32px 80px;
  }

  .leaderboard-card {
    border-radius: 0;
    padding: 16px;
  }

  .lb-header {
    margin-bottom: 24px;
  }

  .lb-header h2 {
    font-size: 24px;
    line-height: normal;
    margin: 0 0 8px;
  }

  .lb-subtitle {
    margin: 0;
  }

  .lb-filters {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    justify-content: normal;
    margin-bottom: 24px;
    padding: 16px;
  }

  .filter-controls {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .search-wrap {
    flex: initial;
    min-width: 0;
    width: 100%;
  }

  .select-wrap {
    flex: initial;
    min-width: 0;
    width: 120px;
  }

  .select-wrap:nth-child(3) {
    width: 150px;
  }

  .select-wrap select,
  .search-wrap input {
    font-size: 14px;
    height: 32px;
  }

  .lb-podium {
    align-items: center;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
    max-width: none;
    padding: 32px 8px;
  }

  .podium-slot,
  .lb-podium .podium-slot {
    align-items: center;
    max-width: 280px;
    width: min(100%, 280px);
  }

  .podium-slot.first {
    margin-top: 0;
    order: 1;
  }

  .podium-slot.second {
    order: 2;
  }

  .podium-slot.third {
    order: 3;
  }

  .podium-user {
    margin-bottom: 12px;
    width: auto;
  }

  .podium-avatar {
    height: 88px;
    width: 88px;
  }

  .podium-slot.first .podium-avatar {
    height: 112px;
    width: 112px;
  }

  .podium-name {
    font-size: 20px;
  }

  .podium-role {
    font-size: 14px;
  }

  .podium-score,
  .podium-slot.first .podium-score {
    font-size: 18px;
    padding: 6px 16px;
  }

  .lb-podium .podium-block {
    margin-top: 0;
    width: 100%;
  }

  .podium-slot.first .podium-block {
    height: 174px;
  }

  .podium-slot.second .podium-block {
    height: 118px;
  }

  .podium-slot.third .podium-block {
    height: 86px;
  }

  .podium-rank-number {
    font-size: 96px;
  }

  .podium-slot.first .podium-rank-number {
    font-size: 112px;
  }

  .lb-row {
    border-radius: 12px;
    font-size: 14px;
  }

  .lb-row-main {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .lb-row-left {
    gap: 16px;
    width: 100%;
  }

  .lb-rank {
    font-size: 24px;
    width: 32px;
  }

  .lb-avatar {
    height: 56px;
    width: 56px;
  }

  .lb-name {
    font-size: 18px;
  }

  .lb-role {
    font-size: 14px;
  }

  .lb-row-right {
    border-top: 1px solid var(--slate-200);
    gap: 12px;
    justify-content: space-between;
    margin-top: 0;
    padding-left: 0;
    padding-top: 12px;
    width: 100%;
  }

  .lb-cat-stat {
    align-items: center;
    flex-direction: column;
    font-size: 14px;
    font-weight: 400;
  }

  .lb-total {
    display: flex;
  }

  .lb-toggle {
    height: 36px;
    width: 36px;
  }

  .lb-row-detail {
    padding: 16px;
  }

  .activity-table {
    display: table;
  }

  .activity-table thead {
    display: table-header-group;
  }

  .activity-table tbody {
    display: table-row-group;
  }

  .activity-table tr {
    display: table-row;
  }

  .activity-table th,
  .activity-table td {
    display: table-cell;
    width: auto;
  }

  .activity-table td {
    border-bottom: 0;
    justify-content: normal;
    text-align: left;
  }

  .activity-table td::before {
    content: none;
  }
}

@media (max-width: 640px) {
  .lb-total {
    display: none;
  }

  .activity-table-wrap {
    overflow-x: auto;
    width: 100%;
  }

  .activity-table {
    border-collapse: collapse;
    display: table;
    min-width: 0;
    white-space: normal;
    width: 100%;
  }

  .activity-table thead {
    display: table-header-group;
  }

  .activity-table tbody {
    display: table-row-group;
  }

  .activity-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
  }

  .activity-table tbody tr {
    border: 0;
    border-radius: 0;
  }

  .activity-table tbody tr + tr {
    margin-top: 0;
  }

  .activity-table th,
  .activity-table td {
    display: table-cell;
    width: auto;
  }

  .activity-table td {
    border-bottom: 1px solid var(--slate-200);
    justify-content: normal;
    padding: 16px 8px;
    text-align: left;
  }

  .activity-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .activity-table td::before,
  .activity-table td:nth-child(1)::before,
  .activity-table td:nth-child(2)::before,
  .activity-table td:nth-child(3)::before,
  .activity-table td:nth-child(4)::before {
    content: none;
  }

  .activity-table th.points-col,
  .activity-table td.points-col {
    text-align: right;
  }

}
