:root {
    color-scheme: dark;
    --sb-font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --sb-bg: #121212;
    --sb-panel: #142126;
    --sb-raised: #1b2c31;
    --sb-border: #ffffff20;
    --sb-border-strong: #a8c4b142;
    --sb-text: #eef4f3;
    --sb-muted: #aec1bd;
    --sb-accent: #c0f397;
    --sb-hover: #c5eea123;
    --sb-radius: 8px;
}

body,
body.help-page-body,
body.hall-page-body {
    background: var(--sb-bg);
    color: var(--sb-text);
    font-family: var(--sb-font);
    letter-spacing: 0;
}

button, input, select, textarea { font-family: inherit; }
button, a, [role="button"], .button-link { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--sb-accent); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid #afff86;
    outline-offset: 3px;
}
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
::selection { background: #c5eea140; color: var(--sb-text); }
* { scrollbar-color: var(--sb-border-strong) var(--sb-bg); }

body.help-page-body .help-page,
body.hall-page-body .hall-page,
body.offline-page main {
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    background: var(--sb-panel);
    box-shadow: 0 14px 40px #00000030;
}
.help-page h1, body.hall-page-body h1, .offline-page h1 {
    color: var(--sb-text);
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.1;
}
.help-page h2 { color: var(--sb-text); font-weight: 500; }
.help-page strong { color: var(--sb-text); }
.help-page p, .help-page li, .hall-page .intro, .hall-page .empty { color: var(--sb-muted); }
.hall-page .leaderboard th, .hall-page .leaderboard td { border-color: var(--sb-border); }
.hall-page .leaderboard th, .hall-page .rank { color: var(--sb-muted); }
.hall-page .leaderboard tbody tr:first-child td { color: var(--sb-accent); }
.hall-page .error { color: #f0a3a3; }
.help-language {
    background: transparent;
    border-color: var(--sb-border-strong);
    color: var(--sb-muted);
    font-size: 10px;
    letter-spacing: 2px;
}
.help-divider { background: var(--sb-border); }
.help-button, .hall-page .button, .offline-page button,
.map-editor button, .map-editor select {
    padding: 10px 16px;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    background: var(--sb-panel);
    color: var(--sb-text);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}
.help-button:hover, .hall-page .button:hover, .offline-page button:hover,
.map-editor button:hover { background: var(--sb-hover); border-color: var(--sb-border-strong); }
.offline-page main { margin: 20px; }
.map-editor #tools {
    padding: 10px;
    border-bottom: 1px solid var(--sb-border);
    background: var(--sb-panel);
    font-size: 12px;
}
