.list {
  display: grid;
  grid-template-columns: auto;
  padding: 0;
  list-style: none;
  gap: 2rem;
  counter-reset: toplist-counter;

  > li {
    position: relative;
    counter-increment: toplist-counter;
    display: none;

    &.show {
      display: grid;
    }

    &:before {
      position: absolute;
      content: counter(toplist-counter);

      display: flex;
      align-items: center;
      background-color: var(--toplist-ranking-base-color);
      font-size: 1.4rem;
      font-weight: 700;
      color: white;
      height: auto;
      padding: 0.5rem 1rem;
      border-radius: 0.6rem 0 0.6rem 0;
      top: 0;
      left: 0;
      z-index: 1;

      @include min(tablet) {
        border-radius: 0.6rem 0 0 0.6rem;
        padding: 0;
        height: 100%;
        min-width: 2rem;
        justify-content: center;
      }
    }

    &:first-child:before {
      background-color: var(--toplist-ranking-first-color);
    }

    &:nth-child(2):before {
      background-color: var(--toplist-ranking-second-color);
    }

    &:nth-child(3):before {
      background-color: var(--toplist-ranking-third-color);
    }
  }
}

.loadMore {
  @include flex-align(center, center);
  padding-top: 2rem;

  &.hide {
    display: none;
  }

  > div {
    padding: 1rem 5rem;
  }
}
