:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #151920;
  color: #e8e5df;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1680px; margin: 24px auto; padding: 0 24px; }
header { max-width: 1604px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.heading { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
h1 { font-size: 24px; letter-spacing: .02em; margin: 0; }
header span { color: #b9bbc2; font-size: 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1280px); justify-content: center; gap: 24px; align-items: start; }
.game-column { min-width: 0; }
#player { position: relative; width: 100%; aspect-ratio: 16/9; background: #080a0e; overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; outline: none; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #151920; }
.overlay p { max-width: 440px; line-height: 1.5; }
.overlay p:empty { display: none; }
.notes { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; text-align: center; color: #aeb0b8; font-size: 12px; line-height: 1.4; }
.overlay h2 { font-size: clamp(18px, 3vw, 32px); }
[hidden] { display: none !important; }
button { background: #f9a161; color: #151920; border: 0; border-radius: 4px; padding: 12px 20px; font: 600 15px system-ui; cursor: pointer; }
button:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid #f9a161; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: default; }
.quiet-button { background: transparent; color: #b9bbc2; border: 1px solid #343943; padding: 7px 10px; font-size: 12px; font-weight: 500; }
.quiet-button:hover { color: #e8e5df; border-color: #737985; }
#leaderboard-toggle[aria-expanded="true"] { color: #f9a161; }
progress { width: min(70%, 400px); margin: 16px; accent-color: #f9a161; }
#status, #online-status, #standings-status { color: #b9bbc2; font-size: 13px; line-height: 1.5; }
#status:empty, #online-status:empty, #standings-status:empty { display: none; }
.standings { min-width: 0; width: 100%; max-width: 720px; margin: 0 auto; }
.standings-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.standings h2 { font-size: 17px; font-weight: 600; margin: 0; }
.season-label { display: flex; align-items: center; gap: 8px; color: #aeb0b8; font-size: 12px; }
.standings select { min-width: 0; max-width: 220px; font: inherit; padding: 5px 8px; background: #151920; color: #e8e5df; border: 1px solid #343943; border-radius: 4px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 16px 0 12px; }
th, td { padding: 9px 4px; text-align: left; border-bottom: 1px solid #292e38; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th { color: #aeb0b8; font-size: 11px; font-weight: 500; }
th:first-child, td:first-child { width: 40px; color: #aeb0b8; }
th:last-child, td:last-child { width: 65px; text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:nth-child(-n+3) td:first-child { color: #f9a161; }
.standings:not(.show-all) tbody tr:nth-child(n+11) { display: none; }
.leaderboard-info { margin-top: 18px; color: #aeb0b8; font-size: 12px; line-height: 1.5; }
.leaderboard-info summary { cursor: pointer; }
.leaderboard-info p { max-width: 420px; }
@media (min-width: 1440px) {
  .layout.leaderboard-open { grid-template-columns: minmax(0, 1280px) 300px; }
  .standings { border-left: 1px solid #343943; padding-left: 20px; }
}
@media (max-width: 600px) {
  main { padding: 0 10px; margin: 16px auto; }
  header { flex-wrap: wrap; }
  h1 { font-size: 20px; }
  .heading { gap: 6px; }
  .heading span { flex-basis: 100%; }
}
