.leaderboard-row {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform: none !important;
  transition: none !important;
}

.layout-rail .leaderboard {
  gap: 8px;
}

#leaderboard[aria-busy="true"] > li:not(.empty) {
  visibility: hidden;
}

.layout-rail .leaderboard .leaderboard-row {
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.leaderboard-row:hover,
.leaderboard-row:focus-within,
.clickable-leaderboard .leaderboard-row:hover,
.clickable-leaderboard .leaderboard-row:focus-within {
  outline: 0;
  background: transparent !important;
  transform: none !important;
}

.leaderboard-row-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 7px;
  row-gap: 4px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff08;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.leaderboard-row-link:hover,
.leaderboard-row-link:focus-visible {
  background: #ffffff0d;
  transform: none !important;
}

.leaderboard-row-link:focus-visible {
  outline: 2px solid #f4c95d;
  outline-offset: 2px;
}

.leaderboard-row.leader .leaderboard-row-link {
  border-color: #f4c95d42;
  background: #f4c95d0c;
}

.leaderboard-row-link .rank {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.ranking-player--home {
  display: contents !important;
}

.ranking-player__identity {
  display: flex;
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ranking-player__identity .player-link__nick {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-player__identity .ranking-flag {
  display: block;
  width: 20px !important;
  height: 14px !important;
  flex: 0 0 auto;
  border: 1px solid #ffffff61;
  border-radius: 4px;
  box-shadow: 0 2px 7px #0005;
}

.ranking-player--home .ranking-time {
  display: block !important;
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  color: #aeb3be;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.layout-rail .leaderboard-row-link .difference,
.leaderboard-row-link .difference {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: center;
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 700px) {
  #awardsCard {
    display: block;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .leaderboard-row-link {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    column-gap: 6px;
    padding: 9px;
  }

  .ranking-player__identity {
    gap: 5px;
  }

  .ranking-player__identity .ranking-flag {
    width: 18px !important;
    height: 12px !important;
  }

  .ranking-player--home .ranking-time,
  .leaderboard-row-link .difference {
    font-size: .66rem;
  }
}