:root{color-scheme:dark;--bg:#102521;--panel:#18312b;--line:#365047;--text:#f1f4e8;--muted:#aec0b4;--lime:#daf397;--ink:#1c3127;--gold:#f5cd80;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:5px}button:disabled{opacity:.45;cursor:default}button{transition:background .16s,transform .12s,box-shadow .15s}button:active{transform:translateY(2px) scale(.98)}[hidden]{display:none!important}.app{max-width:1240px;margin:auto;padding:0 48px}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14;gap:24px}.brand{font-size:27px;letter-spacing:-1.3px;font-weight:650;display:flex;align-items:center;text-decoration:none;color:var(--text);white-space:nowrap}.brand-dot{color:var(--lime)}.brand-icon{width:32px;height:32px;display:flex;gap:3px;align-items:flex-end;margin-right:11px}.brand-icon i{width:5px;background:var(--lime);border-radius:2px;height:23px}.brand-icon i:nth-child(2){height:32px}.brand-icon i:nth-child(3){height:26px}.brand-icon i:nth-child(4){height:18px}.mode-tabs{display:flex;gap:5px;padding:5px;border:1px solid #ffffff17;border-radius:30px;background:#0a1c18}.mode-tabs button{background:none;border:0;color:#b6c4ba;font-size:14px;padding:11px 22px;border-radius:25px;font-weight:600;white-space:nowrap}.mode-tabs button.selected{background:var(--lime);color:var(--ink)}.quiet-button{border:0;background:none;color:var(--muted);font-size:14px;display:flex;gap:9px;align-items:center;min-height:44px}.sound-icon{font-size:22px;color:var(--lime)}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;padding:36px 0 29px;gap:20px}.eyebrow{font-size:11px;letter-spacing:1.9px;font-weight:650;margin:0 0 11px;color:var(--muted)}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-1.7px;font-size:46px;line-height:1.08;margin:0}h1 em{font-style:italic;color:var(--lime)}#intro-copy{color:var(--muted);line-height:1.7;font-size:15px;margin:0 0 5px}.lesson{border:1px solid var(--line);border-radius:20px;display:grid;grid-template-columns:minmax(0,1fr) 240px;overflow:hidden;background:var(--panel)}.song-main{padding:25px 28px 20px}.song-heading{display:flex;gap:14px;align-items:center}.song-symbol{height:45px;width:45px;border-radius:12px;display:grid;place-items:center;font-family:Georgia,serif;font-size:30px;color:var(--lime);background:#29433a}.song-heading .eyebrow{font-size:10px;letter-spacing:1.5px;margin:0 0 4px}h2{font-weight:500;font-size:24px;letter-spacing:-.5px;margin:0}.level-tag{margin-left:auto;font-size:12px;color:#c8d9b6;background:#2b4337;border:1px solid #435843;border-radius:25px;padding:6px 10px}.lesson-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 19px}.phrase-tabs{display:flex;gap:7px}.phrase-tab{border:1px solid #486053;border-radius:50%;width:33px;height:33px;display:grid;place-items:center;background:transparent;color:#acbeb1;font-size:13px;font-weight:600}.phrase-tab.current{background:var(--lime);color:var(--ink);border-color:var(--lime)}.phrase-tab.complete:not(.current){color:var(--lime);border-color:#80935f}.playback-controls{display:flex;gap:10px;align-items:center}.speed-label{font-size:12px;color:var(--muted)}select{appearance:none;background:#10251f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23aec0b4' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;border:1px solid var(--line);border-radius:7px;padding:7px 26px 7px 10px;color:#d3dfd0;font-size:13px}.listen-button{color:var(--lime);background:none;border:0;display:flex;gap:8px;align-items:center;font-size:14px;font-weight:600;min-height:36px;padding:5px 0 5px 9px}.listen-button span{font-size:11px}.phrase-info{display:flex;justify-content:space-between;gap:12px;color:#c6d6ca;font-size:12px;margin-bottom:12px}#phrase-hint{color:#a4b9aa}.note-sequence{display:flex;gap:7px;min-height:69px}.note-chip{flex:1;min-width:0;position:relative;text-align:center;padding:10px 2px 8px;border:1px solid #466050;border-radius:8px;background:#203a30;transition:background .16s,border .16s;color:#dee9d9}.note-chip .pitch{font-weight:600;font-size:20px;display:block;line-height:1.1}.note-chip sup{font-size:10px;opacity:.7;vertical-align:super;padding-left:1px}.note-chip .syllable{font-size:11px;color:#b9ccbb;display:block;margin-top:7px;white-space:nowrap}.note-chip.next{background:var(--lime);border-color:var(--lime);color:var(--ink)}.note-chip.next .syllable{color:#435834}.note-chip.done{background:#2a4937;border-color:#6e8558}.note-chip.demo{background:var(--gold);border-color:var(--gold);color:var(--ink)}.note-chip.demo .syllable{color:var(--ink)}.progress-row{display:flex;align-items:center;gap:12px;margin-top:17px}.progress-track{height:3px;background:#3d5144;flex:1;border-radius:4px;overflow:hidden}#progress-fill{display:block;background:var(--lime);height:100%;width:0;transition:width .25s}#progress-label{font-size:11px;color:var(--muted);white-space:nowrap}.coach{background:#233d31;border-left:1px solid var(--line);padding:25px 24px 20px;display:flex;flex-direction:column;align-items:flex-start}.coach-top{width:100%;display:flex;justify-content:space-between}.coach .eyebrow{color:#b6cbab;font-size:10px}.sparkle{color:var(--lime);font-size:20px;line-height:12px}.coach-note{font-family:Georgia,serif;font-size:85px;color:var(--lime);line-height:1;margin:11px 0 8px;letter-spacing:-5px}.coach-note span{font-family:system-ui,sans-serif;font-size:18px;letter-spacing:0;color:#93ad8a;padding-left:8px}.coach p{font-size:14px;line-height:1.5;margin:4px 0 14px;color:#d4e0cb;min-height:42px}.coach-key{font-size:11px;line-height:1.9;color:#a7be9f;margin-top:auto}kbd{font-family:inherit;padding:2px 6px;border-radius:4px;border:1px solid #637856;font-size:11px;background:#2e4735;margin:0 3px}.primary-button{background:var(--lime);border:0;border-radius:8px;padding:11px 15px;color:var(--ink);font-weight:650;font-size:14px}.coach .primary-button{width:100%;margin-top:auto}.instrument{margin-top:26px;border:1px solid #3d5045;border-radius:15px;overflow:hidden;background:linear-gradient(140deg,#294137,#1c312a);box-shadow:0 20px 45px #0003}.instrument-top{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:12px}.instrument-name{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:650;letter-spacing:1.8px;color:#c4d4c3}.small-keyboard{font-size:20px;color:var(--lime);line-height:1}.tone-tag{letter-spacing:0;font-weight:400;font-size:11px;color:#a1b5a1;border-left:1px solid #64755d;padding-left:11px;margin-left:2px}.instrument-settings{display:flex;gap:22px;align-items:center}.labels-control{display:flex;gap:7px;font-size:12px;align-items:center;color:#b6c8b2;cursor:pointer}.labels-control input{accent-color:var(--lime);width:13px;height:13px}.volume-control{display:flex;gap:9px;align-items:center;color:#b6c8b2}input[type=range]{accent-color:var(--lime);width:90px;height:5px;cursor:pointer}.keyboard{margin:0 18px;position:relative;display:flex;height:218px;isolation:isolate;padding-bottom:7px;border:1px solid #081710;border-radius:0 0 9px 9px;background:#0a1510;touch-action:none;user-select:none;-webkit-user-select:none}.piano-key{touch-action:none;user-select:none;-webkit-user-select:none;position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;border:0;transition:background .09s,transform .09s,box-shadow .09s;outline-offset:-5px!important}.white-key{flex:1;height:100%;background:linear-gradient(90deg,#eef0e2,#fafbef 35%,#eff1e4);border-right:1px solid #a8b4a3;border-radius:0 0 7px 7px;box-shadow:inset 0 -7px 0 #c4cdba,inset 1px 0 0 white;padding:0 0 22px;z-index:1;color:#354b3a}.white-key:last-of-type{border-right:0}.black-key{position:absolute;top:-1px;left:var(--left);width:7.4%;height:61%;z-index:3;background:linear-gradient(90deg,#14261e,#304237 50%,#18281f);box-shadow:inset 0 -7px 0 #0a1710,inset 1px 0 1px #6a7b66,2px 4px 5px #0007;border:1px solid #07170d;border-radius:0 0 5px 5px;color:#c9d8bd;padding:0 0 16px;transform:translateX(-50%)}.key-note{font-size:19px;font-weight:650;line-height:1.4;pointer-events:none}.key-note sub{font-weight:400;font-size:10px;margin-left:2px;bottom:0;vertical-align:baseline;opacity:.55}.key-shortcut{font-family:inherit;font-size:10px;border:1px solid #b0bea6;border-radius:4px;width:19px;height:20px;display:grid;place-items:center;margin-top:7px;color:#63745b;pointer-events:none}.black-key .key-note{font-size:13px}.black-key .key-shortcut{color:#9bae91;border-color:#5a6c50;font-size:10px;height:18px;width:17px}.white-key.expected{background:linear-gradient(#f3f5dd,#d8f29d);box-shadow:inset 0 -7px 0 #97b561,inset 0 0 0 2px #daf397}.white-key.expected:after{content:"";position:absolute;bottom:77px;width:8px;height:8px;border-radius:50%;background:#739b31;box-shadow:0 0 0 5px #a2c66440;animation:breathe 1.8s ease-in-out infinite}.white-key.pressed,.white-key:active{background:linear-gradient(#cee895,#b8da75);transform:translateY(4px);height:calc(100% - 4px);box-shadow:inset 0 -3px #839e56}.black-key.pressed,.black-key:active{background:linear-gradient(#698245,#43612b);transform:translateX(-50%) translateY(3px);box-shadow:inset 0 -3px #263d18}.white-key.sounding{background:linear-gradient(#f7e5bd,#f5cd80);box-shadow:inset 0 -7px #b89b5b}.piano-key.wrong{animation:nudge .2s;box-shadow:inset 0 -7px #b19470;background:#f5dfbd}.keyboard.hide-labels .key-note{visibility:hidden}.instrument-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 24px}.instrument-bottom p{margin:0;font-size:12px;display:flex;align-items:center;gap:8px;color:#d6e1cb}.tip-dot{width:6px;height:6px;display:block;border-radius:50%;background:var(--lime)}.input-hint{font-size:11px;color:#a6b99f}.footer{display:flex;gap:24px;align-items:center;padding:22px 3px 28px;color:#809c8e;font-size:12px}.footer>span{margin-right:auto}.text-button{border:0;background:none;color:#a7bcae;padding:8px 0;font-size:12px}.free-panel{min-height:290px;border:1px solid var(--line);border-radius:20px;padding:40px;background:radial-gradient(ellipse at right bottom,#35523a,transparent 60%),var(--panel);display:flex;justify-content:space-between;align-items:center;gap:22px}.free-panel h2{font-family:Georgia,serif;font-size:34px;color:var(--lime)}.free-panel p:not(.eyebrow){color:var(--muted);font-size:15px}.octave-control{display:flex;align-items:center;gap:18px;white-space:nowrap;font-size:14px;color:#d7e2cd}.octave-control button{width:38px;height:38px;border:1px solid #637455;background:#2f4834;color:var(--lime);border-radius:50%;font-size:23px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{max-width:520px;max-height:90dvh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;padding:27px;line-height:1.65;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#05130ec9;backdrop-filter:blur(5px)}.dialog-header{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.dialog-header h2{font-size:23px;line-height:1.3}.dialog-header button{border:0;background:none;color:var(--muted);font-size:20px;padding:0 5px}dialog p{font-size:14px;color:#c8d7c4}dialog .help-small{font-size:12px;color:var(--muted)}dialog .primary-button{width:100%}.coach.done .coach-note{font-size:64px;margin:21px 0 12px}.whole-song .note-sequence{overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}.whole-song .note-chip{min-width:60px;flex:0 0 60px}@keyframes breathe{50%{box-shadow:0 0 0 8px #a2c66412}}@keyframes nudge{50%{filter:brightness(1.1)}}
@media(min-width:1500px){.app{max-width:1360px}.page-intro{padding-top:48px;padding-bottom:38px}h1{font-size:57px}.lesson{grid-template-columns:minmax(0,1fr) 270px}.song-main{padding:29px 34px 24px}.coach{padding:28px}.keyboard{height:250px}.instrument{margin-top:32px}}
@media(max-width:1000px){.app{padding:0 28px}.lesson{grid-template-columns:minmax(0,1fr) 210px}.song-main{padding:22px}.coach{padding:22px 20px}.topbar{height:85px}.speed-label{display:none}.lesson-toolbar{gap:8px}.playback-controls{gap:4px}.listen-button{font-size:12px}.page-intro h1{font-size:40px}.keyboard{height:210px}.note-chip .syllable{font-size:10px}.phrase-info{font-size:11px}}
@media(max-width:760px){.app{padding:0 18px}.topbar{height:auto;min-height:117px;flex-wrap:wrap;gap:12px;padding:18px 0 15px}.brand{font-size:24px}.brand-icon{transform:scale(.85);margin-right:6px}.mode-tabs{order:3;width:100%;padding:3px;justify-content:center}.mode-tabs button{width:50%;padding:9px 12px}.sound-toggle{margin-left:auto}.page-intro{padding:24px 0 22px;align-items:flex-start}.page-intro h1{font-size:34px;letter-spacing:-1px}.page-intro .eyebrow{font-size:9px;letter-spacing:1.4px}#intro-copy{display:none}.lesson{grid-template-columns:1fr;border-radius:15px}.song-main{padding:20px 18px 15px}.song-heading .eyebrow{font-size:9px;letter-spacing:1px}h2{font-size:22px}.song-symbol{width:39px;height:42px}.level-tag{font-size:10px;padding:5px 8px}.lesson-toolbar{margin:20px 0 15px}.phrase-tab{width:30px;height:30px}.phrase-tabs{gap:6px}.phrase-info{font-size:11px}.note-sequence{gap:5px;min-height:64px}.note-chip{padding:9px 1px 7px}.note-chip .pitch{font-size:19px}.note-chip .syllable{font-size:10px}.coach{border-left:0;border-top:1px solid var(--line);padding:13px 18px;display:grid;grid-template-columns:48px 1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:14px;min-height:80px}.coach-top{grid-column:2;grid-row:1}.coach .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:3px}.sparkle{display:none}.coach-note{grid-column:1;grid-row:1 / 3;font-size:49px;margin:0;letter-spacing:-2px}.coach-note span{font-size:12px;padding-left:3px}.coach p{grid-column:2;grid-row:2;font-size:13px;margin:0;min-height:0;line-height:1.4}.coach-key{display:none}.coach .primary-button{grid-column:3;grid-row:1/3;font-size:12px;padding:10px;max-width:110px}.coach.done .coach-note{font-size:38px;margin:0}.instrument{margin-top:20px;border-radius:12px}.instrument-top{padding:13px 12px}.instrument-name{font-size:9px;letter-spacing:1.2px;gap:7px}.tone-tag{display:none}.instrument-settings{gap:12px}.labels-control{font-size:10px;gap:4px}.volume-control{gap:4px}input[type=range]{width:50px}.keyboard{margin:0 9px;height:190px;padding-bottom:5px}.white-key{padding-bottom:18px;box-shadow:inset 0 -5px #c4cdba}.key-note{font-size:18px}.key-shortcut{display:none}.black-key{padding-bottom:13px;height:58%;width:7.7%}.black-key .key-note{font-size:11px}.black-key .key-note sub{display:none}.white-key.expected:after{bottom:54px;width:6px;height:6px}.instrument-bottom{padding:13px 12px}.instrument-bottom p{font-size:11px}.input-hint{display:none}.footer{font-size:10px;gap:15px;padding-top:14px}.text-button{font-size:11px}.free-panel{min-height:260px;flex-direction:column;align-items:flex-start;padding:28px 24px}.free-panel h2{font-size:31px}.free-panel p:not(.eyebrow){font-size:14px}.free-panel .eyebrow{font-size:10px}.whole-song .note-chip{min-width:45px;flex-basis:45px}dialog{max-width:calc(100% - 32px);padding:22px}}
@media(max-width:380px){.app{padding:0 12px}.song-main{padding:16px 12px}.page-intro h1{font-size:30px}.brand{font-size:22px}.phrase-tabs{gap:4px}.phrase-tab{width:27px;height:27px}.listen-button{font-size:11px;padding-left:6px}.playback-controls select{font-size:11px;padding-left:6px}.note-chip .syllable{font-size:9px}.instrument-name{font-size:8px}.instrument-settings{gap:5px}.coach{padding:12px;column-gap:9px}.level-tag{display:none}.key-note{font-size:16px}.black-key .key-note{font-size:10px}}
@media(pointer:fine) and (min-width:761px){.white-key:hover{filter:brightness(.96)}.black-key:hover{filter:brightness(1.3)}button:hover:not(.piano-key):not(.selected):not(.current){filter:brightness(1.12)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep supporting controls legible at both display sizes. */
.eyebrow,.song-heading .eyebrow,.coach .eyebrow{font-size:12px;letter-spacing:1.3px}.phrase-info,.note-chip .syllable,#progress-label,.coach-key,.tone-tag,.instrument-name,.input-hint,.key-shortcut,.black-key .key-shortcut{font-size:12px}.coach p{font-size:16px}.labels-control,.speed-label,.instrument-bottom p,.footer,.text-button{font-size:14px}.lesson-toolbar{flex-wrap:wrap}.listen-button span{font-family:Arial,sans-serif}
@media(max-width:760px){.page-intro .eyebrow,.song-heading .eyebrow,.coach .eyebrow{font-size:11px}.coach p{font-size:14px}.instrument-name,.labels-control,.instrument-bottom p,.footer,.text-button{font-size:12px}.phrase-info{font-size:12px}.note-chip .syllable{font-size:11px}.song-heading{gap:10px}.instrument-settings{gap:8px}.level-tag{font-size:12px}.phrase-tabs{gap:5px}.phrase-tab{width:32px;height:32px}.coach .primary-button{font-size:12px}}
@media(max-width:380px){.instrument-name{font-size:10px}.phrase-info{gap:6px;font-size:11px}.phrase-tab{width:28px;height:28px}.song-heading .eyebrow{font-size:10px}.page-intro .eyebrow{font-size:10px}.note-chip .syllable{font-size:10px}}
@media(max-width:760px){.page-intro{padding:18px 0}.page-intro .eyebrow,.song-heading .eyebrow{display:none}.page-intro h1{font-size:30px}.song-main{padding:16px 12px 14px}.song-heading h2{font-size:21px}.song-symbol{height:36px;width:36px}.lesson-toolbar{margin:16px 0 12px;gap:6px}.phrase-tabs{gap:4px}.phrase-tab{width:28px;height:28px}.playback-controls{gap:2px}.playback-controls select{font-size:12px;padding-right:23px}.listen-button{font-size:12px;padding-left:5px;gap:5px}.instrument-name{white-space:nowrap;font-size:10px;letter-spacing:.8px}.labels-control{white-space:nowrap;font-size:11px}.instrument-settings{gap:7px}.instrument-top{padding:12px 10px}.coach{min-height:75px}.instrument{margin-top:16px}}

#test-panel{grid-template-columns:1fr}#test-message{min-height:1.5em}
@media(max-width:760px){.mode-tabs button{flex:1;width:auto;padding-inline:8px}}

#practice-goal {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

#level-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .875rem;
}

#level, #speed { min-height: 38px; }
#level:disabled, #speed:disabled { opacity: .65; }
.whole-song .note-sequence { position: relative; }

.practice-coach { min-height: 168px; }
.practice-coach .coach-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.practice-coach .eyebrow { margin: 0; }
#round-clock {
  color: var(--lime);
  font-size: 1.5rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.practice-coach p { margin: 10px 0; }
.round-actions { display: grid; gap: 4px; width: 100%; margin-top: auto; }
.round-results {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 10px;
  margin: 15px 0 0;
}
.round-results dt { color: var(--muted); font-size: .875rem; }
.round-results dd {
  color: var(--lime);
  font-size: 1.125rem;
  font-weight: 650;
  margin: 2px 0 0;
  font-variant-numeric: tabular-nums;
}

.white-key.expected.soft-hint {
  background: linear-gradient(#f4f7e2, #e4f2c1);
  box-shadow: inset 0 -7px #aebe8c, inset 0 0 0 2px #e7f3c0;
}
.white-key.expected.soft-hint::after { opacity: .5; animation: none; }
.white-key.expected.soft-hint.pressed {
  background: linear-gradient(#cee895, #b8da75);
  box-shadow: inset 0 -3px #839e56;
}

@media (max-width:760px) {
  .practice-coach {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    min-height: 0;
  }
  .practice-coach .coach-top { grid-column: 1; grid-row: 1; justify-content: flex-start; }
  .practice-coach p { grid-column: 1; grid-row: 2; margin: 0; }
  .round-actions { grid-column: 2; grid-row: 1 / 3; }
  .practice-coach .primary-button { max-width: none; min-height: 40px; }
  .round-actions .text-button { font-size: .875rem; }
  #round-clock { font-size: 1.25rem; }
  #practice-goal { font-size: .8125rem; }
  #level-picker { gap: 5px; }
  #level, #speed { min-height: 36px; }
}

.portfolio-return { padding: 1rem 5vw; }
.portfolio-return a { color: inherit; }
