@font-face{font-family:'Noto Sans Thai';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/noto-sans-thai-thai-400-normal.woff2') format('woff2');unicode-range:U+0E01-0E5B,U+200C-200D,U+25CC;}
@font-face{font-family:'Noto Sans Thai';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/noto-sans-thai-thai-700-normal.woff2') format('woff2');unicode-range:U+0E01-0E5B,U+200C-200D,U+25CC;}
:root{--paper:#fffaf0;--ink:#264e43;--green:#286553;--muted:#607368;--line:#e2e3d4;--yellow:#f9ca60;--serif:Georgia,'Noto Sans Thai','Times New Roman',serif;--round:'Trebuchet MS','Noto Sans Thai',Tahoma,system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--round);font-size:16px;line-height:1.6}button,a,input{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #d58216;outline-offset:5px}button{border:0}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}.wrap{max-width:1220px;width:calc(100% - 96px);margin-inline:auto}.skip{position:absolute;left:16px;top:-100px;background:white;padding:15px;z-index:20}.skip:focus{top:10px}.site-header{display:flex;align-items:center;justify-content:space-between;min-height:112px;border-bottom:1px solid var(--line);gap:30px}.brand{display:flex;align-items:center;gap:11px;line-height:1.13;font-size:24px;letter-spacing:-.6px}.brand b{font-weight:700}.brand small{display:block;font-size:8px;letter-spacing:2.1px;margin-top:9px;font-weight:bold}.site-header nav{display:flex;align-items:center;gap:34px;margin-left:auto;font-size:14px;font-weight:bold}.text-button{background:transparent;padding:12px 0}.score-pill{border:1px solid #eddfb8;border-radius:30px;background:#fff4d1;min-height:44px;padding:8px 18px;font-size:14px;white-space:nowrap}.score-pill>span:first-child{color:#98621b;font-size:20px;vertical-align:-1px;margin-right:5px}.score-max{color:#706947}.hero{display:grid;grid-template-columns:45% 55%;gap:0;align-items:center;padding-block:66px 78px}.hero-copy{padding-right:40px;position:relative;z-index:1}.eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:bold;letter-spacing:1.8px;line-height:1.5}.tiny-flower{font-size:24px;color:#ae6b36;letter-spacing:0}.hero h1{font:normal clamp(40px,4.25vw,58px)/1.12 var(--serif);letter-spacing:-2.3px;margin:22px 0 13px}.hero h1 span{color:#397963}.hero-thai{font-size:21px;color:#7e6141;line-height:1.65;margin:0 0 17px}.hero-description{font-size:16px;color:var(--muted);max-width:375px;line-height:1.8;margin:0 0 25px}.language-control{display:inline-flex;border:1px solid #dddcc7;border-radius:30px;padding:5px;gap:3px;background:#fffcf6;max-width:100%}.language-option{display:flex;gap:9px;align-items:center;border-radius:24px;padding:9px 14px;background:transparent;font-size:13px;white-space:nowrap;font-weight:bold;min-height:44px}.language-option>span:first-child{font-size:19px;line-height:1}.language-option.active{background:#e4ecd9;color:#2f604b;box-shadow:0 1px 3px #203b4010}.primary{background:var(--green);color:white;display:inline-flex;align-items:center;justify-content:center;gap:28px;padding:15px 24px;border-radius:14px;font-size:15px;font-weight:bold;min-height:52px;box-shadow:0 4px 0 #1e4f40;line-height:1.4}.primary:disabled{box-shadow:none;background:#d1d9cd;color:#53624f}.primary>span:last-child:not(:first-child){font-size:22px}.hero-cta{display:flex;margin-top:22px;width:232px;justify-content:space-between}.micro{font-size:11px;color:#748376;letter-spacing:.3px;margin:18px 0 0}.hero-art{position:relative;padding:14px 0 0 10px;margin-left:8px}.garden-art{width:100%;height:410px;object-fit:cover;object-position:50% 50%;border-radius:95px 28px 95px 28px;display:block;box-shadow:0 15px 30px #47653013;border:7px solid #fffdf7}.hello-bubble{position:absolute;right:-17px;top:-8px;background:#fffef9;border:1px solid #eae4cf;padding:15px 60px 15px 24px;box-shadow:0 8px 20px #4a653316;border-radius:23px;transform:rotate(5deg)}.hello-bubble>span:first-child{font-size:23px;font-weight:bold}.hello-bubble small{display:block;font-size:12px;color:var(--muted)}.bubble-hand{position:absolute;right:20px;top:18px;font-size:31px}.art-caption{display:flex;align-items:center;gap:10px;background:#edf0d6;border:5px solid var(--paper);font-size:12px;font-weight:bold;border-radius:40px;padding:10px 20px;position:absolute;bottom:-12px;left:14%;box-shadow:0 4px 12px #2230200a;white-space:nowrap}.caption-dot{width:9px;height:9px;background:#729861;border-radius:50%}.art-spark{position:absolute;font-size:42px;color:#d5a142}.spark-one{left:-13px;top:12px}.spark-two{bottom:34px;right:-20px}.friends-section{padding-bottom:58px}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:27px}.section-heading h2{font:normal 32px/1.2 var(--serif);letter-spacing:-.7px;margin:10px 0 0}.section-heading p{margin:0;font-size:13px;color:var(--muted);line-height:1.7}.friend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}.friend-card{position:relative;border:1px solid var(--line);background:#fffdf7;border-radius:23px;overflow:hidden;box-shadow:0 4px 0 #e7e7d5;display:flex;flex-direction:column}.friend-image{height:209px;width:100%;object-fit:cover;object-position:50% 29%;display:block}.friend-image-wrap{position:relative;overflow:hidden}.friend-tag{position:absolute;left:13px;top:12px;display:flex;align-items:center;gap:5px;border-radius:20px;background:#fffcf1ed;padding:4px 10px;font-size:10px;font-weight:bold;color:#5b654e}.friend-copy{padding:19px 20px 15px}.friend-name{display:flex;align-items:center;justify-content:space-between}.friend-name h3{margin:0;font-size:23px;line-height:1.3;letter-spacing:-.7px}.friend-topic-icon{font-size:22px;color:#815d20}.friend-copy p{font-size:12px;margin:5px 0 16px;color:var(--muted)}.friend-button{display:flex;align-items:center;justify-content:space-between;border-radius:10px;width:100%;background:var(--accent);padding:10px 14px;font-weight:bold;font-size:13px;min-height:46px}.friend-button span:last-child{font-size:19px}.friend-stars{display:flex;align-items:center;gap:4px;margin-top:12px;font-size:15px;color:#b6bbab;line-height:1}.friend-stars .earned{color:#a2711a}.friend-stars small{margin-left:auto;font-size:10px;color:#72806e}.promise{display:flex;align-items:center;gap:28px;padding:29px 35px;border:1px solid #dce3c9;border-radius:25px;background:#edf0de}.promise-flower{font-size:59px;color:#809665;line-height:1}.promise h2{font:normal 25px/1.2 var(--serif);letter-spacing:-.5px;margin:0 0 7px}.promise p{font-size:13px;margin:0;color:var(--muted)}.outline{border:1px solid #93a58d;background:transparent;border-radius:12px;min-height:48px;padding:10px 17px;font-size:12px;font-weight:bold;white-space:nowrap;margin-left:auto}.outline span{margin-left:13px;font-size:19px}footer{display:flex;justify-content:space-between;gap:20px;color:#72816d;font-size:11px;padding-block:35px 28px}footer>span:first-child{font-weight:bold}footer>span:first-child>span{margin-left:8px}
dialog{border:1px solid #e1e2d5;background:var(--paper);color:var(--ink);border-radius:28px;padding:0;box-shadow:0 25px 100px #1e332843}dialog::backdrop{background:#193d37a8;backdrop-filter:blur(5px)}body:has(dialog[open]){overflow:hidden}.lesson-dialog{width:min(970px,calc(100% - 40px));max-height:calc(100dvh - 40px);overflow:auto}.lesson-top{padding:22px 28px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line)}.lesson-top img{width:47px;height:47px;object-fit:cover;object-position:center 27%;border-radius:50%;border:2px solid white}.lesson-top .host-name{font-size:12px;color:var(--muted)}.lesson-top h2{font:normal 25px/1.25 var(--serif);margin:0}.close-button{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:#efeedd;font-size:29px;line-height:1;display:flex;align-items:center;justify-content:center;margin-left:auto}.lesson-steps{display:flex;justify-content:center;align-items:center;gap:18px;padding:20px 24px;font-size:12px;font-weight:bold;color:#65725c}.step-label{display:flex;gap:6px;align-items:center}.step-label.active{color:#245f4d}.step-label.active .step-dot{background:#2f735a;color:white}.step-dot{width:25px;height:25px;display:grid;place-items:center;background:#e7e9da;border-radius:50%;font-size:11px}.step-line{width:70px;height:1px;background:#d6ddc8}.lesson-body{padding:5px 35px 28px}.lesson-intro{text-align:center;margin-bottom:18px}.lesson-intro h3{font:normal 29px/1.3 var(--serif);margin:5px 0 6px}.lesson-intro p{font-size:13px;color:var(--muted);margin:0}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.word-card{border:1px solid #e1e3d5;border-radius:20px;background:#fffef8;padding:17px 14px 14px;text-align:center;position:relative;min-width:0}.word-art{height:110px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.word-art svg{width:100px;height:100px}.word-symbol{font-size:62px;line-height:1}.word-target{font-size:24px;font-weight:bold;line-height:1.7;margin:5px 0 0;overflow-wrap:anywhere}.word-meaning{font-size:15px;color:var(--muted);margin:0 0 8px;line-height:1.6}.listen{min-height:44px;min-width:44px;background:#eaf0e0;border-radius:50%;padding:9px;display:inline-flex;align-items:center;justify-content:center}.listen svg{width:20px;height:20px}.listen:disabled{opacity:.5;background:#e9e9df}.audio-status{font-size:11px;line-height:1.5;text-align:center;color:#72806e;min-height:17px;margin:13px 0}.lesson-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:22px}.secondary{min-height:48px;border:1px solid #c8d1b9;border-radius:12px;background:transparent;font-weight:bold;font-size:13px;padding:11px 18px}.quiz-box{max-width:720px;margin-inline:auto}.quiz-progress{display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px;margin:0 0 11px;color:var(--muted)}.quiz-prompt{text-align:center;font-size:clamp(28px,4vw,39px);line-height:1.6;font-weight:bold;margin:4px 0 17px;display:flex;align-items:center;justify-content:center;gap:14px;overflow-wrap:anywhere}.quiz-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.answer-card{position:relative;border:2px solid #dde1cf;border-radius:20px;background:#fffef8;padding:17px 8px 14px;font-size:14px;font-weight:bold;min-width:0;min-height:175px;line-height:1.6}.answer-card .word-art{height:95px}.answer-card .word-art svg{width:88px;height:88px}.answer-card.wrong{border-color:#ce925f;background:#fff0df}.answer-card.correct{border-color:#438168;background:#edf4dd}.answer-card:disabled{color:var(--ink);opacity:1}.answer-mark{position:absolute;right:8px;top:8px;border-radius:50%;width:25px;height:25px;background:#307355;color:white;display:grid;place-items:center}.quiz-feedback{font-size:14px;font-weight:bold;text-align:center;margin-top:16px;min-height:30px;line-height:1.7;color:#346e52}.quiz-feedback.retry{color:#91541d}.round-dots{display:flex;gap:7px;justify-content:center;margin:15px 0}.round-dot{height:8px;width:30px;border-radius:9px;background:#e0e5d3}.round-dot.current{background:#93ac70}.round-dot.done{background:#367958}.finished{text-align:center;padding:10px 20px 8px}.finished h3{font:normal 36px/1.3 var(--serif);margin:10px 0}.finished p{color:var(--muted);font-size:14px}.big-stars{color:#b28128;font-size:55px;letter-spacing:8px;line-height:1.5}.reward-note{font-size:13px;color:#677158;margin-top:8px}.learned-list{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px 0}.learned-list span{background:#edf0df;padding:7px 13px;border-radius:12px;font-size:13px}.parents-dialog{width:min(650px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:35px;overflow:auto}.parents-dialog>.close-button{float:right;margin-left:15px}.parents-dialog .eyebrow{padding-top:12px}.parents-dialog h2{font:normal 32px/1.3 var(--serif);margin:18px 0}.parents-dialog p{font-size:14px;color:var(--muted);line-height:1.75}.parent-notes{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:15px}.parent-notes b{font-size:14px}.parent-notes p{font-size:12px;margin:6px 0 0}.parents-dialog details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin:22px 0}.parents-dialog summary{cursor:pointer;font-size:13px;font-weight:bold;min-height:24px}.storage-message{font-size:11px;color:#8b651f;text-align:center;padding:5px 10px}.confetti{pointer-events:none;position:fixed;inset:0;overflow:hidden;z-index:30}.confetti span{position:absolute;top:-30px;font-size:25px;animation:fall 2s ease-in forwards}@keyframes fall{to{transform:translateY(95dvh) rotate(210deg);opacity:0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(min-width:1500px){.hero h1{font-size:59px}}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.hero{grid-template-columns:47% 53%;padding-block:55px 68px}.hero-copy{padding-right:22px}.hero h1{font-size:44px}.garden-art{height:360px;border-radius:65px 22px 65px 22px}.friend-grid{gap:13px}.friend-copy{padding:16px 14px 13px}.friend-image{height:185px}.art-caption{font-size:10px;padding:10px 13px;left:8%}.section-heading h2{font-size:29px}.site-header nav{gap:24px}.brand{font-size:22px}.hero-thai{font-size:18px}}
@media(max-width:760px){.wrap{width:calc(100% - 40px)}.site-header{min-height:85px;gap:12px}.brand{font-size:20px;gap:8px}.brand img{width:34px;height:34px}.brand small{font-size:6.5px;letter-spacing:1.3px;margin-top:6px}.site-header nav{gap:0}.site-header nav>a{display:none}.site-header nav button{font-size:11px;min-height:44px}.score-pill{padding:7px 12px;font-size:12px}.score-max{display:none}.score-pill>span:first-child{font-size:17px}.hero{grid-template-columns:1fr;padding-block:36px 55px;gap:34px}.hero-copy{padding:0;max-width:550px}.hero h1{font-size:47px;letter-spacing:-1.8px;margin:16px 0 9px}.hero-thai{font-size:20px;margin-bottom:14px}.hero-description{max-width:450px;margin-bottom:18px;font-size:14px}.hero-art{margin:0;padding:0 5px}.garden-art{height:auto;aspect-ratio:1.55;object-fit:cover;border-radius:60px 20px 60px 20px;border-width:5px}.hello-bubble{right:0;top:-9px;padding:10px 47px 10px 18px}.hello-bubble>span:first-child{font-size:18px}.hello-bubble small{font-size:10px}.bubble-hand{font-size:24px;right:15px;top:13px}.art-caption{font-size:10px;left:10%;bottom:-15px;padding:9px 15px}.spark-one{top:-5px;left:-7px;font-size:32px}.spark-two{right:-7px;font-size:31px}.section-heading{align-items:start;flex-direction:column;gap:13px;margin-bottom:24px}.section-heading h2{font-size:30px}.section-heading p{font-size:12px}.section-heading p br{display:none}.friend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 15px}.friend-image{height:220px;object-position:50% 29%}.friend-copy{padding:15px 16px}.friends-section{padding-bottom:38px}.promise{padding:22px;gap:15px;flex-wrap:wrap;border-radius:21px}.promise-flower{font-size:44px}.promise>div:nth-child(2){flex:1}.promise h2{font-size:23px}.promise p{font-size:12px}.promise .outline{margin-left:60px}footer{font-size:10px;flex-direction:column;gap:8px;padding-block:26px}.lesson-dialog{width:calc(100% - 22px);max-height:calc(100dvh - 22px);border-radius:22px}.lesson-top{padding:17px;gap:10px}.lesson-top h2{font-size:22px}.lesson-top img{width:42px;height:42px}.lesson-body{padding:0 18px 25px}.lesson-steps{padding:18px 15px;gap:12px}.lesson-intro h3{font-size:26px}.lesson-intro p{font-size:12px}.word-grid,.quiz-options{gap:10px}.word-card{padding:15px 7px 12px}.word-target{font-size:21px}.word-meaning{font-size:12px}.word-art{height:85px}.word-art svg{width:78px;height:78px}.word-symbol{font-size:47px}.answer-card{padding:14px 5px 12px;font-size:12px;min-height:150px}.answer-card .word-art{height:82px}.answer-card .word-art svg{width:75px;height:75px}.quiz-prompt{font-size:30px}.big-stars{font-size:45px}.finished h3{font-size:29px}.lesson-actions{gap:12px}.parents-dialog{padding:25px}.parents-dialog h2{font-size:28px}}
@media(max-width:420px){.wrap{width:calc(100% - 32px)}.brand{font-size:18px}.brand small{font-size:5.7px;letter-spacing:1px}.brand img{width:31px;height:31px}.site-header{gap:8px}.site-header nav button{font-size:10px}.score-pill{padding:7px 9px}.hero h1{font-size:42px;letter-spacing:-1.8px}.hero-thai{font-size:18px}.hero-cta{width:218px}.friend-grid{gap:16px 12px}.friend-image{height:184px}.friend-copy{padding:13px 12px}.friend-name h3{font-size:22px}.friend-button{font-size:12px;padding:9px 10px}.friend-copy p{font-size:11px;min-height:35px;margin-bottom:10px}.friend-stars small{font-size:9px}.section-heading h2{font-size:28px}.lesson-body{padding-inline:12px}.word-grid,.quiz-options{gap:7px}.word-card{padding:13px 5px 10px}.word-target{font-size:18px}.word-art svg{width:68px;height:68px}.word-meaning{font-size:11px}.lesson-top h2{font-size:20px}.quiz-options .word-symbol{font-size:40px}.answer-card{font-size:11px}.lesson-actions .primary{font-size:13px;padding:14px 17px;gap:13px}.lesson-actions .secondary{font-size:12px;padding:11px 14px}.step-line{width:38px}.parent-notes{grid-template-columns:1fr}.lesson-steps{font-size:11px}}

.music-section{padding:2rem 1.5rem;border-radius:1.5rem;background:#f3eddf;margin-top:2rem;margin-bottom:2rem}.music-section audio{display:block;width:min(100%,38rem);margin:.7rem 0}.thai-parent-notes{border-top:1px solid #ddd;margin-top:1.5rem;padding-top:1rem}#welcome-dialog{max-width:36rem}#welcome-dialog::backdrop{background:rgba(24,49,44,.6)}#welcome-dialog .text-button{display:block;margin:1rem auto}#welcome-dialog h2{margin-top:1rem}

/* Bilingual labels stay readable on narrow screens. */
.site-header nav{flex-wrap:wrap;gap:12px}.brand small{max-width:190px;white-space:normal}button{white-space:normal}.hero h1{font-size:clamp(2rem,4vw,3.8rem)}.parent-notes p{line-height:1.85}.parent-notes span[lang="th"]{display:inline-block;margin-top:6px}.friend-button span:first-child{overflow-wrap:anywhere}.lesson-steps{flex-wrap:wrap}.step-label{font-size:.8rem}.parents-dialog{max-height:88vh;overflow:auto}.language-control{flex-wrap:wrap}

[hidden]{display:none!important}.world-tabs{display:flex;gap:12px;padding:18px 0 0;max-width:650px}.world-tab{display:grid;grid-template-columns:38px 1fr;column-gap:10px;text-align:left;align-items:center;flex:1;padding:14px 20px;background:#f0eddf;border:1px solid #dfdfce;border-radius:20px;color:#445a49;min-height:85px}.world-tab>span{grid-row:span 2;font-size:30px}.world-tab b{font-size:17px}.world-tab small{font-size:14px}.world-tab.active{background:#245d49;color:#fff;border-color:#245d49;box-shadow:0 5px 0 #c9d6b4}.music-world{padding-block:35px 50px}.world-heading{text-align:center;max-width:700px;margin:auto}.world-heading h1{font:normal clamp(36px,5vw,60px)/1.25 var(--serif);margin:20px 0}.world-heading h1 span{font:normal .65em/1.8 var(--sans)}.world-heading p{line-height:1.9;color:var(--muted)}.music-art{max-width:850px;margin:30px auto;position:relative}.music-art img{width:100%;border-radius:35px;display:block}.music-art>span{position:absolute;bottom:-15px;right:20px;background:#edc75c;color:#294f40;font-size:55px;border-radius:25px;padding:0 25px;transform:rotate(8deg)}.music-world .music-section{width:100%;margin:35px auto;max-width:850px;padding:25px}.music-world .music-section audio{width:100%;max-width:none}.youtube-card{display:flex;gap:20px;align-items:center;justify-content:space-between;background:#fff3de;padding:25px;border-radius:24px;max-width:850px;margin:auto}.youtube-card h2{font-size:23px}.youtube-card p{line-height:1.8}.music-world>.micro{text-align:center;line-height:1.9}.story-library{padding-bottom:45px}.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.story-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #e4dfc9;border-radius:25px;background:white;text-align:left;padding:0;color:var(--ink);transition:transform .15s}.story-card:hover{transform:translateY(-4px)}.story-card>img{width:100%;height:210px;object-fit:cover;object-position:50% 25%}.story-card>div{padding:20px}.story-number{color:#7c8d69;letter-spacing:3px;font-size:12px}.story-card h3{font:normal 27px/1.3 var(--serif);margin:9px 0}.story-card p{font-size:16px;margin:5px 0 16px}.story-card div>span:last-child{font-size:14px;line-height:1.8;font-weight:bold}.story-dialog{padding:0;width:min(850px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:0;border-radius:26px;overflow:auto;background:#fffaf0;color:var(--ink)}.story-close{position:absolute;top:15px;right:15px;z-index:2;background:#fff}.story-stage{position:relative;background:#e1ead7;height:270px;overflow:hidden}.story-stage>img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;filter:brightness(.96)}.story-object{position:absolute;bottom:16px;right:20px;background:#fffae9;border-radius:24px;width:115px;height:115px;padding:10px;box-shadow:0 5px 20px #18302222}.story-object svg,.story-object img{width:100%;height:100%}.story-reading{padding:25px 32px 30px}.story-reading h2{font-size:clamp(23px,4vw,33px);line-height:1.45}.story-reading>p[lang=th]{font-size:24px;line-height:1.9;color:#45644e}.story-actions{display:flex;gap:15px;justify-content:space-between;margin-top:25px}.story-actions button{min-height:48px}.site-header nav{gap:10px}.hero{padding-block:40px 60px}.hero h1 span[lang=th]{font-family:var(--sans);font-size:.65em;letter-spacing:0}.hero-description,.hero-note{line-height:1.85}.friend-copy p{line-height:1.8}.friend-button{min-height:58px;line-height:1.5}.lesson-steps{gap:8px}.step-line{width:15px}.step-label{white-space:normal;line-height:1.5}.lesson-actions{flex-wrap:wrap}.lesson-top h2{line-height:1.6}.parent-notes p{font-size:14px}.world-tab:focus-visible,.story-card:focus-visible{outline:3px solid #bc791e;outline-offset:4px}@media(max-width:760px){.world-tabs{width:calc(100% - 32px);position:sticky;top:0;z-index:5;background:#fffaf0;padding:10px 0}.world-tab{padding:10px 12px;min-height:76px;grid-template-columns:27px 1fr;column-gap:6px}.world-tab b{font-size:14px}.world-tab small{font-size:13px}.world-tab>span{font-size:24px}.story-grid{grid-template-columns:1fr}.story-card{flex-direction:row}.story-card>img{width:35%;height:auto;min-height:200px}.story-card>div{flex:1}.youtube-card{flex-direction:column;align-items:flex-start}.story-stage{height:210px}.story-reading{padding:18px}.story-reading>p[lang=th]{font-size:21px}.story-actions{flex-wrap:wrap}.world-heading .eyebrow{font-size:10px;line-height:1.8}.site-header{flex-wrap:wrap}.parent-notes{grid-template-columns:1fr}}
/* Phone layouts: allow every bilingual flex/grid child to shrink naturally. */
:root{--sans:var(--round)}
html,body{max-width:100%;width:100%}
main,section,article,nav,.hero-copy,.hero-art,.section-heading>*,.friend-copy,.story-card>div,.world-tab>*{min-width:0}
img,svg,audio{max-width:100%}
h1,h2,h3,p,button,a{overflow-wrap:break-word}
.world-tabs{width:min(650px,calc(100% - 32px))}
.story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.story-card{text-wrap:pretty}
.parent-notes,.word-grid,.quiz-options{min-width:0}
@media(max-width:760px){
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-block:14px;min-height:0}
 .site-header .brand{grid-column:1;grid-row:1}.site-header .score-pill{grid-column:2;grid-row:1}
 .site-header nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;min-width:0}
 .site-header nav button{font-size:13px;text-align:left;line-height:1.7;padding:4px 0}
 .brand small{font-size:8px;letter-spacing:.5px;max-width:220px}
 .world-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .world-tab{width:100%;min-width:0}.world-tab b,.world-tab small{overflow-wrap:anywhere}
 .hero h1{font-size:clamp(30px,8vw,46px);letter-spacing:-.7px}
 .hero-description{font-size:16px}.hero-note{font-size:12px}
 .hero-cta{width:100%;max-width:310px}.language-control{display:grid;grid-template-columns:1fr;width:100%;max-width:360px}
 .language-option{width:100%;min-height:48px;justify-content:flex-start;white-space:normal}
 .story-grid{grid-template-columns:minmax(0,1fr)}
 .story-card>img{min-width:0;max-width:35%;object-fit:cover}.story-card>div{padding:16px}
 .story-card h3{font-size:24px}.story-card p{font-size:16px}
 .friend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .friend-button{display:flex;gap:6px;font-size:13px;padding:10px 8px}
 .friend-copy p{font-size:14px;min-height:0}.friend-stars{flex-wrap:wrap}.friend-stars small{width:100%;font-size:11px}
 .art-caption{position:static;margin:8px auto 0;max-width:100%;white-space:normal;text-align:center;line-height:1.7}
 .hello-bubble{max-width:80%;font-size:14px}.hello-bubble small{font-size:11px}
 .promise .outline{margin-left:0;width:100%}.promise h2{line-height:1.6}
 .music-world .music-section{padding:18px}.music-section h2{line-height:1.6}
 .lesson-top{align-items:flex-start}.lesson-top>div{min-width:0;flex:1}.lesson-top h2{font-size:20px;overflow-wrap:anywhere}
 .lesson-steps{flex-wrap:wrap;justify-content:center}.step-label{font-size:12px}.step-line{width:8px}
 .lesson-actions button{flex:1 1 130px;justify-content:center;line-height:1.6}
 .parents-dialog{padding:20px}.parents-dialog h2{font-size:25px;line-height:1.6}
 .story-actions button{flex:1 1 120px;justify-content:center;font-size:14px;padding:12px}
 .story-reading h2{font-size:24px}.story-reading>p[lang=th]{font-size:22px}
}
@media(max-width:360px){.friend-grid{grid-template-columns:minmax(0,1fr)}.word-grid,.quiz-options{grid-template-columns:minmax(0,1fr)}.word-card{display:block}.world-tab{grid-template-columns:1fr;text-align:center}.world-tab>span{grid-row:auto}.story-card>img{max-width:30%}.brand{font-size:17px}.world-heading h1{font-size:32px}}
.motto-preview{margin-top:24px;margin-bottom:32px;padding:clamp(20px,4vw,42px);background:#fff3d6;border:1px solid #ecdba9;border-radius:28px}.motto-heading h1{font-size:clamp(32px,5vw,54px);line-height:1.2;margin:12px 0}.motto-heading p{margin:12px 0 26px}.motto-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:30px;align-items:start}.motto-layout>div{min-width:0}.motto-player{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:18px;background:#224b40}.motto-player img{display:block;width:100%;height:100%;object-fit:cover}.motto-player button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:95%;width:max-content;white-space:normal;box-shadow:0 3px 20px #183a3a55}.motto-player iframe{display:block;width:100%;height:100%;border:0}.motto-copy h2{font-size:25px;line-height:1.5;margin:0 0 15px}.motto-copy p{font-size:16px;line-height:1.85}.review-note{font-size:13px!important;color:#645d46}.preview-paths{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}.preview-paths button{justify-content:center;white-space:normal;min-height:52px}.preview-review{border-top:1px solid #ddcca2;margin-top:24px;padding-top:16px;font-size:14px}.preview-review summary{cursor:pointer;font-weight:700;min-height:40px}.motto-layout a{overflow-wrap:anywhere}@media(max-width:760px){.motto-layout{grid-template-columns:1fr;gap:22px}.motto-preview{border-radius:20px;margin-top:12px}.motto-heading h1{font-size:34px}.motto-player button{font-size:14px;padding:12px 16px}.preview-paths{grid-template-columns:1fr 1fr}.preview-paths button{display:block;padding:12px;font-size:14px}.preview-paths span{display:block}}@media(max-width:360px){.preview-paths{grid-template-columns:1fr}.motto-preview{padding:16px}.motto-heading h1{font-size:29px}}
.art-caption{max-width:90%;white-space:normal;overflow-wrap:anywhere}
.motto-player button,.motto-player button:active{inset:0;margin:auto;transform:none;height:fit-content;z-index:1;scroll-margin-top:180px}.motto-heading h1 span{display:none}
.friend-intro{display:block;width:100%;height:100%;padding:0;background:transparent;position:relative;text-align:left}.friend-intro .friend-image{display:block}.intro-play{position:absolute;bottom:14px;left:10px;right:10px;background:#224b40ed;color:#fff;border:1px solid #ffffff88;padding:10px 12px;border-radius:14px;text-align:center;font-size:16px;line-height:1.4}.intro-play small{display:block;font-size:12px;font-weight:400}.intro-dialog{border:0;border-radius:22px;padding:20px;width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#fffaf0;color:#264e43}.intro-dialog::backdrop{background:#17392cbf}.intro-dialog h2{font-size:21px;padding-right:28px;line-height:1.4;margin:5px 0 14px}.intro-player{aspect-ratio:9/16;max-height:58dvh;margin:auto;background:#183b31;border-radius:12px;overflow:hidden}.intro-player iframe{display:block;width:100%;height:100%;border:0}.intro-dialog a{display:inline-block;padding:8px 0;text-decoration:underline}.intro-dialog .close-button{position:absolute;top:10px;right:10px}
.app-install-help{position:relative}.app-install-help ol{padding-left:22px}.app-install-help li{margin:14px 0}.app-install-help h3{font-size:20px}.install-app-button{font-weight:700!important;text-decoration:underline!important;text-underline-offset:4px}
.motto-heading h1 .motto-thai-title{display:block;font-size:.72em;line-height:1.5;margin-top:10px}.friend-thai-name{display:block;font:inherit;font-size:.8em;line-height:1.7}.app-install-help [lang=th]{font-size:16px;line-height:1.9}.app-install-help [lang=en]{font-size:16px;line-height:1.75}.app-install-help h2 span{font-size:inherit}.app-install-help h3{line-height:1.7}.app-install-help summary{line-height:1.8;cursor:pointer}.site-header nav{flex-wrap:wrap}.preview-review p[lang=th]{font-size:15px;line-height:1.9}
/* Story first: adventure identity with existing artwork, no fabricated episode links. */
.adventure-home{margin-top:24px;margin-bottom:48px}.adventure-kicker{font-size:13px;font-weight:800;letter-spacing:1px;margin-bottom:24px;color:#577367}.adventure-opening{display:grid;grid-template-columns:1.1fr 1fr;gap:38px;align-items:center}.adventure-opening h1{font-size:clamp(32px,4.5vw,58px);line-height:1.35;margin:16px 0;color:#264e43}.adventure-en{font-size:.72em;font-weight:600;color:#66765b}.adventure-lead{font-size:17px;line-height:1.85;max-width:660px}.adventure-opening .primary{margin-top:12px}.adventure-picture{position:relative;min-width:0}.adventure-picture>img{width:100%;height:auto;border-radius:44% 44% 20px 20px;display:block;border:8px solid #f4e7c8}.adventure-picture>p{background:#eef1df;padding:18px;border-radius:16px;text-align:center;font-size:16px;line-height:1.8}.mystery-emblem{width:100px;height:100px;background:#c28b58;border:5px solid #e9c491;border-radius:20px;position:absolute;right:7%;top:45%;transform:rotate(-9deg);box-shadow:0 10px 24px #264e4320;text-align:center}.mystery-emblem span{position:absolute;font-size:72px;color:#f8cf59;top:-65px;left:14px}.mystery-emblem b{display:block;font-size:54px;color:#fff6db}.adventure-doors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:32px 0 52px}.adventure-doors a,.adventure-doors button{background:#f1eddf;color:#264e43;border:1px solid #e3ddca;border-radius:18px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:20px;font-size:20px;text-decoration:none;min-width:0}.adventure-doors b{font-size:17px}.adventure-doors span{font-size:14px}.adventure-doors a:hover,.adventure-doors button:hover{background:#e5edda}.main-adventure.wrap{width:100%;padding:clamp(20px,4vw,40px);border-radius:26px;background:#eaf0e4;margin:0}.main-adventure h2{font-size:clamp(25px,3vw,36px);line-height:1.55;max-width:900px}.main-adventure>p{line-height:1.9;max-width:900px}.journey-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0}.journey-grid article{background:#fffaf0;border-radius:18px;padding:22px;min-width:0}.journey-symbol{font-size:36px;color:#a87922}.journey-grid h3{font-size:19px;line-height:1.6}.journey-grid p{font-size:15px;line-height:1.85}.adventure-status{background:#fff5d9;border:1px solid #ead6a4;border-radius:14px;padding:16px;font-size:14px;line-height:1.85;margin-top:22px}.main-story-dialog{position:relative}.main-story-dialog h2{line-height:1.6;font-size:25px}.main-story-dialog p{line-height:1.9}.opening-symbol{font-size:64px;text-align:center;color:#b08425;padding:16px}.main-story-dialog .story-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.adventure-home [lang=th]{line-height:1.85}#friends,#word-play,#main-adventure{scroll-margin-top:24px}
@media(max-width:900px){.adventure-opening{grid-template-columns:1fr;gap:24px}.adventure-picture{max-width:620px}.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.adventure-doors{grid-template-columns:repeat(2,minmax(0,1fr))}.adventure-picture>img{border-radius:24px}.adventure-opening h1{font-size:38px}}
@media(max-width:480px){.adventure-home{margin-top:14px}.adventure-opening h1{font-size:31px}.adventure-lead{font-size:16px}.adventure-doors{gap:8px;margin-bottom:32px}.adventure-doors a,.adventure-doors button{padding:14px;overflow-wrap:anywhere}.adventure-doors b{font-size:16px}.journey-grid{grid-template-columns:1fr}.journey-grid article{padding:18px}.main-adventure h2{font-size:24px}.adventure-opening .primary{width:100%;white-space:normal}.mystery-emblem{width:70px;height:70px}.mystery-emblem span{font-size:54px;top:-50px;left:5px}.mystery-emblem b{font-size:38px}.main-story-dialog .story-actions button{flex:1 1 120px;font-size:14px;white-space:normal}}
.music-video-card{background:#fff3d6;border:1px solid #ead6a4;padding:clamp(18px,4vw,32px);border-radius:24px;margin:24px 0}.music-video-card h2{font-size:clamp(24px,4vw,36px);line-height:1.6}.music-video-card p{line-height:1.85}.music-video-player{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#264e43;margin:22px 0}.music-video-player>img,.music-video-player>iframe{display:block;width:100%;height:100%;object-fit:cover;border:0}.music-video-player>button{position:absolute;inset:0;margin:auto;width:fit-content;height:fit-content;max-width:95%;white-space:normal;text-align:center}.music-video-card a{display:inline-flex;white-space:normal}#music-library>.primary{margin:12px 0}@media(max-width:480px){.music-video-player>button{font-size:14px;padding:12px}.music-video-card{padding:16px}.music-video-card h2{font-size:24px}}
