:root{--bg:#f4f1ea;--fg:#14172a;--muted:#5b5f7a;--surface:#fff;--accent:#2b3a67;--accent-fg:#f4f1ea;--warning:#92400e;--border:#14172a26}@media (prefers-color-scheme:dark){:root{--bg:#14172a;--fg:#f4f1ea;--muted:#b9bdd6;--surface:#1d2140;--accent:#3a4c85;--accent-fg:#f4f1ea;--warning:#f5a524;--border:#f4f1ea2e}}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--fg);font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}#app{min-height:100vh;flex-direction:column;min-height:100dvh;display:flex}#app>main{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:20px;width:100%;padding:24px;display:flex}.app-header h1{margin:0 0 4px;font-size:1.5rem}.build-info{text-align:center;color:var(--muted);flex-shrink:0;padding:6px 12px 10px;font-size:.7rem}.screen{flex-direction:column;align-items:center;gap:18px;width:100%;max-width:420px;display:none}.screen:not([hidden]){display:flex}.screen--score{max-width:640px}.photo-button,.play-button{background:var(--accent);width:100%;max-width:360px;color:var(--accent-fg);cursor:pointer;border:none;border-radius:16px;justify-content:center;align-items:center;padding:26px 20px;font-size:1.2rem;font-weight:700;display:flex;box-shadow:0 10px 26px #00000040}.photo-button:active,.play-button:active{opacity:.85}.photo-button input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.link-button{min-height:44px;color:var(--accent);cursor:pointer;background:0 0;border:none;padding:8px 12px;font-size:1rem;text-decoration:underline}.secondary-button{border:2px solid var(--border);min-height:48px;color:var(--fg);cursor:pointer;background:0 0;border-radius:12px;padding:12px 22px;font-size:1rem}.hint{color:var(--warning);max-width:360px;margin:0;font-size:.9rem}.hint-small{color:var(--muted);margin:-10px 0 0;font-size:.8rem}.score-container{scroll-behavior:auto;background:var(--surface);border-radius:12px;width:100%;padding:8px;overflow-x:auto}.score{display:block}.staff-line,.bar-line{stroke:var(--fg);stroke-width:1px;opacity:.55}.notehead{fill:var(--fg)}.notehead--hollow{fill:none;stroke:var(--fg);stroke-width:1.6px}.stem,.flag{fill:none;stroke:var(--fg);stroke-width:1.4px}.dot,.rest{fill:var(--fg)}.cursor{stroke:var(--accent);stroke-width:2px}.note--other .notehead,.note--other .notehead--hollow,.note--other .stem,.note--other .flag,.note--other .dot,.note--other .rest{opacity:.35}.note--uncertain .notehead,.note--uncertain .rest,.note--uncertain .dot{fill:var(--warning)}.note--uncertain .notehead--hollow,.note--uncertain .stem,.note--uncertain .flag{stroke:var(--warning)}.voice-picker{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.voice-button{border:2px solid var(--border);background:var(--surface);min-width:64px;min-height:48px;color:var(--fg);cursor:pointer;border-radius:10px;padding:10px 18px;font-size:1rem;font-weight:600}.voice-button--chosen{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.toggle{align-items:center;gap:10px;font-size:1rem;display:flex}.toggle input[type=checkbox]{width:22px;height:22px}.tempo-control{flex-wrap:wrap;align-items:center;gap:8px;width:100%;max-width:360px;font-size:1rem;display:flex}.tempo-value{text-align:center;font-variant-numeric:tabular-nums;min-width:4.5em;font-weight:700}.tempo-step-button{border:2px solid var(--border);background:var(--surface);width:44px;height:44px;color:var(--fg);cursor:pointer;border-radius:10px;flex-shrink:0;font-size:1.4rem;line-height:1}.tempo-step-button:active{opacity:.85}.tap-tempo-button{border:2px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--fg);cursor:pointer;border-radius:10px;flex-shrink:0;padding:8px 14px;font-size:.9rem;font-weight:600}.tap-tempo-button:active{opacity:.85}.tempo-control input[type=range]{flex:100%;order:1;width:100%;height:32px}
