@font-face{font-family:Bravura;src:url(/fonts/Bravura.woff2)format("woff2");font-display:block}:root{--bg:#f7f3ee;--surface:#fff;--surface-2:#efe9e1;--ink:#1f1a24;--ink-2:#5d5566;--line:#ddd4c8;--accent:#e4572e;--accent-ink:#fff;--accent-soft:#fbe3da;--accent-2:#3a6ea5;--good:#2f9e66;--good-soft:#dff3e8;--bad:#d64550;--bad-soft:#fbe1e3;--soft:#f3c9b9;--muted-accent:#f2a98f;--two:#f5d9a8;--three:#c9dcf0;--key-white:#fffdf9;--key-black:#2a2430;--shadow:0 1px 0 #0000000a, 0 8px 24px #28140a12;--r:18px;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#141019;--surface:#1e1924;--surface-2:#2a2331;--ink:#f3eef6;--ink-2:#b2a8bc;--line:#3a3142;--accent:#ff7a50;--accent-ink:#1a0f0a;--accent-soft:#3b2219;--accent-2:#7fb0e6;--good:#45c486;--good-soft:#17301f;--bad:#ff6b74;--bad-soft:#3a1a1e;--soft:#5a3a30;--muted-accent:#8a4c39;--two:#6b5524;--three:#2b4a6b;--key-white:#efe9f2;--key-black:#0c0a0f;--shadow:0 1px 0 #0000004d, 0 8px 24px #00000059;color-scheme:dark}}:root[data-theme=dark]{color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font:17px/1.45 ui-rounded,SF Pro Rounded,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:inherit}.app{max-width:560px;min-height:100dvh;padding:0 16px calc(16px + env(safe-area-inset-bottom));margin:0 auto}.muted{color:var(--ink-2)}.small{font-size:.85rem}.grow{flex:1}.row{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.btn{min-height:52px;font:inherit;cursor:pointer;background:var(--surface-2);color:var(--ink);box-shadow:0 4px 0 var(--line);border:0;border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:0 22px;font-weight:700;text-decoration:none;transition:transform 60ms,box-shadow 60ms;display:inline-flex}.btn:active{box-shadow:0 1px 0 var(--line);transform:translateY(3px)}.btn.primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 4px 0 color-mix(in oklab, var(--accent) 70%, black)}.btn.primary:active{box-shadow:0 1px 0 color-mix(in oklab, var(--accent) 70%, black)}.btn.primary:disabled{opacity:.45}.btn.ghost{box-shadow:none;border:2px solid var(--line);background:0 0}.btn.danger{background:var(--bad-soft);color:var(--bad);box-shadow:none;margin-top:24px}.btn.wide{width:100%}.link{color:var(--accent);font-weight:700;text-decoration:none}.smufl{font-family:Bravura}.smufl:not([fill]){fill:var(--ink)}.smufl-inline{font-family:Bravura;font-size:2.4em;line-height:1;display:inline-block;transform:translateY(.18em)}.staff{display:block;overflow:visible}.staff-line,.ledger{stroke:var(--ink);stroke-width:1.3px;opacity:.85}.bar-line{stroke:var(--ink);stroke-width:1.4px}.bar-thick,.ink{fill:var(--ink)}.stem{stroke-width:1.3px}.stem:not([stroke]){stroke:var(--ink)}.beam{fill:var(--ink)}.slur{fill:var(--ink);stroke:var(--ink);stroke-width:.6px}.hairpin{fill:none;stroke:var(--ink);stroke-width:1.4px}.note-label{font:700 13px/1 system-ui,sans-serif}.note-label:not([fill]){fill:var(--ink-2)}.playhead{stroke:var(--accent);stroke-width:2px;opacity:.8}.ghost{opacity:.45}.ghost .smufl{fill:var(--accent)}.pop{animation:.45s cubic-bezier(.2,1.6,.4,1) both pop}@keyframes pop{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}.keyboard{max-width:100%;margin:0 auto;display:block}.key-white{fill:var(--key-white);stroke:var(--ink);stroke-width:1px;transition:fill .15s}.key-black{fill:var(--key-black);stroke:var(--key-black);transition:fill .15s}.key-white.dim,.key-black.dim{opacity:.35}.key-label{fill:#2a2430;pointer-events:none;font:700 10px system-ui,sans-serif}.key-label.small{font-size:7px}.arc{animation:.35s ease-out both arcIn}.arc-path{fill:none;stroke:var(--accent);stroke-width:2px;stroke-linecap:round}.arc-dot{fill:var(--accent)}.arc-text{fill:var(--accent);font:800 10px system-ui,sans-serif}@keyframes arcIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.scene{flex-direction:column;align-items:center;gap:12px;width:100%;display:flex}.play-btn{cursor:pointer;background:var(--accent-soft);color:var(--accent);font:inherit;border:0;border-radius:999px;align-items:center;gap:8px;padding:10px 18px;font-weight:800;display:inline-flex}.play-btn svg{fill:currentColor}.play-btn.playing{background:var(--accent);color:var(--accent-ink)}.waves{flex-direction:row;gap:10px}.wave-card,.compare-card{background:var(--surface);border:2px solid var(--line);border-radius:var(--r);font:inherit;color:var(--ink);cursor:pointer;flex-direction:column;flex:1;align-items:center;gap:6px;padding:12px 8px;font-weight:700;transition:border-color .15s,transform .1s;display:flex}.wave-card.on,.compare-card.on{border-color:var(--accent);transform:scale(1.03)}.compare-card small{color:var(--ink-2);font-size:.75rem;font-weight:500}.compare{flex-direction:row;align-items:stretch;gap:10px}.wave-svg{width:100%;height:60px;overflow:hidden}.wave-line{fill:none;stroke:var(--accent);stroke-width:3px;stroke-linecap:round}.wave-move{animation:linear infinite waveMove}.wave-card:not(.on) .wave-move{animation-play-state:paused}@keyframes waveMove{0%{transform:translate(0)}to{transform:translate(-200px)}}.metro-svg{width:120px;height:110px}.metro-body{fill:var(--surface-2);stroke:var(--line);stroke-width:2px}.metro-arm{stroke:var(--ink);stroke-width:3px;stroke-linecap:round}.metro-weight{fill:var(--accent)}.beat-dots{gap:8px;display:flex}.beat-dot{background:var(--surface-2);width:38px;height:38px;color:var(--ink-2);border-radius:50%;place-items:center;font-weight:800;transition:all 80ms;display:grid}.beat-dot.on{background:var(--accent);color:var(--accent-ink);transform:scale(1.15)}.beat-dot.first{box-shadow:inset 0 0 0 2px var(--accent)}.metro-bpm{color:var(--ink-2);font-weight:700}.ear-btn{cursor:pointer;background:var(--accent);width:104px;height:104px;color:var(--accent-ink);box-shadow:0 6px 0 color-mix(in oklab, var(--accent) 70%, black);border:0;border-radius:50%;place-items:center;display:grid}.ear-btn svg{fill:currentColor;stroke:currentColor}.ear-btn.pulse{animation:.9s ease-out pulse}@keyframes pulse{0%{box-shadow:0 6px 0 color-mix(in oklab, var(--accent) 70%, black), 0 0 0 0 var(--accent)}to{box-shadow:0 6px 0 color-mix(in oklab, var(--accent) 70%, black), 0 0 0 28px transparent}}.ear small{color:var(--ink-2)}.hidden-staff{display:none}.session{flex-direction:column;min-height:100dvh;display:flex}.top-bar{background:var(--bg);z-index:5;align-items:center;gap:14px;padding:14px 0 8px;display:flex;position:sticky;top:0}.close{color:var(--ink-2);padding:6px;font-size:1.2rem;text-decoration:none}.progress{background:var(--surface-2);border-radius:999px;flex:1;height:14px;overflow:hidden}.progress .fill{background:var(--accent);border-radius:999px;height:100%;transition:width .35s}.card-view{flex:1;padding:12px 0 20px;animation:.35s both slideIn}.card-view h1{margin:4px 0 10px;font-size:1.7rem;line-height:1.15}.kicker{color:var(--accent);text-transform:uppercase;letter-spacing:.06em;font-size:.8rem;font-weight:800}.rich p{margin:0 0 10px;font-size:1.08rem}.rich strong{color:var(--accent)}.card-visual{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);margin-top:18px;padding:16px 12px}@keyframes slideIn{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:none}}.bottom-bar{padding:12px 0 calc(8px + env(safe-area-inset-bottom));background:linear-gradient(transparent, var(--bg) 30%);gap:10px;display:flex;position:sticky;bottom:0}.q-wrap{flex:1;padding:8px 0 220px;animation:.3s both slideIn}.question .prompt{margin:6px 0 14px;font-size:1.35rem;line-height:1.2}.q-visual{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);margin-bottom:18px;padding:14px 10px}.choices{gap:10px;display:grid}.choices.cols-2{grid-template-columns:1fr 1fr}.choices.cols-3{grid-template-columns:repeat(3,1fr)}.choices.cols-4{grid-template-columns:repeat(4,1fr)}.choice{border:2px solid var(--line);background:var(--surface);min-height:60px;font:inherit;color:var(--ink);cursor:pointer;box-shadow:0 3px 0 var(--line);border-radius:16px;padding:6px;font-size:1.15rem;font-weight:800;transition:transform 60ms,background .15s}.choice:active{box-shadow:0 1px 0 var(--line);transform:translateY(2px)}.choice.right{background:var(--good-soft);border-color:var(--good);color:var(--good)}.choice.wrong{background:var(--bad-soft);border-color:var(--bad);color:var(--bad);animation:.35s shake}.choice.faded{opacity:.45}.glyph-label{flex-direction:column;align-items:center;gap:2px;display:inline-flex}.glyph-label small{color:var(--ink-2);font-size:.75rem;font-weight:600}@keyframes shake{25%{transform:translate(-5px)}75%{transform:translate(5px)}}.retry-tag{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:800;display:inline-block}.hint{margin:-6px 0 12px}.hint-toggle{color:var(--accent-2);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:.9rem;font-weight:700}.hint p{color:var(--ink-2);margin:6px 0 0;font-size:.95rem}.hint-line{text-align:center;color:var(--ink-2);margin:8px 0;font-size:.9rem}.staff-answer{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:12px}.feedback{z-index:10;padding:16px max(16px, calc((100vw - 560px) / 2 + 16px)) calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;max-height:72dvh;animation:.25s ease-out both up;position:fixed;bottom:0;left:0;right:0;overflow:auto}.feedback.ok{background:var(--good-soft)}.feedback.no{background:var(--bad-soft)}.feedback p{margin:6px 0 10px}.fb-head{align-items:center;gap:10px;font-size:1.2rem;display:flex}.feedback.ok .fb-head{color:var(--good)}.feedback.no .fb-head{color:var(--bad)}.fb-icon{color:#fff;border-radius:50%;place-items:center;width:32px;height:32px;font-weight:900;display:grid}.feedback.ok .fb-icon{background:var(--good)}.feedback.no .fb-icon{background:var(--bad)}.fb-reveal{background:var(--surface);border-radius:14px;margin-bottom:12px;padding:10px}@keyframes up{0%{transform:translateY(100%)}to{transform:none}}.tap-answer{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);flex-direction:column;gap:12px;padding:12px;display:flex}.tap-marks{height:10px;margin:-8px 8% 0 22%;position:relative}.tap-mark{background:var(--accent);border-radius:3px;width:6px;height:10px;position:absolute;transform:translate(-3px)}.tap-pad{background:var(--accent);height:160px;color:var(--accent-ink);font:inherit;touch-action:manipulation;user-select:none;box-shadow:0 6px 0 color-mix(in oklab, var(--accent) 70%, black);border:0;border-radius:24px;font-size:1.6rem;font-weight:900}.tap-pad:active{box-shadow:0 2px 0 color-mix(in oklab, var(--accent) 70%, black);transform:translateY(4px)}.tap-pad .count{font-size:3rem}.session.done{justify-content:space-between}.results{text-align:center;flex-direction:column;align-items:center;gap:14px;padding-top:48px;display:flex}.big-score{font-size:5rem;font-weight:900;line-height:1;animation:.5s both pop}.big-score span{color:var(--ink-2);font-size:2rem}.grid-row{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.sq{border-radius:6px;width:22px;height:22px;animation:.35s both pop}.sq.g{background:var(--good)}.sq.r{background:var(--bad)}.stats{gap:12px;width:100%;display:flex}.stats>div{background:var(--surface);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;flex:1;padding:12px 6px;display:flex}.stats b{font-size:1.4rem}.stats small{color:var(--ink-2)}.streak-pop{align-items:center;gap:6px;font-size:1.1rem;display:flex}.streak-pop .flame{font-size:1.6rem}.streak-pop.new .flame{animation:1.2s ease-in-out 2 flame}@keyframes flame{50%{transform:scale(1.5)rotate(-8deg)}}.pass-badge{border-radius:999px;padding:6px 14px;font-weight:900}.pass-badge.yes{background:var(--good-soft);color:var(--good)}.pass-badge.no{background:var(--bad-soft);color:var(--bad)}.home{padding-bottom:40px}.home-head{justify-content:space-between;align-items:center;padding:16px 0 10px;display:flex}.brand{letter-spacing:-.02em;color:var(--accent);font-size:1.5rem;font-weight:900}.chips{gap:8px;display:flex}.chip{background:var(--surface);box-shadow:var(--shadow);border-radius:999px;padding:6px 12px;font-weight:800;text-decoration:none}.chip.streak:not(.lit){filter:grayscale();opacity:.7}.continue-card{background:var(--surface);box-shadow:var(--shadow);border:2px solid var(--accent-soft);border-radius:22px;flex-direction:column;gap:6px;margin:6px 0 12px;padding:20px;text-decoration:none;display:flex}.continue-card small{color:var(--ink-2);font-weight:600}.continue-card strong{font-size:1.5rem;line-height:1.15}.continue-card .btn{margin-top:8px}.row-cards{grid-template-columns:1fr 1fr;gap:10px;display:grid}.mini-card{background:var(--surface);box-shadow:var(--shadow);border-radius:18px;flex-direction:column;gap:2px;padding:14px;text-decoration:none;display:flex}.mini-card small{color:var(--ink-2);font-weight:600}.mini-card.daily:not(.played){background:var(--accent);color:var(--accent-ink)}.mini-card.daily:not(.played) small{color:inherit;opacity:.85}.level-line{justify-content:space-between;margin:14px 4px 4px;font-weight:700;display:flex}.games h3{margin:22px 0 8px;font-size:1rem}.game-row{scrollbar-width:none;gap:8px;padding-bottom:6px;display:flex;overflow-x:auto}.game-chip{background:var(--surface);box-shadow:var(--shadow);border-radius:999px;flex:none;align-items:center;gap:6px;padding:10px 14px;font-weight:700;text-decoration:none;display:flex}.game-chip.locked{opacity:.5}.path{margin-top:18px}.part-head{margin:26px 0 10px}.part-head small{color:var(--accent);text-transform:uppercase;letter-spacing:.06em;font-size:.75rem;font-weight:800}.part-head h2{margin:2px 0 0;font-size:1.3rem}.unit{background:var(--surface);box-shadow:var(--shadow);border-radius:20px;margin-bottom:10px;padding:14px}.unit.future{opacity:.6;box-shadow:none;border:2px dashed var(--line);background:0 0;align-items:center;gap:12px;display:flex}.unit.future small,.unit-head small{color:var(--ink-2);font-size:.85rem;display:block}.unit-head{align-items:flex-start;gap:12px;display:flex}.unit-num{background:var(--surface-2);border-radius:12px;flex:none;place-items:center;width:36px;height:36px;font-weight:900;display:grid}.unit.open .unit-num{background:var(--accent);color:var(--accent-ink)}.unit.passed .unit-num{background:var(--good);color:#fff}.unit.locked{opacity:.7}.strength{background:var(--surface-2);border-radius:999px;height:6px;margin-top:8px;overflow:hidden}.strength div{background:var(--good);border-radius:999px;height:100%}.lessons{flex-direction:column;gap:6px;margin:0;padding:8px 0 0;list-style:none;display:flex}.node{margin-left:calc(var(--zig,0) * 22px)}.node a,.node>span{align-items:center;gap:12px;padding:4px 0;text-decoration:none;display:flex}.node .dot{background:var(--surface-2);width:48px;height:48px;box-shadow:0 4px 0 var(--line);border-radius:50%;flex:none;place-items:center;font-weight:900;display:grid}.node.can .dot{background:var(--accent);color:var(--accent-ink);box-shadow:0 4px 0 color-mix(in oklab, var(--accent) 70%, black)}.node.done .dot{background:var(--good);color:#fff;box-shadow:0 4px 0 color-mix(in oklab, var(--good) 70%, black)}.node.locked{opacity:.55}.node.checkpoint .dot{border-radius:14px}.node .lbl{font-weight:700}.unit-actions{flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:10px;font-size:.9rem;display:flex}.foot{text-align:center;margin-top:30px;font-size:.85rem}.game{flex-direction:column;min-height:100dvh;display:flex}.game.intro{text-align:center;justify-content:center;align-items:center;gap:10px;position:relative}.game.intro .close{position:absolute;top:12px;left:0}.game-icon{font-size:4rem}.vs{background:var(--accent-soft);color:var(--accent);border-radius:14px;padding:10px 16px;font-weight:800}.game.count{justify-content:center;align-items:center}.countdown{color:var(--accent);font-size:7rem;font-weight:900;animation:.6s both pop}.game-bar{justify-content:space-between;align-items:center;padding:14px 0;font-size:1.3rem;font-weight:900;display:flex}.timer{background:conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--surface-2) 0);color:var(--ink);border-radius:999px;padding:8px 14px}.game.play.ok{box-shadow:inset 0 0 0 4px var(--good)}.game.play.no{box-shadow:inset 0 0 0 4px var(--bad)}.game.done{justify-content:space-between}.settings{padding:16px 0}.set-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:14px 0;font-weight:700;display:flex}.seg{background:var(--surface-2);border-radius:12px;padding:3px;display:flex}.seg button{font:inherit;color:var(--ink-2);cursor:pointer;background:0 0;border:0;border-radius:10px;padding:8px 14px;font-weight:700}.seg button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:80dvh;display:flex}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.tap-tick{fill:var(--accent)}.tap-tick.good{fill:var(--good)}.tap-tick.bad{fill:var(--bad)}
