@charset "UTF-8";
:root{font-family:ui-rounded,"SF Pro Rounded",system-ui,-apple-system,"Segoe UI",sans-serif;color:#243e37;background:#f8f5eb;font-synthesis:none;--green:#246550;--muted:#587065}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 6%,#dfebce 0,transparent 42%),radial-gradient(ellipse at 100% 65%,#ffead6 0,transparent 48%),#f8f5eb;min-height:100vh;min-height:100dvh}button,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer;border:0}button:focus-visible,summary:focus-visible{outline:4px solid #8656bc;outline-offset:4px}[hidden]{display:none!important}.shell{max-width:760px;margin:auto;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.brand{display:flex;align-items:center;gap:10px;margin-bottom:24px}.brand-icon{display:grid;place-items:center;width:48px;height:48px;background:#fff;border-radius:17px;font-size:27px}.brand p{margin:2px 0 0;font-weight:750;font-size:17px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#536e55}.badge{margin-left:auto;background:#e3ecd9;padding:8px 11px;border-radius:25px;font-size:12px;white-space:nowrap}.panel{background:#fffdf8;border:1px solid #e9e7d9;border-radius:30px;padding:28px 24px;text-align:center;box-shadow:0 16px 48px #4656300c}h1{font-size:clamp(27px,6vw,40px);letter-spacing:-1.2px;line-height:1.2;margin:16px 0 12px}h1:focus{outline:none}.lead{font-size:16px;color:var(--muted);line-height:1.6;margin:0 0 20px}.garden{position:relative;display:flex;justify-content:center;align-items:center;gap:8px;min-height:150px;margin:0 auto 20px;background:linear-gradient(180deg,#edf3de,#e9f1df);border-radius:100px 100px 45px 45px;max-width:380px}.garden span{font-size:64px;filter:drop-shadow(0 9px 0 #52663710)}.garden span:nth-child(2){transform:translateY(-10px)}.garden i{position:absolute;right:22px;top:18px;color:#b78523;font-size:24px}.steps{list-style:none;padding:0;display:grid;gap:12px;margin:25px auto;text-align:left;max-width:265px;font-size:15px}.steps span{display:inline-grid;place-items:center;width:34px;height:34px;background:#f2f1e8;border-radius:12px;margin-right:10px}.primary{background:var(--green);color:white;min-height:56px;border-radius:18px;padding:15px 24px;font-weight:750;width:100%;max-width:360px;box-shadow:0 4px 0 #194836}.primary:hover{background:#1c5542}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #194836}.primary span{margin-left:12px}.small{font-size:12px;line-height:1.5;color:var(--muted);margin:17px 0 0}.round-top{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700}.text-button{background:transparent;color:#3c6353;min-height:48px;padding:10px 12px;text-decoration:underline;text-underline-offset:4px}.progress{display:flex;gap:8px;margin:10px 0 25px}.progress span{height:8px;flex:1;border-radius:8px;background:#e5e9dc}.progress .done{background:#589571}.progress .current{background:#e9b961}.listen{display:inline-flex;align-items:center;gap:12px;background:#f9e8ab;color:#493c18;border:2px solid #ecd78b;border-radius:22px;padding:14px 30px;min-height:64px;font-weight:800;font-size:20px}.listen span{font-size:28px}.listen:active{background:#f2da83}#audio-status{min-height:36px;margin:12px 0 0}details{text-align:left;font-size:13px;color:var(--muted);line-height:1.6}summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;list-style-position:inside}#hint{max-width:380px;margin:0 auto 18px;background:#f5f4ec;padding:0 12px;border-radius:12px}#hint p{margin:0 0 10px}#hint-word{font-size:24px;color:#243e37}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.animal{position:relative;min-width:0;min-height:150px;aspect-ratio:1/1.12;border:2px solid #e6e6d8;background:#f1f4e7;border-radius:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;color:#324c40;box-shadow:0 5px 0 #dedfd1}.animal:nth-child(2){background:#fef0de}.animal:nth-child(3){background:#eeedf8}.animal .emoji{font-size:clamp(45px,12vw,78px);line-height:1.2}.animal .label{font-size:14px;font-weight:700}.animal:hover{border-color:#7da98b}.animal.correct{border-color:#347651;background:#e1f1d9;box-shadow:0 5px 0 #b7d0ac}.animal.correct:after{content:'✓';position:absolute;right:7px;top:5px;color:#246550;font-weight:900;font-size:23px}.animal[aria-disabled=true]{cursor:default}.feedback-area{min-height:126px;padding-top:10px}#feedback{font-weight:700;min-height:26px;font-size:16px;line-height:1.5;margin:12px 0 16px}.bouquet{font-size:65px;letter-spacing:-10px;margin:20px 0 28px}.learned{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:25px 0}.learned span{background:#edf1e4;border-radius:14px;padding:10px 12px;font-weight:650}.break-note{font-size:15px;line-height:1.7;margin:24px 0;color:var(--muted)}.complete .text-button{display:block;margin:10px auto 0}footer{text-align:center;font-size:12px;color:#6b7768;padding:24px 10px 0}footer details{margin-top:12px}footer summary{text-align:center}footer p{max-width:550px;margin:8px auto 15px}button{transition:background .15s,transform .15s}@media(max-width:380px){.shell{padding-left:12px;padding-right:12px}.panel{padding:22px 14px}.brand{gap:7px}.brand p{font-size:15px}.eyebrow{font-size:9px}.badge{font-size:10px;padding:7px 9px}.choices{gap:8px}.animal{min-height:126px;border-radius:18px}.animal .label{font-size:12px}.garden span{font-size:59px}}@media(orientation:landscape) and (max-height:550px){.shell{max-width:860px}.brand{margin-bottom:12px}.panel{padding:18px 24px}.garden{min-height:90px;max-width:300px}.garden span{font-size:48px}.choices{max-width:510px;margin:auto}.animal{min-height:120px;aspect-ratio:auto}.animal .emoji{font-size:52px}.progress{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}.category{padding:14px 5px;border:2px solid #d1dccc;border-radius:16px;background:#f4f6ed;color:#243e37;font-weight:750;min-height:76px}.category small{display:block;margin-top:6px;font-weight:500}.category[aria-pressed=true]{border-color:#246550;background:#e0efd9;box-shadow:0 3px 0 #a7c299}.swatch{display:block;width:clamp(44px,13vw,78px);height:clamp(44px,13vw,78px);border:2px solid #667066;border-radius:16px}.animal .label{max-width:100%;overflow-wrap:anywhere;padding:0 3px}.mini-swatch{display:inline-block;width:20px;height:20px;border:2px solid #667066;border-radius:5px;margin-left:8px;vertical-align:middle}.progress{gap:5px}

/* Grid items must fit narrow phone columns, not derive width from min-height. */
.animal{width:100%;aspect-ratio:auto}

.feedback-face{display:block;font-size:56px;line-height:1.15;margin:10px auto 0}

.learning-path{max-width:500px;margin:0 auto 22px;padding:15px 16px;text-align:left;border:1px solid #dce7d3;border-radius:18px;background:#f0f6e9}.learning-path>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}.learning-path strong{font-size:15px}.learning-path #xp-count{padding:6px 10px;border-radius:20px;background:#fff0c5;color:#70561c;font-size:12px;font-weight:800;white-space:nowrap}.learning-path p{margin:9px 0;color:var(--muted);font-size:13px;line-height:1.5}.path-categories{display:flex;flex-wrap:wrap;gap:6px}.path-chip{padding:6px 9px;border-radius:15px;background:#fff;color:#566254;font-size:11px;font-weight:700}.path-chip.done{background:#dcefd9;color:#246550}
.age-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:500px;margin:20px auto 4px}.age-title{grid-column:1/-1;margin:0 0 3px;color:#536e55;font-size:13px;font-weight:800;text-align:left}.age-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:66px;padding:10px 12px;border:2px solid #d1dccc;border-radius:15px;background:#fff;color:#243e37;text-align:left}.age-choice[aria-pressed=true]{border-color:#246550;background:#e0efd9;box-shadow:0 3px 0 #a7c299}.age-choice strong{font-size:14px}.age-choice span{font-size:11px;color:#587065}

.learning-path{max-width:560px}.learning-path>div:first-child strong{font-size:17px}.learning-path>p{font-size:13px}.path-categories{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.path-node{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;width:100%;min-height:58px;padding:8px 12px;border:1px solid #dce4d6;border-radius:15px;background:#fff;color:#334a3d;text-align:left}.path-node:hover:not(:disabled){border-color:#79a688;background:#f8fbf4}.path-node .node-icon{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#edf2e8;font-size:19px;font-weight:900}.path-node .node-title{font-size:14px;font-weight:800}.path-node small{margin-top:3px;color:#66786a;font-size:11px}.path-node.done .node-icon{background:#dcefd9;color:#246550}.path-node.selected{border:2px solid #246550;background:#f2f8ed}.path-node.locked{opacity:.62;cursor:not-allowed}.path-node.locked .node-icon{background:#f0f0eb;font-size:16px}.path-node:disabled{color:#66786a}

/* Four themes retain generous phone touch targets. */
.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.animal-art{width:clamp(45px,12vw,78px);height:clamp(45px,12vw,78px);object-fit:contain}.learned .learned-art{width:28px;height:28px;vertical-align:middle}.learned span span{padding:0;background:none}

.offline-note{max-width:560px;margin:12px auto;color:#587065;font-size:12px;line-height:1.6;text-align:center}

/* Garden UI overlay: no dependencies, fonts, network calls or gameplay changes. */
:root{--green:#245c40;--muted:#4d6257;color:#203e30;background:#f5f6ed}
body{background:radial-gradient(ellipse at 0 0,#dbeacb,transparent 50%),radial-gradient(ellipse at 100% 70%,#fce8c9,transparent 50%),#f5f6ed;overflow-wrap:break-word}
.shell{max-width:800px;padding:max(16px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
.brand{gap:10px;margin-bottom:18px;flex-wrap:wrap}.brand>div{flex:1;min-width:0}.brand p{font-size:clamp(16px,4.5vw,21px)}.brand-icon{background:#245c40;border:2px solid #d3e4b9;width:48px;height:48px;border-radius:18px}.eyebrow{color:#46623c;letter-spacing:1.4px}.badge{background:#e4edcf;color:#344b2c;font-size:12px;white-space:normal;text-align:center}
.panel{border-radius:28px;padding:24px 18px;border:1px solid #dbe3d1;box-shadow:0 12px 36px #24462b0b;background:#fffef9}
h1{font-size:clamp(28px,6vw,40px);letter-spacing:-.7px}.lead{font-size:16px;line-height:1.65}.garden{min-height:110px;max-width:340px;margin-bottom:16px;background:linear-gradient(#edf5dd 65%,#dbe9bf 65%);border:1px solid #dde8cc;border-radius:90px 90px 28px 28px}.garden span{font-size:50px}.garden i{font-style:normal;color:#8a6119}.steps{max-width:420px;gap:8px;margin:20px auto;font-size:14px}.steps span{background:#eaf0dd;margin-right:6px}
.categories{gap:12px;margin:20px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.category{min-width:0;min-height:100px;padding:14px 8px;background:#f3f6e9;color:#203e30;border:2px solid #d8e3c8;border-radius:20px;line-height:1.5;box-shadow:0 3px 0 #e0e6d5}.category:nth-child(2){background:#fff4d9}.category:nth-child(3){background:#fff0e5}.category:nth-child(4){background:#eaf4f5}.category small{font-size:13px;color:#4d6257}.category[aria-pressed=true]{background:#e0efd4;border-color:#245c40;box-shadow:0 3px 0 #245c40}.category[aria-pressed=true] small:after{content:' · Đã chọn';font-weight:750}
.primary{min-height:56px;max-width:100%;font-size:16px;line-height:1.5;padding:14px 18px;border-radius:18px}.small,details,footer,.offline-note{font-size:14px;color:#4d6257}.small{margin-top:14px}.round-top{gap:8px;align-items:center;flex-wrap:wrap}.round-top #counter{flex:1;min-width:100px;text-align:left;line-height:1.5}.text-button{color:#245c40;font-weight:700;min-height:48px}.progress{gap:5px;margin:12px 0 20px}.progress span{height:9px;background:#e2e8d9}.progress .done{background:#34734b}.progress .current{background:#b77914}
.listen{min-height:64px;border-radius:20px;background:#fff0bb;border-color:#d4b65d;color:#463914;font-size:20px}.choices{gap:10px}.animal{min-width:0;min-height:144px;padding:12px 5px;border-radius:20px;background:#eff5e6;border-color:#d5dfc9;color:#203e30;aspect-ratio:auto}.animal .label{font-size:15px;line-height:1.45;overflow-wrap:anywhere}.animal .emoji{font-size:clamp(42px,12vw,76px)}.animal-art{width:clamp(42px,12vw,76px);height:clamp(42px,12vw,76px)}.animal.correct{background:#ddedcf;border-color:#245c40}.animal.correct:after{background:#245c40;color:white;border-radius:50%;font-size:17px;width:25px;height:25px;display:grid;place-items:center}.feedback-area{min-height:120px}.feedback-face{font-size:42px}#feedback{line-height:1.65}#hint{max-width:100%;background:#f1f3e9;margin-bottom:18px}summary{min-height:48px;padding:12px 0}.learned>span{font-size:15px;background:#eaf1df}.learned span span{background:none;padding:0}.bouquet{font-size:56px}.break-note{font-size:16px}footer{padding-top:20px}footer details{background:#eef1e5;border-radius:18px;padding:0 14px}footer p{line-height:1.7}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #6740a0;outline-offset:4px}button{touch-action:manipulation}button:disabled{cursor:not-allowed}.path-node.locked{opacity:1;background:#f1f2ed}.path-node.locked small{color:#536052}.age-choice span{font-size:13px}.mode-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.mode-choice{border:2px solid #d5dfc9;border-radius:16px;background:#fffdf5;color:#203e30;min-height:52px;padding:12px;font-weight:750}.mode-choice[aria-pressed=true]{background:#e0efd4;border-color:#245c40}.sentence-slot{margin-top:20px}.sentence-tokens{display:flex;flex-wrap:wrap;gap:10px}.sentence-token{min-height:48px;padding:12px 16px;border:2px solid #cddbc0;border-radius:14px;color:#203e30;background:#fffdf5}.sentence-answer{min-height:72px;padding:12px;background:#edf4e4;border:2px dashed #72935e;border-radius:18px}
@media(min-width:600px){.panel{padding:32px}.intro .categories{grid-template-columns:repeat(4,minmax(0,1fr))}.garden{min-height:130px}.choices{gap:16px}.animal{min-height:190px}.primary{max-width:480px}}
@media(max-width:359px){.shell{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.panel{padding:20px 12px}.badge{flex-basis:100%;margin:0 0 0 58px;width:fit-content;flex-grow:0}.choices{grid-template-columns:1fr;gap:10px}.animal{flex-direction:row;justify-content:flex-start;min-height:86px;padding:10px 20px;gap:20px}.animal .label{font-size:17px;text-align:left}.animal .emoji{font-size:44px}.animal-art{width:48px;height:48px}.swatch{width:48px;height:48px;flex-shrink:0}.category{font-size:15px}.garden span{font-size:44px}.mode-picker{grid-template-columns:1fr}}
@media(orientation:landscape) and (max-height:550px){.panel{padding:18px}.garden{min-height:80px}.garden span{font-size:38px}.animal{min-height:112px}.animal .emoji{font-size:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.path-node{min-height:88px}.path-node small{line-height:1.4}.sentence-launch{margin:14px 0;width:100%;min-height:52px}.level-label{font-weight:bold;color:#28633a}
