:root{--ink:#243649;--muted:#6e8292;--paper:#fffdf8;--green:#226b5c;--lime:#e5f3b8;--line:#e2e8df;--pink:#e9a6b8;--lp:#cf7fa1;--lr:#b79bdc;--lm:#6fb9db;--li:#63b8a1;--ri:#d6a449;--rm:#df956d;--rr:#d1839d;--rp:#9e9bd9;--th:#8798a6;font-family:system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,#arena:focus-visible{outline:3px solid #edb452;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}header{height:84px;max-width:1420px;margin:auto;padding:0 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:24px;font-weight:900;text-decoration:none;color:var(--ink);letter-spacing:-1px}.brand span{color:var(--green)}.brand small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);margin-top:3px}.top-actions{display:flex;align-items:center;gap:12px;font-size:13px}.quiet,.primary{padding:12px 19px;border-radius:12px;font-weight:750;line-height:1.4}.quiet{background:#edf1e9;color:#3d5d52}.primary{background:var(--green);color:white;box-shadow:0 4px 0 #164a40}.eyebrow{color:var(--green);font-size:12px;font-weight:800;letter-spacing:1px}main{max-width:1360px;padding:30px 28px;margin:auto}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;background:#f0f3e9;border-radius:28px;padding:42px 50px;overflow:hidden}.hero h1{font-size:clamp(32px,3.5vw,49px);line-height:1.3;letter-spacing:-2px;margin:17px 0}.hero p{font-size:15px;line-height:1.9;color:#647969}.hero button{margin:12px 6px 0 0}.hero-art{height:280px;position:relative;background:radial-gradient(ellipse,#d5e9bf 0,transparent 68%);display:flex;align-items:center;justify-content:center}.frog-face{width:168px;height:130px;border-radius:75px 75px 65px 65px;background:#a5cc6b;position:relative;transform:rotate(-7deg);box-shadow:inset 0 -12px #8eb952,0 25px 0 -10px #cfdfb5}.frog-face i{position:absolute;top:-19px;width:53px;height:60px;background:#a5cc6b;border-radius:50%;left:11px}.frog-face i+i{left:auto;right:11px}.frog-face i:after{content:'';position:absolute;top:14px;left:19px;width:13px;height:20px;background:#243f30;border-radius:50%;box-shadow:3px -4px 0 2px white}.frog-face b{font-size:70px;font-weight:400;position:absolute;top:15px;left:53px;color:#3b6341}.orbit{position:absolute;left:12px;top:20px;background:white;padding:14px 24px;border-radius:18px;font:bold 32px monospace;transform:rotate(-12deg);box-shadow:0 5px 0 #d2dccc}.orbit.right{left:auto;right:15px;top:62px;transform:rotate(12deg)}.orbit span{display:block;font:12px system-ui;color:var(--muted);margin-top:5px}.art-keys{position:absolute;bottom:24px;letter-spacing:4px;font:bold 17px monospace;padding:18px;background:#fffef9;border-radius:12px;box-shadow:0 6px 0 #d2dccc}.art-keys strong{color:var(--green);border-bottom:3px solid}.art-label{position:absolute;bottom:-8px;font-size:11px;color:#648163}.overview{display:grid;grid-template-columns:1fr 1fr 1fr;margin:24px 0 12px;border:1px solid var(--line);border-radius:18px;padding:20px}.overview>div{display:flex;justify-content:center;align-items:center;gap:12px;border-right:1px solid var(--line)}.overview>div:last-child{border:0}.overview strong{font-size:22px;color:var(--green)}.overview span,.small{font-size:12px;color:var(--muted);line-height:1.8}.save-note{font-size:12px;color:var(--muted);margin:12px 3px 28px}.world{margin:24px 0 34px}.world-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.world-heading h2{font-size:21px;margin:0 0 5px}.world-heading p{font-size:13px;color:var(--muted);margin:0}.world-number{font:800 11px monospace;letter-spacing:2px;color:var(--green);display:block;margin-bottom:7px}.world-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.lesson-tile{text-align:left;padding:20px 17px;background:white;border:1px solid var(--line);border-radius:17px;min-height:146px;position:relative}.lesson-tile.done{background:#f0f6e8;border-color:#ccdcb8}.lesson-tile.next{border:2px solid #78a38d}.tile-number{font:700 11px monospace;color:var(--muted);display:flex;justify-content:space-between}.tile-key{font:bold 27px/1.2 monospace;letter-spacing:3px;color:var(--green);margin:14px 0 10px;display:block}.tile-title{font-size:13px;font-weight:750}.tile-stars{font-size:11px;color:#b88927;margin-top:7px;display:block}.lesson-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:13px}.pill{background:#eef3e5;padding:8px 13px;border-radius:20px;color:var(--green);font-size:12px}.lesson-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px}.teacher-card{border:1px solid var(--line);border-radius:20px;padding:24px;background:white;align-self:start}.teacher-avatar{font-size:36px;width:66px;height:66px;background:#f1eafa;border-radius:20px;display:grid;place-items:center;margin-bottom:18px}.teacher-card h2{font-size:23px;line-height:1.5;margin:9px 0 12px}.teacher-card p,.teacher-card li{font-size:13px;line-height:1.95;color:#61766b}.teacher-card ol{padding-left:21px}.teacher-card li{margin:10px 0}.reminder{background:#f3f6e8;border-radius:12px;padding:13px;font-size:12px;line-height:1.8;color:#617146}.teacher-card h3{font-size:13px;margin-top:22px}.teacher-card label{display:block;font-size:12px;line-height:1.8;margin:13px 0}.teacher-card input{accent-color:var(--green);vertical-align:middle}.teacher-card .primary{width:100%;font-size:13px;margin-top:14px}.teacher-card .small{font-size:11px}.training{min-width:0}.session-stats{display:flex;gap:18px;align-items:center;font-size:12px;color:var(--muted);padding:0 3px 12px}.session-stats b{color:var(--ink);font-size:15px;margin-left:4px}.session-stats button{margin-left:auto;padding:7px 14px}.progress-track{height:5px;background:#e6ebdf;border-radius:10px;margin-bottom:14px;overflow:hidden}#progress-bar{height:100%;background:#72ad8c;transition:width .15s}#arena{border-radius:20px;overflow:hidden;background:#e6f2f3;outline-offset:3px}.arena-sky{height:238px;position:relative;text-align:center;padding:18px;overflow:hidden;background:linear-gradient(#e0f0f0,#edf6ed)}.island-label{position:absolute;left:20px;top:17px;font-size:11px;color:#608579}.cloud{position:absolute;width:90px;height:21px;background:#ffffffaa;border-radius:40px;left:10%;top:60px}.cloud:before{content:'';position:absolute;width:43px;height:38px;background:inherit;border-radius:50%;bottom:0;left:20px}.c2{left:auto;right:7%;top:107px;transform:scale(.7)}#mode-label{font-size:12px;color:#6d8a7b;position:relative;z-index:1;margin:8px 0 12px}.target{display:inline-flex;justify-content:center;align-items:center;min-width:76px;height:74px;padding:0 16px;background:#fffef9;border-radius:17px;font:800 41px monospace;color:var(--green);box-shadow:0 6px 0 #b5ccc0;position:relative;z-index:1}#finger-instruction{position:relative;font-size:14px;font-weight:750;margin:17px 0 12px}#sequence{display:flex;justify-content:center;gap:5px;position:relative;z-index:1;white-space:pre}#sequence span{font:15px monospace;border-radius:5px;padding:3px 5px;color:#91a397}#sequence .passed{background:#d1e5d3;color:#56775f}#sequence .current{background:#2f7560;color:white}.pond{height:82px;position:relative;background:#bed9c6;border-top:3px solid #abcbb6}.path-pads{display:flex;justify-content:space-around;position:absolute;top:28px;width:100%}.path-pads i{height:17px;width:12%;background:#86ac78;border-radius:50%;box-shadow:0 3px #709766}#frog{position:absolute;font-size:35px;top:0;left:7%;transition:left .22s,transform .16s}#frog.hop{transform:translateY(-18px) rotate(-7deg)}.pond-label{position:absolute;right:14px;bottom:6px;font-size:9px;color:#5a7b62}#feedback{min-height:42px;padding:12px 4px;font-size:13px;line-height:1.6;color:var(--green)}#feedback.error{color:#a34e49}.keyboard{background:#e8ede6;border:1px solid #dae2d6;border-radius:16px;padding:10px;overflow:auto}.key-row{display:flex;gap:5px;margin:5px 0;min-width:610px}.key{flex:1;min-width:0;height:41px;background:#fffefa;border:1px solid #dae1d5;border-bottom:3px solid #cdd6c9;border-radius:7px;position:relative;font:600 12px monospace;color:#536254;padding:3px;box-shadow:inset 0 3px var(--finger)}.key .upper{display:block;font-size:9px;color:#9da89b;min-height:11px}.key.wide{flex:1.6}.key.shift{flex:2}.key.space{flex:6}.key.home:after{content:'';position:absolute;bottom:3px;width:12px;height:2px;left:calc(50% - 6px);background:#5e6e5e}.key.active{background:var(--finger);color:white;border-color:#48695b;outline:2px solid #3d6254;outline-offset:1px;box-shadow:none}.key.active .upper{color:#fff}.key.wrong{background:#f6bab4!important;outline:2px solid #b25a50}.hints-off .key.active{outline:none;background:#fffefa;color:#536254;border-color:#dae1d5;box-shadow:inset 0 3px var(--finger)}.hints-off .key.active .upper{color:#9da89b}.hand-panel{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px;background:white;border:1px solid var(--line);border-radius:16px;padding:14px}#hands svg{display:block;width:100%;height:151px}.finger{fill:#e7e3d6;stroke:#fff;stroke-width:2;transition:fill .2s}.finger.selected{fill:var(--finger)}.hand-label{font:12px system-ui;fill:#78887d}.finger-label{font:9px system-ui;fill:#5b6a60}.hints-off .finger.selected{fill:#e7e3d6}.finger-legend h3{font-size:13px;margin:4px 0 8px}.finger-legend p{font-size:13px;line-height:1.8;margin:0}.finger-legend .quiet{font-size:11px;padding:7px 9px;margin-top:10px}#key-explainer{font-size:11px;line-height:1.7;color:var(--muted);margin-top:7px}.keyboard-note{font-size:10px}.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}dialog{border:0;border-radius:25px;max-width:620px;width:calc(100% - 30px);padding:32px;color:var(--ink);box-shadow:0 25px 80px #173c3522}dialog::backdrop{background:#18392dc9}#result{text-align:center}.result-art{font-size:50px}dialog h2{font-size:26px}.result-stars{font-size:28px;letter-spacing:8px;color:#c89d39}#result-stats{display:flex;justify-content:center;gap:22px;margin:25px 0;font-size:13px;line-height:1.8}#result-stats strong{display:block;font-size:23px;color:var(--green)}#result-advice{font-size:13px;line-height:1.9;color:var(--muted);white-space:pre-line}#help p,#help li{font-size:14px;line-height:1.9}footer{text-align:center;color:#91a08f;font-size:11px;padding:30px}.shake{animation:shake .2s}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@media(max-width:1000px){.hero{padding:30px;gap:12px}.lesson-layout{grid-template-columns:225px minmax(0,1fr)}.teacher-card{padding:18px}.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hand-panel{grid-template-columns:1fr}.hero-art{transform:scale(.85)}}@media(max-width:720px){header{height:auto;min-height:76px;padding:15px;gap:12px}.top-actions{gap:5px}.top-actions>span{display:none}.top-actions button{font-size:11px;padding:9px}main{padding:18px 12px}.hero{grid-template-columns:1fr;padding:25px}.hero h1{font-size:34px}.hero-art{height:230px}.hero p{font-size:13px}.overview{padding:15px 8px}.overview>div{flex-direction:column;gap:5px}.overview strong{font-size:17px}.overview span{font-size:10px}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-layout{grid-template-columns:1fr}.teacher-card{display:block}.teacher-card .teacher-avatar{float:right}.teacher-card ol{display:flex;gap:24px;flex-wrap:wrap}.teacher-card li{margin:0;font-size:12px;flex:1;min-width:120px}.session-stats{gap:12px}.hand-panel{grid-template-columns:1fr 1fr}.lesson-top{gap:5px;font-size:11px}.pill{font-size:10px;padding:6px 8px}.keyboard-note:before{content:'手机可查看教学，正式训练请使用带实体键盘的电脑。';display:block;color:#a0713b;font-size:12px}.desktop{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* V16: one instruction at a time, larger stage and keyboard. */
:root{--paper:#f4fbfa;--green:#1b796c;--line:#d6e9e4}header{max-width:1500px;height:68px;padding:0 28px}.brand small{font-size:11px;letter-spacing:3px}main{max-width:1450px;padding:18px 24px}.lesson-top{margin-bottom:10px}.lesson-top .quiet{padding:9px 15px}.lesson-layout{display:block}.teacher-card{display:none!important}.training{max-width:1320px;margin:auto}.session-stats{padding-bottom:8px;gap:30px;font-size:15px}.session-stats b{font-size:20px}.progress-track{height:7px;margin-bottom:10px}.coach-scene{height:196px;position:relative;background:linear-gradient(110deg,#ace7f4,#cdf0eb 65%,#e6f6cf);display:grid;grid-template-columns:100px minmax(0,1fr) 135px;align-items:center;gap:20px;padding:20px 35px;overflow:hidden}.coach{position:relative;z-index:1;text-align:center;transform:rotate(-4deg)}.coach-avatar{font-size:62px;width:96px;height:96px;background:#fff8d6;border:5px solid #ffffffb0;border-radius:28px;display:grid;place-items:center;box-shadow:0 5px #84bcb6}.coach>span{font-size:14px;font-weight:800;display:block;margin-top:10px;color:#34655e}.speech{position:relative;z-index:1;background:#fffef7;border-radius:22px;padding:16px 25px;box-shadow:0 5px #93c5ba}.speech:before{content:'';position:absolute;left:-14px;top:40%;border:8px solid transparent;border-right-color:#fffef7}.speech p{font-size:clamp(24px,2.5vw,34px);font-weight:850;line-height:1.4;margin:5px 0 10px;min-height:46px;letter-spacing:.3px}.speech-actions{display:flex;align-items:center;gap:12px}.speech-actions .quiet{background:#eaf2e6;padding:7px 12px;font-size:13px}#voice-state{font-size:10px;color:#799186}#world-label{position:static;font-size:11px}#goal-box{position:relative;z-index:1;text-align:center}#mode-label{font-size:13px;display:block;color:#517c6e;margin:0 0 8px}.target{height:100px;min-width:100px;font-size:68px;border-radius:20px;padding:0 14px;background:#fffef3;box-shadow:0 7px #92bc9c}.pond{height:67px;background:#a2d6b7;border-top:3px solid #89bd9c}.path-pads{top:33px}.path-pads i{background:#65a46d;box-shadow:0 3px #4a8753;width:13%;height:18px}#frog{font-size:44px;top:-3px;filter:drop-shadow(0 3px 0 #568a5960)}#sequence{position:absolute;left:22%;right:6%;bottom:14px;justify-content:flex-start;gap:10px;overflow:hidden}#sequence span{font-size:23px;padding:2px 7px;color:#4d785a}#sequence .current{background:#fffbd0;color:#26694b;border-bottom:3px solid #e9b95c}#sequence .passed{background:#73b78b;color:#f5fff6}.action-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 2px}#feedback{font-size:17px;font-weight:700;padding:4px;min-height:32px;flex:1}.action-strip .primary{font-size:18px;padding:13px 24px;background:#ffc960;color:#38512c;box-shadow:0 4px #dba646;min-width:165px}.action-strip .quiet{font-size:12px;padding:8px 12px}.keyboard-zone{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px;align-items:stretch}.keyboard{background:#dbece4;border:2px solid #cadfd2;border-radius:19px;padding:12px}.key-row{gap:6px;margin:7px 0;min-width:740px}.key{height:58px;border-radius:10px;font-size:24px;border-bottom-width:5px;box-shadow:inset 0 5px var(--finger);background:#fffef4;color:#3f5550}.key .upper{font-size:13px;min-height:17px;color:#81978c}.key[data-code^=Key] .upper{display:none}.key[data-code^=Key]>span:last-child{text-transform:uppercase;font-size:27px}.key.wide{font-size:15px}.key.shift{font-size:16px}.key.space{font-size:19px}.key.home:after{width:17px;height:3px;left:calc(50% - 8px);bottom:4px}.key.active{background:var(--finger);box-shadow:inset 0 3px #ffffff50;border-color:#2f6259;outline:3px solid #36675a;outline-offset:0;color:white}.key.active>span:last-child{font-weight:900}.key-row:last-child{margin-bottom:3px}.hand-panel{display:flex;flex-direction:column;gap:8px;padding:15px 12px;margin:0;border:2px solid #d9e8d9;background:#fffef7;justify-content:center}#hands svg{height:auto;min-height:105px}.finger-label{font-size:13px;font-weight:800}.hand-label{font-size:15px;font-weight:750}.finger{stroke-width:3}.finger.selected{stroke:#426d59;stroke-width:2}.finger-legend h3{font-size:15px;text-align:center;color:#507463}.finger-legend p{font-size:18px;font-weight:800;text-align:center;line-height:1.6;color:#3d6657}.finger-legend .quiet{font-size:10px;width:100%;padding:8px}#key-explainer{font-size:11px;line-height:1.5;margin-top:9px}.below-note{text-align:center;font-size:11px;color:#8ba095;padding-top:9px}.prepare-item{padding:15px;margin:10px 0;background:#eff6e9;border-radius:12px;font-size:19px}footer{padding:15px;font-size:10px}.lesson-tile{background:#fffef5;border-bottom-width:4px}.hero{background:linear-gradient(110deg,#e4f4d5,#bce8e5)}.hero p{font-size:19px}.world-heading h2{font-size:24px}.tile-title{font-size:16px}.tile-key{font-size:32px}.overview{background:#fffef7}.top-actions .quiet{font-size:12px;padding:10px 12px}.coach-avatar.speaking{animation:talk .65s ease-in-out infinite}.coach-avatar.bounce{animation:cheer .32s ease-in-out}.speech-listening .speech{box-shadow:0 5px #68aa99,0 0 0 3px #84cdb56b}@keyframes talk{50%{transform:translateY(-3px) rotate(3deg)}}@keyframes cheer{50%{transform:translateY(-8px)}}
@media(min-width:1000px) and (max-height:850px){header{height:55px}main{padding-top:10px}.coach-scene{height:165px;padding:13px 27px}.coach-avatar{height:78px;width:78px;font-size:49px}.coach-scene{grid-template-columns:85px minmax(0,1fr) 120px}.speech{padding:12px 23px}.speech p{font-size:28px;min-height:38px}.target{height:83px;min-width:90px;font-size:59px}.pond{height:55px}#frog{font-size:38px}.path-pads{top:25px}.key{height:50px}.key-row{margin:5px 0}#sequence{bottom:8px}.session-stats b{font-size:17px}.action-strip{padding:8px 2px}.key-row{min-width:700px}.keyboard-zone{grid-template-columns:minmax(0,1fr) 200px}.lesson-top{margin-bottom:7px}footer{padding:9px}}
@media(max-width:1100px){.keyboard-zone{grid-template-columns:minmax(0,1fr) 175px}.hand-panel{padding:10px 7px}.finger-legend p{font-size:16px}.key-row{min-width:680px;gap:4px}.key{height:55px}.speech p{font-size:27px}.coach-scene{padding:18px 22px;gap:15px}}
@media(max-width:900px){.keyboard-zone{display:block}.hand-panel{display:grid;grid-template-columns:230px 1fr;margin-top:10px;padding:8px 15px}#hands svg{height:115px}.finger-legend{text-align:left}.finger-legend p{text-align:left}.finger-legend h3{text-align:left}.finger-legend .quiet{width:auto}.coach-scene{grid-template-columns:70px minmax(0,1fr) 95px;height:180px;padding:14px;gap:12px}.coach-avatar{width:70px;height:75px;font-size:44px}.speech{padding:13px 17px}.speech p{font-size:23px;min-height:55px}.speech-actions{display:block}#voice-state{display:block;margin-top:4px}.target{min-width:80px;height:80px;font-size:54px}.key-row{min-width:700px}.keyboard{padding:8px}.key{height:55px}#feedback{font-size:15px}}
@media(max-width:600px){header{padding:10px 12px;height:auto}.top-actions{flex-wrap:wrap;justify-content:flex-end}.top-actions .quiet{font-size:10px;padding:7px}.brand{font-size:20px}main{padding:12px 8px}.speech p{font-size:21px}.coach-scene{grid-template-columns:45px minmax(0,1fr) 64px;height:194px;gap:9px;padding:12px}.coach-avatar{width:46px;height:55px;font-size:30px;border-width:3px;border-radius:15px}.coach>span{font-size:10px}.target{min-width:56px;height:65px;font-size:42px;padding:0 5px}.speech{padding:12px}.speech .eyebrow{font-size:9px}.speech-actions .quiet{font-size:11px}#voice-state{font-size:9px}.session-stats{gap:11px;font-size:12px}.session-stats b{font-size:16px}.action-strip{flex-wrap:wrap;gap:7px}.action-strip .primary{font-size:15px;padding:10px 15px}.action-strip #feedback{flex-basis:100%}.hand-panel{grid-template-columns:145px 1fr;padding:9px}.hand-panel #hands svg{height:100px;min-height:0}.finger-legend p{font-size:14px}.finger-legend h3{font-size:12px}.hero{padding:24px}.hero h1{font-size:33px}.hero-art{height:210px}.below-note:before{content:'请在带实体键盘的电脑上练习。';display:block;color:#95752c;font-size:14px}#sequence{left:24%;gap:4px}#sequence span{font-size:20px;padding:1px 5px}.key-row{min-width:680px}.key{height:54px}.key .upper{font-size:12px}.lesson-top{font-size:11px}.lesson-top .quiet{padding:8px 9px}.tile-title{font-size:14px}}

.target.enter-gate{font-size:76px}#target.enter-gate:after{content:'Enter';display:block;position:absolute;bottom:4px;font:700 11px system-ui;color:#608174}
/* V16.3: full-width hands directly below their home keys. */
.keyboard-zone{display:block!important;position:relative;isolation:isolate;background:#fff0d9;border:2px solid #ecd1a8;border-radius:20px;padding:8px 12px 0;overflow:hidden}.keyboard{background:transparent;border:0;padding:5px 0 0;border-radius:0}.key-row{min-width:780px;margin:6px 0}.key{height:54px}.hand-panel{display:flex!important;flex-direction:column;margin:0;padding:0;background:transparent;border:0;border-radius:0;gap:0;position:relative}.hand-panel #hands{width:100%;margin:0}.hand-panel #hands svg{display:block;width:100%;height:auto;min-height:0;max-height:none}.finger{fill:#dba975;stroke:#bc885b;stroke-width:2}.finger.selected{fill:#58d7cd;stroke:#258c8a;stroke-width:3}.nail{fill:#f1cda7;stroke:none}.nail.selected{fill:#a6fff4}.home-on-finger{font:800 24px ui-monospace,monospace;fill:#5a3c28}.finger-name{font:700 16px system-ui;fill:#674c35}.large-hand-label{font:900 24px system-ui;fill:#6d5136}.finger-legend{position:absolute;top:0;left:39%;width:22%;text-align:center;background:#fff7e7;border-radius:0 0 16px 16px;padding:7px 10px;z-index:3}.finger-legend h3{display:none}.finger-legend p{text-align:center;font-size:17px;line-height:1.45}.finger-legend .quiet{font-size:10px;margin-top:6px;padding:5px;width:auto}.finger-legend #key-explainer{display:none}#hand-links{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}.finger-guide{fill:none;stroke:#138c87;stroke-width:3;stroke-dasharray:7 7;opacity:.75}.finger-tip{fill:#45f2da;stroke:white;stroke-width:3}.hints-off .finger.selected{fill:#dba975}.hints-off .nail.selected{fill:#f1cda7}.coach-scene{height:155px;padding:12px 24px;grid-template-columns:80px minmax(0,1fr) 110px}.coach-avatar{height:72px;width:72px;font-size:46px}.speech{padding:10px 20px}.speech p{font-size:29px;margin:4px 0 6px;min-height:40px}.target{height:80px;min-width:85px;font-size:59px}.target.enter-gate{font-size:60px}.pond{height:48px}#frog{font-size:35px;top:-3px}.path-pads{top:22px}.path-pads i{height:14px}#sequence{bottom:4px}.action-strip{padding:7px 2px}.lesson-top{margin-bottom:6px}.session-stats{padding-bottom:6px}.progress-track{margin-bottom:7px}.below-note{padding-top:5px}footer{padding:8px}.speech-actions .quiet{padding:5px 10px}
@media(min-width:1000px) and (max-height:850px){.key{height:45px}.key-row{margin:4px 0}.coach-scene{height:140px}.hand-panel #hands svg{max-height:none}.finger-legend{padding:5px 8px}.finger-legend p{font-size:15px}.session-stats{padding-bottom:4px}.action-strip .primary{padding:10px 20px}}
@media(max-width:1000px){.keyboard-zone{overflow:auto}.hand-panel{min-width:780px}.keyboard{min-width:780px}.hand-panel #hands{min-width:780px}#hand-links{min-width:780px}.finger-legend p{font-size:16px}.coach-scene{grid-template-columns:65px minmax(0,1fr) 90px;padding:12px;gap:12px}.coach-avatar{height:64px;width:64px;font-size:39px}.speech p{font-size:25px}.target{height:75px;min-width:75px}}
@media(max-width:600px){.coach-scene{grid-template-columns:45px minmax(0,1fr) 60px;height:175px;gap:9px}.coach-avatar{height:50px;width:45px;font-size:30px}.speech{padding:10px 12px}.speech p{font-size:21px;min-height:50px}.target{height:65px;min-width:55px;font-size:44px}.target.enter-gate{font-size:50px}.key{height:54px}.hand-panel #hands svg{max-height:none}.keyboard-zone{padding:5px 8px 0}.finger-legend{left:310px;width:170px}.finger-legend p{font-size:15px}}

.finger-legend{display:none!important}.action-strip #hide-hints{font-size:11px;padding:8px 12px;max-width:150px}

#result-keyboard-hint{font-size:15px;font-weight:750;color:#507568;background:#eef6e9;border-radius:12px;padding:12px;margin:20px 0}.dialog-actions button.keyboard-selected{outline:4px solid #f0b946;outline-offset:4px;background:#ffda7c;color:#374c37;box-shadow:0 4px 0 #d5a646}.dialog-actions button{transition:background .1s,outline-color .1s}.dialog-actions button.keyboard-selected:focus-visible{outline:4px solid #e6a92e;outline-offset:4px}@media(max-width:600px){#result-keyboard-hint{font-size:12px}.dialog-actions{gap:14px}}
/* KCD shared purple and warm orange theme; keep finger colors instructional. */
:root{--ink:#34264e;--muted:#81718f;--paper:#faf7ff;--green:#6b43b4;--line:#e6daf8;--lime:#f1e9ff}header{border-bottom-color:#e6daf8}.primary{background:#7750be;box-shadow:0 4px #593593}.quiet{background:#f0e7fc;color:#654298}.brand span,.eyebrow,.world-number,.overview strong,.tile-key{color:#6b43b4}.hero{background:linear-gradient(115deg,#eee3fc,#f8e9ed 68%,#fff0db)}.hero p{color:#80708c}.overview{background:#fff}.lesson-tile{background:white;border-color:#e5d8f6}.lesson-tile.done{background:#f2eafd;border-color:#d5bde9}.lesson-tile.next{border-color:#af86dc}.tile-stars{color:#be8121}.pill{background:#f0e5fc;color:#764bac}.coach-scene{background:linear-gradient(110deg,#e2d5f8,#f1e5fa 65%,#ffefd9)}.speech{box-shadow:0 5px #d5bce7}.speech p{color:#462c69}.coach-avatar{box-shadow:0 5px #c7b2dd}.coach>span{color:#694888}#world-label{color:#9267b2}#mode-label{color:#89679c}.target{color:#7441aa;box-shadow:0 6px #d4b8df;background:#fffaf3}.pond{background:#d9c4e9;border-color:#c3a5d6}.path-pads i{background:#ad88c5;box-shadow:0 3px #9570ae}#sequence span{color:#936fa5}#sequence .passed{background:#b38bcb;color:#fff}#sequence .current{background:#ffdb93;color:#71411e;border-bottom-color:#eea53f}.progress-track{background:#ede1f6}#progress-bar{background:#a577ce}#feedback{color:#724ba0}#feedback.error{color:#b15e3d}.action-strip .primary{background:#ffb34f;color:#663b21;box-shadow:0 4px #db8e32}.keyboard-zone{background:#fff2e0;border-color:#efd8ba}.finger-guide{stroke:#9255bc}.finger-tip{fill:#ffb85b;stroke:#fff}.large-hand-label{fill:#80532e}.below-note{color:#9b849f}#result-keyboard-hint{background:#f2e8fc;color:#704799}.result-stars{color:#df9a28}#result-stats strong{color:#7850ae}.dialog-actions button.keyboard-selected{background:#ffd18a;color:#67401d;outline-color:#e8a33c}.hero-art{background:radial-gradient(ellipse,#ddc8ed 0,transparent 70%)}.orbit{color:#7551a2;box-shadow:0 5px #d9c6e7}.art-keys{background:#fffbf3;box-shadow:0 6px #d8c6e4}.art-keys strong{color:#8153b3}.frog-face{background:#c2a1df;box-shadow:inset 0 -12px #aa83cd,0 25px 0 -10px #e1d0ef}.frog-face i{background:#c2a1df}.frog-face b{color:#74568d}.frog-face i:after{background:#563c70}.save-note{color:#967ca6}#foundation-handoff{margin:18px 0;padding:22px 25px;background:linear-gradient(110deg,#f1e5ff,#fff0db);border:2px solid #dec3f0;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}#foundation-handoff h2{font-size:23px;margin:0 0 8px;color:#67399c}#foundation-handoff p{font-size:14px;margin:0;color:#92769d}#foundation-handoff .primary{text-decoration:none;white-space:nowrap;padding:15px 21px}@media(max-width:650px){#foundation-handoff{display:block}#foundation-handoff .primary{display:inline-block;margin-top:18px}}
