/* One bright, high-contrast visual language for the child's whole journey. */
:root{--paper:#def3ff;--panel:#fff;--ink:#183454;--muted:#48617d;--forest:#1765cf;--forest-dark:#104eac;--sage:#d6ecff;--sage-deep:#b8ddff;--gold:#ffcc32;--line:#a7c9ec;--red:#da2854;--shadow:0 6px 0 #a4cde8;font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif}
body{background:#def3ff;color:var(--ink)}
h1,h2,h3{letter-spacing:0;color:#183454}p,small,.muted{color:var(--muted)}
.app-header{max-width:none;padding:16px max(24px,calc((100vw - 1160px)/2));background:#1765cf;border-bottom:5px solid #ffcc32;color:#fff;min-height:78px}
.brand{color:#fff}.app-header .brand-mark{background:#ffcc32;color:#184f99;box-shadow:0 3px 0 #b57c00;border:2px solid #fff;border-radius:15px;font-size:27px}.brand-second{color:#e0f4ff}
.app-header nav{color:#fff;gap:22px}.app-header nav a.active{color:#fff}.app-header nav a.active:after{background:#ffcc32;height:4px}.app-header nav a:last-child{border:2px solid #86bbff;background:#1056ba;color:#fff}
.child-account{padding:8px 24px;color:#284f7b;font-size:12px}.child-account .button{min-height:30px;padding:4px 10px}
#app{max-width:1160px;margin:0 auto;padding:22px 26px 28px}.app-footer{color:#48617d;letter-spacing:0}
.eyebrow{color:#205d9e;letter-spacing:1px}
.button{border:2px solid #9bbce0;background:#fff;color:#234768;border-radius:16px;min-height:46px;font-weight:750;box-shadow:0 3px 0 #bad3ea;transition:transform .12s,background .12s}
.button:hover:not(:disabled){background:#eaf6ff;transform:translateY(-1px)}.button:active:not(:disabled){transform:translateY(2px);box-shadow:none}
.button.primary{background:#1765cf;border-color:#104eac;color:#fff;box-shadow:0 4px 0 #0c468e}.button.primary:hover:not(:disabled){background:#104eac}
.button.soft{background:#ffdc60;border-color:#c59414;color:#503500;box-shadow:0 4px 0 #d6af43}.button.soft:hover:not(:disabled){background:#ffd33d}
.button.ghost{box-shadow:none;color:#36597b;border-color:transparent;background:transparent}
.button:disabled{opacity:1;background:#e1e9f2;border-color:#becddd;color:#52677d;box-shadow:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6e36b7;outline-offset:3px}
.panel,.word-preview,.collection-card,.empty-state{background:#fff;border:2px solid #93bce4;border-radius:25px;box-shadow:var(--shadow)}
.field{color:#355675;font-weight:650}.field input,.field select,.field textarea{border:2px solid #99b9d9;background:#fff;color:#183454;border-radius:12px;min-height:46px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#1765cf}
.parent-tabs{background:#bcdfff;border:2px solid #83b5e1}.parent-tab{color:#315673;font-weight:700}.parent-tab.active{background:#1765cf;color:#fff;box-shadow:none}
.badge{background:#d8f5e3;color:#205235;font-weight:750}.badge.review{background:#ffe29a;color:#6b3b00}.badge.error{background:#ffd6df;color:#912240}
.review-note,.reason,.inline-note{color:#68450b;background:#fff0bd;border-color:#dcba55}.upload-zone{background:#e4f4ff;border:2px dashed #639fd9}
.unit-row{border-color:#c5daec}.unit-row h3{color:#183454}.parent-title h1{font-size:30px}
.audio-round{background:#ffdb5c;color:#4b3700;border:2px solid #c79a22}.source-row{border-color:#c3d9ec}
.child-login{border:3px solid #2c76cd;background:#fff;border-radius:30px;box-shadow:0 7px 0 #9dc9ed;max-width:500px;margin:30px auto;padding:28px}.child-login h1{font-size:29px}.child-login .eyebrow{display:inline-block;background:#ffdc60;color:#604100;border-radius:10px;padding:4px 10px}
.journey-home{max-width:980px;margin:4px auto 24px}.journey-heading{margin-bottom:20px}.journey-heading h1{font-size:clamp(25px,3.6vw,36px);margin:6px 0 8px}.journey-heading p{margin:0}.journey-heading .eyebrow{color:#1d5d9d}
.journey-current{border:3px solid #2976ca;border-radius:30px;padding:24px;gap:28px;background:#fff;box-shadow:0 7px 0 #9fcbed;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.journey-scene{background:transparent;border-radius:24px;min-width:0}.journey-scene yiyi-word-scene{max-width:360px}.journey-scene .object-bubble,.journey-scene .scene-caption,.journey-scene .scene-sound{display:none}.journey-scene .scene-stage{min-height:170px;aspect-ratio:320/250}.journey-scene .scene-demo{top:8px;right:8px}
.journey-next .eyebrow{background:#ffdc60;color:#604100;display:inline-block;padding:4px 10px;border-radius:10px}.journey-next h2{font-size:44px;line-height:1.15;color:#154b95;margin:14px 0 6px;overflow-wrap:anywhere}.journey-next p{font-size:15px;line-height:1.6;margin-bottom:14px}.journey-next .small{font-size:12px;line-height:1.6;margin:10px 0 0}
.journey-start-actions{gap:8px}.journey-start-actions .button{white-space:normal;min-height:54px}.journey-start-actions .button.primary{background:#1765cf}.journey-start-actions .button.soft{min-height:42px;font-size:12px;flex:0 0 auto}
.journey-footer{gap:8px;margin-top:16px}.journey-footer .button{font-size:12px;min-height:38px;padding:6px 12px}
.task-map{border-top:2px solid #a4c7e5;margin-bottom:20px}.task-map>summary{color:#315979;font-weight:700;padding:8px 0}.map-stop{border:2px solid #a7c5df;color:#244866;border-radius:14px;background:#fff}.map-stop>span{background:#1765cf;color:#fff;min-width:34px;text-align:center;padding:4px 8px;font-weight:800}.map-stop small{color:#4d6580}.map-stop.done{background:#e0f8e8;border-color:#69b98a}.map-stop.done>span{background:#2c8b56}
.review-station{border:2px solid #bd9be4;background:#f0e6ff;box-shadow:none}.review-station h3{margin-bottom:4px}.review-station p{margin-bottom:0}
yiyi-word-scene{max-width:400px;isolation:isolate}.scene-stage{border:3px solid #3576b7;border-radius:24px;background:#70cafa;overflow:hidden;display:flex;align-items:center;justify-content:center;min-width:0}.scene-stage svg{display:block;max-width:100%;height:auto;flex:none}.scene-stage .word-visual{width:100%}
.object-bubble{background:#e7f3ff;color:#21496f;border:2px solid #77a9d8;border-radius:16px;padding:8px 12px;margin-top:10px;min-height:40px;font-size:13px;line-height:1.4}.object-bubble:before{width:11px;height:11px;top:-7px;background:#e7f3ff;border-color:#77a9d8}.object-bubble:empty{display:none}
.scene-demo{position:absolute;top:10px;right:10px;z-index:2;margin:0;padding:5px 10px;border:2px solid #254d78;border-radius:14px;background:#fff;color:#204366;font-size:12px;font-weight:750;min-height:34px;box-shadow:0 2px 0 #234a7833}.scene-demo:disabled{background:#e2eaf1;color:#50677a;border-color:#9cb1c4;opacity:1}
.scene-caption{color:#47617c;margin:8px auto;font-size:12px;max-width:390px;line-height:1.5}.scene-state-mark{top:12%;right:12%;color:#ed9400;text-shadow:0 2px 0 #fff;font-size:34px;pointer-events:none}
.scene-sound{min-height:36px;padding:5px 12px;margin:6px auto 0;background:#ffdc60;border:2px solid #a77a13;border-radius:14px;color:#533900;font-size:12px;font-weight:750}.scene-sound:disabled{background:#e1e9f2;color:#52677d;border-color:#b2c3d2}
yiyi-word-scene[data-state=success] .object-bubble{background:#fff0a8;color:#614000;border-color:#c49624}yiyi-word-scene[data-state=listening] .object-bubble{background:#dcf8e7;color:#1b5438;border-color:#69b88a}yiyi-word-scene[data-state=listening] .object-bubble:before{background:#dcf8e7;border-color:#69b88a}
.pending-picture{min-height:200px;width:100%;border:3px solid #7053ae;border-radius:24px;background:#e4d9ff;color:#493578;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-align:center;padding:24px}.pending-picture>span{font-size:72px;color:#6b3ab9;line-height:1.2}.pending-picture small{font-size:13px;color:#493578;max-width:240px}
/* The scene and action dock share one card; supplemental help stays folded. */
.lesson-card{border:3px solid #2976ca;border-radius:28px;background:#fff;box-shadow:0 6px 0 #9fcbed;padding:20px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(280px,.88fr);grid-template-rows:auto minmax(0,1fr) auto;gap:14px 28px;min-width:0}
.lesson-top{color:#355a7d;font-size:12px;margin:0;gap:12px}.lesson-top a{font-weight:700}.lesson-progress{margin:0;height:7px;gap:6px}.lesson-progress span{background:#bad9f3;border-radius:8px}.lesson-progress span.done{background:#25a763}.lesson-progress span.current{background:#ffc329}
.lesson-title{grid-column:1/-1;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid #d9e9f6;padding-bottom:12px}.lesson-title .eyebrow{font-size:11px;letter-spacing:0;border-radius:10px;background:#e2f0ff;padding:5px 10px;margin:0;color:#24558b}.lesson-title h1{font-size:21px;margin:0;line-height:1.3;color:#193f68}.lesson-title>p{display:none}
.lesson-scene{position:relative;grid-column:1;grid-row:2;margin:0;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.lesson-target{width:100%;max-width:400px;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.lesson-target>yiyi-word-scene{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;max-height:420px}.lesson-target .scene-stage{flex:1;min-height:100px;max-height:330px;width:100%}.lesson-target .scene-stage svg{height:100%;width:auto;max-width:100%;max-height:100%;object-fit:contain}.lesson-target .scene-caption{display:none}.lesson-target .scene-demo{display:block}
.lesson-word{font-size:37px;color:#164c96;line-height:1.12;margin:10px 0 3px;font-weight:850;text-align:center;overflow-wrap:anywhere}.lesson-meaning{font-size:16px;color:#3b5773;line-height:1.3;margin:0;text-align:center}
.lesson-original{display:none}.lesson-controls{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:14px;background:#eff7ff;border:2px solid #c4dcef;border-radius:23px;min-height:0;margin:0;min-width:0}
.practice-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:360px;align-items:start}.listen-action,.record-action{gap:10px;min-width:0}.listen-action small,.record-label{font-size:12px;color:#365777;line-height:1.4;text-align:center;min-height:20px}
.button.listen-button{background:#ffcf3e;color:#4e3500;border:3px solid #c18b10;box-shadow:0 5px 0 #dcaa34;border-radius:22px;font-size:17px;font-weight:850}.button.listen-button:hover:not(:disabled){background:#ffdc62}.listen-action .listen-button{height:118px;min-height:118px;min-width:0;width:100%;max-width:145px;display:flex;flex-direction:column;gap:8px}.listen-button svg{width:31px;height:31px}
.record-orb{width:118px;height:118px;min-height:118px;border:3px solid #18834b;background:#3bd481;color:#133f2c;box-shadow:0 5px 0 #16884d,0 0 0 5px #d2f3df;font-size:16px}.record-orb:disabled{opacity:1;background:#dce6f0;color:#52677d;border:3px solid #9fb6cc;box-shadow:0 4px 0 #b7cadc}.record-orb.recording{background:#e64460;border-color:#a32440;color:#fff;box-shadow:0 5px 0 #a32440,0 0 0 5px #ffdae3}
.record-orb svg{width:35px;height:35px}.listen-status{font-size:13px;color:#365777;line-height:1.5;min-height:20px;margin:0;text-align:center;max-width:320px}.recording-time{font-size:12px;line-height:1.3;margin:0;color:#a02741}.recording-time:empty{display:none}
#skip-word{min-height:34px;font-size:12px;padding:4px 8px;color:#50657a}.recording-assist{font-size:11px;color:#47627d;margin:0}.recording-assist summary{cursor:pointer;padding:4px}.recording-assist[open]{position:fixed;inset:18% max(20px,calc((100vw - 500px)/2)) auto;z-index:30;max-height:60dvh;overflow:auto;background:#fff;border:3px solid #2976ca;border-radius:20px;padding:18px;box-shadow:0 0 0 100vmax #112a4266}
.lesson-bottom{grid-column:1/-1;grid-row:3;display:flex;justify-content:space-between;align-items:center;border-top:2px solid #d9e9f6;padding-top:10px;margin:0;gap:10px;font-size:11px;color:#47617c}.lesson-bottom .button{min-height:34px;font-size:12px;padding:4px 10px}
.lesson-card>.inline-note{grid-column:1/-1;font-size:12px;padding:7px 12px;margin:0}
.coach-aid{position:absolute;z-index:4;top:9px;left:9px;width:auto;max-width:160px;margin:0;text-align:left}.coach-aid summary{font-size:10px;padding:6px 8px;border:1px solid #9cb8d4;border-radius:10px;color:#31577b;background:#fff}.coach-aid[open]{position:fixed;inset:8dvh auto auto 50%;transform:translateX(-50%);width:min(90vw,380px);max-width:none;max-height:82dvh;overflow:auto;padding:16px;border:3px solid #2976ca;border-radius:22px;background:#fff;box-shadow:0 0 0 100vmax #112a4266;text-align:center}.coach-aid[open] yiyi-coach{height:260px;width:100%;margin:8px auto}.coach-aid small{color:#48617d}
.child-reward,.mood-yay{background:#fff0b4!important;border:2px solid #ce9f25!important;border-radius:20px;text-align:center;width:100%;padding:14px}.child-reward.mood-listen,.child-reward.mood-gentle{background:#e1efff!important;border-color:#78a9d8!important}.child-reward.mood-try{background:#e0f7e7!important;border-color:#6cb68a!important}
.reward-heading{gap:8px}.reward-heading h2,.child-reward .reward-heading h2{font-size:21px;color:#314362;line-height:1.25;margin:0}.reward-buddy{font-size:30px}.child-reward .child-tip{color:#3c526a;font-size:14px;line-height:1.4;margin:8px 0}.reward-note{color:#674b13;font-size:11px;line-height:1.4}.stars,.stars.gold,.child-reward .stars,.lesson-mode .assessment-box.child-reward .stars{color:#d91e50;text-shadow:0 2px 0 #fff;font-size:30px;margin:8px 0;gap:5px}.stars .empty,.stars.gold .empty{color:#977485;text-shadow:none}
.kid-audio-actions,.kid-next-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:0}.kid-audio-actions .button,.kid-next-actions .button{min-width:0;min-height:46px;padding:7px 9px;font-size:13px;line-height:1.25}.button.self-listen{color:#274e8c;background:#e2edff;border-color:#8cadd7;box-shadow:0 3px 0 #b5cbea}.button.retry-button{background:#ffdc60;color:#5d4100;border-color:#c39726;box-shadow:0 3px 0 #d6b254}.button.next-button{background:#29a65e;color:#fff;border-color:#1b7c43;box-shadow:0 4px 0 #176f3b}.button.coach-replay{background:#fff;color:#3b5681;border:1px solid #a6bfd9;box-shadow:none;min-height:32px;font-size:12px;padding:4px 10px}.assessment-details{color:#49617a;font-size:11px}
.scene-lab{max-width:820px;background:#fff;border:3px solid #2976ca;border-radius:30px;box-shadow:0 6px 0 #9fcbed;margin:26px auto;padding:26px}.scene-lab h1{font-size:28px}.scene-lab p{color:#48617d}.scene-lab>yiyi-word-scene{max-width:390px}.lab-controls{gap:8px;margin:18px 0}.lab-controls .button{min-height:42px}.scene-lab .field{max-width:560px;margin-left:auto;margin-right:auto}
.collection-card{padding:20px}.collection-card h3{color:#214c7b}.collection-card .badge{background:#ffe39b;color:#664700}.round-award{background:#fff0ac;border:2px solid #c59b2c}.celebration .panel{border:3px solid #2976ca}.celebration h1{font-size:30px}.celebration .stars{font-size:42px}.sticker-option{border:2px solid #a1bed9;background:#e7f4ff}.sticker-option.selected{border-color:#1765cf;background:#ffedaa}
@media(min-width:761px) and (min-height:640px){
 body.lesson-mode{height:100dvh;min-height:0;overflow:hidden}.lesson-mode .app-header{padding-top:9px;padding-bottom:9px;min-height:62px}.lesson-mode .brand-mark{width:36px;height:38px}.lesson-mode .brand{font-size:15px}.lesson-mode .brand-second{font-size:10px}.lesson-mode>.app-footer{display:none}.lesson-mode #child-account{height:37px}.lesson-mode #app{height:calc(100dvh - 99px);min-height:0;padding:8px 24px 15px}.lesson-mode .lesson-shell{height:100%;margin:0;display:flex;flex-direction:column;gap:8px}.lesson-mode .lesson-top{min-height:22px;flex:none}.lesson-mode .lesson-progress{flex:none}.lesson-mode .lesson-card{flex:1;min-height:0;overflow:hidden}
}
@media(max-width:760px){
 .app-header{padding:12px 16px;min-height:70px}.brand{font-size:15px}.app-header nav{gap:12px;font-size:12px}.app-header nav a:last-child{padding:6px 10px}.app-header nav a[data-route=collection]{display:none}.brand-second{font-size:10px}.child-account{padding:7px 16px}#app{padding:14px 14px 24px}.app-footer{display:block;padding:15px 18px;font-size:10px}.app-footer span:last-child{display:none}
 .journey-heading h1{font-size:25px}.journey-heading p{font-size:13px}.journey-current{grid-template-columns:1fr;padding:16px;gap:14px;border-radius:25px}.journey-scene{max-width:320px;width:100%;margin:0 auto}.journey-next{text-align:center}.journey-next h2{font-size:34px;margin-top:8px}.journey-next p{margin-bottom:12px}.journey-next>.eyebrow{font-size:10px}.journey-start-actions{display:flex;flex-wrap:wrap}.journey-start-actions .button.primary{flex:1;min-width:180px}.journey-start-actions .button.soft{min-width:0;width:auto}.journey-footer{margin-top:12px}.map-list{grid-template-columns:1fr}.map-stop{padding:10px}.journey-scene .scene-stage{min-height:0}
 body.lesson-mode{height:100dvh;overflow:hidden;min-height:0}.lesson-mode>.app-header,.lesson-mode>.app-footer,.lesson-mode>#child-account{display:none}.lesson-mode #app{height:100dvh;min-height:0;margin:0;padding:max(7px,env(safe-area-inset-top)) 10px max(7px,env(safe-area-inset-bottom))}.lesson-mode .lesson-shell{height:100%;display:flex;flex-direction:column;gap:6px;margin:0;min-height:0}.lesson-mode .lesson-top{min-height:25px;font-size:10px;flex:none;gap:6px}.lesson-mode .lesson-top>span{white-space:nowrap}.lesson-mode .lesson-progress{height:5px;flex:none}
 .lesson-mode .lesson-card{display:flex;flex-direction:column;flex:1;min-height:0;padding:10px;border-radius:22px;gap:8px;overflow:hidden}.lesson-mode .lesson-title{flex:none;display:flex;flex-direction:row;border-bottom:0;padding:0;justify-content:center;gap:8px}.lesson-mode .lesson-title .eyebrow{font-size:10px;padding:3px 7px;margin:0}.lesson-mode .lesson-title h1{font-size:15px;line-height:1.3}.lesson-mode .lesson-title>p{display:none}
 .lesson-mode .lesson-scene{flex:1;min-height:90px;margin:0;display:flex;overflow:visible}.lesson-mode .lesson-target{height:100%;min-height:0;max-width:340px}.lesson-mode .lesson-target>yiyi-word-scene{height:0;flex:1;max-height:none;min-height:0;width:100%;display:flex;flex-direction:column}.lesson-mode .scene-stage{flex:1;min-height:45px;width:100%;border-radius:20px;border-width:2px;display:flex;align-items:center;justify-content:center;overflow:hidden}.lesson-mode .scene-stage svg{height:100%;width:auto;max-height:100%;max-width:100%;object-fit:contain}.lesson-mode .scene-stage .word-visual{height:100%;display:flex;align-items:center;justify-content:center}
 .lesson-mode .object-bubble{flex:none;min-height:0;width:100%;font-size:11px;padding:5px 8px;margin-top:7px;line-height:1.3;border-radius:12px}.lesson-mode .scene-demo{display:block;top:7px;right:7px;padding:4px 7px;font-size:10px;min-height:30px;border-radius:11px}.lesson-mode .scene-caption{display:none}.lesson-mode .scene-sound{flex:none;min-height:30px;padding:3px 9px;font-size:10px;margin:4px auto 0}.lesson-mode .lesson-word{font-size:29px;line-height:1.05;margin:7px 0 2px}.lesson-mode .lesson-meaning{font-size:13px;margin:0;line-height:1.2}
 .lesson-mode .lesson-controls{flex:none;width:100%;min-height:0;padding:9px 10px;border:2px solid #c4dcef;border-radius:18px;gap:6px;margin:0;background:#eff7ff}.lesson-mode .practice-actions{gap:14px;width:100%;max-width:315px;align-items:start;padding:0}.lesson-mode .listen-action,.lesson-mode .record-action{gap:7px}.lesson-mode .listen-action .listen-button{height:84px;min-height:84px;width:100%;max-width:132px;min-width:0;font-size:15px;padding:8px;border-radius:20px;gap:5px}.lesson-mode .listen-button svg{width:28px;height:28px}.lesson-mode .record-orb{width:86px;height:86px;min-height:86px;font-size:14px;border-width:3px;box-shadow:0 4px 0 #16884d,0 0 0 4px #d2f3df}.lesson-mode .record-orb:disabled{box-shadow:0 4px 0 #b7cadc}.lesson-mode .record-orb svg{width:29px;height:29px}.lesson-mode .listen-action small,.lesson-mode .record-label{font-size:10px;line-height:1.2;min-height:12px}.lesson-mode .listen-status{font-size:11px;min-height:0;line-height:1.3}.lesson-mode .recording-time{display:none}.lesson-mode #skip-word{font-size:10px;min-height:24px;padding:2px 5px}.lesson-mode .recording-assist{font-size:10px;margin:0}.lesson-mode .recording-assist summary{padding:2px}
 .lesson-mode .coach-aid{display:block;top:7px;left:7px;width:auto;max-width:135px;margin:0}.lesson-mode .coach-aid summary{font-size:9px;padding:6px}.lesson-mode .coach-aid[open]{position:fixed;top:8dvh;left:50%;width:min(90vw,380px);max-width:none;max-height:82dvh;padding:14px}
 .lesson-mode .lesson-bottom{min-height:29px;flex:none;padding-top:5px;gap:4px;font-size:9px;border-top-width:1px}.lesson-mode .lesson-bottom .button{min-height:26px;font-size:10px;padding:3px 5px}.lesson-mode .lesson-original{display:none}.lesson-mode .lesson-card>.inline-note{display:none}
 .lesson-mode .assessment-box.child-reward{padding:8px;border-radius:15px;margin:0}.lesson-mode .reward-heading h2{font-size:17px}.lesson-mode .reward-buddy{font-size:25px}.lesson-mode .assessment-box.child-reward .stars{font-size:25px;margin:5px 0}.lesson-mode .child-reward .child-tip{font-size:12px;margin:5px 0;line-height:1.3}.lesson-mode .reward-note{font-size:10px;line-height:1.3}.lesson-mode .kid-audio-actions,.lesson-mode .kid-next-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin:0}.lesson-mode .kid-audio-actions .button,.lesson-mode .kid-next-actions .button{min-height:39px;padding:5px;font-size:11px;border-radius:13px}.lesson-mode .kid-audio-actions svg{width:19px;height:19px}.lesson-mode .coach-replay{min-height:27px;font-size:10px;padding:3px 8px}.lesson-mode .assessment-details{font-size:10px}.lesson-mode .assessment-details summary{padding:2px}
 .scene-lab{margin:14px 10px;padding:17px;border-radius:24px}.scene-lab h1{font-size:24px}.scene-lab p{font-size:13px}.scene-lab>yiyi-word-scene{max-width:330px}.lab-controls .button{font-size:12px;padding:8px 10px;min-height:39px}
}
@media(max-width:760px) and (max-height:670px){.lesson-mode .lesson-card{gap:5px;padding:8px}.lesson-mode .lesson-title h1{font-size:13px}.lesson-mode .lesson-title .eyebrow{font-size:9px}.lesson-mode .object-bubble{font-size:10px;padding:4px 6px}.lesson-mode .lesson-word{font-size:25px;margin-top:4px}.lesson-mode .lesson-controls{padding:6px;gap:4px}.lesson-mode .listen-action .listen-button{height:70px;min-height:70px;font-size:13px}.lesson-mode .record-orb{width:72px;height:72px;min-height:72px;font-size:12px}.lesson-mode .record-orb svg{width:25px;height:25px}.lesson-mode .recording-assist{display:none}.lesson-mode .scene-sound{min-height:25px;font-size:9px}.lesson-mode .scene-demo{min-height:25px;font-size:9px}.lesson-mode .coach-aid summary{font-size:8px}.lesson-mode .assessment-box.child-reward .stars{font-size:22px}.lesson-mode .reward-heading h2{font-size:15px}.lesson-mode .child-reward .child-tip{font-size:11px}.lesson-mode .kid-audio-actions .button,.lesson-mode .kid-next-actions .button{min-height:34px;font-size:10px}.lesson-mode .coach-replay{min-height:24px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.button{transition:none}.button:hover:not(:disabled){transform:none}}
/* Let the drawing keep its own proportions, without colored letterbox bars. */
.lesson-shell{max-width:1100px;width:100%;margin-left:auto;margin-right:auto}
.lesson-mode .lesson-shell{margin-left:auto;margin-right:auto}
.lesson-target .scene-stage{border:0;background:transparent;overflow:visible}
.lesson-target .scene-stage svg{border:3px solid #3576b7;border-radius:23px;overflow:hidden!important}
.lesson-word{order:-2;margin-top:0}.lesson-meaning{order:-1;margin-bottom:9px}
.lesson-mode .recording-time{display:none}
.lesson-controls:has(.record-orb.recording) .recording-time{display:block}
.lesson-target .pending-picture{flex:1;min-height:75px}
@media(max-width:760px){.lesson-mode .lesson-word{order:-2;margin-top:0}.lesson-mode .lesson-meaning{order:-1;margin-bottom:6px}.lesson-mode .scene-stage{border:0;background:transparent;overflow:visible}.lesson-mode .scene-stage svg{border:2px solid #3576b7;border-radius:19px;overflow:hidden!important}.lesson-mode .pending-picture{padding:12px;min-height:65px}.lesson-mode .pending-picture>span{font-size:clamp(35px,9dvh,65px)}}
/* Draw the frame inside the SVG so its transparent fitted margins stay clear. */
.scene-stage,.lesson-target .scene-stage,.lesson-mode .scene-stage{border:0;background:transparent;border-radius:0;overflow:visible}
.scene-stage svg,.lesson-target .scene-stage svg,.lesson-mode .scene-stage svg{border:0;border-radius:0;overflow:visible!important}
@supports(container-type:inline-size){yiyi-word-scene{container-type:inline-size}.lesson-target .scene-stage{max-height:min(330px,78.125cqw)}}
/* The result card owns the explanation; avoid echoing it above the picture. */
.lesson-card:has(.child-reward) yiyi-word-scene .object-bubble{display:none}
.lesson-card:has(.child-reward) .scene-sound{display:none}
.lesson-controls:has(#speech-next:not(:disabled))>#skip-word{display:none}
.kid-next-actions>.button:only-child{grid-column:1/-1}
@media(max-width:760px){.lesson-controls:has(.child-reward)>#listen-status{display:none}}
@media(min-width:761px) and (min-height:640px){body.lesson-mode{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.lesson-mode>.app-header{width:100%;margin:0}.lesson-mode>#child-account{width:100%}.lesson-mode #app{height:auto;width:100%;min-height:0}}
/* Large word -> reference IPA -> meaning, with one NEXT action at the bottom. */
.lesson-word,.lesson-mode .lesson-word{order:-3;font-size:clamp(48px,5vw,64px);line-height:1.05;font-weight:900;color:#c31b61;letter-spacing:.3px;margin:0 0 3px;text-shadow:0 2px 0 #ffe2ee}
.journey-next h2{font-size:clamp(40px,5vw,58px);color:#c31b61;font-weight:900}
.word-ipa{order:-2;flex:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:2px 0 6px;line-height:1.25;color:#26355f;max-width:100%;text-align:center}
.ipa-label{font-size:10px;background:#e2edff;color:#294a75;padding:3px 6px;border-radius:8px;white-space:nowrap;font-weight:700}
.ipa-text{font:600 21px/1.25 'Segoe UI','Arial','Noto Sans',sans-serif;overflow-wrap:anywhere;letter-spacing:.4px}.ipa-pending{font-size:12px;color:#684d27}
.lesson-meaning{order:-1}.journey-next .word-ipa{justify-content:flex-start;margin:2px 0 8px}
.lesson-bottom{min-height:55px;gap:12px}.lesson-bottom-note{flex:1;text-align:center}.lesson-next-icon{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;border:1px solid #a5b99b;border-radius:12px;min-height:44px;min-width:78px;padding:4px 6px;background:#deebd8;box-shadow:0 2px 0 #c5d5bd;color:#405b39;font-weight:800;font-size:12px;letter-spacing:.5px;cursor:pointer}.lesson-next-icon svg{width:20px;height:20px}.lesson-next-icon[data-mode=advance]{background:#deebd8;border-color:#a5b99b;box-shadow:0 2px 0 #c5d5bd}.lesson-next-icon:not(:disabled):hover{background:#d2e3cb}.lesson-next-icon:focus-visible{outline:2px solid #698c5e;outline-offset:3px}.lesson-next-icon:disabled{background:#edf2e9;color:#82917c;border-color:#cbd5c5;box-shadow:none;cursor:default}
.kid-next-actions:empty{display:none}.kid-next-actions #replay-coach{min-height:40px;font-size:12px;padding:5px 8px}.lesson-controls:has(.child-reward){gap:9px}
@media(max-width:760px){
 .lesson-mode .lesson-word{font-size:44px;line-height:1.03;order:-3;margin:0 0 3px}.lesson-mode .word-ipa{order:-2;margin:0 0 4px;gap:5px}.lesson-mode .ipa-text{font-size:20px;line-height:1.2}.lesson-mode .ipa-label{font-size:9px;padding:2px 5px}.journey-next .word-ipa{justify-content:center}.journey-next h2{font-size:42px}
 .lesson-mode .lesson-bottom{min-height:52px;padding-top:5px;gap:8px}.lesson-mode .lesson-bottom-note{display:none}.lesson-mode .lesson-bottom #finish-early{min-height:38px;font-size:11px}.lesson-mode .lesson-next-icon{margin-left:auto;min-height:44px;min-width:74px;padding:4px 6px;font-size:12px;border-radius:12px}.lesson-mode .lesson-next-icon svg{width:18px;height:18px}
 .lesson-mode .kid-next-actions #replay-coach{min-height:36px;font-size:10px;padding:4px 5px}.lesson-mode .lesson-controls:has(.child-reward){gap:6px}
}
@media(max-width:760px) and (max-height:670px){.lesson-mode .lesson-word{font-size:39px}.lesson-mode .ipa-text{font-size:18px}.lesson-mode .word-ipa{margin-bottom:2px}.lesson-mode .lesson-bottom{min-height:48px}.lesson-mode .lesson-next-icon{min-height:44px;font-size:12px}.lesson-mode .lesson-card:has(.child-reward) .lesson-meaning{display:none}.lesson-mode .kid-next-actions #replay-coach{min-height:32px}}
/* Symmetric word navigation, with the rest action kept in the center. */
.lesson-bottom{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.lesson-bottom #finish-early{justify-self:center;min-width:0;white-space:normal;text-align:center}.lesson-bottom .lesson-next-icon{margin-left:0}.lesson-prev-icon{grid-column:1}.lesson-bottom #lesson-next-icon{grid-column:3}
.passage-listen{padding:14px 18px;margin:12px 0;background:#fff2af;border:2px solid #d7b943;border-radius:18px}.passage-listen summary{cursor:pointer;font-weight:700;min-height:32px}.passage-listen audio{display:block;width:100%;max-width:440px;margin:10px 0}.passage-listen small{display:block;line-height:1.5}
.journey-task-picker{max-width:540px;margin:0 0 16px}.journey-task-picker select{width:100%;min-width:0;min-height:44px}
.sentence-lesson .lesson-word{font-size:clamp(22px,3vw,32px);line-height:1.28;letter-spacing:0;overflow-wrap:anywhere}.sentence-lesson .word-ipa{display:none}.sentence-lesson .lesson-meaning{font-size:14px;line-height:1.4}
.sentence-chunks{font-size:11px;line-height:1.4}.sentence-chunks summary{cursor:pointer;color:#355a39;min-height:28px}.sentence-chunks>div{display:flex;flex-wrap:wrap;gap:6px}.sentence-chunks .button{min-height:36px;padding:5px 9px;font-size:11px}.sentence-chunks small{display:block;margin-top:4px;color:#48617d}
.journey-next:has(+.passage-listen) h2,.journey-current:has(.sentence-lesson) h2{font-size:26px}
.journey-home:has(.passage-listen) .journey-next h2{font-size:clamp(22px,3vw,32px);line-height:1.35;overflow-wrap:anywhere}.journey-home:has(.passage-listen) .journey-next .word-ipa{display:none}
/* Reward cards must fit their tracks instead of sizing the mobile viewport. */
.collection-page{width:100%;min-width:0;max-width:100%;padding-bottom:8px}
.collection-heading{flex-wrap:wrap;align-items:center;gap:16px;margin:12px 0 24px}
.collection-heading>div{flex:1 1 260px;min-width:0}
.collection-heading .eyebrow{font-size:11px;letter-spacing:1px;overflow-wrap:anywhere}
.collection-heading h1{font-size:clamp(26px,3vw,34px);line-height:1.3;margin:5px 0 0}
.collection-heading p{line-height:1.7;max-width:42em}
.collection-return{flex:none;min-height:44px;padding:10px 18px;white-space:nowrap}
.collection-page .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.collection-page .collection-card{min-width:0;max-width:100%;padding:18px;transform:none;border-radius:22px}
.collection-art,.collection-details{min-width:0;max-width:100%}
.collection-page .word-picture{width:100%;height:180px}
.collection-page .word-visual{width:100%;height:100%;min-width:0;max-width:100%;max-height:100%}
.collection-page .word-picture svg{width:100%;height:100%;max-width:100%;object-fit:contain}
.collection-page .stars{font-size:30px;line-height:1.2;letter-spacing:0;gap:4px;margin:12px 0 8px;flex-wrap:nowrap}
.collection-page .stars>span{min-width:0}
.collection-page .collection-card h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere;margin:6px 0}
.collection-page .collection-card p{font-size:12px;line-height:1.5;margin:4px 0 0}
@media(min-width:960px){.collection-page .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(min-width:1280px){.collection-page .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){
 .collection-heading{align-items:flex-start;gap:12px;margin:6px 0 18px}.collection-heading>div{flex-basis:100%}.collection-heading h1{font-size:27px}.collection-heading p{font-size:13px;margin-top:6px}.collection-heading .eyebrow{font-size:10px}.collection-return{font-size:13px;padding:8px 14px}
 .collection-page .collection-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .collection-page .collection-card{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:14px;padding:14px;border-radius:20px;text-align:left;box-shadow:0 4px 0 #a4cde8}
 .collection-page .word-picture{height:82px;aspect-ratio:auto;max-height:none}
 .collection-page .stars{justify-content:flex-start;font-size:26px;gap:3px;margin:0 0 7px}
 .collection-page .collection-card h3{font-size:14px;margin:0 0 4px}.collection-page .collection-card p{font-size:11px;margin:0}
}
@media(max-width:359px){.collection-page .collection-card{grid-template-columns:80px minmax(0,1fr);gap:10px;padding:12px}.collection-page .word-picture{height:72px}.collection-page .stars{font-size:23px;gap:2px}.collection-page .collection-card h3{font-size:13px}}
@media(max-width:760px){.lesson-mode .lesson-card:has(.child-reward) .lesson-meaning{display:block}.lesson-mode .sentence-lesson .lesson-word{font-size:clamp(20px,5.2vw,25px);line-height:1.22;letter-spacing:0}.lesson-mode .sentence-lesson .lesson-meaning{font-size:12px;line-height:1.3}.lesson-mode .sentence-lesson .word-ipa{display:none}}
