:root{--bg:#f6f1e7;--surface:#fffdf8;--fg:#23201b;--muted:#6b6559;--line:#cfc6b4;--accent:#b4410f;--accent-fg:#fff;--ok:#1f6b3a;--miss:#8a2b12;--miss-bg:#fbe6dc;--ok-bg:#e0f1e4;--focus:#1b5fb8;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#16181d;--surface:#20242b;--fg:#ece8df;--muted:#a39d90;--line:#444a55;--accent:#ff9a62;--accent-fg:#1a1208;--ok:#7fd09a;--miss:#ffb59b;--miss-bg:#3a2119;--ok-bg:#1b3324;--focus:#8ab8ff}}*{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--fg);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:1rem;line-height:1.45;overflow-x:hidden}h1,h2,p{margin:0}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.button{border:2px solid var(--accent);background:var(--accent);min-width:44px;min-height:44px;color:var(--accent-fg);font:inherit;cursor:pointer;border-radius:999px;padding:.6rem 1.2rem;font-weight:700}.button.secondary{color:var(--fg);border-color:var(--fg);background:0 0}.button.small{padding:.4rem 1rem;font-size:.95rem}.button.big{min-width:min(100%,14rem);min-height:64px;font-size:1.5rem}.button:disabled{opacity:.6;cursor:progress}.start{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;max-width:720px;min-height:100dvh;margin:0 auto;padding:32px 16px;display:flex}.brand{letter-spacing:-.02em;font-size:clamp(3rem,14vw,5rem);line-height:1}.tagline{font-size:1.25rem}.tabs{border:2px solid var(--line);background:var(--surface);border-radius:999px;gap:4px;padding:4px;display:flex}.tab{min-height:44px;color:var(--fg);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;padding:.4rem 1.4rem;font-weight:700}.tab[aria-pressed=true]{background:var(--fg);color:var(--bg)}.home-body{justify-items:center;width:100%;display:grid}.units{gap:24px}.songs{gap:8px;width:100%;max-width:32rem;display:grid}.songs-heading{font-size:1.1rem}.song-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.song{border:2px solid var(--line);background:var(--surface);width:100%;min-height:56px;color:var(--fg);font:inherit;text-align:left;cursor:pointer;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;padding:10px 16px;display:grid}.song:hover{border-color:var(--fg)}.song.suggested{border-color:var(--accent);border-width:3px;padding:9px 15px}.song:disabled{opacity:.6;cursor:progress}.song.numbered{grid-template-columns:auto minmax(0,1fr) auto}.song.numbered .song-title{grid-area:1/2}.song.numbered .song-meta{grid-area:2/2}.song.numbered .song-badge{grid-column:3}.song-number{border:2px solid var(--line);border-radius:50%;grid-area:1/1/span 2;place-items:center;width:2.2rem;height:2.2rem;font-weight:700;display:grid}.song.done .song-number{border-color:var(--fg);background:var(--fg);color:var(--bg)}.song-title{font-size:1.1rem;font-weight:700}.song-meta{color:var(--muted);grid-column:1;font-size:.9rem}.song-badge{color:var(--muted);white-space:nowrap;grid-area:1/2/span 2;font-size:.85rem;font-weight:700}.song.suggested .song-badge{color:var(--accent)}.stars{white-space:nowrap;gap:1px;font-size:1.15rem;line-height:1;display:inline-flex}.star{color:var(--muted)}.star.earned{color:var(--accent)}.complete>.stars{font-size:2.75rem}.start.lesson{justify-content:flex-start}.lesson-bar{width:100%;max-width:32rem;display:flex}.lesson-unit{color:var(--muted);font-weight:600}.lesson-title{font-size:clamp(1.8rem,8vw,2.6rem);line-height:1.1}.song-options{justify-items:center;gap:12px;width:100%;max-width:32rem;display:grid}.song-unchecked{color:var(--muted)}.key-field{text-align:left;gap:4px;width:100%;font-weight:600;display:grid}.key-select,.speed-select{border:2px solid var(--line);background:var(--surface);min-height:44px;color:var(--fg);font:inherit;border-radius:12px;padding:8px 12px}.recorder{gap:8px;width:100%;max-width:32rem;display:grid}.recorder-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.recorder-choice{border:2px solid var(--line);background:var(--surface);min-height:44px;color:var(--fg);font:inherit;cursor:pointer;border-radius:12px;padding:8px 12px}.recorder-choice:hover{border-color:var(--fg)}.recorder-choice[aria-pressed=true]{border-color:var(--fg);background:var(--fg);color:var(--bg);font-weight:700}.recorder-choice[aria-pressed=true]:before{content:"✓ "}.recorder-help{text-align:left;font-size:.95rem}.recorder-help summary{cursor:pointer;justify-content:center;align-items:center;min-height:44px;font-weight:600;display:flex}.recorder-sizes{flex-wrap:wrap;justify-content:center;gap:16px;margin-top:8px;display:flex}.recorder-size{text-align:center;margin:0}.hole-size{fill:none;stroke:var(--fg);stroke-width:2px}.size-label{fill:var(--muted);font-family:inherit}.privacy{max-width:32rem;color:var(--muted);font-size:.95rem}.start-error{border:2px solid var(--miss);background:var(--miss-bg);max-width:32rem;color:var(--miss);border-radius:12px;padding:12px 16px;font-weight:600}.practice{gap:16px;max-width:720px;margin:0 auto;padding:16px;display:grid}.notice{border:2px solid var(--accent);background:var(--surface);border-radius:12px;padding:10px 14px}.head{gap:6px;display:grid}.head-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.title{font-size:1.1rem}.context{color:var(--muted);font-size:.9rem;font-weight:600}.tip{border-left:4px solid var(--accent);background:var(--surface);border-radius:4px;padding:10px 14px;font-size:1.05rem}.progress-text{color:var(--muted);font-size:.95rem}.bar{background:var(--line);border-radius:4px;height:8px;overflow:hidden}.bar-fill{background:var(--accent);width:0;height:100%}.target{text-align:center}.target-name{font-size:clamp(4rem,20vw,7.5rem);font-weight:800;line-height:1.05}.target-caption{color:var(--muted)}.staff-wrap{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:8px}.staff{max-height:260px;display:block;overflow:visible}.staff-line,.ledger,.stem{stroke:var(--fg);stroke-width:1px;fill:none}.clef{stroke:var(--fg)}.clef-dot{fill:var(--fg)}.name{fill:var(--muted);font-family:inherit}.flag,.accidental path,.rest-stroke{stroke:var(--fg);stroke-width:1.6px;fill:none;stroke-linecap:round;stroke-linejoin:round}.accidental .bar,.rest-stroke{stroke-width:2.4px}.note-dot,.rest-block,.rest-blob{fill:var(--fg)}.note.done,.rest.done{opacity:.55}.note.done .head{fill:var(--muted);stroke:none}.note.upcoming .head{fill:var(--fg);stroke:none}.note .head.hollow{fill:var(--surface);stroke:var(--fg);stroke-width:1.8px}.note.current .head{fill:var(--accent);stroke:var(--fg);stroke-width:2.5px}.note.current .head.hollow{fill:var(--surface);stroke:var(--accent);stroke-width:3px}.note.current .stem,.note.current .flag{stroke:var(--accent);stroke-width:2.5px}.note.correct .head,.note.correct .stem{stroke:var(--ok)}.note.wrong .head,.note.wrong .stem{stroke:var(--miss)}.note.missed{opacity:.55}.note.correct .head:not(.hollow){fill:var(--ok)}.note.wrong .head:not(.hollow){fill:var(--miss)}.rest.current .rest-block,.rest.current .rest-blob{fill:var(--accent)}.rest.current .rest-stroke{stroke:var(--accent)}.note.current .name{fill:var(--fg);font-size:18px;font-weight:800}.marker{fill:var(--accent);stroke:var(--fg);stroke-width:1.5px}.feedback{text-align:center;min-height:3.2rem;padding:0;font-size:1.2rem;font-weight:700}.feedback.ok{color:var(--ok)}.feedback.miss{background:var(--miss-bg);color:var(--miss);border-radius:12px;padding:10px 14px}.heard{color:var(--muted);text-align:center;font-size:.85rem}.hint{justify-content:center;display:flex}.hint-card{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex-wrap:wrap;justify-content:center;align-items:center;gap:16px;width:100%;padding:12px;display:flex}.hint-diagram{flex:0 260px;min-width:0}.hint-diagram .fingering{max-height:32vh;display:block}.hint-text{text-align:center;flex:12rem;order:-1;font-size:1.15rem;font-weight:600}.hint-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;display:grid}.hint-cards .hint-card{flex-flow:column;gap:8px}.hint-cards .hint-text{flex:none}.hint-heading{color:var(--muted);flex:none;order:-2;font-weight:700}.hint-note{color:var(--muted);text-align:center;grid-column:1/-1;font-size:.95rem}@media (width<=480px){.hint-cards{grid-template-columns:minmax(0,1fr)}}.hint-none{color:var(--muted);text-align:center}.fingering .body{fill:var(--surface);stroke:var(--fg);stroke-width:2px}.fingering .window{fill:var(--line);stroke:none}.fingering circle.hole.covered,.fingering .pin.covered{fill:var(--fg);stroke:var(--fg);stroke-width:2px}.fingering circle.hole.open,.fingering .pin.open{fill:none;stroke:var(--fg);stroke-width:2px;stroke-dasharray:3 3}.fingering .double .pin.open{stroke-width:1.5px;stroke-dasharray:2 2}.fingering .double .pin.covered{stroke-width:1.5px}.fingering .hole.half .pin.open{stroke-dasharray:none}.fingering .hole.half .half-fill{fill:var(--fg);stroke:none}.fingering .label{fill:var(--muted);font-family:inherit}.fingering .bracket{stroke:var(--muted);stroke-width:2px}.complete{text-align:center;border:1px solid var(--line);background:var(--surface);border-radius:12px;justify-items:center;gap:12px;padding:24px 16px;display:grid}.complete h2{font-size:2rem}.complete-lesson{align-items:center;gap:8px;font-weight:700;display:flex}.complete-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex}@media (width>=900px) and (orientation:landscape){.practice{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;max-width:1000px}.practice>.notice,.practice>.head,.practice>.tip,.practice>.feedback,.practice>.heard,.practice>.hint,.practice>.complete{grid-column:1/-1}}.debug{border:1px solid var(--line);background:var(--surface);max-width:calc(100vw - 16px);max-height:50vh;color:var(--fg);opacity:.92;border-radius:8px;padding:8px;font-size:.7rem;position:fixed;bottom:8px;right:8px;overflow:auto}.debug pre{white-space:pre-wrap;margin:0 0 6px;font-family:ui-monospace,Menlo,Consolas,monospace}.debug button{min-height:44px;font:inherit}@media (prefers-reduced-motion:no-preference){.bar-fill{transition:width .2s ease-out}.feedback{transition:color .15s ease-out}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.mode-buttons{gap:12px;width:100%;max-width:32rem;display:grid}.mode-buttons .button.big{width:100%;min-width:0;font-size:1.25rem}.mode-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.mode-actions .button.big{min-width:min(100%,12rem);font-size:1.25rem}.practice.song-run{grid-template-columns:minmax(0,1fr);align-items:start}.staff-next{opacity:.6;background:0 0;padding:4px 8px}.staff-next .staff{max-height:110px}.count-in{text-align:center;justify-items:center;gap:8px;display:grid}.count-number{min-height:1.05em;font-size:clamp(4rem,20vw,7.5rem);font-weight:800;line-height:1.05}.count-caption{color:var(--muted)}.score-line{text-align:center;min-height:1.6rem;font-size:1.2rem;font-weight:700}.verdict{font-family:inherit;font-weight:800}.verdict.correct{fill:var(--ok)}.verdict.wrong{fill:var(--miss)}.verdict.missed{fill:var(--muted)}.summary h2{font-size:clamp(1.5rem,6vw,2rem)}
