.hiscores-toolbar {
  display: grid;
  grid-template-columns: minmax(9rem, .8fr) minmax(0, 1.35fr);
  gap: .7rem 1.2rem;
  padding: .75rem .88rem;
  background: var(--inset);
  border-bottom: 1px solid var(--line);
}

.hiscores-toolbar label {
  display: block;
  margin-bottom: .27rem;
  color: var(--gold);
  font-size: .89rem;
  font-weight: 600;
}

.hiscores-toolbar :is(select, input) {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: .4rem .55rem;
  border: 1px solid var(--brass);
  background: #262821;
  color: var(--text);
  font: inherit;
}

.hiscores-search-field { display: flex; gap: .35rem; }
.hiscores-search-field .button { padding: .4rem .7rem; font: 700 .92rem var(--sans); cursor: pointer; }
.hiscores-notice { padding: .8rem .88rem; color: var(--muted); }
.hiscores-notice:empty { display: none; }
.hiscores-table-wrap:not([hidden]) { overflow-x: auto; }

.hiscores-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.hiscores-table :is(th, td) { padding: .44rem .75rem; }
.hiscores-table thead { background: #d6bf95; color: #302419; }
.hiscores-table thead th { white-space: nowrap; }
.hiscores-table :is(th, td):not(:nth-child(2)) { text-align: right; white-space: nowrap; }
.hiscores-table tbody th { width: 100%; font-weight: 500; overflow-wrap: anywhere; }
.hiscores-table tbody td:first-child { color: var(--gold); }
.hiscores-table tbody tr { border-bottom: 1px solid #494234; }
.hiscores-table tbody tr:nth-child(odd) { background: #21241d; }
.hiscores-table tbody tr:focus-within { background: #353125; }
.hiscores-table tbody a { display: inline-block; }
.hiscores-footer:not([hidden]), .hiscores-pages:not([hidden]) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .8rem;
}
.hiscores-footer { justify-content: space-between; padding: .5rem .88rem; color: var(--muted); font-size: .85rem; }

@media (max-width: 36rem) {
  .hiscores-toolbar { grid-template-columns: minmax(0, 1fr); }
  .hiscores-table { font-size: .9rem; }
  .hiscores-table :is(th, td) { padding: .4rem .43rem; }
}
