.leaderboard {
  padding: 40px 154px;
}

.leaderboard__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid #000000;
  height: 600px;
  position: relative;
  background-image: url("./../images/leaderboard-bg.png");
  background-size: cover;
  background-position: center;
  padding: 60px;
  gap: 2rem;
}

.leaderboard__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at left center,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  border-radius: 30px;
}

.leaderboard__left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 502px;
}

.leaderboard__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: #ffffff;
  line-height: 46px;
  text-transform: capitalize;
}

.leaderboard__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #ffffff;
  line-height: 28px;
}

.leaderboard__table {
  position: relative;
  z-index: 2;
  background: #131420;
  border: 2px solid #131420;
  border-radius: 16px;
  width: 895px;
  max-width: 55%;
}

.leaderboard__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px 16px 16px;
  border-bottom: 2px solid rgba(114, 115, 121, 0.5);
}

.leaderboard__row--last {
  border-bottom: none;
}

.leaderboard__rank {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  width: 30px;
  padding: 4px;
  flex-shrink: 0;
}

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

.leaderboard__avatar {
  width: 48px;
  height: 48px;
  border-radius: 1000px;
  object-fit: cover;
  flex-shrink: 0;
}

.leaderboard__player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 210px;
}

.leaderboard__name {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  line-height: 24px;
}

.leaderboard__player--simple .leaderboard__name {
  font-size: 18px;
}

.leaderboard__bar {
  height: 5px;
  border-radius: 3px;
  width: 100%;
}

.leaderboard__bar--gold {
  background: linear-gradient(to right, #f9cc4d, #f6b24b);
}

.leaderboard__bar--silver {
  background: linear-gradient(to right, #c0c0c0, #eae0d2);
  width: 172px;
}

.leaderboard__bar--bronze {
  background: linear-gradient(to right, #a85905, #d9c19c);
  width: 109px;
}

.leaderboard__score {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  text-align: right;
  flex: 1;
  line-height: 24px;
}

@media (max-width: 1400px) {
  .leaderboard {
    padding: 40px 60px;
  }

  .leaderboard__table {
    max-width: 50%;
  }

  .leaderboard__title {
    font-size: 36px;
  }
}
@media (max-width: 1200px) {
  .leaderboard__table {
    max-width: 80%;
  }
}
@media (max-width: 1024px) {
  .leaderboard {
    padding: 30px 20px;
  }

  .leaderboard__inner {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
  }

  .leaderboard__table {
    max-width: 100%;
    width: 100%;
  }

  .leaderboard__left {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .leaderboard__inner {
    padding: 24px 16px;
    gap: 24px;
  }

  .leaderboard__left {
    gap: 16px;
  }

  .leaderboard__title {
    font-size: 24px;
    line-height: 30px;
  }

  .leaderboard__text {
    font-size: 14px;
  }

  .leaderboard__row {
    padding: 10px 16px 10px 10px;
    gap: 10px;
  }

  .leaderboard__avatar {
    width: 36px;
    height: 36px;
  }

  .leaderboard__player-info {
    width: 100px;
  }

  .leaderboard__bar--gold {
    width: 100%;
  }

  .leaderboard__bar--silver {
    width: 75%;
  }

  .leaderboard__bar--bronze {
    width: 50%;
  }

  .leaderboard__score {
    font-size: 14px;
  }

  .leaderboard__rank {
    font-size: 16px;
    min-width: 24px;
  }

  .leaderboard__name {
    font-size: 14px;
  }
}
