.leaderboards-page .beforeContentWrap {
  max-width: 1075px;
  padding-bottom: 20px;
}

.leaderboards {
  width: 100%;
}

.leaderboards__card {
  width: 100%;
  background-color: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 16px;
}

.leaderboards__card--top-user {
  display: flex;
  min-height: 400px;
  align-items: center;
}

.top-user {
  /* width: 33.5%; */
  width: 100%;
  text-align: center;
}

.top-user h1 {
  font-size: 23px;
  font-weight: bold;
  margin-top: 16px;
  margin-bottom: 0;
}

.top-user span {
  margin-top: 2px;
  display: block;
}

.levels {
  /* width: 66.5%; */
  width: 100%;
  display: flex;
  gap: 32px;
}

.levels ul,
.levels li {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.levels ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.levels li {
  display: flex;
}

.levels li div:first-child {
  font-size: 17px;
  font-weight: 700;
}

.levels li > div:first-child {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e4e4e4;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.levels li img {
  width: 15px;
}

.levels li div:first-of-type span {
  display: none;
  font-size: 17px;
}

.levels li div:first-child span {
  color: #fff;
}

.levels li h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}

.levels li span {
  font-size: 12px;
  color: #909090;
}

.levels li span a {
  color: #295ec5;
  font-weight: 700;
  font-size: inherit;
}

.levels li.levels--open div:first-child {
  background-color: #295ec5 !important;
  color: #fff;
}

.levels li.levels--open div:first-child img {
  display: none;
}

.levels li.levels--open div:first-child span {
  display: block;
}

.leaderboards__avatar {
  display: flex;
  justify-content: center;
  position: relative;
}

.leaderboards__avatar figure {
  width: 220px;
  height: 220px;
  background-size: cover;
  border-radius: 50%;
  border: 10px solid #fff;
}

.leaderboards__avatar svg {
  position: absolute;
  height: 100%;
}

.leaderboards__current-level {
  position: absolute;
  bottom: 10px;
  background-color: #295ec5;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 29px;
  font-weight: 700;
  font-family: sans-serif;
  border: 5px solid #fff;
  left: 50%;
  transform: translateX(50px);
}

.leaderboards__info {
  margin: 24px 0 16px;
  display: flex;
  justify-content: space-between;
}

.leaderboards__info span {
  font-size: 13px;
  color: #909090;
  font-style: italic;
}

.leaderboards__info a {
  color: #295ec5;
}

.leaderboards__info a:hover {
  text-decoration: underline;
}

.leaderboards__days {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.leaderboards__days .leaderboards__card {
  padding: 16px;
}

.leaderboards__days .leaderboards__card h2 {
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #e4e4e4;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.leaderboards__days .leaderboards__card ul,
.leaderboards__days .leaderboards__card li {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.leaderboards__days .leaderboards__card ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leaderboards__days .leaderboards__card li {
  display: grid;
  grid-template-columns: 27px 40px 1fr 50px;
  gap: 15px;
  align-items: center;
}

.leaderboards__days .leaderboards__card li span:first-of-type {
  font-weight: bold;
  font-size: 16px;
  color: #909090;
  height: 27px;
  width: 27px;
  border-radius: 50%;
  margin-right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.leaderboards__days .leaderboards__card li:nth-child(1) span:first-of-type {
  background-color: #FFD700;
  color: #fff;
}

.leaderboards__days .leaderboards__card li:nth-child(2) span:first-of-type {
  background-color: #C0C0C0;
  color: #fff;
}

.leaderboards__days .leaderboards__card li:nth-child(3) span:first-of-type {
  background-color: #CD7F32;
  color: #fff;
}

.leaderboards__days .leaderboards__card li figure {
  height: 40px;
  width: 40px;
  background-size: cover;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
}

.leaderboards__days .leaderboards__card li strong {
  font-size: 16px;
}

.leaderboards__days .leaderboards__card li span:last-of-type {
  margin-left: auto;
  color: #295ec5;
  font-weight: bold;
  font-size: 13px;
  text-wrap: nowrap;
}

@media (max-width: 1200px) {
  .leaderboards-page .beforeContentWrap {
    padding: 0 100px;
  }
}

@media (max-width: 1024px) {
  .leaderboards__days {
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .leaderboards-page .beforeContentWrap {
    padding: 20px 10px 100px;
    margin-top: 50px;
  }

  .leaderboards__card--top-user {
    flex-direction: column;
    gap: 30px;
  }

  .top-user {
    width: 100%;
  }

  .levels {
    width: 100%;
    justify-content: center;
  }
}

/* @media (max-width: 700px) {
  .levels {
    flex-direction: column;
  }
} */
