/* Learn & Earn: one warm, clear family identity. Purchased child themes keep their scenery. */
:root{--brand:#164e45;--apricot:#f2ad72;--cream:#f7f5ef;--r-s:10px;--r-m:12px;--r-l:16px;--r-xl:20px;--sh-1:0 2px 6px #164e4507;--sh-2:0 6px 18px #164e4510;--sh-3:0 12px 35px #164e4518}
body{font-family:'Rubik','Segoe UI',sans-serif}
body:not([data-theme]),body[data-theme="candy"],body[data-theme=""],body.family-page{--bg:#f7f5ef;--violet:#164e45;--violet-600:#28675b;--violet-300:#dbe9e2;--violet-50:#edf3ef;--pink:#c17743;--ink:#173d36;--ink-2:#56675f;--ink-3:#6e7972;--field:#f4f5ef;--card:#fff;--card-edge:#e2e5dc;--green:#164e45;--amber:#aa602b}
body:not([data-theme])>.bg,body[data-theme="candy"]>.bg,body[data-theme=""]>.bg,body.family-page>.bg{display:none}
.logo,.adventure-copy h1,.collection-hero h2,.collection-card strong,.character-preview h2{font-family:inherit;font-weight:700;letter-spacing:-.6px}
.btn,.txt,.iconbtn,.chip{border-radius:11px}.btn.green{background:#164e45;color:#fff;box-shadow:0 2px 0 #0c362f}.btn.grey{background:#f3f4ee;color:#244b42;border:1px solid #e0e5dc;box-shadow:none}.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #d68b51;outline-offset:3px}
.card,.qcard,.world,.collection-card,.modal-sheet,.sheet{border-radius:16px;box-shadow:var(--sh-1)}
.topbar .who,.statstrip{border-radius:13px}.navbar,.tabbar{box-shadow:none}.world-emblem{border-radius:12px}.world-0{background:var(--card)}.world-3{--world:#617960}.world-4{--world:#426f75}
.adventure-banner{border-radius:18px;min-height:220px;background:#164e45;padding:24px}.adventure-banner::after{background:#245e53}.adventure-copy h1{font-size:clamp(27px,4vw,38px)}.adventure-copy h1 em{color:#f2ad72}.journey-cta{background:#f2ad72;box-shadow:0 3px 0 #ca8654;color:#173d36}.floating-star{color:#f2ad72}
.collection-hero{border-radius:18px;background:#164e45;padding:22px}.collection-wallet{background:#fbeddd;color:#8c522e}.collection-stage::before{border-radius:16px}.theme-preview{border-radius:14px}.preview-stage{border-radius:16px}
#welcomeScreen,#familyPage,#familyPage.setup-page{background:#f7f5ef;color:#173d36}.welcome-logo{filter:none}.welcome-kicker{color:#68776e}.welcome-tagline{color:#56675f}#welcomeScreen h1 span{color:#164e45}.welcome-loader i{background:#f2ad72}
.family-shell{max-width:1100px;margin:auto;padding:24px 28px 100px}.family-brand{letter-spacing:0;gap:10px;color:#164e45}.family-brand img{width:46px;height:46px}.family-brand>span{font-size:21px;font-weight:700;line-height:1.1}.family-brand small{display:block;font-size:10px;font-weight:500;letter-spacing:1.8px;margin-top:5px;direction:ltr}.family-shell h1{font-weight:750;letter-spacing:-.7px}.family-shell header{align-items:center}
#familyPage .pd-card,#familyPage .pd-metric{background:#fff;color:#173d36;border:1px solid #e0e4dc;box-shadow:none;border-radius:16px}.parent-dashboard{color:#173d36}.parent-dashboard .pd-hero{background:#f7f5ef;color:#164e45;border:0;border-radius:0;min-height:0;padding:22px 0}.parent-dashboard .pd-hero h1{color:#164e45}.pd-hero-mark{display:none}.parent-dashboard .pd-kicker,.parent-dashboard .muted,.parent-dashboard small{color:#68786e}.pd-nav{margin:10px 0 0;display:flex;align-items:center;justify-content:space-between}.parent-space-label{font-size:13px;color:#64776c}.parent-menu{position:relative;z-index:15}.parent-menu summary{display:flex;gap:7px;align-items:center;cursor:pointer;list-style:none;min-height:44px;font-size:13px}.parent-menu summary::-webkit-details-marker{display:none}.parent-menu .family-actions{position:absolute;inset-inline-end:0;top:40px;background:white;border:1px solid #dce2d8;box-shadow:0 10px 35px #173d361a;border-radius:14px;padding:12px;width:min(300px,80vw);display:flex;flex-direction:column;align-items:stretch}.parent-menu:not([open]) .family-actions{display:none}.parent-menu small{overflow-wrap:anywhere;padding:8px}.parent-menu .btn{justify-content:flex-start;min-height:44px}
.brand-dashboard .pd-filters{display:grid;grid-template-columns:1fr 1fr 44px;gap:12px;align-items:end;margin:18px 0 24px;padding:0;background:none;border:0}.brand-dashboard .pd-filters label{font-size:12px;color:#66766d}.brand-dashboard .pd-filters select{height:48px;border-radius:11px;background:#fff;font-size:15px;padding:8px 12px;border:1px solid #dde2d9}.pd-refresh{width:44px;height:48px;box-shadow:none;border:1px solid #dde2d9;background:#fff;color:#164e45}
.week-heading{margin:0 0 20px;display:flex;justify-content:space-between;gap:16px}.week-heading h1{font-size:clamp(29px,4vw,42px);margin:0;color:#164e45}.week-heading p{margin:8px 0 0;color:#66746b;font-size:16px}.live-note{font-size:11px;color:#69786f;max-width:145px}.live-note::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#548773;margin-inline-end:6px}
.week-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:0 0 24px;margin-bottom:20px;border-bottom:1px solid #dfe4da}.week-insights article{border-inline-start:3px solid #ebc5a4;padding-inline-start:12px}.week-insights span{font-size:11px;font-weight:700;color:#7a725f}.week-insights p{font-size:14px;line-height:1.7;margin:5px 0 0}
.brand-dashboard .pd-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}.brand-dashboard .pd-metric{padding:18px;display:flex;gap:12px;align-items:flex-start}.metric-icon{display:grid;place-items:center;width:37px;height:37px;flex-shrink:0;border-radius:12px;background:#edf4ef;color:#164e45}.pd-metric:last-child .metric-icon{background:#fff0e4;color:#b66f39}.brand-dashboard .pd-metric strong{font-size:32px;line-height:1.2;display:block;margin:6px 0}.brand-dashboard .pd-metric small{font-size:11px;line-height:1.5;display:block}.brand-dashboard .pd-metric div>span{font-size:12px;font-weight:600}.pd-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.pd-section-head h2{font-size:22px}.pd-section-head .btn{font-size:12px;min-height:42px}.weekly-activity{padding:22px;margin-bottom:28px}.weekly-activity .muted{font-size:11px;margin-bottom:0;line-height:1.6}.activity-bars{height:145px;display:flex;gap:18px;direction:ltr;margin:22px 0}.activity-day{flex:1;display:flex;flex-direction:column;text-align:center;gap:6px;min-width:0}.activity-day>b,.activity-day>span{font-size:11px;color:#6c7a71}.bar-track{height:96px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #e5e8e1}.bar-track i{display:block;width:60%;max-width:38px;background:#357567;border-radius:5px 5px 0 0}.activity-day:last-child i{background:#f2ad72}
.brand-dashboard .pd-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:28px}.brand-dashboard .pd-children>.pd-card{padding:20px;margin:0}.pd-child-head{display:flex;align-items:center;gap:12px}.pd-child-head>div{flex:1;min-width:0}.pd-child-head h2{font-size:21px}.pd-child-head .btn{font-size:12px;flex-shrink:0}.parent-dashboard .pd-initial{background:#f7e7d8;color:#805832;border-radius:14px;width:42px;height:42px;display:grid;place-items:center;font-size:21px}.child-progress{display:flex;gap:10px;align-items:center;margin:18px 0 10px}.child-progress progress{width:100%;height:9px;accent-color:#226758}.child-progress span{font-size:12px;min-width:38px}.pd-child-stats{font-size:12px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#66746b}.brand-dashboard .pd-children .family-actions{border-top:1px solid #e7ebe2;padding-top:12px;margin-bottom:0;gap:6px}.brand-dashboard .pd-children .family-actions .btn{font-size:11px;padding:8px 10px;min-height:44px}
#familyPage .reward-section{padding:24px;border-color:#e8bc95;background:#fffaf4}.reward-heading{display:flex;gap:14px;align-items:center}.reward-heading h2{font-size:24px}.reward-heading p{font-size:14px;color:#736956;margin:5px 0}.reward-symbol{color:#b9753e;background:#fbe5cf;display:grid;place-items:center;min-width:64px;height:64px;border-radius:16px}.reward-child{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:18px;margin-top:18px;border-top:1px solid #ecdac6}.reward-child>div{flex:1;min-width:0}.reward-child p{font-size:13px;margin:5px 0}.reward-child span,.reward-child small{font-size:12px}.reward-child progress{display:block;width:100%;max-width:360px;margin-top:8px;accent-color:#164e45}.reward-child .btn{font-size:13px}.parent-bottom{position:sticky;bottom:0;z-index:10;display:flex;justify-content:space-around;gap:6px;padding:10px 0 max(10px,env(safe-area-inset-bottom));margin:28px -4px -80px;background:#f7f5eff5;border-top:1px solid #dde3d8;backdrop-filter:blur(8px)}.parent-bottom a,.parent-bottom button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:56px;min-height:44px;text-decoration:none;background:none;border:0;color:#31574b;font:inherit;font-size:11px;cursor:pointer}#dashboardChildren,#dashboardRewards{scroll-margin-top:20px}
.parent-dashboard .pd-donut circle[stroke="#6354d8"]{stroke:#164e45}.parent-dashboard .pd-donut circle[stroke="#159ca4"]{stroke:#f2ad72}.pd-legend li i{background:#164e45}.pd-legend li:nth-child(2) i{background:#f2ad72}.parent-dashboard .pd-next .pd-action-note,.parent-dashboard .pd-next p,.parent-dashboard .pd-next h2{color:#244b42}.parent-dashboard .pd-next .btn{background:#164e45;color:#fff}.parent-dashboard progress{accent-color:#164e45}.pd-chart-empty{background:#f4f5ef}.pd-heat .has-practice{background:#e0eee5;color:#164e45}.setup-control .txt,.family-options label{border-radius:12px}.family-options label:has(:checked){background:#eaf2ec;border-color:#164e45}.setup-badge{background:#f9e6d3;color:#86572e}#childSetup .wizard-nav{background:#f7f5eff5}.setup-next-steps li{border-radius:16px}.family-code{border-radius:12px;background:#edf2e9}
@media(max-width:760px){.family-shell{padding:18px 16px 96px}.brand-dashboard .pd-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-dashboard .pd-metric{padding:14px;gap:9px}.metric-icon{width:28px;height:28px}.metric-icon .ic{width:20px;height:20px}.brand-dashboard .pd-metric strong{font-size:30px}.brand-dashboard .pd-children{grid-template-columns:1fr}.week-heading{display:block}.live-note{display:block;max-width:none;margin-top:10px}.week-insights{grid-template-columns:1fr;gap:12px;padding-bottom:20px}.week-insights article{display:grid;grid-template-columns:95px 1fr;gap:8px}.week-insights p{margin:0;font-size:13px}.week-insights span{padding-top:2px}.activity-bars{gap:9px}.reward-section{padding:18px!important}.reward-heading h2{font-size:21px}.reward-symbol{min-width:48px;height:48px}.reward-symbol .ic{width:30px}.reward-child{flex-wrap:wrap}.reward-child .btn{min-height:44px}.brand-dashboard .pd-filters{gap:8px}.family-brand>span{font-size:19px}.adventure-banner{padding:20px}.adventure-art{width:120px}.adventure-art>.character{width:130px}.pd-report-hero h1{font-size:30px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Three transparent poses from the approved fox reference. Motion stops when reduced motion is requested. */
.fox-guide{display:inline-block;position:relative;flex-shrink:0;vertical-align:middle;transform-origin:50% 90%;animation:fox-greet 1.1s ease-out both}
.fox-pose{position:absolute;inset:0;background-image:url('../icons/fox-guide.png');background-size:300% 100%;background-repeat:no-repeat;pointer-events:none}
.fox-welcome{background-position:0 50%}.fox-think{background-position:50% 50%;display:none}.fox-celebrate{background-position:100% 50%;display:none}
.happy .fox-welcome,.sad .fox-welcome{display:none}.happy .fox-celebrate,.sad .fox-think{display:block}.happy .fox-guide{animation:fox-cheer .85s ease-out 2}.sad .fox-guide{animation:fox-ponder 1.1s ease-in-out}
.welcome-fox{width:140px;height:140px}.welcome-logo{width:64px;height:64px}.adventure-art .fox-guide{z-index:1}.avatar:has(.fox-guide){background:transparent;border:0;box-shadow:none}
@keyframes fox-greet{0%{transform:translateY(9px) rotate(-5deg);opacity:0}55%{transform:translateY(-3px) rotate(3deg);opacity:1}100%{transform:none;opacity:1}}
@keyframes fox-cheer{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-9px) rotate(-4deg)}65%{transform:translateY(-3px) rotate(3deg)}}
@keyframes fox-ponder{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){.fox-guide,.happy .fox-guide,.sad .fox-guide{animation:none!important}}
#familyPage.parent-home>.family-shell{max-width:1100px;padding:24px 28px 100px}#familyPage.parent-home>.family-shell>header{display:flex}.brand-dashboard .pd-filters label{max-width:none}.brand-dashboard .week-heading h1{font-size:clamp(29px,4vw,42px);margin:0}.brand-dashboard .week-heading{margin-bottom:20px}.parent-dashboard progress{appearance:none;border:0;border-radius:8px;overflow:hidden;background:#e6ebe4}.parent-dashboard progress::-webkit-progress-bar{background:#e6ebe4;border-radius:8px}.parent-dashboard progress::-webkit-progress-value{background:#226758;border-radius:8px}.parent-dashboard progress::-moz-progress-bar{background:#226758;border-radius:8px}
@media(max-width:760px){#familyPage.parent-home>.family-shell{padding:18px 16px 100px}.family-shell .week-heading{display:block}.brand-dashboard .week-heading h1{font-size:30px}.brand-dashboard .pd-metric{flex-direction:row}.brand-dashboard .pd-metric strong{font-size:28px}.brand-dashboard .pd-metric .metric-icon{width:24px;height:24px}.brand-dashboard .pd-child-head{gap:8px}.brand-dashboard .pd-child-head small{font-size:11px}}
#familyPage.parent-home{background:#f7f5ef}.parent-dashboard .pd-hero p,.parent-dashboard .pd-hero small{color:#617269}.pd-ring-number{fill:#164e45}.pd-ring-label{fill:#617269}
.avatar .fox-guide{width:100%!important;height:100%!important}#scGame>.buddyRow .avatar:has(.fox-guide){width:40px;height:40px;flex:0 0 40px}.brand-dashboard .pd-children:has(>.pd-card:only-child){grid-template-columns:1fr}
/* Parent-only subscription introduction; no purchase until the service is live. */
#familyPage.insights-page{background:#f7f5ef}#familyPage.insights-page>.family-shell{max-width:1100px;padding-bottom:50px}.insights-hero{display:flex;gap:30px;padding:30px 0}.insights-hero>div{max-width:690px}.insights-hero h1{font-size:clamp(30px,4.5vw,48px);line-height:1.2;color:#164e45}.insights-hero h1 em{font-style:normal;color:#a96432}.insights-hero p{font-size:17px;line-height:1.8;color:#56675f}.plan-fox{width:190px;height:190px}.plan-eyebrow{font-size:12px;color:#856342;font-weight:600}.plan-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:28px;align-items:start}.plan-features article{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid #e0e4dc}.plan-features article>span{background:#eaf2ec;color:#164e45;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.plan-features h3{font-size:17px;margin:0}.plan-features p{font-size:14px;line-height:1.8;margin:6px 0 0;color:#596b61}.plan-price{padding:26px;background:#fff;border:1px solid #d6dfd5;border-radius:18px;box-shadow:0 8px 28px #164e4508}.plan-price h2{font-size:40px;color:#164e45;margin:14px 0}.plan-price h2 small{display:block;font-size:15px;font-weight:400}.plan-price p,.plan-price li{font-size:14px;color:#56675f}.plan-price ul{padding-inline-start:20px;line-height:1.8}.plan-price li{margin-bottom:12px}.plan-price>small{font-size:11px;display:block;margin-top:14px;color:#68776f;line-height:1.8}.plan-price .btn{width:100%;margin-top:16px}.plan-readiness{background:#f7f5ef;border-radius:10px;padding:14px}.plan-readiness p{margin:5px 0 0;font-size:13px}.plan-price .btn:disabled{opacity:.7;cursor:default}.plan-example{margin-top:26px;background:#fff8f0;border:1px solid #edc9a9;border-radius:16px;padding:24px}.plan-example h2{margin:12px 0;font-size:21px}.plan-example p{line-height:1.9}.plan-example small{font-size:12px;color:#7a705e}.plan-faq{margin-top:36px}.plan-faq details{padding:16px 0;border-bottom:1px solid #e0e5db}.plan-faq summary{cursor:pointer;min-height:32px;font-weight:600}.plan-faq p{font-size:14px;max-width:800px;line-height:1.8;color:#5b6d62}.insights-invite{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px;background:#ecf2e9;border:1px solid #d8e3d3;border-radius:16px;margin:0 0 28px}.insights-invite h2{font-size:21px;margin:5px 0}.insights-invite p{font-size:13px;color:#526b5c;margin:7px 0}.insights-invite .btn{white-space:nowrap;flex-shrink:0}
@media(max-width:700px){.plan-layout{grid-template-columns:1fr}.family-shell .insights-hero{display:block;position:relative;padding-top:22px}.insights-hero h1{font-size:32px}.insights-hero p{font-size:15px}.plan-fox{width:105px;height:105px;display:block;margin-inline-start:auto}.plan-price{padding:22px}.insights-invite{display:block;padding:20px}.insights-invite .btn{margin-top:10px;width:100%}#familyPage.insights-page>.family-shell{padding:18px 16px 40px}.insights-plan .pd-nav{align-items:center;font-size:12px}}

/* The family fox is the app identity, with the full-body guide reserved for play. */
.welcome-logo{width:132px;height:132px;border-radius:28px;object-fit:cover}.family-brand img{border-radius:12px;object-fit:cover;flex-shrink:0}
.upgrade-visible{background:#164e45;color:#fff;border:1px solid #164e45;min-height:44px;white-space:normal;font-size:14px;padding:10px 14px}.brand-dashboard>.pd-nav{flex-wrap:wrap;gap:10px}.brand-dashboard>.pd-nav>.parent-space-label{margin-inline-end:auto}.insights-popup{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid #dce3da;border-radius:22px;background:#f7f5ef;color:#164e45;box-shadow:0 20px 80px #082b3540;text-align:start}.insights-popup::backdrop{background:#102e2b99}.insights-popup>img{display:block;border-radius:18px;margin:0 0 18px}.insights-popup .invite-close{float:inline-end;font-size:28px;min-width:44px;min-height:44px;background:#fff}.insights-popup h2{font-size:26px;line-height:1.25;margin:12px 0}.insights-popup p{line-height:1.6;font-size:16px}.insights-popup .invite-price{font-weight:700}.insights-popup .muted{font-size:13px}.insights-popup .block{width:100%;margin-top:10px;min-height:48px}@media(max-width:420px){.brand-dashboard>.pd-nav>.parent-space-label{width:100%}.brand-dashboard>.pd-nav>.upgrade-visible{flex:1}.insights-popup{padding:22px}}
/* Parent navigation: one destination per screen, one settings entry. */
.parent-bottom{position:fixed;inset-inline:0;bottom:0;margin:0;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#f7f5effa;z-index:30}.parent-bottom button{flex:1;max-width:180px;min-height:52px;border-radius:10px;position:relative}.parent-bottom [aria-current="page"]{background:#e5eee7;color:#164e45;font-weight:700}.parent-bottom [aria-current="page"]:after{content:"";position:absolute;bottom:0;width:24px;height:3px;background:#164e45;border-radius:3px}.settings-list{display:grid;gap:12px;max-width:600px;margin-block:24px}.settings-list .btn{justify-content:flex-start;text-align:start;min-height:58px}.settings-logout{margin-block:20px}.child-options{border-top:1px solid #e5e9df;margin-top:16px;padding-top:12px}.child-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:#31574b}.child-options summary:after{content:'＋';margin-inline-start:auto}.child-options[open] summary:after{content:'−'}.child-options .family-actions{margin-top:10px}.parent-settings h1,#dashboardChildren h2{color:#164e45}.brand-dashboard .pd-nav{margin-bottom:20px}.brand-dashboard .week-insights{margin-bottom:20px}
@media(max-width:420px){.brand-dashboard>.pd-nav>.parent-space-label{width:auto}.brand-dashboard>.pd-nav>.upgrade-visible{flex:0 1 auto;font-size:12px;padding:8px 10px}.brand-dashboard .pd-nav{gap:6px}}
/* One back control, always in the leading slot of the family header. */
#familyPage .family-shell>header{justify-content:flex-start;gap:14px}#familyPage .family-shell>header .family-brand{order:-1;margin-inline-start:0;margin-inline-end:auto}.app-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:84px;flex-shrink:0;padding:10px 12px!important;font-size:14px!important}.app-back svg{width:20px;height:20px}.family-shell[dir="rtl"] .app-back svg{transform:scaleX(-1)}.wizard-nav{justify-content:flex-end}
/* AI plan has one permanent entry: the last bottom-navigation destination. */
.parent-bottom .upgrade-visible{border:0;background:transparent;color:#164e45;font-size:11px;padding:0 3px;white-space:normal}.parent-bottom{gap:2px}.parent-bottom button{min-width:0}.brand-dashboard>.pd-nav{margin-bottom:12px}
.topic-intro{width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-sizing:border-box;border:1px solid #dae3d7;border-radius:22px;padding:24px;background:#f7f5ef;color:#164e45;text-align:center}.topic-intro::backdrop{background:#102e2bcc}.topic-intro .fox-guide{display:block;margin:auto}.topic-intro h2{font-size:24px;margin:12px 0}.topic-intro p{line-height:1.5}.topic-intro .block{width:100%;min-height:44px;margin-top:10px}.intro-hundred{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;max-width:240px;margin:16px auto}.intro-hundred i{aspect-ratio:1;background:#e1e6dc;border-radius:3px}.intro-hundred .filled{background:#218468}#introPercent{width:100%;min-height:44px;accent-color:#164e45}#introPercentValue{display:block;direction:ltr;font-size:24px;font-weight:700}.intro-example{max-width:100%;overflow:auto}.wallet-conversion{font-size:16px;line-height:1.6}
.topic-intro .fox-pose{animation:none!important}.topic-intro .fox-welcome{opacity:1!important}
.topic-intro .fox-guide{animation:none;opacity:1}
/* Parent AI pilot */
.ai-reports{max-width:960px;margin:auto}.ai-reports h1{font-size:clamp(1.7rem,4vw,2.6rem);color:#164e45}.ai-reports header p{max-width:60ch;line-height:1.7}.ai-child-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.ai-child-tabs [aria-pressed=true]{background:#164e45!important;color:white!important}.ai-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.ai-metrics article{background:white;border:1px solid #e2e5dc;border-radius:16px;padding:18px 12px;display:flex;flex-direction:column;gap:8px}.ai-metrics strong{font-size:1.9rem;color:#164e45}.ai-metrics span{font-size:.82rem}.ai-insight{background:white;border:1px solid #e2e5dc;border-inline-start:4px solid #164e45;border-radius:16px;padding:22px;margin:16px 0;line-height:1.7}.ai-practice{border-inline-start-color:#f2ad72}.ai-insight h3{margin:8px 0}.ai-step{display:flex;gap:12px;background:#f7f5ef;padding:10px 15px;border-radius:10px;align-items:center;margin:15px 0}.ai-step p{margin:0}.ai-step svg{flex-shrink:0}.ai-insight summary,.ai-method summary{cursor:pointer;min-height:44px;align-content:center}.ai-method{padding:18px 0;line-height:1.7}.ai-reports [hidden]{display:none!important}@media(max-width:420px){.ai-insight{padding:16px}.ai-metrics article{padding:12px 8px}.ai-metrics strong{font-size:1.5rem}}
.ai-reports>header{display:block!important;margin:20px 0;padding:0}.ai-reports>header h1{margin:12px 0;line-height:1.25}.ai-reports>header .pd-kicker,.ai-reports .pd-kicker{color:#526e61}.ai-reports>header p{margin:0}
/* Child navigation: one primary home action, four stable destinations. */
#scHome>.scroll{display:flex;flex-direction:column;gap:18px;max-width:760px;margin:auto;width:100%}#scHome .hero{order:0;margin:0;padding:10px 4px;background:none;box-shadow:none}#scHome .hero>.avatar,#scHome #homeChips,#scHome #xpText{display:none}#scHome .herotext{width:100%}#scHome #helloName{font-size:24px;margin:0 0 12px}#scHome .xpbar{height:6px;max-width:260px}#scHome #personalPlan{order:1;margin:0;text-align:center;padding:24px 22px 28px;border-radius:22px;background:#fff;border:1px solid #e1e5db}#scHome .child-main h1{font-size:clamp(24px,4vw,32px);line-height:1.25;margin:10px 0;color:#164e45}#scHome .child-main p{font-size:15px;color:#617269;margin:12px auto 22px;max-width:36ch}#scHome .child-main-art{height:130px;display:flex;justify-content:center}#scHome .child-main .btn{min-height:58px;font-size:18px;max-width:430px;margin:auto}#personalPlan [hidden]{display:none!important}.child-extra{margin:20px 0;border:1px solid #dde4d9;border-radius:14px;padding:14px;background:#fff}.child-extra>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:700}.child-extra #journeyHome .adventure-banner{display:none}.child-extra .worlds{display:grid;grid-template-columns:1fr}.child-extra .world{margin-top:12px}#scTopics>.scroll{max-width:850px;margin:auto;width:100%}#scTopics .subjects{grid-template-columns:repeat(2,minmax(0,1fr))}#scTopics .subj{cursor:pointer}#scTopics .subj .ds,#scTopics .subj .ring{display:none}#scTopics .subj{padding:20px 12px;min-height:115px}#scTopics #myStudySets{grid-column:1/-1;background:#edf2e9;color:#164e45}body[data-child-screen]:not([data-child-screen="scChildProfile"]) #btnLang,body[data-child-screen]:not([data-child-screen="scChildProfile"]) #btnVoice{display:none}body[data-child-screen] #statStrip .cash,body[data-child-screen] #statStrip .fire{display:none}body[data-child-screen] #statStrip{max-width:760px;width:calc(100% - 28px);margin:0 auto 6px}body[data-child-screen] #statStrip .stat-i{flex:1}#parentReturn{min-height:44px;font-size:13px}#scShop #childWallet{margin-bottom:14px}#tabs .tab{min-height:58px}#scTopics .subj:focus-visible{outline:3px solid #164e45;outline-offset:3px}@media(max-height:740px){#scHome .child-main-art{height:90px}#scHome .child-main-art .fox-guide{width:90px!important;height:90px!important}#scHome #personalPlan{padding:16px}#scHome>.scroll{gap:10px}#scHome .child-main p{margin:8px auto 16px}}
.child-main-art .fox-guide{animation:none;opacity:1}
/* Public introduction: own product imagery and a direct route for returning families. */
#familyPage.welcome-page>.family-shell{max-width:1160px;padding:24px 30px 40px}.product-welcome{color:#164e45}.entry-links{display:flex;justify-content:flex-end;gap:20px;flex-wrap:wrap;padding:12px 0 24px;border-bottom:1px solid #dde4d9}.entry-links button,.entry-try{background:none;border:0;font:inherit;font-size:14px;color:#164e45;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:5px}.entry-links button{display:flex;align-items:center;gap:7px}.welcome-hero{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:60px;padding:50px 0}.welcome-eyebrow{display:block;font-size:12px;letter-spacing:.04em;font-weight:700;color:#67745f}.welcome-message h1{font-size:clamp(34px,4.4vw,58px);line-height:1.12;letter-spacing:-1px;margin:20px 0;color:#164e45}.welcome-message h1 em{font-style:normal;color:#a56030}.welcome-message>p{font-size:19px;line-height:1.8;max-width:38ch;color:#53665c}.welcome-message .btn{min-height:58px;padding:14px 26px;font-size:17px;margin-top:14px}.welcome-note{display:block;font-size:12px;color:#6c796f;margin:14px 0 4px}.welcome-product{margin:0;background:#dfece4;border-radius:28px;padding:24px;text-align:center;position:relative}.welcome-product img{display:block;width:215px;max-width:100%;height:auto;margin:16px auto 0;border:5px solid #164e45;border-radius:24px;box-shadow:12px 14px 0 #c4d9cc}.product-tag{font-size:14px;font-weight:700}.product-welcome figcaption{font-size:11px;margin-top:22px;color:#597465}.welcome-subjects{display:flex;justify-content:center;align-items:center;gap:28px;flex-wrap:wrap;border-block:1px solid #dce3d8;padding:24px 0}.welcome-subjects span{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:600}.welcome-how{padding:64px 0}.product-welcome h2{font-size:clamp(26px,3vw,36px);line-height:1.3;color:#164e45}.welcome-how ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:32px 0 0}.step-number{display:block;color:#ab6c3e;font-size:26px;font-weight:700}.welcome-how h3{font-size:19px;margin:12px 0}.welcome-how p,.welcome-discover p,.welcome-parent p{font-size:16px;line-height:1.8;color:#53665c}.welcome-discover{display:grid;grid-template-columns:.85fr 1.15fr;gap:64px;align-items:center;padding:40px;background:#f3e8dc;border-radius:24px}.welcome-discover figure{margin:0;text-align:center}.welcome-discover img{display:block;width:230px;max-width:100%;height:auto;border-radius:18px;margin:auto;border:1px solid #dfd4c4}.welcome-discover ul{padding-inline-start:20px;line-height:2;font-size:15px}.welcome-parent{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center;padding:64px 0}.welcome-parent-preview{background:#fff;border:1px solid #dce3d7;border-radius:20px;padding:28px}.welcome-parent-preview>span{display:flex;align-items:center;gap:10px;font-weight:700}.welcome-parent-preview b{font-size:40px;display:block;margin:22px 0 10px;direction:ltr;text-align:start}.welcome-parent-preview small{font-size:14px}.welcome-parent-preview progress{width:100%;height:10px;accent-color:#164e45;margin-top:20px}.welcome-parent-preview p{font-size:12px}.welcome-faq{max-width:740px;margin:0 auto 40px}.welcome-faq details{border-bottom:1px solid #dce3d7;padding:16px 0}.welcome-faq summary{min-height:44px;align-content:center;font-weight:600;cursor:pointer}.welcome-faq p{font-size:15px;line-height:1.8}.welcome-footer{display:flex;gap:14px;align-items:center;justify-content:center;padding:30px 0;border-top:1px solid #dce3d7;font-size:14px}.entry-form>.family-shell{max-width:520px!important;padding-bottom:48px}.entry-form h1{font-size:32px}.entry-form #familyLogin{margin-top:24px;padding-top:20px;border-top:1px solid #dce3d7;display:grid;gap:14px}.entry-form #familyLogin label{display:grid;gap:8px}.entry-form .txt{min-height:56px;background:#fff}.entry-form #familyLogin button{min-height:48px}.entry-form #familyLogin [data-action=reset]{background:transparent;text-decoration:underline;box-shadow:none}.child-entry #pairCode{font-size:36px;letter-spacing:.35em;text-align:center;min-height:82px}.child-entry #pairForm{margin-top:30px}.child-entry #pairForm label{display:grid;gap:12px}.child-entry #pairForm .btn{min-height:56px;margin-top:24px}.entry-form .wizard-progress{margin-top:30px}
@media(max-width:700px){#familyPage.welcome-page>.family-shell{padding:18px 20px 30px}.entry-links{justify-content:space-between;gap:6px;padding:8px 0 16px}.entry-links button{font-size:12px}.welcome-hero{grid-template-columns:1fr;gap:26px;padding:30px 0}.welcome-message h1{font-size:38px;margin:16px 0}.welcome-message>p{font-size:16px;line-height:1.75}.welcome-message .btn{width:100%;font-size:16px;padding:12px}.welcome-product{padding:18px;border-radius:20px}.welcome-product img{width:190px;margin-top:14px}.welcome-subjects{gap:16px;font-size:13px}.welcome-subjects span{font-size:13px}.welcome-how{padding:38px 0}.welcome-how ol{grid-template-columns:1fr;gap:20px}.welcome-how li{display:grid;grid-template-columns:44px 1fr;column-gap:14px}.welcome-how li p{grid-column:2;margin:0}.welcome-how li h3{margin:4px 0 8px}.welcome-discover{grid-template-columns:1fr;gap:24px;padding:24px 20px}.welcome-discover>div{grid-row:1}.welcome-discover img{width:220px}.welcome-parent{grid-template-columns:1fr;gap:20px;padding:40px 0}.welcome-parent h2{margin-top:12px}.welcome-footer p{font-size:12px}}@media(prefers-reduced-motion:reduce){.product-welcome *{scroll-behavior:auto!important}}
.entry-form #familyLogin label{margin:0}.entry-form #familyLogin{margin-top:12px;padding-top:0;border-top:0;gap:16px}.entry-form .signin-divider{font-size:13px;color:#66756b;text-align:center;display:flex;align-items:center;gap:12px;margin:24px 0 12px}.signin-divider:before,.signin-divider:after{content:'';height:1px;background:#dce3d7;flex:1}.entry-form .wizard-progress{background:none;padding:0}.welcome-page>.family-shell>header{justify-content:flex-start}
.parent-signin>.family-shell{max-width:600px!important;padding-inline:24px!important}
.parent-signin .wizard-progress{font-size:13px;color:#62746c;letter-spacing:.02em;margin:30px 0 10px}
.signin-card{background:#fff;border:1px solid #dce2dc;border-radius:20px;padding:28px 32px;box-shadow:0 12px 32px #164e4507}
.parent-signin .signin-card h1{margin:0 0 8px;font-size:30px;line-height:1.3;color:#164e45}
.signin-intro{font-size:15px;line-height:1.7;color:#62746c;margin:0 0 24px;max-width:36ch}
.parent-signin .google-signin{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;border:1px solid #747775;border-radius:10px;background:#fff;color:#1f1f1f;box-shadow:none;font-size:16px;font-weight:500;padding:12px}
.google-signin img{width:20px;height:20px;object-fit:contain;flex-shrink:0}
.parent-signin .google-signin:hover{background:#f7f8f7}
.parent-signin #familyLogin{gap:14px}
.parent-signin #familyLogin label{font-size:14px;font-weight:600}
.parent-signin #familyLogin .txt{min-height:50px;border-radius:10px;border:1px solid #cbd5ce;box-shadow:none;padding:12px 14px;font-size:16px;box-sizing:border-box;width:100%}
.parent-signin #familyLogin .txt:focus{outline:2px solid #164e45;outline-offset:2px}
.parent-signin #familyLogin>button[type=submit]{margin-top:4px;border-radius:10px;min-height:50px}
.parent-signin #familyLogin>[data-action=reset]{grid-row:3;font-size:13px;justify-self:end;min-height:44px;padding:4px 8px;margin-top:-8px;color:#365e51;border:0;box-shadow:none}
.signin-new{display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid #e6ebe5;padding-top:12px;color:#64736b;font-size:14px;flex-wrap:wrap}
.parent-signin #familyLogin .signin-new button{background:none;border:0;box-shadow:none;border-radius:6px;min-height:44px;padding:6px 8px;color:#164e45;font-size:14px;text-decoration:underline;text-underline-offset:4px}
@media(max-width:520px){.parent-signin>.family-shell{padding-inline:18px!important;padding-top:max(18px,env(safe-area-inset-top))!important}.parent-signin .wizard-progress{margin-top:24px}.signin-card{padding:24px 20px;border-radius:16px}.parent-signin .signin-card h1{font-size:28px}.signin-intro{font-size:14px;margin-bottom:20px}.parent-signin .signin-divider{margin-top:20px}}
.parent-signin #familyLogin[hidden],#phoneEntry[hidden],#phoneEntry form[hidden]{display:none!important}
.parent-signin #familyLogin .txt{max-width:none}
.parent-signin .signin-methods{display:flex;background:#f2f3ef;padding:4px;border-radius:12px;margin:20px 0;gap:4px}
.signin-methods button{flex:1;border:0;background:none;border-radius:9px;min-height:44px;font:inherit;color:#164e45;cursor:pointer}
.signin-methods button[aria-pressed=true]{background:#fff;box-shadow:0 2px 5px #164e4515;font-weight:600}
.parent-signin .apple-signin{min-height:52px;border-radius:10px;margin-top:10px;background:#fff;color:#202020;border:1px solid #747775;box-shadow:none;display:flex;align-items:center;justify-content:center;gap:10px}
.apple-signin span{font-size:23px}.apple-signin small{font-size:11px;font-weight:400}
#phoneEntry form{display:grid;gap:14px}#phoneEntry label{display:grid;gap:8px;font-size:14px}#phoneEntry .txt{box-sizing:border-box;width:100%;max-width:none;font-size:16px;min-width:0}
.phone-number{display:flex;gap:8px}.phone-number select{max-width:116px;border:1px solid #cbd5ce;border-radius:10px;background:white;color:#164e45;padding:6px;font-size:14px}.phone-number .txt{flex:1}
#phoneEntry .phone-consent{display:flex;align-items:flex-start;font-size:12px;line-height:1.6}.phone-consent input{flex-shrink:0;width:20px;height:20px}
.phone-notice{font-size:12px;line-height:1.6;color:#62746c;margin:4px 0 10px}.phone-unavailable{font-size:14px;line-height:1.6;color:#805022;background:#fff5e9;padding:12px;border-radius:10px}
#phoneCaptcha{direction:ltr;max-width:100%;overflow:auto}
.signin-providers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.parent-signin .signin-providers .btn{margin:0;padding:10px 6px;font-size:13px;gap:7px;flex-wrap:wrap;min-height:56px}.signin-providers .google-signin img{width:20px;height:20px}.parent-signin .signin-providers .apple-signin:disabled{opacity:.65;cursor:not-allowed}
/* A single child invitation, with scenery and real progress rather than extra actions. */
#scHome .hero{display:none}#scHome #personalPlan{padding:0;overflow:hidden;background:#fff}#scHome>.scroll{gap:12px}
.home-scene{height:190px;position:relative;overflow:hidden;background:#e1eee7;isolation:isolate}.scene-sun{position:absolute;width:60px;height:60px;border-radius:50%;background:#f2ad72;top:22px;inset-inline-start:30px}.scene-cloud{position:absolute;width:76px;height:22px;border-radius:30px;background:#ffffffa8;top:30px;inset-inline-end:24px}.cloud-two{top:68px;inset-inline-end:80px;width:48px}.scene-hill{position:absolute;width:95%;height:140px;border-radius:50% 50% 0 0;bottom:-80px;inset-inline-start:-20%;background:#9ebea8}.hill-front{inset-inline-start:40%;bottom:-65px;background:#6d9f81}.scene-trail{position:absolute;bottom:-36px;left:24%;width:55%;height:80px;background:#f7efd9;border-radius:50%;transform:rotate(-15deg)}.scene-sign{position:absolute;inset-inline-start:18%;bottom:35px;display:grid;place-items:center;background:#fff7e9;color:#8c582e;border:3px solid #d8ab77;border-radius:10px;width:48px;height:44px;transform:rotate(-8deg)}#scHome .home-scene .child-main-art{position:absolute;height:160px;bottom:3px;inset-inline-end:20%;width:150px}#scHome .home-scene .fox-guide{animation:homeFoxHello 3.6s ease-in-out infinite;transform-origin:50% 90%}
#scHome .home-invitation{padding:18px 22px 0}.home-station{font-size:12px;font-weight:600;color:#936039}#scHome .child-main h1{font-size:25px;margin:8px 0}#scHome .child-main p{font-size:14px;margin:8px auto 16px;line-height:1.5}#scHome .home-invitation .btn{min-height:54px;width:100%;margin:0 auto}
.home-trail{padding:20px 24px 22px}.trail-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#46695c}.trail-heading small{font-size:10px}.trail-steps{display:flex;justify-content:space-between;position:relative;margin-top:14px}.trail-steps:before{content:'';position:absolute;top:16px;inset-inline:10px;height:3px;background:#e0e9df}.trail-step{position:relative;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:2px solid #d9e5db;background:#f6f8f3;color:#819488}.trail-step svg{width:16px;height:16px}.trail-step.done{background:#164e45;border-color:#164e45;color:#fff}.trail-step.current{border-color:#ca824b;background:#fff0dd;color:#986139;box-shadow:0 0 0 4px #fff2df}
.home-reward{display:flex;text-align:start;gap:14px;align-items:center;margin:0 20px 20px;padding:14px;background:#fff5e9;border-radius:12px;color:#80532e}.home-reward>svg{width:34px;height:34px;flex-shrink:0}.home-reward>div{flex:1}.home-reward strong,.home-reward span{display:block;font-size:13px}.home-reward span{font-size:11px;margin-top:5px}.home-reward progress{width:100%;height:6px;accent-color:#bd7a42;margin-top:8px}
body[data-theme=ocean] .home-scene{background:#c9edf3}body[data-theme=ocean] .scene-hill{background:#75bdc7}body[data-theme=ocean] .hill-front{background:#2e899e}body[data-theme=ocean] .scene-trail{background:#a7e0e6}body[data-theme=space] .home-scene{background:#263a60}body[data-theme=space] .scene-hill{background:#6e7ba7}body[data-theme=forest] .home-scene{background:#d6e6c9}
@keyframes homeFoxHello{0%,75%,100%{transform:rotate(0) translateY(0)}83%{transform:rotate(-4deg) translateY(-5px)}91%{transform:rotate(3deg) translateY(-3px)}}
@media(max-height:740px){.home-scene{height:140px}#scHome .home-scene .child-main-art{height:130px;inset-inline-end:18%}#scHome .home-invitation{padding-top:12px}.home-trail{padding:16px 22px}.home-reward{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){#scHome .home-scene .fox-guide{animation:none}}
body[data-theme=sunset] .home-scene{background:#f8dfc8}body[data-theme=sunset] .scene-hill{background:#d99f81}body[data-theme=sunset] .hill-front{background:#ad7062}body[data-theme=forest] .scene-hill{background:#9cbb7f}body[data-theme=forest] .hill-front{background:#5c8653}
#scTopics .subj[data-s="crossword"] .sic{background:#164e45;color:#fff}
#scTopics .subj[data-s="crossword"] .ds{display:block;font-size:12px;color:#617269;margin-top:5px}
.game-context{padding:8px 18px 10px;text-align:start;color:var(--ink);display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}.game-context strong{font-size:14px}.game-context span{font-size:12px;color:var(--ink-2)}.whole-word-note{font-size:13px;color:var(--ink-2);line-height:1.5;grid-column:1/-1}.text-answer input{width:100%;max-width:none;box-sizing:border-box}
#scGame .gamehead{flex-wrap:wrap}
#scGame #gameHome{min-height:44px;flex-shrink:0;padding:8px 14px;font-size:14px;white-space:nowrap;background:var(--teal);color:#fff;border:2px solid transparent}
@media(max-width:480px){#scGame .gamehead>.progress{flex-basis:calc(100% - 64px)}#scGame .gamehead>.meter{margin-inline-start:auto}}
/* Forward navigation follows the interface reading direction. */
html[dir="rtl"] #btnNextRes>.ic,html[dir="rtl"] #teachOk>.ic{transform:scaleX(-1)}
html[dir="ltr"] #btnNextRes>.ic,html[dir="ltr"] #teachOk>.ic{transform:none}
.play-area{margin-top:22px;padding-top:18px;border-top:1px solid #dce3d8}.play-area>.h2{margin-top:0}.play-area>p{font-size:14px;line-height:1.6;color:var(--ink-2);margin:8px 0 16px}.play-area #playGames{grid-template-columns:1fr;margin-bottom:14px}.play-area #playGames .subj{display:grid;grid-template-columns:52px 1fr;column-gap:12px;text-align:start;align-items:center;min-height:92px;padding:16px}.play-area #playGames .sic{grid-row:1/3;margin:0}.play-area #playGames .nm,.play-area #playGames .ds{margin:0}.play-area .mode{cursor:pointer}.play-area .mode:focus-visible{outline:3px solid #164e45;outline-offset:3px}
/* Help: compact pricing, readable teaching content and clear touch targets. */
#modal:has(.help-purchase),#teach{background:rgba(18,42,36,.38);backdrop-filter:blur(3px);padding:16px}
#modalSheet:has(.help-purchase){max-width:430px;padding:24px;border:1px solid #e0e4da;border-radius:22px;max-height:calc(100dvh - 32px)}
.help-purchase{text-align:start;color:#164e45}
.help-symbol{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:#fce9d6;color:#965b2e;border-radius:16px;margin-bottom:16px}
.help-purchase h2{font-family:inherit;font-weight:800;font-size:24px;line-height:1.25;margin:0 0 8px}
.help-purchase .help-description{font-size:16px;line-height:1.5;margin:0 0 20px;color:#596c65}
.help-price-row{display:grid;grid-template-columns:1fr 1fr;background:#f4f5ef;border:1px solid #e3e7de;border-radius:14px;padding:14px 0;margin:0 0 14px}
.help-price-row>div{display:flex;flex-direction:column;gap:6px;align-items:center;padding:0 8px}
.help-price-row>div+div{border-inline-start:1px solid #dce1d7}
.help-price-row span{font-size:13px;color:#607169;font-weight:600}
.help-price-row strong{display:flex;align-items:center;gap:7px;font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}
.help-price-row .ic{color:#ad743b}
.help-purchase .help-free-note{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.5;margin:0 0 18px;color:#637269}
.help-free-note>.ic{margin-top:2px;color:#27725b}
.help-purchase .btn{margin:0;min-height:50px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:13px;font-size:16px}
.help-purchase #cancelHelp{margin-top:10px;background:transparent;border:1px solid #dfe4da;box-shadow:none;color:#52685f}
.help-button-price{display:inline-flex;gap:5px;align-items:center;border-inline-start:1px solid #ffffff55;padding-inline-start:12px;white-space:nowrap}
.help-purchase .help-insufficient{padding:12px;background:#fff4e5;border-radius:12px;font-size:14px;margin-bottom:12px}
#questionHint{border:1px solid #ead6b5;background:#fff9ed;border-radius:12px;padding:12px;line-height:1.5;text-align:start;align-items:flex-start;gap:9px}
#questionHint>.ic{width:20px;height:20px;flex-shrink:0;margin-top:2px}
#teach .sheet{max-width:560px;max-height:calc(100dvh - 32px);padding:22px;border:1px solid #e0e4da;border-radius:22px}
#teach #buddyTeach{display:none}
#teachBanner{margin:0 auto 10px;background:#edf4ed;color:#28614f}
#teachTitle{font-family:inherit;font-weight:800;font-size:23px;line-height:1.3}
#teachProgress{font-size:13px;color:#61746a;margin:8px 0 0}
#teachDots{margin:8px auto 14px}
#teachBody{background:#f7f7f0;border:1px solid #e6e8dd;border-radius:16px;padding:16px;overflow-x:auto}
#teachBody .tip{background:#fff8e8;border:1px solid #eedbb8;border-radius:12px;font-size:15px;line-height:1.5;gap:8px;text-align:start;padding:12px}
#teach .teach-pacing{margin:12px 0;padding:0;background:transparent;text-align:start}
#teachPaceLabel{cursor:pointer;padding:12px 0;font-size:14px;color:#53685d;min-height:44px}
#teachPaceNote{font-size:13px;line-height:1.5}
#teach .center{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;position:sticky;bottom:-22px;background:white;padding:12px 0 4px}
#teach .center .btn{font-size:15px;min-height:50px;padding:10px;white-space:normal;line-height:1.3;border-radius:12px}
@media(max-width:380px){#modalSheet:has(.help-purchase),#teach .sheet{padding:18px}.help-purchase h2{font-size:22px}#teach .center{bottom:-18px}}
/* Fokilo AI: family overview and individual evidence, with distinct data windows. */
.ai-reports{max-width:1120px}.ai-reports>header{padding:24px!important;background:#eaf1e9;border:1px solid #dae4d8;border-radius:20px}.ai-reports>header h1{max-width:24ch}.ai-reports>header p{font-size:14px!important;max-width:76ch}
.ai-child-tabs{position:sticky;top:0;z-index:2;background:#f7f5ef;padding:10px 0;flex-wrap:nowrap;overflow-x:auto}.ai-child-tabs button{flex-shrink:0;min-height:44px;white-space:nowrap}.ai-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0 12px}.ai-section-heading h2{font-size:24px;margin:6px 0}.ai-period,.ai-evidence-label{padding:8px 12px;background:#eaf1e9;color:#315f50;border-radius:9px;font-size:13px}.ai-metrics article{position:relative;padding:20px;background:#fff;gap:8px}.ai-metrics article>.ic{color:#ae7441;width:22px;height:22px}.ai-metrics strong{font-variant-numeric:tabular-nums;font-size:36px}.ai-metrics strong small{font-size:14px;font-weight:500}.ai-data-note{font-size:12px!important;color:#687a70;line-height:1.6}.ai-family-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin:24px 0}.ai-activity,.ai-family-note,.ai-child-card,.ai-skill-chart{background:#fff;border:1px solid #dfe5da;border-radius:18px;padding:22px}.ai-family-note{background:#fff7ed}.ai-family-note .help-symbol{margin-bottom:12px}.ai-family-grid h3,.ai-child-card h3,.ai-skill-chart h3{margin:0 0 8px;font-size:20px;color:#164e45}.ai-family-grid p,.ai-skill-chart>p{color:#687a70;font-size:14px;line-height:1.6}.ai-week-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;margin-top:20px;direction:ltr}.ai-week-bars>div{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.ai-week-bars b{font-size:14px;font-variant-numeric:tabular-nums}.ai-bar-track{height:112px;width:100%;max-width:36px;display:flex;align-items:flex-end;background:#f0f3ec;border-radius:8px;overflow:hidden}.ai-bar-track i{display:block;width:100%;background:#28725d;border-radius:7px}.ai-week-bars time{font-size:11px;white-space:nowrap}.ai-child-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ai-child-card{display:flex;flex-direction:column;min-width:0}.ai-child-heading{display:flex;align-items:center;gap:12px}.ai-child-heading h3{margin:0}.ai-child-heading span{font-size:13px;color:#66766c}.ai-child-heading .ai-child-initial{width:44px;height:44px;display:grid;place-items:center;background:#fce8d4;border-radius:14px;font-size:24px;color:#8c552e;font-weight:800}.ai-child-score{display:flex;align-items:center;gap:14px;margin:22px 0 12px}.ai-child-score>strong{font-size:36px;color:#164e45}.ai-child-score>span{font-size:13px}.ai-child-score small{display:block;color:#788479;margin-top:5px}.ai-score-track{height:8px;background:#edf0e9;border-radius:8px;overflow:hidden}.ai-score-track i{display:block;height:100%;background:#36816b;border-radius:8px}.ai-child-next{margin:22px 0;flex:1}.ai-child-next p{font-size:15px;line-height:1.6;margin:8px 0}.ai-child-next small{font-size:12px;color:#687a70}.ai-child-card>.btn{width:100%;font-size:15px;min-height:48px}.ai-skill-chart{margin:22px 0}.ai-skill-row{margin:20px 0}.ai-skill-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:8px}.ai-skill-row small{font-size:12px;color:#6b7e70;display:block;margin-top:6px}.ai-reports .ai-insight{border-inline-start-width:5px}.ai-reports .ai-next{background:#f0f5ed}.ai-reports .ai-practice{background:#fff9f0}
html[dir="rtl"] .ai-child-card>.btn>.ic{transform:scaleX(-1)}
@media(max-width:640px){.ai-family-grid,.ai-child-grid{grid-template-columns:1fr}.ai-reports>header{padding:18px!important}.ai-metrics{gap:8px}.ai-metrics article{padding:14px 10px}.ai-metrics strong{font-size:28px}.ai-metrics span{font-size:12px}.ai-activity,.ai-family-note,.ai-child-card,.ai-skill-chart{padding:18px}.ai-section-heading h2{font-size:22px}.ai-week-bars{gap:8px}}
.coach-panel{margin:22px 0;padding:24px;background:#fff;border:1px solid #dce5d8;border-radius:20px;color:#164e45}.coach-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.coach-time{font-size:13px;padding:8px 12px;border-radius:10px;background:#e9f2e7}.coach-panel h2{font-size:25px;line-height:1.3;margin:16px 0 8px}.coach-panel h3{font-size:17px;margin:12px 0 8px}.coach-panel p{font-size:15px;line-height:1.7;color:#53695e}.coach-skill{font-size:13px!important}.coach-outcomes{display:flex;height:20px;border-radius:8px;overflow:hidden;margin-top:20px;background:#edf1e9}.coach-outcomes i:nth-child(1){background:#28735c}.coach-outcomes i:nth-child(2){background:#89b89c}.coach-outcomes i:nth-child(3){background:#f2ad72}.coach-legend{display:flex;flex-wrap:wrap;gap:10px 16px;list-style:none;padding:0;font-size:12px;color:#54695d}.coach-legend li:before{content:'';display:inline-block;width:9px;height:9px;background:#28735c;margin-inline-end:5px;border-radius:3px}.coach-legend li:nth-child(2):before{background:#89b89c}.coach-legend li:nth-child(3):before{background:#f2ad72}.coach-reading{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.coach-reading article{padding:14px;background:#f7f7f0;border-radius:12px}.coach-reading h3{margin-top:0}.coach-panel blockquote{margin:20px 0;background:#edf4e9;border-inline-start:4px solid #328366;padding:20px;border-radius:12px;font-size:22px;font-weight:700;line-height:1.6}.coach-panel blockquote span{display:block;font-size:12px;letter-spacing:.04em;margin-bottom:10px;color:#5d7867}.coach-plan{list-style:none;padding:0;counter-reset:coach}.coach-plan li{position:relative;padding:16px;padding-inline-start:60px;border:1px solid #e2e7dc;border-radius:12px;margin:10px 0;counter-increment:coach}.coach-plan li:before{content:counter(coach);position:absolute;inset-inline-start:14px;top:14px;width:30px;height:30px;display:grid;place-items:center;background:#fae5d0;color:#93582f;border-radius:10px;font-weight:800}.coach-plan p{margin:6px 0 0}.coach-baseline{background:#164e45;color:white;border-radius:14px;padding:20px;margin-top:20px}.coach-baseline>span{font-size:12px;display:block}.coach-baseline>strong{font-size:34px;display:block;direction:ltr;text-align:start;margin:10px 0}.coach-baseline p{color:#e2eee6;font-size:13px}.coach-panel .coach-disclosure{font-size:12px;color:#758276;margin-top:18px}@media(max-width:600px){.coach-panel{padding:18px}.coach-panel h2{font-size:22px}.coach-reading{grid-template-columns:1fr;gap:10px}.coach-panel blockquote{font-size:20px;padding:16px}.coach-plan li{padding-inline-start:54px}}
#tutorPreview{margin:18px 0;border:1px solid #bfd5c6;background:#edf4e9;color:#164e45;min-height:52px}
#tutorPreviewDialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#f7f5ef;color:#164e45;overflow-y:auto}
#tutorPreviewDialog::backdrop{background:#164e45}.tutor-shell{max-width:680px;margin:auto;padding:calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom))}.tutor-shell>header{display:flex;justify-content:space-between;align-items:center;font-weight:700;gap:12px}.tutor-disclosure{font-size:12px;color:#66786b}.tutor-guide{display:flex;gap:16px;align-items:center;margin:24px 0}.tutor-guide h1{font-size:24px;line-height:1.3;margin:0}.tutor-guide p{font-size:14px;line-height:1.5}.tutor-guide .fox-guide{flex-shrink:0}.tutor-shell label{display:flex;flex-direction:column;gap:10px;font-size:16px}.tutor-shell select,.tutor-shell input{width:100%;padding:14px;border-radius:12px;border:1px solid #cfdccf;background:white;font:inherit;color:#164e45;min-height:50px}.tutor-shell input{text-align:center;font-size:28px;direction:ltr}.tutor-shell .btn{margin-top:12px;min-height:50px;width:100%;font-size:16px}.tutor-shell .iconbtn{min-width:44px;min-height:44px}.tutor-question,.tutor-summary{padding:22px;background:white;border:1px solid #dfe7db;border-radius:18px}.tutor-question h2{font-size:22px;line-height:1.4;margin:0 0 20px}.tutor-stage{font-size:14px;font-weight:700}.tutor-question p,.tutor-summary p{line-height:1.65}.tutor-groups{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;margin:20px 0}.tutor-groups>div{display:flex;flex-wrap:wrap;gap:10px;background:#f4f6ef;padding:12px;border-radius:12px;max-width:180px}.tutor-groups i,.tutor-half i{display:block;width:24px;height:24px;border-radius:7px;background:#efad74;border:2px solid #cb894d;cursor:pointer}.tutor-groups i.counted,.tutor-half i.counted{background:#28735c;border-color:#164e45}.tutor-half{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tutor-half>div{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:10px;background:#f0f4ed;border-radius:12px}.tutor-half i{width:100%;height:auto;aspect-ratio:1;border-radius:4px}#tutorFeedback{color:#265e4b;font-weight:700}@media(max-width:380px){.tutor-shell{padding-inline:14px}.tutor-question{padding:16px}.tutor-guide h1{font-size:22px}}
.tutor-guide .fox-guide{animation:none}
/* Desktop composition: retain the same navigation and actions as mobile. */
@media (min-width:1024px){
 :root{--maxw:1280px}
 #app{padding-inline:24px}
 #app>.topbar{padding:18px 12px 12px}
 #tabs{margin-inline:16px;border:1px solid var(--card-edge);border-bottom:0;border-radius:16px 16px 0 0;flex-shrink:0}
 #tabs .tab{min-height:64px;font-size:14px;gap:8px}
 #scHome>.scroll{max-width:1160px;padding-top:24px}
 #scHome #personalPlan{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto auto;min-height:460px;text-align:start}
 #scHome .home-scene{grid-column:1;grid-row:1/4;height:100%;min-height:460px}
 #scHome .home-scene .child-main-art{height:290px;width:280px;inset-inline-end:12%;bottom:50px}
 #scHome .home-scene .fox-guide{width:280px!important;height:280px!important}
 #scHome .scene-hill{height:240px;bottom:-90px}
 #scHome .scene-trail{height:130px;bottom:-20px}
 #scHome .scene-sign{bottom:85px}
 #scHome .home-invitation{grid-column:2;padding:48px 36px 20px;align-self:center}
 #scHome .child-main h1{font-size:34px}
 #scHome .child-main p{margin:16px 0 26px;font-size:18px}
 #scHome .home-trail{grid-column:2;padding:12px 36px 30px}
 #scHome .home-reward{grid-column:2;margin:0 36px 28px}
 #scTopics>.scroll,#scPick>.scroll,#scShop>.scroll{padding:24px 28px 36px}
 #scTopics .subjects{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 #scTopics .subj{min-height:140px}
 #scTopics #playGames{grid-template-columns:repeat(2,minmax(0,1fr))}
 #scGame.choice-layout.on{grid-template-rows:auto auto auto minmax(260px,auto);grid-template-areas:'progress progress' 'context context' 'buddy buddy' 'question answers'}
 #scGame.choice-layout>.game-context{grid-area:context;padding:0}
 #scGame.choice-layout>.voice-answer{grid-area:auto;grid-column:1/-1}
 #scGame.choice-layout .ans{font-size:28px;border-radius:16px}
 #familyPage.parent-home>.family-shell{max-width:1320px;padding:32px 48px 110px}
 #familyPage:has(.ai-reports)>.family-shell{max-width:1200px}
 .ai-reports{max-width:1100px}
 .parent-bottom{max-width:1224px;margin-inline:auto;border:1px solid #dde3d8;border-bottom:0;border-radius:16px 16px 0 0}
 .parent-bottom button{font-size:14px;min-height:58px}
 .parent-bottom .upgrade-visible{font-size:13px}
 .settings-list{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px}
}
@media (hover:hover){button:not(:disabled),.subj,.skill{transition:background-color .15s,box-shadow .15s}button:not(:disabled):hover,.subj:hover,.skill:hover{box-shadow:0 0 0 2px #164e4530}}
:focus-visible{outline:3px solid #b76b35;outline-offset:4px}

/* Desktop workspace: a persistent leading rail, mirrored automatically in RTL. */
@media (min-width:1200px){
 body{--desktop-rail:208px}
 #app{max-width:none;width:calc(100% - var(--desktop-rail));margin-inline-start:var(--desktop-rail);margin-inline-end:0;padding-inline:36px}
 #app>.topbar{padding-block:22px 14px;border-bottom:1px solid #e0e5dc;margin-bottom:12px}
 #tabs{position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;width:var(--desktop-rail);margin:0;padding:32px 16px;flex-direction:column;justify-content:flex-start;gap:12px;border:0;border-inline-end:1px solid #dce3d9;border-radius:0;background:#edf2ea;box-shadow:none;z-index:20}
 #tabs::before,.parent-bottom::before{content:'FOKILO';display:block;background:url('../icons/icon-192.png') center top / 56px 56px no-repeat;padding-top:70px;padding-bottom:30px;text-align:center;letter-spacing:3px;font-weight:800;font-size:19px;color:#164e45}
 #tabs .tab{flex:0 0 auto;flex-direction:row;justify-content:flex-start;min-height:56px;padding:14px 18px;gap:14px}
 #tabs .tab i{font-size:15px}
 #tabs .tab.on{background:#164e45;color:white;box-shadow:0 4px 12px #164e4515}
 #scHome>.scroll{width:100%;max-width:1400px;margin-inline:auto;padding-inline:12px}
 #scHome #personalPlan{min-height:510px}
 #scHome .home-scene{min-height:510px}
 #scTopics>.scroll,#scPick>.scroll,#scShop>.scroll{width:100%;max-width:1440px;margin-inline:auto}
 #scGame.choice-layout.on{max-width:1400px;width:100%;margin-inline:auto;column-gap:28px;padding:16px 12px 32px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
 #familyPage:has(.parent-bottom){padding-inline-start:var(--desktop-rail)}
 #familyPage.parent-home>.family-shell{max-width:1500px;padding:32px 40px 48px}
 .parent-bottom{inset-block:0;inset-inline-start:0;inset-inline-end:auto;width:var(--desktop-rail);max-width:none;margin:0;padding:32px 16px;border:0;border-inline-end:1px solid #dce3d9;border-radius:0;background:#edf2ea;flex-direction:column;justify-content:flex-start;gap:12px;backdrop-filter:none}
 .parent-bottom button,.parent-bottom .upgrade-visible{flex:0 0 auto;max-width:none;min-height:56px;flex-direction:row;justify-content:flex-start;gap:12px;padding:14px 12px;font-size:14px;text-align:start}
 .parent-bottom [aria-current="page"]{background:#164e45;color:white}
 .parent-bottom [aria-current="page"]:after{display:none}
 .brand-dashboard:has(.weekly-activity){display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px}
 .brand-dashboard:has(.weekly-activity)>*{grid-column:1/-1;margin:0}
 .brand-dashboard:has(.weekly-activity)>.pd-nav{grid-row:1}
 .brand-dashboard:has(.weekly-activity)>.week-heading{grid-row:2}
 .brand-dashboard:has(.weekly-activity)>.pd-filters{grid-row:3;max-width:660px}
 .brand-dashboard:has(.weekly-activity)>.pd-metrics{grid-row:4}
 .brand-dashboard:has(.weekly-activity)>.weekly-activity{grid-column:1;grid-row:5;padding:26px}
 .brand-dashboard:has(.weekly-activity)>.week-insights{grid-column:2;grid-row:5;display:flex;flex-direction:column;gap:24px;background:white;padding:26px;border:1px solid #e0e4dc;border-radius:16px}
 .brand-dashboard .activity-bars{height:180px;margin-block:28px}
 .brand-dashboard .bar-track{height:135px}
 .brand-dashboard .pd-metric{padding:18px 14px}
 .brand-dashboard .pd-metric strong{font-size:30px}
}
@media(min-width:1200px){body.playing #app{width:100%;max-width:1500px;margin-inline:auto}}
/* Keep mobile insights content clear of the shared navigation. */
@media(max-width:1199px){#familyPage.insights-page>.family-shell{padding-bottom:120px}}
/* Illustrated adventure: one world at a time, real stage controls above the art. */
.journey-world-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-block:16px}
.journey-world-tabs .btn{font-size:13px;min-height:44px}
.journey-world-tabs [aria-pressed=true]{background:#164e45;color:white;border-color:#164e45}
.journey-worlds{display:block}.journey-worlds .world[hidden]{display:none}
.journey-worlds .world{padding:18px;border-radius:18px}
.stage-path.journey-map{display:block;position:relative;aspect-ratio:3/2;width:100%;margin:18px 0 24px;background:#b8cd89 url('../icons/journey-landscape.v2.webp') center/100% 100% no-repeat;border-radius:16px;overflow:hidden;isolation:isolate}
.journey-map .stage{position:absolute;transform:translate(-50%,-50%);margin:0;width:52px;height:52px;min-width:44px;padding:0;border-radius:50%;background:#fff8e7;border:3px solid #fff;box-shadow:0 4px 0 #825c35,0 5px 14px #14392b66;color:#164e45;z-index:2}
.journey-map .stage>span{width:auto;height:auto;border:0;background:none;box-shadow:none;font-size:19px;color:inherit}
.journey-map .stage small{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:5px;padding:2px 5px;border-radius:6px;background:#fff9e9;color:#164e45;white-space:nowrap;font-size:10px}
.journey-map .stage.complete{background:#164e45;color:white}
.journey-map .stage:disabled{opacity:1;background:#e5e5d9;color:#6a7666;box-shadow:0 3px 0 #77816e;border-color:#f3f4e7}
.journey-map .stage.current{background:#f2ad72;animation:map-beacon 2.5s ease-in-out infinite}
.map-spark{position:absolute;width:9px;height:9px;background:#fff3a0;border-radius:50%;box-shadow:0 0 12px #fff3a0;animation:map-firefly 6s ease-in-out infinite;pointer-events:none}
.map-spark-one{left:36%;top:38%}.map-spark-two{left:68%;top:68%;animation-delay:-3s}
@keyframes map-beacon{50%{box-shadow:0 4px 0 #825c35,0 0 0 9px #fff9dc55}}
@keyframes map-firefly{0%,100%{transform:translate(0,0);opacity:.2}50%{transform:translate(18px,-25px);opacity:1}}
@media(max-width:600px){.stage-path.journey-map{aspect-ratio:1/1.12}.journey-map .stage{width:44px;height:44px}.journey-map .stage small{font-size:9px;margin-top:3px}.journey-worlds .world{padding:10px}.journey-world-tabs .btn{flex:1 1 40%;font-size:12px}.journey-map .stage>span{font-size:16px}}
@media(prefers-reduced-motion:reduce){.journey-map .stage.current,.map-spark{animation:none}}
.journey-map .stage:not(.complete) small{display:none}
#scHome #childJourney{order:2;margin:0 0 28px;flex-shrink:0;width:100%;scroll-margin-top:16px}
#scHome #worldMapLabel{font-size:24px;margin:0 0 16px;scroll-margin-top:16px}
#scHome .home-invitation .home-map-link{display:flex;margin:14px auto 0;min-height:44px;font-size:14px;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;box-shadow:none}
#scHome #personalPlan{flex-shrink:0}
/* The child's home IS the journey; no separate invitation or resume card. */
#scHome>.scroll{display:block;max-width:none!important;padding:0!important;height:100%;overflow:hidden}
#scHome .hero,#scHome #worldMapLabel,#scHome .journey-heading,#scHome .adventure-banner{display:none}
#scHome #childJourney{height:100%;margin:0;padding:0;border:0;border-radius:0;background:none}
#scHome #journeyHome{height:100%;display:flex;flex-direction:column;gap:8px}
#scHome .journey-world-tabs{flex-shrink:0;flex-wrap:nowrap;overflow-x:auto;margin:0;padding:6px 8px;gap:6px}
#scHome .journey-world-tabs .btn{flex:0 0 auto;font-size:12px;min-height:44px;padding:8px 12px}
#scHome .journey-worlds{flex:1;min-height:0}
#scHome .journey-worlds .world:not([hidden]){height:100%;padding:0;border:0;border-radius:0;background:none;position:relative}
#scHome .world-heading,#scHome .world-languages,#scHome .world-practice,#scHome .world-note{display:none}
#scHome .stage-path.journey-map{height:100%;aspect-ratio:auto;margin:0;border-radius:16px 16px 0 0}
#scHome .journey-map .stage.current::after{content:'';position:absolute;bottom:110%;left:50%;transform:translateX(-50%);width:52px;height:58px;background:url('../icons/fox-guide.png') left center/300% 100% no-repeat;pointer-events:none;filter:drop-shadow(0 3px 2px #14392b33)}
@media(min-width:1200px){#app:has(#scHome.on){padding-inline:16px}#scHome .journey-world-tabs{justify-content:center}}
/* Personal title and a scrollable landscape instead of squeezing the map. */
#scHome #childJourney{display:flex;flex-direction:column;min-height:0}
#scHome #worldMapLabel{display:block;flex-shrink:0;font-size:20px;margin:0;padding:8px 16px 2px;color:#164e45}
#scHome #journeyHome{flex:1;min-height:0;height:auto}
#scHome .map-viewport{height:100%;width:100%;overflow-x:auto;overflow-y:hidden;direction:ltr;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#164e45 #dce7d6;border-radius:16px 16px 0 0}
#scHome .stage-path.journey-map{width:max(100%,900px);background-image:none;border-radius:0;overflow:hidden}
#scHome .journey-map::before{content:'';display:block;position:absolute;inset:0;background:url('../icons/journey-landscape.v2.webp') center/100% 100% no-repeat;z-index:-1}
[dir=rtl] #scHome .journey-map::before{transform:scaleX(-1)}
#scHome .journey-map .stage.current{z-index:5}
#scHome .journey-map .stage.current::after{width:96px;height:106px;bottom:120%;background-color:#fff9e8;border:3px solid white;border-radius:48%;box-shadow:0 5px 16px #163e454d;background-size:300% 100%}
#scHome .journey-map .stage.current[data-stage$="9"]::after{bottom:auto;top:120%}
#scHome .journey-map::before{width:auto;height:auto;margin:0;border:0;border-radius:0;opacity:1}
/* Mobile game HUD and an unframed guide standing directly on the trail. */
.journey-world-picker{display:none}
#scHome .map-viewport,#scHome .journey-world-tabs{scrollbar-width:none}
#scHome .map-viewport::-webkit-scrollbar,#scHome .journey-world-tabs::-webkit-scrollbar{display:none;width:0;height:0}
#scHome .journey-map .stage.current::after{background-color:transparent;border:0;border-radius:0;box-shadow:none;width:110px;height:120px;bottom:85%;filter:drop-shadow(0 5px 3px #193c3466)}
#scHome .journey-map .stage.current{box-shadow:0 4px 0 #98552a,0 0 0 5px #fff4cd80}
#scHome .journey-worlds .world{margin-top:0}
@media(max-width:600px){
 body[data-child-screen="scHome"] #topbar{display:flex;flex-wrap:nowrap;padding:6px 10px;gap:6px;margin:0;min-height:58px}
 body[data-child-screen="scHome"] #whoPill{flex:1;min-width:0;width:auto;padding:4px 6px;min-height:44px;background:none;border:0;box-shadow:none}
 body[data-child-screen="scHome"] #whoName{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-child-screen="scHome"] #statStrip{flex:0 0 auto;order:0;width:auto;max-width:none;margin:0;padding:6px 8px;gap:8px;border-radius:20px;min-height:38px}
 body[data-child-screen="scHome"] #statStrip .stat-label{display:none}
 body[data-child-screen="scHome"] #statStrip .stat-i{display:flex;gap:4px;padding:0;border:0}
 body[data-child-screen="scHome"] #statStrip .stat-value{font-size:15px}
 body[data-child-screen="scHome"] #topbar .spacer{display:none}
 body[data-child-screen="scHome"] #btnSound{width:44px;height:44px;min-width:44px;box-shadow:none}
 #scHome #worldMapLabel{font-size:18px;padding:4px 14px}
 #scHome #journeyHome{gap:0;position:relative}
 #scHome .journey-world-tabs{display:none}
 #scHome .journey-world-picker{display:flex;align-items:center;gap:8px;position:absolute;inset-inline:12px;top:12px;z-index:6;width:max-content;max-width:calc(100% - 24px);padding:4px 10px;border-radius:22px;background:#fffaf0ed;box-shadow:0 3px 12px #14392b26;color:#164e45}
 .journey-world-picker>span{font-size:11px}
 .journey-world-picker select{border:0;background:transparent;font:inherit;font-size:13px;font-weight:700;color:#164e45;min-height:36px;max-width:190px}
 #scHome .map-viewport{border-radius:0}
 #scHome .stage-path.journey-map{width:max(100%,1050px)}
}
@media(max-width:600px){body[data-child-screen="scHome"] #statStrip .cash,body[data-child-screen="scHome"] #statStrip .fire{display:none}}
/* Animate the original illustration: no regenerated frames or visual drift. */
#scHome #journeyHome{position:relative}
.map-pan-hint{position:absolute;z-index:7;inset-inline:16px;bottom:16px;margin:auto;width:max-content;max-width:calc(100% - 32px);min-height:44px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;border:1px solid #ffffffb3;border-radius:24px;background:#164e45ed;color:#fff9e8;box-shadow:0 4px 16px #163e4540;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.map-pan-hint[hidden]{display:none}.map-pan-hint span{font-size:23px;animation:pan-nudge 1.8s ease-in-out infinite}
#scHome .journey-map .stage.current{animation:map-beacon 2.5s ease-in-out infinite,station-breathe 3s ease-in-out infinite}
#scHome .journey-map .stage.current::after{transform-origin:50% 100%;animation:guide-alive 4s ease-in-out infinite}
@keyframes station-breathe{0%,100%{scale:1}50%{scale:1.06}}
@keyframes guide-alive{0%,100%{transform:translateX(-50%) translateY(0) rotate(0)}35%{transform:translateX(-50%) translateY(-5px) rotate(-2deg)}55%{transform:translateX(-50%) translateY(-2px) rotate(2deg)}70%{transform:translateX(-50%) translateY(0) rotate(0)}}
@keyframes pan-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(-5px)}}
@media(prefers-reduced-motion:reduce){#scHome .journey-map .stage.current,#scHome .journey-map .stage.current::after,.map-pan-hint span{animation:none!important}}
/* Keep hit targets stationary while the visible number and halo breathe. */
#scHome .journey-map .stage.current{animation:map-beacon 2.5s ease-in-out infinite}
#scHome .journey-map .stage.current>span{animation:station-breathe 3s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#scHome .journey-map .stage.current>span{animation:none!important}}
/* Each world has its own original illustration; the route uses matching coordinates. */
#scHome .world-0{--journey-art:url('../icons/journey-landscape.v2.webp')}
#scHome .world-1{--journey-art:url('../icons/journey-word-island.v2.webp')}
#scHome .world-2{--journey-art:url('../icons/journey-letter-valley.v2.webp')}
#scHome .world-3{--journey-art:url('../icons/journey-number-summit.v2.webp')}
#scHome .world-4{--journey-art:url('../icons/journey-knowledge-galaxy.v2.webp')}
#scHome .journey-map::before{background-image:var(--journey-art,url('../icons/journey-landscape.v2.webp'))}
#scHome .world-4 .map-spark{background:#bdf5ff;box-shadow:0 0 15px #a7ebff}
/* Quiet scenery with a clear, interactive trail. Decorative layers never catch taps. */
#scHome .journey-map .map-route,#scHome .journey-map .map-life{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
html[dir="rtl"] #scHome .map-route,html[dir="rtl"] #scHome .map-life{transform:scaleX(-1)}
.map-route path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.map-route .trail-edge{stroke:#bd9c6b;stroke-width:35;opacity:.55}
.map-route .trail-fill{stroke:#fff4d4;stroke-width:29}
.map-route .trail-dashes{stroke:#d7b880;stroke-width:2;stroke-dasharray:2 12}
#scHome .journey-map .stage{z-index:3}
.map-life .life-object{position:absolute;color:#388365;filter:drop-shadow(0 4px 2px #183e4520);animation:map-float 5s ease-in-out infinite}
.map-life .life-one{left:34%;top:22%}.map-life .life-two{left:68%;top:80%;animation-delay:-2s}
.map-life .life-object svg{width:100%;height:100%;stroke-width:2;fill:#fff8df80}
.map-life .life-one{width:38px;height:38px}.map-life .life-two{width:28px;height:28px}
.map-life .drifting-cloud{position:absolute;left:36%;top:12%;width:90px;height:22px;border-radius:50px;background:#fffdf3bb;animation:cloud-travel 20s ease-in-out infinite alternate}
.map-life .drifting-cloud::before,.map-life .drifting-cloud::after{content:"";position:absolute;background:inherit;border-radius:50%;width:35px;height:35px;left:16px;bottom:4px}.map-life .drifting-cloud::after{left:42px;width:26px;height:26px}
.life-0 .life-object{animation-name:leaf-dance;color:#bc7637}
.life-1 .life-object{color:#167e8c;animation-name:book-sail}
.life-2 .life-object{color:#a76c8f}
.life-3 .life-object{color:#25899b;animation-name:crystal-turn}
.life-4 .life-object{color:#ffda8c;animation-name:star-glow}
.life-4 .drifting-cloud{display:none}
.life-4 .life-trail{position:absolute;left:30%;top:18%;width:85px;height:3px;background:linear-gradient(90deg,transparent,#ffdfac);border-radius:50%;animation:comet-pass 9s ease-in infinite}
.life-1 .life-trail{position:absolute;left:53%;top:88%;width:64px;height:14px;border-bottom:3px solid #4faeb9;border-radius:50%;animation:ripple-grow 4s ease-out infinite}
@keyframes map-float{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-18px) rotate(8deg)}}
@keyframes leaf-dance{0%,100%{transform:translate(0,0) rotate(-20deg)}50%{transform:translate(35px,22px) rotate(35deg)}}
@keyframes book-sail{0%,100%{transform:translateX(-16px) rotate(-9deg)}50%{transform:translateX(16px) rotate(9deg)}}
@keyframes crystal-turn{0%,100%{transform:translateY(0) rotate(-12deg);opacity:.75}50%{transform:translateY(-16px) rotate(12deg);opacity:1}}
@keyframes star-glow{0%,100%{transform:scale(.8) rotate(0);opacity:.5}50%{transform:scale(1.2) rotate(20deg);opacity:1}}
@keyframes cloud-travel{from{transform:translateX(-70px)}to{transform:translateX(110px)}}
@keyframes comet-pass{0%,65%{opacity:0;transform:translate(0,0) rotate(25deg)}70%{opacity:1}92%,100%{opacity:0;transform:translate(300px,130px) rotate(25deg)}}
@keyframes ripple-grow{0%{transform:scale(.7);opacity:.8}100%{transform:scale(1.5);opacity:0}}
.world[hidden] .map-life *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.map-life *{animation:none!important}.life-4 .life-trail{display:none}}
/* Topics: one calm subject choice, with optional challenges revealed on demand. */
#scTopics>.scroll{max-width:1000px;padding:18px 18px 32px}
.topics-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.topics-eyebrow{font-size:12px;font-weight:700;color:#698077}.topics-intro .h2{font-size:28px;line-height:1.2;margin:5px 0 8px}.topics-intro p{font-size:14px;color:#677970;margin:0;line-height:1.5}#topicsFox{flex:0 0 80px;overflow:hidden}#topicsFox .fox-guide{width:80px!important;height:90px!important}
#scTopics .subjects{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
#scTopics #subjectList .subj{padding:18px 14px;text-align:start;min-height:148px;border:1px solid #dfe6dd;border-radius:18px;box-shadow:0 3px 0 #e3e7df;background:#fff;position:relative}
#scTopics #subjectList .subj .sic{margin:0 0 14px;border-radius:14px;width:46px;height:46px;background:#e4f0e8!important;color:#236654}
#scTopics #subjectList .subj[data-s="en"] .sic{background:#fff0db!important;color:#b27030}#scTopics #subjectList .subj[data-s="he"] .sic{background:#e6edf8!important;color:#506fa2}#scTopics #subjectList .subj[data-s="ar"] .sic{background:#eee7f5!important;color:#81629b}#scTopics #subjectList .subj[data-s="write"] .sic{background:#fae9df!important;color:#ac704c}
#scTopics #subjectList .nm{font-size:19px}#scTopics #subjectList .ds{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#6c7c73;margin-top:5px}#scTopics .subj:hover{transform:none}
#scTopics .play-area{margin-top:26px;padding-top:20px;border-top:1px solid #dce3d8}#scTopics .play-area>.h2{font-size:20px;margin:0}#scTopics .play-area>p{margin:6px 0 14px;font-size:13px}#scTopics #playGames{grid-template-columns:1fr}#scTopics #playGames .subj{background:#edf3e9;border:1px solid #dce5d6;border-radius:16px;box-shadow:none;min-height:86px;padding:14px 18px}#scTopics #playGames .sic{border-radius:12px}
.topics-more{border-top:1px solid #dfe5dc;margin-top:10px}.topics-more>summary{cursor:pointer;min-height:52px;align-content:center;font-size:14px;font-weight:700;color:#456859}.topics-more[open]>summary{margin-bottom:10px}.topics-more .modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.topics-more .mode{text-align:start;padding:16px;background:#fff;border:1px solid #e0e6dd;border-radius:14px;box-shadow:none}.topics-more .mode .mic{margin:0 0 10px}.topics-more .mode .ds{font-size:12px;line-height:1.5}.topics-support .btn{font-size:14px;text-align:start;margin:8px 0;min-height:48px;background:#fff;color:#164e45;border:1px solid #dfe6dd;box-shadow:none}
#scPick>.scroll{max-width:1000px}#scPick .skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#scPick .skill{border:1px solid #dfe6dd;background:#fff;border-radius:16px;padding:18px;text-align:start;box-shadow:0 2px 0 #e3e7df;cursor:pointer}#scPick .skill .sic{margin:0 0 12px;color:#2f715c;background:#edf3e9}#scPick .skill.wide{grid-column:1/-1;background:#164e45;color:white;display:flex;align-items:center;gap:12px;min-height:64px}#scPick .skill.wide .sic{margin:0;background:#ffffff20;color:white}#scPick .skill .lv{font-size:12px;color:#748279;margin-top:10px}#scPick .skill .mast{height:4px;margin-top:14px}#scPick .skill:focus-visible{outline:3px solid #164e45;outline-offset:3px}
@media(min-width:800px){#scTopics .subjects,#scPick .skills{grid-template-columns:repeat(3,minmax(0,1fr))}#scTopics>.scroll{padding:30px 32px}.topics-intro .h2{font-size:34px}#scTopics #subjectList .subj{min-height:165px}.topics-more .modes{grid-template-columns:repeat(4,minmax(0,1fr))}}
#scTopics #modesT{display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:start}
@media(max-width:600px){#scTopics .topics-intro{margin-bottom:16px}#scTopics #subjectList .subj{min-height:126px;padding:14px}#scTopics #subjectList .subj .sic{width:38px;height:38px;margin-bottom:10px}#scTopics #subjectList .subj[data-s="write"]{grid-column:1/-1;display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center;min-height:76px}#scTopics #subjectList .subj[data-s="write"] .sic{grid-row:1/3;margin:0}#scTopics #subjectList .subj[data-s="write"] .ds{margin:0}#scTopics .topics-intro .h2{font-size:26px}}
/* Discover every activity without opening a hidden menu. */
#scTopics .topics-more{border:0;margin-top:22px}#scTopics .topics-more>h3{font-size:16px;color:#164e45;margin:0 0 12px;text-align:start}
#scTopics .topics-more .mode{position:relative;min-height:132px;border-radius:16px;border:1px solid #dde5db;box-shadow:0 3px 0 #e7ebe2;padding:16px}
#scTopics .topics-more .mode .mic{width:36px;height:36px;border-radius:11px;background:#e7f0e5!important;color:#276a50}
#scTopics .topics-more .mode[data-m="daily"] .mic{background:#e4edf8!important;color:#426d9f}#scTopics .topics-more .mode[data-m="sprint"] .mic{background:#fff0d8!important;color:#a57129}#scTopics .topics-more .mode[data-m="boss"] .mic{background:#f4e5dc!important;color:#ac6445}
#scTopics .topics-more .mode .nm{font-size:16px;line-height:1.35}#scTopics .topics-more .mode .ds{color:#64776b;font-size:12px;margin-top:6px}
#scTopics .topics-support{padding-top:22px;border-top:1px solid #dce3d8;margin-top:24px}.topics-help-grid{display:grid;grid-template-columns:1fr;gap:10px}
#scTopics .topics-help-grid .btn{display:flex;align-items:center;justify-content:flex-start;gap:14px;text-align:start;width:100%;height:100%;margin:0;padding:16px;border-radius:16px;white-space:normal;min-height:86px}#scTopics .topics-help-grid .btn>svg{flex:0 0 28px;width:28px;height:28px}#scTopics .topics-help-grid strong{display:block;font-size:15px;line-height:1.4}#scTopics .topics-help-grid small{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#65786c;margin-top:4px}#scTopics #tutorPreview{background:#fff5e7;border-color:#ead9bf}
@media(min-width:800px){.topics-help-grid{grid-template-columns:1fr 1fr}}
/* Give the desktop Topics illustration breathing room above the cards. */
@media(min-width:1200px){#scTopics .topics-intro{padding-bottom:20px}}
/* Desktop map keeps the same rounded edge above and below, clear of the window edge. */
@media(min-width:1200px){#scHome>.scroll{padding-bottom:20px!important;box-sizing:border-box}#scHome .map-viewport{border-radius:16px}}

/* Keep primary parent destinations stable, with AI central and settings left. */
@media(max-width:1199px){.parent-bottom{direction:rtl}}
.parent-bottom button.upgrade-visible{background:#164e45;color:#fff;border:1px solid #164e45;font-weight:700}
.parent-bottom button.upgrade-visible[aria-current="page"]{background:#103d35}
.parent-bottom button.upgrade-visible[aria-current="page"]:after{background:#d9ed9d}
.child-quick-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;border-top:1px solid #e5e9df;margin-top:16px;padding-top:14px}
.child-quick-actions button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:64px;padding:8px 2px;border:0;border-radius:10px;background:transparent;color:#31574b;font:inherit;font-size:12px;line-height:1.35;cursor:pointer}
.child-quick-actions button:hover{background:#e5eee7}.child-quick-actions button:focus-visible{outline:2px solid #164e45;outline-offset:2px}.child-quick-actions svg{width:22px;height:22px;flex:none}

/* Short, finite welcome sequence; all entry actions remain available. */
.welcome-message .welcome-child-entry{display:flex;margin-top:12px;background:#fff;border:1px solid #a6bfb2;color:#164e45;box-shadow:none;gap:10px;justify-content:center}
.fox-intro{position:relative;isolation:isolate;overflow:hidden;border:1px solid #d5e1d5;border-radius:32px;padding:24px;background:radial-gradient(ellipse at 50% 25%,#fff9e5,#e2eddf 68%);text-align:center}
.fox-intro-orbit{position:absolute;z-index:-1;width:290px;height:290px;border:1px dashed #a2b99a;border-radius:50%;left:50%;top:35px;transform:translateX(-50%)}
.fox-intro-hello{display:inline-block;background:white;border-radius:18px 18px 4px 18px;padding:10px 18px;margin:0;color:#164e45;font-weight:700;animation:intro-rise .65s ease-out both}
.fox-intro-character{height:185px;display:grid;place-items:center}.fox-intro-character .fox-guide{width:190px;height:190px;animation:intro-fox 2.6s ease-in-out both}.fox-intro-character .fox-welcome{display:block}
.fox-intro-cards{display:grid;gap:10px;text-align:start}.fox-intro-card{display:flex;gap:12px;align-items:center;background:#ffffffed;border:1px solid #dde6d5;border-radius:16px;padding:14px;box-shadow:0 5px 14px #164e4507;animation:intro-rise .65s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(.35s + var(--intro-order)*.5s)}
.fox-intro-card>span{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#edf3df;border-radius:12px;color:#164e45}.fox-intro .fox-intro-card h2{font-size:18px;margin:0 0 3px;line-height:1.3}.fox-intro-card p{font-size:13px;line-height:1.5;margin:0;color:#52695d}
.fox-intro-invite{font-size:14px;font-weight:600;color:#164e45;margin:18px 0 0;animation:intro-rise .6s 2s both}
@keyframes intro-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes intro-fox{0%{opacity:0;transform:translateY(18px) scale(.88)}25%{opacity:1;transform:translateY(-4px) rotate(-5deg)}50%{transform:rotate(5deg)}75%{transform:rotate(-2deg)}100%{opacity:1;transform:none}}
@media(max-width:700px){.welcome-hero{padding-top:16px}.fox-intro{padding:20px;border-radius:24px}.fox-intro-character{height:150px}.fox-intro-character .fox-guide{width:160px;height:160px}.welcome-message .welcome-child-entry{font-size:15px}}
@media(prefers-reduced-motion:reduce){.fox-intro *{animation:none!important;transition:none!important}}
@media(max-width:700px){.welcome-hero>.fox-intro{order:-1}.welcome-message h1{font-size:32px}.welcome-message>p{font-size:15px}}

/* A scroll-linked product story: native scrolling, no wheel/touch interception. */
.welcome-scroll-story{margin:20px 0 0;position:relative;--story-progress:0}.welcome-scroll-story.is-scroll{height:340svh}.story-stage{position:relative;background:#e2eddf;border-radius:28px;color:#164e45;padding:26px;box-sizing:border-box}.is-scroll .story-stage{position:sticky;top:0;height:100svh;min-height:500px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.story-top,.story-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;position:relative;z-index:4;font-size:13px}.story-skip{color:inherit;min-height:44px;display:flex;align-items:center;text-underline-offset:5px}.story-orbit{position:absolute;width:65%;aspect-ratio:1;border:1px solid #9eb79988;border-radius:50%;left:15%;top:15%;pointer-events:none;transform:scale(calc(.8 + var(--story-progress)*.5))}.story-scenes{position:relative;flex:1;width:100%}.story-scene{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center;padding:32px 0}.is-scroll .story-scene{position:absolute;inset:0;will-change:transform,opacity}.story-copy{position:relative;z-index:2}.story-copy>small{font-size:14px;font-weight:700;letter-spacing:3px}.product-welcome .story-copy h2{font-size:clamp(32px,4.5vw,64px);line-height:1.15;margin:20px 0}.story-copy em{font-style:normal;color:#ac6430}.story-copy p{max-width:430px;font-size:18px;line-height:1.7}.story-art{display:grid;place-items:center;min-width:0}.story-phone{height:min(59svh,510px);width:auto;max-width:100%;object-fit:contain;border-radius:24px;box-shadow:0 24px 60px #164e4526;transform:rotate(-5deg)}.story-report{width:100%;max-width:340px;background:#fffdf6;border-radius:24px;padding:26px;box-sizing:border-box;box-shadow:0 20px 60px #164e4520;transform:rotate(4deg)}.story-report strong{display:block;font-size:58px;direction:ltr;text-align:center}.story-report p{font-size:14px;text-align:center}.story-bars{height:140px;display:flex;gap:12px;align-items:end}.story-bars i{flex:1;height:var(--bar);background:#7b9e72;border-radius:8px 8px 0 0}.story-rewards{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;text-align:center}.story-rewards>span{width:80px;height:90px;display:grid;place-items:center;background:#fff4cb;border:1px solid #e8c47b;border-radius:24px;box-shadow:0 15px 30px #164e4515;transform:rotate(-8deg)}.story-rewards>span:nth-child(2){transform:translateY(-30px) rotate(8deg)}.story-rewards svg{width:40px;height:40px}.story-rewards strong{width:100%;font-size:20px}.story-fox{position:absolute;z-index:3;bottom:50px;left:42%;pointer-events:none;transform:translateX(var(--fox-x,0px)) rotate(var(--fox-turn,0deg))}.story-fox .fox-guide{width:150px;height:160px;animation:none}.story-meter{width:110px;height:4px;background:#164e4520;border-radius:4px;overflow:hidden;direction:ltr}.story-meter i{display:block;height:100%;background:#164e45;transform-origin:left;transform:scaleX(var(--story-progress));width:100%}.welcome-scroll-story[data-chapter="1"] .story-stage{background:#e5eaf2}.welcome-scroll-story[data-chapter="2"] .story-stage{background:#f5e7d2}.welcome-scroll-story+.welcome-hero{display:block;max-width:720px;margin:auto;text-align:center}.welcome-scroll-story+.welcome-hero .welcome-child-entry{margin:12px auto}.welcome-scroll-story+.welcome-hero .entry-privacy{margin-inline:auto}.welcome-scroll-story+.welcome-hero .welcome-message>p{margin-inline:auto}#welcomeStart{scroll-margin-top:24px}
@media(max-width:700px){.welcome-scroll-story{margin-inline:-12px}.story-stage{padding:16px;border-radius:20px}.story-top{font-size:11px;gap:10px}.story-scene{grid-template-columns:1fr;gap:8px;padding:10px 0;align-content:center}.story-copy{text-align:center}.product-welcome .story-copy h2{font-size:32px;margin:8px 0}.story-copy p{font-size:14px;line-height:1.5;margin:8px auto;max-width:290px}.story-copy>small{font-size:11px}.story-phone{height:32svh;max-height:290px}.story-report{max-width:230px;padding:16px}.story-report strong{font-size:38px}.story-bars{height:70px;gap:7px}.story-fox{left:0;bottom:55px}.story-fox .fox-guide{width:105px;height:115px}.story-bottom{font-size:11px}.story-meter{width:65px}.story-rewards{padding:40px 10px;gap:10px}.story-rewards>span{width:60px;height:70px}.story-rewards strong{font-size:16px}.is-scroll .story-stage{min-height:540px}}
@media(prefers-reduced-motion:reduce){.welcome-scroll-story{height:auto!important}.story-stage{height:auto!important;position:relative!important;overflow:visible}.story-scene{position:relative!important;opacity:1!important;visibility:visible!important;transform:none!important}.story-fox,.story-orbit,.story-bottom{display:none}.story-phone,.story-report,.story-rewards>span{transform:none}.story-scene{border-top:1px solid #164e4522}.story-art{padding-bottom:24px}}

/* Keep moving chapters separate and numeric progress in reading order. */
.is-scroll .story-scenes{overflow:hidden}.story-copy>small{direction:ltr;display:inline-block}

/* A locally hosted, silent mascot clip; the original illustration is the fallback. */
.story-fox{bottom:90px}.story-fox-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:24px;opacity:0;background:#f7ead8;box-shadow:0 8px 24px #164e4510}.story-fox.video-ready>.fox-guide{visibility:hidden}.story-fox.video-ready>.story-fox-video{opacity:1}.story-fox-toggle{position:absolute;top:100%;left:0;width:100%;min-height:44px;border:0;background:transparent;color:#164e45;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;pointer-events:auto}.story-fox-toggle:focus-visible{outline:2px solid currentColor;border-radius:8px}.story-fox-toggle[hidden]{display:none}
@media(max-width:700px){.story-fox{bottom:105px}}
@media(prefers-reduced-motion:reduce){.story-fox-video,.story-fox-toggle{display:none!important}}
/* Fokilo landing: open white canvas, product-led composition and gentle reveals. */
#familyPage.welcome-page{background:#fff;color:#173e36;overflow:clip}
#familyPage.welcome-page>.family-shell{max-width:1240px;padding:30px 40px 0}
#familyPage.welcome-page>.family-shell>header{height:48px;position:relative;z-index:2;max-width:240px}
.landing-clean{position:relative;color:#173e36;--coral:#df7755;--muted:#65756e}
.landing-nav{display:flex;justify-content:flex-end;align-items:center;gap:28px;height:48px;margin-top:-48px;margin-bottom:28px;font-size:14px}
.landing-nav a,.landing-nav button{color:#35574c;background:none;border:0;text-decoration:none;font:inherit;min-height:44px;display:inline-flex;align-items:center;cursor:pointer}
.landing-nav button{border:1px solid #dce5df;border-radius:24px;padding:8px 20px}
.landing-hero{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;min-height:660px;padding:20px 0 55px}
.landing-kicker{font-size:13px;font-weight:600;color:#bc6547;display:block;margin-bottom:17px;letter-spacing:.02em}
.landing-clean h1{font-size:clamp(46px,5.5vw,76px);letter-spacing:-2.4px;line-height:1.12;margin:0 0 24px;font-weight:800;color:#173e36}
.landing-clean h1 em{font-style:normal;color:var(--coral)}
.landing-copy>p{font-size:19px;line-height:1.85;color:var(--muted);max-width:430px;margin:0 0 30px}
.landing-actions{display:flex;flex-direction:column;gap:10px;max-width:300px}
.landing-clean button{font-family:inherit;cursor:pointer}
.landing-primary,.landing-child{border-radius:32px;min-height:54px;padding:14px 23px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:600;border:0;text-decoration:none;transition:background .2s,transform .2s}
.landing-primary{background:#246b56;color:white;box-shadow:0 8px 18px #246b561a}.landing-primary:hover{background:#195640;transform:translateY(-2px)}
.landing-child{background:#f0f5ef;color:#315b4b}.landing-child:hover{background:#e5efe5}
.landing-clean button svg{width:19px;height:19px}.landing-note{display:block;color:#829087;font-size:11px;margin:18px 0 5px}.landing-privacy{font-size:11px;color:#6d7c73;text-underline-offset:3px}
.landing-visual{height:570px;position:relative;isolation:isolate;direction:ltr}
.landing-blob{position:absolute;inset:25px -55px 20px -15px;background:#e6efe3;border-radius:43% 57% 39% 61% / 52% 40% 60% 48%;transform:rotate(-17deg);z-index:-2}
.landing-blob:after{content:'';position:absolute;width:220px;height:220px;border-radius:50%;background:#fbede4;right:-25px;top:-45px;z-index:-1;opacity:.8}
.landing-ring{position:absolute;border:1px solid #c5d7c0;border-radius:50%;width:440px;height:440px;left:0;top:70px;transform:rotate(-20deg);z-index:-1}
.landing-phone{position:absolute;width:224px;padding:7px;background:#254b40;border:1px solid #45675b;border-radius:32px;box-shadow:14px 24px 35px #193c3924;overflow:hidden;box-sizing:border-box}
.landing-phone img{display:block;width:100%;height:auto;border-radius:25px}
.phone-back{left:1%;top:43px;transform:translateY(calc(var(--drift,0px)*-1)) rotate(-11deg);opacity:.98}
.phone-front{left:42%;top:111px;transform:translateY(var(--drift,0px)) rotate(10deg)}
.landing-float{display:grid;place-items:center;position:absolute;border-radius:50%;box-shadow:0 7px 20px #2d4e3810}
.float-star{background:#fff6d6;width:62px;height:62px;top:12px;left:59%;transform:rotate(14deg);color:#c9943c}.float-star svg{width:30px;height:30px}
.float-letter{width:54px;height:54px;background:#fbe7dc;color:#b57050;font-size:29px;font-weight:700;top:285px;left:-22px;transform:rotate(-12deg)}
.float-number{background:white;left:18px;bottom:13px;padding:9px 18px;border-radius:18px;font-size:22px;color:#37644e;transform:rotate(-7deg);font-weight:600}
.landing-subjects{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:29px 0;border-block:1px solid #edf0eb;flex-wrap:wrap;color:#6c7b72;font-size:15px}.landing-subjects>span{font-size:12px;color:#99a299}.landing-subjects b{font-weight:500}
.landing-clean h2{font-size:clamp(30px,3.3vw,44px);line-height:1.28;letter-spacing:-1px;font-weight:700;color:#173e36;margin:0 0 22px}
.landing-features{padding:100px 0 85px;text-align:center;scroll-margin-top:28px}
.landing-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:55px;text-align:start;margin-top:54px}
.landing-feature-icon{width:49px;height:49px;display:grid;place-items:center;border-radius:15px;background:#eaf2e8;color:#497951;margin-bottom:20px}.landing-feature-icon svg{width:25px;height:25px}.landing-feature-grid article:nth-child(2) .landing-feature-icon{background:#fff1df;color:#be8b42}.landing-feature-grid article:nth-child(3) .landing-feature-icon{background:#f5e8e1;color:#ae6b54}
.landing-feature-grid h3{font-size:19px;margin:0 0 10px;font-weight:600}.landing-feature-grid p,.landing-journey p,.landing-parent p,.landing-invite p{font-size:16px;line-height:1.85;color:var(--muted);margin:0;max-width:440px}
.landing-journey,.landing-parent{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center;padding:65px 0 100px}
.landing-world{position:relative;padding:26px 36px;background:#f4f6ed;border-radius:46% 54% 42% 58% / 48% 37% 63% 52%;min-width:0}
.landing-world>img{display:block;width:100%;height:360px;object-fit:cover;border-radius:30px;transform:rotate(-5deg);box-shadow:0 20px 32px #24483e15}
.landing-world>span{display:flex;align-items:center;justify-content:center;gap:8px;position:absolute;bottom:10px;left:10px;background:white;border-radius:14px;padding:14px 20px;box-shadow:0 10px 32px #24483e10;font-size:13px}.landing-world svg{width:20px;color:#ca9a45}
.landing-text-button{border:0;background:none;color:#246b56;font-weight:600;font-size:14px;padding:18px 0;min-height:48px;margin-top:14px}
.landing-parent ul{list-style:none;padding:0;margin:24px 0 0;color:#516d5f;font-size:14px;line-height:2.6}.landing-parent li:before{content:'✓';display:inline-block;margin-inline-end:12px;color:#5a916b}
.landing-report{background:#fff;border:1px solid #eef0eb;padding:32px;border-radius:22px;box-shadow:0 20px 70px #24483e0d;transform:rotate(3deg);position:relative}
.landing-report:before{content:'';position:absolute;inset:-30px;background:#fcf4e9;z-index:-1;border-radius:50%;transform:rotate(-10deg)}
.landing-report-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px;font-weight:600}.landing-report-title svg{width:22px;color:#5b8b70}.landing-report-title small{width:100%;font-size:10px;font-weight:400;color:#91a094}.landing-report>strong{display:block;direction:ltr;text-align:start;font-size:60px;line-height:1.2;margin-top:26px;font-weight:600}.landing-report>strong span{font-size:26px;color:#b2c2b4}.landing-report>p{font-size:12px;margin:8px 0 25px}.landing-bars{display:flex;align-items:end;gap:15px;height:120px;direction:ltr}.landing-bars i{height:var(--height);flex:1;background:#9cbca0;border-radius:6px 6px 0 0}.landing-bars i:last-child{background:#386e52}.landing-report-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0eb;margin-top:20px;padding-top:18px;font-size:11px;color:#7d9282}.landing-report-foot svg{width:18px;color:#d6a663}
.landing-invite{display:flex;align-items:center;justify-content:center;gap:55px;background:#fbf5ed;border-radius:32px;margin:35px 0 80px;padding:52px 35px}.landing-invite h2{font-size:34px;margin-bottom:12px}.landing-invite .landing-primary{margin-top:24px}
.landing-mascot{position:relative;width:190px;height:190px;flex:none}.landing-mascot .fox-guide{width:190px;height:190px;animation:none}.landing-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:50%;opacity:0}.landing-mascot.video-ready>.fox-guide{visibility:hidden}.landing-mascot.video-ready>.landing-video{opacity:1}.landing-pause{position:absolute;top:100%;left:0;width:100%;min-height:44px;background:none;border:0;color:#7d776b;text-decoration:underline;font-size:10px}.landing-pause[hidden]{display:none}
.landing-footer{display:flex;align-items:center;gap:28px;font-size:12px;padding:28px 0 36px;border-top:1px solid #edf0eb;color:#829186}.landing-footer span{margin-inline-end:auto}.landing-footer a{color:inherit;text-decoration:none;min-height:44px;display:flex;align-items:center}
.landing-clean :focus-visible{outline:3px solid #cfa470;outline-offset:4px}
.landing-reveal.reveal-ready{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}.landing-reveal.revealed{opacity:1;transform:none}
@media(max-width:900px){.landing-hero{gap:28px}.landing-phone{width:190px}.landing-visual{height:510px}.landing-blob{inset:20px -20px}.landing-ring{width:330px;height:330px}.phone-front{left:37%;top:125px}.landing-journey,.landing-parent{gap:42px}.landing-world{padding:18px}.landing-world>img{height:310px}.landing-feature-grid{gap:25px}}
@media(max-width:700px){#familyPage.welcome-page>.family-shell{padding:24px 24px 0}#familyPage.welcome-page>.family-shell>header{height:42px;max-width:135px}.landing-nav{height:42px;margin-top:-42px;margin-bottom:26px;gap:0}.landing-nav>a{display:none}.landing-nav button{font-size:11px;padding:6px 13px}.landing-hero{display:flex;flex-direction:column;gap:20px;min-height:0;padding:30px 0 35px}.landing-copy{width:100%;text-align:center}.landing-kicker{font-size:11px;margin-bottom:15px}.landing-clean h1{font-size:48px;letter-spacing:-1.8px;margin-bottom:20px}.landing-copy>p{font-size:15px;line-height:1.8;max-width:320px;margin:0 auto 23px}.landing-actions{max-width:290px;margin:auto;gap:8px}.landing-primary,.landing-child{min-height:50px;font-size:14px}.landing-note{font-size:10px;margin-top:15px}.landing-visual{width:100%;max-width:370px;height:405px;margin-top:14px}.landing-phone{width:160px;padding:5px;border-radius:24px}.landing-phone img{border-radius:19px}.phone-back{left:4%;top:22px}.phone-front{left:44%;top:65px}.landing-blob{inset:5px -15px 0;border-radius:45% 55% 40% 60%}.landing-blob:after{width:150px;height:150px;right:0;top:0}.landing-ring{width:300px;height:300px;left:8px;top:30px}.float-star{width:44px;height:44px;top:0;left:65%}.float-star svg{width:24px}.float-letter{width:40px;height:40px;font-size:23px;left:0;top:205px}.float-number{font-size:16px;bottom:20px;left:12px}.landing-subjects{justify-content:center;gap:16px 23px;font-size:13px;padding:22px 0}.landing-subjects>span{width:100%;text-align:center;font-size:11px}.landing-features{padding:65px 0 35px}.landing-clean h2{font-size:30px;letter-spacing:-.7px}.landing-feature-grid{grid-template-columns:1fr;gap:29px;margin-top:35px}.landing-feature-grid article{display:grid;grid-template-columns:45px 1fr;gap:3px 17px}.landing-feature-icon{grid-row:1/3;width:42px;height:42px;margin:0}.landing-feature-grid h3{font-size:17px;margin:0 0 5px}.landing-feature-grid p{font-size:14px}.landing-journey,.landing-parent{grid-template-columns:1fr;gap:38px;padding:40px 0}.landing-journey>div:last-child{grid-row:1}.landing-journey p,.landing-parent p{font-size:15px}.landing-world{padding:20px 25px}.landing-world>img{height:290px}.landing-world>span{font-size:11px;padding:11px 15px}.landing-report{margin:12px 10px 20px;padding:25px}.landing-report:before{inset:-14px}.landing-report>p{font-size:12px}.landing-invite{flex-direction:column;gap:46px;padding:35px 22px;margin:25px 0 45px;text-align:center}.landing-invite h2{font-size:28px}.landing-invite p{font-size:14px}.landing-mascot,.landing-mascot .fox-guide{width:155px;height:155px}.landing-footer{flex-wrap:wrap;justify-content:center;gap:5px 25px;font-size:11px}.landing-footer span{width:100%;text-align:center;margin:0}.landing-footer a{min-height:40px}}
@media(max-width:360px){.landing-clean h1{font-size:42px}.landing-phone{width:140px}.landing-visual{height:365px}.landing-ring{width:250px;height:250px}}
@media(prefers-reduced-motion:reduce){.landing-reveal.reveal-ready{opacity:1;transform:none;transition:none}.landing-primary,.landing-child{transition:none}.landing-video,.landing-pause{display:none!important}.landing-mascot.video-ready>.fox-guide{visibility:visible}}
/* Twenty numbered stops per world: space to explore instead of crowded markers. */
#scHome .stage-path.journey-map{width:max(100%,2300px)}
#scHome .map-route path{vector-effect:non-scaling-stroke}
#scHome .journey-map .stage small{display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px;min-width:56px}
#scHome .journey-map .stage:disabled>span{color:#536552;font-size:17px;opacity:1}
/* Gentle, finite entrance motion; scroll and hover keep the page responsive. */
@keyframes landing-soft-in{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@keyframes landing-phone-in{from{opacity:0;translate:0 28px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes landing-float-greet{0%,100%{translate:0 0}30%{translate:0 -9px}65%{translate:0 4px}}
@keyframes landing-icon-in{from{opacity:0;scale:.8;rotate:-8deg}to{opacity:1;scale:1;rotate:0deg}}
@keyframes landing-bar-grow{from{scale:1 0}to{scale:1 1}}
.landing-copy>.landing-kicker{animation:landing-soft-in .65s .05s both}
.landing-copy>h1{animation:landing-soft-in .75s .12s both}
.landing-copy>p{animation:landing-soft-in .75s .22s both}
.landing-actions{animation:landing-soft-in .75s .32s both}
.landing-phone{animation:landing-phone-in 1s .18s both}
.landing-phone.phone-front{animation-delay:.32s}
.landing-float{animation:landing-float-greet 4.5s ease-in-out .2s both}
.landing-float.float-letter{animation-delay:.35s}
.landing-float.float-number{animation-delay:.45s}
.landing-float.float-star{translate:0 calc(var(--drift,0px)*-.6)}
.landing-features.reveal-ready .landing-feature-grid article{opacity:0;translate:0 18px}
.landing-features.revealed .landing-feature-grid article{animation:landing-soft-in .7s ease both}
.landing-features.revealed .landing-feature-grid article:nth-child(2){animation-delay:.12s}
.landing-features.revealed .landing-feature-grid article:nth-child(3){animation-delay:.24s}
.landing-features.revealed .landing-feature-icon{animation:landing-icon-in .6s .2s both}
.landing-parent.reveal-ready .landing-bars i{scale:1 0;transform-origin:bottom}
.landing-parent.revealed .landing-bars i{animation:landing-bar-grow .85s cubic-bezier(.22,1,.36,1) both}
.landing-bars i:nth-child(2){animation-delay:.08s!important}.landing-bars i:nth-child(3){animation-delay:.16s!important}.landing-bars i:nth-child(4){animation-delay:.24s!important}.landing-bars i:nth-child(5){animation-delay:.32s!important}.landing-bars i:nth-child(6){animation-delay:.4s!important}.landing-bars i:nth-child(7){animation-delay:.48s!important}
.landing-journey.revealed .landing-world>span{animation:landing-soft-in .7s .25s both}
.landing-primary svg,.landing-child svg,.landing-feature-icon,.landing-world>img,.landing-nav button{transition:translate .25s ease,box-shadow .25s ease,background .25s ease}
@media(hover:hover) and (pointer:fine){.landing-primary:hover svg{translate:-3px 0}.landing-child:hover svg{translate:0 -2px}.landing-feature-grid article:hover .landing-feature-icon{translate:0 -4px;box-shadow:0 6px 14px #24483e0c}.landing-world:hover>img{translate:0 -5px}.landing-nav button:hover{background:#f0f5ef}}
@media(prefers-reduced-motion:reduce){.landing-clean *{animation:none!important;transition:none!important}.landing-clean .landing-feature-grid article{opacity:1!important;translate:none!important}.landing-clean .landing-bars i{scale:1 1!important}.landing-clean .landing-float{translate:none!important}}
/* Scroll-built adventure path, kept within the illustrated landscape. */
.landing-map-scene{position:relative;height:360px;transform:rotate(-5deg);border-radius:30px;box-shadow:0 20px 32px #24483e15;overflow:hidden}
.landing-map-scene>img{display:block;width:100%;height:100%;object-fit:cover}
.landing-route{position:absolute;inset:0;pointer-events:none;direction:ltr}
.landing-route>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.landing-route path{fill:none;stroke:#fff6d9;stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;filter:drop-shadow(0 2px 1px #42694344)}
.landing-stop{position:absolute;left:var(--x);top:var(--y);translate:-50% -50%;display:grid;place-items:center;width:32px;height:32px;background:#fff9e8;border:3px solid #719856;border-radius:50%;color:#305b38;font-size:14px;font-weight:700;opacity:0;scale:.6;transition:opacity .3s,scale .4s cubic-bezier(.2,1.5,.5,1);box-shadow:0 4px 7px #36573726}
.landing-stop.arrived{opacity:1;scale:1}
.landing-travel-fox.fox-guide{position:absolute;width:66px;height:70px;translate:-50% -90%;animation:none;z-index:2;transition:opacity .3s;filter:drop-shadow(0 3px 3px #28472d22)}
.landing-nav [data-landing-language]{font-size:12px;padding:7px 14px;background:#f4f7f1;border-color:transparent}
[dir=ltr] .landing-primary svg{rotate:180deg}
@media(max-width:900px){.landing-map-scene{height:310px}}
@media(max-width:700px){.landing-map-scene{height:290px}.landing-nav{gap:8px}.landing-nav [data-landing-language]{padding:6px 10px;font-size:11px}.landing-travel-fox.fox-guide{width:58px;height:62px}.landing-stop{width:27px;height:27px;font-size:12px}}
@media(max-width:360px){#familyPage.welcome-page>.family-shell>header .family-brand small{display:none}.landing-nav{gap:4px}.landing-nav button{padding:6px 9px;font-size:10px}.landing-nav [data-landing-language]{padding:6px 7px;font-size:10px}}
@media(max-width:700px){#familyPage.welcome-page>.family-shell>header .family-brand small{display:none}}
/* Desktop map navigation and undistorted scenery. */
.map-pan-controls{position:absolute;inset:0;pointer-events:none;z-index:8;direction:ltr}
.map-pan-controls[hidden]{display:none}
.map-pan-controls button{position:absolute;top:50%;translate:0 -50%;width:46px;height:46px;border:1px solid #ffffffb3;border-radius:50%;background:#164e45eb;color:#fff9e8;box-shadow:0 4px 16px #173e3626;font:700 25px Arial;cursor:pointer;pointer-events:auto}
.map-pan-controls [data-pan="-1"]{left:12px}.map-pan-controls [data-pan="1"]{right:12px}.map-pan-controls button:disabled{opacity:.3;cursor:default}.map-pan-controls button:focus-visible{outline:3px solid #f8c783;outline-offset:3px}
@media(hover:hover) and (pointer:fine){#scHome .map-viewport{cursor:grab;scrollbar-width:thin;scrollbar-color:#527e63 #dce7d6}#scHome .map-viewport::-webkit-scrollbar{display:block;height:9px}#scHome .map-viewport::-webkit-scrollbar-thumb{background:#527e63;border-radius:9px}#scHome .map-viewport.dragging{cursor:grabbing;user-select:none}#scHome .map-viewport.dragging *{cursor:grabbing}}
@media(pointer:coarse){.map-pan-controls{display:none}}
/* Keep one proportionate landscape behind the travelling route. */
#scHome .map-viewport{background:var(--journey-art,url('../icons/journey-landscape.v2.webp')) center/cover no-repeat}
#scHome .stage-path.journey-map{background:transparent}
#scHome .journey-map::before{display:none}
/* Mobile: reveal the landscape as the route is swiped, without stretching it. */
@media(max-width:900px),(pointer:coarse){#scHome .map-viewport{background-position:var(--map-pan,50%) center}}
@media(prefers-reduced-motion:reduce){#scHome .map-viewport{background-position:center}}
/* Use the available profile width and keep the mobile HUD compact. */
#scChildProfile>.child-profile{width:100%;max-width:1000px;box-sizing:border-box;padding:10px 14px 20px;margin:0 auto}
.child-profile>.card{padding:18px;margin:12px 0}
.child-profile-identity{display:flex;align-items:center;gap:16px;text-align:start;margin-bottom:20px}
.child-profile-identity .avatar{margin:0;width:66px;height:66px;flex:0 0 66px;border-radius:20px}
.child-profile-identity .avatar svg,.child-profile-identity .avatar img{width:100%;height:100%}
.child-profile-identity h1{font-size:26px;line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}
.child-profile-identity p{font-size:14px;margin:0;color:var(--ink-2)}
.child-profile .child-progress-grid{gap:10px}
.child-profile .child-progress-grid>div{padding:12px 8px;gap:4px;min-height:72px;justify-content:center;box-sizing:border-box}
.child-profile .child-progress-grid>div:last-child{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;min-height:60px}
.child-profile .child-progress-grid strong{font-size:26px;line-height:1.2}
.child-profile .child-progress-grid span{font-size:13px}
.child-profile>#childParentEntry,.child-profile>#childProfileResume{width:100%;min-height:46px;margin:0 0 10px}
#childProfileHome{min-height:44px;padding:10px 16px}
#statStrip{direction:ltr}#statStrip .stat-coins{order:0}#statStrip .lvl{order:1}#statStrip .fire{order:2}
@media(max-width:700px){#app>.topbar .statstrip{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px 0;min-height:40px;box-sizing:border-box}#statStrip .stat-i{display:flex;gap:7px;min-height:26px;padding:1px 10px;justify-content:center;border:0}#statStrip .stat-coins{grid-column:1;grid-row:1}#statStrip .lvl{grid-column:2;grid-row:1;border-left:1px solid var(--card-edge)}#statStrip .stat-value{font-size:18px;line-height:1.2}#statStrip .stat-label{font-size:11px}#scChildProfile>.child-profile{padding:8px 10px 16px}.child-profile>.card{padding:16px;margin:10px 0}.child-profile-identity{margin-bottom:16px}}
@media(min-width:900px){.child-profile .child-progress-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.child-profile .child-progress-grid>div:last-child{grid-column:auto;flex-direction:column;gap:4px}.child-profile .child-progress-grid>div{min-height:100px}}
/* Landing CTA direction is explicit in both languages. */
.landing-cta-arrow{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ffffff20;font:20px/1 Arial;flex:none;transition:translate .2s}
.landing-primary:hover .landing-cta-arrow{translate:2px 0}[dir=ltr] .landing-primary:hover .landing-cta-arrow{translate:-2px 0}
.parent-settings .settings-list>.btn{width:100%;margin:0}
.parent-settings .settings-logout{display:flex;align-items:center;justify-content:center;width:100%;max-width:600px;min-height:58px;margin:0;border:1px solid #dccfc8;background:#fcf5f1;color:#88543d;border-radius:14px}
@media(min-width:1200px){.parent-settings .settings-logout{max-width:900px}}
#missionsT{display:flex;align-items:center;gap:10px;list-style:none;min-height:48px;padding:4px 0}#missionsT::-webkit-details-marker{display:none}#missionsT>svg{width:22px;height:22px;flex:none}#missionsT:after{content:'⌄';margin-inline-start:auto;display:inline-block;font-size:24px;line-height:1;transition:rotate .2s}.child-extra[open]>#missionsT:after{rotate:180deg}
#familyAuthProgress{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:#f7f5efed;padding:24px;color:#164e45;text-align:center;font:inherit}#familyAuthProgress>div{max-width:360px;padding:30px;background:white;border:1px solid #dce5df;border-radius:24px;box-shadow:0 14px 48px #164e4510}#familyAuthProgress p{line-height:1.7;font-size:17px}.auth-progress-spinner{display:inline-block;width:32px;height:32px;border:3px solid #dce9df;border-top-color:#246b56;border-radius:50%;animation:auth-turn .8s linear infinite}@keyframes auth-turn{to{rotate:360deg}}
.profile-frame-preview{display:inline-grid;place-items:center;padding:8px;border-radius:30%;border:5px solid transparent;box-sizing:border-box}
.frameLeaf,body[data-profile-frame=frameLeaf] #whoAvatar,body[data-profile-frame=frameLeaf] .child-profile .avatar{outline:3px solid #729b56;box-shadow:0 0 0 6px #dfeacd;border-radius:30%}
.frameWave,body[data-profile-frame=frameWave] #whoAvatar,body[data-profile-frame=frameWave] .child-profile .avatar{outline:3px solid #4f9cb9;box-shadow:0 0 0 6px #d8f2f6;border-radius:40% 25%}
.frameSun,body[data-profile-frame=frameSun] #whoAvatar,body[data-profile-frame=frameSun] .child-profile .avatar{outline:3px dashed #d69831;box-shadow:0 0 0 6px #fff0bd;border-radius:50%}
.frameStars,body[data-profile-frame=frameStars] #whoAvatar,body[data-profile-frame=frameStars] .child-profile .avatar{outline:3px dotted #9270b7;box-shadow:0 0 0 6px #ece4f7;border-radius:25%}
@media(prefers-reduced-motion:reduce){.auth-progress-spinner{animation:none}.landing-cta-arrow,#missionsT:after{transition:none}}
/* A stable SVG arrow at the leading edge; independent of font and bidi shaping. */
.landing-clean .landing-primary{position:relative;display:grid;place-items:center;padding:16px 62px;min-height:58px;border-radius:18px;line-height:1.4;text-align:center}
.landing-clean .landing-cta-arrow{position:absolute;inset-inline-start:16px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#ffffff12;translate:none!important;transition:background .2s}
.landing-clean .landing-cta-arrow svg{width:22px;height:22px;display:block;rotate:0deg;translate:none!important;transform:none}
.landing-clean[data-language=en] .landing-cta-arrow svg{rotate:180deg}
.landing-clean .landing-primary:hover .landing-cta-arrow{background:#ffffff25}
.landing-ai{--ai-progress:0;position:relative;overflow:hidden;background:#153f36;color:#edf5e9;border-radius:36px;margin:45px 0 60px;padding:44px 48px;isolation:isolate}
.landing-ai:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 15% 40%,#a9cc9433,transparent 55%),radial-gradient(ellipse at 85% 100%,#df77551a,transparent 55%)}
.landing-ai-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:35px;border-bottom:1px solid #ffffff20;margin-bottom:40px}
.landing-ai-brand{font-size:27px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:8px}.landing-ai-brand b{font-size:14px;letter-spacing:0;background:#dcebc9;color:#153f36;border-radius:7px;padding:5px 7px}.landing-ai-brand i{font-style:normal;color:#e99d7f;margin-left:5px}
.landing-ai-pilot{font-size:11px;color:#c3d4c8;letter-spacing:.3px}.landing-ai-layout{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.landing-ai .landing-kicker{color:#e5ac90}.landing-ai h2{color:#fff;font-size:clamp(28px,3.2vw,43px);line-height:1.24;letter-spacing:-1.1px}.landing-ai h2 em{font-style:normal;color:#c3dda7}.landing-ai-copy>p{color:#c6d8cc;font-size:15px;line-height:1.85;max-width:460px}
.landing-ai-steps{padding:0;margin:30px 0 0;list-style:none;display:grid;gap:8px}.landing-ai-steps li{display:flex;gap:16px;padding:15px 0;align-items:flex-start;opacity:.55;transition:opacity .45s,translate .45s;translate:0 5px}.landing-ai-steps li.active{opacity:1;translate:0 0}.ai-step-number{font-size:12px;font-variant-numeric:tabular-nums;display:grid;place-items:center;width:32px;height:32px;border:1px solid #c3dda75c;border-radius:50%;flex:none;color:#c3dda7}.active .ai-step-number{background:#c3dda7;color:#153f36;border-color:transparent}.landing-ai-steps h3{font-size:16px;margin:0 0 5px;color:#f8fcf4}.landing-ai-steps p{font-size:13px;color:#c6d8cc;margin:0;line-height:1.7}
.landing-ai-demo{position:relative;min-width:0;padding-top:140px}.ai-orbit{position:absolute;top:0;inset-inline:0;margin:auto;width:170px;height:150px;display:grid;place-items:center}.ai-orbit>i{position:absolute;width:170px;height:130px;border:1px solid #c3dda740;border-radius:50%;rotate:-22deg;scale:calc(.92 + var(--ai-progress)*.08)}.ai-orbit>i:nth-child(2){rotate:30deg;width:135px;height:145px}.ai-orbit .fox-guide{width:108px;height:108px;filter:drop-shadow(0 10px 20px #071f2460);translate:0 calc(var(--ai-progress)*-8px)}.ai-orbit>b{position:absolute;right:9px;top:21px;color:#f1bc99;font-size:28px;rotate:calc(var(--ai-progress)*40deg)}
.ai-demo-label{display:block;text-align:center;font-size:10px;letter-spacing:.2px;color:#c6d8cc;margin-bottom:14px}.ai-insight-card{position:relative;background:#fffdf7;color:#173e36;border-radius:22px;padding:25px;box-shadow:0 18px 40px #061c3026;transform:translateY(calc(14px - var(--ai-progress)*14px))}.ai-insight-card header{display:flex;align-items:center;gap:8px;font-size:12px;border-bottom:1px solid #e0e6dc;padding-bottom:16px}.ai-insight-card header>span{color:#b66340;font-size:19px}.ai-insight-card header small{margin-inline-start:auto;direction:ltr;font-size:10px;color:#64796f}.landing-ai .ai-insight-card h3{font-size:22px;line-height:1.4;letter-spacing:-.4px;margin:20px 0 12px}.ai-insight-card p{font-size:14px;line-height:1.8;margin:0;color:#64796f}.ai-fractions{display:flex;align-items:center;gap:12px;margin-top:22px;background:#eff3e7;padding:14px;border-radius:12px}.ai-fractions>span{width:48px;height:48px;display:grid;grid-template-columns:1fr 1fr;gap:3px;flex:none;direction:ltr}.ai-fractions i{background:#d5dfca;border-radius:4px}.ai-fractions i:first-child{background:#df7755}.ai-fractions>b{font-size:30px;font-weight:500}.ai-fractions small{font-size:11px;line-height:1.6;max-width:150px}
.ai-next-card{position:relative;display:flex;align-items:center;gap:12px;background:#e0edcf;color:#173e36;border-radius:16px;margin:14px 16px 0;padding:18px;box-shadow:0 12px 25px #061c3026;transform:translateY(calc(24px - var(--ai-progress)*24px))}.ai-next-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;background:#c5d8af;border-radius:10px}.ai-next-card>svg{width:20px;height:20px;flex:none;margin-inline-start:auto}.ai-next-card small{font-size:10px;color:#52724b}.landing-ai .ai-next-card h3{font-size:13px;line-height:1.6;margin:3px 0 0}.ai-parent-control{display:flex;gap:8px;align-items:center;justify-content:center;font-size:11px;color:#c6d8cc;margin-top:23px}.ai-parent-control svg{width:17px;height:17px;flex:none}
.landing-ai-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid #ffffff20;margin-top:36px;padding-top:25px}.landing-ai-bottom p{max-width:460px;font-size:11px;line-height:1.8;color:#b8ccc0;margin:0}.landing-ai-bottom .landing-primary{background:#e0edcf;color:#153f36;font-size:13px;white-space:nowrap}.landing-ai-bottom .landing-cta-arrow{background:#173e360c}
@media(max-width:850px){.landing-ai{padding:30px 25px;border-radius:26px}.landing-ai-layout{grid-template-columns:1fr;gap:20px}.landing-ai-top{margin-bottom:28px;padding-bottom:22px;flex-wrap:wrap;gap:12px}.landing-ai h2{font-size:34px}.landing-ai-demo{max-width:460px;width:100%;margin:auto}.landing-ai-bottom{flex-direction:column;align-items:stretch}.landing-ai-bottom .landing-primary{width:100%}.landing-ai-steps{margin-top:22px}.landing-ai-copy>p{max-width:none}.ai-insight-card{padding:22px}.ai-next-card{margin-inline:6px}.landing-ai-pilot{font-size:10px}}
@media(max-width:400px){.landing-ai{padding:25px 19px;margin-inline:-8px}.landing-ai h2{font-size:29px}.ai-insight-card{padding:18px}.landing-ai .ai-insight-card h3{font-size:20px}.ai-fractions{gap:9px}.landing-clean .landing-primary{padding-inline:54px}.landing-clean .landing-cta-arrow{inset-inline-start:12px}}
@media(prefers-reduced-motion:reduce){.landing-ai-steps li{opacity:1;translate:none}.ai-insight-card,.ai-next-card{transform:none}.ai-orbit .fox-guide{translate:none}.ai-orbit>i{scale:1}.ai-orbit>b{rotate:0deg}}

/* Interface symbols use the shared SVG icon set, never font glyphs. */
.landing-nav [data-action="login"]{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.landing-nav [data-action="login"] svg{width:18px;height:18px;flex:none;display:block}
.landing-clean[dir=rtl] .landing-nav [data-action="login"] svg{transform:scaleX(-1)}
.landing-text-button{display:inline-flex;align-items:center;gap:8px}
.landing-text-button svg{width:18px;height:18px;flex:none}
.landing-ai-brand i,.ai-insight-card header>span{display:inline-flex;align-items:center}
.landing-ai-brand i svg,.ai-orbit>b svg{width:28px;height:28px;display:block}
.ai-insight-card header>span svg{width:20px;height:20px;display:block}


.challenge-ad{border:1px solid #dce4de;border-radius:24px;background:#fffdf7;color:#174d45;padding:28px;width:min(440px,calc(100vw - 40px));text-align:center;box-sizing:border-box}.challenge-ad::backdrop{background:#153b35aa}.challenge-ad p{line-height:1.7}.challenge-ad .btn{width:100%}
/* Native app entry: short parent / child / try choice instead of the website landing page. */
#familyPage.app-entry-page{background:#f7f6ef}
#familyPage.app-entry-page>.family-shell{max-width:520px;min-height:100dvh;padding:18px 24px 28px;display:flex;flex-direction:column}
#familyPage.app-entry-page>.family-shell>header .family-brand{display:none}
.app-entry{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;position:relative;color:#173e36}
.app-entry-lang{position:absolute;top:0;inset-inline-end:0;border:0;background:#ecf1e8;color:#315b4b;border-radius:20px;padding:9px 16px;font:inherit;font-weight:600}
.app-entry-logo{border-radius:30px;box-shadow:0 10px 28px #164e4526;margin-bottom:10px}
.app-entry h1{font-size:40px;margin:0;line-height:1.1}
.app-entry-tagline{margin:0 0 26px;color:#65756e;font-size:17px}
.app-entry-actions{display:flex;flex-direction:column;gap:12px;width:100%;max-width:380px}
.app-entry-actions .landing-primary,.app-entry-actions .landing-child{width:100%;min-height:58px;border-radius:30px;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;border:0}
.app-entry-try{border:0;background:none;color:#246b56;font:inherit;font-weight:600;font-size:16px;text-decoration:underline;padding:12px}
.app-entry-privacy{margin-top:18px;color:#65756e;font-size:14px}
/* Store apps: providers first, existing email accounts behind one collapsed row, so the card fits without scrolling. */
.signin-providers>:only-child{grid-column:1/-1}
.parent-signin .signin-email{margin-top:18px;border-top:1px solid #e6ebe5;padding-top:6px}
.parent-signin .signin-email>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#164e45;text-decoration:underline;text-underline-offset:3px;list-style:none}
.parent-signin .signin-email>summary::-webkit-details-marker{display:none}
.parent-signin .signin-email[open]>summary{text-decoration:none;font-weight:600}

/* Keep writing controls reachable before the drawing surface on small screens. */
#scGame.writing-layout #writebox{display:flex;flex-direction:column;gap:8px}
#scGame.writing-layout .writebtns{order:-1;position:sticky;top:0;z-index:3;background:var(--card);padding:8px 0}
#scGame.writing-layout .writebtns button{min-height:44px}
#scGame.writing-layout .qcard{padding-block:10px}
#scGame.writing-layout .qcard .bigword svg{max-height:64px}
/* Weekly per-child digest in the parent dashboard */
.week-digest{display:grid;gap:14px;margin:0 0 18px}
.digest-card header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.digest-card h2{margin:0;font-size:20px}.digest-card header small{color:#65756e}
.digest-row{border-top:1px solid #e7ece4;padding:10px 0}.digest-row:first-of-type{border-top:0}
.digest-row>span{display:block;font-size:13px;font-weight:700;color:#3d6f5c;margin-bottom:3px}
.digest-row p{margin:2px 0;line-height:1.6}.digest-pattern b{color:#173e36}
.digest-example{font-size:14px;color:#55665f;background:#f4f6ef;border-radius:10px;padding:6px 10px;display:inline-block}
.digest-tonight{background:#f0f7f2;border-radius:14px;padding:10px 12px;border-top:0;margin-top:4px}
