.leaderboard-page-display {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.leaderboard-card {
  height: 80vh;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-item-name {
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #fbf6e9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #3a86ff;
  text-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}

.leaderboard-card .data-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
}

.leaderboard-card .data-list-container::-webkit-scrollbar {
  width: 6px;
}

.leaderboard-card .data-list-container::-webkit-scrollbar-thumb {
  background: rgba(141, 134, 201, 0.3);
  border-radius: 10px;
}

.leaderboard-card .user-item-row {
  height: calc(100% / 8) !important;
  flex: 0 0 calc(100% / 8) !important;
  border-left: 3px solid rgba(141, 134, 201, 0.15);
  padding-left: clamp(0.8rem, 3vw, 1.2rem) !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.leaderboard-card .list-item-img {
  width: clamp(38px, 5vw, 44px) !important;
  height: clamp(38px, 5vw, 44px) !important;
}

.leaderboard-card .list-item-content {
  gap: 0.8rem !important;
}

.leaderboard-card .rank-number {
  width: clamp(40px, 6vw, 55px);
}

.infinite-loader {
  flex-shrink: 0;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  padding-top: 10px;
}

.tabs-wrapper.leaderboard-tabs {
  margin: 0;
}

.leaderboard-card .card-content-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .content-card.leaderboard-card {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 60px);
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 15px 0 0 0;
    background-color: transparent;
  }

  .card-title,
  .tabs-wrapper.leaderboard-tabs {
    margin-left: 15px;
    margin-right: 15px;
  }

  .leaderboard-card .card-content-area {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin-top: 10px;
    background-color: transparent;
    border-top: 1px solid rgba(141, 134, 201, 0.2);
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .leaderboard-page-display {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100%;
  }

  .content-card.leaderboard-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 60px) !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 15px 0 0 0;
    background-color: transparent;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .card-title {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .leaderboard-page-display .tabs-wrapper.leaderboard-tabs {
    margin: 0 15px 12px 15px !important;
    width: auto !important;
    border-radius: 12px !important;
  }

  .leaderboard-page-display .tab-control {
    border-radius: 10px !important;
    padding: 10px 0;
    flex: 1;
  }

  .leaderboard-card .card-content-area {
    border-radius: 0;
    border: none;
    margin-top: 0;
    background-color: transparent;
    border-top: 1px solid rgba(141, 134, 201, 0.2);
    overflow: visible !important;
    width: 100%;
    box-sizing: border-box;
  }

  .leaderboard-card .data-list-container {
    overflow: visible !important;
    height: auto !important;
    flex: none;
    width: 100%;
  }

  .leaderboard-card .user-item-row {
    padding-left: 15px !important;
    padding-right: 15px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .user-name-wrapper {
    margin-right: 20px;
    min-width: 0;
  }

  .user-item-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .infinite-loader {
    padding-bottom: 30px;
    width: 100%;
  }
}
