*{box-sizing:border-box}body{margin:0;background:#f5f6ff;color:#26345a;font:16px/1.6 Noto Sans Lao,Noto Sans SC,system-ui,sans-serif}button,input,select{font:inherit}button,select{cursor:pointer}button{border:0;border-radius:16px;padding:12px 20px;background:#ecebff;color:#5143b9;font-weight:700}button:hover{filter:brightness(.95)}button:focus-visible{outline:3px solid #f5ad42}header{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px max(5%,calc((100% - 1160px)/2));gap:12px;flex-wrap:wrap}.brand{font-size:25px;font-weight:900;color:#6854d9}.brand small{font-size:13px;color:#8d91a9;display:block;line-height:1}.langs button{padding:8px 12px;font-size:14px}.active{background:#6553dc;color:#fff}main{max-width:1160px;margin:auto;padding:24px 20px 60px}.hero{background:linear-gradient(115deg,#6654db,#9c83f1);color:#fff;border-radius:30px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden}.hero h1{font-size:clamp(27px,5vw,44px);line-height:1.3;margin:10px 0}.hero p{margin:0 0 18px;max-width:560px}.hero .mascot{font-size:clamp(60px,13vw,150px);transform:rotate(-8deg)}.hero button{background:#ffdb79;color:#47366a}nav{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.stats{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.stats div{background:#fff;padding:12px 20px;border-radius:18px;flex:1;min-width:120px}.stats b{display:block;font-size:25px}.levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.level{background:#fff;text-align:left;border:2px solid transparent;border-radius:20px;padding:17px}.level.active{background:#eae6ff;border-color:#7762e9;color:#5143b9}.level strong{display:block;font-size:22px}.level small{color:#64708d}.study{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px}.panel{background:#fff;border-radius:26px;padding:25px;box-shadow:0 8px 30px #5146a50a}.word{text-align:center}.emoji{font-size:80px;line-height:1.2}.han{font-size:65px;line-height:1.4;font-weight:800;color:#4d43ba}.pin{font-size:25px;color:#8271d8}.meaning{font-size:23px;font-weight:700;margin:15px}.meaning span{display:block;color:#69758c;font-size:19px}.controls{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.green{background:#d5f5e6;color:#137951}.primary{background:#6553dc;color:#fff}.muted{color:#78819b;font-size:14px}.options{display:grid;gap:12px}.options button{text-align:left;background:#f2f1ff}.options button.correct{background:#cbf4df;color:#137951}.options button.wrong{background:#ffe0e0;color:#a33131}.track{height:10px;background:#eeebfa;border-radius:10px;overflow:hidden}.track i{display:block;background:#55c89c;height:100%}input{border:1px solid #dfdcef;border-radius:12px;padding:12px;width:100%;margin:10px 0}.list{max-height:440px;overflow:auto}.entry{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #eee;cursor:pointer}.entry b{font-size:25px;min-width:65px}.entry small{display:block;color:#777}.entry button{margin-left:auto;padding:8px 12px}footer{text-align:center;color:#78819b;margin:30px 0;font-size:13px}@media(max-width:650px){.study{grid-template-columns:1fr}.hero{padding:23px}.hero .mascot{font-size:65px}.panel{padding:18px}.han{font-size:55px}}header{position:sticky;top:0;z-index:10;box-shadow:0 4px 18px #26345a12}.top-switch{display:flex;gap:8px;flex-wrap:wrap}.top-switch button{font-size:17px;padding:12px 17px}.langs{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.tilegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px}.lettertile{min-height:150px;background:#f4f0ff;border:2px solid transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px;color:#5143b9}.lettertile:nth-child(4n+2){background:#e6f5ff;color:#176491}.lettertile:nth-child(4n+3){background:#e1f7e9;color:#16734d}.lettertile:nth-child(4n+4){background:#fff1d9;color:#8d5412}.lettertile.chosen{border-color:currentColor;box-shadow:0 4px 12px #26345a22}.lettertile .big{font-size:40px;line-height:1.3}.lettertile .pic{font-size:29px}.lettertile small{font-size:14px}.boardhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.boardtools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}.boardtools select{padding:8px;border:1px solid #ddd;border-radius:12px;background:#fff}.audio-status{min-height:25px;color:#6553dc;font-weight:700}.hero{padding:20px 30px}.hero .mascot{font-size:75px}#courses,#courseTitle{display:none}.tilegrid.zhgrid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}@media(max-width:650px){.tilegrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.lettertile{min-height:120px;padding:5px}.lettertile .big{font-size:30px}.top-switch button{font-size:14px;padding:8px}.hero{padding:18px}.tilegrid.zhgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}.lao-meaning{font-size:14px;line-height:1.5;color:#334155;font-weight:600;overflow-wrap:anywhere}.zhgrid .lettertile{min-height:190px}.zhgrid .pic{font-size:42px}input,select{color:#26345a!important;background:#fff!important;color-scheme:light}.zhgrid .big{overflow-wrap:anywhere;max-width:100%}.zh-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.zh-tabs button{flex:1;min-width:110px}.levels .level strong{font-size:17px}.level small{display:block}.semantic-results{display:block!important}.semantic-section{margin:20px 0 30px}.semantic-section h3{font-size:19px;margin:0 0 12px;color:#5143b9}.semantic-section h3 small{font-size:12px;color:#78819b;margin-left:8px}.semantic-category{margin-top:35px;border-bottom:2px solid #ecebff;padding-bottom:8px}.semantic-section .lettertile{min-height:200px}.booktile .big{overflow-wrap:anywhere;word-break:normal;font-size:clamp(19px,3.3vw,46px)}.booktile small,.booktile .translation{overflow-wrap:anywhere;white-space:normal}.booktile{min-width:0}.bookbar select{max-width:100%}.picture-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 5px #52604b19);-webkit-user-select:none;user-select:none}.booktile .pic{width:clamp(76px,10vw,132px);height:clamp(76px,10vw,132px);display:grid;place-items:center;margin:0 auto 8px;padding:8px;background:radial-gradient(ellipse at 50% 75%,#e9e7d85e,transparent 70%);border-radius:40%}.booktoc button span{width:66px;height:66px;display:grid;place-items:center;margin:auto}.booktile{transition:background .18s,border-color .18s;min-height:220px}.booktile:hover{background:#f5f3e9}.booktile.chosen{background:#e9f2e7}.sheet{background:#fffcf4}.booktoc button{background:#fffdf8}.booktile .big{font-size:clamp(19px,3.3vw,43px)}@media(max-width:700px){.booktile{min-height:170px}.booktile .pic{width:82px;height:82px;padding:4px}.booktoc button span{width:53px;height:53px}}@media(prefers-reduced-motion:reduce){.booktile{transition:none}}body.book-open{background:#e9e2d5;color:#35463f}body.book-open>header,body.book-open>main{display:none}#bookapp{display:none}body.book-open #bookapp{display:block}.bookbar{position:sticky;top:0;z-index:20;background:#fffdf7;padding:10px max(12px,calc((100% - 1180px)/2));display:flex;flex-wrap:wrap;align-items:center;gap:8px;box-shadow:0 2px 12px #55462b15}.bookbrand{font-size:22px;font-weight:900;color:#42685b;margin-right:auto}.bookbar button,.booknav button,.bookhome button{min-height:48px;background:#e9f0e8;color:#34584c;padding:10px 16px}.bookbar .active{background:#42685b;color:#fff}.bookwrap{max-width:1180px;margin:auto;padding:20px 12px 90px}.bookcover{background:#fffaf0;border:1px solid #e0d5bd;border-radius:24px;padding:24px;box-shadow:0 8px 20px #65553c15}.bookcover h1{font-size:clamp(26px,4vw,42px);margin:0;color:#42685b}.booktoc{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-top:18px}.booktoc button{background:#fff;border:1px solid #e6dfce;min-height:115px;display:grid;place-content:center;gap:5px;text-align:center;color:#34584c}.booktoc button span{font-size:38px}.booktoc button small{font-weight:400}.spread{display:grid;grid-template-columns:1fr 1fr;background:#fffdf5;border:1px solid #d8ccb5;border-radius:12px;overflow:hidden;box-shadow:0 12px 24px #65553c20}.sheet{min-width:0;padding:20px;min-height:340px;background:#fffdf5;display:flex;flex-direction:column}.sheet:first-child{border-right:1px solid #e1d6c0;box-shadow:inset -12px 0 20px -20px #65553c}.sheet:last-child{box-shadow:inset 12px 0 20px -20px #65553c}.sheet h2{font-size:clamp(17px,2vw,23px);margin:0 0 14px;color:#42685b;border-bottom:1px solid #e5ddcb;padding-bottom:8px}.booktiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1}.booktile{min-width:0;min-height:180px;background:transparent;border:2px solid transparent;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#324e47;padding:8px;overflow-wrap:anywhere}.booktile:nth-child(2n){color:#80552c}.booktile:focus-visible,.booktile.chosen{border-color:#609b82;background:#edf5e9}.booktile .pic{font-size:clamp(44px,6vw,78px);line-height:1.2}.booktile .big{font-size:clamp(26px,4vw,45px);line-height:1.35;max-width:100%}.booktile small{font-size:15px;font-weight:500}.booktile .translation{font-size:17px;color:#35463f}.booknav{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;bottom:0;background:#fffdf7;padding:10px;border-radius:16px;margin-top:14px;box-shadow:0 -2px 12px #55462b12}.booknav button:disabled{opacity:.4;cursor:default}.bookhead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}.bookhead button{background:#fffdf7;color:#42685b;min-height:48px}.bookstatus{min-height:25px;text-align:center;font-size:14px}.booksettings{margin-top:18px;font-size:14px}.booksettings button{margin:5px}.bookfolio{margin-top:12px;text-align:center;color:#827866;font-size:13px}.booknote{font-size:14px;color:#685e4d}@media(max-width:700px){.spread{grid-template-columns:1fr}.sheet:first-child{border-right:0;border-bottom:1px dashed #d8ccb5;box-shadow:none}.sheet:last-child{box-shadow:none}.sheet{padding:12px;min-height:0}.booktile{min-height:145px}.bookbar{position:static}.bookbar button{flex:1;padding:8px}.bookbrand{width:100%}.bookwrap{padding:12px 8px 40px}.bookcover{padding:15px}.booktoc{grid-template-columns:repeat(2,minmax(0,1fr))}.booknav{font-size:14px}.booknav button{padding:8px 12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}body{background:#e9e2d5;color:#35463f}.react-book select{max-width:100%;min-height:44px;border:1px solid #c8d5cb;border-radius:10px;background:#fffdf7;color:#34584c;padding:6px}.react-book .picture-art{width:clamp(60px,9vw,112px);height:clamp(60px,9vw,112px);object-fit:contain;display:block}.react-book .booktoc .picture-art{width:55px;height:55px;margin:auto}.react-book .booktile{overflow-wrap:anywhere}.react-book a{color:#34584c}.react-book .booknav{z-index:5}.react-book .booktoc button{min-width:0;overflow-wrap:anywhere}.react-book .tochead{font-size:clamp(18px,2.2vw,24px);color:#42685b;margin:26px 0 0;border-bottom:1px solid #e5ddcb;padding-bottom:6px}.react-book .sentencelist{display:flex;flex-direction:column;gap:10px;flex:1}.react-book .sentencetile{display:flex;align-items:center;gap:14px;text-align:left;background:transparent;border:2px solid transparent;border-radius:14px;padding:10px 12px;color:#324e47;min-height:96px}.react-book .sentencetile:hover{background:#f5f3e9}.react-book .sentencetile.chosen,.react-book .sentencetile:focus-visible{border-color:#609b82;background:#edf5e9}.react-book .sentencetile .pic{flex:none;width:64px;height:64px;display:grid;place-items:center;font-size:40px}.react-book .sentencetile .pic .picture-art{width:64px;height:64px}.react-book .sentencetile .text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.react-book .sentencetile .big{font-size:clamp(18px,2.1vw,26px);font-weight:700;line-height:1.35;overflow-wrap:anywhere}.react-book .sentencetile small{font-size:14px;color:#5d6f66;overflow-wrap:anywhere}.react-book .sentencetile .translation{font-size:15px;color:#35463f;overflow-wrap:anywhere}.react-book .sentencetile .speaker{flex:none;opacity:.55}.react-book .storyscene{display:flex;flex-direction:column;gap:12px;flex:1}.react-book .storyart{display:grid;place-items:center;padding:14px;background:radial-gradient(ellipse at 50% 70%,#efe9d6,transparent 70%);border-radius:20px;font-size:110px;line-height:1}.react-book .storyart .picture-art{width:clamp(130px,18vw,210px);height:clamp(130px,18vw,210px)}.react-book .storyscene .sentencetile{min-height:0}.react-book .storyscene .sentencetile .big{font-size:clamp(20px,2.4vw,30px)}.react-book .readall{align-self:center;min-height:44px;background:#e9f0e8;color:#34584c;padding:8px 18px}.react-book .bookhead .viewtoggle{background:#42685b;color:#fff;min-height:44px;padding:8px 16px;border-radius:999px}.react-book .flashcards{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.react-book .cardprogress{height:6px;background:#e3dccb;border-radius:99px;overflow:hidden}.react-book .cardprogress span{display:block;height:100%;background:#609b82;border-radius:99px;transition:width .25s}.react-book .flashcard{background:#fffdf5;border:1px solid #d8ccb5;border-radius:28px;box-shadow:0 14px 28px #65553c22;padding:clamp(20px,4vw,40px);min-height:clamp(380px,62vh,600px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:pan-y;color:#324e47}.react-book .flashcard:focus-visible{outline:3px solid #609b82;outline-offset:3px}.react-book .cardart{width:clamp(150px,34vw,260px);height:clamp(150px,34vw,260px);display:grid;place-items:center;font-size:clamp(110px,24vw,190px);line-height:1;background:radial-gradient(ellipse at 50% 72%,#efe9d6,transparent 70%);border-radius:40%}.react-book .cardart .picture-art{width:100%;height:100%}.react-book .cardbig{font-size:clamp(46px,10vw,104px);font-weight:800;line-height:1.2;overflow-wrap:anywhere}.react-book .flashcards-sentences .cardbig{font-size:clamp(26px,5vw,44px)}.react-book .cardsub{font-size:clamp(17px,2.6vw,24px);color:#5d6f66;overflow-wrap:anywhere}.react-book .cardmeaning{margin-top:6px;min-height:44px;padding:8px 18px;border-radius:999px;background:#f1ece0;color:#8a8070;font-size:15px;display:flex;align-items:center}.react-book .cardmeaning.shown{background:#e9f2e7;color:#2f4c42;font-size:clamp(18px,2.8vw,26px);font-weight:700}.react-book .cardcontrols{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fffdf7;padding:10px;border-radius:16px;box-shadow:0 -2px 12px #55462b12;position:sticky;bottom:0}.react-book .cardcontrols button{min-height:48px;min-width:48px;background:#e9f0e8;color:#34584c;padding:8px 14px;font-size:18px}.react-book .cardcontrols button.active{background:#42685b;color:#fff}.react-book .cardcontrols button:disabled{opacity:.4;cursor:default}@media(max-width:700px){.react-book .cardcontrols{gap:4px}.react-book .cardcontrols button{padding:8px 10px;font-size:16px}.react-book .flashcard{min-height:340px}}
