.leaderboard {
  padding: 80px 0 72px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.leaderboard__decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 500px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.leaderboard .container {
  position: relative;
  z-index: 1;
}

.leaderboard__top {
  margin-bottom: 40px;
}

.leaderboard__heading {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #f01613;
  margin-bottom: 16px;
  line-height: 1;
}

.leaderboard__subtitle {
  font-size: 24px;
  color: #080806;
  line-height: 1.4;
  margin-bottom: 24px;
}

.leaderboard .btn-primary {
  margin-bottom: 0;
}

.leaderboard__podium {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 32px;
}

.leaderboard__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 8px 8px 0;
  border-radius: 0 64px 64px 0;
}

.leaderboard__bar--1 {
  background: linear-gradient(to right, rgba(255, 200, 6, 0) 0%, #ffc806 100%);
  width: 100%;
}

.leaderboard__bar--2 {
  background: linear-gradient(
    to right,
    rgba(183, 183, 183, 0) 0%,
    #b7b7b7 100%
  );
  width: 80%;
}

.leaderboard__bar--3 {
  background: linear-gradient(to right, rgba(203, 90, 9, 0) 0%, #cb5a09 100%);
  width: 60%;
}

.leaderboard__bar-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.leaderboard__bar-rank {
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}

.leaderboard__bar--1 .leaderboard__bar-rank {
  color: #b8961c;
}

.leaderboard__bar--2 .leaderboard__bar-rank {
  color: #8a8a8a;
}

.leaderboard__bar--3 .leaderboard__bar-rank {
  color: #743303;
}

.leaderboard__bar-user {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}

.leaderboard__bar-score {
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.leaderboard__bar--1 .leaderboard__bar-score {
  color: #b8961c;
}

.leaderboard__bar--2 .leaderboard__bar-score {
  color: #8a8a8a;
}

.leaderboard__bar--3 .leaderboard__bar-score {
  color: #743303;
}

.leaderboard__bar-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.leaderboard__table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 48px;
}

.leaderboard__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 2px solid #c6c6c6;
}

.leaderboard__position {
  font-weight: 800;
  font-size: 20px;
  color: #080806;
  text-transform: uppercase;
  min-width: 30px;
}

.leaderboard__icon {
  font-size: 22px;
}

.leaderboard__username {
  flex: 1;
  font-weight: 500;
  font-size: 16px;
  color: #080806;
}

.leaderboard__score {
  font-weight: 800;
  font-size: 20px;
  color: #8A8A8A;
}

@media (max-width: 768px) {
  .leaderboard {
    padding: 60px 0;
  }
  .leaderboard__top {
    text-align: center;
  }
  .leaderboard__top .btn-primary {
    margin: 0 auto;
  }
  .leaderboard__heading {
    font-size: 28px;
  }
  .leaderboard__subtitle {
    font-size: 16px;
  }
  .leaderboard__bar--2 {
    width: 90%;
  }
  .leaderboard__bar--3 {
    width: 75%;
  }
  .leaderboard__bar-avatar {
    width: 60px;
    height: 60px;
  }

  .leaderboard__bar-rank {
    font-size: 18px;
  }
  .leaderboard__bar-score {
    font-size: 24px;
  }
  .leaderboard__table {
    grid-template-columns: 1fr;
  }
}
