@font-face { font-family: "GAR Inter"; font-weight: 400; font-display: block; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "GAR Inter"; font-weight: 500; font-display: block; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "GAR Inter"; font-weight: 700; font-display: block; src: url("fonts/Inter-Bold.woff2") format("woff2"); }

:root { color-scheme: dark; --bg: #202020; --border: #454545; --bar: #383838; --text: #EEEEEE; --muted: #A8A8A8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "GAR Inter", sans-serif; }
main { max-width: 1600px; margin: 0 auto; padding: 14px 24px 8px; }
h1 { font-weight: 700; font-size: 28px; margin: 0; }
h1 span { font-weight: 500; color: var(--muted); font-size: 20px; margin-left: 8px; }
h2 { font-weight: 600; font-size: 18px; margin: 0 0 8px; }
a { color: #9BCE3D; }
.muted { color: var(--muted); }
header p { margin: 4px 0; }
.lead { color: var(--text); }
.lead strong { color: #22C55E; font-weight: 700; }
.panel { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
pre { background: #181818; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 12px; white-space: pre-wrap; word-break: break-all; max-height: 160px; overflow: auto; }
button, .file { font: 500 14px "GAR Inter", sans-serif; color: var(--text); background: #2c2c2c; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button:hover:not(:disabled), .file:hover { background: #363636; }
button:disabled { opacity: .45; cursor: default; }
button.main { border-color: #9BCE3D; }
.file input { display: none; }
#status[data-error] { color: #E94C5B; }
#loadbar { display: flex; align-items: center; gap: 12px; margin: 2px 0 4px; font-size: 14px; }
#loadbar button { font-size: 13px; padding: 5px 12px; }
#tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 10px; }
#tabs button { font-size: 13px; padding: 6px 14px; }
#tabs button[aria-selected="true"] { background: #EEEEEE; color: #202020; border-color: #EEEEEE; }
/* One ranking, as large as the window allows without scrolling (canvas is 1560 × 1542). */
#rankings { display: flex; justify-content: center; }
#rankings canvas { display: block; border-radius: 10px; }
