:root {
    --bg1: #0b1020;
    --bg2: #122131;
    --lane: #13233a;
    --hitline: #1f3b60;
    --accent: #22c55e;
    --accent2: #38bdf8;
    --text: #ffffff;
    --note: #fbbf24;
    --perfect: #a3e635;
    --good: #60a5fa;
    --late: #f59e0b;
    --miss: #ef4444;
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    height: 100%;
}

#app {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.button {
    background: var(--accent);
    color: #041016;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.button.secondary {
    background: var(--accent2);
    color: #041016;
}

.center { text-align: center; }

canvas {
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
    border: 1px solid #1f2a44;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

label { display: block; margin: 6px 0; }
input[type="range"] { width: 280px; }

.menu {
    padding: 24px;
    max-width: 640px;
}
.leaderboard {
    margin-top: 16px;
    text-align: left;
    display: inline-block;
    background: rgba(255,255,255,0.06);
    padding: 12px 16px;
    border-radius: 8px;
}
.leaderboard h3 { margin: 0 0 8px 0; font-size: 16px; }
.leaderboard .row {
    display: flex; justify-content: space-between; gap: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.leaderboard .row span { opacity: 0.9; }
hr { border: none; border-top: 1px solid #1f2a44; margin: 12px 0; }
.small { opacity: 0.8; font-size: 13px; }
