/* Responsive leaderboard sizing and weekly-prize polish. */

#leaderboards-modal {
  padding: clamp(.5rem, 2vw, 1.5rem);
}

#leaderboards-modal .modal-box {
  width: min(920px, 100%);
  max-height: calc(100dvh - clamp(1rem, 4vw, 3rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#leaderboards-modal .music-board-description {
  flex: 0 0 auto;
  margin-top: 0;
}

#music-leaderboard-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: .4rem;
}

#leaderboards-modal .close-modal {
  flex: 0 0 auto;
}

.music-board-winner {
  box-shadow: 0 0 0 1px rgba(255, 213, 74, .2) inset;
}

.music-week-prize {
  margin-top: .18rem;
  color: #ffd54a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .01em;
}

@media (max-width: 650px) {
  #leaderboards-modal .modal-box {
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .music-board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .3rem;
  }

  #music-leaderboard-list {
    padding-right: 0;
  }

  .music-board-entry {
    gap: .5rem !important;
  }
}
