h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.lede,
.kicker,
.over-line,
.over-note,
.xp-goal,
.streak,
.fine,
.hint,
.credit,
.unlock-line {
    margin: 0;
}

.lede {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

.kicker {
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
}

.big-score,
.hud-score {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    line-height: 0.95;
}

.big-score {
    margin-top: 6px;
    font-size: 64px;
}

.hud-score {
    font-size: 42px;
}

.hud-score.pop {
    animation: pop 0.22s var(--ease);
}

.hud-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.over-line {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.over-line + .over-line {
    margin-top: 2px;
}

.over-note {
    margin-top: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.over-note[hidden],
.unlock-line[hidden] {
    display: none !important;
}

.xp {
    margin-top: 16px;
}

.xp-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.xp-top span:last-child {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.xp-track,
.combo-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.xp-fill,
.combo-fill {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}

.xp-fill.flash {
    filter: brightness(1.7);
}

.xp-goal,
.streak {
    margin-top: 8px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
}

.streak:empty {
    display: none;
}

.unlock-line {
    margin-top: 10px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 18px;
}

.swatch {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.swatch.locked {
    opacity: 0.28;
    cursor: default;
}

.swatch.selected {
    box-shadow: 0 0 0 2px #12131a, 0 0 0 4px #fff;
}

.swatch:not(:disabled):hover {
    transform: scale(1.12);
}

.btn-primary,
.btn-text {
    display: block;
    width: 100%;
    border: 0;
}

.btn-primary {
    height: 50px;
    margin-top: 4px;
    border-radius: 999px;
    background: #f4f4f5;
    color: #121318;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-primary:hover {
    background: #fff;
}

.btn-primary:active {
    transform: scale(0.985);
}

.btn-text {
    height: 40px;
    margin-top: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--text);
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.setting-label {
    display: block;
    margin-bottom: 6px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
}

.setting-line {
    display: flex;
    gap: 6px;
}

.setting-line .pills {
    flex: 1.35;
}

.pills {
    display: flex;
    gap: 6px;
}

.pill {
    flex: 1;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.pill.on {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.pill:hover {
    color: var(--text);
}

.sound-pill {
    flex: 0.9;
}

.fine,
.hint,
.credit {
    text-align: center;
}

.fine {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.hint {
    margin-top: 4px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 500;
}

.credit {
    margin-top: 8px;
    color: rgba(244, 244, 245, 0.28);
    font-size: 11px;
    font-weight: 600;
}

.combo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.combo.on {
    opacity: 1;
    transform: none;
}

.combo-track {
    flex: 1;
}

.combo.low .combo-fill {
    background: #fff;
}

.combo.pulse .combo-fill {
    animation: glow 0.28s var(--ease);
}

.combo-label {
    min-width: 28px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pad button {
    width: 46px;
    height: 46px;
    justify-self: center;
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(16, 17, 22, 0.55);
    position: relative;
}

.pad button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-right: 2px solid rgba(255, 255, 255, 0.85);
}

.pad button[data-dir="up"]::before { transform: translate(-50%, -30%) rotate(-45deg); }
.pad button[data-dir="right"]::before { transform: translate(-70%, -50%) rotate(45deg); }
.pad button[data-dir="down"]::before { transform: translate(-50%, -70%) rotate(135deg); }
.pad button[data-dir="left"]::before { transform: translate(-30%, -50%) rotate(-135deg); }

.pad button:active {
    background: rgba(255, 255, 255, 0.14);
}

#paused h1,
#over .btn-primary {
    margin-top: 0;
}

#paused h1 {
    margin-bottom: 18px;
}

#over .xp {
    margin-bottom: 14px;
}

#over .btn-primary {
    margin-top: 14px;
}

@keyframes pop {
    40% { transform: scale(1.07); }
}

@keyframes glow {
    40% { filter: brightness(1.85); }
}
