.leaderboard-page {
  padding-top: 45px;
  padding-bottom: 64px;
}

.leaderboard-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.leaderboard-intro {
  max-width: 840px;
}

.leaderboard-intro .eyebrow {
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.leaderboard-intro h1 {
  display: block;
  margin-bottom: 22px;
  font-size: clamp(62px, 6.7vw, 92px);
  line-height: .96;
  letter-spacing: -.6px;
}

.leaderboard-intro h1 span {
  color: var(--accent);
}

.leaderboard-intro > p:not(.eyebrow) {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.leaderboard-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 27px;
  margin: 27px 0 31px;
}

.leaderboard-head-actions > a:not(.button) {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.leaderboard-head-actions > a:not(.button):hover {
  color: var(--accent);
}

.board-status {
  min-height: 19px;
  margin: 0 0 17px;
  color: var(--caption);
  font-size: 11px;
  line-height: 1.7;
}

.board-status.is-error,
.board-status[data-state="error"] {
  color: var(--accent);
}

.board-rankings,
.board-messages {
  min-width: 0;
}

.leaderboard-page h2 {
  max-width: none;
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.05;
}

.board-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.leaderboard-table {
  width: 100%;
  min-width: 270px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.leaderboard-table th {
  background: var(--surface);
  color: var(--caption);
  font: 400 9px/1.6 var(--mono);
  letter-spacing: .45px;
  text-transform: uppercase;
}

.leaderboard-table td {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  width: 10%;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  width: 43%;
}

.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
  width: 32%;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  width: 15%;
}

.leaderboard-table th:nth-child(n+3),
.leaderboard-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table th:nth-child(n+3) {
  white-space: nowrap;
}

.leaderboard-table td:nth-child(n+3) {
  overflow-wrap: anywhere;
}

.leaderboard-table td:first-child {
  color: var(--caption);
  font-family: var(--mono);
  font-size: 12px;
}

.leaderboard-table tbody tr:first-child td:first-child {
  color: var(--accent);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table td a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: middle;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.leaderboard-table td a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.board-empty {
  margin: 15px 0 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.board-messages {
  margin-top: 48px;
}

.board-note {
  max-width: 690px;
  margin: -5px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.board-explainer {
  max-width: 850px;
  margin-top: 48px;
  padding-top: 31px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 25px;
}

.board-explainer p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.board-explainer p:last-child {
  margin-bottom: 0;
}

.board-explainer p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.board-explainer p a:hover {
  color: var(--accent-hover);
}

.donation-messages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.donation-messages > .board-empty {
  grid-column: 1 / -1;
  margin-top: 0;
}

.donation-message {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}

.donation-message > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 15px;
}

.message-wallet {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font: 12px/1.7 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-wallet:hover {
  color: var(--accent);
}

.message-amount {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.message-copy {
  margin: 17px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.donation-message > footer {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--caption);
  font-size: 10px;
  line-height: 1.8;
}

.donation-message > footer::after {
  display: none;
  content: none;
}

.message-receipt {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.message-hide {
  margin-left: auto;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--caption);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.message-hide:hover {
  color: var(--accent);
}

.message-hide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.message-hide:disabled {
  cursor: wait;
  opacity: .6;
}

@media (max-width: 750px) {
  .leaderboard-page {
    padding-top: 36px;
    padding-bottom: 49px;
  }

  .leaderboard-intro h1 {
    font-size: clamp(52px, 10.8vw, 72px);
  }

  .leaderboard-intro > p:not(.eyebrow) {
    font-size: 14px;
  }

  .leaderboard-page h2 {
    font-size: 33px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 17px 14px;
  }

  .leaderboard-table td {
    font-size: 12px;
  }

  .leaderboard-table td a {
    font-size: 11px;
  }

  .board-messages,
  .board-explainer {
    margin-top: 36px;
  }

  .donation-messages {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .donation-message {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .leaderboard-intro .eyebrow {
    font-size: 8px;
  }

  .leaderboard-intro h1 {
    font-size: clamp(36px, 10.2vw, 43px);
  }

  .leaderboard-head-actions {
    gap: 16px;
    margin-block: 23px 27px;
  }

  .leaderboard-head-actions > a:not(.button) {
    font-size: 11px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 15px 8px;
  }

  .leaderboard-table th {
    font-size: 7px;
    letter-spacing: 0;
  }

  .leaderboard-table td,
  .leaderboard-table td:first-child,
  .leaderboard-table td a {
    font-size: 10px;
  }

  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    width: 12%;
  }

  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) {
    width: 40%;
  }

  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    width: 33%;
  }

  .board-empty {
    padding: 21px;
    font-size: 12px;
  }

  .donation-message {
    padding: 20px;
  }

  .message-wallet,
  .message-amount {
    font-size: 11px;
  }

  .message-copy {
    font-size: 13px;
  }
}
