.community__leaders .leaderboards h2 {
  white-space: nowrap;
  overflow: hidden;
}

.community .user-top .user-link {
  text-overflow: ellipsis;
  overflow: hidden;
}

.community__leaders .leaderboards h2 {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.community__leaders .leaderboards {
  border-radius: var(---ui-roundness, 7px);
}

.community {
  grid-template-areas: "online"
                       "leaders";
  gap: 2rem;
  display: grid;
}

@media (min-width: 499.3px) {
  .community {
    grid-template: "online leaders" min-content
                   "online ."
                   / min-content 1fr;
  }
}

.community h2 {
  margin-bottom: 2rem;
  font-size: 1.7em;
}

.community .user-top li {
  white-space: nowrap;
  justify-content: space-between;
  width: 100%;
  display: flex;
}

.community .user-top a:not(.user-link) {
  justify-content: center;
  align-items: center;
  gap: .5ch;
  font-size: .9em;
  display: flex;
}

.community__online {
  grid-area: online;
}

.community__online li {
  padding: .6rem 0;
}

.community__online .user-link {
  margin-inline-end: 1em;
}

.community__leaders {
  grid-area: leaders;
}

.community__leaders .leaderboards {
  grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
  display: grid;
  overflow: hidden;
}

.community__leaders .leaderboards .user-top {
  border: 1px solid rgb(from var(--c-brag) r g b/calc(alpha * .5));
}

.community__leaders .leaderboards h2 {
  letter-spacing: 1px;
  background: var(--c-brag);
  margin: 0;
  padding-inline-start: .8rem;
  font-size: 1.45em;
  font-weight: 600;
  line-height: 2.5em;
}

.community__leaders .leaderboards h2, .community__leaders .leaderboards h2 a {
  color: #fff;
}

:where(html.light) .community__leaders .leaderboards h2 {
  background: var(--c-mistake);
}

.community__leaders .leaderboards li {
  padding-inline: .5rem 1.2rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.community__leaders .leaderboards li:nth-child(2n) {
  background: var(--c-bg-zebra);
}
