.rank-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 23px;
}

.rank-card > *:not(.rank-link) {
  position: relative;
}

.boost {
  position: absolute !important;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  border: 1px solid var(--coral);
  border-radius: 999px;
  background: var(--surface);
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}

.boost:hover {
  background: var(--coral);
  color: #fff;
}

/* Keep leaderboard content from being auto-placed into the rank column. */
@media (max-width: 700px) {
  .rank-card {
    grid-template-columns: minmax(38px, auto) 45px minmax(0, 1fr) auto;
    min-height: 112px;
  }

  .rank-number {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
  }

  .rank-logo {
    grid-column: 2;
    grid-row: 1;
  }

  .rank-main {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    padding: 0 8px 18px 10px;
  }

  .rank-main h3 {
    padding-right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rank-main > .meta {
    display: flex;
    padding-right: 0;
    overflow: visible;
    white-space: normal;
  }

  .rank-price {
    grid-column: 4;
    grid-row: 1;
  }
}
