:root{font-family:ui-rounded,"SF Pro Rounded","PingFang SC",system-ui,sans-serif;color:#29334a;background:#f7efd9}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 9% 5%,#fff9e9,transparent 35%),#f7efd9}button{font:inherit;cursor:pointer;border:0}button:focus-visible,input:focus-visible{outline:3px solid #497bdc;outline-offset:3px}.app{max-width:1440px;margin:auto;padding:22px 30px 30px}header{display:flex;align-items:center;justify-content:space-between;padding:0 4px 20px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:45px;height:45px;display:grid;place-items:center;background:#ffb955;border-radius:15px;color:#653f19;font-size:29px;box-shadow:0 5px 0 #e59d40}.brand strong{display:block;font-size:20px}.brand small{display:block;color:#798194;font-size:12px;margin-top:2px}.soft{padding:11px 18px;background:#fff9ef;border:1px solid #ebdfcb;border-radius:16px;color:#536078;font-weight:700}main{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px}.sidebar{padding:26px 18px 16px;background:#fff8eb;border:1px solid #f0e1cb;border-radius:28px;box-shadow:0 12px 32px #7a634b13}.eyebrow{font-size:12px;letter-spacing:.09em;color:#e58754;font-weight:800}.sidebar h1{font-size:30px;line-height:1.3;margin:15px 0 8px}.sidebar h1 span{color:#e69065}.sidebar p{font-size:13px;color:#7c8494;line-height:1.7;margin:0 0 20px}.hand-switch{display:flex;background:#eee5d5;padding:5px;border-radius:15px;margin-bottom:20px}.hand-switch button{flex:1;padding:10px 4px;background:transparent;border-radius:11px;color:#7a8290;font-weight:800}.hand-switch button.selected{background:#fff;box-shadow:0 2px 7px #6f5c3924;color:#39496b}.lesson-list{display:grid;gap:7px}.lesson{display:flex;align-items:center;gap:13px;text-align:left;padding:12px;border-radius:16px;background:transparent;color:#35405a}.lesson:hover{background:#fff2dd}.lesson.selected{background:#e6ecff;box-shadow:inset 0 0 0 1px #cddafd}.lesson-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#fff;font-size:20px}.lesson b{display:block;font-size:14px}.lesson small{display:block;font-size:11px;color:#8992a2;margin-top:3px}.play{min-width:0;background:#fffdf8;border:1px solid #f0e6d5;border-radius:28px;padding:27px 32px 24px;box-shadow:0 15px 45px #7a634b1a}.topline{display:flex;justify-content:space-between;align-items:start;gap:12px}.topline h2{font-size:24px;margin:10px 0 20px}.stars{padding:9px 14px;background:#fff1cf;border-radius:99px;color:#aa7627;font-size:12px;font-weight:800;white-space:nowrap}.score-card{background:#f7f9ff;border:1px solid #e5ebfa;border-radius:22px;padding:18px 22px 15px}.score-header{display:flex;justify-content:space-between;color:#8994ab;font-size:12px;font-weight:700}.staff{height:160px;width:100%;overflow:hidden}.staff svg{display:block;width:100%;height:100%}.note-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.big-note{font-size:32px;color:#527bd4;font-weight:900;margin-right:11px}.note-meta #noteInfo{font-size:13px;color:#8390a8}.hear{border:1px solid #dbe4f9;background:#fff;padding:10px 15px;border-radius:13px;color:#5474b6;font-weight:800}.instruction{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:76px;font-size:15px;font-weight:700}.instruction #feedback{color:#627087}.hint-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#71809a;font-size:12px}.hint-toggle input{accent-color:#6d91e1;width:18px;height:18px}.keyboard-wrap{background:#dbe0eb;padding:8px 8px 13px;border-radius:16px;box-shadow:inset 0 3px 7px #44516b25}.keyboard{height:215px;position:relative;display:flex;touch-action:none;user-select:none}.white-key{position:relative;flex:1;background:linear-gradient(#fff,#f8f7f4);border:1px solid #c9ced8;border-radius:0 0 9px 9px;box-shadow:0 6px 0 #b9bec8;display:flex;align-items:end;justify-content:center;padding-bottom:17px;color:#9aa4b4;font-weight:800;touch-action:none}.white-key:first-child{border-radius:5px 0 9px 9px}.white-key:last-child{border-radius:0 5px 9px 9px}.white-key.target:after{content:"";position:absolute;inset:8px 5px 9px;border:3px dashed #f4aa54;border-radius:7px;pointer-events:none}.white-key.active{background:#ffca74;transform:translateY(4px);box-shadow:0 2px 0 #ba8d4f}.white-key.correct{background:#a8e4b6}.black-key{position:absolute;top:0;width:6%;height:57%;z-index:2;background:linear-gradient(90deg,#2e3445,#4b5266);border-radius:0 0 7px 7px;box-shadow:0 5px 0 #242936;color:white;touch-action:none}.black-key.active{background:#7386b2;transform:translateY(3px)}.bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:24px;color:#8a94a4;font-size:13px}.primary{background:#ffb95d;color:#593d21;border-radius:15px;padding:13px 22px;font-weight:900;box-shadow:0 5px 0 #e19a40;white-space:nowrap}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #e19a40}.modal{position:fixed;inset:0;background:#26334a90;display:grid;place-items:center;padding:20px;z-index:20}.modal[hidden]{display:none}.modal-card{position:relative;background:#fffaf0;border-radius:26px;max-width:500px;padding:32px;box-shadow:0 25px 80px #1b243b66}.modal-card h2{margin:8px 0 4px}.close{position:absolute;right:18px;top:15px;background:transparent;font-size:32px;color:#7d8799}.shape-illustration{height:105px;display:flex;align-items:center;justify-content:center;font-size:67px;color:#e6aa6a}.shape-illustration span{font-size:65px;color:#8bc9dd;margin-left:-12px}.modal-card ol{padding-left:24px}.modal-card li{padding:7px 0}.modal-card li b{display:block}.modal-card li span,.modal-card p{font-size:13px;color:#7b8799;line-height:1.6}.modal-card p{margin-bottom:0}@media(max-width:850px){.app{padding:14px}main{grid-template-columns:1fr}.sidebar{padding:16px}.sidebar h1,.sidebar p{display:none}.hand-switch{max-width:300px;margin:12px 0}.lesson-list{display:flex;overflow-x:auto}.lesson{min-width:130px;flex:1;padding:9px;gap:5px}.lesson-icon{width:29px;height:29px;font-size:16px}.lesson small{display:none}.play{padding:20px}.keyboard{height:200px}}@media(max-width:540px){header{padding-bottom:12px}.soft{font-size:12px;padding:8px}.brand strong{font-size:16px}.brand small{font-size:10px}.sidebar{padding:12px}.topline h2{font-size:19px}.score-card{padding:13px}.staff{height:130px}.keyboard{height:170px}.white-key{font-size:10px;padding-bottom:10px}.instruction{font-size:12px}.bottom{font-size:11px}.primary{padding:12px}}
@media (min-width:851px) and (max-height:820px){.app{padding-top:12px;padding-bottom:12px}header{padding-bottom:10px}.sidebar{padding-top:17px;padding-bottom:12px}.sidebar h1{font-size:27px;margin:8px 0 4px}.sidebar p{margin-bottom:10px}.hand-switch{margin-bottom:10px}.lesson{padding:8px}.play{padding:19px 26px 16px}.topline h2{margin:6px 0 12px;font-size:22px}.score-card{padding:11px 18px}.staff{height:117px}.big-note{font-size:27px}.instruction{min-height:58px}.keyboard{height:160px}.bottom{padding-top:16px}}
/* Full-width piano layout */
:root{--key-width:23.5mm;--black-width:calc(var(--key-width) * .58)}.app{max-width:none;padding:14px 0 0;min-height:100vh}header{padding:0 26px 12px;gap:18px}.topnav{display:flex;align-items:center;gap:12px}.topnav select{appearance:none;border:1px solid #e5dac8;border-radius:14px;background:#fffaf0;padding:12px 38px 12px 17px;font:inherit;font-weight:800;color:#34415d;background-image:linear-gradient(45deg,transparent 50%,#78849a 50%),linear-gradient(135deg,#78849a 50%,transparent 50%);background-position:calc(100% - 19px) 53%,calc(100% - 14px) 53%;background-size:5px 5px;background-repeat:no-repeat}.topnav .hand-switch{margin:0;min-width:155px}.topnav .hand-switch button{padding:9px}.topnav .soft{white-space:nowrap}main{display:block}.play{border-radius:24px 24px 0 0;padding:18px 26px 17px;min-height:calc(100vh - 67px);display:flex;flex-direction:column}.topline h2{margin:4px 0 10px;font-size:22px}.score-card{padding:10px 20px}.staff{height:108px}.big-note{font-size:27px}.instruction{min-height:53px}.controls{display:flex;align-items:center;gap:17px}.compact{padding:7px 12px;font-size:12px}.keyboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8793a6;font-size:12px;font-weight:700;padding:0 3px 8px}.keyboard-toolbar label{display:flex;align-items:center;gap:8px}.keyboard-toolbar input{width:115px;accent-color:#e9a255}.keyboard-toolbar output{min-width:53px}.keyboard-viewport{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-color:#bdc7d6 transparent;scrollbar-width:thin;background:#dbe0eb;padding:8px 0 13px;border-radius:15px;box-shadow:inset 0 3px 7px #44516b25;touch-action:pan-x}.keyboard{width:calc(22 * var(--key-width));height:clamp(220px,33vh,330px);display:block;position:relative;touch-action:pan-x}.white-key{position:absolute;top:0;bottom:0;width:var(--key-width);display:flex;touch-action:pan-x}.white-key:nth-child(1){left:0}.white-key:nth-child(2){left:var(--key-width)}.white-key:nth-child(3){left:calc(2 * var(--key-width))}.white-key:nth-child(4){left:calc(3 * var(--key-width))}.white-key:nth-child(5){left:calc(4 * var(--key-width))}.white-key:nth-child(6){left:calc(5 * var(--key-width))}.white-key:nth-child(7){left:calc(6 * var(--key-width))}.white-key:nth-child(8){left:calc(7 * var(--key-width))}.white-key:nth-child(9){left:calc(8 * var(--key-width))}.white-key:nth-child(10){left:calc(9 * var(--key-width))}.white-key:nth-child(11){left:calc(10 * var(--key-width))}.white-key:nth-child(12){left:calc(11 * var(--key-width))}.white-key:nth-child(13){left:calc(12 * var(--key-width))}.white-key:nth-child(14){left:calc(13 * var(--key-width))}.white-key:nth-child(15){left:calc(14 * var(--key-width))}.white-key:nth-child(16){left:calc(15 * var(--key-width))}.white-key:nth-child(17){left:calc(16 * var(--key-width))}.white-key:nth-child(18){left:calc(17 * var(--key-width))}.white-key:nth-child(19){left:calc(18 * var(--key-width))}.white-key:nth-child(20){left:calc(19 * var(--key-width))}.white-key:nth-child(21){left:calc(20 * var(--key-width))}.white-key:nth-child(22){left:calc(21 * var(--key-width))}.black-key{width:var(--black-width);height:60%;touch-action:pan-x}.bottom{padding-top:15px}@media(max-width:700px){header{padding:8px 12px 12px;flex-wrap:wrap}.topnav{width:100%;justify-content:space-between}.topnav select{min-width:0;max-width:45vw}.topnav .hand-switch{min-width:120px}.topnav .soft{padding:8px}.play{padding:14px 12px}.score-card{padding:9px}.keyboard-toolbar{flex-wrap:wrap}.keyboard{height:38vh}.instruction{font-size:13px}}
/* Compact practice screen: score above, piano at the bottom */
html,body{height:100%;overflow:hidden}.app{height:100dvh;min-height:0;display:flex;flex-direction:column;padding:8px 0 0}header{flex:none;padding:0 20px 8px}.brand-icon{width:38px;height:38px;font-size:25px}.brand strong{font-size:17px}.brand small{font-size:10px}.topnav select{padding-top:8px;padding-bottom:8px}.topnav .hand-switch button{padding:7px}.topnav .soft{padding:8px 12px}main{flex:1;min-height:0}.play{height:100%;min-height:0;border-radius:17px 17px 0 0;padding:9px 12px 0;gap:0;box-shadow:none}.score-card{flex:0 1 auto;min-height:0;padding:7px 14px 5px;border-radius:15px}.score-header{font-size:12px;color:#647699}.staff{height:clamp(135px,25vh,215px)}.staff svg{width:100%;height:100%}.note-meta{min-height:36px;gap:9px}.current-note{white-space:nowrap}.big-note{font-size:26px}.note-meta #noteInfo{font-size:13px}.note-meta #feedback{flex:1;color:#5278bc;font-size:13px;font-weight:800;text-align:center}.hear{padding:6px 11px;font-size:18px}.primary{padding:7px 12px;box-shadow:0 3px 0 #e19a40}.primary[hidden]{display:none}.keyboard-controls{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:13px;height:38px;font-size:12px;color:#70809c}.tiny{background:#fff9ed;border:1px solid #eadfcd;border-radius:10px;padding:5px 10px;color:#697a98;font-weight:800}.key-size{display:flex;align-items:center;gap:5px}.key-size input{width:100px;accent-color:#e9a255}.key-size output{min-width:50px}.keyboard-viewport{flex:1;min-height:0;border-radius:14px 14px 0 0;padding:7px 0 0}.keyboard{height:100%;min-height:0}.white-key{padding-bottom:17px}.black-key{height:61%}@media(max-width:700px){.app{padding-top:4px}header{padding:0 8px 5px}.brand small{display:none}.topnav{gap:5px}.topnav select{padding:7px 26px 7px 8px;font-size:12px}.topnav .hand-switch{min-width:95px;padding:3px}.topnav .hand-switch button{padding:6px 2px;font-size:12px}.topnav .soft{font-size:11px;padding:6px}.play{padding:6px 6px 0}.staff{height:clamp(115px,24vh,170px)}.key-size input{width:65px}.keyboard-controls{gap:6px}.note-meta #feedback{font-size:11px}}
.white-key span small{font-size:.65em;vertical-align:sub;margin-left:1px}.white-key[data-finger]::before{content:attr(data-finger);position:absolute;bottom:48px;left:50%;transform:translateX(-50%);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#e7ecfa;color:#506fae;font-size:13px;font-weight:900}.white-key.target[data-finger]::before{background:#ffcf87;color:#744a20}.black-key{display:flex;align-items:end;justify-content:center;padding-bottom:11px}.black-key span{font-size:11px;font-weight:800;color:#e4e9f5;opacity:.9}
.score-card{position:relative;flex:none;padding:0 8px;border-radius:12px}.staff{height:clamp(175px,29vh,255px)}.score-overlay{position:absolute;right:10px;top:8px;display:flex;align-items:center;gap:7px;z-index:2}.score-overlay #feedback{color:#4977c9;font-size:14px;font-weight:900}.score-overlay .hear{padding:6px 10px;background:#ffffffd9}.score-overlay .primary{font-size:12px}.keyboard-controls{height:30px}.keyboard-viewport{flex:1}.keyboard{height:100%}@media(max-width:700px){.staff{height:clamp(145px,27vh,205px)}.keyboard-controls{height:28px}}
/* Cooler learning stage */
:root{color:#e9f1ff;background:#10182c}body{background:radial-gradient(circle at 14% 8%,#233b6e 0,transparent 37%),radial-gradient(circle at 93% 17%,#244261 0,transparent 30%),#10182c;color:#e9f1ff}header{background:linear-gradient(90deg,#10192d,#172641);border-bottom:1px solid #35517f}.brand-icon{background:linear-gradient(140deg,#5be4d6,#62a5ff);color:#10203b;box-shadow:0 4px 0 #357ea3}.brand small{color:#9eafcd}.topnav select,.topnav .soft{background:#263655;color:#e5efff;border-color:#405779}.topnav .hand-switch{background:#263655}.topnav .hand-switch button{color:#a3b4d1}.topnav .hand-switch button.selected{background:#4b73c5;color:#fff;box-shadow:0 2px 9px #07122688}.play{background:linear-gradient(#131e35,#111b30);border-color:#30466b}.score-card{background:radial-gradient(circle at 50% 95%,#243a68 0,#192846 55%,#17243e 100%);border:1px solid #395584;box-shadow:inset 0 0 45px #466e9a1d}.lesson-badge{position:absolute;left:13px;top:9px;background:#284b72;color:#89ddfa;border:1px solid #3f779b;border-radius:30px;padding:5px 12px;font-size:12px;font-weight:800;z-index:3}.hear{background:#263e66!important;border-color:#5474a5;color:#c6e8ff}.score-overlay #feedback{color:#90e3ca}.keyboard-controls{color:#a3b5d2}.hint-toggle{color:#a3b5d2}.tiny{background:#263655;border-color:#415a7e;color:#c7d8f4}.key-size input{accent-color:#5fd6dd}.keyboard-viewport{background:#53627b;box-shadow:inset 0 3px 9px #080e1d}.white-key.target:after{border-color:#54d9d7}.white-key.target[data-finger]::before{background:#58dadb;color:#102944}.white-key[data-finger]::before{background:#d7e5ff;color:#2c548e}.white-key.demo{background:#8edfd5}.white-key.correct{background:#97e3be}.black-key.demo{background:#5bc7d7}.primary{background:#59d8d9;color:#14334a;box-shadow:0 3px 0 #369399}.course-drawer{position:fixed;z-index:30;right:0;top:0;bottom:0;width:min(460px,100vw);background:#16233d;border-left:1px solid #425b83;box-shadow:-20px 0 60px #07101dc0;display:flex;flex-direction:column;padding:20px;color:#eaf3ff}.course-drawer[hidden]{display:none}.drawer-head{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #3e5275;padding-bottom:13px}.drawer-head small{color:#7bd6e7;font-size:11px}.drawer-head h2{margin:5px 0 0}.close-course{background:none;color:#bdcee6;font-size:30px}.course-list{overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:15px 0;max-height:45vh}.course-item{display:flex;gap:9px;align-items:center;background:#243658;border:1px solid #3d5275;border-radius:12px;padding:10px;text-align:left;color:#eaf3ff}.course-item.chosen{background:#2c5c80;border-color:#69cbe0}.course-num{font-weight:900;color:#72d7e3}.course-item b,.course-item small{display:block}.course-item b{font-size:12px}.course-item small{font-size:10px;color:#9eb2d2;margin-top:3px}.lesson-detail{border-top:1px solid #3e5275;padding-top:13px}.detail-grade{color:#7bd6e7;font-size:12px}.lesson-detail h3{font-size:21px;margin:5px 0}.lesson-detail p{line-height:1.6;font-size:14px;color:#cedcf4}.lesson-detail .detail-task{color:#89e1c5}.course-open{font-weight:900}.keyboard-viewport{height:clamp(245px,43vh,390px);flex:none;margin-top:auto}.staff{height:clamp(175px,31vh,260px)}@media(max-width:700px){.course-open{font-size:11px}.keyboard-viewport{height:41vh}.staff{height:27vh}.course-list{max-height:45vh}}
.brand-icon{overflow:hidden;padding:0;background:linear-gradient(140deg,#55dce5,#7a9cf0);box-shadow:0 3px 0 #286b90}.brand-icon img{width:100%;height:100%;object-fit:cover;transform:scale(1.24)}.score-card{flex:1;min-height:0;display:flex;align-items:center}.staff{flex:1;height:100%;min-height:0}.keyboard-viewport{margin-top:0}.lesson-art{width:100%;height:175px;object-fit:cover;border-radius:14px;border:1px solid #4a648e;margin:13px 0 8px}.lesson-copy{overflow:auto}.lesson-actions{display:flex;align-items:center;gap:8px;justify-content:space-between}.narrate{display:flex;align-items:center;gap:7px;border:1px solid #5a83ae;background:#2c4b75;color:#e5f7ff;border-radius:12px;padding:5px 10px;font-weight:800}.narrate img{width:29px;height:29px;object-fit:cover;border-radius:50%;background:#4ccde0}.course-list{max-height:33vh}.lesson-detail{min-height:0;overflow:auto}@media(max-width:700px){.lesson-art{height:140px}.course-list{max-height:31vh}}
.drawer-head{gap:10px}.drawer-head .mars-avatar{width:52px;height:52px;object-fit:cover;object-position:left top;border-radius:13px;background:linear-gradient(135deg,#4777aa,#27436f);flex:none}.drawer-head>div{flex:1}.close-course{flex:none}
/* Sunny Mars home and practice palette */
:root{color:#254267;background:#fff8e8}body{background:linear-gradient(160deg,#eafaff 0%,#fff7df 48%,#ffe9d5 100%);color:#254267}header{background:linear-gradient(90deg,#dcf5ff,#f7fbff 52%,#fff1d9);border-bottom:2px solid #bde7f1}.brand strong{color:#21446a}.brand small{color:#6d88a3}.topnav select,.topnav .soft{background:#fffdf7;color:#315679;border-color:#b8dce8;box-shadow:0 3px 0 #cfebee}.topnav .hand-switch{background:#dbeefa}.topnav .hand-switch button{color:#6589a4}.topnav .hand-switch button.selected{background:#ffb959;color:#503f23;box-shadow:0 2px 6px #c8a56866}.play{background:linear-gradient(#fffdf6,#fff7e9);border-color:#cde6ed}.score-card{background:linear-gradient(150deg,#f4fbff,#fdfcff 68%,#fff5e7);border:2px solid #b9dce9;box-shadow:0 5px 20px #97c6d326}.lesson-badge{background:#dff5ff;color:#26709a;border-color:#b9dce9}.hear{background:#fff!important;border-color:#b6dce9;color:#286e9c}.score-overlay #feedback{color:#16a166}.keyboard-controls,.hint-toggle{color:#5983a0}.tiny{background:#fff;border-color:#bddce5;color:#477895}.key-size input{accent-color:#ffb850}.keyboard-viewport{background:#d6e4e6}.white-key.target:after{border-color:#5cced6}.white-key[data-finger]::before{background:#e5f0ff;color:#3f76a6}.white-key.target[data-finger]::before{background:#ffdb82;color:#845314}.white-key.correct{background:#82dd9e!important}.white-key.wrong{background:#ff7b7b!important}.white-key.preview{background:#ffe080!important}.black-key.correct{background:#31b875!important}.black-key.wrong{background:#e74d61!important}.black-key.preview{background:#e9a93c!important}.white-key.demo{background:#8acde9}.black-key.demo{background:#459ac5}.primary{background:#ffc567;color:#664016;box-shadow:0 3px 0 #e9a747}.course-drawer{background:#fffaf0;color:#2b496a;border-left:2px solid #c5e3e9}.drawer-head{border-bottom-color:#d8e8e9}.drawer-head small,.detail-grade{color:#3395a4}.close-course{color:#64839e}.course-item{background:#f3faff;border-color:#cce3ec;color:#335371}.course-item.chosen{background:#dff3fb;border-color:#61c4d4}.course-num{color:#26a6b2}.course-item small{color:#6989a5}.lesson-detail{border-top-color:#d5e8ec}.lesson-detail p{color:#58718d}.lesson-detail .detail-task{color:#268c7e}.narrate{background:#e4f7ff;border-color:#aadbe8;color:#2c7194}.modal-card{background:#fffaf0}.show-home main{display:none}.show-home .topnav{display:none}.home-view{display:none;flex:1;min-height:0;padding:18px 26px 24px;gap:18px;grid-template-columns:minmax(0,1.1fr) minmax(340px,.8fr)}.show-home .home-view{display:grid}.home-hero{position:relative;overflow:hidden;border-radius:30px;background:radial-gradient(circle at 78% 30%,#a3eaff 0,#77cbee 30%,transparent 55%),linear-gradient(135deg,#3296da,#70cce8);box-shadow:0 15px 35px #61afd23b;padding:38px;min-height:0}.home-hero:before,.home-hero:after{content:"";position:absolute;border-radius:50%;background:#ffffff33}.home-hero:before{width:400px;height:400px;right:-90px;top:-120px}.home-hero:after{width:530px;height:180px;left:-90px;bottom:-120px}.home-copy{position:relative;z-index:3;max-width:410px}.home-kicker,.card-kicker{font-size:12px;font-weight:900;letter-spacing:.12em;color:#fff2a5}.home-copy h1{font-size:clamp(32px,4vw,58px);line-height:1.12;letter-spacing:-.04em;color:white;margin:22px 0 13px;text-shadow:0 3px 0 #2479aa}.home-copy p{color:#eafaff;font-weight:700;line-height:1.6}.home-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:28px}.home-primary,.home-secondary{padding:14px 19px;border-radius:15px;font-weight:900;box-shadow:0 5px 0 #397ea0}.home-primary{background:#ffd46b;color:#79500d}.home-secondary{background:#fff;color:#287b9f}.home-mars{position:absolute;right:-5%;bottom:-8%;width:min(69%,650px);max-height:88%;object-fit:contain;object-position:bottom right;filter:drop-shadow(0 16px 11px #2f74a452);z-index:2}.home-spark{position:absolute;right:16%;top:14%;font-size:90px;color:#ffe47e;z-index:1;filter:drop-shadow(0 7px 0 #60a4c2)}.home-cards{display:grid;grid-template-rows:1fr 1fr;gap:18px;min-height:0}.home-card{overflow:hidden;position:relative;display:block;text-align:left;border-radius:27px;padding:28px;border:2px solid #ffffff;box-shadow:0 14px 32px #a7c7c13d;color:#285174}.home-card h2{font-size:27px;margin:12px 0 8px}.home-card p{font-size:14px;color:#63839d;margin:0}.home-card .card-kicker{color:#348ca9}.home-card img{position:absolute;right:-5%;bottom:-18%;height:100%;width:57%;object-fit:cover;border-radius:20px;mask-image:linear-gradient(90deg,transparent,#000 35%)}.course-card{background:#fff6d8}.practice-card{background:#e5f4ff}.practice-card img{object-fit:contain;mask-image:none;right:0;bottom:-17%;width:48%;height:130%}.home-card>div{position:relative;z-index:1}.home-card:hover,.home-primary:hover,.home-secondary:hover{transform:translateY(-2px)}@media(max-width:900px){.home-view{grid-template-columns:1fr;padding:12px;overflow:auto}.home-hero{min-height:430px}.home-cards{grid-template-columns:1fr 1fr;grid-template-rows:none}.home-card{min-height:220px}}@media(max-width:600px){.home-hero{min-height:430px;padding:25px}.home-copy h1{font-size:34px}.home-mars{width:80%;max-height:58%}.home-cards{grid-template-columns:1fr}.home-card{min-height:200px}.home-card img{width:50%}}
.score-note{cursor:pointer}.score-note:focus-visible{outline:3px solid #ffa837}.score-note:hover ellipse{filter:drop-shadow(0 0 6px #ffce63)}
.black-key span{line-height:1.05;text-align:center}.black-key:has(span br) span{font-size:9px}
/* Art-directed homepage, v2 */
.show-home .home-view{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(165px,24vh);width:min(100%,1500px);margin:0 auto;padding:15px 20px 20px;gap:14px;overflow:hidden}.home-hero{min-height:0;padding:0;border-radius:22px;background:#cfe9f4 url('assets/lesson-art/home-sky-v2.jpg') center 54%/cover no-repeat;border:1px solid #d7e2dd;box-shadow:0 13px 28px #577a8a24}.home-hero:before{width:60%;height:100%;left:0;right:auto;top:0;border-radius:0;background:linear-gradient(90deg,#eff9f7df 0%,#ecf8f4ac 52%,transparent 100%);z-index:1}.home-hero:after{display:none}.home-copy{position:absolute;left:5.2%;top:47%;transform:translateY(-50%);max-width:52%;z-index:4}.home-kicker{color:#4b82a5;letter-spacing:.23em;font-size:11px}.home-copy h1{color:#173f67;text-shadow:none;font-size:clamp(42px,5vw,80px);font-weight:900;letter-spacing:-.055em;line-height:1.08;margin:14px 0 16px}.home-copy p{color:#466c86;font-size:clamp(14px,1.25vw,20px);font-weight:700;line-height:1.65;max-width:430px}.home-actions{margin-top:26px;gap:12px}.home-primary,.home-secondary{border-radius:10px;padding:14px 22px;font-size:15px;box-shadow:0 4px 0 #aabbad33;transition:transform .16s ease,box-shadow .16s ease}.home-primary{background:#f6b743;color:#392d1a;border:1px solid #dba64a}.home-secondary{background:#fff9eb;color:#315571;border:1px solid #ccdfdf}.home-mars{right:2.3%;bottom:-6%;width:min(44%,560px);height:95%;max-height:none;object-fit:contain;filter:drop-shadow(0 13px 12px #5e8c9940);z-index:3}.home-spark{font-size:60px;right:11%;top:5%;color:#ffda6c;filter:drop-shadow(0 3px 3px #b88f4466);z-index:2}.home-cards{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;gap:14px;min-height:0}.home-card{min-height:0;border-radius:18px;border:1px solid #e0e3da;box-shadow:0 6px 18px #789da51e;padding:25px 29px;transition:transform .18s ease,box-shadow .18s ease}.home-card:hover{box-shadow:0 10px 24px #789da533}.home-card h2{font-size:clamp(23px,2.1vw,32px);margin:7px 0 4px;line-height:1.2}.home-card p{font-size:13px}.home-card .card-kicker{font-size:11px;color:#5389a5;letter-spacing:.14em}.course-card{background:#fef8e8}.practice-card{background:#eff9fa}.home-card img,.practice-card img{right:0;bottom:0;width:48%;height:100%;border-radius:0;object-fit:cover;object-position:center;mask-image:linear-gradient(90deg,transparent 0%,#000 36%)}.home-card>div{max-width:59%}.show-home header{max-height:64px}.show-home .app{background:#f4f8f5}@media(min-width:1800px){.show-home .home-view{padding-top:25px;padding-bottom:28px;gap:20px;grid-template-rows:minmax(0,1fr) 220px}.home-card{padding:34px}.home-hero{border-radius:26px}}@media(max-width:900px){.show-home .home-view{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 170px;padding:12px;gap:10px}.home-hero{min-height:0}.home-copy{left:5%;max-width:55%}.home-copy h1{font-size:clamp(38px,5vw,55px)}.home-mars{width:46%;right:0}.home-card{padding:17px}.home-card h2{font-size:22px}.home-card p{font-size:11px}}@media(max-width:650px){.show-home .home-view{display:block;overflow-y:auto}.home-hero{height:520px}.home-copy{top:27%;max-width:88%}.home-copy h1{font-size:42px}.home-copy p{font-size:14px}.home-mars{width:72%;height:60%;bottom:-3%;right:-8%}.home-cards{grid-template-columns:1fr;grid-template-rows:180px 180px;margin-top:12px}.home-card h2{font-size:24px}}
@media(min-width:1800px){.show-home .home-view{width:min(94vw,2600px);max-width:2600px;grid-template-rows:minmax(0,1fr) 220px;padding:22px 0 25px;gap:18px}.show-home header{max-height:76px;padding:10px 4vw}.show-home .brand-icon{width:52px;height:52px}.show-home .brand strong{font-size:23px}.show-home .brand small{font-size:12px}.home-copy{left:5.5%;max-width:48%}.home-copy h1{font-size:clamp(76px,4vw,122px)}.home-copy p{font-size:clamp(19px,1.05vw,28px);max-width:650px}.home-kicker{font-size:15px}.home-primary,.home-secondary{font-size:20px;padding:18px 29px}.home-mars{width:min(42%,900px);height:96%;right:2%}.home-card h2{font-size:34px}.home-card p{font-size:17px}.home-card .card-kicker{font-size:13px}}

/* Continuous lesson feedback */
.group-celebration[hidden]{display:none!important}
.group-celebration{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);z-index:6;width:min(480px,78%);padding:18px 24px 17px;border:2px solid #a4dfcb;border-radius:24px;background:linear-gradient(145deg,#fafff3f5,#e9fff8f5);box-shadow:0 16px 45px #3f8b8c38;text-align:center;color:#216a69;pointer-events:none;animation:celebrate-in .22s ease-out}
.group-celebration.finished{border-color:#f3ce7e;background:linear-gradient(145deg,#fffdf3f8,#fff1d2f8);color:#80582b;pointer-events:auto}
.celebration-star{font-size:34px;line-height:1;color:#ffbd45;text-shadow:0 3px 0 #e4953c;margin-bottom:3px}
.group-celebration strong{display:block;font-size:clamp(22px,2.8vw,34px);line-height:1.2}
.group-celebration p{margin:8px 0 10px;font-size:clamp(13px,1.35vw,17px);font-weight:700;line-height:1.45}
.celebration-progress{display:flex;justify-content:center;gap:8px;margin:9px 0 0}
.celebration-progress span{width:24px;height:8px;border-radius:99px;background:#cbdedc}
.celebration-progress span.done{background:#32c38b}
.group-celebration.finished .celebration-progress span.done{background:#ffbb55}
.group-celebration #nextBtn{margin-top:15px;padding:10px 19px;pointer-events:auto}
@keyframes celebrate-in{from{opacity:0;transform:translate(-50%,-45%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-height:700px){.group-celebration{padding:10px 17px;width:min(420px,73%)}.celebration-star{font-size:25px}.group-celebration p{margin:4px 0 6px}.group-celebration #nextBtn{margin-top:9px}}
.group-celebration{background:linear-gradient(145deg,#ffffff,#e8fff3);box-shadow:0 18px 42px #477f8c48;padding:23px 27px 20px;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.group-celebration.finished{background:linear-gradient(145deg,#ffffff,#fff1d2)}
.group-celebration strong{color:#176a6b;text-shadow:none}
.group-celebration.finished strong{color:#926025}
.group-celebration p{color:#52757b;margin:10px 0 13px}
.group-celebration.finished p{color:#876d4d}
@media(max-height:700px){.group-celebration{min-height:135px;padding:12px 17px}}

/* Keep every practice control reachable on 768px iPad portrait screens. */
@media (min-width: 701px) and (max-width: 800px) {
  body:not(.show-home) header { padding: 0 8px 5px; }
  body:not(.show-home) .brand { display: none; }
  body:not(.show-home) .topnav { width: 100%; justify-content: space-between; gap: 6px; }
  body:not(.show-home) .topnav select { flex: 1; min-width: 0; }
}
