:root { color-scheme: dark; scrollbar-color: #64707b var(--canvas); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--canvas); }
*::-webkit-scrollbar-thumb { background: #64707b; border: 2px solid var(--canvas); border-radius: 4px; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.number-field-error { margin: 10px 0 0; padding: 10px 12px; max-width: 420px; border: 1px solid #a16c43; background: #30251e; color: #ffd3aa; font-size: 13px; line-height: 1.5; }
#race-number[aria-invalid=true] { border-color: #dd985d; }
.choice { position: relative; min-width: 0; }
.choice-trigger { display: block; position: relative; width: 100%; min-height: 44px; padding: 10px 36px 10px 12px; border: 1px solid #65717c; border-radius: 0; background: var(--canvas); color: var(--ink); font: inherit; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choice-trigger::after { content: ''; position: absolute; right: 14px; top: calc(50% - 4px); width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.choice-trigger:hover { border-color: var(--muted); }
.choice-trigger[aria-expanded=true] { border-color: var(--accent); }
.choice-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice-trigger:disabled { opacity: .45; cursor: default; }
.choice-menu { position: fixed; z-index: 1000; padding: 5px; overflow: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid #65717c; box-shadow: 0 10px 24px #0005; }
.choice-menu [role=option] { position: relative; min-height: 40px; padding: 10px 28px 10px 10px; font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; }
.choice-menu [role=option]:hover, .choice-menu .is-highlighted { background: #303942; }
.choice-menu [aria-selected=true] { color: var(--accent); }
.choice-menu [aria-selected=true]::after { content: ''; position: absolute; right: 12px; top: 15px; width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.language-switch .choice { width: 76px; }
.language-switch .choice-trigger { padding-left: 10px; padding-right: 28px; font-size: 13px; border-color: var(--line); }
.choice-menu.is-language [role=option] { padding-left: 6px; padding-right: 22px; }
.choice-menu.is-language [aria-selected=true]::after { right: 9px; }
.instant-filter .choice { min-width: 210px; }
.is-updating > .screen-heading { opacity: 1; pointer-events: auto; }
.online-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 78px; }
.online-heading { width: 130px; }
.online-servers { display: flex; justify-content: center; align-items: center; gap: 18px; }
.online-server { flex: 0 1 145px; text-align: center; border: 0; padding: 0; }
.online-pages { justify-content: flex-end; }
.online-pages:has(button:disabled + button:disabled) { display: flex; visibility: hidden; }
.replay-panel .choice-trigger { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
@media (max-width: 760px) {
  .online-bar { grid-template-columns: 90px minmax(0, 1fr) 68px; gap: 10px; }
  .online-heading { width: 90px; }
  .online-server { flex: 0 1 130px; padding: 0; }
  .online-servers { gap: 10px; }
  .language-switch .choice { width: 68px; }
  .language-switch .choice-trigger { min-height: 40px; font-size: 11px; padding-left: 8px; padding-right: 26px; }
  .language-switch .choice-trigger::after { right: 10px; }
  .instant-filter .choice { min-width: 140px; max-width: 180px; }
}
