.standing-board {
  overflow-x: auto;
  border: 1px solid #4f3a67;
  border-radius: 9px;
}

.standing-board table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .86rem;
}

.standing-board thead {
  background: #251b36;
  color: #c4b2da;
  font: 500 .68rem var(--mono);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.standing-board :is(th, td) {
  padding: 9px 10px;
  vertical-align: middle;
}

.standing-board tbody tr + tr { border-top: 1px solid var(--line); }
.standing-board tbody tr:first-child { background: #2b2241; }
.standing-board :is(th, td):last-child { text-align: right; }
.standing-board tbody th { font-weight: 500; }
.standing-name { overflow-wrap: anywhere; }

.standing-board small, .standing-card small {
  display: block;
  color: var(--muted);
  font-size: .70rem;
  white-space: normal;
}

.standing-place span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #554367;
  border-radius: 7px;
  font: 500 .75rem var(--mono);
}

.standing-board tr:first-child .standing-place span {
  background: var(--mint);
  border-color: var(--mint);
  color: #242c1b;
}

.standing-score {
  color: var(--mint);
  font: 500 .93rem var(--mono);
  white-space: nowrap;
}

.standing-rating {
  display: inline-grid;
  color: #d9c6ff;
  font-size: .7rem;
  white-space: nowrap;
}

.standing-stars {
  color: #c5a2ff;
  font-size: .90rem;
  letter-spacing: .04em;
}

.standing-stars i { color: #9580ab; font-style: normal; }

.standing-empty, .standing-card {
  border: 1px solid #47365c;
  border-radius: 9px;
  background: #20182f;
  padding: 13px;
}

.standing-empty strong, .standing-card h3 { font-size: .94rem; }
.standing-empty p, .standing-card h3 { margin: 0 0 4px; }
.standing-card p { margin: 0; }

.standing-account {
  display: grid;
  gap: 10px;
}

.standing-account-header, .standing-account-score, .standing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.standing-account-header, .standing-account-score { justify-content: space-between; }
.standing-account-header strong { overflow-wrap: anywhere; }
.standing-card .standing-button { margin-top: 9px; }
.standing-account-score + p { margin-top: 4px; }

.standing-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #35234e;
  color: #f0e4ff;
  border: 1px solid #664888;
  border-radius: 7px;
  font: 700 .83rem/1.3 'Space Grotesk', 'Segoe UI', sans-serif;
  text-decoration: none;
  padding: 8px 11px;
  cursor: pointer;
}

.standing-button:hover { background: #493166; }
.standing-button:focus-visible, .standing-score-form input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.standing-button:disabled { cursor: wait; opacity: .7; }
.standing-primary { background: #8057de; border-color: #a181ec; color: #fff; }
.standing-primary:hover { background: #6946bf; }
.standing-status { margin: 0; }
.dialog-content p.standing-error { color: #ffb8cf; }
.standing-status + [data-standing-retry] { margin-top: 9px; }

.result-standing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #593c7a;
  border-radius: 9px;
  background: #251a37;
}

.result-standing .standing-score {
  display: block;
  margin-top: 3px;
  font-size: 1.6rem;
}

.result-standing .standing-rating { font-size: .83rem; }
.result-standing .standing-stars { font-size: 1.04rem; }
.result-score-controls:not(:empty) { margin-bottom: 8px; }
.result-score-controls > .standing-button { margin-top: 8px; }

.standing-score-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.standing-score-form label { display: grid; gap: 4px; font-size: .80rem; }

.standing-score-form input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #61458c;
  border-radius: 7px;
  background: #1b1527;
  color: var(--ink);
  font: inherit;
}

.standing-score-form .standing-status { grid-column: 1 / -1; }

@media (max-width: 540px) {
  .masthead-inner { height: auto; min-height: 60px; flex-wrap: wrap; gap: 6px; padding-block: 7px; }
  .header-controls { flex: 1 1 245px; justify-content: flex-end; flex-wrap: wrap; }
  .header-button { min-height: 29px; }
  .standing-board :is(th, td) { padding: 7px 5px; }
  .standing-board .standing-rating { white-space: normal; }
}

@media (max-width: 375px) {
  .standing-board { margin-inline: -6px; }
  .standing-place span { width: 20px; height: 22px; }
  .standing-board .standing-stars { font-size: .72rem; white-space: nowrap; letter-spacing: 0; }
  .standing-board .standing-score { font-size: .79rem; }
}
