:root{font-family:DM Sans,system-ui,sans-serif;color:#243642;background:#fff;font-synthesis:none;--cyan: #02afda;--cyan-dark: #007a94;--ink: #243642;--brand-blue: #22b0d9;--muted: #677680;--line: #dde3e7;--surface: #f6f8f9;--selected: #e5f7fb;--app-header-height: 80px}*{box-sizing:border-box}body{margin:0}#root{display:flex;flex-direction:column;min-height:100dvh}#root:has(>.game-running){height:100dvh}button,input,select{font:inherit}button,input[type=range]{cursor:pointer}button{color:inherit;min-height:44px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:9px 14px;font-weight:600;transition:background .15s}button:hover:not(:disabled){background:var(--selected)}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--cyan-dark);outline-offset:3px}h1,h2,p{margin:0}h1,h2,.brand{font-family:Manrope,system-ui,sans-serif}h1{font-size:clamp(25px,3vw,36px);line-height:1.3;letter-spacing:-1px;font-weight:800}h2{font-size:18px;font-weight:750}small{display:block;font-size:12px;color:var(--muted)}.app-header{height:var(--app-header-height);padding:0 24px;display:flex;align-items:center;background:var(--brand-blue)}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#fff;font-size:20px;font-weight:600}.brand:focus-visible{outline-color:#fff}.brand strong{font-weight:800}.brand-mark{display:block;width:28px;height:32px;flex-shrink:0;background:#fff;-webkit-mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%20416%20463'%3e%3cpath%20fill='%2322b0d9'%20d='M%20380,403%20C%20357,432%20322,453%20285,459%20C%20277,460%20268,461%20259,460%20C%20257,459%20256,457%20257,455%20C%20258,453%20260,453%20262,453%20C%20273,453%20285,450%20295,444%20C%20308,438%20318,427%20326,415%20C%20331,404%20334,392%20335,381%20C%20335,368%20332,356%20326,344%20C%20321,335%20314,326%20304,319%20C%20292,310%20277,305%20261,305%20C%20165,305%20165,305%20165,305%20C%20156,305%20147,305%20138,304%20C%20108,301%2080,290%2057,271%20C%2035,253%2017,229%208,202%20C%20-4,167%20-3,129%2011,95%20C%2027,55%2061,23%20102,9%20C%20112,5%20123,2%20134,1%20C%20139,0%20144,0%20149,0%20C%20151,0%20154,-1%20156,1%20C%20157,3%20157,5%20156,6%20C%20154,8%20152,8%20150,8%20C%20147,8%20143,8%20139,9%20C%20114,13%2092,32%2083,55%20C%2078,70%2077,86%2081,101%20C%2088,126%20107,146%20132,153%20C%20138,155%20145,156%20152,156%20C%20182,156%20212,156%20242,156%20C%20242,156%20242,156%20242,156%20C%20250,156%20258,155%20266,156%20C%20288,157%20309,162%20329,172%20C%20353,184%20373,202%20388,224%20C%20390,227%20392,229%20393,232%20C%20393,233%20393,233%20393,233%20C%20394,233%20394,233%20394,233%20C%20406,254%20413,279%20413,304%20C%20414,339%20402,375%20380,403%20z'%20/%3e%3c/svg%3e") center / contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%20416%20463'%3e%3cpath%20fill='%2322b0d9'%20d='M%20380,403%20C%20357,432%20322,453%20285,459%20C%20277,460%20268,461%20259,460%20C%20257,459%20256,457%20257,455%20C%20258,453%20260,453%20262,453%20C%20273,453%20285,450%20295,444%20C%20308,438%20318,427%20326,415%20C%20331,404%20334,392%20335,381%20C%20335,368%20332,356%20326,344%20C%20321,335%20314,326%20304,319%20C%20292,310%20277,305%20261,305%20C%20165,305%20165,305%20165,305%20C%20156,305%20147,305%20138,304%20C%20108,301%2080,290%2057,271%20C%2035,253%2017,229%208,202%20C%20-4,167%20-3,129%2011,95%20C%2027,55%2061,23%20102,9%20C%20112,5%20123,2%20134,1%20C%20139,0%20144,0%20149,0%20C%20151,0%20154,-1%20156,1%20C%20157,3%20157,5%20156,6%20C%20154,8%20152,8%20150,8%20C%20147,8%20143,8%20139,9%20C%20114,13%2092,32%2083,55%20C%2078,70%2077,86%2081,101%20C%2088,126%20107,146%20132,153%20C%20138,155%20145,156%20152,156%20C%20182,156%20212,156%20242,156%20C%20242,156%20242,156%20242,156%20C%20250,156%20258,155%20266,156%20C%20288,157%20309,162%20329,172%20C%20353,184%20373,202%20388,224%20C%20390,227%20392,229%20393,232%20C%20393,233%20393,233%20393,233%20C%20394,233%20394,233%20394,233%20C%20406,254%20413,279%20413,304%20C%20414,339%20402,375%20380,403%20z'%20/%3e%3c/svg%3e") center / contain no-repeat;mask-mode:alpha}.app-layout{display:grid;grid-template-columns:232px minmax(0,1fr);flex:1}.app-footer{display:grid;flex:none;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;padding:0 20px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:12px;line-height:1.5}.app-footer>p{grid-column:2;text-align:center;text-wrap:balance}.app-footer a{color:var(--cyan-dark);text-underline-offset:2px}.debug-button{flex-shrink:0;border-color:transparent;background:transparent;padding-inline:10px;color:var(--cyan-dark);font-size:12px}.app-footer>.debug-button{grid-column:3;display:grid;place-items:center;min-height:38px;padding:0;color:var(--muted)}.app-footer>.debug-button:hover{background:transparent;color:var(--cyan-dark)}.debug-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.settings-debug{width:min(540px,calc(100% - 32px));max-height:85dvh;padding:12px 16px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.settings-debug-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.settings-debug-heading h2{font-size:16px}.settings-debug pre{margin:0;padding:12px;border-radius:6px;background:var(--surface);font:12px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.score-landing-layout{display:block}.score-landing{width:100%;max-width:680px;margin:0 auto;padding:40px 24px}.score-landing-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.score-landing-heading h1{font-weight:600}.score-landing-heading>span{color:var(--muted);font-size:14px}.score-landing .search-field input{font-size:16px}.score-groups{display:grid;gap:32px;margin-top:28px}.score-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.score-group-heading h2{font-size:16px;font-weight:650;letter-spacing:-.2px}.score-group-heading>span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.score-landing .score-list{margin-top:10px;gap:0}.score-landing .score-choice{align-items:flex-start;gap:12px;min-height:52px;padding:16px 8px;border-width:0 0 1px;border-color:var(--line);border-radius:0}.score-landing .score-choice>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.score-landing .score-choice strong{font-size:15px;font-weight:500}.score-description{display:block;margin-top:5px;font-size:13px;font-weight:400;line-height:1.6;color:var(--muted)}.catalogue{padding:28px 16px;border-right:1px solid var(--line);background:var(--surface);min-width:0}.catalogue-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.catalogue-heading h2{font-size:17px}.catalogue-heading>span{color:var(--muted);font-size:13px}.search-field{display:flex;border:1px solid var(--line);border-radius:6px;background:#fff;align-items:center;padding-left:11px}.search-field svg{width:18px;height:18px;stroke:var(--muted);stroke-width:1.7;fill:none;flex-shrink:0}.search-field input{width:100%;min-width:0;border:0;background:transparent;padding:12px 9px;font-size:14px}.search-field input:focus-visible{outline:none}.score-list{display:grid;gap:4px;margin-top:14px}.score-choice{width:100%;display:flex;text-align:left;gap:8px;align-items:flex-start;background:transparent;border-color:transparent;padding:8px 10px;line-height:1.4}.score-choice.selected{background:var(--selected);color:#07596d}.score-choice strong{display:block;font-size:14px;font-weight:400}.score-choice small{margin-top:5px}.score-choice.selected strong{font-weight:500}.score-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;color:var(--cyan-dark);font-size:20px;line-height:1.2}.score-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.score-check,.mobile-score-switcher{display:none}.score-picker{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;max-height:min(80dvh,720px);padding:0;border:0;border-radius:18px 18px 0 0;background:#fff;color:var(--ink);box-shadow:0 -8px 40px #24364226}.score-picker[open]{display:flex;flex-direction:column}.score-picker::backdrop,.settings-debug::backdrop{background:#172e3180}.score-picker-top{padding:12px 20px 16px;flex-shrink:0;border-bottom:1px solid var(--line)}.score-picker .search-field input{font-size:16px}.score-picker-handle{width:36px;height:4px;border-radius:2px;background:#cbd3d9;margin:0 auto 8px}.score-picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.score-picker-heading h2 span{margin-left:8px;font-size:13px;font-weight:400;color:var(--muted)}.score-picker-close{padding:0;width:44px;border:0;background:transparent;font-size:28px;font-weight:400;color:var(--muted)}.score-picker-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 20px max(20px,env(safe-area-inset-bottom))}.score-picker .score-list{display:grid;margin-top:0;gap:4px}.score-picker .score-choice{min-height:52px;padding:12px;align-items:center}.score-picker .score-choice>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.score-picker .score-choice.selected{background:var(--selected);border-color:transparent;box-shadow:none}.score-picker .score-check{display:inline-flex;margin-left:auto;padding-left:8px;color:var(--cyan-dark);flex-shrink:0}.score-empty{padding:16px 0;font-size:14px;color:var(--muted)}.practice{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-rows:auto 1fr;align-content:start;align-items:start;gap:20px 24px;padding:28px;min-width:0;width:100%;max-width:1500px}.piece-heading{grid-column:1;min-width:0}.piece-heading h1{font-size:24px;line-height:1.35;letter-spacing:-.6px;overflow-wrap:anywhere;font-weight:650}.piece-heading>p{color:var(--muted);font-size:13px;line-height:1.5;margin-top:4px}.practice-grid{display:contents}.visual-panel{grid-column:1;grid-row:2;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0}.visual-heading{display:flex;align-items:center;padding:8px 20px;border-bottom:1px solid var(--line)}.instrument-name{display:flex;align-items:center;min-height:44px;font-family:inherit;font-size:16px;font-weight:650}.instrument-select{position:relative;max-width:100%;min-width:0}.instrument-trigger{position:relative;display:block;width:100%;min-height:44px;background:transparent;border:0;border-radius:4px;color:var(--ink);padding:8px 28px 8px 0;font-size:16px;font-weight:650;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:none}.instrument-trigger:hover{background:var(--surface)}.instrument-select svg{flex-shrink:0;pointer-events:none;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.instrument-trigger>svg{position:absolute;right:4px;top:13px}.instrument-options{position:absolute;z-index:5;top:100%;left:-6px;min-width:100%;width:max-content;max-width:min(320px,calc(100vw - 72px));max-height:240px;overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:4px 0 0;padding:4px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 6px 20px #24364224}.instrument-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:10px 12px;border-radius:3px;font-size:15px;line-height:1.4;cursor:pointer}.instrument-option[aria-selected=true]{background:var(--selected);color:#07596d}.instrument-option:hover{background:var(--surface)}.instrument-option>svg{stroke:var(--cyan-dark)}.instrument-stage{min-height:360px;padding:20px;display:flex;align-items:center;justify-content:center;background:#fff}.control-column{grid-column:2;grid-row:1 / 3;min-width:0}.instrument-svg{display:block;width:100%;max-width:460px;max-height:360px;overflow:visible}.lyre{max-height:420px;margin-inline:auto}.lyre-view{width:100%}.lyre-frame,.lyre-frame-metal,.lyre-frame-shine{fill:none;stroke-linecap:butt;stroke-linejoin:round}.lyre-frame{stroke:#8998a4;stroke-width:10}.lyre-frame-metal{stroke:#d8e0e5;stroke-width:6}.lyre-frame-shine{stroke:#f8fafb;stroke-width:1.5;opacity:.8}.lyre-rail{stroke:#49545d;stroke-width:11;stroke-linecap:round}.lyre-rail-shine{stroke:#75818a;stroke-width:2;opacity:.65}.lyre-bar{fill:#e6ebee;stroke:#a1adb5;stroke-width:.8;transition:fill 25ms}.lyre-bar.lit{fill:var(--cyan);stroke:var(--cyan-dark)}.bar-letter{font-size:20px;font-weight:500;fill:#36434d}.bar-octave{font-size:.7em;font-weight:400;fill:#56636d}.lyre-bar.lit+.bar-letter .bar-octave{fill:#354b57}.mallet line{stroke:#83949e;stroke-width:5;stroke-linecap:round}.mallet circle{fill:var(--cyan);stroke:var(--cyan-dark);stroke-width:2}.mallet.moving{transition:transform 25ms linear}.drum-shell{fill:#d9e2e7;stroke:#8b9da8;stroke-width:3}.drum-head{fill:#f5f7f8;stroke:#8b9da8;stroke-width:4}.snare .drum-shell{fill:#dce4e9;stroke:none}.snare-body-edge{fill:none;stroke:#8b9da8;stroke-width:1.5}.snare .drum-head{fill:#fafbfc;stroke:#becbd3;stroke-width:1.5}.snare-rim-outline{fill:none;stroke:#899ba7;stroke-width:8.5}.snare-rim-top{fill:none;stroke:#e8edf0;stroke-width:5.5}.snare-recess{fill:#c5d0d8;stroke:#a5b4be;stroke-width:1}.snare-rim-band{fill:#e3e9ed;stroke:#899ba7;stroke-width:1.5}.strike{fill:#e5ebee;stroke:#d2dce2;stroke-width:1}.strike.lit,.strike.neutral{fill:var(--cyan);stroke:var(--cyan-dark)}.drum-roll{fill:none;stroke:#07596f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.stick{transform-origin:0 0;transform:rotate(28deg)}.stick.down{transform:rotate(47.5deg)}.stick-wood{fill:#c9b18d;stroke:#8d775c;stroke-width:1;stroke-linejoin:round}.stick-shine{fill:none;stroke:#efe0c7;stroke-width:1.5;stroke-linecap:round}.instrument-svg text{font-family:DM Sans,system-ui,sans-serif}.snare>text,.pulse>text{fill:var(--muted);font-size:14px}.bar-notes{border-top:1px solid var(--line);padding:2px 20px}.bar-notes-row{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;column-gap:6px;padding:6px 0;min-width:0;height:calc(var(--rhythm-height) + 34px)}.bar-notes-row.queued{box-shadow:inset 0 1px 0 var(--line)}.bar-notes-number{align-self:start;color:var(--muted);font-size:11px;line-height:12px;font-variant-numeric:tabular-nums}.current .bar-notes-number{color:var(--ink);font-weight:500}.rhythm-strip{min-width:0}.rhythm-track{position:relative;padding-top:22px}.beat-grid{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.beat-mark{position:absolute;top:0;bottom:0;width:0}.beat-mark:after{content:"";position:absolute;top:22px;bottom:0;border-left:1px dotted #e5eaed}.beat-mark.major:after{border-left:1px solid #dce3e7}.beat-mark:last-child:after{left:-1px}.beat-mark.inactive{opacity:.35}.beat-mark>span{position:absolute;left:0;transform:translate(-50%);color:#657983;font-size:10px;font-variant-numeric:tabular-nums;line-height:12px}.note-line{position:relative;z-index:1;height:var(--rhythm-height);list-style:none;margin:0;padding:0}.note-cue{position:absolute;top:0;height:100%;color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:16px;font-weight:650;line-height:1.4}.note-label{position:absolute;z-index:1;left:0;transform:translate(-50%)}.note-label svg{display:block;width:100%;height:100%;overflow:visible}.note-label text{fill:currentColor;font-size:16px;font-weight:650}.note-highlight{position:absolute;left:0;transform:translate(-50%,-50%);border-radius:50%;background:transparent;pointer-events:none}.note-accidental{font-size:.8em;font-weight:500;fill:currentColor;color:inherit}.note-octave{font-size:.6em;font-weight:500;line-height:0;vertical-align:-.2em;color:var(--muted);margin-left:1px}.note-cue.lit .note-octave{color:#3f5662}.note-label .note-technique,.note-label .note-hold{font-family:DM Sans,system-ui,sans-serif;font-size:8px;font-weight:400;fill:currentColor}.note-cue.played,.queued .note-cue{color:var(--muted)}.bar-rest{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--muted);font-family:DM Sans,system-ui,sans-serif;font-size:11px;font-weight:400}.note-cue.lit .note-label{color:var(--cyan-dark)}.note-cue.lit .note-highlight{background:var(--selected)}.rhythm-playhead{position:absolute;top:6px;bottom:0;width:2px;transform:translate(-1px);background:var(--cyan-dark);pointer-events:none}.rhythm-playhead:before{content:"";position:absolute;top:-3px;left:-2px;width:6px;height:6px;background:var(--cyan-dark);border-radius:50%;box-shadow:0 0 0 3px #fff}.bar-notes-end{display:flex;align-items:center;height:calc(var(--rhythm-height) + 34px);border-top:1px solid var(--line);padding:6px 0;font-size:10px;color:var(--muted)}.range-warning{font-size:13px;color:#a33c35;text-align:center}.transport-controls{display:grid;gap:16px}.playback-controls,.practice-settings-panel{border:1px solid var(--line);border-radius:10px;background:#fff}.playback-controls{padding:20px 20px 14px}.playback-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.transport-actions{display:flex;align-items:center;gap:8px;grid-column:1;grid-row:1}.playback-seek{min-width:0;grid-column:1 / -1;grid-row:2}.play-button{background:var(--cyan-dark);color:#fff;border-color:var(--cyan-dark);display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;min-width:90px;font-size:14px}.play-button:hover:not(:disabled){background:#00667e}.play-button svg{width:17px;height:17px;fill:currentColor;flex-shrink:0}.restart-button{display:inline-flex;justify-content:center;align-items:center;width:44px;height:44px;padding:10px;border-color:transparent;background:transparent;color:var(--muted)}.restart-button:before{content:"";width:20px;height:20px;background:currentColor;mask:url(/restart.svg) center / 32px no-repeat;forced-color-adjust:none}.bar-readout{text-align:right;white-space:nowrap;grid-column:2;grid-row:1;font-variant-numeric:tabular-nums}.bar-readout strong{font-size:13px;font-weight:500}.bar-readout strong span{font-size:11px;color:var(--muted);font-weight:400}input[type=range]{width:100%;margin:0;accent-color:var(--cyan-dark);height:30px}.practice input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:transparent;border-radius:3px}.practice input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:linear-gradient(to right,var(--cyan-dark) var(--range-progress),var(--line) var(--range-progress))}.practice input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:14px;width:14px;margin-top:-5px;border:0;border-radius:50%;background:var(--cyan-dark)}.practice input[type=range]::-moz-range-track{height:4px;border-radius:3px;background:var(--line)}.practice input[type=range]::-moz-range-progress{height:4px;border-radius:3px;background:var(--cyan-dark)}.practice input[type=range]::-moz-range-thumb{height:14px;width:14px;border:0;border-radius:50%;background:var(--cyan-dark)}.practice-settings{min-width:0}.practice-settings-panel{padding:16px 20px 12px}.practice-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.practice-settings-heading h2,.challenge-launcher h2{padding-inline-start:8px;font-size:14px;font-weight:650}.reset-settings-button{flex-shrink:0;padding:8px;border-color:transparent;background:transparent;color:var(--cyan-dark);font-size:12px}.speed-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;margin-bottom:8px}.speed-heading label{font-size:13px;font-weight:600}.speed-heading output{display:flex;align-items:baseline;gap:10px;font-size:11px;color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}.speed-heading output span:last-child{color:var(--ink);font-size:13px;font-weight:600}.speed-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.speed-presets button{padding:7px 0;font-size:12px}.speed-presets button[aria-pressed=true]{background:var(--selected);border-color:var(--cyan);color:var(--cyan-dark)}.tempo-controls .speed-presets{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;margin-top:4px}.tempo-controls .speed-presets button{min-height:34px;border:0;background:transparent;color:var(--muted);padding:7px 0;font-size:11px;font-weight:500}.tempo-controls .speed-presets button:hover{background:var(--surface);color:var(--ink)}.tempo-controls .speed-presets button[aria-pressed=true]{background:var(--selected);color:var(--cyan-dark);font-weight:650}.metronome-control{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;min-height:44px;cursor:pointer;font-size:12px;font-weight:400;color:var(--muted)}.metronome-control input{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;flex:0 0 36px;width:36px;height:22px;margin:0;border:1px solid #8e9ba4;border-radius:20px;background:#8e9ba4;cursor:pointer;transition:background .15s}.metronome-control input:before{content:"";position:absolute;width:16px;height:16px;top:2px;left:2px;border-radius:50%;background:#fff;transition:transform .15s}.metronome-control input:checked{border-color:var(--cyan-dark);background:var(--cyan-dark)}.metronome-control input:checked:before{transform:translate(14px)}.part-controls{margin-top:10px;border-top:1px solid var(--line)}.mixer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;list-style:none;cursor:pointer}.mixer-heading[aria-disabled=true]{cursor:default}.mixer-heading::-webkit-details-marker{display:none}.mixer-heading:focus-visible{outline:3px solid var(--cyan-dark);outline-offset:3px;border-radius:4px}.parts-heading{margin:0;font-size:13px;font-weight:600}.mixer-heading>svg{width:14px;height:14px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}.part-controls details[open]>.mixer-heading>svg{transform:rotate(90deg)}.part-table{display:grid;grid-template-columns:minmax(0,.9fr) minmax(44px,1.1fr) auto;column-gap:8px}.part-row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center;min-height:44px;padding:4px 0}.part-row>strong{font-size:12px;font-weight:500;line-height:1.4;min-width:0;overflow-wrap:anywhere}.part-actions{display:flex;gap:2px;flex-shrink:0}.mix-button{display:inline-flex;align-items:center;justify-content:center;width:28px;min-height:32px;padding:0;border-color:transparent;background:var(--surface);color:var(--muted);font-size:11px;font-weight:500}.mix-button[aria-pressed=true]{background:var(--selected);color:var(--cyan-dark);font-weight:700}.mix-button.is-muted{background:#edf0f2;color:#334b59}.part-volume{position:relative;min-width:0}.part-volume input{min-width:0}.part-volume input:disabled{cursor:default}.part-volume output{position:absolute;top:-9px;right:0;min-width:4ch;text-align:right;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums;opacity:0;pointer-events:none}.part-volume:hover output,.part-volume:focus-within output{opacity:1}.practice .part-volume input::-webkit-slider-runnable-track{background:linear-gradient(to right,#9aa9b1 var(--range-progress),var(--line) var(--range-progress))}.practice .part-volume input::-webkit-slider-thumb{width:12px;height:12px;margin-top:-4px;background:#718591}.practice .part-volume input::-moz-range-progress{background:#9aa9b1}.practice .part-volume input::-moz-range-thumb{width:12px;height:12px;background:#718591}.part-row[data-muted=true] .part-volume,.part-row[data-disabled=true] .part-volume{opacity:.5}.part-row[data-disabled=true]>strong{color:#8c989f}.empty-state{padding:60px 40px}.error,.score-error{color:#a33c35;font-size:13px;line-height:1.7;margin:14px 0;overflow-wrap:anywhere}.score-error{padding:0 10px;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1150px){.app-layout{grid-template-columns:220px minmax(0,1fr)}.catalogue{padding:28px 14px}.practice{display:block;padding:24px}.practice-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:20px}.instrument-stage{min-height:270px}.lyre{max-height:360px}.snare{max-height:270px}.control-column,.transport-controls{display:contents}.playback-controls{grid-row:1;padding:10px 12px}.playback-row{grid-template-columns:auto minmax(44px,1fr) auto}.playback-seek{grid-column:2;grid-row:1}.playback-seek input[type=range]{height:44px}.bar-readout{grid-column:3}.practice-grid>.visual-panel{grid-row:2}.practice-settings{grid-row:3}.practice-settings-panel{padding:14px 18px 8px}.mix-button{width:40px;min-height:44px}.tempo-controls .speed-presets button{min-height:44px}.practice .challenge-launcher{grid-row:4;margin-top:0}}@media(max-width:720px){.app-header{padding:0 20px}.brand{font-size:17px;gap:11px}.app-layout{display:block}.score-landing{padding:28px 20px}.catalogue{display:none}.mobile-score-switcher{display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:var(--app-header-height);padding:14px 20px;background:#fff;border-bottom:1px solid var(--line)}.mobile-score-switcher>div{min-width:0}.mobile-score-switcher h1{font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.3px;overflow-wrap:anywhere}.mobile-score-switcher p{margin-top:4px;font-size:13px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}.change-score{flex-shrink:0;font-size:13px;padding:9px 12px;color:var(--cyan-dark);border-color:#b7dce5}.practice{padding:16px 20px 24px}.piece-heading{display:none}.practice-grid{margin-top:0}.transport-actions{gap:2px}.play-button{width:44px;height:44px;min-width:44px;padding:10px}.play-button>span{display:none}.visual-heading{padding:6px 14px}.lyre{max-height:330px}.instrument-stage{padding:18px 10px}.bar-notes{padding-inline:14px}}@media(max-width:360px){.practice,.catalogue{padding-left:14px;padding-right:14px}.instrument-stage{min-height:235px}.part-row>strong{font-size:12px}.part-actions{gap:2px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}.stick:not(.motion-enabled){transform:rotate(28deg)!important}.mallet{transform:var(--rest-pose)!important}}.challenge-launcher{margin-top:22px}.challenge-launcher h2{margin-bottom:10px}.challenge-actions{display:grid;border:1px solid var(--line);border-radius:8px;overflow:hidden}.challenge-button{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:500;text-align:left;border:0;border-radius:0;min-height:48px;padding:10px 14px}.challenge-button+.challenge-button{border-top:1px solid var(--line)}.challenge-button svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.challenge{flex:1;background:#f0f6f8;color:var(--ink);padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left))}.game-header{width:100%;max-width:1040px;margin:0 auto 24px;display:flex;align-items:center;gap:18px}.game-header>div{flex:1;min-width:0}.game-header h1{font-size:19px;letter-spacing:-.4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-header h1:focus,.game-result h1:focus{outline:none}.game-header>button{background:transparent;border-color:#c6d8df;padding:8px 12px}.game-eyebrow{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.7px;color:var(--cyan-dark);margin-bottom:5px}.game-header-star{font-size:30px;color:#c78e18}.game-card{max-width:520px;margin:32px auto;padding:clamp(22px,5vw,38px);border:1px solid #d4e3e9;border-radius:20px;background:#fff;box-shadow:0 12px 40px #233d4e08}.game-setup h2{font-size:30px;letter-spacing:-.8px;margin:8px 0 12px}.game-setup>p{font-size:14px;color:var(--muted);line-height:1.7}.game-speed{margin:28px 0 20px}.game-speed label{display:flex;justify-content:space-between;font-size:14px;font-weight:700;margin-bottom:8px}.game-speed label strong{color:var(--cyan-dark)}.game-options>label{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line);cursor:pointer}.game-options strong{font-size:14px}.game-options small{font-size:12px;line-height:1.5;margin-top:4px}.game-options input{width:24px;height:24px;flex:0 0 24px;accent-color:var(--cyan-dark)}.game-part-picker{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;margin-top:20px}.game-part-picker select{min-height:44px;max-width:65%;font:inherit;border:1px solid var(--line);border-radius:6px;padding:8px}.game-setup>.game-setup-note{font-size:11px;margin:12px 0 20px}.game-primary{background:var(--cyan-dark);color:#fff;border-color:var(--cyan-dark)}.game-primary:hover:not(:disabled){background:#00657c}.game-start{display:flex;justify-content:space-between;width:100%;padding:14px 18px;border-radius:10px}.game-setup>.game-message{color:#9b4231;margin-bottom:16px}.game-running{min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:12px}.game-running .game-header{margin-bottom:10px;flex-shrink:0}.game-progress{max-width:520px;width:100%;margin:0 auto 8px;display:flex;align-items:center;gap:12px;flex-shrink:0}.game-progress progress{height:5px;flex:1;min-width:0;border:none;border-radius:10px;overflow:hidden;accent-color:var(--cyan-dark);background:#d7e5eb}.game-progress progress::-webkit-progress-bar{background:#d7e5eb}.game-progress progress::-webkit-progress-value{background:var(--cyan-dark)}.game-progress>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.game-playing-status{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;height:32px;width:100%;max-width:520px;margin:0 auto 6px;flex-shrink:0;color:#7950bd}.game-playing-status>span{font-size:14px;font-weight:750}.game-playing-status .game-count-in{color:var(--ink);grid-column:1 / -1;text-align:center}.game-perfect-slot{padding-left:8px}.game-perfect{display:inline-block;animation:perfect-pop .25s ease-out}.game-playing-status .game-perfect-streak{display:flex;align-items:center;gap:5px;font-size:11px;padding:4px 8px;border:1px solid transparent;border-radius:20px;background:#eee6fb;white-space:nowrap;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}.game-streak-count{min-width:3ch;text-align:right;font-variant-numeric:tabular-nums;font-size:13px}.game-perfect-streak.streak-bright{color:#8036b1;background:#f1defb;border-color:#dcb8ed}.game-perfect-streak.streak-glow{color:#922e9c;background:#f8e0f7;border-color:#dda8dc;box-shadow:0 0 9px #b34dbe30}.game-perfect-streak.streak-spark{color:#8d3e70;background:#ffecdf;border-color:#e8b796;box-shadow:0 0 12px #df986440}.streak-spark .game-streak-spark{color:#b26a18;animation:streak-spark 1.6s ease-in-out infinite}@keyframes streak-spark{0%,to{transform:rotate(-5deg) scale(1);opacity:.8}50%{transform:rotate(5deg) scale(1.18);opacity:1}}@keyframes perfect-pop{0%{opacity:.4;transform:scale(.85)}to{opacity:1;transform:scale(1)}}.game-board{position:relative;flex:1;min-height:0;width:100%;max-width:520px;margin:0 auto;background:#dbe7ec;border-radius:12px;border:6px solid #dbe7ec;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.game-bar{position:absolute;min-height:0;width:calc(50% - 3px);display:flex;align-items:center;justify-content:space-between;border:2px solid #dbe7ec;border-radius:6px;padding:0 12px;background:#fff;color:#354a56;font-size:clamp(13px,2dvh,20px);font-weight:650;touch-action:none;box-shadow:inset 0 -2px #253e4b0c}.game-bar,.drum-pad{transition:none}.game-bar.natural{right:0}.game-bar.accidental{left:0;background:#eaf1f4}.game-bar sub{font-size:.68em;color:#728792;margin-left:3px}.game-bar.accidental>span:first-child{margin-left:auto}.game-bar.accidental .game-bar-dot{order:-1}.game-bar-dot{width:5px;height:5px;border-radius:50%;background:#bcced6}.game-bar:hover:not(:disabled){background:#fff}.game-bar.accidental:hover:not(:disabled){background:#eaf1f4}.game-bar.cued{border-color:#0787a2;box-shadow:inset 0 0 0 1px #0787a2}.game-bar.cued .game-bar-dot{width:9px;height:9px;background:#0787a2}.game-bar.tapped,.game-bar.tapped:hover{background:#02afda;border-color:#0486a2;color:#102f3a}.game-bar.wrong,.game-bar.wrong:hover{background:#fce4da;border-color:#c76c4b}.game-bar.wrong .game-bar-dot{background:#c76c4b}.game-result{text-align:center;max-width:620px}.game-result h1{font-size:clamp(25px,5vw,34px);margin:14px 0}.game-stars{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 14px;max-width:330px;margin:30px auto 20px}.game-star{color:#dce3e8;display:block;aspect-ratio:1}.game-star svg{width:100%;height:100%;fill:currentColor}.game-star.filled{color:#e8ad29;animation:star-pop .24s ease-out;filter:drop-shadow(0 3px 2px #dda12c28)}@keyframes star-pop{0%{transform:scale(.6) rotate(-12deg)}60%{transform:scale(1.2) rotate(5deg)}to{transform:scale(1) rotate(0)}}.game-result-score{font-size:52px;line-height:1.2;font-weight:800;color:#a97105;font-variant-numeric:tabular-nums}.game-result-score span{font-size:21px;color:#86939a;font-weight:500}.game-result-caption{margin:12px 0 24px;color:var(--muted);font-size:14px}.game-best-streak{display:flex;justify-content:center;align-items:center;gap:12px;padding:10px 14px;margin-bottom:20px;border-radius:8px;background:#f3edfc;color:#7950bd;font-size:12px}.game-best-streak strong{font-size:20px;font-variant-numeric:tabular-nums}.game-result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:18px 0;margin:0;border-block:1px solid var(--line)}.game-result-stats dt{font-size:10px;color:var(--muted);margin-bottom:7px}.game-result-stats dd{font-size:22px;font-weight:750;margin:0}.game-aids{margin:18px 0;color:var(--muted);font-size:11px;line-height:1.7}.game-result-actions{display:flex;justify-content:center;gap:10px}.game-result-actions button{padding:12px 18px}.game-sound-toggle{border:0;background:transparent;font-size:11px;color:var(--muted);margin-top:12px}@media(max-width:540px){.game-card{margin:22px auto;padding:24px 20px}.game-header{gap:12px;margin-bottom:12px}.game-header h1{font-size:16px}.game-header .game-eyebrow{font-size:8px;letter-spacing:1.2px}.game-header>button{font-size:12px;padding:8px 10px}.game-result-stats{gap:5px}.game-result-stats dt{font-size:9px}.game-stars{gap:10px}.game-bar{padding-inline:10px}}.game-judgement{color:var(--muted);font-size:12px}.drum-board{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:520px;margin:0 auto;padding:8px;border:1px solid #cfdee5;border-radius:18px;background:#dbe7ec;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.drum-board:focus{outline:none}.drum-track{position:relative;flex:1;min-height:0;margin:0 8px;overflow:hidden;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#ecf4f7,#f8fbfc)}.drum-cues{position:absolute;inset:0 0 calc(7% + 30px)}.drum-bar-line,.drum-beat-line,.drum-strike-line{position:absolute;inset:0 0 auto;border-top:1px solid #a9bec8}.drum-beat-line{border-color:#c4d3da}.drum-strike-line{top:100%;border-color:#708c99}.drum-cue-bar{position:absolute;height:28px;border-radius:6px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:750}.drum-cue-bar.left{left:5%;width:40%}.drum-cue-bar.right{left:55%;width:40%}.drum-cue-bar.either{left:5%;width:90%}.drum-note{top:0;pointer-events:none;will-change:transform}.drum-note-face{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;border:1px solid #087c95;background:#0787a2;color:#fff;box-shadow:0 3px 8px #233d4e12}.drum-note.right .drum-note-face{background:#7950b4;border-color:#68409f}.drum-note.either .drum-note-face{background:#fff;color:#354a56;border:2px dashed #8b9da8}.drum-note[data-passed] .drum-note-face{background:#c4cbd0;border-color:#a1adb4;color:#39464d;box-shadow:none}.drum-note[data-hit]{z-index:1}.drum-note[data-hit=perfect]{--pop-fill: #f6cf48;--pop-rim: #ab7510}.drum-note[data-hit=good]{--pop-fill: #69dfa1;--pop-rim: #177d51}.drum-note[data-hit=okay]{--pop-fill: #f8aa62;--pop-rim: #a75824}.drum-note[data-hit] .drum-note-face{background:var(--pop-fill);border:2px solid var(--pop-rim);color:#263329;text-transform:capitalize;box-shadow:0 3px 0 var(--pop-rim);animation:drum-note-pop .15s ease-out both}@keyframes drum-note-pop{0%{transform:scale(.98,.64)}18%{transform:scale(1.1,1.25)}50%{transform:scaleX(1.02);opacity:1;animation-timing-function:ease-in}to{transform:scale(1.06,.96);opacity:0}}.drum-hit-target{top:100%;border:2px solid #0787a2;color:#0787a2;pointer-events:none}.drum-hit-target.right{border-color:#7950b4;color:#7950b4}.drum-hit-target.either{border:2px dashed #8b9da8;color:#667f8c}.drum-hit-label{position:absolute;z-index:2;bottom:0;width:100%;padding-bottom:3px;background:#f8fbfc;text-align:center;color:#667f8c;font-size:9px;line-height:10px}.drum-memory{position:absolute;top:50%;width:100%;text-align:center;color:#667f8c;font-size:12px}.drum-pads{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:10px;height:clamp(124px,24dvh,190px);margin-top:8px;padding:16px 9%;flex-shrink:0;border:4px solid #9baeb9;border-radius:50%;background:linear-gradient(180deg,#fff,#edf3f6);box-shadow:inset 0 2px 4px #fff,0 3px #b4c5ce}.drum-pads:before{content:"";position:absolute;top:5px;right:5px;bottom:5px;left:5px;border:1px solid #d1dde3;border-radius:50%;pointer-events:none}.drum-pad{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:clamp(80px,14dvh,112px);min-height:80px;border:2px solid #c3d6df;border-radius:16px;background:#ffffff8c;color:#354a56;padding:6px;touch-action:none;overflow:hidden;box-shadow:0 2px 5px #354a5610}.drum-pad-label{width:100%;flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:8px;font-weight:750;font-size:13px}.drum-pad-label small{display:inline-block;margin:0;padding:2px 5px;border-radius:4px;background:#e7f0f4;font-size:10px}.drum-pad:hover:not(:disabled){background:#e5f7fb99}.drum-pad.left{border-color:#78b8c7}.drum-pad.right{border-color:#b19bce}.drum-pad.tapped,.drum-pad.tapped:hover{background:#02afda38;border-color:#0787a2}.drum-pad.right.tapped,.drum-pad.right.tapped:hover{background:#7950b42e;border-color:#7950b4}.drum-pad.wrong,.drum-pad.wrong:hover{background:#e087623d;border-color:#c76c4b}
