*{box-sizing:border-box}html,body{margin:0;background:#fff;color:#092b40;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}body{-webkit-tap-highlight-color:transparent}main{max-width:480px;margin:auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 14px) 24px calc(env(safe-area-inset-bottom,0px) + 16px)}h1{font-size:29px;line-height:1.17;letter-spacing:-.85px;font-weight:700;margin:0 0 9px}p{font-size:15px;line-height:1.55;color:#526d79;margin:0}h2{margin:3px 0;font-size:23px}.brand{width:112px;display:block;margin:15px auto 0}.hero{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 0;gap:12px}.hero h1{font-size:32px;max-width:340px;margin:8px 0 0}.hero p{max-width:310px}.character{position:relative;display:grid;place-items:center;width:210px;height:205px;margin-bottom:12px}.character:before{content:'';position:absolute;width:172px;height:172px;border-radius:50%;background:#effafb}.mascot{width:190px;position:relative;height:auto;display:block;animation:bob 4s ease-in-out infinite}.orbit{position:absolute;border-radius:50%;background:#ffac98;width:8px;height:8px;animation:twinkle 3s ease-in-out infinite}.o1{top:17px;left:20px}.o2{bottom:30px;right:12px;background:#88dce0;animation-delay:1s}.actions{display:grid;gap:10px;padding-top:20px;margin-top:auto}.btn{font:inherit;display:flex;justify-content:center;align-items:center;text-decoration:none;border-radius:16px;background:#08b8c5;color:#092b40;font-weight:700;min-height:53px;padding:13px 15px;border:1px solid transparent;width:100%;cursor:pointer;transition:transform .15s,background .15s}.btn:active{transform:scale(.98)}.btn:disabled{background:#e5edef;color:#80939a;cursor:default}.secondary{background:#fff;border-color:#d5e3e6}.top{display:flex;align-items:center;gap:14px;margin:4px 0 24px}.back{width:38px;height:38px;display:grid;place-items:center;color:#092b40}.back svg{width:24px;height:24px}.track{height:7px;background:#e5edef;flex:1;border-radius:20px;overflow:hidden}.fill{height:100%;width:var(--progress);background:#08b8c5;border-radius:20px;animation:progress .5s ease-out}.question{display:flex;align-items:center;gap:12px;margin-bottom:8px}.question h1{font-size:25px;letter-spacing:-.6px}.question p{font-size:14px}.mini{width:65px;flex-shrink:0;animation:bob 4s ease-in-out infinite}.options{display:grid;gap:9px;margin-top:15px}.option{position:relative;display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid #dce7ea;border-radius:16px;text-decoration:none;color:#092b40;min-height:62px;transition:background .2s,border-color .2s,transform .15s}.option strong{font-size:15px;display:block;font-weight:650}.option small{display:block;color:#607681;font-size:12px;margin-top:3px}.copy{flex:1;min-width:0}.tile{width:39px;height:39px;display:grid;place-items:center;background:#e1f5f6;border-radius:12px;color:#087d89;flex-shrink:0}.tile svg,.note svg{width:22px;height:22px}.t1{background:#eaf4e7;color:#437852}.t2{background:#fff0db;color:#a66419}.t3{background:#f2eafd;color:#7956a4}.t4{background:#ffede8;color:#ae5843}.t5{background:#e9effc;color:#4c6ba7}.status{color:#607681;font-size:11px;white-space:nowrap}.available{border-color:#08a6b2;background:#f0fbfc}.available .status{color:#087d89;font-weight:650}.unavailable{background:#fafcfc}.choice{cursor:pointer}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice:has(input:checked){border-color:#08a6b2;background:#edfafa}.choice:has(input:focus-visible){outline:2px solid #087d89;outline-offset:2px}.mark{width:23px;height:23px;border:1.5px solid #c8d8dc;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.mark svg{width:15px;opacity:0}.choice:has(input:checked) .mark{background:#08b8c5;border-color:#08b8c5;color:#092b40}.choice:has(input:checked) .mark svg{opacity:1;animation:pop .2s ease-out}form{flex:1;display:flex;flex-direction:column}.summary{margin-top:18px;border:1px solid #d9e8ea;border-radius:22px;overflow:hidden}.planhead{display:flex;align-items:center;gap:15px;background:#eaf9fa;padding:20px}.planhead>svg{width:42px;height:42px;color:#087d89}.summary small{color:#607681;font-size:12px}.metrics{display:grid;grid-template-columns:1fr 1fr;padding:17px;gap:14px}.metrics strong{display:block;margin-top:6px;font-size:15px}.detail{padding:15px 17px;border-top:1px solid #e5edef}.detail p{margin-top:5px;font-size:14px;color:#092b40}.note{display:flex;align-items:center;gap:10px;padding:13px 15px;background:#f0faf9;border-radius:15px;font-size:14px;line-height:1.4;margin-top:15px;color:#28565c;text-align:left}.note svg{flex-shrink:0;color:#087d89}.small{font-size:12px!important}.splash{position:fixed;inset:0;background:#092b40;display:grid;place-items:center;z-index:10;pointer-events:none;animation:exit .35s 1s forwards}.splash .brand{position:absolute;bottom:10%;width:135px}.splash .mascot{width:180px}.splash-ripple{position:absolute;width:180px;height:180px;border:2px solid #3ecbd3;border-radius:50%;animation:ripple 1.2s ease-out infinite}.question,.options,.summary,.hero{animation:enter .35s ease-out both}@keyframes exit{to{opacity:0;visibility:hidden}}@keyframes bob{50%{transform:translateY(-7px) rotate(-1deg)}}@keyframes ripple{from{transform:scale(.7);opacity:.6}to{transform:scale(1.7);opacity:0}}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes progress{from{width:0}}@keyframes twinkle{50%{transform:scale(1.4);opacity:.5}}@keyframes pop{from{transform:scale(.6)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}.splash{display:none}}@media(max-height:720px){.character{width:175px;height:160px;margin-bottom:4px}.character:before{width:145px;height:145px}.mascot{width:155px}.hero{gap:8px;padding:10px 0}.top{margin-bottom:14px}.option{min-height:54px;padding:8px 10px}.options{gap:7px}.actions{padding-top:14px}}
.editline{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:13px;color:#526d79}.editline a,.sectionhead a{color:#087d89;text-decoration:none;font-weight:650}.editline+.summary{margin-top:8px}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:5}.confetti i{position:absolute;left:var(--x);top:-20px;width:7px;height:12px;border-radius:2px;background:var(--c);animation:fall 1.7s var(--d) ease-in both}@keyframes fall{to{transform:translateY(85vh) rotate(340deg);opacity:0}}.appbody{background:#f7fafb}.appmain{padding:calc(env(safe-area-inset-top,0px) + 14px) 20px calc(env(safe-area-inset-bottom,0px) + 96px);gap:16px;min-height:100dvh}.appmain h1{font-size:28px}.appmain h2{font-size:18px;letter-spacing:-.35px}.appheader,.sectionhead,.headericons,.course{display:flex;align-items:center;justify-content:space-between;gap:10px}.course,.headericons a{color:#092b40;text-decoration:none}.course small{display:block;font-size:9px;letter-spacing:1px;color:#647b86;margin-bottom:4px}.course strong{font-size:16px}.flag{font-size:27px}.headericons a{display:flex;align-items:center;gap:3px}.headericons svg,.sectionhead svg,.option>svg{width:22px;height:22px}.headericons a:first-child svg{color:#f47759}.greeting{display:flex;align-items:center;justify-content:space-between;padding:14px 0 2px}.greeting h1{font-size:32px}.greeting img{width:112px}.float{animation:bob 4s ease-in-out infinite}.greeting p{font-size:13px}.lessonhero,.culturehero{position:relative;overflow:hidden;border-radius:24px;background:#092b40;color:white;padding:22px;isolation:isolate}.lessonhero h2,.culturehero h2{font-size:28px;margin:10px 0 4px}.lessonhero p,.culturehero p{color:#c2e5e8;margin-bottom:19px}.eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:700;color:#087d89}.lessonhero .eyebrow,.culturehero .eyebrow{color:#7de1e4}.waveart{position:absolute;z-index:-1;right:-70px;bottom:-100px;width:260px;height:260px;border:26px solid #126477;border-radius:45%;box-shadow:0 0 0 23px #104757,0 0 0 45px #103b4b;transform:rotate(-30deg)}.whitebtn{background:#d5fbfb;justify-content:space-between;min-height:46px;font-size:14px}.whitebtn svg{width:19px;height:19px}.daily{background:white;border:1px solid #e1ebed;border-radius:20px;padding:16px}.daily .track{margin:13px 0}.daily p{font-size:12px}.sectionhead span,.sectionhead a{font-size:13px}.hubgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hubtile{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#092b40;background:white;border:1px solid #e1ebed;border-radius:18px;padding:14px;min-height:112px;transition:transform .15s}.hubtile:active,.unitcard a:active{transform:scale(.97)}.hubtile strong{font-size:15px}.hubtile small{font-size:12px;color:#627783}.tabs{position:fixed;z-index:8;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #dce9ec;padding:8px 5px calc(env(safe-area-inset-bottom,0px) + 8px)}.tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;color:#6c818a;text-decoration:none;font-size:10px;padding:4px 0}.tabs svg{width:24px;height:24px}.tabs .active{color:#087d89;font-weight:700}.tabs .active svg{background:#e4f8f9;border-radius:9px;box-sizing:content-box;padding:4px 12px;margin:-4px -12px;animation:pop .25s ease-out}.journey{display:grid;gap:18px;position:relative}.journey:before{content:'';position:absolute;left:21px;top:22px;bottom:70px;width:3px;background:repeating-linear-gradient(#b9e2e5 0 8px,transparent 8px 15px)}.unit{display:flex;gap:13px;align-items:flex-start;position:relative}.node{width:46px;height:46px;border-radius:50%;background:#e7eff0;color:#78909a;display:grid;place-items:center;flex-shrink:0}.node svg{width:23px;height:23px}.current .node{background:#08b8c5;color:#092b40;box-shadow:0 0 0 5px #def5f6}.unitcard{flex:1;background:white;border:1px solid #e1ebed;border-radius:19px;padding:15px}.unitcard p{font-size:13px}.unitcard .btn{margin-top:12px;min-height:42px;font-size:14px}.current .unitcard{border-color:#82d7de;background:#f0fbfc}.practicebanner,.profilehero{background:#e8f8f9;border-radius:22px;padding:16px;display:flex;align-items:center;gap:13px}.practicebanner img{width:80px;animation:bob 4s ease-in-out infinite}.practicebanner p{font-size:13px}.profilehero{flex-direction:column;text-align:center;gap:5px}.profilehero img{width:100px}.appmain .option{background:white;margin:0}.prototype{text-align:center;font-size:11px}.appheading{padding:8px 0}.appheading p{font-size:14px}.appmain .greeting,.appmain .lessonhero,.appmain .hubgrid,.appmain .journey{animation:enter .35s ease-out both}@media(prefers-reduced-motion:reduce){.confetti{display:none}}

/* v3.1 refinements */
html{scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}.appmain{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 110px);gap:15px}.appmain h1{font-size:25px;letter-spacing:-.7px}.appheading,.appheader{position:sticky;top:0;z-index:4;background:#f7fafb;padding:calc(env(safe-area-inset-top,0px) + 6px) 0 10px;margin-top:calc(-1 * env(safe-area-inset-top,0px));}.appheader{gap:8px}.course{justify-content:flex-start;gap:7px;min-height:44px}.course strong{font-size:16px;white-space:nowrap}.flag{font-size:22px;line-height:1}.coursearrow{font-size:14px}.headericons{gap:12px}.headericons svg{width:20px;height:20px;stroke-width:1.5}.greeting{padding:5px 0}.greeting h1{font-size:29px}.greeting img{width:94px;flex-shrink:0}.tabs .active svg{background:none;padding:0;margin:0;border-radius:0;box-sizing:border-box}.tabs svg{width:23px;height:23px;stroke-width:1.6}.tabs{padding-top:10px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:12px 0}.weekday{display:grid;justify-items:center;gap:5px;font-size:10px;color:#607681}.weekday b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1px solid #dce7ea;color:#81949c;font-weight:500}.weekday.today b{border:1.5px solid #08a6b2;color:#087d89;background:#eefafa}.planpage .question{align-items:center;gap:10px;animation:none}.planpage .mini{width:60px;height:auto;opacity:1;visibility:visible;animation:none}.planpage .question h1{font-size:24px}.planpage .summary{margin-top:18px}.planhead{position:relative;padding-right:57px}.planedit{position:absolute;right:15px;top:13px;color:#087d89;font-size:12px;font-weight:650;text-decoration:none;padding:7px 3px;min-height:30px}.newjourney:before{display:none}.newjourney{gap:13px}.pathcard{padding:18px;border-radius:21px;background:#e5f7f8;color:#092b40;overflow:hidden;animation:enter .35s ease-out both}.pathlabel{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:650;color:#486d76;margin-bottom:9px}.pathlabel span{font-weight:500}.pathcard h2{font-size:21px;margin:0 0 5px}.pathcard p{font-size:13px}.pathrow{display:flex;justify-content:space-between;align-items:center;gap:12px}.unitart{font-size:32px;font-weight:750;opacity:.65}.path1{background:#fff0df}.path2{background:#eee9fa}.path3{background:#fce9e3}.path4{background:#e3eefb}.path5{background:#e6f2e2}.milestones{height:132px;position:relative;margin:7px 0 14px}.pathline{position:absolute;width:100%;height:100%;inset:0}.milestone{position:absolute;transform:translate(-50%,-50%);width:41px;height:41px;border-radius:50%;display:grid;place-items:center;background:#f3fbfb;border:1px solid #b8dce0;color:#63868e;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 3px 0 #bbdce0}.m0{left:8.7%;top:71%;background:#08b8c5;color:#092b40;border-color:#08b8c5;box-shadow:0 3px 0 #087d89;animation:pulsepath 2.4s ease-in-out infinite}.m1{left:33.3%;top:26%}.m2{left:63.3%;top:70%}.m3{left:91%;top:26%}@keyframes pulsepath{50%{box-shadow:0 3px 0 #087d89,0 0 0 6px #08b8c522}}.skillart{background:var(--artbg);color:var(--artink);width:48px;height:48px;font-size:22px;font-weight:750}.practicebanner{padding:12px}.practicebanner img{width:58px}.hubtile{border:0;box-shadow:0 1px 3px #092b400b}.appmain .hubgrid .hubtile:active{transform:scale(.97)}.culturehero{min-height:150px}.culturepattern{position:absolute;right:0;bottom:0;width:90px;height:100%;opacity:.24;background:repeating-linear-gradient(45deg,#ff765c 0 5px,transparent 5px 12px,#7de1e4 12px 17px,transparent 17px 24px);z-index:-1}.smallflag{font-size:19px}.culturefeature{display:flex;gap:12px;align-items:center;padding:14px;border-radius:18px;background:#fff0e4}.culturefeature small{font-size:11px;color:#805742}.culturefeature h2{margin:4px 0}.culturefeature p{font-size:12px}.featureart{font-size:35px;color:#b96638}.langsymbol{font-size:23px;font-weight:700}.compactprofile{flex-direction:row;text-align:left;background:white;padding:15px;gap:12px}.avatar{width:54px;height:54px;border-radius:50%;background:#dff5f5;color:#087d89;display:grid;place-items:center;font-weight:750;flex-shrink:0}.compactprofile h2{font-size:17px}.compactprofile p{font-size:12px}.profilegear{margin-left:auto;text-decoration:none;color:#087d89;font-size:22px}#preferences{scroll-margin-top:100px}@media(prefers-reduced-motion:reduce){.m0{animation:none}}

/* v3.2: selective empty-state mascot, light appearance */
.watermark-empty{position:relative;isolation:isolate;overflow:hidden}.watermark-empty:before{content:"";position:absolute;z-index:-1;width:min(310px,88%);aspect-ratio:1;left:50%;top:50%;transform:translate(-50%,-50%);background:url("assets/mascot.png") center/contain no-repeat;opacity:.065;pointer-events:none}.watermark-empty h1,.watermark-empty p{position:relative}.appearancehead{display:flex;align-items:center;gap:10px}.appearancehead h1{margin:0}.appearancehead .back{flex-shrink:0}.appearancecard{border:1px solid #dce7ea;background:white;border-radius:22px;padding:16px}.themepreview{background:#f7fafb;border:1px solid #dce7ea;border-radius:16px;max-width:240px;margin:0 auto 18px;padding:14px;overflow:hidden}.previewbar{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin-bottom:15px}.previewhero{background:#092b40;color:white;border-radius:12px;padding:14px;font-size:16px}.previewhero div{height:6px;background:#7de1e4;border-radius:8px;width:65%;margin-top:9px}.previewhero div:last-child{width:42%}.previewbottom{display:flex;justify-content:space-around;margin-top:14px}.previewbottom i{background:#cbe9eb;width:22px;height:10px;border-radius:5px}.themerow{display:flex;align-items:center;justify-content:space-between;gap:12px}.themerow p{font-size:13px}.themecheck{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#08b8c5;color:#092b40;font-weight:750}.appearancepage .actions{margin-top:auto}html{color-scheme:light}

/* v4 stable mascot and theme */
img[src^="data:image/webp"]{visibility:visible!important;opacity:1!important;animation:none!important;transform:none!important;object-fit:contain} .hero,.question,.greeting,.practicebanner{animation:none!important}.splash{animation:exit .35s 1s forwards!important} .watermark-empty:before{background-image:url("assets/mascot-v4.webp")}
[data-theme=dark]{color-scheme:dark;background:#101f2b;color:#e9f5fa}[data-theme=dark] body{background:#101f2b;color:#e9f5fa}[data-theme=dark] .appbody,[data-theme=dark] .appheading,[data-theme=dark] .appheader{background:#101f2b}[data-theme=dark] p,[data-theme=dark] small,[data-theme=dark] .status,[data-theme=dark] .weekday{color:#a9c1ce}[data-theme=dark] :is(.daily,.hubtile,.option,.compactprofile,.appearancecard,.themepreview,.secondary,.tabs,.summary,.unitcard){background:#192f3d;border-color:#34505d;color:#e9f5fa}[data-theme=dark] :is(.course,.headericons a,.back,.detail p,.hubtile strong){color:#e9f5fa}[data-theme=dark] :is(.sectionhead a,.planedit,.profilegear,.tabs .active,.eyebrow){color:#65dce1}[data-theme=dark] :is(.track,.mark,.weekday b){background:#294653;border-color:#45616e}[data-theme=dark] :is(.practicebanner,.planhead,.note,.character:before,.available,.choice:has(input:checked)){background:#20434c;color:#e9f5fa}[data-theme=dark] .pathcard{background:#203e48;color:#e9f5fa}[data-theme=dark] .path1{background:#41382d}[data-theme=dark] .path2{background:#39334d}[data-theme=dark] .path3{background:#49353b}[data-theme=dark] .path4{background:#263c55}[data-theme=dark] .path5{background:#2c4438}[data-theme=dark] .pathlabel{color:#a9c1ce}[data-theme=dark] .culturefeature{background:#45392d}[data-theme=dark] .btn:disabled{background:#294653;color:#91a8b4}[data-theme=dark] .detail{border-color:#34505d}[data-theme=dark] .themecheck{color:#092b40}[data-theme=dark] .avatar{background:#244a55;color:#7de1e4}
.themechoice{display:flex;width:100%;text-align:left;align-items:center;justify-content:space-between;gap:12px;background:transparent;border:0;color:inherit;font:inherit;padding:14px 0;cursor:pointer}.themechoice+.themechoice{border-top:1px solid #78909a44}.themechoice .themecheck{visibility:hidden}.themechoice[aria-pressed=true] .themecheck{visibility:visible}.lessonmain{gap:16px}.lessonmain .top{margin-bottom:8px}.lessonprompt{font-size:22px;font-weight:750}.wordcard{text-align:center;border-radius:22px;background:#e7f8f9;color:#092b40;padding:30px 12px;margin:6px 0}.wordcard strong{font-size:32px;display:block}.wordcard p{margin-top:8px}.answer{font:inherit;text-align:left;color:inherit;background:transparent;border:1.5px solid #b9d1d7;border-radius:15px;padding:16px;cursor:pointer;min-height:54px}.answer.selected{border-color:#08b8c5;background:#08b8c520}.answer.correct{border-color:#29956b;background:#29956b20}.answer.wrong{border-color:#e67660;background:#e6766020}.feedback{padding:14px;border-radius:15px;background:#08b8c517;line-height:1.5}.lessonresult{text-align:center;display:grid;justify-items:center;gap:16px;margin:auto 0}.lessonresult img{width:125px}.lessonresult .score{font-size:42px;font-weight:750;color:#08a6b2}.milestone.done{background:#087d89;color:white}.milestone.open{background:#08b8c5;color:#092b40}.weekday.done b{background:#08b8c5;color:#092b40}.lessonmain .actions{position:sticky;bottom:0;padding-bottom:8px;background:inherit}.lessonmain .options{margin-top:0}.lessonmain .small{line-height:1.5}.lessonmain input[type=text]{font:inherit;color:inherit;background:transparent;border:1px solid #9ebac2;border-radius:14px;padding:16px;width:100%} [data-theme=dark] .wordcard{background:#20434c;color:#e9f5fa} [data-theme=dark] .milestone:not(.open):not(.done){background:#294653;color:#a9c1ce;border-color:#45616e;box-shadow:none}
