/* SabaiTalk / a little Bangkok, a lot of room to learn. */
:root{--hubHero:#0d6875;--hubHeroDeep:#0a4e60;--hubMint:#b8f0e1;--hubCoral:#f5a18b;--hubGold:#ffd27c;--hubSoft:#eaf5f4;--hubShadow:0 10px 32px #143e4c08}
html[data-theme=dark]{--hubHero:#185364;--hubHeroDeep:#133e51;--hubSoft:#193b48;--hubShadow:0 10px 32px #00000012}
.uiIcon{width:22px;height:22px;display:inline-block;flex-shrink:0;vertical-align:middle}nav .uiIcon{width:23px;height:23px}button{touch-action:manipulation}.primary{transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}.primary:active{transform:translateY(2px)}.primary:disabled{transform:none;cursor:default}.primary .uiIcon{width:19px;height:19px}.workspace>header{background:var(--bg)}main:has(.journeyHub){max-width:1370px;padding-top:30px}.journeyHub{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:30px}.hubMain{min-width:0}.hubWelcome{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.hubOverline{font:800 10px 'DM Sans',sans-serif;letter-spacing:1.6px;color:var(--muted);line-height:1.6}.hubWelcome h1{font-size:32px;font-weight:750;letter-spacing:-.9px;margin:6px 0 0;line-height:1.2}.hubModeChip{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:13px;min-height:44px;padding:10px 13px;background:var(--surface);font-size:12px;font-weight:700;white-space:nowrap}.hubModeChip .uiIcon{width:17px;height:17px;color:var(--green)}.hubHero{border-radius:26px;background:linear-gradient(120deg,var(--hubHero),var(--hubHeroDeep));padding:30px 31px;min-height:285px;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;box-shadow:var(--hubShadow);color:#fff}.hubHeroCopy{position:relative;z-index:2;width:66%}.heroTag{display:inline-block;border-radius:7px;color:var(--hubMint);font-size:9px;letter-spacing:1.4px;font-weight:800}.hubHero h2{font-size:35px;line-height:1.13;font-weight:750;letter-spacing:-.8px;margin:13px 0 10px;max-width:390px;color:#fff}.hubHero p{color:#d2e9e9;line-height:1.6;font-size:14px;margin:0 0 13px;max-width:300px}.heroMeta{display:flex;align-items:center;gap:6px;font-size:10px;line-height:1.6;color:#cee7e8;white-space:nowrap}.heroMeta .uiIcon{width:14px;height:14px}.heroMeta i{font-style:normal;opacity:.5;margin:0 3px}.hubHero .primary{margin-top:21px;background:var(--hubMint);color:#164f53;border:0;border-bottom:4px solid #7ec7b9;border-radius:13px;min-height:50px;padding:13px 20px;font-size:12px;letter-spacing:.4px;gap:24px}.hubHero .primary:hover{filter:brightness(1.06)}.hubHeroArt{position:absolute;right:-13px;bottom:0;top:0;width:43%;z-index:1;pointer-events:none}.hubHeroArt .heroArt{position:absolute;width:206px;height:190px;right:8px;bottom:13px;animation:hubBuddy 6s ease-in-out infinite}.heroArch{position:absolute;right:0;bottom:-45px;width:218px;height:250px;background:#95d4c812;border-radius:120px 120px 0 0;transform:rotate(-13deg)}.heroSun{width:100px;height:100px;border-radius:50%;background:#c1eddb0b;position:absolute;right:36px;top:21px;box-shadow:0 0 0 22px #c1eddb06}.buddyWord{position:absolute;right:50px;top:28px;border-radius:14px 14px 4px 14px;background:#ffffff14;color:#d7fff1;padding:9px 15px;text-align:center;font-size:22px;font-weight:700;transform:rotate(5deg)}.buddyWord small{display:block;font:600 9px 'DM Sans',sans-serif;letter-spacing:.2px;margin-top:2px}.hubDailyBar{width:100%;border:1px solid var(--border);border-radius:17px;background:var(--surface);display:flex;gap:13px;align-items:center;padding:15px 17px;margin:17px 0 24px;text-align:left;box-shadow:var(--hubShadow)}.dailySpark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--hubSoft);color:var(--green)}.dailySpark .uiIcon{width:24px;height:24px}.dailyBarText{flex:1;min-width:0}.dailyBarText>strong{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.hubTrack{height:6px;background:var(--border);border-radius:8px;overflow:hidden;display:block}.hubTrack>span{height:100%;display:block;border-radius:inherit;background:var(--green);transition:width .5s ease}.dailyNumbers{font-size:13px;font-weight:800;white-space:nowrap}.dailyNumbers small{font-size:9px;display:block;text-align:right;color:var(--muted);margin-top:2px}.missionChip{border-left:1px solid var(--border);padding-left:13px;color:var(--muted);font-size:10px;white-space:nowrap;display:flex;align-items:center;gap:6px}.missionChip .uiIcon{width:14px;height:14px}.hubTabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--surface);padding:5px;border:1px solid var(--border);border-radius:15px;gap:5px;margin-bottom:27px}.hubTabs button{display:flex;justify-content:center;align-items:center;gap:8px;background:none;border:0;border-radius:10px;color:var(--muted);font-size:13px;font-weight:750;min-height:43px;transition:background .2s,color .2s}.hubTabs .uiIcon{width:18px;height:18px}.hubTabs [aria-selected=true]{background:var(--hubSoft);color:var(--green);box-shadow:0 2px 5px #00000004}.hubSectionHeading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 17px}.hubSectionHeading h2{font-size:25px;font-weight:750;letter-spacing:-.4px;line-height:1.25;margin:5px 0 6px}.hubSectionHeading p{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.hubSmallButton{background:var(--surface);border:1px solid var(--border);border-bottom-width:2px;border-radius:10px;padding:10px 11px;font-size:9px;font-weight:800;letter-spacing:.5px;min-height:40px;display:flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0}.hubSmallButton .uiIcon{width:15px;height:15px}.hubSectionProgress{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding-bottom:15px;gap:10px;color:var(--muted);font-size:11px}.hubSectionProgress .textbutton{display:flex;align-items:center;gap:7px;font-size:11px;min-height:36px;color:var(--green);font-weight:700;padding:5px}.hubSectionProgress .uiIcon{width:16px;height:16px}.hubPath{position:relative;padding:17px 0 13px}.hubPath:before{content:'';position:absolute;width:3px;background:var(--border);border-radius:5px;left:37px;top:65px;bottom:67px;z-index:0}.hubLesson{position:relative;width:100%;display:grid;grid-template-columns:76px minmax(0,1fr) 25px;gap:16px;align-items:center;text-align:left;padding:16px 13px 16px 0;border:1px solid transparent;border-radius:20px;background:transparent;margin:6px 0;min-height:116px;transition:background .2s,border-color .2s}.hubLesson:hover{background:var(--surface);border-color:var(--border)}.hubNode{width:64px;height:64px;margin:0 auto;border-radius:23px;display:grid;place-items:center;font-size:29px;border:2px solid var(--border);border-bottom-width:6px;background:var(--surface);position:relative;z-index:1;box-shadow:0 5px 0 var(--bg)}.hubNode>.uiIcon{width:29px;height:29px}.hubLesson.done .hubNode{background:var(--hubSoft);border-color:var(--green);color:var(--green)}.hubLesson.current{background:var(--surface);border-color:var(--green);box-shadow:0 4px 0 var(--hubSoft)}.hubLesson.current .hubNode{background:var(--green);border-color:#0a6270;color:#fff;box-shadow:0 0 0 6px var(--hubSoft);margin-left:7px}.hubLesson.current .hubNode>span{filter:drop-shadow(0 2px 0 #00000013)}.hubLessonText{display:flex;flex-direction:column;min-width:0;gap:5px}.hubLessonText>small{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:.9px}.hubLessonText>small.yourTurn{color:var(--green)}.hubLessonText>strong{font:700 19px Outfit,'Noto Sans Thai',sans-serif;line-height:1.25;letter-spacing:-.2px}.hubLessonText>span{font-size:12px;color:var(--muted);line-height:1.5}.hubLessonText em{font-size:10px;color:var(--muted);font-style:normal;line-height:1.4}.hubLessonArrow{color:var(--muted)}.current .hubLessonArrow{color:var(--green)}.hubSectionEnd{padding:20px;border-radius:19px;background:var(--hubSoft);display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;margin-top:8px}.hubSectionEnd>span{display:grid;place-items:center;color:var(--green);width:39px;height:39px;background:var(--surface);border-radius:13px}.hubSectionEnd>span .uiIcon{width:25px;height:25px}.hubSectionEnd strong{font-size:14px;line-height:1.5}.hubSectionEnd p{font-size:11px;color:var(--muted);margin:5px 0 0}.hubSectionEnd>.secondary{grid-column:1/-1;font-size:11px;background:var(--surface);border-radius:11px;display:flex;justify-content:center;align-items:center;gap:18px;min-height:46px;border-color:var(--border)}.hubSectionEnd>.secondary .uiIcon{width:17px;height:17px}.hubNextSection,.returnToJourney{display:flex;justify-content:center;align-items:center;gap:12px;min-height:48px;padding:12px 5px;margin:15px auto 0;background:none;border:0;font-size:10px;font-weight:800;letter-spacing:.5px;color:var(--green);text-align:center}.hubNextSection .uiIcon,.returnToJourney .uiIcon{width:16px;height:16px}.hubRail{position:static;inset:auto;width:auto;padding:0;background:none;border:0;display:flex;flex-direction:column;gap:19px;align-self:start;margin-top:62px}.hubRailCard{border:1px solid var(--border);border-radius:23px;padding:23px;background:var(--surface);box-shadow:var(--hubShadow)}.hubRailHeading{display:flex;align-items:center;justify-content:space-between;gap:10px}.hubRailHeading>span:last-child{color:var(--coin);font-size:23px}.hubRailCard h3{font-size:23px;font-weight:700;letter-spacing:-.4px;margin:5px 0 20px}.hubQuest{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:16px 0;border-bottom:1px solid var(--border);position:relative}.questTick{width:30px;height:30px;display:grid;place-items:center;background:var(--hubSoft);border-radius:10px;color:var(--green)}.questTick .uiIcon{width:18px;height:18px}.hubQuest>div>strong{font-size:11px;display:block;line-height:1.4;margin-bottom:9px}.hubQuest .hubTrack{height:5px}.hubQuest>b{font-size:10px;color:var(--muted)}.hubQuest>small{display:none}.hubQuest.isDone .questTick{background:var(--green);color:#fff}.hubRailCard>.textbutton{font-size:10px;font-weight:800;color:var(--green);display:flex;gap:8px;justify-content:center;align-items:center;width:100%;min-height:44px;margin-top:8px}.hubRailCard>.textbutton .uiIcon{width:15px;height:15px}.hubWeek{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.hubWeek>span{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.hubWeek small{font-size:10px;color:var(--muted)}.hubWeek b{width:26px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:10px;color:var(--muted);background:var(--bg)}.hubWeek b.active{background:var(--green);color:#fff}.hubWeek b.protected{color:var(--blue)}.weekCard h3{font-size:20px;margin:10px 0 22px}.weekCard>p{font-size:11px;color:var(--muted);text-align:center;margin:18px 0 0}.hubPocket{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:10px;text-align:left;padding:21px;border:1px dashed var(--border);border-radius:20px;background:none;position:relative}.hubPocket>span{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;font-size:26px}.hubPocket>strong{font-size:13px;line-height:1.5}.hubPocket>small{font-size:11px;color:var(--muted);line-height:1.5;margin-top:4px}.hubPocket>.uiIcon{position:absolute;right:16px;bottom:14px;width:14px;height:14px;color:var(--green)}.hubInstall{display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:0;font-size:9px;font-weight:750;color:var(--muted);min-height:44px;letter-spacing:.3px}.hubInstall .uiIcon{width:16px;height:16px}.hubStoryGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.hubStoryTile{padding:0;display:flex;flex-direction:column;border:1px solid var(--border);border-bottom-width:4px;background:var(--surface);border-radius:21px;text-align:left;overflow:hidden;min-width:0;transition:transform .18s,box-shadow .18s}.hubStoryTile:hover{transform:translateY(-3px);box-shadow:var(--hubShadow)}.storyCover{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#c4e6dc;position:relative;width:100%;height:160px;overflow:hidden;color:#155556}.storyCover:before{content:'';position:absolute;border:1px solid #fff7;width:170px;height:170px;border-radius:50%;left:-40px;top:-40px;box-shadow:0 0 0 20px #ffffff14,0 0 0 40px #ffffff0b}.storyCover>span{font-size:50px;position:relative;z-index:1;filter:drop-shadow(0 5px 1px #174e4e13);transform:rotate(-6deg)}.storyCover>b{font:700 20px 'Noto Sans Thai',sans-serif;letter-spacing:.5px;margin-top:4px}.storyCover>i{position:absolute;right:15px;bottom:15px;background:#fff9;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.storyCover>i .uiIcon{width:16px;height:16px;margin-left:2px}.storyColor1 .storyCover{background:#f6d4b6;color:#7b4932}.storyColor2 .storyCover{background:#d6d9f0;color:#4c527c}.storyTileCopy{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}.storyTileCopy>small{font-size:8px;font-weight:800;letter-spacing:.8px;color:var(--green);line-height:1.5}.storyTileCopy>strong{font:700 21px Outfit,sans-serif;line-height:1.2}.storyTileCopy>span{font-size:12px;color:var(--muted);line-height:1.6}.storyTileCopy>em{display:flex;align-items:center;gap:6px;font-size:10px;font-style:normal;color:var(--muted);margin-top:auto;padding-top:7px}.storyTileCopy>em .uiIcon{width:13px;height:13px}.storyTileCopy>em .uiIcon:last-child{margin-left:auto;color:var(--green)}.hubPracticeCards{display:grid;gap:14px}.practiceTile{display:grid;grid-template-columns:55px minmax(0,1fr) 20px;gap:17px;align-items:center;border:1px solid var(--border);border-bottom-width:4px;border-radius:20px;background:var(--surface);padding:23px;text-align:left}.practiceSymbol{width:53px;height:58px;background:var(--hubSoft);border-radius:17px;color:var(--green);display:grid;place-items:center;font:700 36px 'Noto Sans Thai',sans-serif}.practiceSymbol>.uiIcon{width:29px;height:29px}.practiceSymbol.coral{background:#f6e0da;color:#a86752}.practiceSymbol.gold{background:#f7ebce;color:#9e752b}.practiceTile strong{font:700 20px Outfit,sans-serif}.practiceTile p{font-size:12px;line-height:1.6;margin:6px 0 10px;color:var(--muted)}.practiceTile small{font-size:9px;letter-spacing:.7px;font-weight:800;color:var(--green)}.practiceTile>.uiIcon{width:18px;height:18px;color:var(--muted)}.hubCallPending{display:flex;gap:14px;align-items:center;justify-content:space-between;width:100%;border:1px dashed var(--border);border-radius:17px;background:none;padding:19px;margin:20px 0;font-size:26px;color:var(--muted);text-align:left}.hubCallPending>span{flex:1}.hubCallPending strong{font-size:13px;display:block;color:var(--text)}.hubCallPending small{font-size:11px;display:block;margin-top:5px}.hubCallPending .uiIcon{width:18px;height:18px}.hubModes{display:grid;gap:13px;margin:25px 0 5px}.hubMode{display:flex;align-items:center;gap:16px;border:2px solid var(--border);border-bottom-width:4px;background:var(--surface);padding:19px;border-radius:18px;text-align:left;min-height:96px}.hubMode>span{display:grid;place-items:center;width:46px;height:50px;background:var(--bg);border-radius:14px;font-size:27px;flex-shrink:0}.hubMode>div{flex:1}.hubMode strong{display:block;font-size:16px}.hubMode small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px}.hubMode.selected{border-color:var(--green);background:var(--hubSoft)}.hubMode>b{color:var(--green)}.modeSheet>p,.sectionSheet>p,.missionSheet>p{color:var(--muted);font-size:14px;line-height:1.7}.modeSheet h2,.sectionSheet h2,.missionSheet h2{font-size:26px;font-weight:750;margin-top:5px}.sectionChoices{display:grid;gap:11px;margin-top:24px}.sectionChoices>button{display:grid;grid-template-columns:44px minmax(0,1fr) 28px;gap:13px;padding:17px;border:1px solid var(--border);border-bottom-width:3px;border-radius:17px;background:var(--surface);text-align:left;align-items:center}.sectionChoices>button.selected{border-color:var(--green);background:var(--hubSoft)}.sectionChoices>button>span{font-size:29px}.sectionChoices strong{display:block;font-size:15px;line-height:1.4;margin:5px 0 10px}.sectionChoices small{font-size:8px;font-weight:800;letter-spacing:.5px;color:var(--muted)}.sectionChoices b{font-size:11px;color:var(--green)}.missionIllustration{display:grid;place-items:center;background:var(--hubSoft);width:85px;height:85px;border-radius:25px;margin:25px auto;color:var(--green);transform:rotate(-6deg)}.missionIllustration>.uiIcon{width:49px;height:49px}.missionSheet .hubQuest{grid-template-columns:40px minmax(0,1fr) auto;gap:14px;padding:20px 0}.missionSheet .questTick{width:40px;height:40px;border-radius:13px}.missionSheet .questTick .uiIcon{width:23px;height:23px}.missionSheet .hubQuest strong{font-size:14px}.missionSheet .hubQuest b{font-size:12px}.missionNote{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--muted);line-height:1.6;margin:22px 0}.missionNote .uiIcon{color:var(--green);width:18px;height:18px}.missionSheet>.primary{width:100%;min-height:49px;border-radius:13px}
/* Lesson canvas: a clear prompt, generous Thai text and tactile answer cards. */
#modal.lessonMode{background:var(--bg);border:0}.lessonMode #modalBody{background:var(--bg)}.focusLesson{background:var(--bg);max-width:960px;width:100%;padding:26px 42px 0}.focusHead{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:20px;margin:0 0 12px;width:100%;padding:0 0 18px;flex-shrink:0}.focusHead .close,.focusHead .sessionTheme{width:42px;height:42px;min-width:42px;min-height:42px;border:1px solid var(--border);border-bottom-width:3px;border-radius:14px;background:var(--surface);display:grid;place-items:center;padding:9px}.focusHead .close .uiIcon{width:20px;height:20px}.focusProgress{min-width:0}.focusProgressLabel{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;gap:12px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:1px}.focusProgressLabel small{font-size:10px;white-space:nowrap}.focusHead .bar{height:10px;min-width:0;border-radius:6px;background:var(--border)}.focusHead .bar>div{height:100%;border:0;background:linear-gradient(90deg,var(--green),#6cd6cf);border-radius:6px;transition:width .35s ease}.focusLesson>.exerciseArea{padding-top:12px;padding-bottom:20px}.lessonScene{display:flex;align-items:center;gap:12px;margin:0 0 24px;padding:0}.lessonScene>span:first-child{display:grid;place-items:center;font-size:26px;background:var(--hubSoft);width:47px;height:49px;border-radius:15px}.lessonScene>div{flex:1;min-width:0}.lessonScene small{font-size:8px;letter-spacing:1.4px;font-weight:800;color:var(--muted);display:block;margin-bottom:5px}.lessonScene strong{font-size:14px;line-height:1.4}.lessonCardCount{font-size:11px;color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:5px 8px}.focusStudy h2{font-size:26px;line-height:1.25;letter-spacing:-.5px;font-weight:750;margin:0 0 25px}.studycard.focusPhrase{position:relative;background:var(--surface);border:1px solid var(--border);border-bottom-width:4px;border-radius:24px;padding:30px 25px 20px;box-shadow:var(--hubShadow);margin:0 0 18px;min-height:0;overflow-wrap:anywhere}.focusPhrase .phraseOverline{font-size:8px;letter-spacing:1.5px;color:var(--muted);font-weight:800;display:block;margin-bottom:18px}.focusPhrase>.thai{font-size:48px;font-weight:650;line-height:1.6;margin:0 0 9px}.focusPhrase>.reading{background:var(--hubSoft);display:inline-block;border-radius:10px;padding:8px 13px;font-size:21px;line-height:1.6;margin:0 auto 0;color:var(--reading);overflow-wrap:anywhere}.focusPhrase>.reading>span{display:block;letter-spacing:1.3px;font-size:8px;color:var(--muted);line-height:1.5;margin:0 0 2px;font-weight:700}.focusPhrase>.translation{font-size:21px;color:var(--text);font-weight:600;line-height:1.6;margin:20px 0 18px}.audioControls{display:flex;justify-content:center;gap:11px;flex-wrap:wrap}.audioBtn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;border-radius:13px;padding:12px 18px;font-size:11px;letter-spacing:.4px}.audioBtn>.uiIcon{width:20px;height:20px}.audioBtn:not(.slow){background:var(--hubSoft);border:1px solid var(--green);border-bottom:3px solid var(--green);color:var(--green)}.audioBtn.slow{border:1px solid var(--border);border-bottom-width:3px;background:var(--surface);color:var(--muted)}.audioBtn.playing{box-shadow:0 0 0 4px var(--hubSoft)}.readingHelp{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;line-height:1.6;min-height:44px;margin:9px auto 0;padding:8px 0;letter-spacing:0;color:var(--muted)}.readingHelp>.uiIcon{width:16px;height:16px}.focusStudy>.grammarDetails{margin:18px 0 0;border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:0 15px}.focusStudy>.grammarDetails summary{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700;padding:13px 0;min-height:45px}.focusStudy>.grammarDetails summary>.uiIcon{color:var(--coin);width:18px;height:18px}.focusStudy>.grammarDetails p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 14px}.phrasePagination{display:flex;justify-content:center;align-items:center;gap:6px;padding:20px 0 6px}.phrasePagination span{width:6px;height:6px;border-radius:10px;background:var(--border);transition:width .2s}.phrasePagination span.current{width:22px;background:var(--green)}.phrasePagination span.seen{background:var(--green);opacity:.5}.focusStudy>.pronunciationHelp{font-size:11px;text-align:center;width:100%;justify-content:center;min-height:36px;margin:0;padding:6px 0}.focusStudy>.pronunciationHintLine{text-align:center;font-size:9px;margin-bottom:0}.focusLesson>.modalfoot{padding:17px 0 23px;margin:0;min-height:89px;border-top:1px solid var(--border);background:var(--bg);display:flex;gap:20px;align-items:center;max-height:52%;flex-shrink:0}.focusLesson>.modalfoot>small{font-size:11px;line-height:1.6;color:var(--muted);flex:1}.focusLesson>.modalfoot>.primary{border-radius:13px;min-height:50px;min-width:190px;font-size:12px;gap:20px}.focusLesson .exerciseType{font-size:9px;letter-spacing:.9px;color:var(--green);padding:0;margin:0 0 13px;display:flex;justify-content:space-between;gap:8px;align-items:center}.focusLesson .exerciseType>span{font-size:9px;letter-spacing:0;border:1px solid var(--border);border-radius:7px;padding:5px 8px;color:var(--muted);flex-shrink:0}.focusLesson .exerciseArea>h2{font-size:29px;font-weight:750;line-height:1.25;letter-spacing:-.6px;margin:0 0 24px}.focusLesson .exerciseInstruction{font-size:12px;line-height:1.7;color:var(--muted);margin:-10px 0 20px}.focusLesson .questionPrompt{margin:0 0 25px;display:flex;align-items:center;justify-content:flex-start;gap:16px;min-height:88px}.focusLesson .promptMascot{width:85px;height:95px;flex-shrink:0}.focusLesson .promptMascot>.heroArt{width:85px;height:95px;position:static}.focusLesson .promptBubble{padding:17px 20px;border:1px solid var(--border);border-radius:19px 19px 19px 4px;background:var(--surface);font-size:22px;font-weight:600;line-height:1.6;min-width:0;overflow-wrap:anywhere}.promptLabel{font-size:8px;letter-spacing:1.1px;font-weight:800;display:block;color:var(--muted);margin-bottom:6px}.focusLesson .promptBubble .thai{font-size:30px;line-height:1.6}.focusLesson .promptBubble .reading{font-size:16px;margin-top:6px}.focusLesson .options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0 0 16px}.focusLesson .choiceRow{display:flex;align-items:stretch;gap:6px;min-width:0}.focusLesson .option{padding:16px 13px;min-height:94px;display:flex;align-items:center;gap:12px;border-radius:16px;border:1.5px solid var(--border);border-bottom-width:4px;background:var(--surface);min-width:0;width:100%;box-shadow:none;transition:background .16s,border-color .16s,transform .16s;text-align:left}.focusLesson .option .choiceNumber{border:0;width:22px;min-width:22px;height:22px;border-radius:7px;font-size:10px;background:var(--bg);color:var(--muted);display:grid;place-items:center}.focusLesson .choiceContent{min-width:0;flex:1}.focusLesson .option .thai{font-size:24px;line-height:1.5}.focusLesson .option .reading{font-size:14px;line-height:1.6;margin-top:4px}.focusLesson .option .reading span{font-size:7px;letter-spacing:.7px;display:block}.focusLesson .choiceAudio{width:34px;min-width:34px;min-height:44px;align-self:center;border:1px solid var(--border);border-bottom-width:3px;border-radius:11px;background:var(--surface);font-size:13px;padding:0;color:var(--blue)}.focusLesson .option.selected{border-color:var(--green);background:var(--hubSoft);color:var(--text)}.focusLesson .option.correct{background:var(--hubSoft);border-color:#42a59a;color:var(--text)}.focusLesson .option.wrong{border-color:#d48c78;background:#fff0eb;color:#985140}html[data-theme=dark] .focusLesson .option.wrong{background:#422f32;color:#ffd0bf}.focusLesson .assemblyZone{border:1.5px dashed var(--border);border-radius:18px;background:var(--surface);min-height:104px;padding:15px}.focusLesson .assemblyPlaceholder{font-size:12px;line-height:1.7;color:var(--muted)}.focusLesson .wordBank{gap:10px;justify-content:center;margin:20px 0}.focusLesson .wordTile,.focusLesson .assembledTile{border-radius:13px;padding:13px 17px;border-width:1px;border-bottom-width:4px;font-size:20px;background:var(--surface)}.focusLesson .wordTile small,.focusLesson .assembledTile small{font-size:12px;line-height:1.6}.focusLesson .hintButton{font-size:10px;letter-spacing:.3px;min-height:42px;border-radius:10px;padding:10px 13px}.focusLesson .hintContent{font-size:13px;line-height:1.7;padding:13px 15px;border-radius:13px;background:var(--surface);border:1px solid var(--border)}.focusLesson #feedback{min-width:0;flex:1}.focusFeedback #feedback .feedback{font-size:13px;line-height:1.6}.focusFeedback #feedback .feedback strong{display:flex;align-items:center;gap:9px;font-size:17px;line-height:1.4;font-weight:800}.feedbackMark{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;background:#42a59a22;border-radius:9px}.feedbackMark>.uiIcon{width:18px;height:18px}.focusFeedback.errorFoot .feedbackMark{background:#dc8a7722}.focusFeedback .feedback>.thai{font-size:23px;line-height:1.6}.focusFeedback .feedback .reading{font-size:14px;margin:3px 0}.focusFeedback .feedback .reading>span{font-size:7px}.focusFeedback .feedbackAudio{font-size:9px;min-height:36px;padding:8px 0}.focusFeedback .answerExplanation{margin-top:6px;font-size:10px;max-width:none}.focusFeedback .errorTip{font-size:10px;line-height:1.5}.focusLesson>.modalfoot.focusFeedback{padding:18px;border-radius:18px 18px 0 0;gap:20px;border:1px solid var(--border);border-bottom:0}.focusLesson>.modalfoot.successFoot{background:var(--hubSoft);border-color:#42a59a55}.focusLesson>.modalfoot.errorFoot{background:#fae9e3;border-color:#d48c7855}html[data-theme=dark] .focusLesson>.modalfoot.errorFoot{background:#3c2d32}.focusResult{position:relative;overflow:hidden;padding:35px 30px;text-align:center;max-width:660px}.focusResult>.medal{height:170px;position:relative;display:flex;justify-content:center;align-items:center;font-size:0;margin:0 0 20px}.resultSun{position:absolute;width:145px;height:145px;border-radius:50%;background:var(--hubSoft);z-index:0;display:grid;place-items:center}.resultSun .uiIcon{width:70px;height:70px;color:var(--hubGold)}.focusResult .medal img{position:relative;z-index:1;width:164px;height:151px;transform:rotate(-6deg)}.focusResult h2{font-size:34px;font-weight:750;line-height:1.2;letter-spacing:-.7px;margin:12px 0 18px}.focusResult>p{font-size:13px;color:var(--muted);line-height:1.7;max-width:430px;margin-left:auto;margin-right:auto}.focusResult>.grid{gap:12px}.focusResult>.grid>.card{border-radius:17px;background:var(--surface);border:1px solid var(--border);padding:17px 12px}.focusResult>.grid h3{font:700 10px 'DM Sans',sans-serif;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}.focusResult .bigstat{font-size:29px;margin:8px 0 0;color:var(--green)}.focusResult .earnedCoins{background:var(--hubSoft);border:0;border-radius:12px;padding:14px;font-size:13px;color:var(--coin)}.focusResult #done{width:100%;border-radius:13px;min-height:51px;font-size:11px;gap:15px;margin-top:12px}.resultSparks{position:absolute;inset:0 0 auto;height:220px;pointer-events:none;overflow:hidden}.resultSparks i{position:absolute;left:var(--x);top:-15px;width:6px;height:12px;border-radius:2px;background:var(--green);animation:hubConfetti 1.6s calc(var(--i)*35ms) both ease-out}.resultSparks i:nth-child(3n){background:var(--hubCoral);width:8px;height:8px;border-radius:50%}.resultSparks i:nth-child(3n + 1){background:var(--hubGold)}.reviewDestination>.grid{margin-top:28px}.reviewDestination>.grid>.card{border-radius:22px;border:1px solid var(--border);padding:28px}.reviewDestination>.grid .primary,.reviewDestination>.grid .secondary{min-height:48px;border-radius:12px;font-size:11px}.storyReader .storyScene{width:82px;height:82px;border-radius:25px;background:var(--hubSoft);display:grid;place-items:center;font-size:46px;margin:24px auto}.storyReader .storyBubble{background:var(--surface);border-radius:23px;border-width:1px;border-bottom-width:4px}.storyReader .storyBubble>.thai{font-size:37px;font-weight:650}.storyReader .storyBubble>.reading{display:inline-block;background:var(--hubSoft);padding:7px 12px;border-radius:10px;font-size:20px}.storyReader>.primary,.storyReader #nextStoryQuestion{border-radius:13px;min-height:50px;gap:15px}.storyOptions>.secondary{min-height:56px;border-radius:14px;font-size:14px;padding:16px}.profileHero,.socialPanel,.transferCard,.badgeSection .achievement{box-shadow:var(--hubShadow)}.phraseitem{border-radius:18px;margin-bottom:11px;box-shadow:var(--hubShadow)}.phraseContextIcon{background:var(--hubSoft)}.search{border-radius:13px}.reading{color:var(--reading)}
@keyframes hubBuddy{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(1deg) translateY(-5px)}}@keyframes hubConfetti{0%{opacity:0;transform:translateY(0) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(220px) rotate(230deg)}}
@media(min-width:1440px){.hubHero h2{font-size:39px}.hubHeroArt .heroArt{width:235px;height:215px}.hubHeroArt{right:0}.hubHero{min-height:300px}}
@media(max-width:1180px){.journeyHub{grid-template-columns:minmax(0,1fr) 245px;gap:22px}.hubRailCard{padding:19px}.hubHero{padding:27px}.hubHero h2{font-size:30px}.hubHeroArt .heroArt{width:180px;height:170px;right:0;bottom:18px}.hubHeroArt{width:40%;right:-9px}.buddyWord{right:31px;top:26px}.hubHeroCopy{width:69%}.heroMeta{font-size:9px}.hubWelcome h1{font-size:29px}.hubModeChip{font-size:10px;padding:9px 10px}.hubWelcome{gap:10px}.hubQuest{gap:7px;grid-template-columns:27px minmax(0,1fr) auto}.hubWeek{gap:2px}.hubWeek b{width:24px}.hubRailCard h3{font-size:21px}.hubStoryGrid{grid-template-columns:1fr}.hubStoryTile{display:grid;grid-template-columns:150px minmax(0,1fr)}.storyCover{height:100%;min-height:190px}.storyTileCopy>strong{font-size:20px}}
@media(max-width:1020px) and (min-width:761px){main:has(.journeyHub){padding:26px 28px}.journeyHub{grid-template-columns:minmax(0,1fr)}.hubRail{display:none}.hubHeroCopy{width:65%}.hubHeroArt{width:40%;right:0}.hubHeroArt .heroArt{width:210px;height:195px;right:15px;bottom:9px}.hubHero h2{font-size:35px;max-width:330px}.hubHero{min-height:290px}.hubStoryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.hubStoryTile{display:flex}.storyCover{height:160px;min-height:0}}
@media(max-width:760px){main:has(.journeyHub){padding:25px 18px 28px}.journeyHub{display:block}.hubRail{display:none}.hubWelcome{margin-bottom:19px;gap:9px;align-items:center}.hubWelcome h1{font-size:27px;line-height:1.2;margin-top:7px;max-width:260px}.hubWelcome .hubOverline{font-size:8px;letter-spacing:1.1px}.hubModeChip{padding:8px 10px;border-radius:12px;min-height:39px;font-size:9px;gap:6px}.hubModeChip .uiIcon{width:15px;height:15px}.hubHero{padding:24px 21px;min-height:266px;border-radius:23px;align-items:flex-start}.hubHeroCopy{width:70%;min-width:0}.heroTag{font-size:8px;letter-spacing:1px}.hubHero h2{font-size:29px;margin:13px 0 8px;letter-spacing:-.7px;line-height:1.12;max-width:260px}.hubHero p{font-size:12px;line-height:1.6;max-width:195px;margin-bottom:12px}.heroMeta{font-size:8px;gap:4px;flex-wrap:wrap;white-space:normal;max-width:200px}.heroMeta .uiIcon{width:12px;height:12px}.heroMeta i{margin:0 1px}.hubHero .primary{min-height:47px;margin-top:19px;gap:14px;font-size:10px;letter-spacing:.3px;padding:12px 16px;border-radius:12px;white-space:nowrap}.hubHero .primary>.uiIcon{width:16px;height:16px}.hubHeroArt{right:-25px;width:42%;top:0}.hubHeroArt .heroArt{width:157px;height:147px;right:0;bottom:23px}.heroArch{width:168px;height:240px;right:-9px;bottom:-70px}.buddyWord{right:33px;top:41px;padding:8px 10px;font-size:17px;max-width:100px}.buddyWord small{font-size:7px}.heroSun{width:70px;height:70px;right:25px;top:26px}.hubDailyBar{gap:10px;padding:14px 13px;margin:14px 0 22px;border-radius:16px}.dailySpark{width:31px;height:34px;border-radius:11px}.dailySpark>.uiIcon{width:21px;height:21px}.dailyBarText>strong{font-size:11px;margin-bottom:7px}.dailyNumbers{font-size:11px}.dailyNumbers small{font-size:8px}.missionChip{font-size:0;padding-left:8px;gap:0;border:0}.missionChip>.uiIcon{width:15px;height:15px}.hubTrack{height:5px}.hubTabs{border-radius:14px;gap:4px;margin-bottom:25px;padding:4px}.hubTabs button{min-height:42px;font-size:12px;gap:6px;border-radius:10px}.hubTabs .uiIcon{width:17px;height:17px}.hubSectionHeading{gap:10px;margin-bottom:13px}.hubSectionHeading .hubOverline{font-size:8px;letter-spacing:1.2px}.hubSectionHeading h2{font-size:23px;line-height:1.25;margin:6px 0 7px}.hubSectionHeading p{font-size:11px;line-height:1.7}.hubSmallButton{font-size:8px;gap:6px;padding:9px;min-height:37px;margin-top:5px}.hubSmallButton .uiIcon{width:13px;height:13px}.hubSectionProgress{font-size:10px;padding-bottom:12px}.hubSectionProgress .textbutton{font-size:10px;gap:5px}.hubPath{padding-top:13px}.hubPath:before{left:29px;width:3px;top:58px;bottom:63px}.hubLesson{grid-template-columns:59px minmax(0,1fr) 18px;gap:13px;min-height:122px;padding:16px 12px 16px 0;border-radius:18px;margin:5px 0}.hubNode{width:49px;height:53px;border-radius:18px;font-size:25px;border-bottom-width:5px;box-shadow:0 4px 0 var(--bg)}.hubLesson.current .hubNode{margin-left:5px;box-shadow:0 0 0 5px var(--hubSoft)}.hubNode>.uiIcon{width:24px;height:24px}.hubLessonText{gap:5px}.hubLessonText>strong{font-size:18px;line-height:1.2}.hubLessonText>small{font-size:8px;letter-spacing:.8px}.hubLessonText>span{font-size:11px;line-height:1.5}.hubLessonText>em{font-size:9px;line-height:1.5}.hubLessonArrow .uiIcon{width:17px;height:17px}.hubSectionEnd{padding:17px;gap:11px;border-radius:18px}.hubSectionEnd strong{font-size:13px}.hubSectionEnd p{font-size:11px;line-height:1.6}.hubSectionEnd>.secondary{font-size:10px;gap:12px}.hubNextSection,.returnToJourney{font-size:9px;line-height:1.6}.hubStoryGrid{grid-template-columns:1fr;gap:17px}.hubStoryTile{display:grid;grid-template-columns:112px minmax(0,1fr);border-radius:19px}.storyCover{height:100%;min-height:188px}.storyCover>span{font-size:41px}.storyCover>b{font-size:17px}.storyCover>i{width:26px;height:26px;right:12px;bottom:13px}.storyCover>i>.uiIcon{width:13px;height:13px}.storyTileCopy{padding:18px 16px;gap:9px}.storyTileCopy>strong{font-size:21px;line-height:1.2}.storyTileCopy>small{font-size:7px;letter-spacing:.6px}.storyTileCopy>span{font-size:11px;line-height:1.6}.storyTileCopy>em{font-size:9px;padding-top:5px;gap:4px}.storyTileCopy>em>.uiIcon{width:11px;height:11px}.practiceTile{padding:18px 16px;grid-template-columns:44px minmax(0,1fr) 16px;gap:13px;border-radius:18px}.practiceSymbol{width:44px;height:48px;border-radius:14px;font-size:31px}.practiceSymbol .uiIcon{width:25px;height:25px}.practiceTile strong{font-size:19px;line-height:1.2}.practiceTile p{font-size:11px;line-height:1.6;margin:8px 0}.practiceTile small{font-size:8px;letter-spacing:.5px}.practiceTile>.uiIcon{width:16px;height:16px}.hubCallPending{padding:16px;font-size:23px;gap:12px}.modeSheet h2,.sectionSheet h2,.missionSheet h2{font-size:24px;line-height:1.3}.hubMode{padding:16px;gap:13px;min-height:102px}.hubMode>span{width:38px;height:44px;font-size:24px;border-radius:12px}.hubMode strong{font-size:15px}.hubMode small{font-size:11px}.hubMode>b>.uiIcon{width:19px;height:19px}.sectionChoices>button{padding:15px 13px;gap:11px;grid-template-columns:33px minmax(0,1fr) 23px}.sectionChoices>button>span{font-size:26px}.sectionChoices strong{font-size:14px}.sectionChoices small{font-size:7px}.sectionChoices b{font-size:10px}
.focusLesson{padding:13px 18px 0;width:100%;max-width:none}.focusHead{grid-template-columns:36px minmax(0,1fr) 36px;gap:13px;padding:0 0 13px;margin:0 0 4px}.focusHead .close,.focusHead .sessionTheme{width:36px;height:38px;min-width:36px;min-height:38px;border-radius:12px;padding:8px}.focusHead .close .uiIcon,.focusHead .sessionTheme>.uiIcon{width:18px;height:18px}.focusProgressLabel{font-size:8px;margin-bottom:7px}.focusProgressLabel small{font-size:9px}.focusHead .bar{height:8px}.focusLesson>.exerciseArea{padding:13px 0 20px}.lessonScene{gap:10px;margin-bottom:23px}.lessonScene>span:first-child{width:40px;height:44px;border-radius:13px;font-size:24px}.lessonScene small{font-size:7px;letter-spacing:1px;margin-bottom:4px}.lessonScene strong{font-size:12px;line-height:1.4}.lessonCardCount{font-size:9px;border-radius:7px;padding:4px 7px}.focusLesson .exerciseArea>h2,.focusStudy h2{font-size:25px;letter-spacing:-.5px;line-height:1.2;margin:0 0 23px}.studycard.focusPhrase{padding:25px 18px 17px;border-radius:22px;margin-bottom:16px}.focusPhrase .phraseOverline{font-size:7px;letter-spacing:1.4px;margin-bottom:18px}.focusPhrase>.thai{font-size:40px;line-height:1.6;margin-bottom:10px}.focusPhrase>.reading{font-size:20px;padding:7px 13px;border-radius:11px}.focusPhrase>.reading>span{font-size:7px;letter-spacing:1.1px}.focusPhrase>.translation{font-size:19px;line-height:1.5;margin:21px 0 19px}.audioControls{gap:9px}.audioBtn{min-height:46px;font-size:10px;gap:8px;padding:11px 15px;border-radius:12px}.audioBtn .uiIcon{width:19px;height:19px}.readingHelp{font-size:10px;line-height:1.6;margin-top:11px;gap:6px;min-height:39px}.readingHelp .uiIcon{width:15px;height:15px}.focusStudy>.grammarDetails{margin-top:15px;border-radius:13px;padding:0 13px}.focusStudy>.grammarDetails summary{font-size:11px;min-height:45px}.focusStudy>.grammarDetails p{font-size:12px}.phrasePagination{padding:17px 0 6px}.focusStudy>.pronunciationHelp{font-size:10px;padding:7px 0}.focusStudy>.pronunciationHintLine{font-size:8px;line-height:1.6}.focusLesson>.modalfoot{padding:12px 0 max(15px,env(safe-area-inset-bottom));gap:9px;display:flex;flex-direction:column;align-items:stretch;min-height:0;max-height:48%}.focusLesson>.modalfoot>small{text-align:center;font-size:9px;flex:none;line-height:1.6}.focusLesson>.modalfoot>.primary{min-height:49px;min-width:0;width:100%;font-size:11px;gap:18px;margin:0;border-radius:12px;padding:12px 16px}.focusLesson .exerciseType{font-size:8px;letter-spacing:.5px;margin-bottom:16px;gap:6px;line-height:1.6}.focusLesson .exerciseType>span{font-size:8px;padding:4px 6px;line-height:1.5}.focusLesson .exerciseInstruction{font-size:11px;line-height:1.7;margin-top:-8px}.focusLesson .questionPrompt{gap:10px;min-height:88px;margin-bottom:22px}.focusLesson .promptMascot{width:64px;height:78px}.focusLesson .promptMascot>.heroArt{width:68px;height:78px}.focusLesson .promptBubble{padding:14px 15px;font-size:21px;border-radius:17px 17px 17px 3px;line-height:1.6;max-width:calc(100% - 75px)}.promptLabel{font-size:7px;letter-spacing:.7px;margin-bottom:5px}.focusLesson .promptBubble .thai{font-size:25px;line-height:1.5}.focusLesson .promptBubble .reading{font-size:15px;margin-top:7px}.focusLesson .promptBubble .reading>span{font-size:7px;display:block}.focusLesson .options{grid-template-columns:1fr;gap:10px;margin-bottom:14px}.focusLesson .option{min-height:87px;border-radius:15px;padding:13px 14px;gap:13px;border-bottom-width:4px}.focusLesson .option .choiceNumber{font-size:9px;width:20px;min-width:20px;height:22px;border-radius:7px}.focusLesson .option .thai{font-size:24px;line-height:1.5}.focusLesson .option .reading{font-size:14px;margin-top:3px;line-height:1.5}.focusLesson .option .reading span{font-size:6px;letter-spacing:.6px;line-height:1.5}.focusLesson .choiceRow{gap:7px}.focusLesson .choiceAudio{width:34px;min-width:34px;min-height:46px;border-radius:11px;font-size:13px}.focusLesson .wordTile,.focusLesson .assembledTile{padding:12px 13px;border-radius:12px}.focusLesson .wordTile small,.focusLesson .assembledTile small{font-size:11px}.focusLesson .assemblyZone{border-radius:15px;min-height:97px;padding:13px}.focusLesson .assemblyPlaceholder{font-size:11px}.focusLesson .wordBank{gap:9px;margin:18px 0}.focusLesson .hintButton{min-height:40px;font-size:9px;padding:10px 12px}.focusLesson .hintContent{font-size:12px;padding:12px;border-radius:12px}.focusLesson>.modalfoot.focusFeedback{padding:13px 14px max(15px,env(safe-area-inset-bottom));margin:0 -4px;gap:10px;border-radius:16px 16px 0 0;max-height:52%}.focusFeedback #feedback .feedback{font-size:11px;line-height:1.5}.focusFeedback #feedback .feedback strong{font-size:15px;gap:7px}.feedbackMark{width:24px;height:24px;border-radius:8px}.feedbackMark .uiIcon{width:16px;height:16px}.focusFeedback .feedback>.thai{font-size:21px;line-height:1.6}.focusFeedback .feedback .reading{font-size:13px;line-height:1.5}.focusFeedback .feedback .reading>span{font-size:6px}.focusFeedback .feedbackAudio{font-size:8px;min-height:31px;padding:7px 0}.focusFeedback .answerExplanation{font-size:9px;margin:6px 0 0}.focusFeedback .answerExplanation summary{min-height:29px}.focusFeedback .answerExplanation p{font-size:11px;max-height:90px}.focusFeedback .errorTip{font-size:9px;line-height:1.5}.focusResult{padding:28px 22px;max-width:none}.focusResult>.medal{height:147px;margin-bottom:16px}.focusResult .medal img{width:150px;height:140px}.resultSun{width:128px;height:128px}.focusResult h2{font-size:30px;line-height:1.2;margin:14px 0}.focusResult>p{font-size:12px;line-height:1.7}.focusResult>.grid{gap:9px}.focusResult>.grid>.card{padding:15px 10px}.focusResult>.grid h3{font-size:8px;letter-spacing:.5px}.focusResult .bigstat{font-size:27px}.focusResult .earnedCoins{font-size:12px;padding:14px}.focusResult #done{font-size:10px;min-height:49px}.storyReader .storyBubble>.thai{font-size:31px}.storyReader .storyBubble>.reading{font-size:19px}.storyReader .storyScene{width:72px;height:72px;font-size:40px;border-radius:22px}.reviewDestination>.grid>.card{padding:23px}.reviewDestination>.grid{gap:16px}
}
@media(max-width:360px){main:has(.journeyHub){padding:21px 14px 25px}.hubWelcome h1{font-size:23px}.hubWelcome .hubOverline{font-size:7px;letter-spacing:.6px}.hubModeChip{font-size:8px;padding:8px;gap:5px;min-height:37px}.hubModeChip .uiIcon{width:13px;height:13px}.hubHero{padding:22px 18px;min-height:270px}.hubHero h2{font-size:27px;line-height:1.13}.hubHero p{font-size:11px;max-width:165px}.hubHeroCopy{width:72%}.hubHeroArt{right:-34px;width:43%}.hubHeroArt .heroArt{width:143px;height:133px;bottom:28px}.buddyWord{right:30px;top:48px;font-size:15px;padding:7px 9px}.buddyWord small{font-size:6px}.hubHero .primary{font-size:9px;padding:11px 13px;gap:10px}.hubTabs button{font-size:11px;gap:5px}.hubTabs .uiIcon{width:16px;height:16px}.hubLesson{grid-template-columns:52px minmax(0,1fr) 15px;gap:9px;padding-right:10px;min-height:125px}.hubNode{width:43px;height:49px;font-size:23px;border-radius:16px}.hubLesson.current .hubNode{margin-left:4px}.hubPath:before{left:25px}.hubLessonText>strong{font-size:17px}.hubLessonText>span{font-size:10px}.hubSectionHeading h2{font-size:22px}.hubSectionProgress{font-size:9px}.hubSectionProgress .textbutton{font-size:9px}.hubStoryTile{grid-template-columns:95px minmax(0,1fr)}.storyTileCopy{padding:16px 13px}.storyTileCopy>strong{font-size:19px}.storyTileCopy>em{font-size:8px}.storyCover>b{font-size:16px}.practiceTile{padding:17px 13px;gap:11px;grid-template-columns:39px minmax(0,1fr) 14px}.practiceSymbol{width:39px;height:44px}.practiceTile strong{font-size:17px}.focusLesson{padding:12px 14px 0}.focusHead{gap:10px}.focusLesson .exerciseArea>h2{font-size:23px}.studycard.focusPhrase{padding:22px 15px 15px}.focusPhrase>.thai{font-size:35px}.focusPhrase>.reading{font-size:18px;padding:7px 11px}.focusPhrase>.translation{font-size:18px}.focusLesson .option{padding:12px 11px;gap:10px;min-height:85px}.focusLesson .option .thai{font-size:22px}.focusLesson .option .reading{font-size:13px}.focusLesson .promptBubble{font-size:19px;padding:12px}.focusLesson .promptBubble .thai{font-size:24px}.focusLesson .promptMascot{width:56px;height:70px}.focusLesson .promptMascot>.heroArt{width:59px;height:70px}.focusLesson .promptBubble{max-width:calc(100% - 65px)}.focusFeedback #feedback .feedback strong{font-size:14px}.lessonScene{margin-bottom:20px}.lessonScene strong{font-size:11px}.audioBtn{font-size:9px;padding:10px 13px;gap:7px}.readingHelp{font-size:9px}.focusLesson>.modalfoot>small{font-size:8px}.focusLesson .exerciseType{font-size:7px}.focusResult h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){.hubHeroArt .heroArt,.resultSparks i{animation:none}.resultSparks{display:none}.hubTabs button,.hubTrack>span,.hubStoryTile,.hubLesson,.primary,.focusLesson .option,.focusHead .bar>div{transition:none}.hubStoryTile:hover{transform:none}}

.hubHeroArt .heroArt{opacity:1}.hubSmallButton,.hubModeChip{min-height:44px}
/* Keep the primary action visible even when a correction is long. */
.focusLesson>.modalfoot.focusFeedback{overflow:hidden}.focusFeedback #feedback{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}.focusFeedback>.primary{flex-shrink:0}
@media(max-width:760px){.focusFeedback #feedback{max-height:calc(52dvh - 100px)}}
@media(max-width:360px){.hubHeroArt{right:-8px}.buddyWord{right:20px}}
.focusResult>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.focusResult .bigstat{line-height:1.3}.focusResult .earnedCoins{margin:13px 0}.focusResult .resultHints{font-size:10px;margin:8px 0}.focusResult>.grid>.card{min-width:0}.hubHero .heroArt{opacity:1}
@media(max-height:680px) and (max-width:760px){.focusResult{padding:21px 20px}.focusResult>.medal{height:105px;margin-bottom:10px}.focusResult .medal img{width:115px;height:105px}.resultSun{width:100px;height:100px}.focusResult h2{font-size:26px;margin:10px 0}.focusResult>p{font-size:11px;line-height:1.6}.focusResult>.grid>.card{padding:13px 8px}.focusResult .bigstat{font-size:24px}.focusResult .earnedCoins{padding:12px;font-size:11px}.focusResult #done{margin-top:8px}}
.focusLesson>.modalfoot{flex-wrap:nowrap}html[data-theme] .focusLesson .option.correct{background:var(--hubSoft);border-color:#42a59a;color:var(--text)}
@media(max-width:760px){.focusHead{grid-template-columns:44px minmax(0,1fr) 44px;gap:11px}.focusHead .close,.focusHead .sessionTheme{width:44px;height:44px;min-width:44px;min-height:44px}}
@media(max-width:760px) and (min-width:361px){.hubHeroArt{right:-5px}}
/* Decorative overflow must never make the hero a scroll container: restoring
   focus to its CTA could otherwise scroll the title and mascot out of place. */
.hubHero{overflow:clip}

/* Chang stays still while the learner reads. */
.hubHeroArt .heroArt,.heroBuddy .heroArt,.mascotMoment .heroArt{animation:none;transform:none}
/* SabaiTalk wordmark and Chang's introduction. */
.brandicon{background:transparent;display:grid;place-items:center;overflow:visible;width:36px;height:36px;border-radius:0}.brandicon img{display:block;width:36px;height:36px;object-fit:contain}.brand{gap:6px;white-space:nowrap}.branddot{margin-left:0}.hubHeroArt .heroArt{bottom:8px}.buddyWord small{max-width:110px}.changIntro{display:inline-flex;align-items:center;gap:7px;margin-top:12px;color:var(--muted);font-size:11px}.changIntro b{color:var(--green)}
@media(max-width:760px){header .breadcrumb:before{content:'SabaiTalk';font-size:20px;letter-spacing:-.8px}}
@media(max-width:360px){header .breadcrumb:before{font-size:18px}}
.profile>span>img,.stats .avatar>img{width:100%;height:100%;object-fit:contain}.avatarPicker button img{width:58px;height:50px;object-fit:contain}.friendAvatar img{width:44px;height:40px;object-fit:contain}.profileAvatar img{object-fit:contain}.buddyWord{font-family:Outfit,'Noto Sans Thai',sans-serif}
