.leaderboard {
  padding: 60px 0;
}

.leaderboard__card {
  background: #101722;
  border: 2px solid #2d7cff;
  border-radius: 30px;
  padding: 40px 32px 32px;
}

.leaderboard__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: end;
}

.podium {
  text-align: center;
}

.podium--first {
  transform: translateY(-12px);
}

.podium__avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(180deg, #2d7cff 0%, #101722 100%);
  border: 3px solid #f5b942;
  padding: 0;
}

.podium--first .podium__avatar {
  width: 110px;
  height: 110px;
  border-color: #ffd54a;
}

.podium__avatar img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.podium__rank {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: auto;
}

.podium__name {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.podium__amount {
  color: #ffffff;
  font-size: 13px;
  background: #b38a48;
  border-radius: 8px;
  padding: 8px 14px;
  display: inline-block;
  font-weight: 600;
}

.podium--first .podium__amount {
  background: #ffd365;
  color: #1b2126;
}

.podium--second .podium__amount {
  background: #cdcdcd;
  color: #1b2126;
}

.leaderboard__table-wrap {
  background: #1b2126;
  border-radius: 12px;
  overflow-x: auto;
  padding: 16px;
  margin-top: 8px;
}

.leaderboard__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  min-width: 520px;
}

.leaderboard__table th {
  text-align: left;
  padding: 8px 16px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.leaderboard__table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #ffffff;
  background: #171c29;
  font-weight: 600;
}

.leaderboard__table td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.leaderboard__table td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.leaderboard__player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.leaderboard__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d7cff, #f5b942);
  flex: none;
}

.leaderboard__cta {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .leaderboard__card {
    padding: 28px 16px;
  }
  .leaderboard__top {
    gap: 12px;
  }
  .podium__avatar {
    width: 64px;
    height: 64px;
  }
  .podium--first .podium__avatar {
    width: 76px;
    height: 76px;
  }
  .podium__name {
    font-size: 12px;
  }
  .podium__amount {
    font-size: 11px;
    padding: 4px 10px;
  }
}
