/* Sano stylesheet: base-layout.css */
:root{--ink:#191735;--muted:#6b6b80;--blue:#075bdd;--pink:#ffd0df;--ice:#dce8ef;--paper:#fff;--line:#ececf2;--lav:#f1effa;font-family:Inter,ui-rounded,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:#f5f6fa;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d95b9c;outline-offset:4px}button{transition:transform .18s,background .18s}button:active{transform:scale(.97)}button:disabled{cursor:default;opacity:.5}svg{width:100%;height:100%;display:block}h1,h2,h3,p{margin:0}h1{font-size:clamp(36px,4.8vw,66px);line-height:1.04;letter-spacing:-2.6px;font-weight:650}h2{font-size:30px;line-height:1.16;letter-spacing:-1px}h3{font-size:20px}p{line-height:1.55}.muted{color:var(--muted)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2.2px;font-weight:700}.brand{font-size:26px;font-weight:800;letter-spacing:-1.7px;display:flex;align-items:center;gap:8px}.brand-mark{display:block;width:24px;height:24px;border:6px solid currentColor;border-radius:50%;border-top-right-radius:5px;transform:rotate(-20deg)}.pill{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:30px;padding:13px 23px;font-size:14px;font-weight:600;background:var(--lav)}.primary{background:var(--blue);color:#fff}.white{background:#fff;color:var(--blue)}.icon-btn{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#f5f5fa;font-size:22px;flex-shrink:0}.quiet{font-size:13px;color:var(--muted);min-height:44px;padding:10px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.tag{padding:7px 12px;border-radius:20px;font-size:11px;background:#ffffffbc;display:inline-flex;gap:6px;align-items:center}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.welcome{min-height:100svh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.welcome-art{background:var(--blue);color:white;position:relative;overflow:hidden;min-height:690px;padding:46px;display:flex;flex-direction:column;justify-content:space-between}.welcome-copy{position:relative;z-index:2;max-width:430px;padding-bottom:32px}.welcome-copy .eyebrow{color:#d3e0ff;margin-bottom:20px}.welcome-copy h1{font-size:clamp(55px,5.7vw,88px);font-weight:600}.welcome-copy p{max-width:275px;margin-top:22px;color:#e6edff;font-size:17px}.orbit{position:absolute;border-radius:50%;background:radial-gradient(circle at 29% 21%,#ffffffba 0,#ffffff0a 28%,#ffffff00 48%,#ffffff46 83%,#ffffffa6 96%);box-shadow:inset 5px 5px 8px #ffffff42,inset -7px -9px 19px #ffffff29;display:grid;place-items:center;transform:rotate(-12deg)}.orbit svg{width:65%;height:65%;filter:drop-shadow(3px 14px 6px #003ca441)}.orb1{width:190px;height:190px;top:110px;right:-35px}.orb2{width:150px;height:150px;top:80px;left:30%}.orb3{width:210px;height:210px;right:-24px;bottom:30px}.orbit-letter{font-size:84px;font-weight:800;color:var(--pink);text-shadow:2px 9px #0750be}.welcome-form{padding:45px clamp(26px,5vw,90px);display:flex;flex-direction:column;justify-content:center;max-width:680px;width:100%;margin:auto}.welcome-form h2{font-size:36px;margin:14px 0}.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:26px 0}.language{border:1.5px solid var(--line);border-radius:22px;padding:18px;text-align:left;display:flex;gap:12px;align-items:center;min-height:87px;background:#fff}.language.selected{border-color:var(--blue);background:#f2f6ff}.language .flag{font-size:28px}.language strong{display:block;font-size:15px}.language small{display:block;color:var(--muted);margin-top:4px}.welcome-form .primary{width:100%;min-height:55px}.footnote{font-size:11px;line-height:1.5;color:var(--muted);margin-top:18px}.onboard{max-width:650px;margin:auto;min-height:100svh;padding:38px 25px;display:flex;flex-direction:column}.onboard header{margin-bottom:65px}.onboard h1{font-size:43px;max-width:500px;margin:20px 0 28px}.options{display:grid;gap:12px}.option{border:1.5px solid var(--line);border-radius:23px;padding:21px;text-align:left;background:#fff;font-size:17px;display:flex;align-items:center;gap:17px}.option:hover{border-color:#9cbbef;background:#f5f8ff}.option .mini{font-size:24px;width:38px}.step-dots{display:flex;gap:7px}.step-dots i{display:block;width:7px;height:7px;background:#d9deeb;border-radius:50%}.step-dots i.on{width:25px;background:var(--blue);border-radius:10px}.app-shell{max-width:1440px;margin:auto;min-height:100svh;background:#fff;display:grid;grid-template-columns:94px 1fr}.rail{border-right:1px solid var(--line);padding:35px 16px;display:flex;flex-direction:column;gap:26px;align-items:center}.rail .brand{color:var(--blue)}.rail button{width:57px;min-height:59px;border-radius:18px;display:grid;place-items:center;gap:2px;padding:7px;font-size:10px}.rail button span{font-size:23px;font-weight:500}.rail button.active{background:#eaf1ff;color:var(--blue)}.rail .bottom{margin-top:auto}.main{padding:30px 42px 26px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}.topbar .brand{display:none}.topbar .tagline{font-size:14px;color:var(--muted)}.language-pill{border:1px solid var(--line);background:white;padding:9px 17px;min-height:45px;font-size:13px}.avatar{width:42px;height:42px;border-radius:50%;background:var(--pink);font-weight:700}.home-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:27px}.home-heading h1{font-size:43px;letter-spacing:-1.8px;margin-top:8px}.home-heading .subtitle{font-size:14px;color:var(--muted);margin-top:10px}.world-layout{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:26px}.scene-wrap{position:relative;border-radius:32px;overflow:hidden;background:#f0dfc5;isolation:isolate}.scene{position:relative;width:100%;aspect-ratio:1000/680;min-width:0}.scene-bg{position:absolute;inset:0}.scene-badge{position:absolute;left:22px;top:22px;z-index:2}.object{position:absolute;padding:0;border-radius:50%;transform:translate(-50%,-50%);aspect-ratio:1;z-index:3;min-width:48px;min-height:48px}.object:hover,.object:focus-visible{transform:translate(-50%,-56%) scale(1.06);filter:drop-shadow(0 10px 4px #4d391727)}.object:active{transform:translate(-50%,-50%) scale(.9)}.object-name{opacity:0;position:absolute;bottom:0;left:50%;transform:translate(-50%,70%);border-radius:12px;background:#fff;padding:5px 9px;font-size:12px;white-space:nowrap;box-shadow:0 5px 15px #3c3b2620}.object:hover .object-name,.object:focus-visible .object-name{opacity:1}.scene-footer{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);z-index:5;font-size:12px;background:#fffdf5d9;padding:9px 16px;border-radius:22px;white-space:nowrap;pointer-events:none}.spotlight{background:var(--blue);color:white;border-radius:30px;padding:25px;display:flex;flex-direction:column;min-height:300px;position:relative;overflow:hidden}.spotlight .eyebrow{color:#c6d8fb;font-size:10px}.spotlight h2{font-size:27px;margin:14px 0 4px;letter-spacing:-.8px;max-width:210px}.spotlight .orb-small{height:122px;margin:6px auto 0;width:122px;background:radial-gradient(circle at 25% 18%,#fff9,#fff0 33%,#ffffff15 75%,#ffffff78);border-radius:50%;padding:13px}.spotlight .pill{margin-top:auto;font-size:13px}.side-column{display:flex;flex-direction:column;gap:17px}.away{background:var(--pink);padding:22px;border-radius:26px}.away p{font-size:13px;margin-top:10px;line-height:1.5}.away .eyebrow{font-size:10px}.shelf-bar{display:flex;align-items:center;justify-content:space-between;margin:26px 0 13px}.shelf-bar h3{font-size:17px;font-weight:600}.activity-shelf{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.activity-tile{min-height:129px;border-radius:22px;background:var(--lav);padding:12px;display:flex;flex-direction:column;align-items:flex-start;text-align:left}.activity-tile:nth-child(2n){background:#fde3eb}.activity-tile:nth-child(3n){background:#e0ecf1}.activity-tile svg{height:66px;width:66px;align-self:center;margin-bottom:8px}.activity-tile strong{font-size:12px;white-space:nowrap}.activity-tile small{font-size:10px;color:var(--muted);margin-top:4px}.bottom-note{display:flex;justify-content:space-between;margin-top:24px;font-size:11px;color:var(--muted)}.bottom-nav{display:none}.explorer .home-heading h1{font-size:42px}.explorer .world-layout{grid-template-columns:1fr 205px}.explorer .scene .object{min-width:70px;min-height:70px}.explorer .activity-shelf{grid-template-columns:repeat(3,1fr)}.explorer .activity-tile{flex-direction:row;align-items:center;gap:15px;min-height:100px}.explorer .activity-tile svg{width:70px;height:70px;margin:0}.explorer .activity-tile strong{font-size:16px}.explorer .activity-tile small{display:none}.explorer .spotlight h2{font-size:25px}.backdrop{position:fixed;inset:0;background:#13162d66;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(7px)}.modal{width:min(660px,100%);max-height:90svh;overflow:auto;background:#fff;border-radius:34px;padding:28px;position:relative;box-shadow:0 25px 100px #0003;animation:enter .23s ease}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.modal-head .eyebrow{font-size:10px;color:var(--muted)}.modal h2{font-size:30px;margin:10px 0}.activity-content{text-align:center;min-height:270px;padding:16px 0 7px}.big-object{width:170px;height:170px;margin:auto;border-radius:50%;background:var(--ice);padding:18px}.big-object.pink{background:var(--pink)}.learning-label{margin-top:18px}.learning-label .script{font-size:37px;font-weight:600;line-height:1.5}.learning-label .roman{font-size:16px;margin-top:1px}.learning-label .meaning{font-size:14px;color:var(--muted);margin-top:5px}.listen-button{height:76px;width:76px;border-radius:50%;background:var(--blue);color:white;margin:0 auto 18px;font-size:31px;display:grid;place-items:center}.prompt{font-size:25px;line-height:1.7;margin:0 auto 12px;max-width:95%}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.choice{border-radius:24px;background:#f3f4f8;min-height:140px;padding:14px;border:2px solid transparent}.choice svg{height:83px;width:83px;margin:auto}.choice .meaning{font-size:13px;margin-top:8px}.choice.correct{border-color:#35836c;background:#e8f4ec}.choice.retry{animation:nudge .25s}.feedback{min-height:35px;font-size:14px;text-align:center;color:#3c6b5a;padding:9px;line-height:1.5}.modal-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px;padding-top:18px;border-top:1px solid var(--line)}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.match-col{display:grid;gap:10px}.match-item{background:#f4f4f9;min-height:78px;border:2px solid transparent;border-radius:20px;padding:10px;display:flex;justify-content:center;align-items:center;font-size:22px}.match-item svg{height:58px;width:58px}.match-item.selected{border-color:var(--blue)}.match-item.matched{opacity:.45;background:#ddf2e3;border-color:#8eb79b}.drag-area{position:relative;min-height:260px}.tray{display:flex;justify-content:center;gap:10px;margin:15px}.draggable{width:83px;height:83px;touch-action:none;cursor:grab;z-index:4;position:relative}.plate{width:270px;min-height:120px;margin:15px auto;border-radius:50%;background:#e7edf2;border:10px solid #d0dce5;box-shadow:inset 0 0 0 2px #c3d2de;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:8px}.plate svg{width:57px;height:57px}.plate.hot{background:#dbe4fa;border-color:#9eb9e4}.count-label{font-size:14px;color:var(--muted)}.count-picker{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin-top:15px}.count-picker button{width:42px;height:42px;border-radius:13px;background:#f0f1f7}.count-picker button.selected{background:var(--blue);color:#fff}.record{width:98px;height:98px;border-radius:50%;background:var(--pink);font-size:38px;margin:20px auto 10px;display:block}.record.recording{background:#fa8d9d;animation:pulse 1.3s infinite}.record-note{font-size:12px;color:var(--muted);max-width:400px;margin:auto;line-height:1.55}.voice-status{font-size:12px;color:var(--muted);padding:12px;border-radius:14px;background:#f5f5fa;margin-top:10px;line-height:1.45}.progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:25px 0}.progress-stat{padding:17px 10px;background:var(--lav);border-radius:20px;text-align:center}.progress-stat b{display:block;font-size:34px;margin-bottom:7px}.progress-stat span{font-size:11px}.setting{margin:22px 0}.setting label{display:block;font-size:13px;margin-bottom:10px;font-weight:600}.setting select,.setting input{width:100%;min-height:50px;border:1px solid #dcdce7;border-radius:15px;background:#fff;padding:12px;color:var(--ink)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:8px 12px;border-radius:14px;background:#f2f4fa;font-size:13px}.pack-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.pack-item{background:#f6f5fa;border-radius:20px;padding:12px;text-align:center;min-height:120px}.pack-item svg{width:54px;height:54px;margin:auto}.pack-item strong{display:block;font-size:17px;margin:4px 0}.pack-item small{color:var(--muted);font-size:11px}.filter-row{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0}.filter-row button{padding:10px 12px;border-radius:13px;font-size:12px;background:#f4f4f9}.filter-row button.selected{background:var(--blue);color:white}.world-place{display:flex;align-items:center;gap:20px;border-radius:25px;padding:20px;background:#f5f3f9;margin:14px 0}.world-place svg{height:75px;width:75px}.world-place small{display:block;margin-top:6px;color:var(--muted)}.world-place.current{background:var(--pink)}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:13px 22px;border-radius:20px;font-size:13px;z-index:100;max-width:90%;width:max-content;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}audio{width:100%;max-width:350px;display:block;margin:16px auto} .success-plant{font-size:30px;margin-right:8px}.bloom{animation:bloom .4s ease}.native-badge{font-size:10px;background:#ffffff24;color:#dbe7ff;padding:6px 10px;border-radius:20px;align-self:flex-start}.list-row{width:100%;display:flex;align-items:center;gap:16px;padding:12px 6px;border-bottom:1px solid var(--line);text-align:left}.list-row svg{width:54px;height:54px}.list-row span{font-size:14px}.list-row small{display:block;color:var(--muted);margin-top:5px}.clear{background:#fff2f5;color:#ac3656}.gate-note{font-size:12px;color:var(--muted);margin:15px 0}.safety-note{font-size:11px;color:var(--muted);margin-top:22px}
@keyframes enter{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}@keyframes nudge{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes bloom{50%{transform:scale(1.14) rotate(-6deg)}}@keyframes pulse{50%{box-shadow:0 0 0 13px #ffd0df66}}
@media(min-width:1550px){.app-shell{margin:30px auto;border-radius:35px;overflow:hidden;min-height:calc(100svh - 60px);box-shadow:0 20px 80px #272f4710}.main{padding:38px 50px}.world-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1100px){.main{padding:25px}.world-layout{grid-template-columns:minmax(0,1fr) 225px;gap:16px}.spotlight{padding:21px}.activity-shelf{gap:8px}.activity-tile{padding:10px}.home-heading h1{font-size:37px}.explorer .world-layout{grid-template-columns:1fr 185px}}
@media(max-width:850px){.app-shell{display:block}.rail{display:none}.main{padding:22px 22px 100px}.topbar{margin-bottom:28px}.topbar .brand{display:flex}.topbar .tagline{display:none}.world-layout,.explorer .world-layout{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr}.spotlight{min-height:184px;padding:20px}.spotlight h2{font-size:23px;max-width:190px;margin-top:9px}.spotlight .orb-small{position:absolute;right:12px;top:35px;width:75px;height:75px;opacity:.9}.spotlight .pill{align-self:flex-start;padding:10px 17px;min-height:44px;margin-top:25px}.away{padding:22px;display:flex;flex-direction:column;justify-content:center}.activity-shelf{grid-template-columns:repeat(3,1fr)}.activity-tile{min-height:124px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid var(--line);justify-content:space-around;padding:7px 12px max(8px,env(safe-area-inset-bottom))}.bottom-nav button{min-height:55px;min-width:75px;border-radius:18px;font-size:10px;padding:7px 16px;display:grid;gap:5px}.bottom-nav button.active{color:var(--blue);background:#edf3ff}.bottom-nav span{font-size:22px}.welcome{grid-template-columns:1fr}.welcome-art{min-height:320px;padding:28px}.welcome-art .brand{margin-bottom:30px}.welcome-copy{max-width:330px;padding:0}.welcome-copy h1{font-size:48px;letter-spacing:-2px}.welcome-copy .eyebrow,.welcome-copy p,.native-badge{display:none}.orb1{width:145px;height:145px;top:25px;right:-15px}.orb2{width:95px;height:95px;left:auto;right:120px;top:150px}.orb3{width:115px;height:115px;bottom:-25px;right:5px}.orbit-letter{font-size:48px}.welcome-form{padding:30px 25px}.welcome-form h2{font-size:29px;margin:8px 0}.welcome-form .language-grid{margin:22px 0}.home-heading h1{font-size:35px}.home-heading{margin-bottom:21px}.home-heading .subtitle{font-size:13px}.home-heading .tag{display:none}.modal{max-height:91svh;padding:23px;border-radius:28px}.backdrop{padding:15px}.explorer .activity-tile{display:block}.explorer .activity-tile strong{font-size:13px}.explorer .activity-tile svg{margin:auto}.bottom-note{gap:15px}.language{padding:14px;min-height:80px}.onboard header{margin-bottom:45px}}
@media(max-width:420px){.main{padding:20px 16px 95px}.home-heading h1{font-size:32px}.side-column{grid-template-columns:1fr}.away{display:none}.spotlight{min-height:160px}.spotlight h2{font-size:24px;max-width:230px}.spotlight .orb-small{right:20px;width:90px;height:90px;top:22px}.spotlight .pill{margin-top:18px}.scene-wrap{border-radius:25px}.scene-bg{height:100%;width:100%;}.scene-bg svg{object-fit:cover}.scene-footer{font-size:10px;bottom:10px}.scene-badge{left:14px;top:13px}.choice-grid{gap:7px}.choice{padding:9px;min-height:116px;border-radius:20px}.choice svg{width:68px;height:68px}.modal{padding:20px}.modal h2{font-size:26px}.prompt{font-size:22px}.learning-label .script{font-size:31px}.pack-grid{grid-template-columns:1fr 1fr}.explorer .scene .object{min-width:72px;min-height:72px}.activity-shelf{gap:8px}.activity-tile strong{font-size:11px}.language-pill{padding:8px 12px}.onboard h1{font-size:35px}.progress-stat b{font-size:27px}.progress-stat{padding:15px 8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* SANO v0.2 — a single playful focus, with reference and social play kept apart. */
body{background:#fbfbfd}button[hidden]{display:none!important}.simple-shell{max-width:1080px;margin:auto;min-height:100svh;background:#fbfbfd;padding:0 36px}.simple-header{height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px}.simple-header .brand{font-size:23px;letter-spacing:-1.5px;color:#212342}.simple-header .brand-mark{width:20px;height:20px;border-width:5px}.simple-header .row{gap:7px}.xp-pill{min-height:44px;padding:10px 16px;display:flex;gap:7px;align-items:center;color:#737587;font-size:12px;font-weight:600;border-radius:22px;background:#f0f2f8}.xp-spark{color:#eca64e;font-size:17px}.menu-dot{font-size:26px;width:46px;height:46px;border-radius:50%;letter-spacing:2px;display:grid;place-items:center}.menu-dot:hover{background:#edeef5}.simple-content{padding-bottom:100px}.simple-nav{display:flex;justify-content:center;gap:8px;position:fixed;z-index:12;bottom:22px;left:50%;transform:translateX(-50%);padding:8px 13px;border-radius:29px;background:#ffffffec;box-shadow:0 6px 40px #2526550b;border:1px solid #eeeef5;backdrop-filter:blur(22px)}.simple-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:75px;min-height:56px;border-radius:21px;font-size:11px;color:#9495a2;padding:6px 14px}.simple-nav button span{font-size:25px;line-height:1.15}.simple-nav button.selected{color:#075bdd;background:#eff4ff}.game-home{max-width:620px;margin:26px auto 0;text-align:center;animation:soft-enter .35s ease}.level-caption{text-transform:uppercase;font-size:10px;letter-spacing:1.8px;font-weight:600;color:#9293a2}.level-caption span{padding:0 8px}.journey-dots{display:flex;justify-content:center;gap:7px;margin:17px 0 30px}.journey-dots i{width:6px;height:6px;border-radius:50%;background:#e2e5ee;transition:background .3s,width .3s}.journey-dots i.passed{background:#9dbbeb}.journey-dots i.current{background:#075bdd;width:23px;border-radius:8px}.game-home h1{font-size:38px;font-weight:600;letter-spacing:-1.5px;line-height:1.14;margin-bottom:10px}.game-home .activity-content{min-height:260px;padding:22px 0 0}.game-home .big-object{width:218px;height:218px;border-radius:48%;background:radial-gradient(circle at 30% 20%,#fff7fb,#ffdbe8 63%,#f6c6d7);box-shadow:inset 0 3px 6px #fff,0 18px 45px #dc9eb71c;padding:43px;display:grid;place-items:center;animation:float-gently 5s ease-in-out 2;transition:transform .4s cubic-bezier(.2,.8,.2,1)}.game-home .big-object:hover{transform:translateY(-7px) rotate(-4deg)}.game-home .big-object:active{transform:scale(.88)}.game-home .big-object svg{width:100%;height:100%;filter:drop-shadow(0 11px 7px #4c373717)}.game-home .learning-label .script{font-size:37px;margin-top:6px}.tap-invitation{font-size:13px;color:#8b8c9d;margin-top:23px}.game-home .listen-button{width:49px;height:49px;font-size:21px;background:#e9f0ff;color:#075bdd;margin:0 auto 9px}.game-home .prompt{font-size:32px;font-weight:500;margin:4px 0 23px}.game-home .choice-grid{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:19px;margin-top:14px}.game-home .choice{width:152px;height:152px;min-height:0;min-width:0;padding:23px;border-radius:46%;background:radial-gradient(circle at 28% 16%,#fafcff,#dce9f4);border:2px solid #ffffff;box-shadow:inset 0 3px 5px #fff,0 12px 28px #698cb211;animation:bubble-in .5s cubic-bezier(.2,.8,.2,1);transition:transform .23s,box-shadow .23s,background .25s}.game-home .choice:nth-child(2){background:radial-gradient(circle at 28% 16%,#fff9fc,#fad9e6);animation-delay:.06s}.game-home .choice:nth-child(3){background:radial-gradient(circle at 28% 16%,#faf9ff,#e6dff4);animation-delay:.12s}.game-home .choice:nth-child(4){background:#e4efdf}.game-home .choice svg{width:100%;height:100%;max-width:105px;max-height:105px}.game-home .choice:hover{transform:translateY(-7px);box-shadow:0 16px 35px #6777b31a}.game-home .choice:active{transform:scale(.9)}.game-home .choice.correct{background:#e0f3e8;border-color:#9fceb5;animation:correct-bubble .5s ease}.game-home .choice.retry{animation:nudge .28s;background:#ffebee}.game-home .choice .meaning{font-size:12px}.game-home .feedback{font-size:13px;min-height:35px;padding-top:18px;color:#568270}.game-actions{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:10px;min-height:72px}.game-actions .pill{min-width:190px;min-height:54px;box-shadow:0 7px 17px #075bdd18}.game-actions .quiet{font-size:12px;color:#9b9ba8}.game-home .voice-status{font-size:11px;max-width:440px;margin:10px auto 0;background:#f0f2f7;color:#858597;padding:10px 14px}.game-home.won .continue-game{animation:soft-enter .3s ease}.game-subtitle{color:#9191a0;margin:17px 0 28px;font-size:15px}.end-note{font-size:12px;color:#999aa7;margin-top:24px}.finish-bubble{width:195px;height:195px;margin:35px auto 28px;background:#eaf0fe;border-radius:50%;padding:17px}.sentence-meaning{font-size:19px;margin:16px auto 25px}.sentence-answer{min-height:84px;display:flex;justify-content:center;align-items:center;border-bottom:2px solid #e0e5f0;font-size:26px;line-height:1.6}.sentence-words{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:25px}.word-token{padding:18px 24px;background:#e7edfa;border-radius:25px;box-shadow:0 4px 0 #d3dced;font-size:23px}.word-token:disabled{opacity:.2}.game-home .record{background:radial-gradient(circle at 30% 20%,#fff1f5,#f5ccdf);box-shadow:inset 0 3px 4px #fff}.game-home .record-note{font-size:11px;max-width:330px;margin-top:10px}.game-home .match-item{border-radius:26px;background:#f0f2f9}.game-home .match-grid{max-width:420px;margin:auto}.game-home .plate{border-width:7px;background:#e7edf8;border-color:#d7e2f1}.game-home .draggable{width:80px;height:80px}.game-home .count-label{font-size:12px}.clean-welcome{max-width:850px;margin:auto;padding:34px 32px;min-height:100svh}.clean-welcome header .brand{font-size:24px}.welcome-focus{min-height:calc(100svh - 120px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:19px}.welcome-bubble{width:210px;height:210px;background:radial-gradient(circle at 30% 15%,#f8fbff,#dce6fb);border-radius:47%;padding:25px;position:relative;margin:5px 0 15px;box-shadow:inset 0 3px 5px #fff;animation:float-gently 5s ease-in-out 2}.mini-orb{position:absolute;width:29px;height:29px;display:block;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#ffd4e3)}.mini-orb.one{right:-24px;top:28px}.mini-orb.two{left:-29px;bottom:28px;width:17px;height:17px;background:#d2dff5}.welcome-focus h1{font-size:46px;letter-spacing:-2px}.welcome-focus p{font-size:15px;color:#878897;line-height:1.7}.welcome-focus .pill{margin-top:12px;min-width:205px;min-height:55px}.welcome-language{font-size:11px;color:#abaebb;letter-spacing:.5px;margin-top:4px}.clean-onboard{max-width:550px;gap:18px}.clean-onboard header{margin-bottom:32px}.clean-onboard h1{font-size:37px;margin:0}.clean-onboard .options{margin-top:22px}.clean-onboard .option{background:#fff;border-color:#f0f0f5}.page-intro{margin:30px 0}.page-intro h1{font-size:37px;letter-spacing:-1.5px;margin:13px 0}.page-intro p{font-size:14px}.world-page{max-width:780px;margin:auto}.world-page .scene-wrap{margin-top:30px}.world-invitation{text-align:center;color:#8c8d9d;font-size:12px;margin:20px}.outside-invitation{max-width:440px;margin:28px auto;display:flex;gap:17px;align-items:center;color:#888e82;font-size:12px}.outside-invitation>span{font-size:26px;color:#b8bc9f}.words-page{max-width:740px;margin:auto}.library-tabs{display:flex;gap:4px;background:#edeff5;padding:5px;border-radius:19px;width:max-content;max-width:100%;margin-bottom:24px}.library-tabs button{min-height:43px;padding:11px 24px;font-size:13px;border-radius:15px;color:#838494}.library-tabs button.selected{background:#fff;box-shadow:0 2px 6px #22234c08;color:#262943}.search-field{display:flex;gap:10px;align-items:center;border-bottom:1px solid #e5e7ef;padding:11px 0;margin-bottom:17px}.search-field>span{font-size:26px;color:#9b9caf}.search-field input{width:100%;background:transparent;border:0;outline-offset:3px;padding:8px;font-size:15px;color:#36384e}.words-page .filter-row{gap:3px}.words-page .filter-row button{font-size:11px;background:transparent;color:#858696;padding:10px}.words-page .filter-row button.selected{background:#eaf0fc;color:#075bdd}.word-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}.word-tile{border-radius:25px;background:#f2f4f9;min-height:150px;padding:16px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;animation:soft-enter .3s ease}.word-tile:nth-child(3n+2){background:#faf0f5}.word-tile:nth-child(3n+3){background:#f0f2fa}.word-tile svg{width:59px;height:59px}.word-tile strong{font-size:20px;font-weight:500;line-height:1.5}.word-tile small{font-size:11px;color:#8b8c9d;line-height:1.5}.word-tile .letter-art{font-size:37px;color:#3c5988;line-height:1.3}.word-tile .letter-art+strong{display:none}.place-art{font-size:39px;line-height:1.4;color:#72968d}.item-art{font-size:40px;line-height:1.4;color:#6582ae}.reference-note{font-size:11px;color:#999aab;text-align:center;margin:25px 0}.reference-detail{color:#868797;font-size:13px;max-width:390px;margin:20px auto}.map-invitation{width:100%;display:flex;align-items:center;gap:19px;padding:20px;text-align:left;background:#eef5f1;border-radius:23px;margin:20px 0}.map-invitation>span{font-size:29px;color:#7ca18a}.map-invitation strong{font-size:14px;font-weight:500}.map-invitation small{display:block;color:#8b9b93;font-size:11px;margin-top:4px}.no-results{padding:50px 0;text-align:center;color:#8e90a0;font-size:14px}.journey-total{text-align:center;margin:24px}.journey-total b{display:block;font-size:58px;letter-spacing:-2px;color:#075bdd}.journey-total span{font-size:12px;color:#9596a3}.course-levels{display:grid;gap:12px;margin:23px 0}.course-level{display:flex;gap:18px;align-items:center;padding:15px;border-radius:22px;background:#f5f6fa}.course-level>span{width:43px;height:43px;border-radius:50%;background:#e7eaf3;display:grid;place-items:center;color:#9297ab}.course-level strong{font-size:14px;font-weight:500}.course-level small{display:block;font-size:11px;color:#999bad;margin-top:5px}.course-level.now{background:#eef3ff}.course-level.now>span{background:#075bdd;color:white}.game-home .choice-grid:has(.choice:nth-child(4)){max-width:360px;margin-left:auto;margin-right:auto;gap:14px}.games-page{max-width:760px;margin:auto}.party-invite{width:100%;display:flex;gap:35px;align-items:center;text-align:left;padding:33px;background:#eaf0ff;border-radius:32px;margin:25px 0}.party-invite .eyebrow{font-size:9px;color:#929cb5}.party-invite h2{font-size:28px;margin:10px 0}.party-invite p{font-size:13px;color:#8992a8}.game-link{display:block;color:#075bdd;font-size:13px;margin-top:20px}.party-art{min-width:140px;height:150px;position:relative;display:grid;place-items:center}.party-art>span{display:block;background:#075bdd;color:#fff;padding:27px 24px;font-size:36px;border-radius:29px;transform:rotate(-9deg);box-shadow:0 15px 25px #075bdd24}.party-art>i{position:absolute;background:#ffd3e2;color:#9e6180;padding:11px 18px;font-size:25px;font-style:normal;border-radius:20px;transform:rotate(15deg);right:-2px;top:0}.quiz-tiles{display:grid;grid-template-columns:1fr 1fr;gap:18px}.quiz-tiles>button{background:#f6edf3;border-radius:29px;padding:27px;text-align:left;min-height:200px}.quiz-tiles>button:nth-child(2){background:#edf2f2}.quiz-tiles h3{font-size:19px;letter-spacing:-.5px;margin:12px 0 8px}.quiz-tiles p{font-size:12px;color:#9891a0}.quiz-tiles>button>span:last-child{display:block;font-size:13px;margin-top:20px;color:#7f7186}.quiz-symbol{font-size:34px;color:#a087a7}.quiz-question{font-size:32px;font-weight:500;line-height:1.6;text-align:center;padding:28px 0}.quiz-answers{display:grid;gap:10px}.quiz-answer{padding:19px;border-radius:22px;background:#f3f4fa;font-size:16px}.quiz-answer.correct{background:#e3f1e9;color:#418065;opacity:1}.quiz-answer.incorrect{background:#fce8ec;color:#a9707d;opacity:1}.quiz-score{font-size:76px;letter-spacing:-3px;text-align:center;color:#075bdd;margin:25px 0}.quiz-score small{font-size:20px;letter-spacing:-.5px;color:#a1a2b2}.party-demo{background:#075bdd;color:#fff;border-radius:28px;padding:32px;margin:25px auto;width:210px;text-align:center;transform:rotate(-5deg);box-shadow:0 12px 35px #075bdd18}.party-demo span{display:block;font-size:37px}.party-demo small{display:block;font-size:15px;margin-top:8px;color:#c4d7fa}.party-instructions{font-size:15px;text-align:center;max-width:435px;margin:24px auto;color:#838699}.deck-picker{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:20px 0}.deck-picker button{padding:12px 16px;border-radius:18px;font-size:12px;background:#f1f3f8;color:#7f8297;min-height:44px}.deck-picker button.selected{background:#e1ebff;color:#075bdd}.modal.party-modal{width:min(920px,100%);padding:0;overflow:hidden;background:#075bdd;color:#fff}.party-board{padding:25px 32px;background:#075bdd;color:#fff}.party-board header{display:flex;align-items:center;justify-content:space-between;color:#c8dcff;font-size:14px}.party-exit{width:44px;height:44px;font-size:24px;background:#ffffff17;border-radius:50%;color:#fff}.forehead-word{text-align:center;padding:44px 12px;animation:card-pop .24s ease}.forehead-word .eyebrow{color:#aecbff;font-size:10px}.forehead-word h2{font-size:clamp(46px,7vw,88px);line-height:1.5;letter-spacing:-1px;margin:15px 0 5px}.forehead-word p{font-size:22px;color:#dde9ff}.forehead-word small{font-size:14px;display:block;margin-top:10px;color:#accaff}.party-actions{display:grid;grid-template-columns:1fr 1fr;gap:15px}.party-actions button{min-height:61px;border-radius:22px;font-size:17px;font-weight:600}.party-pass{color:#e3edff;background:#ffffff1f}.party-correct{color:#075bdd;background:#fff}.party-hint{font-size:10px;color:#aac7f7;text-align:center;margin-top:20px}.paused-party{text-align:center}.paused-party .pill{margin-top:15px}.party-recap{display:grid;gap:9px;max-height:260px;overflow:auto}.party-recap>div{display:grid;grid-template-columns:22px 1fr;gap:4px 10px;padding:12px;border-radius:18px;background:#f3f5fa}.party-recap>div>span{grid-row:span 2;color:#759781}.party-recap strong{font-size:21px;font-weight:500}.party-recap small{font-size:12px;color:#9397a8}@keyframes float-gently{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(2deg)}}@keyframes soft-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes bubble-in{from{opacity:0;transform:scale(.85) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes correct-bubble{40%{transform:scale(1.09)}70%{transform:scale(.96)}}@keyframes card-pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@media(max-width:700px){.simple-shell{padding:0 23px}.simple-header{height:82px}.simple-content{padding-bottom:110px}.simple-nav{bottom:max(10px,env(safe-area-inset-bottom));gap:3px;padding:7px 9px;width:calc(100% - 32px);max-width:395px;justify-content:space-around}.simple-nav button{min-width:0;flex:1;padding:7px 10px}.game-home{margin-top:26px}.game-home h1{font-size:32px;letter-spacing:-1.1px}.game-home .activity-content{padding-top:24px;min-height:250px}.game-home .choice-grid{gap:14px}.game-home .choice{width:126px;height:126px;padding:21px}.game-home .choice-grid:has(.choice:nth-child(3)){max-width:310px;margin-left:auto;margin-right:auto;gap:13px}.game-home .choice:nth-child(3){margin-top:-3px}.game-home .choice-grid:has(.choice:nth-child(4)){max-width:300px}.game-home .big-object{width:205px;height:205px;padding:39px}.journey-dots{margin-bottom:27px}.game-home .prompt{font-size:30px}.page-intro{margin:24px 0}.page-intro h1{font-size:31px}.word-tiles{grid-template-columns:repeat(3,1fr);gap:10px}.word-tile{min-height:135px;padding:13px 8px;border-radius:23px}.word-tile strong{font-size:17px}.word-tile small{font-size:10px}.world-page .scene-wrap{border-radius:27px}.little .world-page .object{min-width:68px;min-height:68px}.clean-welcome{padding:28px 26px}.welcome-focus h1{font-size:39px}.clean-onboard header{margin-bottom:22px}.party-invite{padding:24px;gap:18px}.party-art{min-width:100px;height:125px}.party-art>span{font-size:30px;padding:24px 18px}.party-art>i{font-size:18px;padding:9px 13px}.party-invite h2{font-size:24px}.party-invite p{font-size:12px}.quiz-tiles{gap:13px}.quiz-tiles>button{padding:21px;min-height:186px}.quiz-tiles h3{font-size:18px}.party-board{padding:19px 22px}.forehead-word{padding:35px 3px}.quiz-question{font-size:28px}.game-home .record-note{font-size:10px}.simple-shell .brand{gap:6px}}
@media(max-width:380px){.simple-shell{padding:0 17px}.game-home .choice{width:114px;height:114px;padding:20px}.word-tiles{grid-template-columns:repeat(2,1fr)}.game-home h1{font-size:29px}.level-caption{font-size:9px;letter-spacing:1.3px}.game-home .big-object{width:185px;height:185px}.party-invite{gap:10px;padding:21px 17px}.party-art{min-width:80px}.party-invite h2{font-size:21px}.quiz-tiles>button{padding:18px}.quiz-tiles h3{font-size:16px}.library-tabs button{padding:11px 20px}}
@media(max-height:540px) and (orientation:landscape){.party-board{padding:10px 27px}.forehead-word{padding:0}.forehead-word h2{font-size:50px;margin:0;line-height:1.3}.forehead-word .eyebrow{display:none}.forehead-word p{font-size:18px}.forehead-word small{margin-top:2px}.party-actions{margin-top:15px}.party-actions button{min-height:47px}.party-hint{display:none}.modal.party-modal{max-height:97svh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.big-object .letter-art,.big-object .place-art{font-size:72px;line-height:1.4;color:#6b729c}.saying-art{font-family:Georgia,serif;font-size:66px;line-height:.8;color:#b194b2}.word-tile:has(.saying-art){grid-column:span 2}.word-tile:has(.saying-art) strong{font-size:18px}.forehead-word h2{overflow-wrap:anywhere}

/* SANO 0.3 · original pastel, tactile component system */
:root{--accent:#6750d8;--bubble-a:#d8e7ff;--bubble-b:#b6cef8;--spring:cubic-bezier(.2,1.6,.4,1)}
body{background:#f7f6fc;color:#25213b}body[data-theme=blush]{--bubble-a:#ffe3ed;--bubble-b:#eda9c1}body[data-theme=lilac]{--bubble-a:#e8ddff;--bubble-b:#bba4f0}
button{touch-action:manipulation;transition:transform .28s var(--spring),box-shadow .24s,background .24s}button:active{transform:translateY(3px) scale(.95)}button:disabled:active{transform:none}[hidden]{display:none!important}.center{text-align:center}.full{width:100%;margin-top:14px}.center-actions{justify-content:center;margin-top:24px}.source-links{display:grid;gap:14px;margin:24px 0}.source-links a{color:var(--accent);font-size:13px}.simple-shell{max-width:1100px;background:#fff;min-height:100svh}.simple-header{height:100px}.simple-header .brand,.brand{font-size:34px;font-weight:900;letter-spacing:-2px;gap:7px;color:#2a2244;padding:0}.brand-period{color:var(--accent);margin-left:-5px}.brand-mark{width:27px;height:27px;border-width:7px;color:var(--accent)}.xp-pill{background:#f1edfc;color:#6852b5;box-shadow:0 3px 0 #e4dcf7;font-weight:750}.menu-dot{background:#f5f3fa;color:#4d4661}.pill.primary{background:var(--accent);box-shadow:0 5px 0 #4e3baf;color:#fff;min-height:54px;font-size:15px}.pill.primary:active{box-shadow:0 1px 0 #4e3baf}.simple-nav{box-shadow:0 7px 26px #3c2d6720;background:#fffffff2;backdrop-filter:blur(20px);border:1px solid #ebe7f6;gap:8px;min-width:330px}.simple-nav button{min-width:95px;border-radius:20px;transition:background .3s,transform .3s;color:#706a83;font-weight:650}.simple-nav button.selected{background:#ede7ff;color:#6b50d6}.simple-nav button.selected>span{animation:nav-pop .5s var(--spring)}.page-intro .eyebrow{color:#827390;font-size:10px;letter-spacing:1.8px}.page-intro h1{font-size:39px;max-width:540px;font-weight:780;line-height:1.08;letter-spacing:-1.6px}.page-intro p{margin-top:12px;font-size:14px;color:#81798f}.simple-content{padding-bottom:120px}
.game-home{position:relative;max-width:650px;margin-top:25px;padding:5px 0 0;isolation:isolate}.game-home h1{font-size:40px;font-weight:780;letter-spacing:-1.5px}.game-home .level-caption{color:#8a7b9a;font-size:10px}.journey-dots{margin:16px auto 26px;gap:7px}.journey-dots i{width:30px;height:6px;background:#efebf7;border-radius:5px}.journey-dots i.passed{background:#b8a5f0}.journey-dots i.current{background:var(--accent);width:36px}.home-caption{font-size:13px;color:#8a8197;margin:12px 0 0}.game-home .activity-content{min-height:305px;padding-top:28px}.game-home .big-object{background:radial-gradient(circle at 35% 22%,#fff 0,var(--bubble-a) 38%,var(--bubble-b) 100%);box-shadow:inset 0 3px 3px #fff,0 12px 0 #c9d0e133,0 20px 40px #9690b422;border:2px solid #ffffffbf;width:220px;height:220px;position:relative;animation:object-arrive .7s var(--spring)}.game-home .big-object::after{content:'';width:22px;height:12px;background:#ffffffae;border-radius:50%;position:absolute;top:27px;left:44px;transform:rotate(-30deg)}.game-home .big-object svg{animation:idle-bob 2.7s ease-in-out 2}.tap-invitation{color:#847997;font-size:13px;margin-top:18px}.game-home .learning-label{animation:word-reveal .4s var(--spring)}.game-home .choice{background:#eef0ff;box-shadow:0 7px 0 #d3d4f0,inset 0 2px #ffffffbb;border:2px solid #e9e7fb;border-radius:32px;animation:object-arrive .5s var(--spring)}.game-home .choice:nth-child(2){background:#ffdfeb;box-shadow:0 7px 0 #e6b8cb;border-color:#ffe7ef;animation-delay:.07s}.game-home .choice:nth-child(3){background:#d9f0eb;box-shadow:0 7px 0 #b6d6ce;border-color:#e5f7f2;animation-delay:.12s}.game-home .choice.correct{background:#d4efe0;box-shadow:0 7px 0 #a5cbb4;border-color:#96c9ad;animation:correct-bubble .5s var(--spring)}.game-home .choice svg{transition:transform .3s var(--spring)}.game-home .choice:hover svg{transform:rotate(-5deg) scale(1.07)}.game-home .listen-button{background:#eee8ff;color:#775acc;box-shadow:0 4px 0 #dbd0f7}.game-home .feedback{font-size:14px;min-height:22px;color:#648371;margin-top:12px}.game-home .game-actions{min-height:56px}.reward-ribbon{display:flex;gap:10px;align-items:center;justify-content:center;margin:24px auto 0;border-radius:20px;font-size:11px;color:#8a75aa;min-height:44px;padding:8px 15px}.reward-ribbon>span:first-child{font-size:18px;color:#ad96dc}.reward-ribbon:hover{background:#f7f3fe;color:#6e54b7}.celebration{position:absolute;left:50%;top:55%;pointer-events:none;z-index:9}.celebration i{position:absolute;width:10px;height:10px;background:#c5a8ef;border-radius:50%;animation:celebrate-pop .85s var(--spring) both;animation-delay:var(--delay)}.celebration i:nth-child(3n){background:#ffbfd4;width:14px;height:14px}.celebration i:nth-child(3n+1){background:#b7e2d0}.match-item{box-shadow:0 4px 0 #e7e0f4;border-radius:24px}.word-token{box-shadow:0 4px 0 #d6caef;background:#ece6fb;border-radius:19px}.plate{transition:transform .3s var(--spring),background .3s}.plate.hot{transform:scale(1.045);background:#e4eefd}.plate svg{animation:object-arrive .35s var(--spring)}
.launch{position:fixed;inset:0;background:#f5f1ff;z-index:200;display:grid;place-items:center;overflow:hidden;animation:launch-enter .3s ease}.launch-cloud{position:relative;text-align:center;padding:75px 30px;isolation:isolate}.launch-logo{font-size:clamp(76px,19vw,146px);font-weight:950;letter-spacing:-9px;line-height:1.1;color:#4f39b6;animation:logo-breathe 1.9s var(--spring) both}.launch-logo span{color:#e8a4c4}.launch-cloud p{font-size:clamp(20px,4vw,30px);font-weight:650;color:#4b4063;margin:14px 0 25px;animation:word-reveal .6s .2s both}.launch-cloud small{font-size:12px;color:#887a9b;display:block;animation:word-reveal .6s .4s both}.launch-cloud>i{position:absolute;border-radius:50%;z-index:-1;background:#e5dbfa;width:105px;height:105px;left:-24px;top:20px;animation:idle-bob 2s ease-in-out 2}.launch-cloud>i:nth-child(2){width:57px;height:57px;left:auto;right:0;top:70%;background:#f7dbe8;animation-delay:.25s}.launch-cloud>i:nth-child(3){width:25px;height:25px;left:auto;right:7%;top:6%;background:#cbdad9;animation-delay:.4s}.launch-skip{position:absolute;bottom:max(42px,env(safe-area-inset-bottom));font-size:13px;color:#82709d;padding:15px 24px;min-height:44px}.launch.leaving{animation:launch-exit .35s ease both}.clean-welcome{background:#fbfaff}.welcome-focus .welcome-bubble{background:#e6def9}.welcome-focus h1{font-weight:800}.modal{position:relative;border-radius:38px;box-shadow:0 25px 100px #35205924;animation:sheet-spring .48s var(--spring);background:#fff;max-height:92svh}.modal h2{font-weight:770}.modal .eyebrow{color:#95879d}.backdrop{background:#30204738;backdrop-filter:blur(8px)}.learning-label .script{font-weight:650;color:#463954}.word-letter{font-size:clamp(22px,5vw,38px);line-height:1.6;max-width:100%;overflow-wrap:anywhere;color:#665783;font-weight:700}.big-object .word-letter{font-size:36px}.word-tile:has(.word-letter)>strong{display:none}.big-object{animation:object-arrive .5s var(--spring)}.modal .activity-content .big-object{box-shadow:0 7px 0 #e6d6e8;max-width:230px}.reference-detail{color:#797180;font-size:13px}
.library-tabs{background:#f0edf7;padding:5px;border-radius:20px;width:100%;margin-bottom:17px}.library-tabs button{flex:1;font-size:13px;font-weight:650;min-height:47px;color:#8a7c97}.library-tabs button.selected{color:#6047af;background:white;box-shadow:0 3px 7px #4b277912;animation:tab-spring .35s var(--spring)}.search-field{border:1px solid #efeaf6;border-radius:20px;padding:7px 14px;margin-top:18px;margin-bottom:20px;background:#fcfbfe}.search-field input{min-height:37px;font-size:14px}.filter-row{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding:0 0 8px;white-space:nowrap}.filter-row button{flex-shrink:0;min-height:44px!important;font-size:12px!important;color:#8a7e98!important;border-radius:17px!important;padding:11px 15px!important}.filter-row button.selected{background:#ede6fc!important;color:#7856c0!important}.category-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 18px;margin:25px 0 35px}.category-tile{text-align:left;position:relative;border-radius:29px;padding:23px 22px 20px;background:#dddcfc;box-shadow:0 7px 0 #bcbae8;display:flex;flex-direction:column;align-items:flex-start;min-height:196px;animation:tile-rise .45s var(--spring) both;animation-delay:calc(min(var(--tile-order),6)*.035s)}.category-tile:nth-child(4n+2){background:#f9c7df;box-shadow:0 7px 0 #df9fbc}.category-tile:nth-child(4n+3){background:#c8e9f4;box-shadow:0 7px 0 #a0c9da}.category-tile:nth-child(4n+4){background:#cbece3;box-shadow:0 7px 0 #a1d1c3}.category-art{width:77px;height:77px;display:block;margin-bottom:14px;transition:transform .35s var(--spring)}.category-tile:hover .category-art{transform:rotate(-7deg) translateY(-4px)}.category-tile strong{font-size:17px;letter-spacing:-.45px;font-weight:750;line-height:1.3}.category-tile small{font-size:10px;margin-top:6px;color:#6f6285}.category-tile>i{position:absolute;right:20px;top:20px;font-style:normal;opacity:.4;font-size:19px}.word-tiles{gap:17px 13px}.word-tile{background:#eeebfa;box-shadow:0 5px 0 #e0d9ef;border-radius:25px;animation:tile-rise .4s var(--spring)}.word-tile:nth-child(3n+2){background:#f9e5ed;box-shadow:0 5px 0 #ebd0dd}.word-tile:nth-child(3n+3){background:#e6f3f1;box-shadow:0 5px 0 #cde2de}.word-tile strong{font-weight:650}.word-tile small{color:#86758e}.words-page .quiet{color:#887599}.word-tile:hover{transform:translateY(-3px)}.word-tile:active,.category-tile:active{transform:translateY(5px) scale(.98);box-shadow:0 1px 0 #c4bada}
.reward-collection{display:grid;gap:11px;margin:25px 0}.reward-row{display:flex;align-items:center;gap:16px;text-align:left;padding:14px;background:#f6f2fc;border-radius:20px}.reward-row strong{font-size:14px}.reward-row small{display:block;font-size:11px;color:#887898;margin-top:5px}.reward-dot{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#cadfff;color:#837494;font-size:22px;box-shadow:inset 0 3px 4px #ffffff90,0 3px 0 #00000009}.blush{background:#f4bfd5!important}.lilac{background:#d9c7f7!important}.remix{background:#c8e8db!important}.reward-orb{display:grid;place-items:center;width:145px;height:145px;border-radius:43px;margin:32px auto;color:#9b6aaf;font-size:70px;box-shadow:0 8px 0 #ad88c021;animation:reward-spin .7s var(--spring)}.journey-total b{color:var(--accent)}.course-level.now{background:#efe8ff}.course-level.now>span{background:var(--accent)}
.nepal-map{border-radius:30px;background:#f4f0fb;overflow:hidden;margin:18px 0}.map-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 0;color:#776786}.map-heading strong{font-size:22px}.map-heading strong span{font-size:12px;font-weight:500;margin-left:7px}.map-heading>span{font-size:11px}.map-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#d2c3e6 transparent}.map-canvas{position:relative;aspect-ratio:720/440;min-width:560px}.map-canvas>svg{width:100%;height:100%}.map-mountains{font:12px sans-serif;fill:#b6a8cc;letter-spacing:1px}.map-north{font:14px sans-serif;fill:#9483a7}.map-pin{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;display:grid;place-items:center;border-radius:50%;z-index:2}.map-pin i{width:12px;height:12px;border-radius:50%;background:#9a80c6;border:3px solid white;box-shadow:0 2px 5px #5540802b;transition:all .3s var(--spring)}.map-pin span{position:absolute;top:37px;font-size:10px;white-space:nowrap;font-weight:650;color:#807091;background:#f4f0fbbb;border-radius:8px;padding:3px 5px;pointer-events:none}.map-pin[data-id=kathmandu] span,.map-pin[data-id=pokhara] span,.map-pin[data-id=birendranagar] span{top:auto;bottom:38px}.map-pin.selected i{background:#6749b2;width:19px;height:19px;box-shadow:0 0 0 8px #9475cf25}.map-pin:active{transform:translate(-50%,-50%) scale(.85)}.map-caption{font-size:9px;color:#9380a8;text-align:center;padding:12px 15px 15px}.place-card{border:1px solid #ebe5f5;border-radius:27px;padding:24px 26px;background:#fff;animation:word-reveal .4s var(--spring)}.place-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.place-card .eyebrow{font-size:9px;color:#917b9e;line-height:1.6}.place-card .listen-button{width:46px;height:46px;min-width:46px;margin:0;background:#eee6ff;color:#7755ba;font-size:17px}.place-card h2{font-size:35px;line-height:1.6;letter-spacing:0;color:#5b477c}.place-roman{color:#9b86b2;font-size:14px}.place-card h3{font-size:14px;font-weight:650;margin:6px 0 15px;color:#7e6f91}.place-story{font-size:13px;color:#7c7088;line-height:1.75}.nearby-places{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #f0ebf7;padding-top:17px;margin-top:17px}.nearby-places>span{width:100%;font-size:10px;color:#93809f;margin-bottom:3px}.nearby-pill{font-size:11px;background:#f6f2fb;border-radius:14px;min-height:44px;padding:10px}.place-list-heading{display:flex;justify-content:space-between;align-items:center;margin:35px 2px 18px}.place-list-heading h3{font-size:18px}.place-list-heading>span{font-size:11px;color:#9584a3}.place-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.place-row{display:flex;align-items:center;gap:12px;text-align:left;background:#f7f4fb;border-radius:20px;padding:17px}.place-dot{width:37px;height:37px;display:grid;place-items:center;border-radius:13px;background:#e8def7;color:#9476bc;flex-shrink:0}.place-row strong{font-size:13px;font-weight:700;display:block;line-height:1.5}.place-row div>span{font-size:15px;color:#907ea5;display:block;margin:3px 0}.place-row small{font-size:10px;color:#94859e}
.games-page{max-width:760px}.friends-invite{display:flex;align-items:center;gap:17px;width:100%;text-align:left;background:#f6f3fc;border-radius:24px;padding:18px 20px;margin:22px 0 28px}.friend-faces{display:flex;min-width:66px;align-items:center}.friend-faces i{font-size:23px;display:grid;place-items:center;border-radius:50%;width:39px;height:39px;background:#d9cdf9;color:#7d67a7;font-style:normal;border:2px solid #f6f3fc}.friend-faces i+i{margin-left:-13px;background:#f6cddf;transform:rotate(10deg)}.friends-invite>div{flex:1}.friends-invite strong{display:block;font-size:14px}.friends-invite small{font-size:10px;color:#8b7c9a;margin-top:4px;display:block}.friends-invite>span:last-child{font-size:22px;color:#aa93bb}.game-decks{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px}.game-deck{position:relative;text-align:left;border-radius:32px;padding:28px;overflow:hidden;min-height:276px;isolation:isolate;animation:tile-rise .5s var(--spring) both}.game-deck::after{content:'';position:absolute;width:230px;height:230px;border:1px solid #ffffff65;border-radius:50%;right:-85px;top:-90px;z-index:-1}.game-deck h2{font-size:27px;letter-spacing:-1.1px;margin:10px 0 6px;font-weight:780}.game-deck p{font-size:12px;color:#706187;max-width:80%}.game-badge{font-size:8px;font-weight:750;letter-spacing:1.2px;color:#78608e;display:block}.guess-deck{background:#dcd3f9;box-shadow:0 8px 0 #b4a5dc;grid-column:span 2;min-height:210px;padding-left:220px;display:flex;flex-direction:column;justify-content:center}.guess-deck .party-art{position:absolute;left:34px;top:26px;width:140px}.party-art>span{background:#8b72cf;box-shadow:0 8px 0 #6e55b0;font-size:31px;animation:tilt-card 3.8s ease-in-out 2;padding:26px 20px;min-width:112px;text-align:center}.party-art>i{background:#fbd5e7;color:#bf729e;animation:bob-card 3.8s .2s ease-in-out 2}.game-deck:hover .party-art>span{animation:tilt-card 1.7s ease-in-out 2}.word-deck{background:#f9cde1;box-shadow:0 8px 0 #dda7c1}.nepal-deck{background:#cfece4;box-shadow:0 8px 0 #a3cbbf}.deck-arrow{position:absolute;right:23px;bottom:24px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ffffff60;color:#837290;font-size:20px}.quiz-stack{height:92px;position:relative;margin-bottom:22px;padding:8px 13px}.quiz-stack i{position:absolute;width:68px;height:76px;display:grid;place-items:center;font-size:37px;font-style:normal;border-radius:20px;background:#fff4fa;color:#c278a0;transform:rotate(-9deg);box-shadow:0 4px 0 #e6aac7}.quiz-stack i+i{left:73px;top:11px;transform:rotate(11deg);background:#e2abe0;color:#ad6daa;animation:idle-bob 3s ease-in-out 2}.mini-nepal{height:100px;position:relative;color:#78bca7;max-width:170px;margin-bottom:14px}.mini-nepal i{position:absolute;right:5px;top:2px;font-style:normal;color:#ecf7ed;font-size:31px;animation:idle-bob 2.6s ease-in-out 2}.quiz-intro-art{width:108px;height:108px;background:#ede6fd;box-shadow:0 7px 0 #daceef;border-radius:32px;display:grid;place-items:center;font-size:53px;color:#a08ace;margin:30px auto;transform:rotate(-5deg);animation:reward-spin .6s var(--spring)}.setup-label{text-align:center;font-size:11px;color:#9584a9;margin-top:25px}.game-options{border-top:1px solid #f0eaf7;border-bottom:1px solid #f0eaf7;margin:20px 0;padding:15px 0}.game-options summary{cursor:pointer;font-size:12px;font-weight:650;min-height:44px;line-height:44px}.game-options summary span{float:right;color:#927da4;font-size:11px;font-weight:400}.deck-picker button{border-radius:16px;box-shadow:0 3px 0 #e9e1f3;background:#f4effa;color:#806492;transition:all .3s var(--spring)}.deck-picker button.selected{background:#dcccfa;color:#63418f;box-shadow:0 4px 0 #baa2df;transform:translateY(-2px)}.quiz-progress{height:7px;border-radius:7px;background:#f0e8fc;margin:23px 0 8px;overflow:hidden}.quiz-progress i{display:block;background:#a089d5;border-radius:7px;height:100%;transition:width .4s var(--spring)}.quiz-answers{grid-template-columns:1fr 1fr;gap:15px}.quiz-answer{background:#f1ebfa;box-shadow:0 5px 0 #ddd1ed;min-height:68px;border:2px solid transparent;font-size:16px;animation:tile-rise .3s var(--spring)}.quiz-answer.correct{border-color:#aad5b5;box-shadow:0 5px 0 #b9d7c2}.quiz-answer.incorrect{box-shadow:0 5px 0 #edc5d1}.quiz-question{font-size:29px;line-height:1.5;padding:25px 0;color:#4e3f66;font-weight:700}.quiz-score{color:var(--accent)}.review-answers{padding:18px;background:#f6f1fc;border-radius:20px;margin-top:22px;font-size:13px;color:#806996}.review-answers summary{cursor:pointer;min-height:44px}.review-answers p{padding:12px 0;border-top:1px solid #e9dff4;margin-top:10px}.tutorial-art{height:160px;display:grid;place-items:center;margin:22px 0 15px;background:#f6f0fd;border-radius:27px;overflow:hidden}.demo-head{position:relative;width:86px;height:104px;border-radius:40px 40px 46px 46px;background:#ebc0a5;margin-top:20px;box-shadow:inset -8px -2px #ddb396}.demo-hair{position:absolute;top:-5px;left:-5px;width:92px;height:45px;border-radius:50% 50% 20% 20%;background:#52405c}.demo-eye{position:absolute;top:55px;left:21px;width:5px;height:8px;border-radius:5px;background:#674b57}.demo-eye.right{left:auto;right:21px}.demo-phone{position:absolute;top:-20px;left:-22px;width:130px;height:66px;border-radius:16px;background:#9576ce;border:4px solid #766093;color:white;text-align:center;padding:5px;animation:phone-lift 2.3s ease-in-out 2}.demo-phone strong{font-size:23px;display:block;line-height:1.3}.demo-phone small{font-size:10px;color:#e5d5ff}.demo-clue{position:relative;text-align:center}.demo-clue>span{padding:15px 20px;border-radius:20px 20px 20px 3px;background:#fff;font-size:13px;display:block;color:#8e6d9f;animation:word-reveal .6s var(--spring)}.demo-clue>div{font-size:30px;color:#9768c1;margin-top:15px;animation:word-reveal .6s .4s var(--spring) both}.demo-answer{text-align:center;animation:correct-bubble .7s var(--spring)}.demo-answer i{font-size:35px;font-style:normal;background:#cce8d8;color:#6b9c7d;border-radius:50%;width:69px;height:69px;display:grid;place-items:center;margin:0 auto 12px}.demo-answer span{color:#8b759e;font-weight:700}.tutorial-copy{text-align:center;min-height:86px}.tutorial-copy h3{font-size:19px}.tutorial-copy p{font-size:12px;color:#857490;margin:9px auto 0;max-width:350px;line-height:1.7}.tutorial-tabs{display:flex;gap:9px;justify-content:center;align-items:center;margin:12px 0}.tutorial-tabs>button:not(.quiet){width:44px;min-height:44px;border-radius:15px;background:#f6f0fc;color:#9177a6;font-size:12px}.tutorial-tabs>button.selected{background:#cdb9ed;color:#674295}.tutorial-tabs .quiet{font-size:11px;color:#8868a3}.party-board{background:#7960bd}.modal.party-modal{background:#7960bd}.party-correct{color:#7960bd;box-shadow:0 5px 0 #dfd4f0}.party-pass{box-shadow:0 5px 0 #634b9b}.forehead-word{animation:forehead-slide .4s var(--spring)}.forehead-word h2{color:#fff}.party-board header,.forehead-word p{color:#e4d9f6}.forehead-word small,.party-hint{color:#d4c5eb}.party-recap>div{background:#f5effb}
.friends-empty{text-align:center;padding:32px 15px;color:#8d77a0;font-size:13px}.friends-empty>span{display:block;font-size:48px;letter-spacing:10px;color:#c5b2dc;margin-bottom:19px}.leaderboard{display:grid;gap:12px;margin:25px 0}.leader-row{display:flex;align-items:center;gap:13px;padding:16px 14px;text-align:left;background:#f7f3fc;border:2px solid transparent;border-radius:22px}.leader-row.selected{border-color:#d9c9ef;background:#f0e7ff}.rank{font-size:16px;color:#9986ab;width:22px;text-align:center}.friend-avatar{width:41px;height:41px;display:grid;place-items:center;background:#dccaf5;color:#805da5;border-radius:16px;font-size:18px;flex-shrink:0}.avatar-1{background:#f6cddf;color:#a26082}.avatar-2{background:#cbe9de;color:#558b72}.avatar-3{background:#cbe6f5;color:#5386a5}.leader-row>div:nth-of-type(2){flex:1;min-width:0}.leader-row strong{font-size:14px;overflow-wrap:anywhere}.leader-row small{display:block;font-size:10px;color:#9580a9;margin-top:4px}.leader-row>b{font-size:21px;color:#8f71b5;text-align:right}.leader-row>b small{font-weight:400}#friend-name{margin-top:10px;border:1px solid #e5dbef;background:#fcfaff;border-radius:18px;min-height:56px;padding:15px;width:100%;font-size:16px}
@keyframes nav-pop{40%{transform:translateY(-5px) scale(1.2)}75%{transform:translateY(1px)}}@keyframes object-arrive{from{opacity:0;transform:translateY(15px) scale(.85)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes idle-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(2deg)}}@keyframes word-reveal{from{opacity:0;transform:translateY(9px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes celebrate-pop{0%{opacity:1;transform:translate(0,0) scale(.3)}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(.8)}}@keyframes logo-breathe{0%{opacity:0;transform:scale(.75)}35%{opacity:1;transform:scale(1.07)}60%{transform:scale(.98)}100%{transform:scale(1)}}@keyframes launch-enter{from{opacity:0}to{opacity:1}}@keyframes launch-exit{to{opacity:0;transform:scale(1.08)}}@keyframes sheet-spring{from{opacity:0;transform:translateY(36px) scale(.94)}70%{opacity:1;transform:translateY(-3px) scale(1.005)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tab-spring{50%{transform:scale(1.045)}}@keyframes tile-rise{from{opacity:0;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}@keyframes reward-spin{from{opacity:0;transform:rotate(-12deg) scale(.8)}to{opacity:1;transform:rotate(0) scale(1)}}@keyframes tilt-card{0%,100%{transform:rotate(-9deg) translateY(0)}50%{transform:rotate(-3deg) translateY(-5px)}}@keyframes bob-card{0%,100%{transform:rotate(15deg) translateY(0)}50%{transform:rotate(8deg) translateY(-8px)}}@keyframes phone-lift{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(3deg) translateY(-8px)}}@keyframes forehead-slide{from{opacity:0;transform:translateX(22px) rotate(2deg)}to{opacity:1;transform:translateX(0) rotate(0)}}
@media(hover:hover){.game-deck:hover{transform:translateY(-4px)}.game-deck:active{transform:translateY(5px) scale(.98)}}
@media(max-width:700px){.simple-shell{padding:0 22px}.simple-header{height:87px}.simple-header .brand{font-size:32px}.simple-nav{min-width:0;max-width:380px;padding:6px 10px;gap:3px}.simple-nav button{min-width:0;font-size:11px;padding:8px}.simple-nav button>span{font-size:23px}.page-intro h1{font-size:32px}.game-home{margin-top:17px}.game-home h1{font-size:31px}.game-home .activity-content{min-height:270px;padding-top:26px}.game-home .big-object{width:200px;height:200px;padding:37px}.home-caption{font-size:12px}.game-home .choice{width:121px;height:121px;padding:20px;border-radius:29px}.category-tiles{grid-template-columns:1fr 1fr;gap:20px 15px;margin-top:22px}.category-tile{padding:21px 18px 19px;min-height:181px;border-radius:26px}.category-art{width:69px;height:69px;margin-bottom:14px}.category-tile strong{font-size:16px}.category-tile small{font-size:9px}.category-tile>i{right:16px;top:16px;font-size:17px}.word-tiles{gap:16px 11px}.word-tile{min-height:130px}.library-tabs button{padding:10px 14px;font-size:12px}.word-tile .word-letter{font-size:25px}.map-heading{padding:18px 19px 0}.map-heading>span{font-size:9px}.map-heading strong{font-size:18px}.map-caption{font-size:9px}.place-card{padding:19px 20px}.place-card h2{font-size:31px}.place-list{gap:10px}.place-row{padding:15px 13px;gap:10px}.place-row strong{font-size:12px}.place-row small{font-size:9px}.place-dot{display:none}.place-story{font-size:12px}.game-decks{gap:23px 16px}.game-deck{padding:22px 19px;min-height:247px;border-radius:27px}.game-deck h2{font-size:22px;letter-spacing:-.8px;line-height:1.13;max-width:170px}.game-deck p{font-size:10px;max-width:95%;margin-top:10px}.game-badge{font-size:7px;line-height:1.6;letter-spacing:.6px}.guess-deck{padding-left:157px;min-height:195px}.guess-deck .party-art{left:18px;top:32px;min-width:105px;width:105px}.party-art>span{min-width:94px;font-size:27px;padding:23px 15px}.party-art>i{right:-12px;top:-4px;font-size:22px;padding:9px 14px}.deck-arrow{right:17px;bottom:19px;font-size:17px;width:29px;height:29px}.word-deck .deck-arrow,.nepal-deck .deck-arrow{display:none}.quiz-stack{height:82px;padding-left:0;margin-bottom:18px}.quiz-stack i{width:56px;height:66px;font-size:31px}.quiz-stack i+i{left:47px}.mini-nepal{height:87px}.friends-invite{padding:16px;gap:12px}.friends-invite strong{font-size:13px}.friends-invite small{font-size:9px}.friend-faces{min-width:58px}.friend-faces i{width:36px;height:36px}.modal{border-radius:29px;padding:25px 22px;max-height:92svh}.modal h2{font-size:28px}.quiz-question{font-size:24px}.quiz-answer{font-size:14px;padding:15px;min-height:65px}.quiz-answers{gap:14px 11px}.tutorial-art{height:152px}.game-options summary span{max-width:60%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.leader-row{gap:9px;padding:14px 10px}.leader-row strong{font-size:13px}.friend-avatar{width:36px;height:36px}.launch-logo{letter-spacing:-5px}}
@media(max-width:360px){.simple-shell{padding:0 17px}.simple-header .brand{font-size:29px}.simple-header .row{gap:8px}.xp-pill{font-size:11px;padding:10px 12px}.page-intro h1{font-size:29px}.game-home h1{font-size:28px}.game-home .choice{width:113px;height:113px}.category-tile{padding:18px 15px;min-height:171px}.category-tile strong{font-size:14px}.category-tile small{font-size:8px}.category-art{width:63px;height:63px}.guess-deck{padding-left:131px}.guess-deck .party-art{left:8px;width:97px}.game-deck h2{font-size:20px}.word-tiles{grid-template-columns:1fr 1fr}.game-badge{font-size:6px}.party-art>span{font-size:23px;min-width:83px}.friends-invite small{font-size:8px}.reward-ribbon{font-size:10px}.library-tabs button{padding:10px 8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body[data-motion=reduce] *,body[data-motion=reduce] *::before,body[data-motion=reduce] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Combined reference direction: SANO blue/pink, floating glass and tactile cards. */
:root{--accent:#075bdd;--spring:cubic-bezier(.2,1.35,.4,1)}
body{background:#edf0f7}.simple-shell{background:radial-gradient(ellipse 520px 250px at 95% -30px,#e2edff 0,transparent 80%),radial-gradient(ellipse 410px 200px at 0 20px,#ffeff7 0,transparent 85%),#fcfcfe}.simple-header .brand,.brand{color:#202842}.brand-period,.brand-mark{color:var(--accent)}.menu-dot,.icon-btn{background:#ffffffb8;backdrop-filter:blur(12px);border:1px solid #fff;box-shadow:0 6px 20px #273c6810}.xp-pill{background:#ffffffc9;color:#4073b4;border:1px solid #fff;box-shadow:0 5px 18px #28579613}.pill.primary{background:linear-gradient(165deg,#498ef1,#075bdd);box-shadow:0 5px 12px #075bdd20,inset 0 1px 0 #ffffff4f;border-radius:100px}.pill.primary:active{box-shadow:0 2px 5px #075bdd22}.simple-nav{border-radius:100px;background:#ffffffcb;border:1px solid #ffffffdd;padding:9px;box-shadow:0 12px 38px #2446781a;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.simple-nav button{border-radius:100px;padding:10px 18px;min-height:60px}.simple-nav button.selected{background:#e2edff;color:#2265bd;box-shadow:inset 0 1px 0 #fff}.page-intro h1{font-weight:800;color:#20243a}.game-home h1{font-weight:800;color:#20243a}.game-home .activity-content{position:relative}.game-home .big-object{border-radius:43%;box-shadow:inset 0 3px 3px #fff,0 13px 38px #3e6cba18;background:radial-gradient(circle at 32% 22%,#ffffff,var(--bubble-a) 42%,var(--bubble-b));border:1px solid #ffffffaa}.game-home .choice{border-color:#ffffffa8;box-shadow:0 5px 0 #d3d4f070,0 12px 23px #6274a514}.game-home .choice:nth-child(2){box-shadow:0 5px 0 #e6b8cb70,0 12px 23px #ad789512}.game-home .choice:nth-child(3){box-shadow:0 5px 0 #b6d6ce70,0 12px 23px #78ad9512}.game-home .listen-button{background:#edf3ff;color:#467cbc;box-shadow:inset 0 1px 0 #fff,0 5px 16px #467cbc14}.journey-dots i.current{background:var(--accent)}.journey-dots i.passed{background:#a9c8ee}.level-caption{color:#7d8ba7!important}.home-caption{color:#7d89a0}.reward-ribbon{color:#7c8ca7}.reward-ribbon>span:first-child{color:#a28dbb}.launch{background:radial-gradient(ellipse at 80% 0,#dbeafe,transparent 65%),#f8f9fd}.launch-logo{color:#075bdd}.launch-cloud p{color:#34415b}.launch-cloud small{color:#8391a5}.launch-cloud>i{background:#d8e8f9}.launch-cloud>i:nth-child(2){background:#f4d9e6}.launch-cloud>i:nth-child(3){background:#d1e8e0}.modal{background:#ffffffee;border:1px solid #ffffffed;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 25px 90px #1d3b612a}.backdrop{background:#27355230;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);animation:launch-enter .25s ease}.library-tabs{background:#e8edf3a8;border:1px solid #ffffffaf;border-radius:100px;box-shadow:inset 0 1px 1px #00000003}.library-tabs button{border-radius:100px;color:#7d889d}.library-tabs button.selected{color:#2262b0;box-shadow:0 5px 14px #53688614}.search-field{background:#ffffffba;border-color:#ffffff;border-radius:100px;box-shadow:0 5px 18px #53688608}.filter-row button.selected{background:#e4edfc!important;color:#3975bb!important}.category-tile{border:1px solid #ffffff7a;box-shadow:0 6px 0 #bcbae88a,0 10px 20px #8972a712}.category-tile:nth-child(4n+2){box-shadow:0 6px 0 #df9fbc88,0 10px 20px #b7809b12}.category-tile:nth-child(4n+3){box-shadow:0 6px 0 #a0c9da88,0 10px 20px #7aa4b512}.category-tile:nth-child(4n+4){box-shadow:0 6px 0 #a1d1c388,0 10px 20px #7db49f12}.game-deck{border:1px solid #ffffff77}.guess-deck{box-shadow:0 6px 0 #b4a5dc88,0 16px 30px #8668ac12}.word-deck{box-shadow:0 6px 0 #dda7c188,0 16px 30px #a76b9212}.nepal-deck{box-shadow:0 6px 0 #a3cbbf88,0 16px 30px #76ad9312}.friends-invite{background:#ffffffb7;border:1px solid #fff;box-shadow:0 7px 24px #5a698910}.place-card{background:#ffffffbb;border-color:#ffffff;box-shadow:0 5px 24px #3f639310}.nepal-map{background:#eef4fb}.map-pin i{background:#6d9ec9}.map-pin.selected i{background:#357ac1;box-shadow:0 0 0 8px #75a8cf25}.map-pin span{background:#eef4fbc9;color:#6a86a1}.map-heading{color:#6288ab}.map-mountains{fill:#9ab5cd}.map-caption{color:#849fb7}.place-card h2{color:#426b99}.place-card .listen-button{background:#e8f1ff;color:#5b88bc}.place-roman{color:#7b96b6}.place-row{background:#f1f5faf0}.place-dot{background:#dce9f7;color:#7397bd}.nearby-pill{background:#edf4fc;color:#6685ab}.reward-row{background:#f2f5fb}.course-level.now{background:#eaf1ff}.learning-label .script{color:#334b6d}.reward-dot.blue{background:#cadfff}.simple-content{overflow-x:clip}.place-card,.category-tile,.game-deck,.word-tile{contain:paint}
@media(min-width:1100px){.simple-shell{box-shadow:0 0 100px #58749b0a}.page-intro{margin-top:26px}.games-page,.words-page{padding-top:6px}}
@media(max-width:700px){.simple-nav button{padding:7px 12px;min-height:57px}.simple-nav{padding:7px}.simple-content{padding-bottom:115px}.modal{border-radius:34px}}
@media(max-width:560px){.backdrop{align-items:flex-end;padding:12px 8px max(8px,env(safe-area-inset-bottom))}.modal{width:100%;max-height:92svh;padding:26px 23px 28px}.modal::before{content:'';display:block;width:38px;height:5px;border-radius:5px;background:#d6deea;margin:-13px auto 19px}.modal.party-modal::before{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* SANO 0.4 · one focus, two age-appropriate presentations. */
:root{--ink:#23304b;--quiet:#75839b;--focus-shadow:0 14px 44px #3958830b}
body{color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Rounded","Segoe UI",sans-serif}
.simple-shell{max-width:920px;padding:0 40px;background:radial-gradient(ellipse at 95% 0,#e9f0ff 0,transparent 45%),radial-gradient(ellipse at 0 0,#fff0f6 0,transparent 40%),#fafbfe}
.simple-header{height:94px}.simple-header .brand{font-size:38px;letter-spacing:-2.5px}.brand-mark{display:none}.simple-header .brand-period{margin-left:-7px}.menu-dot{width:46px;height:46px}.xp-pill{min-height:46px;font-size:13px}.simple-content{padding-bottom:125px}
.game-home{max-width:570px;margin:8px auto 0;padding:0;text-align:center}.round-progress{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:390px;margin:0 auto 22px;color:#667995;font-size:13px;font-weight:650}.round-progress>span:last-child{font-weight:500;color:#7c8ca2}.round-progress .journey-dots{margin:0;gap:5px}.round-progress .journey-dots i{width:22px;height:5px}.round-progress .journey-dots i.current{width:26px}
.focus-card{position:relative;padding:34px 30px 20px;background:#ffffffc9;border:1px solid #fff;border-radius:38px;box-shadow:var(--focus-shadow);min-height:450px}.scene-tag{display:block;font-size:11px;line-height:1.5;color:#6c80a0;letter-spacing:1.1px;text-transform:uppercase;font-weight:650;margin-bottom:12px}.game-home h1{font-size:34px;line-height:1.12;letter-spacing:-1.3px;font-weight:760;max-width:460px;margin:0 auto}.game-home .activity-content{padding-top:23px;min-height:268px}.game-home .big-object{width:205px;height:205px;padding:33px;border-radius:42%;box-shadow:inset 0 3px 5px #fff,0 12px 32px #4b81b11a}.game-home .big-object .word-letter{font-size:27px}.tap-invitation{font-size:13px;margin-top:16px;color:#6c7e98}.game-home .learning-label{margin:15px auto 0}.learning-label .script{font-size:32px}.learning-label .roman{font-size:15px;color:#647594}.learning-label .meaning{font-size:13px;color:#76859a}.game-home .feedback{min-height:24px;color:#477462;margin:14px auto 4px;font-size:14px}.game-home .game-actions{display:flex;justify-content:center;align-items:center;min-height:56px;gap:8px;margin-top:8px}.continue-game{min-width:190px}.game-home.won .focus-card{box-shadow:0 12px 40px #608b6313}.game-home .quiet{font-size:13px}.game-home .help-button{min-height:46px}
.listen-prompt{display:flex;justify-content:center;align-items:center;gap:14px;margin-bottom:21px}.game-home .listen-prompt .prompt{font-size:26px;line-height:1.5;margin:0;max-width:370px}.game-home .listen-button{width:52px;height:52px;flex-shrink:0;min-width:52px;border-radius:50%;font-size:21px}.game-home .choice-grid{display:flex;flex-wrap:wrap;gap:17px;justify-content:center;max-width:390px;margin:auto}.game-home .choice{width:138px;height:140px;padding:23px;border-radius:30px}.game-home .choice:nth-child(3){margin-top:0}.game-home .choice-grid:has(.choice:nth-child(4)){max-width:330px}.choice.hint-glow,.reply-choice.hint-glow{outline:4px solid #82a9e8;outline-offset:5px;animation:hint-bounce .8s ease 2!important}.reply-choice.correct{background:#e2f3ea;border-color:#95c5ab}.conversation-bubble{display:flex;gap:14px;align-items:center;justify-content:center;background:#edf3ff;padding:18px 20px;border-radius:24px 24px 24px 6px;margin-bottom:20px;font-size:24px;line-height:1.6}.reply-choices{display:grid;gap:12px}.reply-choice{padding:14px 20px;background:#fafbfe;border:1.5px solid #e7ecf5;border-radius:22px;text-align:left}.reply-choice .learning-label{margin:0}.reply-choice .script{font-size:22px}.reply-choice .roman{font-size:12px}.reply-choice .meaning{font-size:12px}.reply-choice:active{background:#eef4ff}.game-home .match-grid{max-width:370px;gap:22px}.game-home .match-item{min-height:90px;border-radius:24px;padding:15px 10px}.game-home .match-item small{font-size:11px}.game-home .match-item svg{height:65px;max-width:80px}.game-home .sentence-answer{font-size:24px;padding:20px 16px;min-height:80px}.sentence-words{gap:10px}.word-token{font-size:22px;padding:13px 17px}.game-home .plate{min-height:118px;max-width:330px;gap:8px;margin:14px auto}.game-home .plate svg{width:48px;height:48px}.game-home .draggable{width:74px;height:74px}.game-home .count-label{font-size:15px}.game-home .record{width:66px;height:66px;margin:20px auto 10px;font-size:26px}.voice-details{margin:15px auto 0;font-size:11px;color:#7e8ba0;max-width:350px}.voice-details summary{padding:10px;cursor:pointer;min-height:40px}.voice-details p{line-height:1.6}.voice-status{font-size:12px;max-width:360px;margin:15px auto 0;text-align:center}.speaking-companion{width:140px;height:140px;margin:0 auto 20px}
/* Child: a chunky picture card and larger controls; no reading required to answer. */
.little .game-home{max-width:560px}.little .round-progress{font-size:15px;max-width:380px;margin-bottom:21px}.little .focus-card{padding:29px 22px 22px;border-radius:38px;box-shadow:0 7px 0 #dce5f566,0 20px 50px #6585b112;background:#fff;isolation:isolate}.little .focus-card::before,.little .focus-card::after{content:'';position:absolute;top:9%;bottom:10%;left:-11px;width:17px;border-radius:24px 0 0 24px;background:#e2edfa;transform:rotate(-2deg);z-index:-1;pointer-events:none}.little .focus-card::after{top:11%;bottom:8%;left:auto;right:-10px;border-radius:0 24px 24px 0;background:#f8dfeb;transform:rotate(2deg)}.little .focus-card{background-clip:padding-box}.little .focus-card>*{position:relative;z-index:1}.little .focus-card::before{box-shadow:inset 0 0 0 100vmax #ffffff20}.little .game-home h1{font-size:36px;letter-spacing:-1.1px;max-width:420px}.little .game-home .activity-content{padding-top:24px;min-height:290px;background:white;border-radius:24px}.little .game-home .big-object{width:240px;height:240px;padding:30px;box-shadow:inset 0 3px 5px #fff,0 10px 0 #d0dff244,0 18px 35px #5477b016}.little .game-home .big-object svg{max-width:none;max-height:none}.little .game-home .big-object .letter-art{font-size:96px}.little .game-home .tap-invitation{font-size:17px;margin-top:17px;color:#667c9e}.little .game-home .learning-label .script{font-size:40px}.little .game-home .choice{width:157px;height:157px;padding:23px;border-radius:32px}.little .game-home .choice-grid:has(.choice:nth-child(3)){max-width:390px;gap:18px}.little .game-home .listen-prompt .prompt{font-size:33px}.little .game-home .listen-button{width:60px;height:60px;min-width:60px;font-size:26px}.little .game-home .help-button{width:52px;height:52px;border-radius:50%;background:#eaf1fd;color:#376fb4;font-size:25px;font-weight:700}.little .game-home .pill.primary{font-size:19px;min-height:60px;padding:16px 32px}.little .game-home .feedback{font-size:19px;margin-top:18px}.little .game-home .match-item{min-height:114px;padding:16px;box-shadow:0 5px 0 #d7e3f1;border:2px solid #fff}.little .game-home .match-item svg{width:89px;height:89px;max-width:100%}.little .game-home .draggable{width:86px;height:86px}.little .game-home .icon-btn{width:56px;height:56px;font-size:25px}.little .game-home .count-label{font-size:21px}.little .game-home .plate svg{width:49px;height:49px}.count-target{display:flex;justify-content:center;gap:9px;margin:-5px 0 14px}.count-target i{width:13px;height:13px;border-radius:50%;background:#b2cef4}.little .speaking-companion{width:180px;height:180px}.little .game-home .record-note{font-size:12px}.little .simple-nav button{font-size:13px;min-height:63px}.little .simple-nav button>span{font-size:29px}.little .word-tile{min-height:160px}.little .word-tile svg{width:78px;height:78px}.little .word-tile strong{font-size:24px}.little .word-tile small{font-size:13px}
/* Brand opening: calm orbital flags, never a loading gate. */
.clean-welcome{max-width:920px;background:radial-gradient(ellipse at 80% 10%,#e3eeff,transparent 52%),radial-gradient(ellipse at 0 40%,#fff0f6,transparent 50%),#fafbfe;padding:0 24px;overflow:hidden}.welcome-focus{min-height:100svh;gap:0;padding:50px 0 40px}.brand-stage{position:relative;text-align:center;isolation:isolate;width:min(690px,100%);padding:140px 14px 95px;margin:0 auto}.hero-wordmark{font-size:clamp(84px,20vw,156px);font-weight:950;letter-spacing:-.085em;line-height:1;color:#075bdd;position:relative;animation:brand-arrive 1.1s cubic-bezier(.22,1.25,.44,1) both}.hero-wordmark span{color:#eaa9c7}.brand-slogan{font-size:clamp(23px,5vw,31px)!important;letter-spacing:-.5px;font-weight:650;color:#35435e!important;margin:20px 0 0!important;animation:word-reveal .7s .2s both}.brand-orbit{position:absolute;inset:0;z-index:-1;pointer-events:none}.flag-orb,.learning-orb{position:absolute;display:grid;place-items:center;border-radius:32%;background:#ffffffc9;box-shadow:inset 0 1px 0 #fff,0 14px 30px #3658820e;font-style:normal;animation:orbit-drift 5s ease-in-out 3}.flag-orb{font-size:46px;width:88px;height:88px}.flag-nepal{left:12%;top:24px;--tilt:-13deg;transform:rotate(-13deg);background:#e4efff}.flag-britain{right:8%;bottom:17px;--tilt:12deg;transform:rotate(12deg);background:#ffe8f2;animation-delay:-1.1s}.learning-orb{font-size:30px;font-weight:750;color:#7195c6;width:60px;height:60px}.orb-ka{right:14%;top:45px;--tilt:9deg;background:#e7e2fc;color:#9a86c3;animation-delay:-.5s}.orb-a{left:8%;bottom:28px;--tilt:-8deg;background:#e3f1ec;color:#8dad9e;animation-delay:-1.6s}.brand-dot{position:absolute;right:39%;top:19px;width:12px;height:12px;background:#f0b2cd;border-radius:50%}.welcome-focus .welcome-message{font-size:15px;color:#75829a;line-height:1.7;margin:8px 0 25px}.welcome-focus .pill{min-width:230px;min-height:60px;font-size:18px;margin:0 0 18px}.welcome-language{color:#647894;font-size:12px}.launch .brand-stage{padding-top:135px;padding-bottom:105px}.launch .brand-orbit{animation:brand-arrive 1.2s ease both}.launch-skip{font-size:16px;color:#5277aa;min-height:56px}.launch.leaving{animation:launch-exit .4s cubic-bezier(.2,.7,.3,1) both}
.clean-onboard{padding:35px 25px;max-width:570px;margin:auto;min-height:100svh}.clean-onboard h1{font-size:42px;letter-spacing:-1.6px;margin:30px 0 10px}.clean-onboard>.muted{font-size:18px}.learner-options{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:27px 0}.learner-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border-radius:32px;padding:23px 21px;min-height:258px;border:1px solid #ffffff;box-shadow:0 6px 0 #d3e1f078,0 14px 35px #5a79a710;background:#e5efff;animation:tile-rise .45s var(--spring)}.learner-option.adult-option{background:#f9e5ee;box-shadow:0 6px 0 #e9c9d980,0 14px 35px #9b658210}.learner-art{display:block;width:100px;height:105px;margin:0 auto 20px}.learner-option strong{font-size:27px;letter-spacing:-.6px;margin-bottom:7px}.learner-option small{font-size:13px;color:#607693;line-height:1.5;max-width:170px}.learner-option>i{font-style:normal;position:absolute;right:19px;top:19px;color:#8ea3c0}.adult-art{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:31px;font-weight:700;color:#a17391;transform:rotate(-6deg);border-radius:27px;background:#fffbfd;box-shadow:0 5px 0 #e9c3d680;height:88px;margin:10px auto 27px}.adult-art span{font-size:13px;font-weight:500;margin-top:4px;color:#af8a9d}.clean-onboard>.footnote{font-size:12px;color:#7a889c;text-align:center;margin-top:30px}
/* Keep the depth of the reference library behind six quiet entrances. */
.page-intro{margin:20px 0 26px}.page-intro h1{font-size:37px;margin:0}.words-page,.games-page{max-width:660px}.library-tabs{width:100%;margin-bottom:14px}.library-tabs button{font-size:14px}.category-tiles{grid-template-columns:repeat(2,1fr);gap:20px;margin-top:22px}.category-tile{min-height:160px;padding:22px;border-radius:28px;box-shadow:0 4px 0 #bcbae877,0 10px 20px #8972a709}.category-art{width:72px;height:72px;margin-bottom:15px}.category-tile strong{font-size:18px;line-height:1.25}.category-tile>i{font-size:17px}.reference-note{color:#75849b}.games-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.friends-button{border-radius:50px;padding:11px 16px;font-size:13px;background:#fff;min-height:46px;color:#657ca1;box-shadow:0 5px 20px #627da710}.game-decks{gap:22px 18px}.game-deck{min-height:245px;padding:25px}.game-deck h2{font-size:27px;max-width:200px;letter-spacing:-.9px;line-height:1.15}.game-deck p{font-size:13px;margin-top:10px}.guess-deck{min-height:203px;padding:43px 28px 30px 195px}.guess-deck .party-art{left:33px;top:33px;width:118px}.quiz-stack{margin-bottom:20px}.mini-nepal{margin-bottom:17px}.game-deck .deck-arrow{width:33px;height:33px;font-size:19px}
.round-complete{max-width:440px;padding:24px 14px}.round-complete h1{font-size:36px;margin:12px auto 24px}.round-medal{width:100px;height:100px;border-radius:34%;background:#e1f2eb;color:#5b9981;display:grid;place-items:center;margin:0 auto 25px;font-size:50px;animation:object-arrive .65s var(--spring)}.little .round-medal{width:160px;height:160px;background:#e8f0ff;padding:17px}.round-souvenirs{display:flex;gap:12px;justify-content:center;margin:25px 0}.round-souvenirs>div{width:112px;min-height:125px;border-radius:24px;background:#edf2fc;padding:16px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.round-souvenirs>div:nth-child(2){background:#fdeaf2}.round-souvenirs>div:nth-child(3){background:#e7f3ee}.round-souvenirs svg{width:64px;height:64px}.round-souvenirs span{font-size:17px;line-height:1.6}.round-souvenirs .word-letter{font-size:17px}.round-next{font-size:14px;color:#667c99;margin-bottom:24px}.saved-note{display:block;font-size:12px;color:#7f8d9d;margin-top:19px}.rest-home{padding-top:35px}.rest-art{width:145px;height:145px;margin:0 auto 30px}.rest-home p{max-width:290px;margin:22px auto 28px;color:#7a889e;font-size:15px}.rest-home .pill{margin-bottom:15px}.collection-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:25px 0}.collection-word{background:#edf3ff;border-radius:20px;min-height:79px;padding:13px}.collection-word svg{width:54px;height:54px;margin:auto}.collection-word .word-letter{font-size:17px}.collection-word .letter-art{font-size:30px}.round-complete .finish-bubble{width:140px;height:140px;margin:10px auto 25px}
@keyframes orbit-drift{0%,100%{transform:translateY(0) rotate(var(--tilt,0deg))}50%{transform:translateY(-12px) rotate(calc(var(--tilt,0deg) + 6deg))}}@keyframes brand-arrive{from{opacity:0;transform:translateY(15px) scale(.83)}65%{opacity:1;transform:translateY(-2px) scale(1.035)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes hint-bounce{50%{transform:translateY(-5px) scale(1.03)}}
@media(min-width:1000px){.simple-shell{border-left:1px solid #fff;border-right:1px solid #fff}.simple-content{padding-top:12px}.focus-card{padding-top:40px}.little .focus-card{margin:0 20px}}
@media(max-width:700px){.simple-shell{padding:0 22px}.simple-header{height:83px}.simple-header .brand{font-size:35px}.simple-content{padding-bottom:118px}.game-home{margin:6px auto 0}.focus-card{padding:28px 20px 18px;border-radius:32px;min-height:435px}.game-home h1{font-size:29px;letter-spacing:-1px}.game-home .activity-content{min-height:254px;padding-top:24px}.round-progress{margin:0 auto 17px;padding:0 4px;font-size:12px}.round-progress .journey-dots i{width:19px}.round-progress .journey-dots i.current{width:23px}.game-home .choice{width:121px;height:127px;padding:22px}.game-home .choice-grid{gap:14px}.game-home .choice-grid:has(.choice:nth-child(3)){max-width:320px;gap:14px}.game-home .big-object{width:195px;height:195px;padding:31px}.game-home .listen-prompt .prompt{font-size:24px}.game-home .match-grid{gap:17px}.game-home .match-item{font-size:20px;min-height:89px}.game-home .match-item svg{height:56px}.game-home .draggable{width:64px;height:64px}.game-home .plate svg{width:41px;height:41px}.game-home .feedback{font-size:13px}.scene-tag{font-size:10px}.little .focus-card{padding:25px 15px 20px;margin:0 5px}.little .game-home h1{font-size:32px}.little .game-home .big-object{width:220px;height:220px;padding:27px}.little .game-home .activity-content{min-height:276px;padding-top:22px}.little .game-home .choice{width:132px;height:139px;padding:20px}.little .game-home .choice-grid:has(.choice:nth-child(3)){gap:15px;max-width:330px}.little .game-home .listen-prompt .prompt{font-size:30px}.little .game-home .listen-button{width:56px;height:56px;min-width:56px}.little .game-home .feedback{font-size:17px}.little .game-home .pill.primary{font-size:17px;min-height:58px}.little .game-home .match-item{min-height:107px;padding:13px}.little .game-home .match-item svg{height:78px}.little .game-home .draggable{width:73px;height:73px}.little .game-home .plate svg{width:40px;height:40px}.little .game-home .count-label{font-size:18px}.little .game-home .speaking-companion{width:160px;height:160px}.little .simple-nav button{min-height:57px;font-size:12px}.little .simple-nav button>span{font-size:26px}.little .word-tiles{grid-template-columns:1fr 1fr}.page-intro h1{font-size:34px}.category-tiles{gap:19px 15px}.category-tile{min-height:166px;padding:20px 18px}.category-art{width:68px;height:68px}.category-tile strong{font-size:17px}.game-deck{padding:22px 19px;min-height:225px}.game-deck h2{font-size:24px}.game-deck p{font-size:11px}.guess-deck{padding:38px 18px 30px 148px;min-height:190px}.guess-deck .party-art{left:19px;top:34px;width:95px;min-width:95px}.party-art>span{font-size:27px;min-width:91px}.guess-deck .deck-arrow{right:17px;bottom:16px}.games-heading{gap:12px}.friends-button{padding:10px 13px;font-size:12px}.conversation-bubble{font-size:22px;padding:16px 13px}.reply-choice{padding:13px 16px}.reply-choice .learning-label .script{font-size:21px}.brand-stage{padding:125px 0 95px}.flag-orb{font-size:39px;width:74px;height:74px}.flag-nepal{left:7%;top:20px}.flag-britain{right:3%;bottom:18px}.learning-orb{width:53px;height:53px;font-size:25px}.orb-ka{right:10%;top:42px}.orb-a{left:2%;bottom:26px}.hero-wordmark{font-size:clamp(86px,24vw,130px)}.welcome-focus{padding-top:30px}.clean-onboard h1{font-size:37px}.learner-options{gap:14px}.learner-option{padding:22px 17px;min-height:247px}.learner-art{width:92px;height:96px}.learner-option strong{font-size:25px}.learner-option small{font-size:12px}.adult-art{height:86px;font-size:28px}.round-complete h1{font-size:31px}.rest-home h1{font-size:33px}}
@media(max-width:380px){.simple-shell{padding:0 15px}.focus-card{padding:26px 15px 18px}.little .focus-card{margin:0 3px;padding:25px 10px 18px}.little .game-home h1{font-size:28px}.little .game-home .choice{width:116px;height:126px;padding:16px}.game-home .choice{width:110px;height:117px;padding:19px}.little .game-home .big-object{width:204px;height:204px}.little .game-home .draggable{width:64px;height:64px}.little .game-home .listen-prompt .prompt{font-size:27px}.brand-stage{padding-top:120px}.hero-wordmark{font-size:25vw}.clean-onboard{padding:26px 20px}.learner-options{gap:12px}.learner-option{padding:20px 14px;min-height:243px}.learner-art{width:80px}.learner-option small{font-size:12px}.game-deck h2{font-size:21px}.guess-deck{padding-left:127px}.guess-deck .party-art{left:12px;width:84px;min-width:84px}.category-tile{padding:19px 16px}.category-tile strong{font-size:16px}.friends-button{padding:10px}.round-souvenirs>div{width:90px;padding:14px 8px}.round-progress .journey-dots{gap:4px}.round-progress .journey-dots i{width:16px}}
@media(max-height:760px) and (min-width:381px){.welcome-focus{padding-top:20px}.brand-stage{padding-top:105px;padding-bottom:82px}.welcome-focus .welcome-message{margin-top:0}.little .game-home .big-object{width:205px;height:205px}.little .game-home .activity-content{min-height:252px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body[data-motion=reduce] *,body[data-motion=reduce] *::before,body[data-motion=reduce] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

body[data-learner=child] .modal .activity-content .choice{min-width:128px;min-height:128px}body[data-learner=child] .modal .learning-label .script{font-size:36px}body[data-learner=child] .modal .pill.primary{min-height:58px;font-size:18px}

/* SANO foundations: one child, one shape, one obvious next step. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.foundations-shell{max-width:1100px;background:radial-gradient(ellipse 600px 450px at 100% 0,#e6efff,transparent 75%),radial-gradient(ellipse 430px 360px at 0 45%,#fff0f6,transparent 80%),#fafbfe}.foundations-shell .simple-header{max-width:780px;margin:auto;height:94px}.foundations-shell .xp-pill{display:flex;align-items:center;gap:7px;font-size:18px;color:#507eb7;padding:12px 17px;box-shadow:none;background:#ffffffb0}.foundations-shell .xp-pill>span:first-child{color:#dfb257}.foundations-shell .simple-content{padding-top:0}.single-focus .simple-content{padding-bottom:max(25px,env(safe-area-inset-bottom))}.foundation-home{max-width:700px!important}.foundation-home .round-progress{max-width:525px!important;margin-bottom:17px;padding:0 12px;color:#71839c;font-size:13px!important}.foundation-home .round-progress .journey-dots{gap:7px}.foundation-home .round-progress .journey-dots i{height:7px;width:18px!important}.foundation-home .round-progress .journey-dots i.current{width:26px!important}.foundation-focus{max-width:620px;margin:auto}.foundation-home .activity-content{padding-top:0!important;min-height:0!important;background:transparent!important}.foundation-home.is-tracing .feedback:empty{display:none}.foundation-home.is-tracing .game-actions:has([hidden]){min-height:0;margin-top:0}.foundation-home .feedback{font-size:21px!important;color:#538971!important;margin:14px auto 7px!important}.foundation-home .continue-game{width:min(380px,100%);min-height:64px!important;font-size:20px!important;box-shadow:0 7px 17px #075bdd20!important}.foundation-home h1{font-size:38px!important;line-height:1.2!important;margin:24px 0!important}.foundation-home:not(.is-tracing) .foundation-focus{padding:24px;background:#ffffffd9;border-radius:36px;box-shadow:0 10px 50px #33578209}.foundation-home:not(.is-tracing) .activity-content{padding-top:15px!important;min-height:250px!important}
.trace-stage{width:100%;max-width:550px;margin:auto}.trace-paper{position:relative;width:100%;aspect-ratio:1;border-radius:42px;background:#fff;box-shadow:0 7px 0 #d8e5f44d,0 20px 50px #4f78ab09;isolation:isolate;border:1px solid #fff;overflow:hidden}.trace-paper::before,.trace-paper::after{content:'';position:absolute;pointer-events:none;left:7%;right:7%;top:24%;border-top:1px dashed #edf2f9;z-index:0}.trace-paper::after{top:77%}#trace-board{display:block;width:100%;height:100%;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair;position:relative;z-index:1;border-radius:40px;outline-offset:5px}#trace-board:focus-visible{outline:3px solid #79a5e4}#trace-board.trace-passed{animation:letter-happy .55s var(--spring)}#trace-board.show-guide{animation:guide-glow .8s ease}.trace-controls{display:grid;grid-template-columns:1fr 1fr;gap:17px;max-width:460px;margin:0 auto}.trace-controls button{min-height:70px;display:flex;align-items:center;justify-content:center;gap:11px;border-radius:25px;font-size:20px;font-weight:700}.trace-controls button>span{font-size:27px;line-height:1}.trace-listen{background:#e2edff;box-shadow:0 5px 0 #c3d7f48a;color:#3976c6}.trace-again{background:#ffedf5;color:#ac7792;box-shadow:0 5px 0 #ecc9da88}.trace-controls button:active{transform:translateY(4px) scale(.97);box-shadow:0 1px 0 #c3d7f45a}.trace-controls button:disabled{opacity:.45}
/* Sano floats in a separate lane, never above the touch surface. */
.companion-lane{height:90px;display:flex;align-items:center;justify-content:flex-end;gap:6px;max-width:490px;margin:0 auto 6px;padding:0 7px}.sano-guide{position:relative;width:78px;height:80px;flex-shrink:0;padding:8px 4px;border-radius:50%;isolation:isolate;animation:sano-float 3.7s ease-in-out 3}.sano-guide>svg{position:relative;z-index:1;width:100%;height:100%;filter:drop-shadow(0 5px 3px #5c749c12)}.sano-orbit{position:absolute;inset:11px 3px 5px;border-radius:45%;background:#f8e8f2;transform:rotate(-9deg);z-index:0}.sano-tip{font-size:15px;line-height:1.45;text-align:right;color:#7185a5;padding:11px 16px;background:#ffffffac;border-radius:22px 22px 4px 22px;max-width:305px}.sano-spark{position:absolute;right:-3px;top:2px;color:#e9bd6f;font-size:20px;opacity:0;pointer-events:none}.sano-guide.sano-hop{animation:sano-hop .65s var(--spring)}.sano-guide.sano-cheer{animation:sano-cheer .85s var(--spring)}.sano-cheer .sano-spark{animation:sano-spark 1s ease both}.new-learner-art{width:130px;height:130px;margin:20px auto 5px}.foundation-home .letter-model{display:flex;align-items:center;justify-content:center;gap:20px;margin:0 auto 25px}.letter-model>span{font-size:110px;line-height:1.4;color:#4b77b2}.foundation-home .letter-choice .letter-art{font-size:75px;line-height:1.3;color:#4f77ac}.foundation-nav{min-width:240px!important;max-width:360px!important}.foundation-nav button{flex:1}.earned-words .word-tiles{grid-template-columns:repeat(3,1fr)}.earned-words .word-tile{min-height:180px}.earned-words .word-tile .letter-art{font-size:64px}.earned-words .word-tile svg{width:90px;height:90px}.earned-words .word-tile strong{font-size:26px}.foundation-home .record-note{font-size:14px!important}.foundation-home .voice-status{font-size:13px;line-height:1.55;padding:12px 17px;background:#fff6ea;border-radius:18px;color:#847455}.foundations-shell .round-complete{max-width:500px}.foundations-shell .round-complete .round-medal{width:170px;height:170px}.foundations-shell .round-souvenirs .letter-art{font-size:60px;line-height:1.3}.foundations-shell .round-souvenirs>div{width:120px;min-height:120px}.foundations-shell .round-souvenirs .word-letter{font-size:25px}.foundations-shell .round-complete .pill.primary{min-height:64px;font-size:19px}.foundations-shell .round-complete .quiet{min-height:55px;font-size:16px}.foundations-shell .rest-home .pill{min-height:62px;font-size:19px}
@keyframes sano-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}@keyframes sano-hop{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-12px) rotate(-8deg)}65%{transform:translateY(-3px) rotate(7deg)}}@keyframes sano-cheer{0%,100%{transform:scale(1) rotate(0)}30%{transform:translateY(-13px) scale(1.12) rotate(-12deg)}65%{transform:translateY(-5px) scale(1.06) rotate(10deg)}}@keyframes sano-spark{0%{opacity:0;transform:scale(.5)}35%,75%{opacity:1;transform:translate(4px,-9px) scale(1.25)}100%{opacity:0;transform:translate(8px,-20px) scale(.7)}}@keyframes letter-happy{40%{transform:scale(1.035)}75%{transform:scale(.99)}}@keyframes guide-glow{50%{box-shadow:inset 0 0 0 4px #f1bfd7}}
@media(min-width:740px) and (min-height:850px){.foundations-shell .simple-header{height:106px}.foundation-home .round-progress{max-width:570px!important;margin-top:7px;margin-bottom:23px}.trace-stage{max-width:580px}.trace-controls{max-width:510px;gap:22px}.trace-controls button{min-height:80px;font-size:24px;border-radius:29px}.companion-lane{height:99px;max-width:550px}.sano-guide{width:90px;height:90px}.sano-tip{font-size:18px;max-width:360px}.foundation-home .continue-game{min-height:74px!important;font-size:23px!important}}
@media(max-width:700px){.foundations-shell{padding:0 22px}.foundations-shell .simple-header{height:80px}.foundations-shell .xp-pill{font-size:15px;min-height:42px;padding:9px 13px}.foundations-shell .simple-header .brand{font-size:34px}.foundation-home .round-progress{font-size:12px!important;margin-bottom:14px!important;padding:0 5px}.trace-paper{border-radius:33px}.trace-controls{gap:14px}.trace-controls button{min-height:63px;font-size:17px;border-radius:22px;gap:8px}.trace-controls button>span{font-size:24px}.companion-lane{height:76px;margin-bottom:4px;padding:0 2px}.sano-guide{width:67px;height:69px;padding:5px 3px}.sano-tip{font-size:13px;padding:10px 12px;max-width:250px}.sano-spark{font-size:17px}.foundation-home .feedback{font-size:18px!important;margin-top:16px!important}.foundation-home .continue-game{min-height:59px!important;font-size:19px!important}.foundation-home h1{font-size:31px!important}.foundation-home:not(.is-tracing) .foundation-focus{padding:20px 14px}.letter-model>span{font-size:95px}.foundation-home .letter-choice .letter-art{font-size:66px}.earned-words .word-tiles{grid-template-columns:1fr 1fr}.earned-words .word-tile{min-height:163px}.foundations-shell .round-complete .round-medal{width:140px;height:140px}.foundations-shell .round-souvenirs>div{width:92px;min-height:109px}.foundations-shell .round-souvenirs .letter-art{font-size:51px}.single-focus .simple-content{padding-bottom:25px}}
@media(max-width:360px){.foundations-shell{padding:0 17px}.foundations-shell .simple-header{height:75px}.foundations-shell .simple-header .brand{font-size:31px}.trace-controls{gap:12px}.trace-controls button{font-size:16px;min-height:60px;padding:10px 12px;gap:7px}.sano-tip{font-size:12px}.sano-guide{width:60px;height:63px}.companion-lane{height:73px}.foundation-home .round-progress .journey-dots{gap:5px}.foundation-home .round-progress .journey-dots i{width:15px!important}}
@media(min-width:740px) and (max-height:849px){.trace-stage{max-width:380px}.companion-lane{height:72px}.trace-controls button{min-height:58px}.foundations-shell .simple-header{height:76px}.foundation-home .round-progress{max-width:385px!important}.foundation-home .continue-game{min-height:57px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}body[data-motion=reduce] *,body[data-motion=reduce] *::before,body[data-motion=reduce] *::after{animation:none!important;transition:none!important}
@media(min-width:740px) and (min-height:850px){.trace-stage{max-width:min(580px,calc(100svh - 480px))}}

/* Bright pastels, large toy-like controls and original Sano character art. */
:root{--joy-ink:#24416d;--joy-blue:#2476ee;--joy-pink:#ffb5d5;--joy-yellow:#ffdb78;--joy-mint:#ade8ce;--joy-font:'Arial Rounded MT Bold','SF Pro Rounded',ui-rounded,system-ui,sans-serif}
body[data-learner=child],body[data-learner=welcome]{font-family:var(--joy-font);color:var(--joy-ink)}
.sano-wordmark{display:block;width:100%;height:auto;overflow:visible;color:#1468e5;filter:drop-shadow(0 5px 0 #c6dfff)}
.brand .sano-wordmark{width:126px;filter:drop-shadow(0 2px 0 #d6e6ff)}.brand{padding:6px 0!important}.hero-wordmark{width:min(430px,84vw);margin:0 auto!important;line-height:1!important;transform:rotate(-3deg);animation:logo-arrive .8s cubic-bezier(.2,1.5,.4,1) both}.hero-wordmark .sano-wordmark{width:100%}
.clean-welcome{background:radial-gradient(ellipse at 14% 25%,#ffebf5,transparent 58%),radial-gradient(ellipse at 90% 12%,#cfeeff,transparent 60%),#f5faff;min-height:100svh;padding:30px 24px;overflow:hidden;position:relative;display:grid;place-items:center}.welcome-focus{position:relative;width:min(580px,100%);text-align:center}.welcome-friends{height:220px;position:relative;margin:0 auto 4px;max-width:430px}.welcome-sano{position:absolute;z-index:2;left:50%;bottom:0;transform:translateX(-50%);width:215px;height:225px;padding:0;background:none!important}.welcome-sano>.sano-character{width:100%;height:100%;filter:drop-shadow(0 12px 12px #4073ad15);animation:companion-hover 4s ease-in-out infinite}.welcome-cloud{position:absolute;width:112px;height:35px;border-radius:100px;background:#fff;box-shadow:0 9px 20px #5493c512;top:110px;left:6px;animation:cloud-drift 7s ease-in-out infinite}.welcome-cloud:before{content:'';position:absolute;background:#fff;width:56px;height:56px;border-radius:50%;bottom:4px;left:18px}.cloud-two{left:auto;right:2px;top:66px;transform:scale(.75);animation-delay:-3s}.flying-friend{position:absolute;left:0;top:16px;width:66px;height:66px;transform:rotate(-15deg);animation:bird-fly 5s ease-in-out infinite}.flying-friend svg{width:100%;height:100%}.brand-stage{position:relative;padding:12px 0 10px!important;min-height:0!important}.brand-slogan{font-size:clamp(19px,4vw,25px)!important;font-weight:750;letter-spacing:-.5px;margin:22px 0 0!important;color:#607997!important}.welcome-message{font-size:16px!important;margin:17px 0 27px!important;color:#7791af!important}.welcome-language{display:block;margin-top:24px!important;font-size:14px!important;color:#7090b5!important}.welcome-play{display:flex!important;align-items:center;justify-content:center;gap:18px;width:min(360px,100%);min-height:91px!important;border-radius:34px!important;margin:0 auto;font-family:var(--joy-font);font-weight:850!important;font-size:32px!important;background:#2b80f4!important;color:#fff!important;border:3px solid #55a4ff!important;box-shadow:0 8px 0 #125abe,0 20px 30px #2476ee25!important;animation:play-invite 4s ease-in-out 3;transition:transform .22s,box-shadow .22s}.welcome-play:active{transform:translateY(6px) scale(.98)!important;box-shadow:0 2px 0 #125abe!important}.play-triangle{width:47px;height:47px;border-radius:17px;background:#ffffff26;display:grid;place-items:center;font-size:24px;padding-left:3px}.brand-orbit{pointer-events:none}.flag-orb{font-size:28px!important;background:#fff9!important;width:49px!important;height:49px!important;border:2px solid #fff!important;box-shadow:0 5px 0 #bad5f326!important}.flag-nepal{left:-3%!important;top:0!important}.flag-britain{right:-3%!important;top:72px!important}.learning-orb{width:42px!important;height:42px!important;border-radius:15px!important;font-size:25px!important;font-weight:bold;box-shadow:0 5px 0 #8aabdc17}.orb-ka{left:9%!important;top:-49px!important;background:#ffdb80!important;color:#ae7921!important}.orb-a{right:10%!important;top:-45px!important;background:#ccbfff!important;color:#7862b3!important}.brand-dot{display:none!important}.launch .brand-stage{max-width:510px;width:84vw}.launch .hero-wordmark{width:100%}.launch .brand-slogan{font-size:23px!important}
.foundations-shell{background:radial-gradient(ellipse at 1% 7%,#ffe3f0,transparent 48%),radial-gradient(ellipse at 100% 15%,#d5efff,transparent 52%),#f5faff!important;border-radius:0}.foundations-shell .simple-header{height:86px}.foundations-shell .xp-pill{background:#fff!important;border:2px solid #fff;box-shadow:0 4px 0 #dbe8f7!important;border-radius:22px!important;color:#627393}.foundations-shell .xp-pill>span:first-child{color:#ffc64f}.foundation-home .round-progress{color:#667fa2}.foundation-home .journey-dots i.current{background:#ffc96a!important}.foundation-home .journey-dots i.passed{background:#88d6b6!important}.foundation-home .trace-stage{display:flex;flex-direction:column}.trace-stage .companion-lane{order:-1}.trace-paper{background:#fffdf6;border:4px solid #fff!important;border-radius:42px;box-shadow:0 7px 0 #c5d9f1,0 15px 38px #436e9c0e!important}.trace-repeat .trace-paper{background:#f6fff9;box-shadow:0 7px 0 #bfdfd0,0 15px 38px #436e9c0e!important}.trace-paper::before,.trace-paper::after{border-color:#e9eaf0}.trace-badge{position:absolute;top:16px;left:18px;z-index:2;border-radius:20px;padding:7px 13px;color:#a87a28;background:#fff0bd;font-size:13px;font-weight:800;pointer-events:none}.trace-repeat .trace-badge{background:#daf4e5;color:#548b73}.companion-lane{width:100%;height:113px!important;max-width:500px;justify-content:center;gap:4px;margin:0 auto -12px;position:relative;z-index:2;pointer-events:none;align-items:center}.sano-guide{pointer-events:auto;width:125px!important;height:130px!important;padding:0!important;background:transparent!important;flex-shrink:0;animation:companion-hover 4s ease-in-out infinite;order:-1;filter:drop-shadow(0 7px 8px #607aa813)}.sano-guide>svg{width:100%;height:100%;filter:none}.sano-orbit{display:none}.sano-tip{max-width:275px;text-align:left;border:2px solid #fff;padding:14px 18px;border-radius:25px 25px 25px 5px;background:#fff!important;box-shadow:0 4px 0 #dae8f5;color:#6881a2;font-size:16px!important;line-height:1.35;pointer-events:auto}.sano-guide.sano-hop{animation:sano-hop .65s var(--spring),companion-hover 4s ease-in-out .7s infinite}.sano-guide.sano-cheer{animation:sano-cheer .9s var(--spring),companion-hover 4s ease-in-out 1s infinite}.sano-character .sano-eyes{transform-origin:100px 92px;animation:sano-blink 5.4s infinite}.sano-character .sano-tail{transform-origin:137px 163px;animation:tail-sway 3.3s ease-in-out infinite}.sano-character .sano-arm{transform-origin:136px 141px;animation:sano-wave 5s ease-in-out infinite}.sano-character .sano-mouth{transform-origin:99px 124px}.sano-character.talking .sano-mouth{animation:sano-talk .25s ease-in-out infinite alternate}.sano-character.talking .sano-arm,.hello-wave .sano-arm{animation:sano-wave .8s ease-in-out 3}.trace-controls{width:100%;max-width:510px;margin-top:23px;gap:18px}.trace-controls button{min-height:77px;border:3px solid #fff9;font-family:var(--joy-font);font-size:22px!important;font-weight:800;border-radius:27px}.trace-listen{background:#addbff;color:#256aab;box-shadow:0 6px 0 #80bbea}.trace-again{background:#ffc6df;color:#b2638e;box-shadow:0 6px 0 #e6a0c0}.foundation-home .continue-game{background:#68bf9d!important;border:3px solid #b5ebd4;box-shadow:0 6px 0 #479c7e!important;border-radius:27px;font-weight:800}.foundation-home:not(.is-tracing) .foundation-focus{background:#fffdf6;border:4px solid #fff;box-shadow:0 7px 0 #d4e2f2;border-radius:38px}.foundation-home .choice{border:3px solid #fff!important;box-shadow:0 6px 0 #bbd6f0!important;border-radius:29px;background:#dcefff!important;min-height:160px}.foundation-home .choice:nth-child(2){background:#ffe0ed!important;box-shadow:0 6px 0 #e8bace!important}.foundation-home .choice:nth-child(3){background:#fff0b7!important;box-shadow:0 6px 0 #e6d599!important}.foundation-home .choice.correct{background:#c4f0d9!important;box-shadow:0 5px 0 #86c5a4!important}.foundation-home .choice svg{width:105px!important;height:105px!important}.foundation-home .choice:active{transform:translateY(4px) scale(.96)!important}.foundation-home .match-item{border-radius:24px;box-shadow:0 5px 0 #d4e2f1;border:3px solid #fff;background:#edf6ff!important}.foundation-home .big-object{border:4px solid #fff;box-shadow:0 9px 0 #e8bdcf!important;background:#ffe0ed!important}.foundation-home .count-target i{background:#ffca6a!important;width:16px;height:16px}.foundation-home .listen-button{background:#badeff!important;color:#3f7db6!important;border:3px solid #fff;box-shadow:0 5px 0 #92bfea}.round-medal .sano-character,.rest-art .sano-character{animation:companion-hover 3.8s ease-in-out infinite}.round-complete .round-medal{width:210px!important;height:225px!important;background:#fff0bd!important}.sano-celebration{position:fixed;inset:0;z-index:90;pointer-events:none;overflow:hidden}.sano-celebration i{position:absolute;left:var(--left);top:0;color:var(--spark);font-size:26px;font-style:normal;animation:glitter-fall 1.6s ease-out var(--delay) both;filter:drop-shadow(0 2px 0 #fff)}.celebration-wow{position:absolute;top:15%;left:50%;transform:translateX(-50%);padding:17px 25px;border-radius:30px;background:#fff7d8;color:#b47e25;box-shadow:0 7px 0 #efd383;font:850 27px var(--joy-font);white-space:nowrap;animation:wow-pop 1.8s ease both}.sano-celebration[hidden]{display:none}
@keyframes logo-arrive{from{opacity:0;transform:scale(.7) rotate(5deg)}to{opacity:1;transform:scale(1) rotate(-3deg)}}@keyframes companion-hover{0%,100%{translate:0 0;rotate:-2deg}50%{translate:0 -8px;rotate:2deg}}@keyframes sano-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.08)}}@keyframes sano-wave{0%,15%,60%,100%{transform:rotate(0)}25%,45%{transform:rotate(-17deg)}35%,55%{transform:rotate(9deg)}}@keyframes tail-sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(5deg)}}@keyframes sano-talk{from{transform:scaleY(.45)}to{transform:scaleY(1.3)}}@keyframes cloud-drift{0%,100%{translate:0 0}50%{translate:10px -4px}}@keyframes bird-fly{0%,100%{translate:0 0;rotate:-8deg}50%{translate:14px -14px;rotate:8deg}}@keyframes play-invite{0%,85%,100%{scale:1}90%{scale:1.025}95%{scale:.99}}@keyframes glitter-fall{0%{opacity:0;transform:translateY(-25px) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(var(--drop)) rotate(var(--turn))}}@keyframes wow-pop{0%{opacity:0;scale:.6}15%,70%{opacity:1;scale:1}100%{opacity:0;scale:1.08}}
@media(min-width:740px) and (min-height:850px){.trace-stage{max-width:min(570px,calc(100svh - 475px))}.companion-lane{height:135px!important;margin-bottom:-13px}.sano-guide{width:145px!important;height:151px!important}.sano-tip{font-size:18px!important;max-width:300px}.trace-controls button{min-height:82px}.foundations-shell .simple-header{height:100px}}
@media(max-width:700px){.clean-welcome{padding:25px 30px}.welcome-friends{height:190px}.welcome-sano{width:185px;height:195px}.hero-wordmark{width:min(350px,81vw)}.welcome-play{min-height:84px!important;font-size:29px!important}.foundations-shell{padding:0 20px}.foundations-shell .simple-header{height:77px}.brand .sano-wordmark{width:112px}.companion-lane{height:104px!important;gap:0}.sano-guide{width:108px!important;height:115px!important}.sano-tip{font-size:14px!important;padding:12px 14px;max-width:220px}.trace-paper{border-radius:33px}.trace-controls{margin-top:20px;gap:14px}.trace-controls button{font-size:18px!important;min-height:67px!important;border-radius:23px}.trace-badge{font-size:11px;top:12px;left:13px}.foundation-home .choice{min-height:138px}.foundation-home .choice svg{width:92px!important;height:92px!important}.foundation-home .feedback{margin-top:18px!important}.celebration-wow{font-size:23px;top:13%;padding:14px 21px}}
@media(max-height:700px){.welcome-friends{height:150px}.welcome-sano{width:155px;height:165px}.brand-slogan{margin-top:16px!important}.welcome-message{margin:14px 0 22px!important}.welcome-play{min-height:75px!important}.welcome-language{margin-top:20px!important}.foundation-home .trace-stage{max-width:350px}.companion-lane{height:94px!important}.sano-guide{width:102px!important;height:108px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}body[data-motion=reduce] *,body[data-motion=reduce] *::before,body[data-motion=reduce] *::after{animation:none!important;transition:none!important}
/* Reset the previous full-height welcome stack so the first action stays visible. */
.welcome-focus{min-height:0!important;padding:0!important;display:block}.welcome-focus .welcome-play{margin:0 auto!important}.brand-orbit .orb-ka{right:auto!important;bottom:auto!important}.brand-orbit .orb-a{left:auto!important;bottom:auto!important}.brand-orbit .flag-britain{bottom:auto!important}.sano-guide>svg{pointer-events:none}.foundation-home .match-item .letter-art{font-size:54px;line-height:1.3}

.voice-status[hidden]{display:none!important}.bhadgaun-topi{filter:drop-shadow(0 2px 0 #442e3820)}

.reference-audition{padding:20px;margin:22px 0;background:#f1f6ff;border-radius:28px;text-align:center}.reference-sano{width:98px;height:104px;margin:0 auto 10px}.reference-audition>strong{display:block;font-size:19px;color:#466184}.reference-audition>p{font-size:13px;line-height:1.5;color:#728198;margin:10px 0 18px}.reference-audition .row{justify-content:center;flex-wrap:wrap}.reference-audition small{display:block;font-size:11px;color:#7588a0;margin-top:14px}

/* Reference-inspired welcome: generous white space, one large action, separate moving layers. */
body[data-learner=welcome]{background:#fff}
.clean-welcome.art-welcome{max-width:none;width:100%;background:#fff;padding:28px 24px max(32px,env(safe-area-inset-bottom));min-height:100svh;display:grid;place-items:center;overflow:hidden}
.art-welcome .welcome-focus{width:min(580px,100%);margin:auto}
.welcome-artwork{position:relative;width:100%;isolation:isolate;animation:welcome-arrive .7s cubic-bezier(.2,.8,.2,1) both}
.welcome-scene{width:100%;aspect-ratio:1.85;position:relative;isolation:isolate}
.welcome-artwork button{padding:0;touch-action:manipulation;min-width:44px;min-height:44px}
.welcome-character{position:absolute;z-index:3;width:59%;aspect-ratio:1;left:19%;bottom:-7%;background:transparent!important;transform-origin:50% 80%}
.welcome-character img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;animation:welcome-mascot-float 4.8s ease-in-out infinite;filter:drop-shadow(0 7px 2px #d4e5ff28)}
.welcome-character.hello-wave img{animation:welcome-mascot-hello .9s ease-in-out, welcome-mascot-float 4.8s ease-in-out .9s infinite}
.welcome-letter{position:absolute;z-index:2;width:26%;aspect-ratio:1;border-radius:27%;font-family:'Devanagari Sangam MN','Noto Sans Devanagari',sans-serif;font-weight:850;display:grid;place-items:center;line-height:1;transform-origin:center;box-shadow:inset 0 3px 1px #ffffff9c,0 7px 0 var(--tile-edge);border:2px solid var(--tile-border)!important}
.welcome-letter span{font-size:clamp(56px,14vw,112px);line-height:1.35;pointer-events:none;text-shadow:0 2px 0 #ffffff35}
.welcome-letter-ka{left:0;top:46%;color:#975600;background:linear-gradient(145deg,#fff28d,#ffd047)!important;--tile-edge:#ffb633;--tile-border:#ffe892;rotate:-13deg;animation:welcome-tile-left 5.2s ease-in-out infinite}
.welcome-letter-a{right:0;top:62%;color:#6542a5;background:linear-gradient(145deg,#e5ceff,#b390ff)!important;--tile-edge:#a17ae9;--tile-border:#decbff;rotate:12deg;animation:welcome-tile-right 5.8s ease-in-out -.9s infinite}
.welcome-nepal{position:absolute;z-index:1;width:27%;right:9%;top:1%;aspect-ratio:170/210;rotate:6deg;background:transparent!important;transform-origin:15% 90%;animation:welcome-flag-float 5.6s ease-in-out -.8s infinite}
.welcome-nepal svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}.welcome-flag-cloth{transform-origin:24px 95px;animation:welcome-flag-wave 3.3s ease-in-out infinite}
.welcome-glint{position:absolute;z-index:-1;display:block;width:12px;height:12px;border-radius:4px;background:#ffdfa0;rotate:25deg;animation:welcome-glint-float 6s ease-in-out infinite;pointer-events:none}
.welcome-glint.one{top:30%;left:12%}.welcome-glint.two{right:3%;top:34%;width:8px;height:8px;background:#a9dbff;animation-delay:-2s}.welcome-glint.three{top:9%;left:32%;width:7px;height:7px;background:#ffc8e1;animation-delay:-4s}
.welcome-logo-wrap{position:relative;z-index:4;width:88%;margin:0 auto;pointer-events:none}
.welcome-wordmark{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 6px 0 #d9e8ff)}
.welcome-logo-letter{transform-box:fill-box;transform-origin:center;animation:welcome-letter-drift 5s ease-in-out infinite}.welcome-logo-letter.letter-a{animation-delay:-1s}.welcome-logo-letter.letter-n{animation-delay:-2s}.welcome-logo-letter.letter-o{animation-delay:-3s}.welcome-logo-dot{animation:welcome-dot-bob 4s ease-in-out infinite}
.welcome-artwork .welcome-roots{font-family:var(--joy-font);font-size:clamp(23px,4.7vw,35px);line-height:1.16;color:#304f7b;letter-spacing:-.8px;font-weight:850;margin:-3px 0 0;text-align:center;animation:welcome-copy-in .8s .16s both}
.welcome-roots span{display:block}
.art-welcome .welcome-play{width:min(340px,88%);min-height:84px!important;font-size:30px!important;margin:31px auto 0!important;border-radius:30px!important;box-shadow:0 7px 0 #125abe,0 12px 20px #2476ee12!important}
.art-welcome .welcome-language{margin-top:20px!important;color:#8499b6!important;font-size:13px!important;line-height:1.3}
.welcome-character:focus-visible,.welcome-nepal:focus-visible,.welcome-letter:focus-visible{outline:3px solid #d85d9b;outline-offset:8px}
.welcome-character:active img{scale:.97}.welcome-letter:hover{filter:brightness(1.035)}
.launch.welcome-launch{background:#fff;gap:24px;flex-direction:column;padding:30px}.welcome-launch .welcome-artwork{width:min(490px,80vw)}.welcome-launch .launch-skip{position:relative;inset:auto;margin:0;font-size:17px;min-height:52px;border-radius:22px;background:#eaf3ff;color:#1761d0;padding:12px 26px}
@keyframes welcome-arrive{from{opacity:0;transform:translateY(15px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes welcome-mascot-float{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-9px) rotate(1.5deg)}}
@keyframes welcome-mascot-hello{0%,100%{transform:rotate(0)}25%{transform:translateY(-14px) rotate(-7deg)}55%{transform:translateY(-6px) rotate(7deg)}80%{transform:rotate(-3deg)}}
@keyframes welcome-tile-left{0%,100%{translate:0 0;rotate:-13deg}50%{translate:0 -9px;rotate:-8deg}}
@keyframes welcome-tile-right{0%,100%{translate:0 0;rotate:12deg}50%{translate:0 -12px;rotate:7deg}}
@keyframes welcome-flag-float{0%,100%{translate:0 0;rotate:6deg}50%{translate:2px -7px;rotate:3deg}}
@keyframes welcome-flag-wave{0%,100%{transform:skewY(-2deg) scaleX(1)}50%{transform:skewY(2deg) scaleX(.94)}}
@keyframes welcome-glint-float{0%,100%{translate:0 0;opacity:.7}50%{translate:2px -8px;opacity:1}}
@keyframes welcome-letter-drift{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-2px) rotate(.6deg)}}
@keyframes welcome-dot-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes welcome-copy-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@media(min-width:701px){.art-welcome .welcome-focus{width:min(560px,calc((100svh - 250px) * 1.05))}}
@media(max-width:700px){.clean-welcome.art-welcome{padding:32px 28px max(32px,env(safe-area-inset-bottom))}.art-welcome .welcome-focus{max-width:460px}.art-welcome .welcome-play{min-height:78px!important;margin-top:29px!important;font-size:28px!important}.art-welcome .play-triangle{width:40px;height:40px;border-radius:14px;font-size:20px}.welcome-artwork .welcome-roots{margin-top:0}.welcome-letter{box-shadow:inset 0 2px 1px #ffffff9c,0 5px 0 var(--tile-edge)}}
@media(max-height:620px) and (orientation:portrait){.clean-welcome.art-welcome{padding:20px 27px}.art-welcome .welcome-focus{max-width:330px}.art-welcome .welcome-play{margin-top:20px!important;min-height:70px!important}.art-welcome .welcome-language{margin-top:16px!important}}
@media(max-height:540px) and (orientation:landscape){.clean-welcome.art-welcome{padding:22px 35px}.art-welcome .welcome-focus{display:grid;width:min(790px,100%);max-width:none;grid-template-columns:minmax(0,1.2fr) minmax(230px,1fr);column-gap:35px;align-items:center}.art-welcome .welcome-artwork{grid-row:1/3;width:min(100%,calc((100svh - 40px) * 1.05));justify-self:center}.art-welcome .welcome-play{align-self:end;margin:0!important;width:100%;min-height:76px!important}.art-welcome .welcome-language{align-self:start;margin-top:22px!important}.welcome-artwork .welcome-roots{font-size:24px}.welcome-letter span{font-size:75px}.welcome-launch .welcome-artwork{width:min(320px,60vh)}}
@media(prefers-reduced-motion:reduce){.welcome-artwork,.welcome-artwork *,.art-welcome .welcome-play{animation:none!important;transition:none!important}}
body[data-motion=reduce] .welcome-artwork,body[data-motion=reduce] .welcome-artwork *,body[data-motion=reduce] .art-welcome .welcome-play{animation:none!important;transition:none!important}
.sano-loading-dots{display:flex;gap:8px;height:12px;align-items:center}.sano-loading-dots i{width:8px;height:8px;border-radius:50%;background:#7fb9ec;animation:sano-loading-hop 1.2s ease-in-out infinite}.sano-loading-dots i:nth-child(2){background:#ed9fc1;animation-delay:.16s}.sano-loading-dots i:nth-child(3){background:#82c7a5;animation-delay:.32s}
@keyframes sano-loading-hop{0%,70%,100%{transform:translateY(0);opacity:.6}35%{transform:translateY(-6px);opacity:1}}
.sano-opening{position:fixed!important;inset:0;z-index:10000;pointer-events:none;min-height:100dvh!important}.sano-opening.is-ready{opacity:0;transition:opacity .2s ease-out}
body #app>.sano-startup.sano-reading-opening,.sano-startup.sano-reading-opening{position:relative;isolation:isolate;overflow:hidden;min-height:100svh;padding:max(28px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#8fc1fa url('/images/sano-opening-vivid-v1.webp') center / 100% 100% no-repeat!important;gap:22px}
.sano-reading-composition{display:grid;grid-template-columns:42% 58%;align-items:center;width:min(900px,88vw);position:relative;transform:translateY(-1vh)}
.sano-reading-art{position:relative;width:100%;line-height:0}.sano-reading-mascot{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 5px 5px #547dac0d)}
.sano-opening-message{min-width:0;line-height:0;position:relative;z-index:1}.sano-opening-message svg{display:block;width:100%;height:auto}.sano-opening-message.has-message{font:650 clamp(17px,3vw,25px)/1.45 system-ui,sans-serif;color:#203c66;padding:14px;border-radius:20px;background:#ffffffc9}
.sano-opening-glint{position:absolute;width:clamp(12px,3.5vw,32px);height:auto;filter:drop-shadow(0 0 8px #fff3a380);animation:sano-opening-twinkle 3.6s ease-in-out infinite}.sano-opening-glint svg{display:block;width:100%;height:auto}.sano-opening-glint.glint-1{left:-5%;top:23%}.sano-opening-glint.glint-2{left:-9%;top:67%;animation-delay:-1.2s;width:clamp(11px,3.1vw,28px)}.sano-opening-glint.glint-3{right:-7%;bottom:14%;animation-delay:-2.4s}
.sano-reading-opening .sano-startup-help{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));font-size:14px}.sano-reading-opening .sano-startup-help[hidden]{display:none}.sano-reading-opening .sano-startup-help a{display:inline-block;padding:10px 16px;border-radius:30px;background:#ffffffc9}.sano-reading-opening>button{min-height:48px;padding:12px 24px;border:2px solid #fff;border-radius:24px;background:#fff8df;color:#24416d}
@keyframes sano-opening-twinkle{0%,100%{opacity:.65;transform:translateY(0) scale(.85)}45%{opacity:1;transform:translateY(-3px) scale(1.06)}75%{opacity:.8;transform:translateY(1px) scale(.94)}}
@media(orientation:landscape){.sano-startup.sano-reading-opening{background-size:100% 100%}.sano-reading-composition{width:min(900px,80vw,140vh)}}
@media(prefers-reduced-motion:reduce){.sano-opening-glint{animation:none!important}}body[data-motion=reduce] .sano-opening-glint{animation:none!important}body[data-page-hidden=true] .sano-opening-glint{animation-play-state:paused!important}
.mountain-overlay:has(>.sano-loading-screen){padding:0;background:#f5faff!important;backdrop-filter:none!important}.mountain-overlay>.sano-loading-screen{position:absolute;inset:0;min-height:100%;border-radius:0}
@media(prefers-reduced-motion:reduce){.sano-loading-dots i{animation:none}.sano-opening.is-ready{transition:none}}
body[data-motion=reduce] .sano-loading-dots i{animation:none}
.sano-loading-screen{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:100%;width:100%;padding:28px 22px;text-align:center;color:#29466e;isolation:isolate;background:radial-gradient(ellipse at 18% 22%,#f6e3ff9c,transparent 50%),radial-gradient(ellipse at 88% 72%,#b9e9f960,transparent 48%),linear-gradient(140deg,#fff4f9,#f3f7ff 50%,#effaf5)}
.sano-loading-wordmark{width:126px;line-height:0;margin-bottom:8px}.sano-loading-wordmark svg{width:100%;height:auto}.sano-loading-wordmark .welcome-logo-dot{fill:#ff80b6!important}
.sano-loading-scene{position:relative;width:min(350px,84vw);height:275px;flex:none;perspective:700px}
.sano-loading-world{position:absolute;inset:12px 8px 30px;border-radius:43% 43% 34% 34% / 43% 43% 28% 28%;border:5px solid #ffffffd9;background:#b5ddf6 var(--loading-world) center 46% / cover;box-shadow:0 18px 26px -14px #3a669466,0 0 0 1px #c9dff26b;overflow:hidden;transform:rotate(-3deg)}
.sano-loading-world::after{content:'';position:absolute;inset:0;background:linear-gradient(160deg,#ffffff0a 30%,#b8e4f099);box-shadow:inset 0 2px 2px #fff9;}
.sano-loading-island{position:absolute;right:9px;bottom:8px;width:240px;height:240px;object-fit:contain;filter:drop-shadow(0 14px 9px #46676d25);animation:sano-game-island 4.8s ease-in-out infinite}
.sano-loading-player{position:absolute;left:8px;bottom:-3px;width:122px;height:162px;object-fit:contain;filter:drop-shadow(0 10px 5px #29526e30);transform-origin:50% 95%;animation:sano-game-player 1.8s ease-in-out infinite}
.sano-loading-toy{position:absolute!important;right:25px;bottom:2px;width:225px!important;height:225px!important;filter:drop-shadow(0 12px 7px #25466235);animation:sano-game-island 3.6s ease-in-out infinite}
.sano-loading-orbit{--star-phase:-.3s;--star-travel:4.8s;--star-drift-x:7px;--star-drift-y:-10px;position:absolute;width:43px;height:46px;z-index:2;isolation:isolate;filter:drop-shadow(0 5px 4px #a9813833);animation:sano-game-pickup var(--star-travel) ease-in-out var(--star-phase) infinite}
.sano-loading-orbit svg{position:relative;z-index:1;width:100%;height:100%;transform-origin:center;animation:sano-game-star-sheen 3.4s ease-in-out var(--star-phase) infinite}
.sano-loading-orbit::before{content:'';position:absolute;inset:-13px;border-radius:50%;background:radial-gradient(circle,#fff4a3bd 0%,#ffdb6170 25%,#ffd45900 70%);pointer-events:none;animation:sano-game-star-glow 3.4s ease-in-out var(--star-phase) infinite;animation-play-state:inherit}
.sano-loading-orbit::after{content:'';position:absolute;z-index:2;right:8%;top:9%;width:13px;height:13px;background:#fffbea;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);pointer-events:none;animation:sano-game-star-glint 3.4s ease-in-out var(--star-phase) infinite;animation-play-state:inherit}
.sano-loading-orbit.orbit-one{left:3px;top:9px}.sano-loading-orbit.orbit-two{--star-phase:-1.7s;--star-travel:5.4s;--star-drift-x:-9px;--star-drift-y:10px;right:-4px;top:76px;width:37px}.sano-loading-orbit.orbit-three{--star-phase:-2.8s;--star-travel:4.2s;--star-drift-x:-8px;--star-drift-y:-7px;left:48%;top:-17px;width:31px}
.sano-loading-spark{position:absolute;font:34px/1 serif;color:#f7bd53;text-shadow:0 2px 0 #fff,0 0 12px #ffdf8e80;animation:sano-game-twinkle 3.1s ease-in-out infinite}.spark-one{right:9px;top:5px}.spark-two{left:23px;top:100px;font-size:22px;animation-delay:-1.1s}.spark-three{right:4px;bottom:3px;color:#7eafd6;animation-delay:-2.1s}
.sano-loading-copy{width:min(270px,76vw)}.sano-loading-copy h2{margin:0 0 7px!important;font:800 clamp(24px,6vw,30px)/1.2 Nunito,system-ui,sans-serif!important;letter-spacing:-.5px;color:#2c4666!important}.sano-loading-title{font:650 16px/1.5 Nunito,system-ui,sans-serif;color:#68809a;margin:0!important}
.sano-loading-track{position:relative;overflow:hidden;margin:20px auto 0;height:10px;border:3px solid #fff;border-radius:99px;background:#dce7f2;box-shadow:0 2px 8px #49658313}.sano-loading-track>span{position:absolute;inset:0 auto 0 -38%;width:38%;border-radius:inherit;background:linear-gradient(90deg,#82b6f2,#7c88e5,#d9a7dc);box-shadow:0 0 9px #91acebaa;animation:sano-game-progress 1.6s cubic-bezier(.4,0,.2,1) infinite}.sano-loading-track.has-error>span{animation:none;left:0;width:100%;background:#e6b88a}
.arcade-loading{position:fixed;inset:0;z-index:220;width:100%;height:100%;height:100dvh;overflow:hidden;background:#f5faff;isolation:isolate}.arcade-loading>.sano-loading-screen{height:100%;min-height:100%;box-sizing:border-box}.learning-arcade>.arcade-loading{position:absolute;z-index:30}
body[data-mountain-prompt=true]:not([data-page-hidden=true]) #app .sano-loading-screen *{animation-play-state:running!important}
@keyframes sano-game-island{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@keyframes sano-game-player{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(3deg)}}
@keyframes sano-game-pickup{0%,100%{transform:translate3d(0,0,0) rotate(-9deg)}35%{transform:translate3d(var(--star-drift-x),var(--star-drift-y),0) rotate(8deg)}70%{transform:translate3d(calc(var(--star-drift-x) * -.45),calc(var(--star-drift-y) * .45),0) rotate(-3deg)}}
@keyframes sano-game-star-sheen{0%,100%{transform:scale(.96);opacity:.9}42%{transform:scale(1.06);opacity:1}70%{transform:scale(1);opacity:.96}}
@keyframes sano-game-star-glow{0%,100%{transform:scale(.82);opacity:.35}42%{transform:scale(1.12);opacity:.9}70%{transform:scale(.98);opacity:.55}}
@keyframes sano-game-star-glint{0%,75%,100%{transform:scale(.45) rotate(0);opacity:.15}35%{transform:scale(1.15) rotate(45deg);opacity:1}55%{transform:scale(.7) rotate(90deg);opacity:.55}}
@keyframes sano-game-twinkle{0%,100%{opacity:.35;transform:translate3d(0,0,0) scale(.65) rotate(-8deg)}45%{opacity:1;transform:translate3d(3px,-6px,0) scale(1.1) rotate(8deg)}75%{opacity:.55;transform:translate3d(-2px,-2px,0) scale(.8) rotate(0)}}
@keyframes sano-game-progress{from{left:-38%}to{left:100%}}
.sano-activity-loading{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:230px;padding:28px 20px;color:#68809a;text-align:center}
.sano-activity-loading .sano-loading-scene{width:180px;height:78px;perspective:none}.sano-activity-loading .orbit-one{left:23px;top:28px}.sano-activity-loading .orbit-two{right:17px;top:31px}.sano-activity-loading .orbit-three{left:72px;top:0;width:42px}.sano-activity-loading .sano-loading-track{width:min(210px,68vw);margin-top:0}.sano-activity-loading .sano-loading-title{max-width:290px}
@media(max-height:580px){.sano-loading-screen{gap:16px;padding:16px}.sano-loading-wordmark{width:96px;margin:0}.sano-loading-scene{height:215px;width:280px}.sano-loading-island,.sano-loading-toy{width:190px!important;height:190px!important}.sano-loading-player{width:95px;height:125px}.sano-loading-copy h2{font-size:23px!important}.sano-loading-track{margin-top:12px}}
@media(max-height:430px) and (min-width:600px){.sano-loading-screen{display:grid;grid-template-columns:280px 245px;grid-template-rows:42px auto 50px;justify-content:center;align-content:center;column-gap:34px;row-gap:10px}.sano-loading-wordmark{grid-column:2;justify-self:center}.sano-loading-scene{grid-column:1;grid-row:1/4}.sano-loading-copy{grid-column:2}.sano-loading-screen>.mountain-loading-back{grid-column:2;justify-self:center}}
@media(prefers-reduced-motion:reduce){.sano-loading-scene *,.sano-loading-orbit::before,.sano-loading-orbit::after,.sano-loading-track>span{animation:none!important}.sano-loading-track>span{left:31%}.sano-loading-orbit::before{opacity:.45}}
body[data-motion=reduce] .sano-loading-scene *,body[data-motion=reduce] .sano-loading-orbit::before,body[data-motion=reduce] .sano-loading-orbit::after,body[data-motion=reduce] .sano-loading-track>span{animation:none!important}body[data-motion=reduce] .sano-loading-track>span{left:31%}body[data-motion=reduce] .sano-loading-orbit::before{opacity:.45}
body #app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .sano-loading-screen .mountain-button.mountain-loading-back,
body #app .arcade-loading .sano-loading-screen .mountain-loading-back{min-height:44px!important;padding:10px 22px!important;border:1px solid #d1e0ed!important;border-radius:30px!important;background:#ffffffd9!important;box-shadow:0 3px 9px #37536b10!important;color:#385774!important;font:600 15px/1.4 system-ui,sans-serif!important;filter:none!important;--sano-surface-shadow:none!important}
.sano-startup{min-height:100svh;box-sizing:border-box;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:30px 24px;text-align:center;font-family:system-ui,sans-serif;color:#29466e;background:linear-gradient(90deg,#fff0f7 0%,#f5faff 50%,#eaf6ff 100%)}.sano-startup-logo{width:min(280px,72vw);line-height:0}.sano-startup-logo .welcome-wordmark{display:block;width:100%;height:auto}.sano-startup-logo .welcome-logo-dot{fill:#f02b42}.sano-startup p{margin:0;line-height:1.6}.sano-startup a{color:#1467d8}.sano-startup-orbit{width:32px;height:32px;border:4px solid #cce6ff;border-top-color:#0867ed;border-radius:50%;animation:sano-boot-spin 1s linear infinite}@keyframes sano-boot-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.sano-startup-orbit{animation:none}}

/* Sano stylesheet: trial.css */
@font-face{font-family:SanoDevanagari;src:url("/fonts/SanoDevanagari.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:SanoDevanagariBold;src:url("/fonts/SanoDevanagariBold.ttf") format("truetype");font-weight:600 900;font-style:normal;font-display:swap}
@font-face{font-family:SanoDevanagari;src:url("/fonts/SanoDevanagariBold.ttf") format("truetype");font-weight:600 900;font-style:normal;font-display:swap}
[lang=ne],.script,.letter-art,.word-letter,.prompt{font-family:SanoDevanagari,"Kohinoor Devanagari",sans-serif}
/* Family trial: calm moving colour, touch spacing and safe areas. */
button,a,input,select{touch-action:manipulation}
button{-webkit-user-select:none;user-select:none}
.foundations-shell{position:relative;isolation:isolate;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.foundations-shell::before,.foundations-shell::after{content:'';position:fixed;z-index:-1;width:190px;height:190px;border-radius:43% 57% 65% 35%;pointer-events:none;opacity:.5;animation:trial-cloud 19s ease-in-out infinite}
.foundations-shell::before{left:-100px;top:20%;background:#ffdfef}
.foundations-shell::after{right:-110px;bottom:12%;background:#c8eaff;animation-delay:-9s}
.clean-welcome.art-welcome{padding-top:max(28px,env(safe-area-inset-top));padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}
.trial-parent-links{display:grid;gap:12px;margin:20px 0;padding:16px 18px;border-radius:20px;background:#f0f6ff}
.trial-parent-links a{color:#2768b7;text-decoration:none;font-size:15px;min-height:44px;display:flex;align-items:center}
.setting input,.setting select{font-size:16px}
@keyframes trial-cloud{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-20px) rotate(8deg)}}
@media(prefers-reduced-motion:reduce){.foundations-shell::before,.foundations-shell::after{animation:none}}
body[data-motion=reduce] .foundations-shell::before,body[data-motion=reduce] .foundations-shell::after{animation:none}
@media(display-mode:standalone){body{overscroll-behavior-y:contain}.simple-header{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}
/* Result controls stay in the child's view, independent of page scrolling. */
.step-prompt-backdrop{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:max(20px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));background:#e9f3ffba;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overflow:auto;overscroll-behavior:contain}
.step-prompt{width:min(440px,100%);max-height:100%;overflow:auto;background:#fff;border:3px solid #fff;border-radius:42px;box-shadow:0 12px 0 #d9e8fc,0 24px 60px #304f7b1c;display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 28px 22px;text-align:center;animation:step-pop 180ms cubic-bezier(.2,.8,.3,1) both}
.step-prompt-mascot{width:clamp(90px,18svh,150px);height:auto;object-fit:contain;animation:companion-hover 4s ease-in-out infinite}
.step-prompt h2{font:850 clamp(27px,6vw,35px)/1.15 var(--joy-font);color:#304f7b;margin:0}
.step-prompt-word{font:400 clamp(42px,8svh,66px)/1.3 SanoDevanagari,sans-serif;color:#466184}
.step-prompt-roman{font:650 20px/1.2 var(--joy-font);color:#657a96;margin:-10px 0 0}
.step-prompt-next{width:100%;min-height:88px;border-radius:28px;background:#0867ed;color:white;font:850 30px/1.2 var(--joy-font);padding:18px 22px;box-shadow:0 6px 0 #125abe;touch-action:manipulation}
.step-prompt-next:active{transform:translateY(3px) scale(.98);box-shadow:0 3px 0 #125abe}
.step-prompt-rest{min-height:54px;width:100%;border-radius:22px;background:#e8f2ff;color:#466184;font:700 17px/1.3 var(--joy-font);padding:12px}
.step-prompt button:focus-visible{outline:4px solid #ee9ec1;outline-offset:4px}
.step-prompt-backdrop~.sano-celebration{z-index:151}
@keyframes step-pop{from{opacity:.75;transform:scale(.92) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(max-height:540px) and (orientation:landscape){.step-prompt{display:grid;grid-template-columns:130px minmax(180px,1fr);gap:10px 22px;width:min(620px,100%);padding:20px 26px;border-radius:34px}.step-prompt-mascot{grid-row:1/5;width:130px}.step-prompt h2{font-size:28px}.step-prompt-word{font-size:40px}.step-prompt-roman{font-size:16px;margin:0}.step-prompt-next{min-height:70px;font-size:27px}.step-prompt-rest{min-height:48px;grid-column:2}}
@media(prefers-reduced-motion:reduce){.step-prompt,.step-prompt-mascot{animation:none}}
body[data-motion=reduce] .step-prompt,body[data-motion=reduce] .step-prompt-mascot{animation:none}

/* A calmer welcome: one main action, a brief mascot dance, then stillness. */
.art-welcome .welcome-focus{width:min(460px,100%)}
.art-welcome .welcome-artwork{animation:none}
.welcome-mascot-rig{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:none}
.welcome-character .welcome-dance-sheet{position:absolute;left:0;top:0;display:block;width:400%;height:400%;max-width:none;object-fit:fill;animation:none;transform-origin:0 0;filter:none}
.art-welcome .welcome-character{background:transparent;border:0}
.art-welcome .welcome-play{animation:none}
.art-welcome .welcome-letter,.art-welcome .welcome-nepal,.art-welcome .welcome-flag-cloth,.art-welcome .welcome-glint{animation-duration:3.8s;animation-delay:0s;animation-iteration-count:1;pointer-events:none}
.art-welcome .welcome-wordmark{filter:drop-shadow(0 3px 0 #d9e8ff)}
.art-welcome .welcome-roots{font-size:clamp(23px,4.5vw,30px);line-height:1.25;letter-spacing:-.5px;animation:none}
.art-welcome .welcome-play{width:min(360px,100%);margin-top:24px!important}
.art-welcome .welcome-language{font-size:14px!important;margin-top:18px!important}
body[data-page-hidden=true] *,body[data-page-hidden=true] *::before,body[data-page-hidden=true] *::after{animation-play-state:paused!important}
@media(max-height:680px) and (orientation:portrait){.art-welcome .welcome-focus{max-width:340px}.art-welcome .welcome-play{min-height:72px!important;margin-top:18px!important}.art-welcome .welcome-language{margin-top:14px!important}}
@media(max-height:540px) and (orientation:landscape){.art-welcome .welcome-focus{width:min(790px,100%);grid-template-columns:minmax(0,1fr) minmax(200px,1fr);column-gap:28px}.art-welcome .welcome-play{margin-top:0!important}.art-welcome .welcome-roots{font-size:23px}}

.welcome-character .welcome-still:not(.welcome-pose-window){position:static;width:100%;height:100%;animation:none;object-fit:contain;filter:none}
.adventure-discoveries{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;width:100%}
.adventure-discovery{flex:1;min-width:75px;max-width:125px;padding:12px 8px;background:#e8f2ff;border-radius:22px;display:grid;gap:4px;text-align:center}
.adventure-discovery:nth-child(2){background:#ffe3ee}.adventure-discovery:nth-child(3){background:#dff4e9}
.adventure-discovery>span{font:400 clamp(30px,7svh,48px)/1.3 SanoDevanagari,sans-serif;color:#304f7b}
.adventure-discovery>small{font:650 14px/1.3 var(--joy-font);color:#466184;overflow-wrap:anywhere}
.step-prompt:has(.adventure-discoveries) .step-prompt-next{font-size:24px}
@media(max-height:540px) and (orientation:landscape){.adventure-discoveries{grid-column:2}.step-prompt:has(.adventure-discoveries) .step-prompt-mascot{grid-row:1/5}.adventure-discovery{padding:7px}.adventure-discovery>span{font-size:30px}}
.welcome-character:active .welcome-dance-sheet{scale:1}
.welcome-character:active{scale:.98}

/* Original mascot, slow continuous motion. No pose atlas or abrupt frame swaps. */
.welcome-mascot-rig{overflow:visible}
.welcome-character .welcome-still{transform-origin:50% 88%}
.art-welcome .welcome-letter,.art-welcome .welcome-nepal,.art-welcome .welcome-flag-cloth,.art-welcome .welcome-glint{animation-duration:7s}
.step-prompt{animation-duration:420ms}
.letter-celebration{background:#dff4e9;-webkit-backdrop-filter:none;backdrop-filter:none;isolation:isolate}
.letter-celebration .step-prompt{position:relative;z-index:1;background:#ffffffed;border-color:white;box-shadow:0 10px 0 #c8eddb,0 24px 60px #304f7b12}
.letter-celebration .step-prompt-word{color:#29846b}
.letter-celebration .step-prompt-mascot{animation:sano-well-done 3.2s ease-in-out 2;transform-origin:50% 90%}
.letter-party{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.letter-party span{position:absolute;left:calc(5% + var(--party-i)*10%);bottom:-80px;font-size:clamp(30px,6vw,56px);color:#f29bbb;animation:letter-balloons 5.5s ease-out both;animation-delay:calc(var(--party-i)*110ms)}
.letter-party span:nth-child(even){color:#e3b444}
@keyframes letter-balloons{0%{opacity:0;transform:translateY(0) scale(.6)}15%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translateY(-105svh) rotate(18deg) scale(1.1)}}
@keyframes sano-well-done{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-8px) rotate(-4deg)}65%{transform:translateY(-10px) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){.letter-party{display:none}.letter-celebration .step-prompt-mascot{animation:none}}
body[data-motion=reduce] .letter-party{display:none}
body[data-motion=reduce] .letter-celebration .step-prompt-mascot{animation:none}

.party-firework{position:absolute;left:14%;top:24%;width:1px;height:1px;animation:gentle-firework 3.6s ease-out both}
.party-firework:last-child{left:85%;top:48%;animation-delay:1.2s}
.party-firework i{position:absolute;width:7px;height:24px;border-radius:8px;background:#f29bbb;transform:rotate(var(--angle)) translateY(-65px);transform-origin:50% 0}
.party-firework i:nth-child(even){background:#e3b444}
@keyframes gentle-firework{0%{opacity:0;transform:scale(.15)}20%{opacity:1}65%{opacity:.85}100%{opacity:0;transform:scale(1.6)}}

/* Foreground celebration: effects cross the card; words/actions stay above them. */
.letter-celebration .step-prompt{z-index:auto;animation:none}
.letter-celebration .letter-party{z-index:2}
.letter-celebration .step-prompt h2,
.letter-celebration .step-prompt-word,
.letter-celebration .step-prompt-roman,
.letter-celebration .step-prompt button{position:relative;z-index:3}
.letter-celebration .step-prompt h2{font-size:clamp(36px,8vw,48px);line-height:1.12;text-shadow:0 3px 0 #fff}
.letter-celebration .step-prompt-word{font-size:clamp(68px,12svh,100px);line-height:1.2;text-shadow:0 3px 0 #fff}
.letter-celebration .letter-party span{font-size:clamp(44px,9vw,76px)}
.letter-celebration .party-firework{left:24%;top:28%}
.letter-celebration .party-firework:last-child{left:76%;top:43%}
@media(max-height:700px){.letter-celebration .step-prompt h2{font-size:34px}.letter-celebration .step-prompt-word{font-size:64px}.letter-celebration .step-prompt-mascot{width:80px}}
@media(max-height:540px) and (orientation:landscape){.letter-celebration .step-prompt h2{font-size:30px}.letter-celebration .step-prompt-word{font-size:48px}}

/* First see the green trace, then foreground joy, then the readable choices. */
.letter-celebration{background:#e9f3ff80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.celebration-sequence{animation:celebration-backdrop 300ms ease-out 350ms both}
.celebration-sequence .step-prompt[hidden]{display:none!important}
.celebration-sequence .letter-party span{animation-delay:calc(350ms + var(--party-i)*110ms)}
.celebration-sequence .party-firework{animation-delay:350ms}
.celebration-sequence .party-firework:last-child{animation-delay:800ms}
.celebration-sequence .step-prompt{background:transparent;border-color:transparent;box-shadow:none}
.celebration-sequence .step-prompt>*{filter:drop-shadow(0 2px 5px #ffffffcc)}
.celebration-sequence .step-prompt.celebration-revealed{animation:none}
.celebration-sequence .celebration-revealed h2,.celebration-sequence .celebration-revealed .step-prompt-word,.celebration-sequence .celebration-revealed .step-prompt-roman,.celebration-sequence .celebration-revealed button{animation:celebration-message 600ms ease-out both}
@keyframes celebration-backdrop{from{background:transparent;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}to{background:#e9f3ff80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}}
@keyframes celebration-message{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.celebration-sequence,.celebration-sequence .step-prompt.celebration-revealed{animation:none}}
body[data-motion=reduce] .celebration-sequence,body[data-motion=reduce] .celebration-sequence .step-prompt.celebration-revealed{animation:none}

@media(prefers-reduced-motion:reduce){.celebration-sequence .celebration-revealed>*{animation:none!important}}
body[data-motion=reduce] .celebration-sequence .celebration-revealed>*{animation:none!important}

/* Keep the tracing companion vivid without changing other screens or artwork. */
.sano-guide>.sano-character{opacity:1;filter:saturate(1.35) contrast(1.12) brightness(.97)}

/* Blur the actual activity surface; keep the foreground layer completely sharp. */
.sano-celebration-blur{filter:blur(12px);opacity:.45}
.sano-celebration-blur-staged{animation:celebration-surface-blur 300ms ease-out 350ms both}
@keyframes celebration-surface-blur{from{filter:blur(0);opacity:1}to{filter:blur(12px);opacity:.45}}
.letter-celebration{z-index:1000;-webkit-backdrop-filter:none;backdrop-filter:none}
@keyframes celebration-backdrop{from{background:transparent}to{background:#e9f3ff99}}
.letter-celebration .letter-party{position:fixed;inset:0;z-index:2}
@media(prefers-reduced-motion:reduce){.sano-celebration-blur-staged{animation:none}}
body[data-motion=reduce] .sano-celebration-blur-staged{animation:none}

.celebration-sequence .step-prompt [hidden]{display:none!important}

/* Three separate moments: full-screen party, praise, then unhurried choices. */
.letter-celebration [hidden]{display:none!important}
.celebration-sequence .letter-party span{left:var(--party-x);bottom:var(--party-y);animation:letter-balloons 1.6s ease-out both;animation-delay:calc(var(--party-i)*18ms)}
.celebration-sequence .party-firework,.celebration-sequence .party-firework:last-child{left:var(--burst-x);top:var(--burst-y);animation-delay:80ms}
.celebration-approval{font-size:48px;line-height:1.1}
.celebration-fading{animation:celebration-message 400ms ease-in reverse both!important}
.celebration-choices{animation:celebration-message 350ms ease-out both!important}

/* Same approved pastel wash as gameplay, with visible, finite coaching cues. */
.clean-welcome.art-welcome{background:radial-gradient(ellipse at 1% 7%,#ffe3f0,transparent 48%),radial-gradient(ellipse at 100% 15%,#d5efff,transparent 52%),#f5faff!important}
.sano-tip-notice{background:#e8f2ff!important;border-color:#dbe8f7!important;box-shadow:0 0 0 4px #e8f2ff80;animation:sano-notice 650ms ease-out both}
@keyframes sano-notice{0%{transform:scale(.96)}40%{transform:scale(1.035)}100%{transform:scale(1)}}
.letter-celebration .step-prompt{width:min(720px,100%)}
.letter-celebration .step-prompt-mascot{width:clamp(160px,31svh,280px)}
.letter-celebration .step-prompt h2{font-size:clamp(46px,10vw,86px);line-height:1.05;max-width:650px}
.letter-celebration .celebration-choices{width:min(440px,100%)}
.letter-celebration .party-firework:nth-child(3n) i{background:#8fc8f4}
.letter-celebration .party-firework:nth-child(3n+1) i:nth-child(odd){background:#88d6b6}
.letter-celebration .party-firework i{height:clamp(24px,5vw,42px);width:8px}
@media(max-height:540px) and (orientation:landscape){.letter-celebration .celebration-revealed{display:flex;gap:5px}.letter-celebration .step-prompt-mascot{width:120px}.letter-celebration .step-prompt h2{font-size:42px}.letter-celebration .celebration-approval{font-size:30px}.letter-celebration .celebration-choices{display:flex}}
@media(prefers-reduced-motion:reduce){.sano-tip-notice{animation:none}}
body[data-motion=reduce] .sano-tip-notice{animation:none}

.sano-tip-notice.sano-tip-success{background:#dff4e9!important;border-color:#49a98b!important;color:#246b54;box-shadow:0 0 0 4px #dff4e980}
.sano-tip-notice.sano-tip-error{background:#ffe3ee!important;border-color:#d47b85!important;color:#8e3b4b;box-shadow:0 0 0 4px #ffe3ee80}

/* Original illustrated celebration assets; finite effects remain behind the praise. */
.letter-celebration .letter-party{z-index:0}
.letter-celebration .step-prompt{position:relative;z-index:1}
.letter-party .party-balloon{position:absolute;left:var(--party-x);bottom:var(--party-y);width:clamp(95px,18vw,180px);height:auto;animation:letter-balloons 3.5s ease-out both;animation-delay:calc(var(--party-i)*18ms)}
.celebration-sequence .letter-party span{animation-duration:3.5s}
.letter-celebration .step-prompt-mascot{width:clamp(200px,40svh,340px);animation:sano-approval 1.6s ease-in-out both}
@keyframes sano-approval{0%{opacity:0;transform:translateY(20px) scale(.8) rotate(-5deg)}35%{opacity:1;transform:translateY(-8px) scale(1.04) rotate(2deg)}65%{transform:translateY(0) scale(1) rotate(-2deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@media(max-height:540px) and (orientation:landscape){.letter-celebration .step-prompt-mascot{width:150px}}
@media(prefers-reduced-motion:reduce){.letter-celebration .step-prompt-mascot{animation:none}}
body[data-motion=reduce] .letter-celebration .step-prompt-mascot{animation:none}

/* Rounded lettering extends Sano's actual vector wordmark, rather than a font approximation. */
.letter-celebration h2.brand-praise{width:min(620px,100%);margin:0;line-height:0;filter:drop-shadow(0 6px 0 #d9e8ff)}
.brand-praise img{display:block;width:100%;height:auto}
.letter-party{transition:opacity 600ms ease-out}
.letter-party.party-subtle{opacity:.24}
.letter-celebration .step-prompt-next{border-radius:34px;box-shadow:0 7px 0 #125abe,0 12px 24px #4274c81c}
.letter-celebration .step-prompt-rest{border-radius:28px;background:#e8f2ff;border:2px solid #fff;box-shadow:0 4px 0 #d9e8fc;font-weight:800}
.letter-celebration .step-prompt-rest:last-child{background:#ffe3ee;box-shadow:0 4px 0 #f2ccdf}
.letter-celebration .celebration-choices{gap:18px;padding:26px 24px 30px}
@media(prefers-reduced-motion:reduce){.letter-party{transition:none}}
body[data-motion=reduce] .letter-party{transition:none}

/* Calm choice motion: four slow cycles, then a still, pressure-free decision. */
.letter-celebration .celebration-choices>button{animation:choice-wobble 4.8s ease-in-out 4;transform-origin:50% 70%;will-change:auto}
.letter-celebration .celebration-choices>button:nth-last-child(2){animation-direction:reverse}
.letter-celebration .celebration-choices>button:is(:hover,:focus-visible,:active){animation-play-state:paused}
@keyframes choice-wobble{0%,50%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-2px) rotate(-1deg)}75%{transform:translateY(-2px) rotate(1deg)}}
.letter-party.party-choices{opacity:.16}
.letter-party.party-choices>span,.letter-party.party-choices>.party-balloon{display:none}
.letter-party.party-choices .party-firework{animation:choice-firework 4.8s ease-in-out 4 both;animation-delay:0ms}
.letter-party.party-choices .party-firework:nth-child(even){animation-delay:700ms}
@keyframes choice-firework{0%,100%{opacity:0;transform:scale(.55)}35%{opacity:1}75%{opacity:0;transform:scale(1.25)}}
body[data-page-hidden=true] .celebration-choices>button,body[data-page-hidden=true] .party-choices .party-firework{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.letter-celebration .celebration-choices>button{animation:none!important}.letter-party.party-choices{display:none}}
body[data-motion=reduce] .letter-celebration .celebration-choices>button{animation:none!important}
body[data-motion=reduce] .letter-party.party-choices{display:none}

/* Brighter pastel celebration, with compact Sano-style choice wordmarks. */
.letter-celebration button.choice-brand-label{font-size:0}
.choice-lettering{display:block;width:auto;max-width:100%;height:2.6rem;margin:auto;pointer-events:none}
.letter-celebration .step-prompt-rest{background:#d1eaff;box-shadow:0 4px 0 #b6d9fb}
.letter-celebration .step-prompt-rest:last-child{background:#ffcee5;box-shadow:0 4px 0 #efaecb}
.letter-celebration .party-firework i{background:#ff80b6}
.letter-celebration .party-firework i:nth-child(even){background:#edbf42}
.letter-celebration .party-firework:nth-child(3n) i{background:#62b9f5}
.letter-celebration .party-firework:nth-child(3n+1) i:nth-child(odd){background:#54cba4}
.celebration-sequence .party-firework{animation-duration:2.8s;animation-delay:0ms}
.celebration-sequence .party-firework:nth-child(3n){animation-delay:400ms}
.celebration-sequence .party-firework:nth-child(3n+1){animation-delay:800ms}
.letter-party.party-subtle{opacity:.32}
.letter-party.party-choices{opacity:.24}
.letter-party.party-choices .party-firework{animation-duration:4.8s;animation-delay:0ms}
.letter-party.party-choices .party-firework:nth-child(even){animation-delay:700ms}
.letter-party.party-choices .party-firework:nth-last-child(-n+6){display:none}

/* Clear action colours, rounded labels, and quiet fireworks while choosing. */
.letter-celebration .step-prompt-next{background:#15965b;border-radius:42px;box-shadow:0 7px 0 #0d7544,0 12px 24px #27976d20;color:white}
.letter-celebration .step-prompt-rest{background:#0867ed;border-radius:36px;box-shadow:0 5px 0 #125abe;color:white}
.letter-celebration .step-prompt-rest:last-child{background:#d84476;box-shadow:0 5px 0 #ad315b;color:white}
.letter-party.party-choices .party-firework{animation-iteration-count:infinite}

.topic-corner{min-height:48px;padding:10px 16px;border-radius:22px;background:#dff4e9;color:#176e4d;font-weight:800}
.topic-picker{width:min(640px,100%);margin:auto;padding:20px 0;text-align:center}
.topic-picker h1{font-size:clamp(28px,7vw,42px);letter-spacing:-1px;margin-bottom:14px}
.topic-picker p{color:#657a96;margin-bottom:22px}.topic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:14px}
.topic-tile{min-height:106px;padding:16px 10px;background:#dceeff;border-radius:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#245594}
.topic-tile:nth-child(3n+2){background:#ffe0ed}.topic-tile:nth-child(3n){background:#dff4e9}.topic-tile>span{font:36px/1.3 SanoDevanagari,sans-serif}.topic-tile small{font-size:16px}.topic-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px}
@media(max-width:380px){.topic-corner{padding:10px}.simple-header .row{gap:5px}.simple-header .xp-pill{display:none}}

/* New topic pictures use the existing picture bounds without changing the UI. */
.learning-picture{object-fit:contain;display:block;width:100%;height:100%;border-radius:18%}
.match-item>.learning-picture{width:78px;height:78px;max-width:100%;flex-shrink:0}
.choice>.learning-picture{max-width:105px;max-height:105px;margin:auto}

/* Join-the-pictures play: the finger draws a soft string between matching cards. */
.match-stage{position:relative;isolation:isolate;width:min(430px,100%);margin:auto;padding-bottom:8px}
.match-stage .match-grid{position:relative;z-index:2}
.match-strings{position:absolute;z-index:1;inset:0 0 38px;width:100%;height:calc(100% - 38px);overflow:visible;pointer-events:none}
.match-strings path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.match-strings .match-string{stroke:#54cba4;stroke-width:9;filter:drop-shadow(0 3px 0 #bfead9);animation:match-string-pop .48s cubic-bezier(.2,1.35,.4,1) both}
#match-draft{stroke:#62a9ee;stroke-width:8;stroke-dasharray:4 13;filter:drop-shadow(0 3px 0 #d3e8ff)}
.match-stage .match-item{position:relative;z-index:2;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;border-radius:34px!important;transition:transform .2s cubic-bezier(.2,1.35,.4,1),box-shadow .2s,background .2s}
.match-stage .match-item.connecting,.match-stage .match-item.selected{transform:translateY(-3px) scale(1.045);border-color:#62a9ee!important;box-shadow:0 8px 0 #b8d7f4,0 14px 26px #4f83b72b!important}
.match-stage .match-item.matched{opacity:.88!important;background:#c8f1dc!important;border-color:#8bd5b2!important;box-shadow:0 5px 0 #83c8a7!important}
.match-stage .match-item.match-miss{animation:match-gentle-no .48s ease both;background:#ffdbe6!important;border-color:#e98bad!important}
.match-help{position:relative;z-index:2;margin:17px auto 0;color:#55779f;font:800 15px/1.4 var(--joy-font);padding:9px 15px;border-radius:22px;background:#e7f3ff;width:max-content;max-width:100%}
@keyframes match-string-pop{from{stroke-dasharray:0 900}to{stroke-dasharray:900 0}}
@keyframes match-gentle-no{0%,100%{transform:translateX(0)}30%{transform:translateX(-6px) rotate(-1deg)}65%{transform:translateX(6px) rotate(1deg)}}

/* Extra rounded depth on session-complete choices, with finite calm movement. */
.round-complete{position:relative;border-radius:46px;padding:30px 24px!important;background:#ffffffb8;border:4px solid #fff;box-shadow:0 8px 0 #d6e6f5,0 22px 46px #47739c1c;overflow:hidden}
.round-complete::before,.round-complete::after{content:'';position:absolute;z-index:-1;width:170px;height:170px;border-radius:50%;filter:blur(2px);opacity:.7}
.round-complete::before{left:-78px;top:18%;background:radial-gradient(circle at 30% 25%,#fff,#ffcfe3 44%,#f6aac9)}
.round-complete::after{right:-86px;bottom:6%;background:radial-gradient(circle at 30% 25%,#fff,#cdeaff 44%,#82c3f1)}
.round-complete .pill,.round-complete .quiet{width:100%;border-radius:34px!important;font-family:var(--joy-font);font-weight:850;animation:round-choice-wobble 4.4s ease-in-out 3;transform-origin:50% 75%}
.round-complete .pill{box-shadow:0 7px 0 #125abe,0 14px 24px #286fc51f!important}
.round-complete .quiet{margin-top:12px;background:#ffd7e8;color:#a43b69;box-shadow:0 5px 0 #e8afc8}
.round-souvenirs>div{border-radius:34px!important;border:3px solid #fff;animation:round-token-float 3.8s ease-in-out 3}
.round-souvenirs>div:nth-child(2){animation-delay:-.6s}.round-souvenirs>div:nth-child(3){animation-delay:-1.2s}
@keyframes round-choice-wobble{0%,50%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-3px) rotate(-.8deg)}75%{transform:translateY(-3px) rotate(.8deg)}}
@keyframes round-token-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(1.5deg)}}

/* Layered pastel spheres, capsules and radial bursts for richer celebration depth. */
.sano-celebration .celebration-shape{display:block;width:var(--size);height:calc(var(--size) + 10px);border-radius:999px;background:var(--spark);background:linear-gradient(145deg,#fff 0 12%,var(--spark) 38% 76%,color-mix(in srgb,var(--spark),#376090 22%));box-shadow:inset 2px 2px 3px #ffffffcc,0 4px 6px #34547a24;animation:celebration-shape-fall 2.15s cubic-bezier(.18,.8,.3,1) var(--delay) both}
.sano-celebration .party-ball{height:var(--size);border-radius:50%;background:var(--spark);background:radial-gradient(circle at 30% 24%,#fff 0 11%,var(--spark) 34% 67%,color-mix(in srgb,var(--spark),#325376 25%) 100%);box-shadow:inset -3px -4px 6px #31506f26,0 5px 7px #34547a2d}
.sano-celebration .party-burst{top:var(--top);width:12px;height:12px;border-radius:50%;background:var(--spark);box-shadow:0 -34px 0 -3px #ff80b6,24px -24px 0 -3px #ffd669,34px 0 0 -3px #62b9f5,24px 24px 0 -3px #54cba4,0 34px 0 -3px #a99aef,-24px 24px 0 -3px #ff80b6,-34px 0 0 -3px #ffd669,-24px -24px 0 -3px #62b9f5;animation:celebration-burst 1.65s ease-out var(--delay) both}
@keyframes celebration-shape-fall{0%{opacity:0;transform:translateY(-10vh) rotate(0) scale(.55)}18%{opacity:1}100%{opacity:0;transform:translateY(var(--drop)) rotate(var(--turn)) scale(1.08)}}
@keyframes celebration-burst{0%{opacity:0;transform:scale(.15) rotate(0)}22%{opacity:1}72%{opacity:.95}100%{opacity:0;transform:scale(1.65) rotate(18deg)}}
@media(max-width:420px){.match-stage{width:100%}.match-stage .match-grid{gap:14px!important}.match-help{font-size:13px}.round-complete{border-radius:38px;padding:24px 17px!important}}
@media(prefers-reduced-motion:reduce){.match-strings .match-string,.match-stage .match-item.match-miss,.round-complete .pill,.round-complete .quiet,.round-souvenirs>div,.sano-celebration .celebration-shape{animation:none!important}}
body[data-motion=reduce] .match-strings .match-string,body[data-motion=reduce] .match-stage .match-item.match-miss,body[data-motion=reduce] .round-complete .pill,body[data-motion=reduce] .round-complete .quiet,body[data-motion=reduce] .round-souvenirs>div,body[data-motion=reduce] .sano-celebration .celebration-shape{animation:none!important}

/* Library-only navigation: a reachable topic control at any scroll position. */
.topic-switcher{position:relative;z-index:20;display:flex;align-items:center;gap:8px;margin:0 0 22px;padding:8px;border:1px solid #dce7f5;border-radius:28px;background:#f7faff;box-shadow:0 5px 16px #203b6412;min-width:0;width:100%}
.topic-rail-track{position:relative;display:flex;gap:8px;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:5px 4px;scrollbar-width:thin;scrollbar-color:#b6d6f3 transparent;touch-action:pan-x pan-y}
.topic-rail-item{flex:0 0 58px;width:58px;min-height:58px;padding:8px;border:2px solid transparent;border-radius:20px;display:grid;place-items:center;background:var(--topic-fill,#e8f2ff);color:var(--topic-ink,#174274);scroll-snap-align:center;cursor:pointer}
.topic-rail-item[aria-current=true]{border-color:#0867ed;box-shadow:0 0 0 2px #ffffff,0 3px 0 #4c9fea}
.topic-rail-item>span{width:38px;height:38px;display:grid;place-items:center;pointer-events:none}.topic-rail-item img,.topic-rail-item svg{width:100%;height:100%;object-fit:contain}
.topic-rail-item .letter-art,.topic-rail-item .word-letter{font:30px/1.15 SanoDevanagari,sans-serif;color:var(--topic-ink)}
.topic-rail-item:focus-visible{outline:3px solid #0867ed;outline-offset:2px}
.topic-rail-all{align-self:center;box-shadow:3px 0 0 #dce7f5}

/* The heading receives focus to announce the new topic, not as an input control. */
.topic-picker h1:focus{outline:none}

/* Topic landing only: stable tap targets, moving faces, no extra chrome. */
#app.topic-landing-view .simple-header,#app.topic-landing-view .simple-nav{display:none}
#app.topic-landing-view .simple-shell{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
#app.topic-landing-view .simple-content{width:100%;min-width:0;max-width:820px;margin:auto;padding-bottom:0}
.topic-picker.topic-landing{width:min(760px,100%);padding:8px 0 24px}
.topic-landing h1{position:relative;width:min(540px,100%);margin:0 auto 24px;padding-top:26px;line-height:1}
.topic-landing h1>svg{width:100%;height:auto;aspect-ratio:444/168;overflow:visible}
.topic-title-spark{position:absolute;right:14%;top:0;line-height:22px;font-size:20px;color:#ff80b6;animation:topic-sparkle 4.8s ease-in-out infinite}
.topic-landing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.topic-landing-tile.topic-tile{position:relative;isolation:isolate;display:block;min-width:0;min-height:174px;padding:0;background:none;border-radius:36px;text-align:center;touch-action:manipulation;overflow:visible}
.topic-landing-tile.topic-tile:active{transform:none}
.topic-tile-face{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:190px;padding:20px 16px;border-radius:36px;border:3px solid #ffffffb8;background:linear-gradient(145deg,#ffffff4d,transparent 65%),var(--topic-fill);box-shadow:0 6px 0 var(--topic-edge),0 10px 14px #4073ad16;color:var(--topic-ink);animation:topic-tile-float 5.6s ease-in-out infinite;animation-delay:var(--tile-delay);transition:box-shadow .16s}
.topic-landing-tile:active .topic-tile-face{box-shadow:0 2px 0 var(--topic-edge)}
.topic-tone-blue{--topic-fill:#91caff;--topic-ink:#174274;--topic-edge:#4c9fea}
.topic-tone-pink{--topic-fill:#ffb5d5;--topic-ink:#71304f;--topic-edge:#e882b0}
.topic-tone-mint{--topic-fill:#92e1bd;--topic-ink:#175a43;--topic-edge:#48b88c}
.topic-tile-face strong{font-family:var(--joy-font);font-size:clamp(19px,3.8vw,25px);font-weight:850;line-height:1.15;overflow-wrap:anywhere}
.topic-tile-picture{position:relative;display:grid;place-items:center;flex:none;width:92px;max-width:100%;height:90px;min-height:90px;pointer-events:none}
.topic-tile-picture img,.topic-tile-picture svg{width:100%;height:100%;object-fit:contain}
.topic-tile-picture .letter-art,.topic-tile-picture .word-letter{font:64px/1.2 SanoDevanagari,sans-serif;color:var(--topic-ink)}
.topic-tile-halo{position:absolute;inset:0 -8px;z-index:0;display:block;pointer-events:none}
.topic-tile-spark,.topic-tile-glint{position:absolute;line-height:24px;font-size:22px;color:var(--topic-edge);pointer-events:none;animation:topic-sparkle 4.8s ease-in-out infinite;animation-delay:var(--tile-delay)}
.topic-tile-spark{top:16px;right:0}.topic-tile-glint{bottom:24px;left:0;font-size:16px;animation-delay:calc(var(--tile-delay) - 2.4s)}
@keyframes topic-tile-float{0%,100%{transform:translateY(0) rotate(-.8deg)}50%{transform:translateY(-4px) rotate(.8deg)}}
@keyframes topic-sparkle{0%,100%{opacity:.4;transform:scale(.85)}50%{opacity:1;transform:scale(1.08)}}
@media(min-width:600px){.topic-landing-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.topic-landing-tile.topic-tile,.topic-tile-face{min-height:190px}}
@media(prefers-reduced-motion:reduce){.topic-tile-face,.topic-title-spark,.topic-tile-spark,.topic-tile-glint{animation:none}}
body[data-page-hidden="true"] .topic-tile-face,body[data-page-hidden="true"] .topic-title-spark,body[data-page-hidden="true"] .topic-tile-spark,body[data-page-hidden="true"] .topic-tile-glint{animation-play-state:paused}

/* Finish together: the same approved mascot and gentle completion choices. */
.branded-rest{position:relative;isolation:isolate;width:100%;max-width:640px;margin:auto;padding:18px 8px 26px;overflow:hidden;border-radius:38px}
.rest-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:14px}
.rest-mascot-wrap{position:relative;width:min(320px,42svh,100%)}
.branded-rest .rest-mascot{width:100%;height:auto;object-fit:contain;opacity:1}
.branded-rest h1{font:900 clamp(32px,7vw,46px)/1.12 var(--joy-font);letter-spacing:-1px;color:#304f7b;max-width:100%}
.branded-rest h1:focus{outline:none}
.branded-rest .rest-wordmark{width:min(440px,100%);margin:0;line-height:0;animation:topic-tile-float 5.6s ease-in-out 4}.rest-wordmark svg{width:100%;height:auto;aspect-ratio:444/168}
.mascot-glint{position:absolute;top:8%;width:20px;height:24px;clip-path:polygon(50% 0,63% 36%,100% 50%,63% 64%,50% 100%,37% 64%,0 50%,37% 36%);background:#ff80b6;pointer-events:none;animation:topic-sparkle 4.8s ease-in-out infinite}.mascot-glint.one{left:5%}.mascot-glint.two{right:5%;top:23%;width:15px;height:18px;background:#62b9f5;animation-delay:-2.4s}
.branded-rest .rest-message{max-width:480px;font:650 18px/1.45 var(--joy-font);color:#657a96}
.rest-actions{display:flex;flex-direction:column;gap:18px;width:min(440px,100%);padding:5px 8px 10px}
.rest-actions>button{font:850 clamp(22px,5vw,28px)/1.2 var(--joy-font);transform-origin:50% 70%;animation:choice-wobble 4.8s ease-in-out 4}
.rest-actions>.step-prompt-next{border-radius:42px;background:#15965b;box-shadow:0 7px 0 #0d7544,0 12px 24px #27976d20}
.rest-actions>.step-prompt-rest{border-radius:36px;min-height:70px;background:#d84476;color:white;box-shadow:0 5px 0 #ad315b;animation-direction:reverse}
.rest-actions>button:is(:hover,:focus-visible,:active){animation-play-state:paused}
.rest-party{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;opacity:.24}
.rest-party .party-firework{left:var(--burst-x);top:var(--burst-y);animation:choice-firework 4.8s ease-in-out infinite both}
.rest-party .party-firework:nth-child(even){animation-delay:700ms}
.rest-party .party-firework i{background:#ff80b6}.rest-party .party-firework i:nth-child(even){background:#edbf42}.rest-party .party-firework:nth-child(3n) i{background:#62b9f5}.rest-party .party-firework:nth-child(3n+1) i:nth-child(odd){background:#54cba4}
.rest-balloon{position:absolute;width:85px;height:110px;object-fit:contain;opacity:.6;animation:idle-bob 6s ease-in-out infinite;animation-delay:calc(var(--rest-i)*-1.2s)}
body[data-page-hidden=true] .rest-party *,body[data-page-hidden=true] .rest-actions>button,body[data-page-hidden=true] .rest-wordmark,body[data-page-hidden=true] .mascot-glint{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.rest-party{display:none}.rest-actions>button,.rest-wordmark,.mascot-glint{animation:none!important}}
body[data-motion=reduce] .rest-party{display:none}body[data-motion=reduce] .rest-actions>button{animation:none!important}

/* Tap-to-fill stencil: big alternatives also expose every small flag region. */
.flag-colouring{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;max-width:640px}.flag-colouring h1{font:850 clamp(28px,6vw,38px)/1.15 var(--joy-font);color:#244974}.flag-colouring h1:focus{outline:none}
.flag-palette,.flag-parts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;width:100%}.flag-palette button{flex:1;min-width:70px;min-height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:3px solid #dbe8f7;border-radius:24px;background:white;color:#244974;font:750 15px/1.2 var(--joy-font)}.flag-palette button[aria-pressed=true]{border-color:#0867ed;background:#e8f2ff}.flag-palette i{width:38px;height:38px;border-radius:16px;border:1px solid #b5cce5}
.flag-stencil{width:min(300px,100%);touch-action:manipulation}.flag-stencil svg{display:block;width:100%;height:auto}.flag-stencil [data-flag-region]{cursor:pointer}.flag-parts button{flex:1 1 40%;min-height:64px;padding:12px;border-radius:24px;background:#e8f2ff;color:#244974;font:750 18px/1.25 var(--joy-font)}.flag-parts button[aria-pressed=true]{background:#dff4e9;border:2px solid #54cba4}.flag-hint{min-height:48px;font:700 18px/1.35 var(--joy-font);color:#36527a}
/* Optional sound free play extends the same palette and large stable targets. */
.piano-play{width:100%;max-width:520px;margin:24px auto;text-align:center}.piano-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.piano-key{min-height:112px;min-width:54px;border:3px solid white;border-radius:24px;background:#e8f2ff;color:#243957;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;font:800 16px system-ui;touch-action:manipulation}.piano-key:nth-child(3n+2){background:#ffe3ee}.piano-key:nth-child(3n){background:#dff4e9}.piano-key span{font-size:36px;color:#0867ed}.piano-key:active{transform:scale(.97)}.piano-status{min-height:24px;font-size:14px}

/* 8 October owner refinement: diagonal jiggles, edge glow, no tile stars. */
.topic-landing h1{padding-top:8px}.topic-title-spark,.topic-tile-spark,.topic-tile-glint{display:none}
.topic-tile-halo{inset:0 -8px;z-index:0;border-radius:36px;background:radial-gradient(ellipse,var(--topic-edge,#62b9f5) 35%,transparent 72%);opacity:.4;transform:scale(1.08);animation:tile-edge-glow 3.8s ease-in-out infinite;animation-delay:var(--tile-delay,0s)}
.topic-tile-face{animation:tile-jiggle 3.8s ease-in-out infinite;animation-delay:var(--tile-delay,0s)}
.topic-picker .brand-heading,.flag-colouring .brand-heading,.currency-play .brand-heading{width:min(480px,100%);margin:12px auto 24px;line-height:0;color:#15965b}
.brand-heading svg{width:100%;max-height:150px;height:auto;overflow:visible}
.topic-exit{width:min(360px,100%);min-height:70px;padding:15px 24px;background:#d84476;color:white;border:3px solid #fff9;border-radius:36px;box-shadow:0 5px 0 #ad315b;font:850 24px var(--joy-font);touch-action:manipulation}
.topic-exit svg{display:block;max-width:260px;height:38px;width:100%;margin:auto}.topic-exit:active{transform:translateY(3px);box-shadow:0 2px 0 #ad315b}
.topic-picker:not(.topic-landing) .topic-tile{position:relative;isolation:isolate;background:transparent;padding:0;overflow:visible;border-radius:30px}
.topic-entry-face{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:110px;width:100%;padding:15px 10px;border:3px solid #ffffffb8;border-radius:30px;background:#91caff;box-shadow:0 5px 0 #4c9fea;animation:tile-jiggle 3.8s ease-in-out infinite}
.topic-entry-face>span{font:36px/1.3 SanoDevanagari,sans-serif}.topic-entry-face small{font:700 16px/1.3 var(--joy-font);color:#245594}
.topic-tile:nth-child(3n+2) .topic-entry-face{background:#ffb5d5;box-shadow:0 5px 0 #e882b0;animation-delay:-1.2s}.topic-tile:nth-child(3n) .topic-entry-face{background:#92e1bd;box-shadow:0 5px 0 #48b88c;animation-delay:-2.4s}
.game-tile-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;pointer-events:none;animation:tile-jiggle 3.8s ease-in-out infinite}
.game-tile-face>.learning-picture{width:90px;height:90px;max-width:100%;object-fit:contain}.match-item .game-tile-face>.learning-picture{width:78px;height:78px}.big-object .game-tile-face>.learning-picture{width:185px;height:185px}
:is(.choice,.match-item,.word-tile,.reply-choice,.big-object):not(.correct):not(.matched){box-shadow:0 5px 0 #bbd6f0,0 0 18px 5px #62b9f530!important}
:is(.choice,.match-item,.word-tile,.reply-choice,.big-object):nth-child(even) .game-tile-face{animation-delay:-1.9s}
.match-item.connecting .game-tile-face,.match-item.matched .game-tile-face{animation-play-state:paused}
@keyframes tile-jiggle{0%,100%{transform:translate(-3px,-2px) rotate(-1.6deg)}25%{transform:translate(3px,2px) rotate(1.6deg)}50%{transform:translate(-2px,2px) rotate(-1.2deg)}75%{transform:translate(2px,-2px) rotate(1.2deg)}}
@keyframes tile-edge-glow{0%,100%{opacity:.24;transform:scale(1.03)}50%{opacity:.58;transform:scale(1.1)}}
.flag-stencil{position:relative;width:min(420px,100%);touch-action:none;user-select:none;cursor:none;border-radius:24px;background:#ffffff80}
.flag-stencil:focus-visible{outline:3px solid #0867ed;outline-offset:5px}.flag-art svg{width:100%;display:block;height:auto;pointer-events:none}
.flag-brush-tip{position:absolute;width:19px;height:42px;transform:translate(-50%,-100%) rotate(14deg);transform-origin:50% 100%;pointer-events:none;opacity:0}.flag-brush-tip svg{width:100%;height:100%}
.flag-keyboard-help{font:600 14px/1.4 var(--joy-font);color:#657a96;max-width:400px}
.topic-special{background:#15965b!important;border-radius:36px!important}
body[data-page-hidden=true] :is(.topic-tile-face,.topic-entry-face,.topic-tile-halo,.game-tile-face){animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.topic-tile-face,.topic-entry-face,.topic-tile-halo,.game-tile-face{animation:none!important}}
body[data-motion=reduce] :is(.topic-tile-face,.topic-entry-face,.topic-tile-halo,.game-tile-face){animation:none!important}
.currency-play{display:flex;flex-direction:column;align-items:center;gap:18px;width:min(640px,100%);margin:auto;text-align:center}.currency-card{width:min(360px,100%);min-height:180px;border:5px solid #91caff;border-radius:30px;background:#dff4e9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px;color:#24416d}.currency-card.currency-coin{width:180px;height:180px;border-radius:100px;background:#ffdb78;border-color:#d6b14b}.currency-value{font:48px/1.3 SanoDevanagari,sans-serif}.currency-card strong{font:900 23px var(--joy-font)}.currency-card small{font:600 14px var(--joy-font)}.currency-card img{object-fit:contain}.currency-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;width:100%}.currency-choices .topic-tile{position:relative;background:transparent;padding:0;width:130px;isolation:isolate}.currency-choices img{object-fit:contain}.currency-choices .topic-entry-face{min-height:135px;gap:8px}.currency-hint{min-height:25px}.currency-progress{font-size:14px;color:#657a96}
.choice-brand-label>svg{display:block;margin:auto;width:100%;height:2.6rem;max-width:100%;pointer-events:none}.piano-keys .game-tile-face{width:100%;height:auto;gap:8px}.flag-palette{max-width:480px}

/* Topic grids already have their icon rail and one Exit action. */
.simple-shell:has(.topic-picker) .simple-nav{display:none}

.topic-progress{display:flex;flex-direction:column;gap:7px;width:min(480px,100%);min-height:52px;padding:10px;margin:0 auto 18px;border-radius:20px;background:#e8f2ff;color:#24416d;font:700 14px var(--joy-font);border:0}.topic-progress-track{height:9px;border-radius:9px;background:#dbe8f7;overflow:hidden}.topic-progress-track i{display:block;height:100%;background:#15965b;border-radius:9px}.progress-backdrop{position:fixed;inset:0;z-index:12000;background:#24416d70;display:flex;align-items:center;justify-content:center;padding:24px}.progress-dialog{width:min(640px,100%);max-height:90dvh;border-radius:32px;padding:20px;background:#f5faff;display:flex;flex-direction:column;gap:12px;text-align:center}.progress-dialog h2{font:900 28px var(--joy-font);color:#0867ed}.progress-stars{overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:10px}.progress-star{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:78px}.progress-star svg{width:40px;height:40px}.progress-star small{font:16px SanoDevanagari,sans-serif;color:#24416d}.progress-dialog .topic-exit{min-height:54px;font:800 20px var(--joy-font)}

/* Our Nepal: two clear choices; retain the approved inner-face jiggle/glow. */
.nepal-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:min(660px,100%);margin:18px auto}
.nepal-activity-tile .topic-entry-face{min-height:238px;padding:24px 14px;gap:16px}
.nepal-activity-picture{display:grid;place-items:center;width:100%;height:130px}
.nepal-activity-picture>svg{width:min(112px,100%);height:130px}
.nepal-activity-tile strong{font:900 clamp(20px,3.8vw,26px)/1.2 var(--joy-font);color:#174274}
.nepal-activity-tile:nth-child(2) strong{color:#71304f}
.nepal-money-picture{display:flex;align-items:center;justify-content:center;gap:6px;width:100%}
.nepal-money-picture .currency-card{width:82px;min-height:56px;border-width:3px;border-radius:12px;padding:7px;gap:0}
.nepal-money-picture .currency-coin{width:52px;height:52px;min-height:52px;border-radius:50%}
.nepal-money-picture .currency-value,.nepal-money-picture small{display:none}
.nepal-money-picture .currency-card strong{font-size:20px;color:#24416d}
.topic-landing-tile[data-id="body"] .topic-tile-picture{transform:translateY(-10px);margin-bottom:6px}
@media(max-width:359px){.nepal-activity-grid{gap:14px}.nepal-activity-tile .topic-entry-face{padding:20px 8px}.nepal-money-picture .currency-card{width:64px}.nepal-money-picture .currency-coin{width:42px;height:42px;min-height:42px}.nepal-money-picture .currency-card strong{font-size:16px}}

/* Compact colouring: blank space scrolls, only the flag captures painting. */
.flag-stencil{touch-action:pan-y;cursor:auto;flex-shrink:0}
.flag-stencil .flag-input{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;touch-action:none}
.flag-input path{pointer-events:all;cursor:none}
#app.flag-play-view .simple-nav{display:none}
#app.flag-play-view .simple-header{min-height:64px;padding-block:6px}
#app.flag-play-view .simple-content{padding-bottom:18px}
#app.flag-play-view .topic-progress{min-height:44px;padding:6px;margin-bottom:8px}
.flag-colouring{gap:8px;margin:0 auto}
.flag-colouring .brand-heading{margin:0;line-height:0}
.flag-colouring .brand-heading svg{height:56px}
.flag-colouring>p{margin:0}
.flag-palette button{min-height:64px;padding:5px;gap:4px}
.flag-palette i{width:28px;height:28px;border-radius:12px}
.flag-colouring .flag-hint{min-height:40px;font-size:16px;line-height:1.25}
.flag-colouring .topic-exit{min-height:56px;padding:8px 20px}
.flag-colouring .topic-exit svg{height:32px}
.topic-landing-tile[data-id="body"] strong{margin-top:12px}
.piano-key .game-tile-face>span{font-size:32px;line-height:1}
.piano-key .game-tile-face>strong{font-size:16px;line-height:1.2;max-width:100%;white-space:normal;overflow-wrap:normal}
@media(pointer:coarse){.flag-colouring>p:not(.flag-hint){display:none}}
@media(min-width:600px) and (max-height:500px){
 #app.flag-play-view .simple-header{display:none}
 .flag-colouring{display:grid;grid-template-columns:minmax(140px,1fr) minmax(240px,1fr);grid-template-areas:"canvas title" "canvas palette" "canvas hint" "canvas back";justify-items:center;align-items:center}
 .flag-colouring .flag-stencil{grid-area:canvas;max-width:100%}
 .flag-colouring .brand-heading{grid-area:title}
 .flag-colouring .brand-heading svg{height:36px}
 .flag-colouring .flag-palette{grid-area:palette}
 .flag-colouring .flag-hint{grid-area:hint}
 .flag-colouring .topic-exit{grid-area:back}
 .flag-colouring>p:not(.flag-hint){display:none}
}
.tune-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:16px}
.tune-controls button{min-height:52px;padding:10px 16px;border:3px solid white;border-radius:24px;background:#dff4e9;color:#24416d;font:800 16px var(--joy-font)}
.tune-controls button[data-tune=free]{background:#e8f2ff}
.tune-controls button[hidden]{display:none}
.tune-name{font:800 16px var(--joy-font);color:#24416d}
.tune-message{min-height:26px;font:700 16px/1.3 var(--joy-font)}
/* Selected answers give distinct feedback, without moving their hit boxes. */
:is(.answer-wrong,.answer-right){position:relative;isolation:isolate}
:is(.choice,.match-item,.reply-choice,.topic-tile,.quiz-answer).answer-wrong{box-shadow:0 0 22px 7px #d8447670!important;border-color:#d84476!important}
:is(.choice,.match-item,.reply-choice,.topic-tile,.quiz-answer).answer-right{box-shadow:0 0 22px 7px #15965b70!important;border-color:#15965b!important}
.answer-wrong :is(.game-tile-face,.topic-entry-face){animation:answer-no .5s ease-in-out!important;box-shadow:0 0 20px 5px #d8447670!important}
.answer-right :is(.game-tile-face,.topic-entry-face){animation:answer-yes .45s ease-in-out!important;box-shadow:0 0 20px 5px #15965b70!important}
@keyframes answer-no{0%,100%{transform:translateX(0) rotate(0)}15%,45%,75%{transform:translateX(-6px) rotate(-3deg)}30%,60%,90%{transform:translateX(6px) rotate(3deg)}}
@keyframes answer-yes{0%,100%{transform:scale(1) rotate(0)}40%{transform:scale(1.035) rotate(-1.5deg)}70%{transform:scale(1.015) rotate(1.5deg)}}
.piano-key.tune-cue{border-color:#15965b;background:#92e1bd;box-shadow:0 0 16px #15965b70}
@media(prefers-reduced-motion:reduce){.answer-wrong :is(.game-tile-face,.topic-entry-face),.answer-right :is(.game-tile-face,.topic-entry-face){animation:none!important}}
body[data-motion=reduce] :is(.answer-wrong,.answer-right) :is(.game-tile-face,.topic-entry-face){animation:none!important}
body[data-page-hidden=true] :is(.answer-wrong,.answer-right) :is(.game-tile-face,.topic-entry-face){animation-play-state:paused!important}
/* Welcome keeps the approved artwork; the invitation moves inside its hit box. */
.art-welcome .welcome-letter{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0}
.art-welcome .welcome-letter span{font-size:clamp(42px,11vw,92px);line-height:1.1}
.art-welcome .welcome-letter [lang=en]{font-family:var(--joy-font)}
.art-welcome .welcome-letter small{font:800 clamp(10px,2.4vw,16px)/1.3 var(--joy-font);pointer-events:none}
.art-welcome .welcome-play{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important}
.art-welcome .welcome-play-face{flex-direction:row;gap:16px;min-height:78px;border-radius:36px;padding:14px 20px;background:#0867ed;border:3px solid #55a4ff;box-shadow:0 7px 0 #125abe,0 0 22px 5px #62b9f54d;font:800 clamp(24px,5vw,30px) var(--joy-font)}
.art-welcome .welcome-play:active .welcome-play-face{filter:brightness(.96)}
.topic-landing-finish{width:100%;padding-top:12px;display:flex;justify-content:center}
.topic-landing{animation:topic-arrive .42s ease-out both}
@keyframes topic-arrive{from{opacity:.35;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
body[data-page-hidden=true] .topic-landing{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.topic-landing,.welcome-play-face{animation:none!important}}
body[data-motion=reduce] :is(.topic-landing,.welcome-play-face){animation:none!important}
/* The parent corner stays outside topic/grid scrolling on every screen. */
#app{position:relative}
.grownup-corner{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:45;width:48px;height:48px;border:3px solid #fff;border-radius:20px;background:#e6d7ff;box-shadow:0 3px 8px #9070bd29,0 0 20px 5px #bd9aeb50;display:grid;place-items:center;padding:4px}
.grownup-corner>svg{width:34px;height:34px;pointer-events:none}
.simple-header>.row{padding-right:58px}.topic-landing h1{max-width:calc(100% - 64px)}
.parent-mascot{width:160px;height:160px;margin:auto}.parent-mascot .sano-character{width:100%;height:100%}
.flag-stencil{width:min(480px,100%);background:transparent}
/* Answer feedback uses the same full-face fill, halo and shake as Coins & notes. */
:is(.choice,.match-item,.reply-choice,.topic-tile,.quiz-answer,.check-button).answer-wrong{background:#ffb5d5!important;border-color:#d84476!important;box-shadow:0 0 22px 7px #d8447670!important}
:is(.choice,.match-item,.reply-choice,.topic-tile,.quiz-answer,.check-button).answer-right{background:#92e1bd!important;border-color:#15965b!important;box-shadow:0 0 22px 7px #15965b70!important}
.answer-wrong :is(.game-tile-face,.topic-entry-face){background:#ffb5d5!important;border-radius:inherit}
.answer-right :is(.game-tile-face,.topic-entry-face){background:#92e1bd!important;border-radius:inherit}
.check-answers .check-button{padding:14px;border-radius:30px;min-height:120px}.check-answers .learning-picture{width:88px;height:88px}
.piano-key.tune-listening{border-color:#d84476;background:#ffb5d5;box-shadow:0 0 16px #d8447670}
.piano-key.tune-player{border-color:#15965b;background:#92e1bd;box-shadow:0 0 16px #15965b70}
.melody-tabs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px}.melody-tabs button{min-height:52px;padding:12px 16px;border:3px solid white;border-radius:24px;background:#e8f2ff;color:#174274;font:800 16px var(--joy-font)}.melody-tabs button[aria-pressed=true]{background:#92e1bd;border-color:#15965b}
.body-explorer{width:100%;display:flex;flex-direction:column;align-items:center;gap:14px;margin:12px auto 24px}.body-map{position:relative;width:min(260px,100%);aspect-ratio:171/256}.body-map>img{display:block;width:100%;height:100%;object-fit:contain}.body-part{position:absolute;transform:translate(-50%,-50%);width:52px;height:52px;min-width:52px;border:3px solid #62a9ee;border-radius:50%;background:#e8f2ffb0;color:#0867ed;font:800 28px var(--joy-font);box-shadow:0 0 10px #62a9ee70}.body-part.body-seen{border-color:#15965b;background:#92e1bdc0;color:#175a43}.body-part[aria-pressed=true]{box-shadow:0 0 18px 6px #15965b55}.body-part-label{font:800 22px/1.4 var(--joy-font);min-height:32px;color:#175a43}

/* Calm page pacing is separate from resource loading. Existing idle jiggles,
   tracing and celebration timelines keep their approved timing. */
.topic-landing{animation-duration:.52s}
.topic-switcher{transition:background-color .45s ease,border-color .45s ease,box-shadow .45s ease;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.topic-rail-item{transition:background-color .45s ease}
.practice-invitation{width:min(500px,100%);margin:8px auto 32px;padding:8px}
.topic-practice-tile.topic-landing-tile{width:100%;min-height:0;background:transparent}
.topic-practice-tile .topic-tile-face{min-height:150px;flex-direction:row;gap:20px;padding:22px;background:linear-gradient(135deg,#fff9,transparent 70%),#ffb5d5;box-shadow:0 6px 0 #e882b0,0 8px 24px #d8447630}
.topic-practice-tile .topic-tile-halo{inset:-20px -18px;border-radius:999px;background:radial-gradient(ellipse at 28% 50%,#ff80b6b3 0%,transparent 64%),radial-gradient(ellipse at 76% 50%,#91caff9e 0%,transparent 66%);mask-image:radial-gradient(ellipse,#000 40%,transparent 74%);-webkit-mask-image:radial-gradient(ellipse,#000 40%,transparent 74%);filter:blur(12px);animation:scribble-halo 5.8s ease-in-out infinite}
.topic-tile-label{display:flex;flex-direction:column;gap:8px;min-width:0}.topic-tile-label small{font:700 16px/1.4 var(--joy-font);color:var(--topic-ink)}
@keyframes scribble-halo{0%,100%{opacity:.4}50%{opacity:.75}}
.body-part{width:58px;height:58px;min-width:58px;border-color:#15965b;background:#92e1bdc0;box-shadow:0 0 18px 6px #15965b44}
.body-part[hidden],[data-body-next][hidden]{display:none!important}
.body-instruction{font:800 20px/1.4 var(--joy-font);text-align:center;margin:0}
.body-explorer .body-part-label{margin:0}.body-explorer [data-body-games]{min-height:52px}
.piano-turn{display:flex;flex-direction:column;gap:8px;width:100%;min-height:100px;padding:18px;margin-bottom:20px;border:3px solid #62a9ee;border-radius:30px;background:#e8f2ff;transition:background-color .45s,border-color .45s;box-shadow:0 6px 18px #62b9f51c}
.piano-turn strong{font:850 clamp(24px,5vw,30px)/1.15 var(--joy-font);color:#174274}.piano-turn span{font:700 17px/1.3 var(--joy-font)}
.piano-turn[data-turn=listen]{background:#ffb5d5;border-color:#d84476}.piano-turn[data-turn=copy]{background:#92e1bd;border-color:#15965b}.piano-turn[data-turn=copy] strong{color:#175a43}
.piano-key.tune-cue{border-color:#15965b;background:#92e1bd;box-shadow:0 0 20px 6px #15965b66}
.piano-key.tune-miss{border-color:#d84476;background:#ffb5d5;box-shadow:0 0 18px 5px #d8447666}
.scribble-page{width:min(600px,100%);margin:auto;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.scribble-page h2{font:850 clamp(24px,5vw,30px)/1.25 var(--joy-font);margin:0;color:#174274}.scribble-page p{margin:0}.scribble-page small{font:600 14px/1.4 var(--joy-font);color:#55779f}
.scribble-paper{display:block;width:100%;height:220px;border:3px solid #bce3ff;border-radius:24px;background:#fff;touch-action:none;user-select:none;overflow:hidden}
.scribble-paper[data-review=true]{touch-action:pan-y}.scribble-line{fill:none;stroke:#bce3ff;stroke-width:2}.scribble-ink path{fill:none;stroke:#349be7;stroke-width:8;stroke-linecap:round;stroke-linejoin:round}
.scribble-tools,.scribble-review-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}.scribble-review:empty{display:none}.scribble-review{width:100%;padding:16px;border-radius:26px;background:#e8f2ff}.scribble-review-buttons{margin-top:16px}.scribble-great{background:#15965b!important}.scribble-retry{background:#d84476!important}
.scribble-tools [hidden]{display:none!important}
.welcome-focus{position:relative}.welcome-artwork{filter:none;opacity:1}
.welcome-play-reveal{position:relative;width:min(360px,100%);margin:0 auto}
.welcome-sound-note{display:flex;align-items:center;justify-content:center;gap:6px;width:fit-content;max-width:100%;margin:14px auto 0;padding:5px 11px;border:1px solid #fff;border-radius:999px;background:#ffffff8c;color:#466184;font:600 12px/1.5 var(--joy-font);text-align:center}.welcome-sound-note>span:first-child{font:14px/1 system-ui}
.welcome-play-reveal[hidden]{display:none!important}.welcome-play-reveal .welcome-play{width:100%}
@keyframes welcome-play-reveal{from{opacity:0;transform:translate(-50%,-42%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
body[data-page-hidden=true] .topic-practice-tile .topic-tile-halo{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.topic-practice-tile .topic-tile-halo,.welcome-play-reveal{animation:none!important}.welcome-artwork,.topic-switcher,.topic-rail-item,.piano-turn{transition:none}}
.greeting-picture{display:block;position:relative;width:100%;height:100%;min-width:64px;min-height:64px}
.greeting-picture .greeting-namaste,.greeting-picture .greeting-wave,.greeting-picture .greeting-wave>svg{width:100%;height:100%;object-fit:contain;display:block}
.greeting-picture[data-greeting-language=ne] .greeting-wave,.greeting-picture[data-greeting-language=en] .greeting-namaste{display:none}
.greeting-picture[data-greeting-language=en] .greeting-wave{transform-origin:50% 88%;animation:greeting-wave 1.95s ease-in-out both}
.big-object .game-tile-face>.greeting-picture{width:185px;height:185px}.choice .game-tile-face>.greeting-picture{width:90px;height:90px}.match-item .game-tile-face>.greeting-picture{width:78px;height:78px}
@keyframes greeting-wave{0%,100%{transform:rotate(0deg)}33%{transform:rotate(9deg)}66%{transform:rotate(-9deg)}}
body[data-page-hidden=true] .greeting-wave{animation-play-state:paused}
/* Completion stays on the topic face, clear of its picture and label. */
.topic-completed{position:absolute;right:8px;top:8px;width:34px;height:34px;pointer-events:none;line-height:0}
.topic-corner{min-height:54px;min-width:132px;padding:12px 16px;background:#e8f2ff;color:#0867ed;font-size:18px;line-height:1.25;box-shadow:0 0 16px 4px #0867ed24,0 3px 0 #91caff}
.simple-header .row{flex-shrink:0}
.topic-rail-item{height:58px;min-height:58px;overflow:hidden}
.topic-rail-item>span{width:38px;height:38px;overflow:hidden;font-size:inherit;line-height:0}
.topic-rail-item img,.topic-rail-item svg{max-width:38px;max-height:38px;transform:none;margin:0}
@media(max-width:380px){.simple-header{gap:8px}.simple-header .brand{max-width:80px}.simple-header .brand svg{width:80px}.topic-corner{min-width:132px;font-size:16px;padding:12px 10px}.simple-header>.row{padding-right:54px}}
@media(prefers-reduced-motion:reduce){.greeting-wave{animation:none!important}}
/* Playback has a recognisable speaker, clear waves and a stable yellow target. */
.listen-button,.game-home .listen-button,.little .game-home .listen-button,.foundation-home .listen-button,.place-card .listen-button{width:60px;height:60px;min-width:60px;flex-shrink:0;border:2px solid #c98b15;background:#ffd55c!important;color:#174274!important;box-shadow:0 4px 0 #c98b15,0 0 12px #ffd55c50}
.listen-button svg{width:36px;height:36px;pointer-events:none}
.trace-listen{min-height:56px;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#ffd55c;color:#174274;border:2px solid #c98b15;box-shadow:0 3px 0 #c98b15}
.trace-listen svg{width:32px;height:32px;flex-shrink:0;pointer-events:none}

.welcome-intro-actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:20px}.welcome-intro-actions[hidden]{display:none!important}.welcome-intro-actions .intro-listen{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 20px;border-radius:24px;background:#ffd55c;color:#174274;font:800 18px var(--joy-font);border:3px solid white}.intro-listen>svg{width:30px;height:30px}.welcome-intro-actions .intro-skip{min-height:44px;font-size:16px;color:#174274}

/* Language choice keeps the established stable button targets and gentle jiggle. */
.language-choice{min-height:100svh;max-width:660px;margin:auto;padding:36px 24px;display:flex;flex-direction:column;justify-content:center;gap:36px}
.language-choice h1{width:100%;max-width:480px;margin:0 auto;color:#0867ed}.language-choice h1 svg{display:block;width:100%;max-height:165px}
.topic-landing h1{width:min(430px,100%);margin-top:56px;padding-top:8px}
.language-option .language-symbol{display:grid;place-items:center;width:100%;height:116px;font-size:clamp(44px,10vw,72px);line-height:1;color:#0867ed;filter:drop-shadow(0 0 12px #ffffffcf)}
.language-symbol svg{width:110px;height:116px;overflow:visible;filter:drop-shadow(0 0 10px #ff758477)}
.language-option.nepali-option{box-shadow:0 9px 0 #4c9fea22,0 0 30px 7px #65baff66}
.language-option.english-option{box-shadow:0 9px 0 #e882b022,0 0 30px 7px #ff99cb66}
@media(max-height:540px) and (orientation:landscape){.art-welcome .welcome-focus{display:flex;flex-direction:row;align-items:center;gap:28px}.art-welcome .welcome-artwork{width:52%}.art-welcome .welcome-play-reveal{width:42%}.art-welcome .welcome-language{display:none}.language-option .language-symbol{height:88px}.language-symbol svg{height:88px}}
.language-choice-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.language-option{padding:0;border-radius:36px;border:3px solid #fff;box-shadow:0 9px 0 #4c9fea22,0 0 28px #62b9f544;overflow:visible;min-height:210px;color:#174274}
.language-option .game-tile-face{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:24px 10px;min-height:210px;border-radius:32px;animation:tile-jiggle 3.8s ease-in-out infinite}
.nepali-option .game-tile-face{background:#91caff}.english-option .game-tile-face{background:#ffb5d5;animation-delay:-1.7s}.language-option .game-tile-face>.language-symbol{font-size:clamp(44px,10vw,72px);line-height:1;font-weight:900}.language-option strong{font-size:clamp(21px,5vw,29px)}
body[data-interface-language=ne] button,body[data-interface-language=ne] h1,body[data-interface-language=ne] h2,body[data-interface-language=ne] h3,body[data-interface-language=ne] p,body[data-interface-language=ne] strong,body[data-interface-language=ne] small{font-family:SanoDevanagari,sans-serif;letter-spacing:normal}
@media(max-height:500px) and (orientation:landscape){.language-choice{padding:18px 24px;gap:18px;min-height:100svh}.language-choice h1 svg{max-height:74px}.language-option,.language-option .game-tile-face{min-height:160px}.language-option .game-tile-face{gap:12px;padding:16px}}
@media(prefers-reduced-motion:reduce){.language-option .game-tile-face{animation:none}}
body[data-page-hidden=true] .language-option .game-tile-face{animation-play-state:paused}

/* Owner-requested phone vibrancy: restrained artwork saturation; readable text
   and success/retry colours keep their original values. No motion is removed. */
@media(max-width:600px),(max-height:600px) and (pointer:coarse){
.topic-tone-blue{--topic-fill:#88c6ff}.topic-tone-pink{--topic-fill:#ffafd2}.topic-tone-mint{--topic-fill:#8ce1ba}
.topic-tile-picture img,.topic-entry-face img,.nepal-activity-picture img,.body-explorer img,.welcome-mascot-rig img,.step-prompt-mascot{filter:saturate(1.08)}
}

/* Optional grown-up-opened, transient family round. */
.family-challenge{width:min(100%,640px);margin:0 auto;padding:24px 12px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;color:#243957}
.family-challenge h2{font-size:clamp(25px,5vw,34px);line-height:1.25;margin:0}.family-challenge p{margin:0;max-width:560px;line-height:1.6}
.family-challenge label{display:grid;gap:10px;width:min(100%,420px);font-weight:700}.family-challenge input{box-sizing:border-box;min-width:0;width:100%;font:inherit;font-size:20px;text-align:center;letter-spacing:.04em;border:2px solid #91caff;border-radius:18px;padding:16px;background:#fff;color:#243957}
.family-code{max-width:100%;overflow-wrap:anywhere;border-radius:24px;padding:18px;background:#e8f2ff;color:#0867ed;font-weight:900;font-size:clamp(19px,5vw,26px)}
.family-score{font-size:64px;color:#15965b;font-weight:900}.family-score small{font-size:24px}.family-challenge .choice-grid{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;width:100%}.family-challenge .choice-grid .pill{width:145px;min-height:145px;background:white;padding:16px;border:3px solid #91caff;color:#243957;border-radius:30px}.family-challenge .choice-grid svg,.family-challenge .choice-grid img{width:100%;height:96px;object-fit:contain}.family-challenge button:disabled{opacity:.7}

/* Parent-started family rounds reuse the app's buttons, faces and colours. */
.family-options{border:0;padding:0;margin:12px 0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;min-width:0}
.family-options legend{width:100%;font-size:1rem;font-weight:700;margin-bottom:10px}
.family-modes,.family-animals,.family-results{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;width:100%}
.family-challenge [aria-pressed="true"]{background:#d9f6ee;border-color:#168c76;box-shadow:0 5px 18px #52c7b538}
.family-animals .pill{display:flex;flex-direction:column;align-items:center;min-width:120px;gap:6px}
.family-animals img,.family-animals svg,.family-results img,.family-results svg{width:90px;height:90px;object-fit:contain}
.family-avatar img,.family-avatar svg{width:min(170px,45vw);height:170px;object-fit:contain}
.family-results>div{background:#eff9ff;border-radius:24px;padding:18px;max-width:calc(50% - 7px);min-width:130px;box-sizing:border-box}
.family-results p{color:#9b6c00;overflow-wrap:anywhere;max-width:150px}
.family-modes .pill{flex:1 1 200px}
.family-handoff{min-height:440px;justify-content:center}
@media (max-width:420px){.family-challenge .pill{max-width:100%;white-space:normal}.family-results>div{padding:12px;min-width:120px}}

/* Reserve a real row for both grown-up controls; they scroll with the document. */
.corner-tools{position:relative;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;width:100%;min-height:68px;padding:10px max(10px,env(safe-area-inset-right)) 10px 10px;box-sizing:border-box}
.corner-tools>.grownup-corner,.corner-tools>.guidance-badge{position:static;flex:0 0 48px}
.simple-header>.row{padding-right:0}.topic-landing h1{margin-top:0;max-width:100%}
/* Language status belongs beside the grown-up corner, in document coordinates. */
.guidance-badge{position:static;width:48px;height:48px;padding:6px;border:3px solid #fff;border-radius:20px;background:#d7f6ec;color:#135b62;font-size:18px;font-weight:800;box-shadow:0 4px 18px #41b89e50;display:grid;place-items:center}
.guidance-badge>svg{width:28px;height:32px;pointer-events:none}
.simple-header>.row{padding-right:118px}
.language-library{text-align:center;display:grid;gap:20px}
.guidance-choices{border:2px solid #dfe9f5;border-radius:24px;padding:16px;min-width:0}
.guidance-choices legend{font-weight:800}.guidance-choices .row{justify-content:center;flex-wrap:wrap}
.guidance-choices [aria-pressed="true"]{background:#e2efff;border-color:#0867ed;box-shadow:0 0 14px #70a9f640}
.language-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.language-course{background:transparent;border:0;border-radius:28px;padding:0;min-width:0;min-height:176px;text-align:center}
.language-course .game-tile-face{flex-direction:column;gap:8px;padding:15px 8px;border:3px solid #e8e1f0;border-radius:28px;background:#f3eff8;min-height:176px;color:#17324a}
.language-course.available .game-tile-face{background:#edf6ff;border-color:#88baff;box-shadow:0 0 20px #88baff55}
.course-symbol{height:70px;display:grid;place-items:center;font-size:clamp(20px,5vw,32px);font-weight:800;color:#0867ed}.course-symbol>svg{height:70px;width:66px}
.language-course.planned .course-symbol{filter:blur(2px);opacity:.55}.language-course strong{font-size:17px;overflow-wrap:anywhere}.language-course small{font-size:13px}
.language-notice{background:#edf6ff;border-radius:24px;padding:18px}.language-notice[hidden]{display:none}.language-notice .row{justify-content:center;flex-wrap:wrap}

.corner-tools>.grownup-corner,.corner-tools>.guidance-badge{position:static;flex:0 0 48px}
.simple-header>.row{padding-right:0}

/* Nepali release: stable hit targets, raised visual feedback and selective ink. */
.practice-tool{display:inline-flex;flex-direction:column;align-items:center;min-width:84px;min-height:82px;padding:8px;background:#edf6ff;color:#17324a;border:3px solid transparent}.practice-tool svg,.scribble-done svg{width:50px;height:50px}.practice-tool[aria-pressed=true]{background:#ffdc65;border-color:#0867ed}.scribble-done{display:inline-flex;align-items:center;gap:8px;background:#15965b;color:white;min-height:80px;min-width:130px}.scribble-paper[data-tool=eraser]{cursor:cell}.scribble-tools[hidden]{display:none}.scribble-review-buttons{position:relative;display:flex;justify-content:center;flex-wrap:wrap;gap:16px;padding:12px}.scribble-review-buttons button,.scribble-next,.step-prompt-next,.step-prompt-rest{min-height:64px;box-shadow:0 7px 0 #24487535,0 12px 22px #31507825;transition:filter .15s,scale .12s}.scribble-review-buttons button:active,.step-prompt-next:active,.step-prompt-rest:active,.scribble-done:active{scale:.96;filter:brightness(1.08)}.scribble-great,.scribble-next{background:#15965b;color:#fff}.scribble-retry{background:#d84476;color:#fff}.scribble-praise{text-align:center}.scribble-praise>span{font-size:55px;color:#efa535}.parent-practice-guide{background:#edf6ff;border:3px solid white;border-radius:28px;padding:20px;text-align:center}.guide-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-comparison>div{background:white;border-radius:20px;padding:12px}.guide-comparison svg{width:100%;max-height:200px}.guide-shape{display:block;width:180px;height:180px;margin:auto}.guide-comparison .learning-picture{max-width:100%;height:100px;object-fit:contain}.difficulty-choices{border:0;display:grid;gap:15px;max-width:600px;margin:20px auto}.difficulty-choices .pill{display:flex;flex-direction:column;gap:7px;min-height:92px;white-space:normal}.difficulty-choices .pill small{font-size:15px}.difficulty-choices [aria-pressed=true]{outline:4px solid #ffd669}.difficulty-start{padding:35px 20px;text-align:center}.sound-settings{display:flex;flex-wrap:wrap;gap:12px;border:0}.sound-settings [aria-pressed=true]{background:#15965b;color:white}.language-course.planned .course-symbol{filter:blur(2px);opacity:.55}.language-course small{color:#35465e;font-weight:750}.language-course .course-symbol svg{height:90px;width:76px}.language-course.available .course-symbol{height:95px}body[data-interface-language=ne] [data-en-support],body[data-interface-language=ne] .step-prompt-roman,body[data-interface-language=ne] .topic-entry-face>small{display:none}body[data-interface-language=ne]{--joy-font:SanoDevanagari,"Kohinoor Devanagari",sans-serif;font-family:var(--joy-font)}
@keyframes invitation-wobble{0%,70%,100%{rotate:0deg}76%{rotate:-2deg}84%{rotate:2deg}92%{rotate:-1deg}}
@media(prefers-reduced-motion:no-preference){.scribble-review-buttons button>.scribble-action-face,.scribble-next>.scribble-action-face,.step-prompt-next>span,.step-prompt-rest>span{animation:invitation-wobble 6s ease-in-out 2}.scribble-review-buttons button:nth-child(2)>.scribble-action-face{animation-delay:.3s}}
body[data-reduced-motion=true] *,body[data-reduced-motion=true] *::before,body[data-reduced-motion=true] *::after{animation:none!important;transition:none!important}

.scribble-action-face{display:inline-flex;align-items:center;gap:8px;justify-content:center}.practice-tool>.scribble-action-face{flex-direction:column}.scribble-praise img{display:block;max-width:160px;height:auto;margin:0 auto}
/* English screens are independent of the selected narration voice. */
.difficulty-start{width:min(900px,100%);margin:0 auto;padding:24px 22px 50px}
.difficulty-start>.brand-heading{width:min(480px,100%);margin:5px auto 22px}
.difficulty-start>.brand-heading svg{display:block;width:100%;max-height:150px}
.difficulty-choices{width:100%;max-width:840px;min-width:0;padding:0;margin:22px auto;border:0;display:block}
.challenge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:10px}
.challenge-tile{position:relative;isolation:isolate;min-width:0;padding:0;border:0;border-radius:30px;background:transparent;color:var(--tile-ink);font-family:var(--joy-font);cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent}
.challenge-halo{position:absolute;inset:3%;z-index:-1;border-radius:40px;background:var(--tile-fill);filter:blur(15px);opacity:.7;transform:scale(1.12)}
.challenge-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-height:248px;padding:22px 14px;border:3px solid #fff;border-bottom:8px solid var(--tile-edge);border-radius:30px;background:linear-gradient(145deg,#ffffff42,transparent 64%),var(--tile-fill);box-shadow:0 9px 20px #35577620;animation:sano-choice-float 6s ease-in-out var(--tile-delay,0s) infinite;pointer-events:none}
.challenge-copy{display:flex;flex-direction:column;gap:6px;align-items:center}.challenge-copy strong{font-size:clamp(24px,4vw,31px);font-weight:900;line-height:1.2}.challenge-copy>span{font-size:17px;font-weight:750}.challenge-copy small{font:850 15px/1.3 var(--joy-font);display:block;background:#ffffff85;padding:7px 15px;border-radius:16px;margin-top:10px;color:var(--tile-ink)}
.challenge-stars{font-size:30px;letter-spacing:2px;text-shadow:0 2px 0 #ffffffaa,0 4px 7px #24487525}.challenge-arrow{font-size:28px;line-height:1}
.challenge-tile[aria-pressed=true]{outline:0}.challenge-tile[aria-pressed=true] .challenge-face{border-top-color:#0867ed;border-left-color:#0867ed;border-right-color:#0867ed}.challenge-tile:focus-visible{outline:4px solid #0867ed;outline-offset:8px}.challenge-tile:active .challenge-face{animation-play-state:paused;filter:brightness(1.08);scale:.97}
.challenge-note{color:#35516c;font:750 16px/1.6 var(--joy-font);text-align:center;margin:24px auto 0;max-width:520px}
@keyframes sano-choice-float{0%,100%{transform:translateY(-2px) rotate(-.8deg)}50%{transform:translateY(3px) rotate(.8deg)}}
@media(max-width:620px){.challenge-grid{grid-template-columns:1fr;gap:20px;padding:8px}.challenge-face{flex-direction:row;min-height:126px;padding:18px;gap:13px}.challenge-stars{width:70px;font-size:24px;flex-shrink:0}.challenge-copy{flex:1;align-items:flex-start;text-align:left}.challenge-copy small{margin-top:5px}.difficulty-start{padding-top:14px}.difficulty-start>.brand-heading{max-width:340px}}
body[data-motion=reduce] .challenge-face{animation:none}
@media(prefers-reduced-motion:reduce){.challenge-face{animation:none}}
/* Music choices communicate their purpose before a child presses them. */
.melody-section{margin:28px -8px 0;padding:20px 12px;background:linear-gradient(145deg,#e0f3ff99,#ffe3ee88);border:3px solid white;border-radius:32px;box-shadow:0 9px 24px #62b9f51c}
.melody-section h3{font:900 28px/1.2 var(--joy-font);color:#0867ed;margin:0 0 8px}.melody-section>p{font:700 16px/1.4 var(--joy-font);color:#35516c;margin:8px 0}
.melody-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:12px;margin-top:20px}.melody-tabs button{padding:0;background:transparent;border:0;min-width:0;color:#174274}.melody-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;height:100%;padding:14px 8px;background:#91caff;border:3px solid white;border-bottom:6px solid #4c9fea;border-radius:25px;box-shadow:0 5px 16px #31507822;animation:sano-choice-float 5.8s ease-in-out var(--tile-delay,0s) infinite;pointer-events:none}.melody-tabs button:nth-child(3n+2) .melody-face{background:#ffb5d5;border-bottom-color:#e882b0;color:#71304f}.melody-tabs button:nth-child(3n) .melody-face{background:#92e1bd;border-bottom-color:#48b88c;color:#175a43}.melody-notes{font:900 30px/1 var(--joy-font);text-shadow:0 2px #ffffff99}.melody-face strong{font:850 17px/1.3 var(--joy-font);max-width:100%;overflow-wrap:anywhere;text-wrap:balance}.melody-face small{font:800 12px/1.2 var(--joy-font);padding:6px 8px;background:#ffffffaa;border-radius:12px}.melody-tabs button[aria-pressed=true]{background:transparent;border:0}.melody-tabs button[aria-pressed=true] .melody-face{outline:3px solid #0867ed;outline-offset:2px}.melody-tabs button:focus-visible{outline:4px solid #0867ed;outline-offset:7px;border-radius:25px}
.free-play-section{margin-top:30px;padding-top:22px;border-top:3px dashed #a8cdeb}.free-play-tile{display:block;width:100%;border:0;background:transparent;padding:0;border-radius:28px;color:#664919;font-family:var(--joy-font)}.free-play-tile>.game-tile-face{display:flex;flex-direction:row;justify-content:center;gap:20px;padding:18px;background:#ffdc65;border:3px solid white;border-bottom:7px solid #e6b942;border-radius:28px;min-height:105px}.free-play-tile>.game-tile-face>span:first-child{font-size:44px}.free-play-tile strong,.free-play-tile small{display:block;text-align:left}.free-play-tile strong{font-size:26px;font-weight:900}.free-play-tile small{font-size:15px;margin-top:7px;font-weight:750}.free-play-tile[aria-pressed=true] .game-tile-face{box-shadow:0 0 0 3px #bb8529}
@media(max-width:380px){.melody-tabs{gap:8px}.melody-face{padding:12px 5px;min-height:150px}.melody-face strong{font-size:15px}.melody-face small{font-size:11px;padding:5px}.melody-notes{font-size:25px}}
body[data-motion=reduce] .melody-face{animation:none}
@media(prefers-reduced-motion:reduce){.melody-face{animation:none}}
/* The same friendly tile language in the grown-up corner. */
.section-subtitle{text-align:center;font:750 17px/1.45 var(--joy-font);color:#35516c;margin:8px auto 24px;max-width:540px}
.grownup-settings>.brand-heading,.language-library>.brand-heading{margin:0 auto 14px;width:min(440px,100%)}.grownup-settings>.brand-heading svg,.language-library>.brand-heading svg{width:100%;max-height:145px}
.parent-intro{display:flex;align-items:center;gap:18px;margin:10px 0 24px;background:#e7f5ff;padding:14px;border-radius:28px}.parent-intro .parent-mascot{width:90px;height:90px;margin:0;object-fit:contain}.parent-intro p{font:750 17px/1.5 var(--joy-font);color:#35516c}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:8px 4px}.settings-tile{display:block;width:100%;padding:0;border:0;border-radius:28px;background:transparent;font-family:var(--joy-font);color:#174274;cursor:pointer}.settings-tile>.game-tile-face{display:flex;flex-direction:column;justify-content:center;gap:9px;min-height:122px;padding:17px 14px;border:3px solid white;border-bottom:7px solid #4c9fea;background:#91caff;border-radius:28px;box-shadow:0 7px 18px #3150781a;animation:sano-choice-float 6s ease-in-out infinite}.settings-tile strong{font:900 23px/1.2 var(--joy-font)}.settings-tile small{font:750 15px/1.4 var(--joy-font)}.settings-pink>.game-tile-face{background:#ffb5d5;border-bottom-color:#e882b0;color:#71304f}.settings-mint>.game-tile-face{background:#92e1bd;border-bottom-color:#48b88c;color:#175a43}.settings-yellow>.game-tile-face{background:#ffdc65;border-bottom-color:#e6b942;color:#664919}.settings-red>.game-tile-face{background:#d84476;border-bottom-color:#a72c54;color:white}.settings-grid>:nth-child(2n)>.game-tile-face{animation-delay:-2s}.settings-tile[aria-pressed=true]>.game-tile-face{outline:3px solid #0867ed;outline-offset:2px}.settings-tile:focus-visible,.back-tile:focus-visible{outline:4px solid #0867ed;outline-offset:7px}
.parent-challenge,.parent-voice,.parent-sound{border:0;padding:0;margin:34px 0}.parent-challenge h3,.parent-voice legend,.parent-sound legend{font:900 25px/1.25 var(--joy-font);color:#0867ed;text-align:center;width:100%;margin:0 0 16px}.parent-challenge .challenge-grid{grid-template-columns:1fr}.parent-challenge .challenge-face{flex-direction:row;min-height:122px}.parent-challenge .challenge-copy{align-items:flex-start;flex:1;text-align:left}.parent-challenge .challenge-stars{width:76px}.parent-details{margin:22px 0;padding:18px 20px;border:3px solid white;border-radius:24px;background:#e8f2ff;color:#24416d}.parent-details summary{font:850 20px/1.4 var(--joy-font);cursor:pointer}.parent-details p{font:600 16px/1.6 var(--joy-font)}.parent-details a{color:#075ac4;font-weight:800}.grownup-settings>.settings-red{margin:26px 0 6px}
.language-course .game-tile-face{background:#91caff;border:3px solid white;border-bottom:7px solid #4c9fea;box-shadow:0 7px 18px #31507822;gap:12px;animation:tile-jiggle 3.8s ease-in-out var(--tile-delay,0s) infinite}.language-course:nth-child(3n+2) .game-tile-face{background:#ffb5d5;border-bottom-color:#e882b0}.language-course:nth-child(3n) .game-tile-face{background:#92e1bd;border-bottom-color:#48b88c}.language-course.available .game-tile-face{background:#91caff;border-color:white;border-bottom-color:#4c9fea}.language-course .course-symbol,.language-course.available .course-symbol{height:86px;display:flex;align-items:center;justify-content:center;opacity:1;filter:none}.language-course .course-symbol svg{display:block;width:100px;height:76px;filter:drop-shadow(0 3px 2px #24487525)}.language-course.planned .course-symbol{filter:blur(2px);opacity:.55}.library-voice-status{margin:0;color:#35465e;font-size:15px}.language-course strong{font:850 20px/1.3 var(--joy-font)}.language-course small{background:#ffffffaa;border-radius:12px;padding:6px 10px;font-weight:800}.language-course-grid{gap:24px 20px;padding:8px 4px}.back-tile{width:100%;margin:28px auto 10px;border:0;padding:0;background:transparent;border-radius:28px}.back-tile>.game-tile-face{display:flex;justify-content:center;align-items:center;min-height:78px;padding:20px;background:#d84476;color:#fff;font:850 24px/1.3 var(--joy-font);border:3px solid white;border-bottom:7px solid #a72c54;border-radius:28px;animation:sano-choice-float 6s ease-in-out infinite}
.language-option .language-symbol svg{width:115px;height:100px}
@media(max-width:380px){.settings-grid{gap:16px 12px}.settings-tile strong{font-size:20px}.settings-tile small{font-size:14px}.parent-intro{gap:10px;padding:12px}.parent-intro .parent-mascot{width:68px;height:80px}.parent-intro p{font-size:15px}.language-course strong{font-size:17px}.parent-challenge .challenge-stars{width:64px}}
body[data-motion=reduce] .settings-tile>.game-tile-face,body[data-motion=reduce] .language-course .game-tile-face,body[data-motion=reduce] .back-tile>.game-tile-face{animation:none}
@media(prefers-reduced-motion:reduce){.settings-tile>.game-tile-face,.language-course .game-tile-face,.back-tile>.game-tile-face{animation:none}}

.difficulty-details{color:#174274;background:#f1f8ff;border:2px solid white;border-radius:22px;padding:16px;text-align:left;font-size:15px;line-height:1.5}.difficulty-details summary{font-weight:800;cursor:pointer}.difficulty-details li{margin:10px 0}.difficulty-details p{font-size:15px}
/* A slow invitation pulse, scoped to challenge choices and the ready Play button. */
@keyframes sano-heartbeat{0%,36%,100%{transform:scale(1)}12%{transform:scale(1.025)}20%{transform:scale(1)}28%{transform:scale(1.015)}}
@keyframes sano-heartglow{0%,36%,100%{opacity:.28}12%{opacity:.72}20%{opacity:.32}28%{opacity:.55}}
.challenge-pulse{position:relative;isolation:isolate;display:block;width:100%;animation:sano-heartbeat 6s ease-in-out infinite;pointer-events:none}
.challenge-pulse .challenge-halo{inset:1%;background:var(--tile-edge);opacity:.28;animation:sano-heartglow 6s ease-in-out infinite}
.challenge-tile:active .challenge-pulse{animation-play-state:paused}
.challenge-note{max-width:390px;font-size:16px;line-height:1.45;margin-top:23px}
.difficulty-details{margin-top:20px}.difficulty-details ul{list-style:none;padding:0;margin:12px 0}.difficulty-details li{margin:10px 0}
.welcome-play-pulse{display:block;position:relative;isolation:isolate;width:100%}
.welcome-play-pulse::before{content:"";position:absolute;inset:-3px;border-radius:40px;background:#3b9af2;filter:blur(13px);opacity:.28;z-index:-1;pointer-events:none}
.welcome-play:not(:disabled) .welcome-play-pulse{animation:sano-heartbeat 6s ease-in-out infinite}
.welcome-play:not(:disabled) .welcome-play-pulse::before{animation:sano-heartglow 6s ease-in-out infinite}
/* The colour, white edge and shadow belong to the moving face, not its hit box. */
.language-choice .language-option{background:transparent;border:0;box-shadow:none}
.language-choice .language-option .game-tile-face{width:100%;border:3px solid white;border-radius:36px;box-shadow:0 9px 0 #4c9fea22,0 0 30px 7px #65baff66}
.language-choice .english-option .game-tile-face{box-shadow:0 9px 0 #e882b022,0 0 30px 7px #ff99cb66}
body[data-page-hidden=true] :is(.challenge-pulse,.challenge-halo,.welcome-play-pulse),body[data-page-hidden=true] .welcome-play-pulse::before{animation-play-state:paused}
body[data-motion=reduce] :is(.challenge-pulse,.challenge-halo,.welcome-play-pulse),body[data-motion=reduce] .welcome-play-pulse::before{animation:none!important}
@media(prefers-reduced-motion:reduce){.challenge-pulse,.challenge-halo,.welcome-play-pulse,.welcome-play-pulse::before{animation:none!important}}

/* Challenge back control shares the challenge pulse and the red tile face. */
.difficulty-back{width:min(220px,100%);margin:24px auto 0;--tile-edge:#e7424b;--tile-radius:24px}
.difficulty-back .back-tile{margin:0 auto}
.difficulty-back .game-tile-face{display:flex;justify-content:center;align-items:center;gap:8px;min-height:56px;padding:10px 18px;background:#e7424b;color:#fff;font:850 20px/1.3 var(--joy-font);border:3px solid white;border-bottom:5px solid #b52431;border-radius:24px;animation:sano-choice-float 6s ease-in-out infinite}
.difficulty-back .back-tile:active .challenge-pulse{animation-play-state:paused}
body[data-motion=reduce] .difficulty-back .game-tile-face{animation:none}
@media(prefers-reduced-motion:reduce){.difficulty-back .game-tile-face{animation:none}}

/* Back and finish share stable targets and the established tile sway. */
.topic-landing-finish{gap:22px;align-items:center}
.topic-landing-finish .topic-exit{flex:1;width:auto;max-width:360px;min-width:0;padding:0;background:transparent;border:0;box-shadow:none}
.topic-landing-finish .topic-exit>.game-tile-face{display:flex;align-items:center;justify-content:center;min-height:84px;padding:15px 16px;border:3px solid white;border-bottom:7px solid #a72c54;border-radius:32px;background:#d84476;box-shadow:0 0 26px 5px #d8447655;animation:sano-choice-float 6s ease-in-out infinite}
.topic-landing-finish .topic-back>.game-tile-face{background:#0867ed;border-bottom-color:#084fae;box-shadow:0 0 26px 5px #62b9f566;animation-delay:-2s}
.topic-landing-finish .topic-exit:active{transform:none}.topic-landing-finish .topic-exit:active>.game-tile-face{scale:.96}
.topic-landing-finish .topic-exit:focus-visible{outline:4px solid #0867ed;outline-offset:7px}
body[data-motion=reduce] .topic-landing-finish .game-tile-face{animation:none}
@media(prefers-reduced-motion:reduce){.topic-landing-finish .game-tile-face{animation:none}}
@media(max-width:420px){.topic-landing-finish{gap:16px}.topic-landing-finish .topic-exit>.game-tile-face{padding:12px 10px}}

.topic-landing-finish .finish-label-wide{width:100%}.topic-landing-finish .finish-label-compact{display:none}
@media(max-width:520px){.topic-landing-finish .finish-label-wide{display:none}.topic-landing-finish .finish-label-compact{display:block;width:100%}.topic-landing-finish .finish-label-compact svg{height:27px}}

/* Shared soft halos fade inside their bounds, within the screen gutters. */
/* A rounded outline feathers out from the face at every aspect ratio. A centre
   ellipse fades underneath wide cards; a solid fill creates a visible block. */
.topic-tile:not(.topic-landing-tile){--topic-edge:#4c9fea}
.topic-tile:not(.topic-landing-tile):nth-child(3n+2){--topic-edge:#e882b0}
.topic-tile:not(.topic-landing-tile):nth-child(3n){--topic-edge:#48b88c}
.topic-tile-halo,.topic-practice-tile .topic-tile-halo{inset:0;filter:none;transform:none;border-radius:inherit;background:transparent;box-shadow:0 0 6px 2px var(--answer-edge,var(--topic-edge,#62b9f5)),0 0 14px 4px color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 60%,transparent);mask-image:none;-webkit-mask-image:none}
.challenge-halo,.challenge-pulse .challenge-halo{inset:0;filter:none;transform:none;border-radius:var(--tile-radius,30px);background:transparent;box-shadow:0 0 6px 2px var(--tile-edge,#62b9f5),0 0 14px 4px color-mix(in srgb,var(--tile-edge,#62b9f5) 60%,transparent)}
.welcome-play-pulse::before{inset:-12px;filter:none;background:radial-gradient(ellipse,#3b9af2 30%,transparent 70%)}
@keyframes tile-edge-glow{0%,100%{opacity:.24}50%{opacity:.58}}
@keyframes scribble-halo{0%,100%{opacity:.28}50%{opacity:.6}}
.simple-content{overflow-x:visible}.topic-landing-grid{padding-top:16px;padding-bottom:16px}
.free-play-section{width:min(360px,100%);margin:22px auto 0;padding-top:16px}.free-play-tile>.game-tile-face{min-height:80px;padding:14px;gap:14px}.free-play-tile>.game-tile-face>span:first-child{font-size:32px}.free-play-tile strong{font-size:22px}.free-play-tile small{font-size:14px;margin-top:5px}

/* A persistent red scroll marker is consistent across browser and native rails. */
.topic-rail-scroll{flex:1;min-width:0}.topic-rail-scroll .topic-rail-track{scrollbar-width:none}.topic-rail-track::-webkit-scrollbar{display:none}
.topic-rail-position{position:relative;height:2px;margin:6px 6px 2px;border-radius:999px;background:#f7d9df;overflow:visible}.topic-rail-position>span{position:absolute;inset-block:0;left:0;width:12%;border-radius:999px;background:#ed4b6199;box-shadow:0 0 4px 1px #ff738855,0 0 9px 2px #ef435a25}
.topic-rail-item[aria-current=true]{border-color:#ff2d2d;box-shadow:0 0 0 2px #ffffff,0 3px 0 #ff2d2d}

/* Answer feedback: clear red/green, with movement confined to the tile face. */
:is(.answer-wrong,.tune-miss){--answer-edge:#f02e3e;--answer-fill:#ffd0ce}
:is(.answer-right,.tune-player){--answer-edge:#08a85c;--answer-fill:#9cf2bb}
:is(.choice,.match-item,.reply-choice,.topic-tile,.quiz-answer,.check-button,.answer-check,.piano-key):is(.answer-wrong,.answer-right,.tune-miss,.tune-player){background:var(--answer-fill)!important;border-color:var(--answer-edge)!important;box-shadow:0 0 18px 5px color-mix(in srgb,var(--answer-edge) 50%,transparent)!important}
:is(.answer-wrong,.answer-right,.tune-miss,.tune-player) :is(.game-tile-face,.topic-entry-face){background:var(--answer-fill)!important;box-shadow:0 0 18px 5px color-mix(in srgb,var(--answer-edge) 50%,transparent)!important;animation:answer-shake .63s ease-in-out!important;border-radius:inherit}
@keyframes answer-shake{0%,100%{transform:translateX(0) rotate(0)}14%,42%{transform:translateX(-11px) rotate(-3deg)}28%,56%{transform:translateX(11px) rotate(3deg)}70%{transform:translateX(-7px) rotate(-2deg)}84%{transform:translateX(7px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){:is(.answer-wrong,.answer-right,.tune-miss,.tune-player) :is(.game-tile-face,.topic-entry-face){animation:none!important}}
body[data-motion=reduce] :is(.answer-wrong,.answer-right,.tune-miss,.tune-player) :is(.game-tile-face,.topic-entry-face){animation:none!important}
body[data-page-hidden=true] :is(.answer-wrong,.answer-right,.tune-miss,.tune-player) :is(.game-tile-face,.topic-entry-face){animation-play-state:paused!important}

/* The grown-up gate shares Sano's lettering and palette without changing access. */
.grownup-gate{display:flex;flex-direction:column;align-items:center;gap:16px;width:min(440px,100%);margin:0 auto;text-align:center}
.grownup-gate .gate-heading{display:flex;flex-direction:column;gap:5px;width:min(260px,100%);margin:0;line-height:0}
.gate-heading svg{display:block;width:100%;height:auto;max-height:44px;overflow:visible}
.grownup-gate .gate-intro{max-width:300px;margin:0;font:600 16px/1.45 var(--joy-font);color:#526787}
.grownup-gate form{width:100%;margin:0}
.gate-question-card{display:flex;flex-direction:column;gap:12px;padding:18px;border:3px solid white;border-radius:30px;background:#edf6ff;box-shadow:0 5px 16px #9cbce02e}
.gate-caption{display:block;color:#526787;font:800 17px/1.4 var(--joy-font);margin-bottom:12px}
.gate-equation{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px}
.gate-number{display:grid;place-items:center;min-width:66px;min-height:64px;padding:10px;border:2px solid white;border-radius:21px;background:#d5eaff;color:#24416d;font:900 30px/1.2 var(--joy-font)}
.gate-number-slot:last-child .gate-number{background:#d2f0e1}.gate-times{color:#657a96;font:800 28px/1.2 var(--joy-font)}
.gate-question-card label{color:#526787;font:800 15px/1.4 var(--joy-font);margin-top:2px}
.gate-question-card #gate-answer{width:100%;min-width:0;min-height:62px;padding:10px 14px;border:3px solid #91caff;border-radius:22px;background:white;color:#24416d;text-align:center;font:800 28px/1.3 var(--joy-font);outline-offset:4px}
.gate-question-card #gate-answer::placeholder{color:#8295b0;opacity:1}.gate-question-card #gate-answer:focus-visible{outline:3px solid #0867ed}
.gate-continue{display:block;width:100%;margin:18px 0 0;padding:0;border:0;border-radius:25px;background:transparent;cursor:pointer}
.gate-continue>.game-tile-face{display:grid;place-items:center;width:100%;min-height:60px;margin:0;padding:12px 20px;border:3px solid white;border-bottom:6px solid #0d7544;border-radius:25px;background:#15965b;color:white;font:850 22px/1.3 var(--joy-font);box-shadow:0 4px 14px #48b88c38;pointer-events:none}
.gate-continue:focus-visible{outline:3px solid #0867ed;outline-offset:4px}.gate-continue:active{filter:brightness(1.07)}
.gate-message{min-height:24px;margin:12px 0 0;color:#a72c54;font:600 15px/1.45 var(--joy-font)}.grownup-gate>.gate-note{max-width:340px;margin:0;font-size:12px;line-height:1.5;color:#657a96}

/* Both corner destinations share this gate. Moving faces leave form hit areas steady. */
.gate-number-slot{display:block;width:76px;min-height:64px;flex:none}
.gate-number.game-tile-face{width:100%;box-sizing:border-box;animation:tile-jiggle 3.8s ease-in-out infinite}
.gate-number-slot:last-child .game-tile-face{animation-delay:-1.9s}
.gate-continue>.game-tile-face{box-sizing:border-box;animation:tile-jiggle 3.8s ease-in-out -1s infinite}
body[data-motion=reduce] .grownup-gate .game-tile-face{animation:none}
@media(prefers-reduced-motion:reduce){.grownup-gate .game-tile-face{animation:none}}
body[data-page-hidden=true] .grownup-gate .game-tile-face{animation-play-state:paused}
.companion-choice{width:min(100%,680px);margin:0 auto;padding:26px 24px 42px;display:grid;gap:24px;text-align:center}
.companion-choice h1{margin:0}.companion-choice h1 svg{width:100%;max-height:96px}
.companion-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:10px 0}
.companion-option{padding:0;background:transparent;border:0;color:#243957;border-radius:32px;isolation:isolate;cursor:pointer}
.companion-face{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;background:var(--companion-fill);border:3px solid white;border-radius:32px;padding:16px 10px;animation:tile-jiggle 3.8s ease-in-out infinite}
.companion-face::before{content:'';position:absolute;inset:-26px;z-index:-1;border-radius:48%;pointer-events:none;background:radial-gradient(ellipse,var(--companion-halo) 0%,transparent 72%);opacity:.38;filter:blur(10px)}
.companion-option:nth-child(2) .companion-face{animation-delay:-1.7s}.companion-face img{display:block;width:100%;max-width:230px;height:auto;aspect-ratio:1;object-fit:contain}
.companion-face strong{font-size:clamp(20px,4.8vw,27px)}.companion-face small,.companion-note{font-size:15px;line-height:1.5}.companion-note{margin:0;color:#657a96}
.companion-option:focus-visible{outline:4px solid #0867ed;outline-offset:8px}.companion-option[aria-pressed=true] .companion-face{border-color:#0867ed}
.sano-girl-outfit{display:none}body[data-companion=girl] .sano-boy-outfit,body[data-companion=girl] .bhadgaun-topi{display:none}body[data-companion=girl] .sano-girl-outfit{display:inline}body[data-companion=girl] .sano-sleeve{stroke:#db334b}
body[data-page-hidden=true] .companion-face{animation-play-state:paused}body[data-reduced-motion=true] .companion-face,body[data-motion=reduce] .companion-face{animation:none!important}
@media(prefers-reduced-motion:reduce){.companion-face{animation:none!important}}
@media(max-width:360px){.companion-choice{padding-inline:16px}.companion-choices{gap:16px}.companion-face{padding-inline:7px}}
@media(max-height:500px) and (orientation:landscape){.companion-choice{max-width:620px;padding-top:12px;gap:16px}.companion-choice h1 svg{max-height:64px}.companion-face img{max-width:140px}}
/* Selection feedback stays inside the tile; the hit target never jumps. */
.language-choice .language-symbol{overflow:hidden;padding-block:16px;box-sizing:content-box}
.language-choice .language-option[aria-pressed=true] .game-tile-face{border-color:#0867ed}
.companion-choice{gap:16px}.companion-face{gap:8px;animation:none}
.companion-art-window{display:block;width:100%;max-width:230px;aspect-ratio:1;overflow:hidden;padding:12px 5px 3px}
.companion-greeting-art{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 86%}
.companion-wave-arm{transform-box:view-box}
.companion-option.is-greeting .companion-greeting-art{animation:companion-greeting-bounce .72s ease-in-out infinite}
.companion-option.is-greeting .companion-wave-arm{animation:companion-greeting-wave .36s ease-in-out infinite}
.companion-hello{min-height:24px;font:800 21px/1.15 var(--joy-font);color:#174274}
.companion-next-slot{min-height:66px;display:grid;place-items:center}.companion-next{width:min(310px,100%);min-height:66px;font-size:24px}
.companion-next[hidden]{display:block!important;visibility:hidden;pointer-events:none}
@keyframes companion-greeting-bounce{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-10px) rotate(-2deg)}70%{transform:translateY(-2px) rotate(2deg)}}
@keyframes companion-greeting-wave{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(10deg)}}
body[data-page-hidden=true] :is(.companion-greeting-art,.companion-wave-arm){animation-play-state:paused!important}
body[data-reduced-motion=true] :is(.companion-greeting-art,.companion-wave-arm),body[data-motion=reduce] :is(.companion-greeting-art,.companion-wave-arm){animation:none!important}
@media(prefers-reduced-motion:reduce){.companion-greeting-art,.companion-wave-arm{animation:none!important}}
@media(max-height:740px) and (orientation:portrait){.companion-choice{padding-top:16px;gap:12px}.companion-art-window{max-width:175px}.companion-choices{padding-block:2px}.companion-face{padding-block:10px}}
@media(max-height:500px) and (orientation:landscape){.companion-art-window{max-width:120px}.companion-choice{gap:10px}.companion-choices{padding:0}}

/* Owner-authorised mountain playtest · 10 October 2026 */
.adventure-play{max-width:1100px;margin:auto;padding:24px clamp(16px,4vw,48px);padding-bottom:max(24px,env(safe-area-inset-bottom));color:#253a58}
.adventure-play header{text-align:center;margin:20px 0 32px}.adventure-play h1{font-size:clamp(32px,6vw,54px);letter-spacing:normal;color:#0666ef}.adventure-play h2{letter-spacing:normal;font-size:clamp(26px,5vw,38px)}
.prototype-label,.prototype-note{font-size:14px;text-align:center;color:#576b83}.prototype-note{margin-top:30px}.adventure-play form{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;align-items:end}.adventure-play label{display:grid;gap:8px}.adventure-play select{min-height:50px;border:2px solid #c9dbf0;border-radius:18px;padding:12px;color:#174274;background:white;font:inherit}
.adventure-layout{display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);gap:30px;align-items:start}.mountain-map{background:linear-gradient(#d9efff,#f7fbff 45%,#c8eccc);border:3px solid white;border-radius:36px;overflow:hidden;box-shadow:0 8px 30px #749eb725}.mountain-map svg{display:block;width:100%;max-height:670px}.mountain-map summary{padding:16px;text-align:center;font-weight:800;cursor:pointer}
.adventure-board{background:#ffffffad;border:3px solid white;border-radius:34px;padding:clamp(18px,4vw,34px);display:grid;gap:18px;min-width:0;text-align:center}.adventure-board p{margin:0}.adventure-cub{width:108px;height:108px;object-fit:contain;margin:auto}.adventure-story{max-width:42ch;margin:auto;line-height:1.6}.adventure-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:12px}.adventure-choice{border:0;background:transparent;padding:0;min-width:0;cursor:pointer;border-radius:28px}.adventure-choice:disabled{cursor:default}.adventure-choice .game-tile-face{display:grid;place-items:center;gap:8px;min-height:140px;padding:16px;background:#91caff;border:3px solid white;border-bottom:7px solid #4c9fea;border-radius:28px;animation:tile-jiggle 3.8s ease-in-out infinite;box-shadow:0 10px 26px -8px #91caff80}.adventure-choice.wrong .game-tile-face{background:#ffa8b9;box-shadow:0 0 28px #fa516f}.adventure-choice.right .game-tile-face{background:#92e1bd;box-shadow:0 0 28px #4ec98e}.adventure-choice svg,.adventure-choice img,.adventure-hint svg,.adventure-hint img{width:86px;height:86px;object-fit:contain}.adventure-actions{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}.adventure-actions button{min-height:54px}.adventure-count{font-size:28px;letter-spacing:8px;line-height:1.8;color:#0666ef}.adventure-status{min-height:24px;font-weight:800}.adventure-progress{font-weight:900;color:#8e650c}.map-star{fill:#ffcc39;stroke:#aa7315;stroke-width:1.5}.map-stop{fill:#fff;stroke:#aac4dc;stroke-width:3}.map-current{fill:#91caff;stroke:#0666ef;stroke-width:4}
.adventure-play[data-paused="true"] *{animation-play-state:paused!important}
@media(max-width:640px){.adventure-layout{grid-template-columns:1fr}.mountain-map svg{max-height:55vh}.adventure-board{padding:20px 12px}.adventure-options{gap:14px}.adventure-choice .game-tile-face{padding:10px;min-height:132px}}
@media(prefers-reduced-motion:reduce){.adventure-play *{animation:none!important;transition:none!important}}

.companion-picker{max-width:680px;margin:auto}.companion-picker .adventure-choice .game-tile-face{background:#e1d6ff}.companion-picker .companion-art{width:100%;height:clamp(140px,28vw,240px);object-fit:contain}

.adventure-play .brand-heading svg{width:100%;max-height:90px}.adventure-number{font-size:52px}.adventure-rest{background:#d84476;color:white}.adventure-play .adventure-cub{width:140px;height:140px}
[data-paused=true] .adventure-play *{animation-play-state:paused!important}body[data-motion=reduce] .adventure-play *,body[data-reduced-motion=true] .adventure-play *{animation:none!important;transition:none!important}

/* Two direct choices share the same pill geometry as the voice flags. */
.screen-text-choice{display:flex;align-items:stretch;gap:2px;padding:3px;flex:0 0 auto;border:2px solid #fff;border-radius:999px;background:#ffe1e3;box-shadow:0 0 10px #71c59b20;font:750 12px/1.5 system-ui}
.screen-text-choice button{display:grid;place-items:center;min-width:48px;min-height:44px;padding:4px 8px;border:0;border-radius:999px;background:#ffe1e3;color:#a42e40;box-shadow:none;touch-action:manipulation}
.screen-text-choice button[aria-pressed=true]{background:#a0e6bc;color:#145c37;box-shadow:inset 0 1px 2px #ffffff9c,0 0 6px #71c59b30}
.screen-text-choice .screen-text-label{font-size:15px;line-height:1.55;font-weight:800}
.screen-text-choice .screen-text-label[lang=ne]{font-family:SanoDevanagariBold,sans-serif;font-size:17px;font-weight:800}
body[data-interface-language=ne]{font-family:SanoDevanagari,sans-serif;line-height:1.55}
body[data-interface-language=ne] :is(button,label,summary,p,small){font-family:SanoDevanagari,sans-serif;line-height:1.55}
body[data-interface-language=ne] :is(small,.small,.muted,.topic-entry-face small,.topic-progress){font-size:16px;line-height:1.55}
body[data-interface-language=ne] :is(.topic-tile-label,.companion-label,.language-label){font-family:SanoDevanagariBold,sans-serif;font-weight:800;font-size:24px;line-height:1.5}
body[data-interface-language=ne] :is(.topic-tile small,.sano-tip,.step-prompt-instruction,.difficulty-description){font-size:18px;line-height:1.55}
.screen-text-label{pointer-events:none;white-space:nowrap}.screen-text-label[lang=ne]{font:650 14px/1.5 SanoDevanagari,sans-serif}
.screen-text-choice button:focus-visible{outline:3px solid #0867ed;outline-offset:1px}
body[data-interface-language=ne] .topic-tile-label strong{line-height:1.6}
/* The coin is quiet until opened; rewards and future packs share one small space. */
.coin-corner{width:44px;height:44px;flex:0 0 44px;padding:6px;border:2px solid white;border-radius:50%;background:#fff3cf;box-shadow:0 2px 7px #c98b151a}.coin-corner svg{display:block;width:100%;height:100%}
.coin-backdrop{position:fixed;inset:0;z-index:350;display:grid;place-items:center;background:#24416d55;backdrop-filter:blur(8px);padding:16px}
.coin-dialog{background:#f5faff;border:3px solid white;border-radius:32px;padding:24px;width:min(540px,100%);max-height:90dvh;overflow:auto;box-shadow:0 20px 60px #24416d33;box-sizing:border-box;text-align:center}
.coin-area,.spoken-check{display:flex;flex-direction:column;align-items:center;gap:14px}.coin-area p,.coin-area h2,.coin-area h3,.spoken-check p,.spoken-check h2{margin:0}.coin-heading{display:flex;align-items:center;gap:10px}.coin-heading svg{width:42px;height:42px}.coin-area .coin-balance{font-size:44px;font-weight:900;color:#936615}.coin-reward{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:12px;padding:20px;border-radius:26px;background:#fff;border:2px solid #e1eafa;width:100%;box-sizing:border-box;text-align:left}.coin-reward button,.coin-reward small{grid-column:1/-1;text-align:center}.rainbow-pencil{font-size:48px;color:#d84476}.coin-future{width:100%;background:#e8f2ff;border-radius:24px;padding:16px;box-sizing:border-box}.coin-future summary{cursor:pointer;min-height:44px;align-content:center;font-weight:800}.coin-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.coin-language{display:grid;justify-items:center;gap:6px;background:#ffffff99;padding:12px;border-radius:18px}.coin-language svg{width:46px;height:40px;opacity:.65}.coin-language small{font-size:12px}.coin-area>button,.spoken-check>button{min-height:48px;width:100%}.coin-gate{display:grid;gap:16px}.coin-gate input{max-width:150px;padding:12px;border-radius:12px;border:2px solid #a5c4ef;font-size:24px}.coin-dialog button:focus-visible,.coin-dialog summary:focus-visible{outline:3px solid #0867ed;outline-offset:3px}
.spoken-picture{width:110px;height:110px;display:grid;place-items:center}.spoken-picture img,.spoken-picture svg{max-width:100%;max-height:100%;object-fit:contain}.spoken-picture .letter-art{font-size:64px}.spoken-sentence{font:700 clamp(24px,5vw,34px)/1.8 SanoDevanagari,sans-serif}.spoken-gap{color:#0867ed;border-bottom:3px dashed #91caff;padding:0 7px}.spoken-status{min-height:48px;font-weight:700}.spoken-hint{display:grid;gap:5px;border-radius:20px;background:#e8f2ff;padding:12px 24px}.spoken-hint strong{font-size:28px}.speech-permission{border-radius:22px;background:#fff3cf;padding:18px}.speech-permission p{font-size:14px;line-height:1.6;margin-bottom:14px}.speech-microphone{background:#0867ed;color:white}
@media(max-width:380px){.corner-tools{gap:8px}.coin-dialog{padding:18px}}
.speech-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.speech-topic-grid button{display:flex;flex-direction:column;gap:6px;padding:16px;white-space:normal;min-height:94px;background:#e8f2ff;color:#174274}.speech-topic-grid small{font-size:12px}
/* Current journey: quiet reminder, clear selected language, buoyant companion cards. */
.welcome-sound-note{padding:0;border:0;border-radius:0;background:none;font-size:12px;color:#61758e;box-shadow:none}
.companion-choice{max-width:620px}.companion-option{position:relative}.companion-face{animation:tile-jiggle 4.8s ease-in-out infinite;box-shadow:0 7px 0 color-mix(in srgb,var(--companion-halo) 65%,white),0 12px 20px #35578115}.companion-face::before{display:none}.companion-halo{position:absolute;inset:12px -5px;border-radius:36px;box-shadow:0 0 25px 8px color-mix(in srgb,var(--companion-halo) 45%,transparent);animation:talk-glow 4.8s ease-in-out infinite;pointer-events:none}.companion-option[aria-pressed=true] .companion-face{border-color:#15965b}.companion-choice .difficulty-back .back-tile{width:min(180px,100%);min-height:48px;padding:8px 16px;font-size:18px}.companion-art-window{max-width:205px}
.practice-invitation{display:grid;gap:24px;margin-bottom:28px}.topic-talk-tile.topic-landing-tile{width:100%;min-height:0}.topic-talk-tile .topic-tile-face{min-height:150px;flex-direction:row;gap:20px;padding:22px;background:linear-gradient(135deg,#fff9,transparent 70%),#a1e8c4;box-shadow:0 6px 0 #48b88c,0 8px 24px #15965b20}.topic-talk-tile .topic-tile-picture{flex:0 0 88px}.topic-talk-tile .topic-tile-picture svg{width:88px;height:88px}.topic-talk-tile small{font-size:15px;line-height:1.4;font-weight:600}
/* Learning and coin sheets share the same soft game surfaces. */
.coin-dialog{width:min(650px,100%);padding:28px;background:radial-gradient(ellipse at 8% 0%,#fff1f8 0,transparent 55%),radial-gradient(ellipse at 100% 100%,#e2fff0 0,transparent 60%),#f4faff;scrollbar-gutter:stable;isolation:isolate}
.coin-dialog h2{font-size:clamp(25px,5vw,34px);line-height:1.3;color:#174274;margin:0}.coin-dialog p{line-height:1.55}.coin-dialog button{font-family:var(--joy-font)}
.talk-menu,.spoken-check{width:100%;display:flex;flex-direction:column;align-items:center;gap:16px}.talk-menu>p{margin:0;max-width:390px}.talk-heading-art{width:76px;height:76px}.talk-heading-art svg{width:100%;height:100%}.speech-trial-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#526787}.speech-trial-dots{display:flex;gap:5px}.speech-trial-dots i{width:8px;height:8px;border:1.5px solid #48b88c;border-radius:50%;background:white}.speech-trial-dots i.started{background:#48b88c}
.speech-topic-grid{width:100%;gap:22px 18px;margin:8px 0}.speech-topic-grid .speech-topic-tile{padding:0;background:transparent;min-width:0;border:0;border-radius:30px;display:block}.speech-topic-grid .topic-tile-face{min-height:170px;padding:18px 10px;gap:8px;border-radius:30px}.speech-topic-tile strong{font-size:clamp(17px,4.5vw,22px);line-height:1.3}.speech-topic-tile small{font-size:12px;background:#ffffff80;border-radius:999px;padding:4px 10px}.speech-topic-picture{height:74px;width:88px;display:grid;place-items:center}.speech-topic-picture img,.speech-topic-picture svg{max-width:100%;max-height:74px;width:auto;height:74px;object-fit:contain}.speech-topic-picture .letter-art{font-size:54px}.topic-tone-yellow{--topic-fill:#ffe29a;--topic-ink:#735214;--topic-edge:#e2b453}.topic-tone-lilac{--topic-fill:#dbcbff;--topic-ink:#55427b;--topic-edge:#ac8ee1}.topic-tone-peach{--topic-fill:#ffd0b3;--topic-ink:#805131;--topic-edge:#e7a378}.speech-footnote{font-size:13px;line-height:1.55;color:#60728b;margin:0;text-align:center}
.free-talk-tile{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;border:2px solid white;border-bottom:5px solid #b4a0d9;border-radius:28px;background:#eee4ff;color:#55427b;text-align:left;box-shadow:0 7px 20px #a18dca20}.free-talk-art{flex:0 0 62px}.free-talk-art svg{width:62px;height:62px}.free-talk-tile>span:nth-child(2){flex:1;min-width:0}.free-talk-tile strong,.free-talk-tile small{display:block;line-height:1.5}.free-talk-tile strong{font-size:21px}.free-talk-tile small{font-size:12px}.free-talk-preview{width:100%;padding:24px;box-sizing:border-box;border:2px solid white;border-radius:28px;background:#eee4ff}.free-talk-preview p{font-size:15px}
.talk-primary{display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;width:100%;padding:14px 20px;border:3px solid white;border-bottom:6px solid #107748;border-radius:27px;background:#15965b;color:white;font-size:19px;font-weight:800;line-height:1.4;box-shadow:0 7px 17px #15965b23;white-space:normal}.talk-primary:disabled{opacity:.5;box-shadow:none;cursor:default}.talk-back{margin:12px 0 0;width:100%;min-height:48px;font-size:17px}.talk-language{font-size:12px;font-weight:800;background:#e3f7ec;border:1px solid white;padding:4px 13px;border-radius:999px;color:#175a43}.spoken-prompt-card{width:100%;box-sizing:border-box;border:3px solid white;border-radius:32px;padding:20px 14px;background:linear-gradient(145deg,#e2f2ff,#fff4fa);box-shadow:0 6px 0 #b5d5ef66;display:flex;flex-direction:column;align-items:center;gap:12px}.spoken-picture{width:110px;height:100px}.spoken-sentence{width:100%;text-align:center;overflow-wrap:anywhere;line-height:1.65}.spoken-sentence[lang=en]{font-family:var(--joy-font)}.spoken-status{min-height:0;font-size:16px;color:#526787}.spoken-status.is-correct{color:#147440}.spoken-hint{background:#fff1f7;border:2px solid white}.spoken-hint strong[lang=en]{font-family:var(--joy-font)}.talk-listen{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:7px 18px;min-height:66px;background:#ffe0ee;border:3px solid white;border-bottom:5px solid #e882b0;border-radius:27px;color:#71304f;font-size:21px;font-weight:800;box-shadow:0 5px 15px #d8447618}.talk-listen>span:first-child{height:48px;width:48px}.talk-listen svg{height:48px;width:48px}.speech-microphone{min-height:76px;font-size:23px}.talk-mic-icon{display:block;width:49px;height:49px}.talk-mic-icon svg{width:100%;height:100%}.speech-microphone.is-listening{background:#b93960;border-bottom-color:#872748}.speech-permission{box-sizing:border-box;width:100%;padding:20px;border:2px solid white;background:#fff3cf}.speech-permission .permission-title{font-size:14px;font-weight:800;color:#735214}.speech-permission p{margin:6px 0}.speech-permission details{margin:12px 0;font-size:13px}.speech-permission summary{cursor:pointer;min-height:34px}.speech-permission details p{font-size:12px}.speech-permission .talk-primary{font-size:16px}.talk-success{font-size:22px;font-weight:800;color:#147440}.listening-dots{display:flex;gap:4px}.listening-dots i{width:5px;height:5px;border-radius:50%;background:white;animation:talk-dot 1s ease-in-out infinite}.listening-dots i:nth-child(2){animation-delay:.15s}.listening-dots i:nth-child(3){animation-delay:.3s}
.coin-wallet-hero{position:relative;width:100%;box-sizing:border-box;padding:24px;border:3px solid white;border-radius:32px;background:linear-gradient(140deg,#fff2ba,#ffe29a);box-shadow:0 6px 0 #e2b45366}.coin-heading{justify-content:center}.coin-heading svg{width:50px;height:50px}.coin-wallet-hero .coin-balance{font-size:56px;line-height:1.25;margin:8px 0;color:#805d13}.coin-wallet-hero>p:last-child{font-size:14px;color:#805d13}.wallet-spark{position:absolute;color:#d4a139;font-size:24px}.wallet-spark.one{top:25px;left:14px}.wallet-spark.two{bottom:24px;right:22px}.coin-reward{background:linear-gradient(140deg,#ffebf4,#eee5ff);border:3px solid white;box-shadow:0 5px 0 #d4b7db77;grid-template-columns:64px minmax(0,1fr)}.coin-reward p{font-size:13px;margin-top:6px}.reward-pencil-art svg{width:64px;height:70px}.coin-future{border:2px solid white;background:#e3f0ff}.coin-language{background:#ffffffb3;border:2px solid white}
.coin-gate{display:grid;width:min(390px,100%);margin:0 auto;grid-template-columns:minmax(0,1fr);gap:14px;justify-items:stretch}.coin-gate>*{min-width:0;box-sizing:border-box;margin:0}.coin-gate .gate-mini-icon{font-size:34px;color:#9a73d4}.coin-gate>p:first-of-type{display:grid;gap:8px;padding:18px;border-radius:24px;background:#e3f0ff}.coin-gate strong{font-size:32px;line-height:1.4}.coin-gate label{display:block;margin-top:8px;font-size:16px;font-weight:750}.coin-gate input{display:block;width:100%;max-width:none;min-height:62px;border-radius:22px;border:3px solid #91caff;text-align:center;font:800 28px/1.4 var(--joy-font);background:white}.coin-gate [role=status]{min-height:24px;color:#a42e40;font-size:14px}
@keyframes talk-glow{0%,100%{opacity:.45}50%{opacity:.8}}@keyframes talk-dot{0%,100%{transform:translateY(0);opacity:.6}50%{transform:translateY(-5px);opacity:1}}
@media(max-width:380px){.coin-dialog{padding:20px 16px}.coin-backdrop{padding:10px}.speech-topic-grid{gap:20px 12px}.speech-topic-grid .topic-tile-face{min-height:154px}.free-talk-tile{padding:12px;gap:9px}.topic-talk-tile .topic-tile-face{gap:12px;padding:18px}.topic-talk-tile .topic-tile-picture{flex-basis:72px}.topic-talk-tile .topic-tile-picture svg{width:72px;height:72px}}
body[data-page-hidden=true] :is(.companion-halo,.companion-face,.listening-dots i){animation-play-state:paused!important}body[data-reduced-motion=true] :is(.companion-halo,.companion-face,.listening-dots i),body[data-motion=reduce] :is(.companion-halo,.companion-face,.listening-dots i){animation:none!important}
@media(prefers-reduced-motion:reduce){.companion-halo,.companion-face,.listening-dots i{animation:none!important}}
/* A broad Himalayan play scene: raised footprints, a snowy summit and Sano's climb. */
.adventure-invitation{width:min(500px,100%);margin:32px auto;padding:8px}.topic-adventure-tile.topic-landing-tile{width:100%;min-height:0}.topic-adventure-tile .topic-tile-face{min-height:150px;flex-direction:row;gap:20px;padding:22px;background:linear-gradient(135deg,#fff9,transparent 70%),#ffe29a;box-shadow:0 6px 0 #e2b453,0 8px 24px #d59e3620}.topic-adventure-tile .topic-tile-picture{flex:0 0 88px}.topic-adventure-tile svg{width:88px;height:88px}.topic-adventure-tile small{font-size:15px;line-height:1.4;font-weight:600}
.adventure-play{max-width:1320px}.adventure-play header{max-width:680px;margin:14px auto 26px}.adventure-play header .prototype-note{margin:10px 0;font-size:12px}.adventure-play .prototype-label{display:inline-block;padding:5px 12px;border-radius:999px;background:#e0f5e9;color:#26714d;font-size:12px;font-weight:750}.adventure-layout{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:26px;align-items:start}.mountain-map{width:100%;background:#e5f5ff;box-shadow:0 8px 0 #9cbfe04d,0 20px 40px #5e8aae20}.mountain-map summary{padding:18px 14px;color:#174274;font-size:18px}.mountain-map .mountain-scene>svg{width:100%;height:auto;max-height:none;aspect-ratio:640/600}.mountain-scene{position:relative;isolation:isolate;overflow:hidden}.mountain-sano{position:absolute;display:block;width:12%;height:15%;transform:translate(-50%,-89%);pointer-events:none;filter:drop-shadow(0 5px 2px #32546b40);z-index:2}.mountain-walker{width:100%;height:100%;object-fit:contain;animation:mountain-waddle 1.2s ease-in-out infinite;transform-origin:50% 90%}.mountain-base-label,.mountain-summit-label{position:absolute;font:800 clamp(10px,1.5vw,15px)/1.4 var(--joy-font);color:#365e50;background:#ffffffc7;border:1px solid white;border-radius:999px;padding:4px 10px;pointer-events:none}.mountain-base-label{left:4%;bottom:5%}.mountain-summit-label{left:34%;top:3%;color:#526787}.mountain-caption{padding:14px 18px;background:#eefaf2;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#175a43;font-size:13px}.mountain-caption strong{background:white;border-radius:999px;padding:5px 12px;white-space:nowrap}.mountain-cloud{animation:mountain-cloud-drift 9s ease-in-out infinite}.mountain-cloud.cloud-two{animation-delay:-4s}.summit-current-ring{animation:talk-glow 2s ease-in-out infinite}.adventure-board{background:linear-gradient(145deg,#ffffffdf,#f8edffbf);box-shadow:0 8px 0 #d7ccea55,0 16px 30px #5e8aae12}.adventure-actions .primary{background:#15965b;border-bottom:5px solid #107748;border-radius:26px}.adventure-options .adventure-choice:nth-child(2n) .game-tile-face{background:#ffb5d5;border-bottom-color:#e882b0}.adventure-options .adventure-choice.right .game-tile-face{background:#92e1bd}.adventure-options .adventure-choice.wrong .game-tile-face{background:#ffa8b9}
@keyframes mountain-waddle{0%,100%{transform:rotate(-3deg) translateY(0)}25%{transform:rotate(3deg) translateY(-3px)}50%{transform:rotate(-3deg) translateY(0)}75%{transform:rotate(3deg) translateY(-3px)}}@keyframes mountain-cloud-drift{0%,100%{transform:translateX(-7px)}50%{transform:translateX(7px)}}
@media(max-width:780px){.adventure-layout{grid-template-columns:1fr}.adventure-play{padding-inline:14px}.mountain-map{max-width:640px;margin:auto}.mountain-map .mountain-scene>svg{max-height:none}.mountain-base-label,.mountain-summit-label{font-size:12px}.adventure-board{padding:20px 14px}}
#adventure-root[data-paused=true] :is(.mountain-walker,.mountain-cloud,.summit-current-ring,.game-tile-face){animation-play-state:paused!important}body[data-page-hidden=true] :is(.mountain-walker,.mountain-cloud,.summit-current-ring){animation-play-state:paused!important}body[data-motion=reduce] .adventure-play *,body[data-reduced-motion=true] .adventure-play *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){.adventure-play *{animation:none!important;transition:none!important}}
/* Parent commerce and the optional live microphone are separate from offline play. */
.parent-wallet,.free-talk-live{display:flex;flex-direction:column;align-items:stretch;gap:18px;text-align:center}.parent-wallet h2,.free-talk-live h2{margin-bottom:0}.parent-wallet label{text-align:left;font-weight:800}.parent-wallet input{box-sizing:border-box;width:100%;min-width:0;padding:16px;border:2px solid #b7c8df;border-radius:18px;background:#fff;font:inherit}.wallet-recovery{display:block;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;user-select:all;background:#e8f2ff;padding:18px;border-radius:18px;font-size:14px;text-align:left}.parent-wallet .coin-reward{display:flex;flex-direction:column}.parent-wallet .coin-reward p{margin:0}.free-talk-live .live-companion{width:165px;height:180px;object-fit:contain;align-self:center}.live-microphone{display:block;width:84px;align-self:center}.live-microphone svg{display:block;width:100%;height:auto}.free-talk-live [data-chat=toggle]{min-height:66px;font-size:22px}.parent-wallet button,.free-talk-live button{min-height:48px}
/* Silent two-friend welcome and the owner's pink Play treatment. */
.art-welcome .welcome-play-face{background:#e44589;border-color:#ffa6cf;box-shadow:0 7px 0 #b82f68,0 0 26px 7px #f05b9c65}
.welcome-play-pulse::before{background:radial-gradient(ellipse closest-side,#f05b9c88 20%,#f05b9c3d 60%,transparent 100%)}
.welcome-friends{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:100%;overflow:visible}
.welcome-friend{display:block;flex:0 0 65%;height:100%;margin-inline:-7%;animation:sano-friends-float 4.4s ease-in-out infinite}
.welcome-friend-girl{animation-delay:-2.2s}
.companion-choice .companion-option,.companion-art-window,.companion-greeting-art{background:transparent;box-shadow:none}
.companion-choice .companion-face{border-color:var(--companion-fill)}
.companion-choice .companion-option[aria-pressed=true] .companion-face{border-color:#15965b}
@keyframes sano-friends-float{0%,100%{transform:translateY(1px) rotate(-1.5deg)}50%{transform:translateY(-6px) rotate(1.5deg)}}
body[data-page-hidden=true] .welcome-friend{animation-play-state:paused}
body[data-motion=reduce] .welcome-friend{animation:none}
@media(prefers-reduced-motion:reduce){.welcome-friend{animation:none}}
/* Collection stays open; coin and flags use the game's colour and movement. */
.coin-area{gap:22px}.coin-wallet-hero{display:grid;justify-items:center;gap:6px;background:linear-gradient(135deg,#fff2ad,#ffd466);border-color:#fff3c4;box-shadow:0 7px 0 #dfa02b,0 0 30px #f7c14565}
.coin-hero-art{display:block;width:86px;height:86px;animation:coin-happy 4.8s ease-in-out infinite}.coin-hero-art svg{width:100%;height:100%}
.coin-collection{width:100%;display:grid;gap:12px;text-align:center}.coin-collection h3{font-size:25px}.coin-language-grid{gap:24px 18px;width:100%;margin:8px 0}
.coin-collection .coin-language{min-height:150px;padding:18px 10px;background:var(--topic-fill);border:3px solid var(--topic-fill);border-bottom:6px solid var(--topic-edge);border-radius:28px;box-shadow:0 8px 22px color-mix(in srgb,var(--topic-edge) 30%,transparent);animation:tile-jiggle 4.8s ease-in-out var(--flag-delay) infinite;color:var(--topic-ink)}
.coin-language .collection-flag{display:grid;place-items:center;width:84px;height:70px}.coin-language .collection-flag svg{width:80px;height:64px;opacity:1;filter:drop-shadow(0 4px 2px #24395715)}.coin-language strong{font-size:18px;text-align:center}
.coin-play-back,.coin-dialog .back-tile{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;min-height:64px;border:3px solid #ffa6cf;border-bottom:6px solid #b82f68;border-radius:28px;background:#df4487;color:white;font-size:21px;font-weight:850;box-shadow:0 0 24px #f05b9c40;cursor:pointer}
.reward-confirmation{display:grid;justify-items:stretch;gap:16px;padding:22px 18px;border:3px solid white;border-radius:30px;background:linear-gradient(145deg,#fff3cf,#fff0f7);box-shadow:0 6px 0 #e2b45344}.reward-confirmation p{margin:0}.coin-dialog .back-tile{width:100%;margin:12px 0 0}.adventure-actions .adventure-rest{background:#df4487;color:white;border:3px solid #ffa6cf;border-bottom:6px solid #b82f68;border-radius:26px}
.rainbow-tool{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:8px 18px;border:2px solid #eda3c8;border-radius:24px;background:#ffe5f2;color:#71304f;cursor:pointer;font-family:var(--joy-font)}.rainbow-tool>span:first-child{font-size:27px}.rainbow-tool strong,.rainbow-tool small{display:block}.rainbow-tool strong{font-size:16px}.rainbow-tool small{font-size:12px;margin-top:3px}.rainbow-tool[aria-checked=true]{background:#ffdc65;border-color:#dcab37}.drawing-rainbow{display:block;text-align:center}
@keyframes coin-happy{0%,70%,100%{transform:translateY(0) rotate(-4deg)}18%{transform:translateY(-8px) rotate(8deg)}35%{transform:translateY(-2px) rotate(-7deg)}50%{transform:translateY(-6px) rotate(5deg)}}
body[data-page-hidden=true] :is(.coin-hero-art,.coin-collection .coin-language){animation-play-state:paused}
body[data-motion=reduce] :is(.coin-hero-art,.coin-collection .coin-language){animation:none}
@media(prefers-reduced-motion:reduce){.coin-hero-art,.coin-collection .coin-language{animation:none}}
.selected-companion{object-fit:contain;max-width:100%;height:100%}.sano-guide>.selected-companion{width:100%;height:100%;filter:none}.selected-companion.talking{animation:companion-hover 1.8s ease-in-out infinite}
.art-welcome .welcome-character .welcome-friends{margin:0;max-width:none}
body[data-page-hidden=true] .selected-companion{animation-play-state:paused}body[data-motion=reduce] .selected-companion{animation:none!important}
@media(prefers-reduced-motion:reduce){.selected-companion{animation:none!important}}

/* Two independent language pills: the selected half is mint, the other rose. */
.corner-tools>.guidance-switch{flex:0 0 auto;width:auto;height:auto;display:flex;gap:2px;padding:3px;border:2px solid white;border-radius:28px;background:#ffe1e3;box-shadow:0 2px 12px #71c59b30}
.guidance-switch button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:6px;border:0;border-radius:23px;background:#ffe1e3;box-shadow:none;transition:background .16s ease}
.guidance-switch button[aria-pressed=true]{background:#a0e6bc;color:#145c37}
.guidance-switch button:focus-visible{outline:3px solid #0867ed;outline-offset:1px}
.guidance-switch svg{display:block;width:27px;height:29px;pointer-events:none}
.guidance-switch span{pointer-events:none}
/* A short, softened red mark keeps the whole tool's touch target intact. */
.practice-tool[aria-pressed=true]{position:relative;border-color:transparent;box-shadow:0 3px 12px #df526e20}
.practice-tool[aria-pressed=true]::after{content:"";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);width:18px;height:2px;border-radius:3px;background:#df526e99;box-shadow:0 0 5px 2px #df526e35;pointer-events:none}
/* Feather outward from the back of each face, without a bright perimeter ring. */
.topic-tile-halo,.topic-practice-tile .topic-tile-halo{inset:4px;border-radius:inherit;background:transparent;filter:none;box-shadow:0 0 12px 4px color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 32%,transparent),0 0 28px 9px color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 19%,transparent),0 0 42px 13px color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 8%,transparent)}
.challenge-halo,.challenge-pulse .challenge-halo{inset:4px;border-radius:var(--tile-radius,30px);background:transparent;box-shadow:0 0 12px 4px color-mix(in srgb,var(--tile-edge,#62b9f5) 32%,transparent),0 0 28px 9px color-mix(in srgb,var(--tile-edge,#62b9f5) 19%,transparent),0 0 42px 13px color-mix(in srgb,var(--tile-edge,#62b9f5) 8%,transparent)}
.companion-halo{inset:10px 4px;background:transparent;box-shadow:0 0 16px 5px color-mix(in srgb,var(--companion-halo) 28%,transparent),0 0 34px 11px color-mix(in srgb,var(--companion-halo) 16%,transparent)}
.language-option{--language-glow:#ed74b0}.language-option.nepali-option{--language-glow:#429aff}
.language-choice .language-option .game-tile-face{box-shadow:0 5px 6px color-mix(in srgb,var(--language-glow) 12%,transparent),0 0 16px 4px color-mix(in srgb,var(--language-glow) 27%,transparent),0 0 34px 10px color-mix(in srgb,var(--language-glow) 15%,transparent)}
.welcome-nepal{width:19%;right:4%;top:0%;z-index:2;rotate:4deg}
.coin-extras{display:grid;gap:18px;margin:22px 0}.coin-extra{display:grid;gap:10px;padding:18px;border-radius:24px;background:#edf6ff;text-align:center}.coin-extra strong{font-size:20px}.coin-extra>span{color:#466184}
.reward-confirmation{display:grid;gap:14px;text-align:center}.reward-confirmation p{margin:0;line-height:1.5}
@media(prefers-reduced-motion:reduce){.guidance-switch button{transition:none}}
/* Future flags are preview tiles: feedback only, never a checkout. */
.coin-collection .coin-language{padding:0;background:transparent;border:0;box-shadow:none;animation:none;min-width:0;border-radius:28px}
.coin-language .game-tile-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:205px;padding:18px 10px;border-radius:28px;background:var(--topic-fill);border:3px solid #ffffffb8;border-bottom:6px solid var(--topic-edge);box-shadow:0 0 15px 4px color-mix(in srgb,var(--topic-edge) 25%,transparent),0 0 32px 9px color-mix(in srgb,var(--topic-edge) 14%,transparent)}
.coin-lock-badge{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:#40506a}.coin-paid-icon{display:inline-flex;vertical-align:middle}.coin-paid-icon svg{width:22px;height:22px;opacity:1;filter:none}
.coin-language small{font-weight:800;font-size:14px}.coin-coming-notice{min-height:1.5em;text-align:center;line-height:1.5;color:#8e344a}
.coin-language.answer-wrong .game-tile-face{animation:answer-shake .63s ease-in-out!important;background:#ffd0ce!important;box-shadow:0 0 16px 4px #f02e3e40,0 0 34px 9px #f02e3e22!important}
.pill.primary.companion-next{padding:0;background:transparent;border:0;box-shadow:none;--tile-edge:#dd75c3;--tile-radius:30px;border-radius:30px}
.companion-next .challenge-pulse{display:block;width:100%;border-radius:30px}
.companion-next .game-tile-face{position:relative;display:grid;place-items:center;min-height:70px;width:100%;padding:17px;border-radius:30px;background:#dc60b8;border:3px solid #ffcdf1;border-bottom:6px solid #bd489d;color:white;font-size:25px;font-weight:900}
@media(prefers-reduced-motion:reduce){.coin-language.answer-wrong .game-tile-face{animation:none!important}}
body[data-motion=reduce] .coin-language.answer-wrong .game-tile-face{animation:none!important}
body[data-page-hidden=true] .coin-language.answer-wrong .game-tile-face{animation-play-state:paused!important}
.coin-extra{background:var(--topic-fill);color:var(--topic-ink);border:3px solid #ffffffb8;border-bottom:6px solid var(--topic-edge);border-radius:26px;box-shadow:0 0 15px 4px color-mix(in srgb,var(--topic-edge) 25%,transparent),0 0 32px 9px color-mix(in srgb,var(--topic-edge) 14%,transparent)}

/* Light follows the rounded face; diffuse fall-off replaces solid backplates. */
.welcome-play-pulse{border-radius:36px}
.welcome-play-pulse::before{inset:-22px -26px;border-radius:50%;filter:blur(7px);background:radial-gradient(ellipse closest-side,#f05b9c99 22%,#f05b9c44 62%,transparent 100%);opacity:.8}
.art-welcome .welcome-play-face{box-shadow:inset 0 2px 1px #ffffff66,0 5px 0 #b82f68,0 0 14px 4px #f05b9c3d,0 0 29px 9px #f05b9c29;border-radius:36px}
.topic-tile-halo,.topic-practice-tile .topic-tile-halo{inset:-17px;border-radius:50%;background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 54%,transparent) 26%,color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 23%,transparent) 66%,transparent 100%);filter:blur(5px);box-shadow:none;opacity:.8}
.topic-tile-face,.topic-entry-face{box-shadow:inset 0 2px 1px #ffffff6b,0 5px 0 var(--topic-edge,#4c9fea),0 0 14px 3px color-mix(in srgb,var(--topic-edge,#4c9fea) 30%,transparent),0 0 28px 8px color-mix(in srgb,var(--topic-edge,#4c9fea) 16%,transparent)}
.topic-tile:nth-child(3n+2) .topic-entry-face,.topic-tile:nth-child(3n) .topic-entry-face{box-shadow:inset 0 2px 1px #ffffff6b,0 5px 0 var(--topic-edge),0 0 14px 3px color-mix(in srgb,var(--topic-edge) 30%,transparent),0 0 28px 8px color-mix(in srgb,var(--topic-edge) 16%,transparent)}
.challenge-halo,.challenge-pulse .challenge-halo{inset:-18px;border-radius:50%;filter:blur(5px);background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--tile-edge,#62b9f5) 50%,transparent) 22%,color-mix(in srgb,var(--tile-edge,#62b9f5) 22%,transparent) 65%,transparent 100%);box-shadow:none}
.companion-halo{inset:-18px;border-radius:50%;filter:blur(6px);background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--companion-halo) 50%,transparent) 25%,color-mix(in srgb,var(--companion-halo) 22%,transparent) 65%,transparent 100%);box-shadow:none}
.companion-option[aria-pressed=true] .companion-face,.language-option[aria-pressed=true] .game-tile-face,.settings-tile[aria-pressed=true]>.game-tile-face,.challenge-tile[aria-pressed=true] .challenge-face{border-color:#fff;outline:0;box-shadow:0 0 0 4px #fffffff0,0 0 10px 6px #ffffffa8,0 0 24px 9px color-mix(in srgb,var(--companion-halo,var(--language-glow,var(--tile-edge,#62b9f5))) 35%,transparent)}
.coin-dialog-top{position:sticky;top:-28px;z-index:5;margin:-28px -28px 20px;padding:14px 20px 12px;background:#f5fafff2;border-radius:28px 28px 20px 20px;backdrop-filter:blur(12px);box-shadow:0 5px 15px #24416d0a}
.coin-dialog .coin-close{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:10px 16px;background:#e3efff;border:2px solid white;border-radius:22px;color:#174274;font-size:17px;font-weight:850;box-shadow:0 0 12px #72b5f325;cursor:pointer}
@media(max-width:380px){.coin-dialog-top{top:-20px;margin:-20px -16px 18px;padding:12px 14px}}

.progress-dialog{border:3px solid white;background:radial-gradient(ellipse at 50% 0%,#fff5d8 0,transparent 60%),#f5faff;box-shadow:0 18px 50px #31507825}
.progress-stars{grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:12px;padding:7px 4px 14px}
.progress-star{padding:8px 6px;min-height:108px;border:2px solid white;border-radius:24px;background:#edf4fc;justify-content:flex-start}
.progress-star.is-collected{background:#fff3d5;border-color:#fffdf3;box-shadow:0 0 13px #ffd55c35}
.progress-star svg{width:62px;height:64px;flex:none}.progress-star small{font:700 14px/1.4 var(--joy-font);overflow-wrap:anywhere}.progress-star small[lang=ne]{font-family:SanoDevanagari,sans-serif;font-size:17px}

.piano-play{display:flex;flex-direction:column;gap:24px}.piano-player{display:flex;flex-direction:column;gap:16px}.piano-turn{margin:0;transition:background-color .12s,border-color .12s}.piano-player[data-ready=false] .piano-turn[data-turn=waiting]{background:#edf3fa;border-color:#d3e0ef}
.piano-key:disabled:not(.tune-listening){opacity:.48;cursor:default}.piano-key:disabled:active{transform:none}.piano-key.tune-listening{opacity:1}.free-play-tile:disabled{opacity:.42;cursor:default}.free-play-tile:disabled .game-tile-face{animation:none;box-shadow:none}.free-play-section{margin:0 auto;padding:0;border:0}.piano-play [hidden]{display:none!important}
.practice-invitation{margin-bottom:0}.adventure-invitation{margin:16px auto 28px}
@keyframes tile-edge-glow{0%,100%{opacity:.64}50%{opacity:.92}}

.sound-invitation{width:min(500px,100%);margin:20px auto 28px;padding:8px}.topic-sound-tile.topic-landing-tile{width:100%;min-height:0}.topic-sound-tile .topic-tile-face{min-height:150px;flex-direction:row;gap:20px;padding:22px;background:linear-gradient(135deg,#fff9,transparent 70%),#91caff}.topic-sound-tile .topic-tile-picture{flex:0 0 88px}.topic-sound-tile small{font-size:15px;line-height:1.4;font-weight:600}

@media(max-width:599px){.topic-landing-grid>.topic-landing-tile:last-child:nth-child(odd){grid-column:1/-1}.topic-landing-grid>.topic-landing-tile:last-child:nth-child(odd) .topic-tile-face{min-height:150px;flex-direction:row;gap:20px}.topic-landing-grid>.topic-landing-tile:last-child:nth-child(odd) .topic-tile-picture{flex:0 0 80px}}

/* Little living illustrations. Their parent buttons never move or lose taps. */
.topic-scene{position:absolute;inset:0;display:block;pointer-events:none;isolation:isolate}
.topic-motion-part{position:absolute;inset:0;display:grid;place-items:center;transform-origin:50% 50%;pointer-events:none}
.topic-motion-part>img,.topic-motion-part>svg{display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.topic-art-clip{position:absolute;top:0;bottom:0;width:50%;overflow:hidden;pointer-events:none}
.topic-art-clip.clip-left{left:0}.topic-art-clip.clip-right{right:0}
.topic-art-clip>span{position:absolute;top:0;left:0;width:200%;height:100%}.topic-art-clip.clip-right>span{left:-100%}
.topic-adventure-tile .topic-tile-face{min-height:174px;padding:20px 22px;gap:14px}
.topic-adventure-tile .topic-tile-picture{flex:0 0 132px;width:132px;height:132px}
.topic-adventure-tile .topic-tile-label{min-width:0;flex:1}
.adventure-mini-scene{position:relative;display:block;width:100%;height:100%;pointer-events:none;isolation:isolate}
.adventure-meadow{position:absolute;left:3%;right:3%;bottom:3%;height:28%;border-radius:50%;background:radial-gradient(ellipse,#85cfa9a8,#b2e6b35c 65%,transparent 72%)}
.adventure-mini-mountain{position:absolute;left:8%;top:3%;width:84%;height:84%;z-index:1;pointer-events:none}
.topic-adventure-tile .adventure-mini-scene svg{width:100%;height:100%}
.adventure-chase{position:absolute;inset:0;pointer-events:none}.chase-back{z-index:0}.chase-front{z-index:2}
.adventure-run-track{position:absolute;top:0;left:0;width:72%;height:72%;transform-origin:0 0;pointer-events:none}
.adventure-runner{display:block;width:38.888889%;height:38.888889%;transform-origin:center;pointer-events:none}
.adventure-runner img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:center;filter:drop-shadow(0 2px 1px #98703922);pointer-events:none;user-select:none}
.adventure-together{position:absolute;inset:0;z-index:3;pointer-events:none}
@media(max-width:359px){.topic-adventure-tile .topic-tile-face{padding-inline:18px;gap:10px}.topic-adventure-tile .topic-tile-picture{flex-basis:108px;width:108px;height:108px}}
body[data-motion=reduce] :is(.topic-motion-part,.adventure-run-track,.adventure-runner,.adventure-runner img,.adventure-together){animation:none!important}
@media(prefers-reduced-motion:reduce){.topic-motion-part,.adventure-run-track,.adventure-runner,.adventure-runner img,.adventure-together{animation:none!important}}

/* Compact final pair, with soft white light around the top-corner controls. */
.topic-media-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:min(500px,100%);margin:22px auto 28px;padding:8px;box-sizing:border-box}
.topic-media-row .topic-tile-face{min-height:174px;padding:18px 12px}
.corner-tools>:is(.grownup-corner,.coin-corner,.guidance-switch,.screen-text-choice){border-color:#fff;background:#f5faffc9;box-shadow:inset 0 1px 1px #fff,0 0 5px #ffffffc9,0 0 14px 3px #91caff45,0 0 24px 5px #91caff18}
.runner-stride,.runner-puppet{position:relative;display:block;width:100%;height:100%;pointer-events:none}.runner-part{position:absolute;inset:0;pointer-events:none}
.runner-stride{filter:drop-shadow(0 1px 1px #63543d35)}
body[data-motion=reduce] :is(.runner-part,.runner-stride){animation:none!important}@media(prefers-reduced-motion:reduce){.runner-part,.runner-stride{animation:none!important}}
/* Forward actions announce readiness continuously, including after a greeting. */
@keyframes proceed-heartbeat{0%,40%,100%{transform:scale(1);filter:drop-shadow(0 0 5px #65b8ff45)}12%{transform:scale(1.035);filter:drop-shadow(0 0 12px #65b8ff85)}22%{transform:scale(1.008)}30%{transform:scale(1.023);filter:drop-shadow(0 0 9px #65b8ff70)}}
:is(.step-prompt-next,.continue-game,.scribble-next,[data-action="continue"],[data-action="quiz-next"],[data-action="quiz-start"],[data-action="resume-learning"],[data-action="party-start"],[data-action="party-info"],[data-check="next"],[data-check="again"],[data-scribble="next"],[data-scribble="again"],[data-scribble="done"],[data-body-next],[data-family="next"],[data-family="ready"],[data-family="start"],[data-family="again"],[data-adventure="next"],[data-adventure="begin"],[data-adventure="resume"],[data-adventure="retry"],[data-adventure="restart"]):not(:disabled):not([hidden]){animation:proceed-heartbeat 2.8s ease-in-out infinite;transform-origin:center;isolation:isolate}
.companion-next:not(:disabled) .challenge-pulse{animation:sano-heartbeat 2.8s ease-in-out infinite}.companion-next .challenge-halo{animation:sano-heartglow 2.8s ease-in-out infinite}
body[data-motion=reduce] :is(.step-prompt-next,.continue-game,.scribble-next,[data-action="continue"],[data-action="quiz-next"],[data-action="quiz-start"],[data-action="resume-learning"],[data-action="party-start"],[data-action="party-info"],[data-check="next"],[data-check="again"],[data-scribble="next"],[data-scribble="again"],[data-scribble="done"],[data-body-next],[data-family="next"],[data-family="ready"],[data-family="start"],[data-family="again"],[data-adventure="next"],[data-adventure="begin"],[data-adventure="resume"],[data-adventure="retry"],[data-adventure="restart"]){animation:none!important}
@media(prefers-reduced-motion:reduce){.step-prompt-next,.continue-game,.scribble-next,[data-action="continue"],[data-action="quiz-next"],[data-action="quiz-start"],[data-action="resume-learning"],[data-action="party-start"],[data-action="party-info"],[data-check="next"],[data-check="again"],[data-scribble="next"],[data-scribble="again"],[data-scribble="done"],[data-body-next],[data-family="next"],[data-family="ready"],[data-family="start"],[data-family="again"],[data-adventure="next"],[data-adventure="begin"],[data-adventure="resume"],[data-adventure="retry"],[data-adventure="restart"]{animation:none!important}}

/* One continuous pastel backdrop also sits behind the corner controls. */
#app{min-height:100svh;background:radial-gradient(ellipse at 1% 7%,#ffe3f0,transparent 48%),radial-gradient(ellipse at 100% 15%,#d5efff,transparent 52%),#f5faff}
#app>.corner-tools{background:transparent}
#app>.foundations-shell,#app>.clean-welcome.art-welcome{background:transparent!important}
.corner-tools :is(.guidance-switch,.screen-text-choice) button:not([aria-pressed=true]){background:#edf5ff;color:#466184}
/* Specificity matches the original selected companion rule, so white wins. */
.companion-choice .companion-option[aria-pressed=true] .companion-face{border-color:#fff;box-shadow:0 0 0 4px #fffffff0,0 0 12px 8px #ffffffc4,0 0 28px 12px #ffffff73,0 5px 0 color-mix(in srgb,var(--companion-halo) 55%,white)}
.companion-choice .companion-option[aria-pressed=true] .companion-halo{background:radial-gradient(ellipse closest-side,#ffffffd9 26%,#ffffff70 62%,transparent 100%);opacity:1}
/* A locked learning step keeps its moving light; only its face is softened. */
.topic-tile.is-topic-locked .topic-entry-face{filter:blur(2px);opacity:.62}
.topic-lock-badge{position:absolute;z-index:3;right:8px;top:8px;display:grid;place-items:center;width:30px;height:30px;border:2px solid #fff;border-radius:50%;background:#edf5ff;color:#466184;box-shadow:0 0 10px #fff9;pointer-events:none;font-size:17px}
.topic-lock-badge svg{width:18px;height:18px}
.topic-tile.is-topic-current .topic-entry-face{border-color:#fff;box-shadow:0 0 0 3px #ffffffd9,0 0 14px 5px #ffffff99,0 5px 0 var(--topic-edge,#4c9fea)}
.topic-unlock-note{max-width:520px;margin:0 auto 20px;padding:9px 16px;border-radius:20px;background:#f5faffb8;color:#466184;font:700 15px/1.5 var(--joy-font);text-align:center}
.topic-tile.is-topic-locked.answer-wrong .topic-entry-face{animation:answer-shake .63s ease-in-out!important;background:#ffd0ce!important}
body[data-motion=reduce] .topic-tile.is-topic-locked.answer-wrong .topic-entry-face{animation:none!important}
@media(prefers-reduced-motion:reduce){.topic-tile.is-topic-locked.answer-wrong .topic-entry-face{animation:none!important}}

/* Equal faces and a centred final row keep mixed label lengths aligned. */
.topic-landing-grid>.topic-landing-tile>.topic-tile-face,.topic-media-row>.topic-landing-tile>.topic-tile-face{height:100%}
@media(min-width:600px){.topic-landing-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.topic-landing-grid>.topic-landing-tile{grid-column:span 2}.topic-landing-grid>.topic-landing-tile:nth-last-child(2):nth-child(3n+1){grid-column:2/span 2}.topic-landing-grid>.topic-landing-tile:last-child:nth-child(3n+2){grid-column:4/span 2}.topic-landing-grid>.topic-landing-tile:last-child:nth-child(3n+1){grid-column:3/span 2}}

/* The three invitations use one full-width row each in either language. */
.practice-invitation,.talk-invitation,.adventure-invitation{display:grid;grid-template-columns:minmax(0,1fr);width:min(500px,100%);padding:8px;box-sizing:border-box}
.practice-invitation{gap:24px}
:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile).topic-landing-tile{width:100%;min-width:0}
:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-face{width:100%;min-height:174px;flex-direction:row;gap:14px;padding:20px 22px}
:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-picture{flex:0 0 132px;width:132px;height:132px;min-height:132px}
:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-label{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0;white-space:normal;text-align:center}
:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-label strong{line-height:1.3;overflow-wrap:anywhere}
:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-label small{display:block;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.topic-talk-tile .topic-tile-picture>.topic-scene svg{width:100%;height:100%}
body[data-interface-language=ne] :is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-label strong{line-height:1.5}
@media(max-width:380px){:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-face{padding:20px 18px;gap:10px}:is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile) .topic-tile-picture{flex-basis:108px;width:108px;height:108px;min-height:108px}}

/* Flags remain wholly visible inside the narrowest language-choice cards. */
.language-choice .language-symbol svg{max-width:100%}
.coin-language .coin-lock-badge{max-width:100%;flex-wrap:wrap;text-align:center}

/* Give tracing tools their own row and room for the button halos. */
.trace-stage > .drawing-rainbow{margin-top:24px;padding:12px 8px 18px;clear:both;position:relative}

/* Voice language tiles reuse the selected friend, with a vector microphone. */
.voice-language-choice .game-tile-face{gap:12px;padding:16px 10px}
.voice-choice-scene{position:relative;display:block;width:min(220px,100%);aspect-ratio:1;pointer-events:none}
.voice-choice-scene>svg,.voice-choice-speaker>svg,.voice-choice-speech>svg,.voice-choice-speaker>img,.voice-choice-speaker,.voice-choice-speech{position:absolute;inset:0;width:100%;height:100%;display:block}
.voice-choice-speaker{animation:voice-speaker-breathe 3.6s ease-in-out infinite}
.voice-sound-bar{transform-box:fill-box;transform-origin:center;animation:voice-sound-breathe 1.8s ease-in-out infinite}
@keyframes voice-speaker-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes voice-sound-breathe{0%,100%{transform:scaleY(.65);opacity:.65}50%{transform:scaleY(1);opacity:1}}
body[data-page-hidden=true] :is(.voice-choice-speaker,.voice-sound-bar){animation-play-state:paused}
body[data-motion=reduce] :is(.voice-choice-speaker,.voice-sound-bar){animation:none}
@media(prefers-reduced-motion:reduce){.voice-choice-speaker,.voice-sound-bar{animation:none}}
@media(max-height:540px) and (orientation:landscape){.voice-choice-scene{width:128px}.voice-language-choice .game-tile-face{padding:10px;gap:8px}}

.voice-choice-speaking .voice-sound-bar{animation-duration:.24s;fill:#075bbd}.voice-choice-speaking .voice-choice-speech{transform:scale(1.08);transform-origin:82% 20%}

@media(max-width:480px){.voice-language-choice{gap:22px;padding-inline:18px}.voice-language-choice .language-choice-tiles{grid-template-columns:1fr;gap:18px}.voice-language-choice .language-option{min-height:180px}.voice-language-choice .game-tile-face{flex-direction:row;min-height:180px;gap:10px;padding:10px 14px}.voice-language-choice .voice-choice-scene{width:55%;max-width:180px;flex-shrink:0}.voice-language-choice strong{flex:1;min-width:0;text-align:center}}

/* Keep the voice label readable when the phone or enlarged text needs room. */
@media(max-width:480px){
 .voice-language-choice .game-tile-face{flex-wrap:wrap}
 .voice-language-choice strong{flex:1 1 7em;overflow-wrap:anywhere}
}
@media(max-width:360px){
 .voice-language-choice .game-tile-face{flex-direction:column}
 .voice-language-choice .voice-choice-scene{width:min(220px,100%)}
 .voice-language-choice strong{flex:initial;width:100%}
}

/* White tracing paper scrolls; only the exact stencil owns drawing gestures. */
.trace-hit-surface{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.trace-hit-surface path{pointer-events:painted;touch-action:none;cursor:crosshair}

/* The three drawing tools share the same raised, luminous tile treatment. */
.scribble-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:480px;gap:14px;padding:8px 3px 12px;box-sizing:border-box;isolation:isolate}
.scribble-tools>.pill{--tool-fill:#91caff;--tool-edge:#4c9fea;--tool-ink:#17324a;position:relative;isolation:isolate;display:block;width:100%;min-width:0;min-height:112px;padding:0;border:0;border-radius:28px;background:transparent;box-shadow:none;overflow:visible;white-space:normal}
.scribble-tools>[data-scribble=eraser]{--tool-fill:#ffb5d5;--tool-edge:#d879a3}
.scribble-tools>.practice-tool[aria-pressed=true]{--tool-fill:#ffdc65;--tool-edge:#d3a42c;background:transparent;border:0;box-shadow:none}
.scribble-tools>.scribble-done{--tool-fill:#139a66;--tool-edge:#087044;--tool-ink:#fff}
.scribble-tools .scribble-action-face{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:112px;box-sizing:border-box;gap:6px;padding:12px 6px 15px;border:3px solid #fff;border-bottom:6px solid var(--tool-edge);border-radius:28px;background:linear-gradient(180deg,#ffffff55,transparent 52%),var(--tool-fill);color:var(--tool-ink);font:850 clamp(16px,4.4vw,20px)/1.35 var(--joy-font);box-shadow:inset 0 2px 1px #ffffffa6,0 7px 12px -5px #24416d26;animation:tile-jiggle 3.8s ease-in-out infinite;pointer-events:none}
.scribble-tools .scribble-action-face>span{max-width:100%;overflow-wrap:anywhere}
.scribble-tools .scribble-action-face>svg{width:52px;height:52px;flex-shrink:0;filter:drop-shadow(0 2px 1px #24416d16)}
.scribble-tool-halo{position:absolute;z-index:0;inset:-20px;pointer-events:none;border-radius:50%;background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--tool-edge) 42%,transparent) 0%,color-mix(in srgb,var(--tool-edge) 30%,transparent) 44%,color-mix(in srgb,var(--tool-edge) 14%,transparent) 68%,color-mix(in srgb,var(--tool-edge) 4%,transparent) 86%,transparent 100%);animation:tile-jiggle 3.8s ease-in-out infinite}
.scribble-tools>button:nth-child(2)>span{animation-delay:-1.2s}.scribble-tools>button:nth-child(3)>span{animation-delay:-2.4s}
.scribble-tools>.practice-tool[aria-pressed=true]::after{content:none}
.scribble-tools>.practice-tool[aria-pressed=true]>.scribble-action-face{box-shadow:inset 0 2px 1px #fff,0 0 0 1px #ffffffe6,0 0 10px 2px #ffffff80,0 7px 12px -5px #24416d26}
.scribble-tools>.practice-tool[aria-pressed=true]>.scribble-action-face::after{content:"";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);width:18px;height:2px;border-radius:3px;background:#df526e99;box-shadow:0 0 5px 2px #df526e35}
.scribble-tools>.pill:active{transform:none;scale:.96;filter:brightness(1.06)}
.scribble-tools>.pill:focus-visible{outline:3px solid #0867ed;outline-offset:6px}
body[data-motion=reduce] .scribble-tools>button>span{animation:none}
body[data-page-hidden=true] .scribble-tools>button>span{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.scribble-tools>button>span{animation:none}}
@media(max-width:340px){.scribble-tools{gap:10px}.scribble-tools .scribble-action-face{padding-inline:3px}}

.multiplayer-coming .game-tile-face,.mountain-multiplayer{position:relative}.multiplayer-preview{display:block;font-size:45px;filter:blur(2.5px);opacity:.55;pointer-events:none}.multiplayer-paid{position:absolute;right:10px;top:10px;width:27px;height:27px}.multiplayer-coming strong,.multiplayer-coming small{filter:none}.mountain-multiplayer{display:flex;flex-direction:column;gap:8px;align-items:center;background:linear-gradient(140deg,#c4eedb,#cce4ff)!important;min-height:150px}.mountain-multiplayer small{font-size:16px}
/* Onboarding confirmations reserve space; Next uses the existing pink heartbeat face. */
.onboarding-feedback-note{min-height:1.6em;margin:0;text-align:center;color:#174274;font:800 clamp(19px,4.8vw,24px)/1.6 var(--joy-font);overflow-wrap:anywhere}
:is(.learning-course-choice,.voice-language-choice)>.companion-next-slot{width:100%;min-height:70px}
/* Learning helpers occupy their own measured flow space, below tracing paper. */
.foundation-home .companion-lane{height:auto!important;min-height:156px;width:100%;max-width:550px;margin:24px auto 20px;padding:24px 8px 16px;gap:20px;align-items:flex-end;box-sizing:border-box;isolation:isolate}
.foundation-home .trace-stage>.companion-lane{order:0}
.foundation-home .companion-lane>.sano-tip{flex:1;min-width:0;max-width:none;box-sizing:border-box;overflow-wrap:anywhere;margin:0;font-size:clamp(16px,2.3vw,19px)!important;line-height:1.55}
.foundation-home .companion-lane>.sano-guide{order:0;align-self:flex-end;margin:0;animation:learning-companion-bob 4.8s ease-in-out infinite}
.foundation-home .companion-lane>.sano-guide:is(.sano-hop,.sano-cheer){animation:learning-companion-bob 4.8s ease-in-out infinite}
.foundation-home .sano-guide>.selected-companion.talking{animation:none}
@keyframes learning-companion-bob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}
@media(max-width:460px){.foundation-home .companion-lane{display:flex;flex-direction:column;align-items:stretch;gap:22px;padding-top:24px;margin-top:20px}.foundation-home .companion-lane>.sano-tip{width:100%}.foundation-home .companion-lane>.sano-guide{align-self:center}}
body[data-page-hidden=true] .foundation-home .sano-guide{animation-play-state:paused!important}
body[data-motion=reduce] .foundation-home .sano-guide{animation:none!important}
@media(prefers-reduced-motion:reduce){.foundation-home .sano-guide{animation:none!important}}

/* Coin page: one clear wallet action, then consistently marked future extras. */
.coin-area .coin-earning-rule{font:800 clamp(17px,3.8vw,20px)/1.45 var(--joy-font);color:#466184;text-align:center}
.coin-area .coin-buy{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:100%;min-height:74px;padding:15px 22px;border:3px solid #d1ffe4;border-bottom:6px solid #067641;border-radius:26px;background:linear-gradient(145deg,#14ad70,#07854f);color:#fff;font:850 23px/1.3 var(--joy-font);box-shadow:0 5px 12px #06764124,0 0 22px 3px #13bf7e30;touch-action:manipulation}
.coin-area .coin-buy:active{transform:translateY(2px) scale(.98)}
.coin-buy-sparkle{position:relative;display:inline-flex;flex:0 0 38px;width:38px;height:38px;filter:drop-shadow(0 0 5px #ffe78580)}
.coin-buy-sparkle svg{width:38px;height:38px}.coin-buy-sparkle i{position:absolute;right:-3px;top:-5px;color:#fff7c1;font:900 17px/1 sans-serif;font-style:normal;text-shadow:0 0 6px #ffd33d}
.coin-collection .coin-coming-title{font:850 clamp(26px,5vw,30px)/1.25 var(--joy-font);letter-spacing:-.4px;color:#304f7b;text-align:center;margin:0}
.coin-collection .coin-language .game-tile-face{position:relative;min-height:250px;height:100%;padding:44px 10px 18px;box-sizing:border-box}
.coin-language .coin-coming-paid{position:absolute;right:10px;top:10px;width:27px;height:27px;pointer-events:none;filter:drop-shadow(0 0 5px #ffce4880)}
.coin-language .coin-coming-paid svg{width:27px;height:27px;opacity:1}
.coin-language .game-tile-face strong{display:grid;place-items:center;max-width:100%;min-height:48px;line-height:1.3;overflow-wrap:anywhere}
.coin-collection .collection-flag,.coin-collection .multiplayer-preview{height:72px;display:grid;place-items:center}

/* Hard tracing has a thin path only; no decorative writing baselines or hint button. */
.trace-stage[data-trace-difficulty="advanced"] .trace-paper::before,.trace-stage[data-trace-difficulty="advanced"] .trace-paper::after{display:none}
.trace-companion-static{display:flex;align-items:center;justify-content:center;pointer-events:none;cursor:default}

/* App surfaces are touch controls, not selectable documents. Keep scroll/pinch
   gestures intact: no global touch-action:none and no movement interception. */
:where(#app,#overlay,#launch,.coin-backdrop,.progress-backdrop,.step-prompt-backdrop),:where(#app,#overlay,#launch,.coin-backdrop,.progress-backdrop,.step-prompt-backdrop) *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
:where(#app,#overlay,.coin-backdrop) input:not([readonly]),:where(#app,#overlay,.coin-backdrop) textarea,:where(#app,#overlay,.coin-backdrop) [contenteditable]:not([contenteditable=false]),.parent-privacy,.parent-privacy *,.wallet-recovery,[data-selectable],[data-selectable] *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
:where(#app,#overlay,#launch,.coin-backdrop) img,:where(#app,#overlay,#launch,.coin-backdrop) svg,:where(#app,#overlay,#launch,.coin-backdrop) a{-webkit-user-drag:none}
.number-pad{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:310px;margin:0 auto}
.number-pad input[readonly]{width:min(180px,100%);min-height:54px;text-align:center;font:850 28px/1.3 var(--joy-font);caret-color:transparent;cursor:default;-webkit-user-select:none;user-select:none}
.number-pad-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.number-pad-keys button{white-space:normal;min-width:0;min-height:52px;padding:10px 5px;border:2px solid #fff;border-bottom:4px solid #8cbde9;border-radius:19px;background:linear-gradient(155deg,#eef8ff,#badeff);color:#164575;font:850 23px/1.25 var(--joy-font);touch-action:manipulation;box-shadow:0 5px 13px #4196d222}
.number-pad-keys button[data-keypad-key=clear]{font-size:17px;background:#ffdbe4;border-bottom-color:#df91a7;color:#9c2e51}
.number-pad-keys button:focus-visible{outline:3px solid #0867ed;outline-offset:3px}
.number-pad-readout{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* A single bottom return follows learning controls; the Sano logo is decorative. */
.learning-return-footer{display:flex;justify-content:center;width:100%;margin:30px auto 10px;padding:6px 0 16px}
.learning-return{position:relative;isolation:isolate;width:min(360px,100%);min-height:66px;margin:0;background:linear-gradient(150deg,#f36884,#e13d65 55%,#cf2d58);border:3px solid #fff;border-bottom:6px solid #aa224e;color:#fff;border-radius:30px;font:850 clamp(19px,4.8vw,24px)/1.3 var(--joy-font);white-space:normal;box-shadow:inset 0 2px 1px #ffffff85,0 7px 12px -5px #77224433,0 0 18px 1px #ee52743d,0 6px 32px 2px #ee52741f}
.learning-return::before{content:"";position:absolute;z-index:-1;inset:-22px;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse closest-side,#ee52745c 0%,#ee527433 48%,#ee527414 72%,transparent 100%)}
.learning-return:focus-visible{outline:4px solid #0867ed;outline-offset:7px}
.brand:focus-visible{outline:3px solid #0867ed;outline-offset:5px;border-radius:12px}

/* Our Nepal remains visible beside both courses, directly below Sano Games. */
.nepal-invitation{display:grid;grid-template-columns:minmax(0,1fr);width:min(500px,100%);margin:0 auto 28px;padding:8px;box-sizing:border-box}
.topic-nepal-tile.topic-landing-tile{width:100%;min-width:0;min-height:0}
.topic-nepal-tile .topic-tile-face{width:100%;min-height:174px;flex-direction:row;gap:14px;padding:20px 22px}
.topic-nepal-tile .topic-tile-picture{flex:0 0 132px;width:132px;height:132px;min-height:132px}
.topic-nepal-tile .topic-tile-label{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0;white-space:normal;text-align:center}
.topic-nepal-tile .topic-tile-label strong{line-height:1.3;overflow-wrap:anywhere}
.topic-nepal-tile .topic-tile-label small{display:block;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
body[data-interface-language=ne] .topic-nepal-tile .topic-tile-label strong{line-height:1.5}
@media(max-width:380px){.topic-nepal-tile .topic-tile-face{padding:20px 18px;gap:10px}.topic-nepal-tile .topic-tile-picture{flex-basis:108px;width:108px;height:108px;min-height:108px}}

/* Audio-ended controls: stable layout, immediate input, a gentle entrance. */
@keyframes sano-ready-reveal{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.companion-next:not([hidden]){animation:sano-ready-reveal 220ms cubic-bezier(.22,.61,.36,1) both}
@media(prefers-reduced-motion:reduce){.companion-next:not([hidden]){animation:none}}
body[data-motion=reduce] .companion-next:not([hidden]){animation:none}

.web-access-link{text-decoration:none;text-align:center}.web-trial-invitation{text-align:center;color:#174274;padding:18px 8px}.web-trial-invitation h2{font:900 29px/1.5 var(--joy-font)}.web-trial-invitation p{font:600 18px/1.7 var(--joy-font)}.web-trial-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:25px}.web-trial-actions button{min-height:52px}

/* Web-only role/access tiles share the app's soft, raised pastel surfaces. */
.web-entry-choice{width:min(100%,740px);margin:auto;padding:28px 24px 36px;box-sizing:border-box;text-align:center;color:#174274;font-family:var(--joy-font)}
.web-entry-choice h1{margin:0 auto 22px;max-width:640px;font-size:clamp(28px,5vw,42px);line-height:1.4;font-weight:900;letter-spacing:0;text-wrap:balance}
.web-entry-intro,.web-entry-note{font-size:18px;line-height:1.6;margin:0 auto 20px;max-width:540px}
.web-entry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px;padding:8px 0 18px}
.web-entry-tile{--entry-top:#e3f5ff;--entry-bottom:#b6dcff;--entry-edge:#8bbde9;display:block;width:100%;min-width:0;border:0;background:transparent;padding:0;color:#174274;font:inherit;text-align:center;cursor:pointer;touch-action:manipulation;animation:web-entry-reveal 300ms cubic-bezier(.2,.75,.3,1) both}
.web-entry-tile:nth-child(2){animation-delay:60ms}
.web-entry-school{--entry-top:#e8f8d9;--entry-bottom:#bee8cc;--entry-edge:#91c8a7}
.web-entry-try{--entry-top:#ddfff1;--entry-bottom:#a9e8d8;--entry-edge:#78c9bb}
.web-entry-pay{--entry-top:#fff8dc;--entry-bottom:#fce0a7;--entry-edge:#ddbe7f}
.web-entry-tile .game-tile-face{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;width:100%;height:100%;min-height:292px;padding:20px 18px 24px;box-sizing:border-box;border:3px solid #fff;border-radius:34px;background:linear-gradient(145deg,var(--entry-top),var(--entry-bottom));box-shadow:inset 0 2px 1px #ffffffa8,0 7px 0 var(--entry-edge),0 15px 22px #35578115;transition:transform 180ms ease,box-shadow 180ms ease}
.web-entry-symbol{display:block;width:min(100%,174px);aspect-ratio:192/160;flex:none}
.web-entry-art{display:block;width:100%;height:100%;overflow:visible}
.web-entry-tile strong{font-size:clamp(23px,3vw,30px);line-height:1.45;overflow-wrap:normal;word-break:normal;hyphens:none;text-wrap:balance}
.web-entry-tile small{font-size:16px;line-height:1.5;max-width:250px;overflow-wrap:normal;word-break:normal;hyphens:none;text-wrap:balance;color:#476985}
.web-entry-tile:active .game-tile-face{transform:translateY(4px) scale(.985);box-shadow:inset 0 2px 1px #ffffffa8,0 3px 0 var(--entry-edge),0 8px 12px #35578115}
.web-entry-tile:focus-visible{outline:4px solid #0769df;outline-offset:7px;border-radius:34px}
.web-entry-note{margin-top:10px;margin-bottom:14px;font-size:15px;color:#526e87}
.web-entry-back{margin:12px auto 0;min-height:48px;min-width:150px}
@keyframes web-entry-reveal{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media(hover:hover){.web-entry-tile:hover .game-tile-face{transform:translateY(-3px)}}
@media(max-width:520px){.web-entry-choice{padding:24px 18px 30px}.web-entry-options{gap:14px}.web-entry-tile .game-tile-face{min-height:234px;padding:16px 10px 20px;border-radius:28px}.web-entry-symbol{width:min(100%,136px)}.web-entry-tile strong{font-size:23px}.web-entry-tile small{font-size:14px;line-height:1.5}.web-entry-intro{font-size:17px}}
@media(max-width:359px){.web-entry-options{grid-template-columns:minmax(0,1fr);max-width:290px;margin:auto;gap:22px}.web-entry-tile .game-tile-face{min-height:220px}.web-entry-symbol{width:134px}}
@media(prefers-reduced-motion:reduce){.web-entry-tile{animation:none}.web-entry-tile .game-tile-face{transition:none}}
body[data-motion=reduce] .web-entry-tile{animation:none}body[data-motion=reduce] .web-entry-tile .game-tile-face{transition:none}
.mountain-stage .mountain-canvas:focus-visible{outline:3px solid #fff;outline-offset:-5px;box-shadow:inset 0 0 0 7px #0966c6}

/* Responsive web surfaces: make room for whole words instead of splitting
   English words or Nepali syllables. These scopes also beat later course CSS. */
#app :is(.topic-tile-face,.topic-entry-face,.topic-tile-label,.language-option,.language-course,.settings-tile,.challenge-copy,.companion-face,.web-entry-tile,.word-tile,.progress-star) :is(strong,small),
#app :is(.learning-entry-label,.companion-hello,.onboarding-feedback-note,.sano-tip),
#app .learning-course-control .pill>.game-tile-face,
.coin-backdrop .coin-dialog :is(h2,h3,p,strong,small,.coin-buy,.coin-play-back){min-width:0;max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
#app :is(.topic-picker,.language-choice,.companion-choice,.difficulty-choices,.web-entry-choice,.grownup-settings,.language-library,.words-page),
#app :is(.topic-tile-face,.language-option .game-tile-face,.companion-face,.challenge-face,.settings-tile .game-tile-face,.language-course .game-tile-face){min-width:0;max-width:100%;box-sizing:border-box}
#app :is(.topic-landing-grid,.topic-media-row){grid-template-columns:repeat(auto-fit,minmax(min(100%,clamp(10rem,26vw,13.75rem)),1fr));align-items:stretch}
#app .topic-landing-grid>.topic-landing-tile{grid-column:auto;min-width:0}
#app .topic-landing-grid>.topic-landing-tile>.topic-tile-face{flex-direction:column;min-width:0;height:100%;gap:8px;padding:20px 16px}
#app .topic-tile-label{max-width:100%;min-width:0}
#app .word-tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr))}
.progress-backdrop .progress-stars{min-height:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
.progress-backdrop .progress-star small{max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
#app :is(.settings-grid,.language-course-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr))}
#app :is(.settings-tile,.language-course,.word-tile,.progress-star,.language-option,.companion-option,.challenge-tile,.web-entry-tile){min-width:0;min-height:44px}
#app .challenge-copy{min-width:0;max-width:100%}

/* Wide invitations stack their picture above the label on phones; text never
   has to squeeze into the narrow strip beside the artwork. */
@media(max-width:520px){
 #app :is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile,.topic-nepal-tile) .topic-tile-face{flex-direction:column;gap:12px;padding:20px 18px}
 #app :is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile,.topic-nepal-tile) .topic-tile-picture{flex:0 0 auto;width:112px;height:112px;min-height:112px}
 #app :is(.topic-practice-tile,.topic-talk-tile,.topic-adventure-tile,.topic-nepal-tile) .topic-tile-label{width:100%;flex:0 1 auto}
 #app .challenge-face{flex-wrap:wrap}
 #app .challenge-copy{flex:1 1 10rem}
 #app .challenge-arrow{margin-inline:auto}
}
@media(max-width:359px){
 #app :is(.language-choice-tiles,.companion-choices){grid-template-columns:minmax(0,1fr)}
 #app .companion-art-window{max-width:180px;margin-inline:auto}
 #app .language-choice{padding-inline:18px}
 #app .web-entry-choice{padding-inline:18px}
}
/* Short landscape pages scroll naturally, keeping every choice reachable. */
@media(max-height:540px) and (orientation:landscape){
 #app :is(.language-choice,.companion-choice,.web-entry-choice){min-height:0;padding-top:24px;padding-bottom:28px;justify-content:flex-start}
 #app .web-entry-tile .game-tile-face{min-height:220px}
 #app .web-entry-symbol{width:min(100%,124px)}
 #app .language-choice{gap:22px}
}

/* Coins use the same word-safe tiles inside a viewport-bounded, scrollable
   dialog. Safe-area padding protects the return control after rotation. */
.coin-backdrop{box-sizing:border-box;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:auto}
.coin-backdrop .coin-dialog{--coin-dialog-pad:clamp(16px,4vw,28px);width:min(650px,100%);min-width:0;max-width:100%;max-height:calc(100svh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)));max-height:calc(100dvh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)));padding:var(--coin-dialog-pad);overflow-y:auto;overscroll-behavior:contain}
.coin-backdrop .coin-dialog-top{top:calc(-1 * var(--coin-dialog-pad));margin:calc(-1 * var(--coin-dialog-pad)) calc(-1 * var(--coin-dialog-pad)) 20px;padding:12px;max-width:none}
.coin-backdrop .coin-dialog .coin-language-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,12.5rem),1fr));width:100%;min-width:0;gap:24px 18px}
.coin-backdrop .coin-dialog .coin-language{min-width:0;min-height:44px}
.coin-backdrop .coin-dialog .coin-language .game-tile-face{min-width:0;max-width:100%;height:100%;box-sizing:border-box}
.coin-backdrop .coin-dialog .coin-language .game-tile-face strong{overflow-wrap:normal;word-break:normal;hyphens:none;min-height:48px;height:auto}
.coin-backdrop .coin-dialog :is(.coin-buy,.coin-play-back,.coin-close){min-height:48px;min-width:44px;max-width:100%;box-sizing:border-box}

/* Sano stylesheet: topic-motion.css */
/* Generated from topic-motion.mjs; web and native share the same motion. */
.motion-worldFloat{transform:translate(0%,0%) rotate(-1deg) scale(1,1);opacity:1;animation:topic-art-worldFloat 8000ms linear infinite}
@keyframes topic-art-worldFloat{0%{transform:translate(0%,0%) rotate(-1deg) scale(1,1);opacity:1}25%{transform:translate(1%,-2%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0%,-3%) rotate(1deg) scale(1,1);opacity:1}75%{transform:translate(-1%,-2%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(-1deg) scale(1,1);opacity:1}}
.motion-worldBreathe{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-worldBreathe 8000ms linear infinite}
@keyframes topic-art-worldBreathe{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0%,-2%) rotate(0deg) scale(1.025,1.025);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-hop{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-hop 8000ms linear infinite}
@keyframes topic-art-hop{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}4%{transform:translate(0%,2%) rotate(0deg) scale(1.05,0.93);opacity:1}10%{transform:translate(0%,-13%) rotate(-5deg) scale(1,1);opacity:1}16%{transform:translate(0%,1%) rotate(3deg) scale(1,0.95);opacity:1}21.66667%{transform:translate(0%,-7%) rotate(2deg) scale(1,1);opacity:1}27.33333%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}33.33333%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}37.33333%{transform:translate(0%,2%) rotate(0deg) scale(1.05,0.93);opacity:1}43.33333%{transform:translate(0%,-13%) rotate(-5deg) scale(1,1);opacity:1}49.33333%{transform:translate(0%,1%) rotate(3deg) scale(1,0.95);opacity:1}55%{transform:translate(0%,-7%) rotate(2deg) scale(1,1);opacity:1}60.66667%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}66.66667%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}70.66667%{transform:translate(0%,2%) rotate(0deg) scale(1.05,0.93);opacity:1}76.66667%{transform:translate(0%,-13%) rotate(-5deg) scale(1,1);opacity:1}82.66667%{transform:translate(0%,1%) rotate(3deg) scale(1,0.95);opacity:1}88.33333%{transform:translate(0%,-7%) rotate(2deg) scale(1,1);opacity:1}94%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-cuddle{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-cuddle 8000ms linear infinite}
@keyframes topic-art-cuddle{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}11.66667%{transform:translate(0%,-3%) rotate(0deg) scale(0.91,1.04);opacity:1}21.66667%{transform:translate(0%,-3%) rotate(0deg) scale(0.91,1.04);opacity:1}33.33333%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}45%{transform:translate(0%,-3%) rotate(0deg) scale(0.91,1.04);opacity:1}55%{transform:translate(0%,-3%) rotate(0deg) scale(0.91,1.04);opacity:1}66.66667%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}78.33333%{transform:translate(0%,-3%) rotate(0deg) scale(0.91,1.04);opacity:1}88.33333%{transform:translate(0%,-3%) rotate(0deg) scale(0.91,1.04);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-wiggle{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-wiggle 8000ms linear infinite}
@keyframes topic-art-wiggle{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}7.33333%{transform:translate(0%,-3%) rotate(-11deg) scale(1,1);opacity:1}16.66667%{transform:translate(0%,-4%) rotate(10deg) scale(1,1);opacity:1}24.66667%{transform:translate(0%,-1%) rotate(-6deg) scale(1,1);opacity:1}33.33333%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}40.66667%{transform:translate(0%,-3%) rotate(-11deg) scale(1,1);opacity:1}50%{transform:translate(0%,-4%) rotate(10deg) scale(1,1);opacity:1}58%{transform:translate(0%,-1%) rotate(-6deg) scale(1,1);opacity:1}66.66667%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}74%{transform:translate(0%,-3%) rotate(-11deg) scale(1,1);opacity:1}83.33333%{transform:translate(0%,-4%) rotate(10deg) scale(1,1);opacity:1}91.33333%{transform:translate(0%,-1%) rotate(-6deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-sway{transform:translate(-2%,0%) rotate(-8deg) scale(1,1);opacity:1;animation:topic-art-sway 8000ms linear infinite}
@keyframes topic-art-sway{0%{transform:translate(-2%,0%) rotate(-8deg) scale(1,1);opacity:1}16.66667%{transform:translate(3%,0%) rotate(8deg) scale(1,1);opacity:1}33.33333%{transform:translate(-2%,0%) rotate(-8deg) scale(1,1);opacity:1}50%{transform:translate(3%,0%) rotate(8deg) scale(1,1);opacity:1}66.66667%{transform:translate(-2%,0%) rotate(-8deg) scale(1,1);opacity:1}83.33333%{transform:translate(3%,0%) rotate(8deg) scale(1,1);opacity:1}100%{transform:translate(-2%,0%) rotate(-8deg) scale(1,1);opacity:1}}
.motion-flutter{transform:translate(0%,0%) rotate(-3deg) scale(0.98,1);opacity:1;animation:topic-art-flutter 8000ms linear infinite}
@keyframes topic-art-flutter{0%{transform:translate(0%,0%) rotate(-3deg) scale(0.98,1);opacity:1}8.33333%{transform:translate(0%,-2%) rotate(2deg) scale(1.04,1);opacity:1}20%{transform:translate(0%,1%) rotate(-2deg) scale(0.97,1);opacity:1}33.33333%{transform:translate(0%,0%) rotate(-3deg) scale(0.98,1);opacity:1}41.66667%{transform:translate(0%,-2%) rotate(2deg) scale(1.04,1);opacity:1}53.33333%{transform:translate(0%,1%) rotate(-2deg) scale(0.97,1);opacity:1}66.66667%{transform:translate(0%,0%) rotate(-3deg) scale(0.98,1);opacity:1}75%{transform:translate(0%,-2%) rotate(2deg) scale(1.04,1);opacity:1}86.66667%{transform:translate(0%,1%) rotate(-2deg) scale(0.97,1);opacity:1}100%{transform:translate(0%,0%) rotate(-3deg) scale(0.98,1);opacity:1}}
.motion-dance{transform:translate(-2%,0%) rotate(-5deg) scale(1,1);opacity:1;animation:topic-art-dance 8000ms linear infinite}
@keyframes topic-art-dance{0%{transform:translate(-2%,0%) rotate(-5deg) scale(1,1);opacity:1}8.33333%{transform:translate(2%,-5%) rotate(3deg) scale(1,1);opacity:1}16.66667%{transform:translate(3%,0%) rotate(5deg) scale(1,1);opacity:1}25%{transform:translate(-2%,-5%) rotate(-4deg) scale(1,1);opacity:1}33.33333%{transform:translate(-2%,0%) rotate(-5deg) scale(1,1);opacity:1}41.66667%{transform:translate(2%,-5%) rotate(3deg) scale(1,1);opacity:1}50%{transform:translate(3%,0%) rotate(5deg) scale(1,1);opacity:1}58.33333%{transform:translate(-2%,-5%) rotate(-4deg) scale(1,1);opacity:1}66.66667%{transform:translate(-2%,0%) rotate(-5deg) scale(1,1);opacity:1}75%{transform:translate(2%,-5%) rotate(3deg) scale(1,1);opacity:1}83.33333%{transform:translate(3%,0%) rotate(5deg) scale(1,1);opacity:1}91.66667%{transform:translate(-2%,-5%) rotate(-4deg) scale(1,1);opacity:1}100%{transform:translate(-2%,0%) rotate(-5deg) scale(1,1);opacity:1}}
.motion-ride{transform:translate(-5%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-ride 8000ms linear infinite}
@keyframes topic-art-ride{0%{transform:translate(-5%,0%) rotate(0deg) scale(1,1);opacity:1}15%{transform:translate(5%,-2%) rotate(1deg) scale(1,1);opacity:1}30%{transform:translate(3%,0%) rotate(-1deg) scale(1,1);opacity:1}50%{transform:translate(-5%,0%) rotate(0deg) scale(1,1);opacity:1}65%{transform:translate(5%,-2%) rotate(1deg) scale(1,1);opacity:1}80%{transform:translate(3%,0%) rotate(-1deg) scale(1,1);opacity:1}100%{transform:translate(-5%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-heart{transform:translate(0%,2%) rotate(0deg) scale(0.7,0.7);opacity:0.25;animation:topic-art-heart 8000ms linear infinite}
@keyframes topic-art-heart{0%{transform:translate(0%,2%) rotate(0deg) scale(0.7,0.7);opacity:0.25}11.66667%{transform:translate(0%,-3%) rotate(0deg) scale(1,1);opacity:0.9}26.66667%{transform:translate(0%,-9%) rotate(0deg) scale(0.85,0.85);opacity:0}33.33333%{transform:translate(0%,2%) rotate(0deg) scale(0.7,0.7);opacity:0.25}45%{transform:translate(0%,-3%) rotate(0deg) scale(1,1);opacity:0.9}60%{transform:translate(0%,-9%) rotate(0deg) scale(0.85,0.85);opacity:0}66.66667%{transform:translate(0%,2%) rotate(0deg) scale(0.7,0.7);opacity:0.25}78.33333%{transform:translate(0%,-3%) rotate(0deg) scale(1,1);opacity:0.9}93.33333%{transform:translate(0%,-9%) rotate(0deg) scale(0.85,0.85);opacity:0}100%{transform:translate(0%,2%) rotate(0deg) scale(0.7,0.7);opacity:0.25}}
.motion-glow{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.08;animation:topic-art-glow 8000ms linear infinite}
@keyframes topic-art-glow{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.08}15%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.1}24%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.9}37.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.9}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.08}65%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.1}74%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.9}87.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.9}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.08}}
.motion-greetLeft{transform:translate(-4%,0%) rotate(-3deg) scale(1,1);opacity:1;animation:topic-art-greetLeft 8000ms linear infinite}
@keyframes topic-art-greetLeft{0%{transform:translate(-4%,0%) rotate(-3deg) scale(1,1);opacity:1}15%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}32.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(-4%,0%) rotate(-3deg) scale(1,1);opacity:1}65%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}82.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(-4%,0%) rotate(-3deg) scale(1,1);opacity:1}}
.motion-greetRight{transform:translate(4%,0%) rotate(3deg) scale(1,1);opacity:1;animation:topic-art-greetRight 8000ms linear infinite}
@keyframes topic-art-greetRight{0%{transform:translate(4%,0%) rotate(3deg) scale(1,1);opacity:1}15%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}32.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(4%,0%) rotate(3deg) scale(1,1);opacity:1}65%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}82.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(4%,0%) rotate(3deg) scale(1,1);opacity:1}}
.motion-day{transform:translate(0%,0%) rotate(0deg) scale(0.9,0.9);opacity:1;animation:topic-art-day 8000ms linear infinite}
@keyframes topic-art-day{0%{transform:translate(0%,0%) rotate(0deg) scale(0.9,0.9);opacity:1}35%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}48%{transform:translate(0%,0%) rotate(0deg) scale(0.85,0.85);opacity:0}85%{transform:translate(0%,0%) rotate(0deg) scale(0.85,0.85);opacity:0}100%{transform:translate(0%,0%) rotate(0deg) scale(0.9,0.9);opacity:1}}
.motion-night{transform:translate(0%,4%) rotate(0deg) scale(1,1);opacity:0;animation:topic-art-night 8000ms linear infinite}
@keyframes topic-art-night{0%{transform:translate(0%,4%) rotate(0deg) scale(1,1);opacity:0}35%{transform:translate(0%,4%) rotate(0deg) scale(1,1);opacity:0}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}85%{transform:translate(0%,-2%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,4%) rotate(0deg) scale(1,1);opacity:0}}
.motion-cloud{transform:translate(-13%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-cloud 8000ms linear infinite}
@keyframes topic-art-cloud{0%{transform:translate(-13%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(13%,3%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(-13%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-steam{transform:translate(0%,3%) rotate(0deg) scale(1,1);opacity:0.2;animation:topic-art-steam 8000ms linear infinite}
@keyframes topic-art-steam{0%{transform:translate(0%,3%) rotate(0deg) scale(1,1);opacity:0.2}15%{transform:translate(0%,-2%) rotate(0deg) scale(1,1);opacity:0.7}28.33333%{transform:translate(0%,-7%) rotate(0deg) scale(1,1);opacity:0}33.33333%{transform:translate(0%,3%) rotate(0deg) scale(1,1);opacity:0.2}48.33333%{transform:translate(0%,-2%) rotate(0deg) scale(1,1);opacity:0.7}61.66667%{transform:translate(0%,-7%) rotate(0deg) scale(1,1);opacity:0}66.66667%{transform:translate(0%,3%) rotate(0deg) scale(1,1);opacity:0.2}81.66667%{transform:translate(0%,-2%) rotate(0deg) scale(1,1);opacity:0.7}95%{transform:translate(0%,-7%) rotate(0deg) scale(1,1);opacity:0}100%{transform:translate(0%,3%) rotate(0deg) scale(1,1);opacity:0.2}}
.motion-colourRed{transform:translate(-6%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-colourRed 8000ms linear infinite}
@keyframes topic-art-colourRed{0%{transform:translate(-6%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(15%,-5%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(-6%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-colourBlue{transform:translate(6%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-colourBlue 8000ms linear infinite}
@keyframes topic-art-colourBlue{0%{transform:translate(6%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(-15%,5%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(6%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-pencil{transform:translate(-5%,-5%) rotate(-4deg) scale(1,1);opacity:1;animation:topic-art-pencil 8000ms linear infinite}
@keyframes topic-art-pencil{0%{transform:translate(-5%,-5%) rotate(-4deg) scale(1,1);opacity:1}9%{transform:translate(6%,-9%) rotate(3deg) scale(1,1);opacity:1}18%{transform:translate(11%,-3%) rotate(-2deg) scale(1,1);opacity:1}27.5%{transform:translate(-2%,3%) rotate(4deg) scale(1,1);opacity:1}37%{transform:translate(9%,6%) rotate(0deg) scale(1,1);opacity:1}43%{transform:translate(5%,-4%) rotate(4deg) scale(1,1);opacity:1}50%{transform:translate(-5%,-5%) rotate(-4deg) scale(1,1);opacity:1}59%{transform:translate(6%,-9%) rotate(3deg) scale(1,1);opacity:1}68%{transform:translate(11%,-3%) rotate(-2deg) scale(1,1);opacity:1}77.5%{transform:translate(-2%,3%) rotate(4deg) scale(1,1);opacity:1}87%{transform:translate(9%,6%) rotate(0deg) scale(1,1);opacity:1}93%{transform:translate(5%,-4%) rotate(4deg) scale(1,1);opacity:1}100%{transform:translate(-5%,-5%) rotate(-4deg) scale(1,1);opacity:1}}
.motion-ink{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.15;animation:topic-art-ink 8000ms linear infinite}
@keyframes topic-art-ink{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.15}22.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}40%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.15}72.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}90%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0.15}}
.motion-keyOne{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-keyOne 8000ms linear infinite}
@keyframes topic-art-keyOne{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}3%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}6%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}28%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}31%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}53%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}56%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}78%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}81%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-keyTwo{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-keyTwo 8000ms linear infinite}
@keyframes topic-art-keyTwo{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}6.25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}9.5%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}12.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}31.25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}34.5%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}37.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}56.25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}59.5%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}62.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}81.25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}84.5%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}87.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-keyThree{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-keyThree 8000ms linear infinite}
@keyframes topic-art-keyThree{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}12.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}15.75%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}18.75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}25%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}37.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}40.75%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}43.75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}62.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}65.75%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}68.75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}87.5%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}90.75%{transform:translate(0%,2.5%) rotate(0deg) scale(1,0.97);opacity:1}93.75%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-chaseBoy{transform:translate(6%,68%) rotate(0deg) scale(0.9296,0.9296);opacity:1;animation:topic-art-chaseBoy 8000ms linear infinite}
@keyframes topic-art-chaseBoy{0%{transform:translate(6%,68%) rotate(0deg) scale(0.9296,0.9296);opacity:1}1.5%{transform:translate(5.11328125%,65.0224609375%) rotate(0deg) scale(0.9230494140625001,0.9230494140625001);opacity:1}3%{transform:translate(3.75%,61.7421875%) rotate(0deg) scale(0.9158328125,0.9158328125);opacity:1}4.5%{transform:translate(2.16796875%,58.2001953125%) rotate(0deg) scale(0.9080404296875,0.9080404296875);opacity:1}6%{transform:translate(0.625%,54.4375%) rotate(0deg) scale(0.8997625,0.8997625);opacity:1}7.5%{transform:translate(0%,50.4951171875%) rotate(0deg) scale(0.8910892578125,0.8910892578125);opacity:1}9%{transform:translate(0%,46.4140625%) rotate(0deg) scale(0.8821109375,0.8821109375);opacity:1}10.5%{transform:translate(0%,42.2353515625%) rotate(0deg) scale(0.8729177734375,0.8729177734375);opacity:1}12%{transform:translate(0%,38%) rotate(0deg) scale(0.8636,0.8636);opacity:1}13.5%{transform:translate(2.3583984375%,33.291015625%) rotate(0deg) scale(0.8532402343750001,0.8532402343750001);opacity:1}15%{transform:translate(5.6796875%,27.890625%) rotate(0deg) scale(0.841359375,0.841359375);opacity:1}16.5%{transform:translate(9.7705078125%,22.138671875%) rotate(0deg) scale(0.828705078125,0.828705078125);opacity:1}18%{transform:translate(14.4375%,16.375%) rotate(0deg) scale(0.816025,0.816025);opacity:1}19.5%{transform:translate(19.4873046875%,10.939453125%) rotate(0deg) scale(0.804066796875,0.804066796875);opacity:0}21%{transform:translate(24.7265625%,6.171875%) rotate(0deg) scale(0.793578125,0.793578125);opacity:0}22.5%{transform:translate(29.9619140625%,2.412109375%) rotate(0deg) scale(0.785306640625,0.785306640625);opacity:0}24%{transform:translate(35%,0%) rotate(0deg) scale(0.78,0.78);opacity:0}25.25%{transform:translate(40.1357421875%,0%) rotate(0deg) scale(0.78,0.78);opacity:0}26.5%{transform:translate(45.6796875%,0%) rotate(0deg) scale(0.78,0.78);opacity:0}27.75%{transform:translate(51.4619140625%,0%) rotate(0deg) scale(0.78,0.78);opacity:0}29%{transform:translate(57.3125%,1.5%) rotate(0deg) scale(0.7833,0.7833);opacity:0}30.25%{transform:translate(63.0615234375%,3.69140625%) rotate(0deg) scale(0.7881210937500001,0.7881210937500001);opacity:0}31.5%{transform:translate(68.5390625%,6.28125%) rotate(0deg) scale(0.79381875,0.79381875);opacity:0}32.75%{transform:translate(73.5751953125%,9.10546875%) rotate(0deg) scale(0.80003203125,0.80003203125);opacity:0}34%{transform:translate(78%,12%) rotate(0deg) scale(0.8064,0.8064);opacity:0}35.25%{transform:translate(82.0283203125%,15.15625%) rotate(0deg) scale(0.81334375,0.81334375);opacity:0}36.5%{transform:translate(85.9140625%,18.8125%) rotate(0deg) scale(0.8213875,0.8213875);opacity:1}37.75%{transform:translate(89.5458984375%,22.875%) rotate(0deg) scale(0.830325,0.830325);opacity:1}39%{transform:translate(92.8125%,27.25%) rotate(0deg) scale(0.83995,0.83995);opacity:1}40.25%{transform:translate(95.6025390625%,31.84375%) rotate(0deg) scale(0.8500562500000001,0.8500562500000001);opacity:1}41.5%{transform:translate(97.8046875%,36.5625%) rotate(0deg) scale(0.8604375000000001,0.8604375000000001);opacity:1}42.75%{transform:translate(99.3076171875%,41.3125%) rotate(0deg) scale(0.8708875,0.8708875);opacity:1}44%{transform:translate(100%,46%) rotate(0deg) scale(0.8812,0.8812);opacity:1}45.125%{transform:translate(99.896484375%,50.9453125%) rotate(0deg) scale(0.8920796875,0.8920796875);opacity:1}46.25%{transform:translate(99.109375%,56.375%) rotate(0deg) scale(0.9040250000000001,0.9040250000000001);opacity:1}47.375%{transform:translate(97.673828125%,62.0546875%) rotate(0deg) scale(0.9165203125000001,0.9165203125000001);opacity:1}48.5%{transform:translate(95.625%,67.75%) rotate(0deg) scale(0.92905,0.92905);opacity:1}49.625%{transform:translate(92.998046875%,73.2265625%) rotate(0deg) scale(0.9410984375,0.9410984375);opacity:1}50.75%{transform:translate(89.828125%,78.25%) rotate(0deg) scale(0.95215,0.95215);opacity:1}51.875%{transform:translate(86.150390625%,82.5859375%) rotate(0deg) scale(0.9616890625000001,0.9616890625000001);opacity:1}53%{transform:translate(82%,86%) rotate(0deg) scale(0.9692000000000001,0.9692000000000001);opacity:1}54.125%{transform:translate(76.771484375%,88.41796875%) rotate(0deg) scale(0.97451953125,0.97451953125);opacity:1}55.25%{transform:translate(70.171875%,90.03125%) rotate(0deg) scale(0.97806875,0.97806875);opacity:1}56.375%{transform:translate(62.705078125%,91.00390625%) rotate(0deg) scale(0.98020859375,0.98020859375);opacity:1}57.5%{transform:translate(54.875%,91.5%) rotate(0deg) scale(0.9813000000000001,0.9813000000000001);opacity:1}58.625%{transform:translate(47.185546875%,91.68359375%) rotate(0deg) scale(0.98170390625,0.98170390625);opacity:1}59.75%{transform:translate(40.140625%,91.71875%) rotate(0deg) scale(0.98178125,0.98178125);opacity:1}60.875%{transform:translate(34.244140625%,91.76953125%) rotate(0deg) scale(0.98189296875,0.98189296875);opacity:1}62%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}64.625%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}67.25%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}69.875%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}72.5%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}75.125%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}77.75%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}80.375%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}83%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}84.25%{transform:translate(28.2568359375%,91.3466796875%) rotate(0deg) scale(0.9809626953125,0.9809626953125);opacity:1}85.5%{transform:translate(25.8046875%,90.5234375%) rotate(0deg) scale(0.9791515625,0.9791515625);opacity:1}86.75%{transform:translate(22.8720703125%,89.5478515625%) rotate(0deg) scale(0.9770052734375001,0.9770052734375001);opacity:1}88%{transform:translate(19.6875%,88.4375%) rotate(0deg) scale(0.9745625,0.9745625);opacity:1}89.25%{transform:translate(16.4794921875%,87.2099609375%) rotate(0deg) scale(0.9718619140625,0.9718619140625);opacity:1}90.5%{transform:translate(13.4765625%,85.8828125%) rotate(0deg) scale(0.9689421875,0.9689421875);opacity:1}91.75%{transform:translate(10.9072265625%,84.4736328125%) rotate(0deg) scale(0.9658419921875,0.9658419921875);opacity:1}93%{transform:translate(9%,83%) rotate(0deg) scale(0.9626,0.9626);opacity:1}93.875%{transform:translate(7.7841796875%,81.5146484375%) rotate(0deg) scale(0.9593322265625001,0.9593322265625001);opacity:1}94.75%{transform:translate(7.0546875%,80.0234375%) rotate(0deg) scale(0.9560515625,0.9560515625);opacity:1}95.625%{transform:translate(6.6884765625%,78.4736328125%) rotate(0deg) scale(0.9526419921875,0.9526419921875);opacity:1}96.5%{transform:translate(6.5625%,76.8125%) rotate(0deg) scale(0.9489875000000001,0.9489875000000001);opacity:1}97.375%{transform:translate(6.5537109375%,74.9873046875%) rotate(0deg) scale(0.9449720703125,0.9449720703125);opacity:1}98.25%{transform:translate(6.5390625%,72.9453125%) rotate(0deg) scale(0.9404796875000001,0.9404796875000001);opacity:1}99.125%{transform:translate(6.3955078125%,70.6337890625%) rotate(0deg) scale(0.9353943359375001,0.9353943359375001);opacity:1}100%{transform:translate(6%,68%) rotate(0deg) scale(0.9296,0.9296);opacity:1}}
.motion-chaseGirl{transform:translate(33%,4%) rotate(0deg) scale(0.7888000000000001,0.7888000000000001);opacity:0;animation:topic-art-chaseGirl 8000ms linear infinite}
@keyframes topic-art-chaseGirl{0%{transform:translate(33%,4%) rotate(0deg) scale(0.7888000000000001,0.7888000000000001);opacity:0}1.5%{transform:translate(35.2314453125%,3.7001953125%) rotate(0deg) scale(0.7881404296875,0.7881404296875);opacity:0}3%{transform:translate(39.7578125%,3.3828125%) rotate(0deg) scale(0.7874421875000001,0.7874421875000001);opacity:0}4.5%{transform:translate(45.9521484375%,3.1708984375%) rotate(0deg) scale(0.7869759765625001,0.7869759765625001);opacity:0}6%{transform:translate(53.1875%,3.1875%) rotate(0deg) scale(0.7870125,0.7870125);opacity:0}7.5%{transform:translate(60.8369140625%,3.5556640625%) rotate(0deg) scale(0.7878224609375001,0.7878224609375001);opacity:0}9%{transform:translate(68.2734375%,4.3984375%) rotate(0deg) scale(0.7896765625000001,0.7896765625000001);opacity:0}10.5%{transform:translate(74.8701171875%,5.8388671875%) rotate(0deg) scale(0.7928455078125001,0.7928455078125001);opacity:0}12%{transform:translate(80%,8%) rotate(0deg) scale(0.7976,0.7976);opacity:0}13.375%{transform:translate(84.05859375%,10.9912109375%) rotate(0deg) scale(0.8041806640625,0.8041806640625);opacity:0}14.75%{transform:translate(87.8125%,14.7421875%) rotate(0deg) scale(0.8124328125,0.8124328125);opacity:1}16.125%{transform:translate(91.19140625%,19.1064453125%) rotate(0deg) scale(0.8220341796875,0.8220341796875);opacity:1}17.5%{transform:translate(94.125%,23.9375%) rotate(0deg) scale(0.8326625000000001,0.8326625000000001);opacity:1}18.875%{transform:translate(96.54296875%,29.0888671875%) rotate(0deg) scale(0.8439955078125,0.8439955078125);opacity:1}20.25%{transform:translate(98.375%,34.4140625%) rotate(0deg) scale(0.8557109375,0.8557109375);opacity:1}21.625%{transform:translate(99.55078125%,39.7666015625%) rotate(0deg) scale(0.8674865234375,0.8674865234375);opacity:1}23%{transform:translate(100%,45%) rotate(0deg) scale(0.879,0.879);opacity:1}24.375%{transform:translate(99.716796875%,50.4814453125%) rotate(0deg) scale(0.8910591796875,0.8910591796875);opacity:1}25.75%{transform:translate(98.765625%,56.5078125%) rotate(0deg) scale(0.9043171875,0.9043171875);opacity:1}27.125%{transform:translate(97.181640625%,62.8271484375%) rotate(0deg) scale(0.9182197265625001,0.9182197265625001);opacity:1}28.5%{transform:translate(95%,69.1875%) rotate(0deg) scale(0.9322125,0.9322125);opacity:1}29.875%{transform:translate(92.255859375%,75.3369140625%) rotate(0deg) scale(0.9457412109375001,0.9457412109375001);opacity:1}31.25%{transform:translate(88.984375%,81.0234375%) rotate(0deg) scale(0.9582515625000001,0.9582515625000001);opacity:1}32.625%{transform:translate(85.220703125%,85.9951171875%) rotate(0deg) scale(0.9691892578125001,0.9691892578125001);opacity:1}34%{transform:translate(81%,90%) rotate(0deg) scale(0.978,0.978);opacity:1}35.125%{transform:translate(75.921875%,93.259765625%) rotate(0deg) scale(0.985171484375,0.985171484375);opacity:1}36.25%{transform:translate(69.78125%,96.109375%) rotate(0deg) scale(0.9914406250000001,0.9914406250000001);opacity:1}37.375%{transform:translate(62.90625%,98.466796875%) rotate(0deg) scale(0.996626953125,0.996626953125);opacity:1}38.5%{transform:translate(55.625%,100%) rotate(0deg) scale(1,1);opacity:1}39.625%{transform:translate(48.265625%,100%) rotate(0deg) scale(1,1);opacity:1}40.75%{transform:translate(41.15625%,100%) rotate(0deg) scale(1,1);opacity:1}41.875%{transform:translate(34.625%,100%) rotate(0deg) scale(1,1);opacity:1}43%{transform:translate(29%,100%) rotate(0deg) scale(1,1);opacity:1}43.875%{transform:translate(23.92578125%,97.0322265625%) rotate(0deg) scale(0.9934708984375,0.9934708984375);opacity:1}44.75%{transform:translate(18.9375%,92.1953125%) rotate(0deg) scale(0.9828296875,0.9828296875);opacity:1}45.625%{transform:translate(14.19921875%,86.1513671875%) rotate(0deg) scale(0.9695330078125001,0.9695330078125001);opacity:1}46.5%{transform:translate(9.875%,79.5625%) rotate(0deg) scale(0.9550375,0.9550375);opacity:1}47.375%{transform:translate(6.12890625%,73.0908203125%) rotate(0deg) scale(0.9407998046875,0.9407998046875);opacity:1}48.25%{transform:translate(3.125%,67.3984375%) rotate(0deg) scale(0.9282765625,0.9282765625);opacity:1}49.125%{transform:translate(1.02734375%,63.1474609375%) rotate(0deg) scale(0.9189244140625,0.9189244140625);opacity:1}50%{transform:translate(0%,61%) rotate(0deg) scale(0.9142,0.9142);opacity:1}50.75%{transform:translate(0.15234375%,61.1923828125%) rotate(0deg) scale(0.9146232421875,0.9146232421875);opacity:1}51.5%{transform:translate(1.375%,63.1953125%) rotate(0deg) scale(0.9190296875,0.9190296875);opacity:1}52.25%{transform:translate(3.50390625%,66.5224609375%) rotate(0deg) scale(0.9263494140625,0.9263494140625);opacity:1}53%{transform:translate(6.375%,70.6875%) rotate(0deg) scale(0.9355125,0.9355125);opacity:1}53.75%{transform:translate(9.82421875%,75.2041015625%) rotate(0deg) scale(0.9454490234375,0.9454490234375);opacity:1}54.5%{transform:translate(13.6875%,79.5859375%) rotate(0deg) scale(0.9550890625,0.9550890625);opacity:1}55.25%{transform:translate(17.80078125%,83.3466796875%) rotate(0deg) scale(0.9633626953125001,0.9633626953125001);opacity:1}56%{transform:translate(22%,86%) rotate(0deg) scale(0.9692000000000001,0.9692000000000001);opacity:1}57%{transform:translate(26.83203125%,87.7001953125%) rotate(0deg) scale(0.9729404296875,0.9729404296875);opacity:1}58%{transform:translate(32.6875%,88.9765625%) rotate(0deg) scale(0.9757484375000001,0.9757484375000001);opacity:1}59%{transform:translate(39.16796875%,89.9052734375%) rotate(0deg) scale(0.9777916015625,0.9777916015625);opacity:1}60%{transform:translate(45.875%,90.5625%) rotate(0deg) scale(0.9792375,0.9792375);opacity:1}61%{transform:translate(52.41015625%,91.0244140625%) rotate(0deg) scale(0.9802537109375,0.9802537109375);opacity:1}62%{transform:translate(58.375%,91.3671875%) rotate(0deg) scale(0.9810078125,0.9810078125);opacity:1}63%{transform:translate(63.37109375%,91.6669921875%) rotate(0deg) scale(0.9816673828125,0.9816673828125);opacity:1}64%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}66.375%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}68.75%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}71.125%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}73.5%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}75.875%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}78.25%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}80.625%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}83%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:1}83.875%{transform:translate(69.095703125%,88.2783203125%) rotate(0deg) scale(0.9742123046875,0.9742123046875);opacity:1}84.75%{transform:translate(72.234375%,83.2265625%) rotate(0deg) scale(0.9630984375,0.9630984375);opacity:1}85.625%{transform:translate(76.005859375%,77.2021484375%) rotate(0deg) scale(0.9498447265625001,0.9498447265625001);opacity:1}86.5%{transform:translate(80%,70.5625%) rotate(0deg) scale(0.9352375,0.9352375);opacity:1}87.375%{transform:translate(83.806640625%,63.6650390625%) rotate(0deg) scale(0.9200630859375001,0.9200630859375001);opacity:1}88.25%{transform:translate(87.015625%,56.8671875%) rotate(0deg) scale(0.9051078125,0.9051078125);opacity:1}89.125%{transform:translate(89.216796875%,50.5263671875%) rotate(0deg) scale(0.8911580078125,0.8911580078125);opacity:1}90%{transform:translate(90%,45%) rotate(0deg) scale(0.879,0.879);opacity:1}90.75%{transform:translate(89.310546875%,40.0341796875%) rotate(0deg) scale(0.8680751953125,0.8680751953125);opacity:1}91.5%{transform:translate(87.515625%,35.1796875%) rotate(0deg) scale(0.8573953125,0.8573953125);opacity:1}92.25%{transform:translate(84.837890625%,30.5009765625%) rotate(0deg) scale(0.8471021484375001,0.8471021484375001);opacity:0}93%{transform:translate(81.5%,26.0625%) rotate(0deg) scale(0.8373375000000001,0.8373375000000001);opacity:0}93.75%{transform:translate(77.724609375%,21.9287109375%) rotate(0deg) scale(0.8282431640625,0.8282431640625);opacity:0}94.5%{transform:translate(73.734375%,18.1640625%) rotate(0deg) scale(0.8199609375,0.8199609375);opacity:0}95.25%{transform:translate(69.751953125%,14.8330078125%) rotate(0deg) scale(0.8126326171875,0.8126326171875);opacity:0}96%{transform:translate(66%,12%) rotate(0deg) scale(0.8064,0.8064);opacity:0}96.5%{transform:translate(61.7587890625%,9.7216796875%) rotate(0deg) scale(0.8013876953125,0.8013876953125);opacity:0}97%{transform:translate(56.5078125%,7.9609375%) rotate(0deg) scale(0.7975140625,0.7975140625);opacity:0}97.5%{transform:translate(50.7685546875%,6.6416015625%) rotate(0deg) scale(0.7946115234375001,0.7946115234375001);opacity:0}98%{transform:translate(45.0625%,5.6875%) rotate(0deg) scale(0.7925125000000001,0.7925125000000001);opacity:0}98.5%{transform:translate(39.9111328125%,5.0224609375%) rotate(0deg) scale(0.7910494140625001,0.7910494140625001);opacity:0}99%{transform:translate(35.8359375%,4.5703125%) rotate(0deg) scale(0.7900546875000001,0.7900546875000001);opacity:0}99.5%{transform:translate(33.3583984375%,4.2548828125%) rotate(0deg) scale(0.7893607421875001,0.7893607421875001);opacity:0}100%{transform:translate(33%,4%) rotate(0deg) scale(0.7888000000000001,0.7888000000000001);opacity:0}}
.motion-chaseBoyBack{transform:translate(6%,68%) rotate(0deg) scale(0.9296,0.9296);opacity:0;animation:topic-art-chaseBoyBack 8000ms linear infinite}
@keyframes topic-art-chaseBoyBack{0%{transform:translate(6%,68%) rotate(0deg) scale(0.9296,0.9296);opacity:0}1.5%{transform:translate(5.11328125%,65.0224609375%) rotate(0deg) scale(0.9230494140625001,0.9230494140625001);opacity:0}3%{transform:translate(3.75%,61.7421875%) rotate(0deg) scale(0.9158328125,0.9158328125);opacity:0}4.5%{transform:translate(2.16796875%,58.2001953125%) rotate(0deg) scale(0.9080404296875,0.9080404296875);opacity:0}6%{transform:translate(0.625%,54.4375%) rotate(0deg) scale(0.8997625,0.8997625);opacity:0}7.5%{transform:translate(0%,50.4951171875%) rotate(0deg) scale(0.8910892578125,0.8910892578125);opacity:0}9%{transform:translate(0%,46.4140625%) rotate(0deg) scale(0.8821109375,0.8821109375);opacity:0}10.5%{transform:translate(0%,42.2353515625%) rotate(0deg) scale(0.8729177734375,0.8729177734375);opacity:0}12%{transform:translate(0%,38%) rotate(0deg) scale(0.8636,0.8636);opacity:0}13.5%{transform:translate(2.3583984375%,33.291015625%) rotate(0deg) scale(0.8532402343750001,0.8532402343750001);opacity:0}15%{transform:translate(5.6796875%,27.890625%) rotate(0deg) scale(0.841359375,0.841359375);opacity:0}16.5%{transform:translate(9.7705078125%,22.138671875%) rotate(0deg) scale(0.828705078125,0.828705078125);opacity:0}18%{transform:translate(14.4375%,16.375%) rotate(0deg) scale(0.816025,0.816025);opacity:0}19.5%{transform:translate(19.4873046875%,10.939453125%) rotate(0deg) scale(0.804066796875,0.804066796875);opacity:1}21%{transform:translate(24.7265625%,6.171875%) rotate(0deg) scale(0.793578125,0.793578125);opacity:1}22.5%{transform:translate(29.9619140625%,2.412109375%) rotate(0deg) scale(0.785306640625,0.785306640625);opacity:1}24%{transform:translate(35%,0%) rotate(0deg) scale(0.78,0.78);opacity:1}25.25%{transform:translate(40.1357421875%,0%) rotate(0deg) scale(0.78,0.78);opacity:1}26.5%{transform:translate(45.6796875%,0%) rotate(0deg) scale(0.78,0.78);opacity:1}27.75%{transform:translate(51.4619140625%,0%) rotate(0deg) scale(0.78,0.78);opacity:1}29%{transform:translate(57.3125%,1.5%) rotate(0deg) scale(0.7833,0.7833);opacity:1}30.25%{transform:translate(63.0615234375%,3.69140625%) rotate(0deg) scale(0.7881210937500001,0.7881210937500001);opacity:1}31.5%{transform:translate(68.5390625%,6.28125%) rotate(0deg) scale(0.79381875,0.79381875);opacity:1}32.75%{transform:translate(73.5751953125%,9.10546875%) rotate(0deg) scale(0.80003203125,0.80003203125);opacity:1}34%{transform:translate(78%,12%) rotate(0deg) scale(0.8064,0.8064);opacity:1}35.25%{transform:translate(82.0283203125%,15.15625%) rotate(0deg) scale(0.81334375,0.81334375);opacity:1}36.5%{transform:translate(85.9140625%,18.8125%) rotate(0deg) scale(0.8213875,0.8213875);opacity:0}37.75%{transform:translate(89.5458984375%,22.875%) rotate(0deg) scale(0.830325,0.830325);opacity:0}39%{transform:translate(92.8125%,27.25%) rotate(0deg) scale(0.83995,0.83995);opacity:0}40.25%{transform:translate(95.6025390625%,31.84375%) rotate(0deg) scale(0.8500562500000001,0.8500562500000001);opacity:0}41.5%{transform:translate(97.8046875%,36.5625%) rotate(0deg) scale(0.8604375000000001,0.8604375000000001);opacity:0}42.75%{transform:translate(99.3076171875%,41.3125%) rotate(0deg) scale(0.8708875,0.8708875);opacity:0}44%{transform:translate(100%,46%) rotate(0deg) scale(0.8812,0.8812);opacity:0}45.125%{transform:translate(99.896484375%,50.9453125%) rotate(0deg) scale(0.8920796875,0.8920796875);opacity:0}46.25%{transform:translate(99.109375%,56.375%) rotate(0deg) scale(0.9040250000000001,0.9040250000000001);opacity:0}47.375%{transform:translate(97.673828125%,62.0546875%) rotate(0deg) scale(0.9165203125000001,0.9165203125000001);opacity:0}48.5%{transform:translate(95.625%,67.75%) rotate(0deg) scale(0.92905,0.92905);opacity:0}49.625%{transform:translate(92.998046875%,73.2265625%) rotate(0deg) scale(0.9410984375,0.9410984375);opacity:0}50.75%{transform:translate(89.828125%,78.25%) rotate(0deg) scale(0.95215,0.95215);opacity:0}51.875%{transform:translate(86.150390625%,82.5859375%) rotate(0deg) scale(0.9616890625000001,0.9616890625000001);opacity:0}53%{transform:translate(82%,86%) rotate(0deg) scale(0.9692000000000001,0.9692000000000001);opacity:0}54.125%{transform:translate(76.771484375%,88.41796875%) rotate(0deg) scale(0.97451953125,0.97451953125);opacity:0}55.25%{transform:translate(70.171875%,90.03125%) rotate(0deg) scale(0.97806875,0.97806875);opacity:0}56.375%{transform:translate(62.705078125%,91.00390625%) rotate(0deg) scale(0.98020859375,0.98020859375);opacity:0}57.5%{transform:translate(54.875%,91.5%) rotate(0deg) scale(0.9813000000000001,0.9813000000000001);opacity:0}58.625%{transform:translate(47.185546875%,91.68359375%) rotate(0deg) scale(0.98170390625,0.98170390625);opacity:0}59.75%{transform:translate(40.140625%,91.71875%) rotate(0deg) scale(0.98178125,0.98178125);opacity:0}60.875%{transform:translate(34.244140625%,91.76953125%) rotate(0deg) scale(0.98189296875,0.98189296875);opacity:0}62%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}64.625%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}67.25%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}69.875%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}72.5%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}75.125%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}77.75%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}80.375%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}83%{transform:translate(30%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}84.25%{transform:translate(28.2568359375%,91.3466796875%) rotate(0deg) scale(0.9809626953125,0.9809626953125);opacity:0}85.5%{transform:translate(25.8046875%,90.5234375%) rotate(0deg) scale(0.9791515625,0.9791515625);opacity:0}86.75%{transform:translate(22.8720703125%,89.5478515625%) rotate(0deg) scale(0.9770052734375001,0.9770052734375001);opacity:0}88%{transform:translate(19.6875%,88.4375%) rotate(0deg) scale(0.9745625,0.9745625);opacity:0}89.25%{transform:translate(16.4794921875%,87.2099609375%) rotate(0deg) scale(0.9718619140625,0.9718619140625);opacity:0}90.5%{transform:translate(13.4765625%,85.8828125%) rotate(0deg) scale(0.9689421875,0.9689421875);opacity:0}91.75%{transform:translate(10.9072265625%,84.4736328125%) rotate(0deg) scale(0.9658419921875,0.9658419921875);opacity:0}93%{transform:translate(9%,83%) rotate(0deg) scale(0.9626,0.9626);opacity:0}93.875%{transform:translate(7.7841796875%,81.5146484375%) rotate(0deg) scale(0.9593322265625001,0.9593322265625001);opacity:0}94.75%{transform:translate(7.0546875%,80.0234375%) rotate(0deg) scale(0.9560515625,0.9560515625);opacity:0}95.625%{transform:translate(6.6884765625%,78.4736328125%) rotate(0deg) scale(0.9526419921875,0.9526419921875);opacity:0}96.5%{transform:translate(6.5625%,76.8125%) rotate(0deg) scale(0.9489875000000001,0.9489875000000001);opacity:0}97.375%{transform:translate(6.5537109375%,74.9873046875%) rotate(0deg) scale(0.9449720703125,0.9449720703125);opacity:0}98.25%{transform:translate(6.5390625%,72.9453125%) rotate(0deg) scale(0.9404796875000001,0.9404796875000001);opacity:0}99.125%{transform:translate(6.3955078125%,70.6337890625%) rotate(0deg) scale(0.9353943359375001,0.9353943359375001);opacity:0}100%{transform:translate(6%,68%) rotate(0deg) scale(0.9296,0.9296);opacity:0}}
.motion-chaseGirlBack{transform:translate(33%,4%) rotate(0deg) scale(0.7888000000000001,0.7888000000000001);opacity:1;animation:topic-art-chaseGirlBack 8000ms linear infinite}
@keyframes topic-art-chaseGirlBack{0%{transform:translate(33%,4%) rotate(0deg) scale(0.7888000000000001,0.7888000000000001);opacity:1}1.5%{transform:translate(35.2314453125%,3.7001953125%) rotate(0deg) scale(0.7881404296875,0.7881404296875);opacity:1}3%{transform:translate(39.7578125%,3.3828125%) rotate(0deg) scale(0.7874421875000001,0.7874421875000001);opacity:1}4.5%{transform:translate(45.9521484375%,3.1708984375%) rotate(0deg) scale(0.7869759765625001,0.7869759765625001);opacity:1}6%{transform:translate(53.1875%,3.1875%) rotate(0deg) scale(0.7870125,0.7870125);opacity:1}7.5%{transform:translate(60.8369140625%,3.5556640625%) rotate(0deg) scale(0.7878224609375001,0.7878224609375001);opacity:1}9%{transform:translate(68.2734375%,4.3984375%) rotate(0deg) scale(0.7896765625000001,0.7896765625000001);opacity:1}10.5%{transform:translate(74.8701171875%,5.8388671875%) rotate(0deg) scale(0.7928455078125001,0.7928455078125001);opacity:1}12%{transform:translate(80%,8%) rotate(0deg) scale(0.7976,0.7976);opacity:1}13.375%{transform:translate(84.05859375%,10.9912109375%) rotate(0deg) scale(0.8041806640625,0.8041806640625);opacity:1}14.75%{transform:translate(87.8125%,14.7421875%) rotate(0deg) scale(0.8124328125,0.8124328125);opacity:0}16.125%{transform:translate(91.19140625%,19.1064453125%) rotate(0deg) scale(0.8220341796875,0.8220341796875);opacity:0}17.5%{transform:translate(94.125%,23.9375%) rotate(0deg) scale(0.8326625000000001,0.8326625000000001);opacity:0}18.875%{transform:translate(96.54296875%,29.0888671875%) rotate(0deg) scale(0.8439955078125,0.8439955078125);opacity:0}20.25%{transform:translate(98.375%,34.4140625%) rotate(0deg) scale(0.8557109375,0.8557109375);opacity:0}21.625%{transform:translate(99.55078125%,39.7666015625%) rotate(0deg) scale(0.8674865234375,0.8674865234375);opacity:0}23%{transform:translate(100%,45%) rotate(0deg) scale(0.879,0.879);opacity:0}24.375%{transform:translate(99.716796875%,50.4814453125%) rotate(0deg) scale(0.8910591796875,0.8910591796875);opacity:0}25.75%{transform:translate(98.765625%,56.5078125%) rotate(0deg) scale(0.9043171875,0.9043171875);opacity:0}27.125%{transform:translate(97.181640625%,62.8271484375%) rotate(0deg) scale(0.9182197265625001,0.9182197265625001);opacity:0}28.5%{transform:translate(95%,69.1875%) rotate(0deg) scale(0.9322125,0.9322125);opacity:0}29.875%{transform:translate(92.255859375%,75.3369140625%) rotate(0deg) scale(0.9457412109375001,0.9457412109375001);opacity:0}31.25%{transform:translate(88.984375%,81.0234375%) rotate(0deg) scale(0.9582515625000001,0.9582515625000001);opacity:0}32.625%{transform:translate(85.220703125%,85.9951171875%) rotate(0deg) scale(0.9691892578125001,0.9691892578125001);opacity:0}34%{transform:translate(81%,90%) rotate(0deg) scale(0.978,0.978);opacity:0}35.125%{transform:translate(75.921875%,93.259765625%) rotate(0deg) scale(0.985171484375,0.985171484375);opacity:0}36.25%{transform:translate(69.78125%,96.109375%) rotate(0deg) scale(0.9914406250000001,0.9914406250000001);opacity:0}37.375%{transform:translate(62.90625%,98.466796875%) rotate(0deg) scale(0.996626953125,0.996626953125);opacity:0}38.5%{transform:translate(55.625%,100%) rotate(0deg) scale(1,1);opacity:0}39.625%{transform:translate(48.265625%,100%) rotate(0deg) scale(1,1);opacity:0}40.75%{transform:translate(41.15625%,100%) rotate(0deg) scale(1,1);opacity:0}41.875%{transform:translate(34.625%,100%) rotate(0deg) scale(1,1);opacity:0}43%{transform:translate(29%,100%) rotate(0deg) scale(1,1);opacity:0}43.875%{transform:translate(23.92578125%,97.0322265625%) rotate(0deg) scale(0.9934708984375,0.9934708984375);opacity:0}44.75%{transform:translate(18.9375%,92.1953125%) rotate(0deg) scale(0.9828296875,0.9828296875);opacity:0}45.625%{transform:translate(14.19921875%,86.1513671875%) rotate(0deg) scale(0.9695330078125001,0.9695330078125001);opacity:0}46.5%{transform:translate(9.875%,79.5625%) rotate(0deg) scale(0.9550375,0.9550375);opacity:0}47.375%{transform:translate(6.12890625%,73.0908203125%) rotate(0deg) scale(0.9407998046875,0.9407998046875);opacity:0}48.25%{transform:translate(3.125%,67.3984375%) rotate(0deg) scale(0.9282765625,0.9282765625);opacity:0}49.125%{transform:translate(1.02734375%,63.1474609375%) rotate(0deg) scale(0.9189244140625,0.9189244140625);opacity:0}50%{transform:translate(0%,61%) rotate(0deg) scale(0.9142,0.9142);opacity:0}50.75%{transform:translate(0.15234375%,61.1923828125%) rotate(0deg) scale(0.9146232421875,0.9146232421875);opacity:0}51.5%{transform:translate(1.375%,63.1953125%) rotate(0deg) scale(0.9190296875,0.9190296875);opacity:0}52.25%{transform:translate(3.50390625%,66.5224609375%) rotate(0deg) scale(0.9263494140625,0.9263494140625);opacity:0}53%{transform:translate(6.375%,70.6875%) rotate(0deg) scale(0.9355125,0.9355125);opacity:0}53.75%{transform:translate(9.82421875%,75.2041015625%) rotate(0deg) scale(0.9454490234375,0.9454490234375);opacity:0}54.5%{transform:translate(13.6875%,79.5859375%) rotate(0deg) scale(0.9550890625,0.9550890625);opacity:0}55.25%{transform:translate(17.80078125%,83.3466796875%) rotate(0deg) scale(0.9633626953125001,0.9633626953125001);opacity:0}56%{transform:translate(22%,86%) rotate(0deg) scale(0.9692000000000001,0.9692000000000001);opacity:0}57%{transform:translate(26.83203125%,87.7001953125%) rotate(0deg) scale(0.9729404296875,0.9729404296875);opacity:0}58%{transform:translate(32.6875%,88.9765625%) rotate(0deg) scale(0.9757484375000001,0.9757484375000001);opacity:0}59%{transform:translate(39.16796875%,89.9052734375%) rotate(0deg) scale(0.9777916015625,0.9777916015625);opacity:0}60%{transform:translate(45.875%,90.5625%) rotate(0deg) scale(0.9792375,0.9792375);opacity:0}61%{transform:translate(52.41015625%,91.0244140625%) rotate(0deg) scale(0.9802537109375,0.9802537109375);opacity:0}62%{transform:translate(58.375%,91.3671875%) rotate(0deg) scale(0.9810078125,0.9810078125);opacity:0}63%{transform:translate(63.37109375%,91.6669921875%) rotate(0deg) scale(0.9816673828125,0.9816673828125);opacity:0}64%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}66.375%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}68.75%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}71.125%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}73.5%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}75.875%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}78.25%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}80.625%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}83%{transform:translate(67%,92%) rotate(0deg) scale(0.9824,0.9824);opacity:0}83.875%{transform:translate(69.095703125%,88.2783203125%) rotate(0deg) scale(0.9742123046875,0.9742123046875);opacity:0}84.75%{transform:translate(72.234375%,83.2265625%) rotate(0deg) scale(0.9630984375,0.9630984375);opacity:0}85.625%{transform:translate(76.005859375%,77.2021484375%) rotate(0deg) scale(0.9498447265625001,0.9498447265625001);opacity:0}86.5%{transform:translate(80%,70.5625%) rotate(0deg) scale(0.9352375,0.9352375);opacity:0}87.375%{transform:translate(83.806640625%,63.6650390625%) rotate(0deg) scale(0.9200630859375001,0.9200630859375001);opacity:0}88.25%{transform:translate(87.015625%,56.8671875%) rotate(0deg) scale(0.9051078125,0.9051078125);opacity:0}89.125%{transform:translate(89.216796875%,50.5263671875%) rotate(0deg) scale(0.8911580078125,0.8911580078125);opacity:0}90%{transform:translate(90%,45%) rotate(0deg) scale(0.879,0.879);opacity:0}90.75%{transform:translate(89.310546875%,40.0341796875%) rotate(0deg) scale(0.8680751953125,0.8680751953125);opacity:0}91.5%{transform:translate(87.515625%,35.1796875%) rotate(0deg) scale(0.8573953125,0.8573953125);opacity:0}92.25%{transform:translate(84.837890625%,30.5009765625%) rotate(0deg) scale(0.8471021484375001,0.8471021484375001);opacity:1}93%{transform:translate(81.5%,26.0625%) rotate(0deg) scale(0.8373375000000001,0.8373375000000001);opacity:1}93.75%{transform:translate(77.724609375%,21.9287109375%) rotate(0deg) scale(0.8282431640625,0.8282431640625);opacity:1}94.5%{transform:translate(73.734375%,18.1640625%) rotate(0deg) scale(0.8199609375,0.8199609375);opacity:1}95.25%{transform:translate(69.751953125%,14.8330078125%) rotate(0deg) scale(0.8126326171875,0.8126326171875);opacity:1}96%{transform:translate(66%,12%) rotate(0deg) scale(0.8064,0.8064);opacity:1}96.5%{transform:translate(61.7587890625%,9.7216796875%) rotate(0deg) scale(0.8013876953125,0.8013876953125);opacity:1}97%{transform:translate(56.5078125%,7.9609375%) rotate(0deg) scale(0.7975140625,0.7975140625);opacity:1}97.5%{transform:translate(50.7685546875%,6.6416015625%) rotate(0deg) scale(0.7946115234375001,0.7946115234375001);opacity:1}98%{transform:translate(45.0625%,5.6875%) rotate(0deg) scale(0.7925125000000001,0.7925125000000001);opacity:1}98.5%{transform:translate(39.9111328125%,5.0224609375%) rotate(0deg) scale(0.7910494140625001,0.7910494140625001);opacity:1}99%{transform:translate(35.8359375%,4.5703125%) rotate(0deg) scale(0.7900546875000001,0.7900546875000001);opacity:1}99.5%{transform:translate(33.3583984375%,4.2548828125%) rotate(0deg) scale(0.7893607421875001,0.7893607421875001);opacity:1}100%{transform:translate(33%,4%) rotate(0deg) scale(0.7888000000000001,0.7888000000000001);opacity:1}}
.motion-faceBoy{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-faceBoy 8000ms linear infinite}
@keyframes topic-art-faceBoy{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}41%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}45%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}58%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}62%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}83%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}86%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}97%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-faceGirl{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-faceGirl 8000ms linear infinite}
@keyframes topic-art-faceGirl{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}21%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}25%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}45%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}50%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}59%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}64%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}83%{transform:translate(0%,0%) rotate(0deg) scale(-1,1);opacity:1}87%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-runnerMoving{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1;animation:topic-art-runnerMoving 8000ms linear infinite}
@keyframes topic-art-runnerMoving{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}62%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}64%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}82%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}84%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}}
.motion-runnerStanding{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0;animation:topic-art-runnerStanding 8000ms linear infinite}
@keyframes topic-art-runnerStanding{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}62%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}64%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}82%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}84%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}}
.motion-hands{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0;animation:topic-art-hands 8000ms linear infinite}
@keyframes topic-art-hands{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}64%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}67%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}81%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:1}84%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}}
.motion-microphone{transform:translate(0%,1%) rotate(-7deg) scale(1,1);opacity:1;animation:topic-art-microphone 8000ms linear infinite}
@keyframes topic-art-microphone{0%{transform:translate(0%,1%) rotate(-7deg) scale(1,1);opacity:1}8.33333%{transform:translate(0%,-5%) rotate(5deg) scale(1,1);opacity:1}16.66667%{transform:translate(0%,0%) rotate(7deg) scale(1,1);opacity:1}25%{transform:translate(0%,-4%) rotate(-5deg) scale(1,1);opacity:1}33.33333%{transform:translate(0%,1%) rotate(-7deg) scale(1,1);opacity:1}41.66667%{transform:translate(0%,-5%) rotate(5deg) scale(1,1);opacity:1}50%{transform:translate(0%,0%) rotate(7deg) scale(1,1);opacity:1}58.33333%{transform:translate(0%,-4%) rotate(-5deg) scale(1,1);opacity:1}66.66667%{transform:translate(0%,1%) rotate(-7deg) scale(1,1);opacity:1}75%{transform:translate(0%,-5%) rotate(5deg) scale(1,1);opacity:1}83.33333%{transform:translate(0%,0%) rotate(7deg) scale(1,1);opacity:1}91.66667%{transform:translate(0%,-4%) rotate(-5deg) scale(1,1);opacity:1}100%{transform:translate(0%,1%) rotate(-7deg) scale(1,1);opacity:1}}
.motion-micSparkLeft{transform:translate(0%,6%) rotate(0deg) scale(0.6,0.6);opacity:0;animation:topic-art-micSparkLeft 8000ms linear infinite}
@keyframes topic-art-micSparkLeft{0%{transform:translate(0%,6%) rotate(0deg) scale(0.6,0.6);opacity:0}6%{transform:translate(-2%,0%) rotate(0deg) scale(1,1);opacity:0.9}25.33333%{transform:translate(-8%,-18%) rotate(0deg) scale(0.8,0.8);opacity:0.75}33%{transform:translate(-11%,-24%) rotate(0deg) scale(0.5,0.5);opacity:0}33.33333%{transform:translate(0%,6%) rotate(0deg) scale(0.6,0.6);opacity:0}39.33333%{transform:translate(-2%,0%) rotate(0deg) scale(1,1);opacity:0.9}58.66667%{transform:translate(-8%,-18%) rotate(0deg) scale(0.8,0.8);opacity:0.75}66.33333%{transform:translate(-11%,-24%) rotate(0deg) scale(0.5,0.5);opacity:0}66.66667%{transform:translate(0%,6%) rotate(0deg) scale(0.6,0.6);opacity:0}72.66667%{transform:translate(-2%,0%) rotate(0deg) scale(1,1);opacity:0.9}92%{transform:translate(-8%,-18%) rotate(0deg) scale(0.8,0.8);opacity:0.75}99.66667%{transform:translate(-11%,-24%) rotate(0deg) scale(0.5,0.5);opacity:0}100%{transform:translate(0%,6%) rotate(0deg) scale(0.6,0.6);opacity:0}}
.motion-micSparkRight{transform:translate(0%,0%) rotate(0deg) scale(0.8,0.8);opacity:0.85;animation:topic-art-micSparkRight 8000ms linear infinite}
@keyframes topic-art-micSparkRight{0%{transform:translate(0%,0%) rotate(0deg) scale(0.8,0.8);opacity:0.85}20%{transform:translate(10%,-18%) rotate(0deg) scale(0.6,0.6);opacity:0}20.33333%{transform:translate(0%,8%) rotate(0deg) scale(0.5,0.5);opacity:0}26.66667%{transform:translate(0%,5%) rotate(0deg) scale(0.7,0.7);opacity:0.8}33.33333%{transform:translate(0%,0%) rotate(0deg) scale(0.8,0.8);opacity:0.85}53.33333%{transform:translate(10%,-18%) rotate(0deg) scale(0.6,0.6);opacity:0}53.66667%{transform:translate(0%,8%) rotate(0deg) scale(0.5,0.5);opacity:0}60%{transform:translate(0%,5%) rotate(0deg) scale(0.7,0.7);opacity:0.8}66.66667%{transform:translate(0%,0%) rotate(0deg) scale(0.8,0.8);opacity:0.85}86.66667%{transform:translate(10%,-18%) rotate(0deg) scale(0.6,0.6);opacity:0}87%{transform:translate(0%,8%) rotate(0deg) scale(0.5,0.5);opacity:0}93.33333%{transform:translate(0%,5%) rotate(0deg) scale(0.7,0.7);opacity:0.8}100%{transform:translate(0%,0%) rotate(0deg) scale(0.8,0.8);opacity:0.85}}
.motion-friendship{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0;animation:topic-art-friendship 8000ms linear infinite}
@keyframes topic-art-friendship{0%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}64%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}68%{transform:translate(0%,-1%) rotate(0deg) scale(1,1);opacity:0.95}80%{transform:translate(0%,-5%) rotate(0deg) scale(1,1);opacity:0.95}86%{transform:translate(0%,-8%) rotate(0deg) scale(1,1);opacity:0}100%{transform:translate(0%,0%) rotate(0deg) scale(1,1);opacity:0}}
.adventure-runner{position:relative}.runner-pose{position:absolute;inset:0;pointer-events:none}.runner-sprite{display:block;width:100%;height:100%;background-size:400% 200%;background-repeat:no-repeat;animation:runner-pose-frames 8000ms steps(1,end) infinite;pointer-events:none}.runner-ground-shadow{position:absolute;left:20%;bottom:0;width:60%;height:9%;border-radius:50%;background:#59644135;filter:blur(.5px);pointer-events:none}
@keyframes runner-pose-frames{0%{background-position:0% 0%}1.25%{background-position:33.33333333333333% 0%}2.5%{background-position:66.66666666666666% 0%}3.75%{background-position:100% 0%}5%{background-position:0% 100%}6.25%{background-position:33.33333333333333% 100%}7.5%{background-position:66.66666666666666% 100%}8.75%{background-position:100% 100%}10%{background-position:0% 0%}11.25%{background-position:33.33333333333333% 0%}12.5%{background-position:66.66666666666666% 0%}13.75%{background-position:100% 0%}15%{background-position:0% 100%}16.25%{background-position:33.33333333333333% 100%}17.5%{background-position:66.66666666666666% 100%}18.75%{background-position:100% 100%}20%{background-position:0% 0%}21.25%{background-position:33.33333333333333% 0%}22.5%{background-position:66.66666666666666% 0%}23.75%{background-position:100% 0%}25%{background-position:0% 100%}26.25%{background-position:33.33333333333333% 100%}27.5%{background-position:66.66666666666666% 100%}28.75%{background-position:100% 100%}30%{background-position:0% 0%}31.25%{background-position:33.33333333333333% 0%}32.5%{background-position:66.66666666666666% 0%}33.75%{background-position:100% 0%}35%{background-position:0% 100%}36.25%{background-position:33.33333333333333% 100%}37.5%{background-position:66.66666666666666% 100%}38.75%{background-position:100% 100%}40%{background-position:0% 0%}41.25%{background-position:33.33333333333333% 0%}42.5%{background-position:66.66666666666666% 0%}43.75%{background-position:100% 0%}45%{background-position:0% 100%}46.25%{background-position:33.33333333333333% 100%}47.5%{background-position:66.66666666666666% 100%}48.75%{background-position:100% 100%}50%{background-position:0% 0%}51.25%{background-position:33.33333333333333% 0%}52.5%{background-position:66.66666666666666% 0%}53.75%{background-position:100% 0%}55%{background-position:0% 100%}56.25%{background-position:33.33333333333333% 100%}57.5%{background-position:66.66666666666666% 100%}58.75%{background-position:100% 100%}60%{background-position:0% 0%}61.25%{background-position:33.33333333333333% 0%}62.5%{background-position:66.66666666666666% 0%}63.75%{background-position:100% 0%}65%{background-position:0% 100%}66.25%{background-position:33.33333333333333% 100%}67.5%{background-position:66.66666666666666% 100%}68.75%{background-position:100% 100%}70%{background-position:0% 0%}71.25%{background-position:33.33333333333333% 0%}72.5%{background-position:66.66666666666666% 0%}73.75%{background-position:100% 0%}75%{background-position:0% 100%}76.25%{background-position:33.33333333333333% 100%}77.5%{background-position:66.66666666666666% 100%}78.75%{background-position:100% 100%}80%{background-position:0% 0%}81.25%{background-position:33.33333333333333% 0%}82.5%{background-position:66.66666666666666% 0%}83.75%{background-position:100% 0%}85%{background-position:0% 100%}86.25%{background-position:33.33333333333333% 100%}87.5%{background-position:66.66666666666666% 100%}88.75%{background-position:100% 100%}90%{background-position:0% 0%}91.25%{background-position:33.33333333333333% 0%}92.5%{background-position:66.66666666666666% 0%}93.75%{background-position:100% 0%}95%{background-position:0% 100%}96.25%{background-position:33.33333333333333% 100%}97.5%{background-position:66.66666666666666% 100%}98.75%{background-position:100% 100%}100%{background-position:0% 0%}}
body[data-page-hidden=true] :is(.runner-sprite,.runner-pose){animation-play-state:paused!important}body[data-motion=reduce] :is(.runner-sprite,.runner-pose),body[data-reduced-motion=true] :is(.runner-sprite,.runner-pose){animation:none!important}@media(prefers-reduced-motion:reduce){.runner-sprite,.runner-pose{animation:none!important}}

/* Sano stylesheet: welcome-poses.css */
/* Crisp original artwork, continuous small transforms; no frame changes or blends. */
.art-welcome .welcome-scene{display:grid;grid-template-columns:clamp(60px,18%,84px) minmax(0,1fr) clamp(60px,18%,84px);column-gap:0;align-items:center;aspect-ratio:auto;min-height:clamp(150px,40vw,235px)}
.art-welcome .welcome-character{position:relative;grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:auto;left:auto;bottom:auto}
.art-welcome .welcome-letter{position:relative;grid-row:1;width:130%;height:auto;aspect-ratio:.9;left:auto;right:auto;top:auto}
.art-welcome .welcome-letter-ka{grid-column:1;translate:2px 0}.art-welcome .welcome-letter-a{grid-column:3;justify-self:end;translate:-2px 0}
.art-welcome .welcome-letter span{font-size:clamp(54px,12vw,76px)}
.art-welcome .welcome-letter small{font-size:clamp(13px,2.9vw,17px)}
.art-welcome .welcome-character .welcome-friends{width:100%;height:auto;gap:0}
.welcome-friend{animation:none!important;position:relative;display:block;flex:0 0 60%;height:auto;margin:0 -7%;padding:4px;min-width:0}
.welcome-pose-rig{display:block;position:relative;width:100%;aspect-ratio:1;height:auto!important}
.welcome-character .welcome-pose-window{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;animation:sano-welcome-poses 9.6s ease-in-out infinite;transform-origin:50% 88%;filter:none;opacity:1}
.art-welcome .companion-wave-arm{animation:welcome-calm-wave 4.8s ease-in-out infinite}
@keyframes welcome-calm-wave{0%,100%{transform:rotate(0deg)}50%{transform:rotate(4deg)}}
@keyframes sano-welcome-poses{0%,100%{transform:translateY(0) rotate(-1deg)}25%{transform:translateY(-4px) rotate(0deg)}50%{transform:translateY(0) rotate(1deg)}75%{transform:translateY(-4px) rotate(0deg)}}
.art-welcome .welcome-logo-letter{animation:welcome-letter-drift 6s ease-in-out infinite}
.art-welcome .welcome-logo-dot{animation:welcome-dot-bob 6s ease-in-out infinite}
.art-welcome .welcome-letter{animation-duration:8s;animation-iteration-count:infinite}
.art-welcome .welcome-language{display:block;font-weight:900!important;color:#174274!important;font-size:clamp(16px,3.8vw,19px)!important;line-height:1.45}
body[data-motion=reduce] .art-welcome :is(.welcome-logo-letter,.welcome-logo-dot,.welcome-letter),body[data-reduced-motion=true] .art-welcome :is(.welcome-logo-letter,.welcome-logo-dot,.welcome-letter){animation:none!important}
@media(prefers-reduced-motion:reduce){.art-welcome :is(.welcome-logo-letter,.welcome-logo-dot,.welcome-letter){animation:none!important}}
body[data-page-hidden=true] .welcome-pose-window{animation-play-state:paused}
body[data-motion=reduce] .welcome-pose-window,body[data-reduced-motion=true] .welcome-pose-window{animation:none!important}
@media(prefers-reduced-motion:reduce){.welcome-character .welcome-pose-window{animation:none!important}}

/* Quiet, real links keep public app information available after hydration. */
.art-welcome .welcome-site-information{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 20px;padding:12px 16px 8px;font-size:12px;line-height:1.5;color:#49617e;text-align:center}.art-welcome .welcome-site-information a{color:inherit;text-decoration:underline;text-underline-offset:3px;padding:4px 2px}.art-welcome .welcome-site-information a:focus-visible{outline:3px solid #0666ef;outline-offset:4px;border-radius:4px}

/* Sano stylesheet: companion-switch.css */
/* A child-sized character choice beside the existing guidance controls. */
.corner-tools>.companion-switch{display:flex;flex:0 0 auto;align-items:center;gap:3px;margin-right:auto;padding:3px;border:2px solid #fff;border-radius:999px;background:#f5faffc9;box-shadow:inset 0 1px 1px #fff,0 0 16px 3px #91caff35}
.companion-switch button{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:1px;border:3px solid transparent;border-radius:50%;background:#edf5ff;box-shadow:none;touch-action:manipulation;transition:background .18s,border-color .18s,box-shadow .18s}
.companion-switch button[aria-pressed=true]{border-color:#fff;background:#bce5ff;box-shadow:0 0 0 1px #91caff,0 0 10px 2px #82caff85}
.companion-switch button[data-value=girl][aria-pressed=true]{background:#ffd5e8;box-shadow:0 0 0 1px #f9b0cf,0 0 10px 2px #fba3cd75}
.companion-switch-face{position:relative;display:block;width:34px;height:34px;border-radius:50%;overflow:hidden;pointer-events:none}
.companion-switch-face img{position:absolute;top:-1px;left:50%;width:54px;height:54px;max-width:none;transform:translateX(-50%);object-fit:contain;pointer-events:none}
.companion-switch button:focus-visible{outline:3px solid #0867ed;outline-offset:3px}
body[data-motion=reduce] .companion-switch button{transition:none}
@media(prefers-reduced-motion:reduce){.companion-switch button{transition:none}}

.companion-change-notice{position:fixed;z-index:1700;display:flex;align-items:center;gap:6px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:4px 10px 4px 5px;border:1px solid #ffffffd9;border-radius:15px;background:#e5f4ff;color:#174274;box-shadow:0 3px 12px #4596d429;font:750 13px/1.3 var(--joy-font,system-ui);pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;transform-origin:18px 0;animation:companion-notice-enter .2s cubic-bezier(.2,.7,.25,1) both}
.companion-change-notice[data-companion=girl]{background:#ffe6f1;box-shadow:0 3px 12px #db74a529}
.companion-change-notice img{flex:none;width:26px;height:26px;object-fit:contain;border-radius:50%}
.companion-change-notice.is-leaving{animation:companion-notice-exit .24s ease-in both}
@keyframes companion-notice-enter{from{opacity:0;transform:translateY(-3px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes companion-notice-exit{from{opacity:var(--notice-opacity,1);transform:translateY(var(--notice-drag,0px)) scale(1)}to{opacity:0;transform:translateY(calc(var(--notice-drag,0px) - 18px)) scale(.99)}}
body[data-motion=reduce] .companion-change-notice{animation:none}
@media(prefers-reduced-motion:reduce){.companion-change-notice,.companion-change-notice.is-leaving{animation:none}}
@media(forced-colors:active){.companion-change-notice{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}}


/* Slim visible frames inside the unchanged 44px companion touch targets. */
.corner-tools>.companion-switch{position:relative;isolation:isolate;gap:0;padding:0;border:0;min-height:44px;background:transparent;box-shadow:none}
.corner-tools>.companion-switch::before{content:"";position:absolute;inset:4px 1px;border:0;border-radius:999px;background:#f5faffc9;box-shadow:0 0 13px 2px #91caff3d;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);pointer-events:none}
.corner-tools>.companion-switch button{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:4px;border:0;background:transparent;box-shadow:none}
.corner-tools>.companion-switch button::before{content:"";position:absolute;inset:4px;border:0;border-radius:50%;background:#edf5ff80;pointer-events:none}
.corner-tools>.companion-switch button[aria-pressed=true]{border:0;background:transparent;box-shadow:none}
.corner-tools>.companion-switch button[aria-pressed=true]::before{background:#bce5ff;box-shadow:0 0 6px #82caff44}
.corner-tools>.companion-switch button[data-value=girl][aria-pressed=true]::before{background:#ffd5e8;box-shadow:0 0 6px #fba3cd44}
.corner-tools>.companion-switch .companion-switch-face{z-index:1}
@media(forced-colors:active){.corner-tools>.companion-switch::before{border:1px solid ButtonText;background:Canvas;box-shadow:none}.corner-tools>.companion-switch button[aria-pressed=true]::before{background:Highlight;outline:1px solid Highlight;box-shadow:none}}


/* The same two-choice row is used inside sheets and the main toolbar. */
.companion-switch{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:3px;flex-shrink:0;white-space:nowrap}
.companion-switch>button{flex:0 0 44px}
body>.coin-backdrop>.coin-dialog:has(.free-talk-guided) .coin-header-tools{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px}
@media(max-width:380px){body>.coin-backdrop>.coin-dialog:has(.free-talk-guided)>.coin-dialog-top .coin-sheet-brand{max-width:44px;flex-basis:44px}body>.coin-backdrop>.coin-dialog:has(.free-talk-guided) .coin-header-tools{gap:2px}body>.coin-backdrop>.coin-dialog:has(.free-talk-guided) .companion-switch{gap:0}}

.companion-change-notice.is-dragging{animation:none;transform:translateY(var(--notice-drag,0px));opacity:var(--notice-opacity,1)}
.companion-change-notice span{min-width:0;white-space:nowrap}
.companion-change-notice:lang(ne){line-height:1.55}

/* Sano stylesheet: reward-polish.css */
/* Light moves across artwork, leaving control geometry and hit areas intact. */
.corner-tools>.coin-corner{box-shadow:inset 0 1px 1px #fff,0 0 5px #fff6cdd9,0 0 14px 3px #ffc43d70,0 0 25px 5px #ffcf4933}
:is(.coin-corner,.topic-paid-corner)>svg{transform-origin:50% 55%;animation:sano-coin-float 4.8s ease-in-out infinite}
:is(.coin-corner,.coin-hero-art,.topic-paid-corner) .coin-metal-glint{animation:sano-gold-glint 5.8s ease-in-out infinite}
:is(.coin-corner,.coin-hero-art,.topic-paid-corner) .coin-specular-sweep{animation:sano-metal-reflection 5.8s ease-in-out infinite}
.coin-hero-art .coin-metal-glint,.coin-hero-art .coin-specular-sweep{animation-delay:-1.8s}
.progress-star.is-collected .gold-star-glint{animation:sano-gold-glint 6.4s ease-in-out infinite}
.progress-star.is-collected:nth-child(3n+2) .gold-star-glint{animation-delay:-1.6s}
.progress-star.is-collected:nth-child(3n) .gold-star-glint{animation-delay:-3.2s}
.art-welcome .welcome-logo-wrap{width:96%;animation:sano-wordmark-float 6.8s ease-in-out infinite}
@keyframes sano-gold-glint{0%,100%{opacity:.65}38%{opacity:.95}52%{opacity:1}72%{opacity:.72}}
@keyframes sano-metal-reflection{0%,100%{opacity:.65}42%,55%{opacity:1}76%{opacity:.72}}
@keyframes sano-wordmark-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes sano-coin-float{0%,65%,100%{transform:translateY(0) rotate(0)}18%{transform:translateY(-2px) rotate(-7deg)}34%{transform:translateY(-3px) rotate(6deg)}48%{transform:translateY(-1px) rotate(-3deg)}}
body[data-page-hidden=true] :is(.coin-metal-glint,.coin-specular-sweep,.gold-star-glint,.welcome-logo-wrap){animation-play-state:paused!important}
body[data-page-hidden=true] :is(.coin-corner,.topic-paid-corner)>svg{animation-play-state:paused!important}
body[data-motion=reduce] :is(.coin-metal-glint,.coin-specular-sweep,.gold-star-glint,.welcome-logo-wrap),body[data-reduced-motion=true] :is(.coin-metal-glint,.coin-specular-sweep,.gold-star-glint,.welcome-logo-wrap){animation:none!important}
body[data-motion=reduce] :is(.coin-corner,.topic-paid-corner)>svg,body[data-reduced-motion=true] :is(.coin-corner,.topic-paid-corner)>svg{animation:none!important}
@media(prefers-reduced-motion:reduce){:is(.coin-metal-glint,.coin-specular-sweep,.gold-star-glint,.welcome-logo-wrap),:is(.coin-corner,.topic-paid-corner)>svg{animation:none!important}}

.adventure-star-count{display:inline-flex;align-items:center;gap:8px}.adventure-star-count>span{display:inline-flex;width:30px;height:31px}.adventure-star-count svg{width:100%;height:100%}

/* Paid-topic badges reuse the toolbar metal and shine, with room above the copy. */
:is(.topic-talk-tile,.topic-adventure-tile) .topic-tile-face{min-height:190px;padding-top:34px}
.topic-tile-face>.topic-paid-corner{position:absolute;right:12px;top:9px;width:36px;height:36px;pointer-events:none;filter:drop-shadow(0 0 5px #ffcb49aa)}
.topic-tile-face>.topic-paid-corner>svg{width:36px;height:36px}
.topic-adventure-tile .topic-tile-face{animation:topic-games-bounce 3.8s ease-in-out infinite}
@keyframes topic-games-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}

/* Broad metal reflection complements the inset rim without blinking. */
.coin-face-sheen{animation:sano-metal-reflection 5.8s ease-in-out infinite}
body[data-page-hidden=true] .coin-face-sheen{animation-play-state:paused!important}
body[data-motion=reduce] .coin-face-sheen,body[data-reduced-motion=true] .coin-face-sheen{animation:none!important}
@media(prefers-reduced-motion:reduce){.coin-face-sheen{animation:none!important}}

/* A consistent silhouette, warm edge light and slow metal glint at every size.
   Empty progress outlines retain their separate unearned appearance. */
@media(forced-colors:none){
 body :is(svg.sano-gold-star,svg.sano-coin-art,svg.sano-daily-coin-art){overflow:visible;filter:drop-shadow(0 0 2px #fff6bb) drop-shadow(0 0 6px #f6bf348c)}
 body :is(.coin-metal-glint,.gold-star-glint){transform-box:fill-box;transform-origin:center;animation:sano-reward-glint 4.8s ease-in-out infinite}
 body .coin-specular-sweep{animation:sano-metal-reflection 4.8s ease-in-out infinite}
 body .reward-toolbar-arrival[data-star-arrival=true]::before{content:'';position:absolute;inset:-10px;z-index:-1;border:2px solid #ffda5b;border-radius:50%;background:radial-gradient(circle,#ffe87566,transparent 70%);box-shadow:0 0 18px #ffcf4980;animation:sano-reward-arrival-ring 440ms ease-out both;pointer-events:none}
}
.arcade-stars>i,.arcade-pickup>i{display:inline-flex;align-items:center;justify-content:center;width:32px;height:34px;font-style:normal}
.arcade-stars svg,.arcade-pickup>i svg{width:100%;height:100%}
.arcade-pause-star{display:inline-flex;align-items:center;justify-content:center;width:64px;height:66px}
.arcade-pause-star svg{width:100%;height:100%}
@keyframes sano-reward-glint{0%,100%{opacity:.62;transform:scale(.88)}44%{opacity:1;transform:scale(1.12)}68%{opacity:.8;transform:scale(1)}}
@keyframes sano-reward-arrival-ring{0%{opacity:.9;transform:scale(.65)}100%{opacity:0;transform:scale(1.45)}}
body[data-page-hidden=true] :is(.coin-metal-glint,.gold-star-glint,.coin-specular-sweep){animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.coin-metal-glint,.gold-star-glint,.coin-specular-sweep){animation:none!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .reward-toolbar-arrival[data-star-arrival=true]::before{animation:none;opacity:.6;transform:none}
@media(prefers-reduced-motion:reduce){body :is(.coin-metal-glint,.gold-star-glint,.coin-specular-sweep){animation:none!important}body .reward-toolbar-arrival[data-star-arrival=true]::before{animation:none;opacity:.6;transform:none}}

/* Reflections stay on the toolbar coin; the count and focus ring stay visible. */
body .coin-corner svg.sano-coin-art{overflow:hidden;filter:drop-shadow(0 0 2px #f4c34c80)}
body .coin-corner .coin-metal-glint{transform:none;animation:sano-metal-reflection 4.8s ease-in-out infinite}

/* Sano stylesheet: grown-up-icon.css */
/* The artwork is decorative: its existing parent control owns the hit area. */
.grownup-corner>.grownup-portrait{display:block;width:34px;height:34px;object-fit:contain;pointer-events:none;user-select:none}
.grownup-gate-header{justify-content:flex-end;margin-bottom:0}
.gate-parent-portrait{width:112px;max-width:100%;aspect-ratio:1;flex:none;background:transparent}
.gate-parent-portrait>.grownup-portrait{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}

/* Sano stylesheet: toolbar-layout.css */
/* Keep every direct choice on one row. Eight 44px-wide buttons alone exceed a
   320px phone, so narrow screens trim horizontal chrome and artwork while
   retaining 44px-high targets and the full English/Nepali labels. */
.corner-tools{flex-wrap:nowrap;min-width:0;padding-left:max(10px,env(safe-area-inset-left));container-type:inline-size;container-name:sano-toolbar}
/* Match the character selection's emphasis without changing the mint fill. */
.corner-tools :is(.screen-text-choice,.guidance-switch)>button[aria-pressed=true]{position:relative;z-index:1;box-shadow:inset 0 0 0 2px #fffffff0,0 0 0 1px #69bf95,0 0 10px 2px #54d69b80,0 0 17px 3px #54d69b26}
@media(max-width:500px){
 .corner-tools{--toolbar-companion:34px;--toolbar-text-en:32px;--toolbar-guidance:32px;--toolbar-coin:40px;--toolbar-parent:40px;--toolbar-face:26px;--toolbar-face-art:42px;--toolbar-flag:24px;--toolbar-parent-art:30px;gap:2px;padding:8px max(4px,env(safe-area-inset-right)) 8px max(4px,env(safe-area-inset-left));min-height:64px}
 .corner-tools>:is(.companion-switch,.screen-text-choice,.guidance-switch){flex:0 0 auto;gap:0;padding:0;border-width:2px;white-space:nowrap}
 .corner-tools :is(.companion-switch,.screen-text-choice,.guidance-switch)>button{box-sizing:border-box;flex:0 0 auto;min-height:44px;height:44px;padding:0}
 .corner-tools>.companion-switch button{width:var(--toolbar-companion);min-width:var(--toolbar-companion);border-width:2px}
 .corner-tools>.companion-switch .companion-switch-face{width:var(--toolbar-face);height:var(--toolbar-face)}
 .corner-tools>.companion-switch .companion-switch-face img{width:var(--toolbar-face-art);height:var(--toolbar-face-art)}
 .corner-tools>.screen-text-choice button{width:var(--toolbar-text-en);min-width:var(--toolbar-text-en)}
 .corner-tools>.screen-text-choice button[data-value=ne]{width:48px;min-width:48px}
 .corner-tools>.screen-text-choice .screen-text-label{font-size:15px;line-height:1.55}
 .corner-tools>.screen-text-choice .screen-text-label[lang=ne]{font-size:17px}
 .corner-tools>.guidance-switch button{width:var(--toolbar-guidance);min-width:var(--toolbar-guidance)}
 .corner-tools>.guidance-switch svg{width:var(--toolbar-flag);height:27px}
 .corner-tools>.coin-corner{flex:0 0 var(--toolbar-coin);width:var(--toolbar-coin);min-width:var(--toolbar-coin);min-height:44px;height:44px;padding:4px}
 .corner-tools>.grownup-corner{flex:0 0 var(--toolbar-parent);width:var(--toolbar-parent);min-width:var(--toolbar-parent);min-height:44px;height:44px;padding:0;border-radius:16px}
 .corner-tools>.grownup-corner>:is(svg,.grownup-portrait){width:var(--toolbar-parent-art);height:var(--toolbar-parent-art);object-fit:contain}
}
/* Small Android/split-view content widths still retain every direct choice. */
@media(max-width:319px){
 .corner-tools{--toolbar-companion:29px;--toolbar-text-en:26px;--toolbar-guidance:26px;--toolbar-coin:32px;--toolbar-parent:32px;--toolbar-face:24px;--toolbar-face-art:38px;--toolbar-flag:26px;--toolbar-parent-art:26px}
 .corner-tools>.coin-corner{padding:2px}
}
@media(min-width:360px) and (max-width:500px){
 .corner-tools{--toolbar-companion:38px;--toolbar-text-en:36px;--toolbar-guidance:36px;--toolbar-coin:44px;--toolbar-parent:44px;--toolbar-face:30px;--toolbar-face-art:48px;--toolbar-flag:26px;--toolbar-parent-art:32px}
}
@media(min-width:400px) and (max-width:500px){
 .corner-tools{--toolbar-companion:44px;--toolbar-text-en:40px;--toolbar-guidance:44px;--toolbar-parent:48px;--toolbar-face:34px;--toolbar-face-art:54px;--toolbar-flag:27px;--toolbar-parent-art:34px}
}
/* The container excludes its safe-area padding. Only its children receive
   narrower sizes, so safe insets can select the next smaller tier too. */
@container sano-toolbar (max-width:375px){
 .corner-tools>*{--toolbar-companion:38px;--toolbar-text-en:36px;--toolbar-guidance:36px;--toolbar-coin:44px;--toolbar-parent:44px;--toolbar-face:30px;--toolbar-face-art:48px;--toolbar-flag:26px;--toolbar-parent-art:32px}
}
@container sano-toolbar (max-width:339px){
 .corner-tools>*{--toolbar-companion:34px;--toolbar-text-en:32px;--toolbar-guidance:32px;--toolbar-coin:40px;--toolbar-parent:40px;--toolbar-face:26px;--toolbar-face-art:42px;--toolbar-flag:24px;--toolbar-parent-art:30px}
}
@container sano-toolbar (max-width:311px){
 .corner-tools>*{--toolbar-companion:29px;--toolbar-text-en:26px;--toolbar-guidance:26px;--toolbar-coin:32px;--toolbar-parent:32px;--toolbar-face:24px;--toolbar-face-art:38px;--toolbar-flag:26px;--toolbar-parent-art:26px}
 .corner-tools>.coin-corner{padding:2px}
}

/* Sano stylesheet: learning-checks.css */
.learning-checks{max-width:680px;margin:auto}.check-note{color:#526787;font-size:14px;line-height:1.5}.check-menu,.check-task-grid,.check-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.check-button{min-width:0;min-height:64px;white-space:normal;line-height:1.3;background:#d8eefc;color:#24416d;border-radius:26px;margin:4px 0}.check-button small{display:block;font-size:14px;font-weight:500;margin-top:8px}.check-menu .check-button{min-height:112px;background:#ffb5d5;color:#71304f}.check-answers .check-button{min-height:100px;font-size:32px}.check-answers svg,.check-answers img{max-width:90px;max-height:90px}.check-tools,.check-writing-tools{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.check-paper{width:100%;height:clamp(180px,45vw,300px);max-height:300px;display:block;background:#fff;border:3px solid #bce3ff;border-radius:24px;touch-action:none}.check-ink path{fill:none;stroke:#349be7;stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.check-model{padding:12px;background:#dff4e9;border-radius:22px;font-size:38px;text-align:center}.check-model[hidden]{display:none}.check-groups{display:flex;align-items:center;justify-content:center;gap:20px}.check-dots{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;padding:18px;border:2px dashed #91caff;border-radius:30px;margin:12px auto;max-width:270px}.check-dots i{width:32px;height:32px;border-radius:100%;background:#349be7;position:relative}.check-dots i.taken{background:#ffd5e2}.check-dots i.taken:after{content:'×';color:#aa315b;position:absolute;inset:-4px;text-align:center;font-size:28px}.check-feedback{min-height:28px;color:#176e4d;font-weight:700}.check-feedback[data-tone=red]{color:#a72f52}.check-button[data-tone=red]{background:#ffd5e2;box-shadow:0 0 0 3px #d84476}.check-review{background:#f5faff;border-radius:24px;padding:12px}.check-review:empty{display:none}.check-review input{max-width:140px;padding:12px;font-size:20px}.review-model{font-size:36px;color:#24416d}.learning-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.learning-counts div{background:#eef8ff;border-radius:20px;padding:12px}.learning-counts dt{font-size:14px}.learning-counts dd{margin:0;font-weight:800;font-size:28px;color:#176e4d}.parent-learning li{margin:10px 0}@media(max-width:360px){.check-menu,.check-task-grid{grid-template-columns:1fr}.check-button{font-size:17px}.check-answers{gap:8px}}
.check-picture-cue{width:120px;height:120px;margin:16px auto}.check-picture-cue img,.check-picture-cue svg{width:100%;height:100%;object-fit:contain}
.playful-counts{grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0}.playful-counts dt{line-height:1.4;overflow-wrap:normal;word-break:normal}.playful-counts dd{margin-top:8px}.play-saving-panel{margin:20px 0;padding:16px;border-radius:22px;background:#f2f8ff}.play-saving-status{font-weight:700;margin:0 0 6px}.play-saving-panel .footnote{margin:6px 0 14px}.play-learning-details,.legacy-learning-details{margin:18px 0;padding:14px;border:1px solid #dce8f4;border-radius:18px}.parent-learning summary{cursor:pointer;line-height:1.5;font-weight:700}.parent-learning summary:focus-visible{outline:3px solid #3885d7;outline-offset:5px;border-radius:4px}.play-observation-list li{display:flex;flex-wrap:wrap;gap:5px 12px;padding:9px 0;border-bottom:1px solid #e0e9f4}.play-observation-list li strong{flex-basis:100%}.play-observation-list li span,.play-observation-list li time{font-size:13px;color:#506681}.legacy-learning-details .learning-counts dd{font-size:22px}.legacy-learning-details>p{font-size:14px;line-height:1.6}@media(max-width:380px){.playful-counts{grid-template-columns:1fr}.playful-counts div{display:flex;align-items:center;justify-content:space-between;gap:12px}.playful-counts dd{margin:0}}

/* Sano stylesheet: overlay-return.css */
/* A visible return to the captured screen, above every adult-flow subpage. */
.parent-dialog-top{position:sticky;top:-28px;z-index:5;margin:-28px -28px 24px;padding:14px 20px 12px;background:#f5fafff2;border-radius:28px 28px 20px 20px;backdrop-filter:blur(12px)}
.coin-dialog-top .context-return,.parent-dialog-top .context-return{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin:0;padding:12px 18px;border:3px solid #fff;border-bottom:6px solid #aa224e;border-radius:25px;background:linear-gradient(150deg,#f36884,#e13d65 55%,#cf2d58);color:#fff;font-size:clamp(17px,4.8vw,21px);line-height:1.3;font-weight:850;text-align:center;box-shadow:0 0 16px #fff8,0 7px 26px #ee527447;cursor:pointer}
.context-return>span:last-child{min-width:0;overflow-wrap:anywhere}
.context-return:focus-visible{outline:4px solid #116fe8;outline-offset:4px}
.parent-privacy>p,.parent-privacy .parent-details p{line-height:1.65}
@media(max-width:380px){.parent-dialog-top{top:-28px;margin:-28px -28px 18px;padding:12px 14px}.coin-dialog-top .context-return,.parent-dialog-top .context-return{padding-inline:12px}}

/* Sano stylesheet: tile-lighting.css */
/* Rear colour dissolves into the page; foreground edges supply the close depth.
   Existing transforms, timing, sizes, targets and success/retry states stay owned
   by their components. No moving blur filters or solid decorative backplates. */
.topic-tile-halo,.topic-practice-tile .topic-tile-halo{
 inset:-20px;border-radius:50%;filter:none;box-shadow:none;
 background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 40%,transparent) 0%,color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 28%,transparent) 44%,color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 13%,transparent) 68%,color-mix(in srgb,var(--answer-edge,var(--topic-edge,#62b9f5)) 4%,transparent) 86%,transparent 100%);
}
.challenge-halo,.challenge-pulse .challenge-halo{
 inset:-20px;border-radius:50%;filter:none;box-shadow:none;
 background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--tile-edge,#62b9f5) 42%,transparent) 0%,color-mix(in srgb,var(--tile-edge,#62b9f5) 30%,transparent) 44%,color-mix(in srgb,var(--tile-edge,#62b9f5) 14%,transparent) 68%,color-mix(in srgb,var(--tile-edge,#62b9f5) 4%,transparent) 86%,transparent 100%);
}
.companion-halo,.companion-choice .companion-option[aria-pressed=true] .companion-halo{
 inset:-20px;border-radius:50%;filter:none;box-shadow:none;
 background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--companion-halo) 44%,transparent) 0%,color-mix(in srgb,var(--companion-halo) 34%,transparent) 44%,color-mix(in srgb,var(--companion-halo) 18%,transparent) 68%,color-mix(in srgb,var(--companion-halo) 5%,transparent) 86%,transparent 100%);
}
.topic-tile-face,.topic-entry-face,.topic-tile:nth-child(3n+2) .topic-entry-face,.topic-tile:nth-child(3n) .topic-entry-face{
 box-shadow:inset 0 2px 1px #ffffff8c,0 4px 0 var(--topic-edge,#4c9fea),0 8px 12px -5px #24416d26,0 0 17px 1px color-mix(in srgb,var(--topic-edge,#4c9fea) 17%,transparent),0 7px 32px 1px color-mix(in srgb,var(--topic-edge,#4c9fea) 10%,transparent);
}
.companion-face{
 background:linear-gradient(180deg,#ffffff4d,transparent 42%),var(--companion-fill);
 box-shadow:inset 0 2px 1px #ffffffa6,0 4px 0 color-mix(in srgb,var(--companion-halo) 60%,white),0 8px 13px -5px #24416d24,0 5px 26px 1px color-mix(in srgb,var(--companion-halo) 13%,transparent);
}
.companion-choice .companion-option[aria-pressed=true] .companion-face{
 border-color:#fff;outline:0;
 box-shadow:inset 0 2px 1px #fff,0 0 0 2px #ffffffed,0 0 10px 2px #ffffff8c,0 4px 0 color-mix(in srgb,var(--companion-halo) 55%,white),0 8px 14px -5px #24416d24;
}
.art-welcome .welcome-play-face,.companion-next .game-tile-face,.gate-continue>.game-tile-face{
 box-shadow:inset 0 2px 1px #ffffff85,0 5px 10px -4px #24416d24,0 0 20px 1px color-mix(in srgb,var(--tile-edge,#f05b9c) 17%,transparent);
}
.welcome-play-pulse::before{
 inset:-20px;border-radius:50%;filter:none;box-shadow:none;
 background:radial-gradient(ellipse closest-side,#f05b9c66 0%,#f05b9c47 44%,#f05b9c21 68%,#f05b9c0a 86%,transparent 100%);
}
/* Shared settings, return and onward controls keep their existing surface hue. */
.settings-tile{--surface-light:#4c9fea}.settings-pink{--surface-light:#e882b0}.settings-mint{--surface-light:#48b88c}.settings-yellow{--surface-light:#e6b942}.settings-red,.parent-return-tile,.back-tile{--surface-light:#d84476}
.settings-tile>.game-tile-face,.back-tile .game-tile-face,.challenge-face,.parent-return-tile{
 box-shadow:inset 0 2px 1px #ffffff80,0 7px 12px -5px #24416d24,0 0 18px 1px color-mix(in srgb,var(--surface-light,var(--tile-edge,#62b9f5)) 20%,transparent),0 6px 32px 2px color-mix(in srgb,var(--surface-light,var(--tile-edge,#62b9f5)) 10%,transparent);
}
.step-prompt-next,.continue-game,.scribble-next{--action-light:#62b9f5}
.letter-celebration .step-prompt-next,.rest-actions>.step-prompt-next{--action-light:#48b88c}
.step-prompt-next,.continue-game,.scribble-next{
 box-shadow:inset 0 2px 1px #ffffff73,0 6px 12px -4px #24416d26,0 0 20px 2px color-mix(in srgb,var(--action-light) 22%,transparent),0 5px 34px 2px color-mix(in srgb,var(--action-light) 12%,transparent);
}
.round-complete .pill{
 box-shadow:inset 0 2px 1px #ffffff73,0 5px 0 #125abe,0 9px 14px -5px #24416d26,0 0 20px 2px #62b9f52e,0 6px 34px 2px #62b9f51a!important;
}
.coin-dialog-top .context-return,.parent-dialog-top .context-return{
 box-shadow:inset 0 2px 1px #ffffff85,0 7px 12px -5px #77224433,0 0 18px 1px #ee52743d,0 6px 32px 2px #ee52741f;
}

/* Listen is a consistent, recognisable audio action on every learning screen. */
.listen-button,.game-home .listen-button,.little .game-home .listen-button,.foundation-home .listen-button,.place-card .listen-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;min-width:60px;padding:10px;border:2px solid #fff;border-bottom:4px solid #72b9e5;border-radius:23px;background:linear-gradient(150deg,#f4fcff,#d4eeff 54%,#b8e1fc)!important;color:#174274!important;box-shadow:inset 0 2px 2px #fff,0 4px 0 #69acd5,0 7px 15px #4d98c426,0 0 16px #a2ddff40;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;transition:transform .16s ease,box-shadow .16s ease}
.listen-button svg{width:34px;height:34px;overflow:visible;pointer-events:none}
.listen-button:active:not(:disabled){transform:translateY(2px) scale(.97);box-shadow:inset 0 2px 2px #fff,0 2px 0 #69acd5,0 4px 10px #4d98c426}
.listen-button:focus-visible{outline:3px solid #176ca6;outline-offset:5px}
.listen-button:disabled{opacity:.5;cursor:default}
@media(prefers-reduced-motion:reduce){.listen-button{transition:none}}
body[data-motion=reduce] .listen-button{transition:none}

/* Sano stylesheet: course-choice.css */
/* The course choice reuses Sano's existing tactile selection tiles. */
.learning-course-choice{gap:24px}
.learning-course-choice .language-choice-tiles{width:100%}
.learning-course-choice .course-letter{width:100%;height:126px;min-height:0;overflow:visible;padding-block:4px;filter:none}
.learning-course-choice .course-letter svg{display:block;width:100%;max-width:230px;height:126px;filter:none;overflow:visible}
.learning-course-choice .language-option strong{font-size:clamp(20px,4.4vw,29px);line-height:1.2;text-wrap:balance}
.course-choice-note{margin:14px auto 0;text-align:center;font:750 16px/1.4 var(--joy-font);color:#466184;max-width:440px}
.course-choice-back{display:flex;justify-content:center;width:min(220px,100%);margin-top:22px}
.course-choice-back .back-tile{max-width:100%;margin:0 auto}
.learning-course-control{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 18px;margin:0 auto 20px;padding:0 16px;font:750 16px/1.4 var(--joy-font);color:#35516c}
/* Replace the former 44px course switch with 24px of breathing room. Existing
   menu and activity margins stay intact; all shared pages move up by 20px. */
body #app .learning-course-control.learning-course-spacer{height:24px;min-height:24px;pointer-events:none}
.learning-course-control strong{color:#d71952;font-weight:900}
.learning-course-control .pill{position:relative;isolation:isolate;display:block;min-height:52px;max-width:100%;padding:0;background:transparent;color:#174274;border:0;box-shadow:none;border-radius:25px}
.learning-course-control .pill::before{content:'';position:absolute;inset:-18px;z-index:-1;pointer-events:none;border-radius:50%;background:radial-gradient(ellipse closest-side,#4c9fea66 0%,#4c9fea47 44%,#4c9fea21 68%,#4c9fea0a 86%,transparent 100%)}
.learning-course-control .pill>.game-tile-face{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:10px 20px;border:2px solid white;border-bottom:5px solid #4c9fea;border-radius:25px;background:linear-gradient(180deg,#ffffff66,transparent 52%),#91caff;font:900 17px/1.4 var(--joy-font);text-align:center;overflow-wrap:anywhere;box-shadow:inset 0 2px 1px #ffffffa6,0 7px 12px -5px #24416d26,0 0 18px 1px #4c9fea26;pointer-events:none}
.learning-course-control .pill:focus-visible{outline:3px solid #0867ed;outline-offset:5px}
/* Match the familiar tile motion while keeping the button's hit area steady.
   Shared motion variables pause it during a press, an open sheet or reduced motion. */
#app .learning-course-control .pill[data-action=course-choice]:not(:disabled):not([aria-disabled=true])>.game-tile-face{
 animation:var(--sano-content-motion,tile-jiggle 3.8s ease-in-out infinite);
 animation-play-state:var(--sano-content-play,running);
}
@media(max-width:359px){.learning-course-choice{padding-inline:18px}.learning-course-choice .language-choice-tiles{gap:14px}.learning-course-choice .language-option .game-tile-face{padding-inline:6px}.learning-course-choice .language-option strong{font-size:20px}.learning-course-control{gap:8px 12px;font-size:15px}.learning-course-control .pill>.game-tile-face{padding-inline:16px}}
@media(max-height:540px) and (orientation:landscape){.learning-course-choice .course-letter,.learning-course-choice .course-letter svg{height:88px}.learning-course-choice .language-option,.learning-course-choice .language-option .game-tile-face{min-height:145px}.learning-course-choice .course-choice-note{margin-top:8px}.course-choice-back{margin-top:12px}.learning-course-control{margin-bottom:12px}}
/* Learning targets keep their course font and wording when interface text changes. */
[data-no-translate][lang=en]:is(.script,.letter-art,.word-letter,.prompt,.learning-entry-label){font-family:ui-rounded,"Arial Rounded MT Bold",Arial,sans-serif;font-weight:800}
.learning-entry-label[lang=en]:not([data-category=alphabet]){font-size:clamp(18px,4.3vw,29px)!important;line-height:1.3;max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
.learning-entry-label[lang=en][data-category=alphabet]{font-size:42px;font-weight:850}
/* Planned courses are smaller than the two playable language choices. */
.learning-course-choice .course-coming{width:100%;margin:2px auto 0;text-align:center}
.learning-course-choice .course-coming h2{margin:0 0 14px;color:#0666ef;font:900 22px/1.3 var(--joy-font)}
.course-coming-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.course-planned-tile{position:relative;display:block;min-width:0;padding:0;border:0;border-radius:22px;background:transparent;color:#174274;cursor:pointer;-webkit-tap-highlight-color:transparent}
.course-planned-tile>.game-tile-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:100%;min-height:134px;box-sizing:border-box;padding:26px 7px 12px;border:2px solid #fff;border-bottom:5px solid var(--topic-edge,#4c9fea);border-radius:inherit;background:linear-gradient(180deg,#ffffff75,transparent 62%),var(--topic-fill,#d9eaff);box-shadow:inset 0 2px 1px #ffffffb3,0 5px 10px -5px #24416d33,0 0 18px color-mix(in srgb,var(--topic-edge,#4c9fea) 22%,transparent);pointer-events:none}
.course-planned-tile .course-planned-flag{display:grid;place-items:center;width:58px;height:43px;max-width:100%}
.course-planned-flag svg{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 2px #24395715)}
.course-planned-tile strong{font:850 15px/1.2 var(--joy-font);text-wrap:balance;overflow-wrap:anywhere}
.course-planned-tile small{font:750 11px/1.2 var(--joy-font);color:#365777}
.course-planned-tile .course-planned-coin{position:absolute;top:3px;right:3px;width:28px;height:28px;filter:drop-shadow(0 2px 2px #99610830)}
.course-planned-coin svg{display:block;width:100%;height:100%}
.course-planned-tile:focus-visible{outline:3px solid #0666ef;outline-offset:5px}
.course-planned-tile:active>.game-tile-face{transform:translateY(2px)}
.course-planned-tile.answer-wrong>.game-tile-face{border-color:#f02e3e;background:#ffd0ce;box-shadow:0 0 18px 5px #f02e3e66}
@media(max-width:540px){.course-coming-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.course-planned-tile{grid-column:span 2}.course-planned-tile:nth-last-child(2):nth-child(4){grid-column:2 / span 2}.course-planned-tile>.game-tile-face{min-height:126px}.course-planned-tile strong{font-size:14px}.learning-course-choice .course-coming h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.course-planned-tile:active>.game-tile-face{transform:none}}
body[data-motion=reduce] .course-planned-tile:active>.game-tile-face{transform:none}


/* A queued curriculum change never covers or replaces the current task. */
.learning-course-control [data-pending-course]{flex-basis:100%;grid-column:1 / -1;text-align:center;font-size:13px;line-height:1.45;font-weight:650;max-width:32em;margin-inline:auto;color:#35516c}

/* The surface is 28px tall; its transparent button target stays 44px tall. */
body #app .learning-course-control.learning-course-switch{flex-direction:row!important;gap:6px!important;margin-top:-6px!important}
/* Give menu tiles more breathing room without moving the switch. */
body #app .foundations-shell:has(.home-landing,.learn-landing)> :where(.sano-page-scroll) >.learning-course-control.learning-course-switch{margin-bottom:24px!important}
body #app .learning-course-control.learning-course-switch>.learning-course-caption{font:700 12px/1.4 var(--joy-font,ui-rounded,system-ui,sans-serif);text-align:center;color:#507395;white-space:nowrap}
body #app .learning-course-control>.learning-course-segments{position:relative;display:flex;align-items:stretch;isolation:isolate;box-sizing:border-box;max-width:100%;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none}
body #app .learning-course-control>.learning-course-segments::before{content:'';position:absolute;z-index:-1;inset:8px 0;border-radius:999px;background:#e1eef9;box-shadow:inset 0 0 0 1px #c2d7e8;pointer-events:none}
body #app .learning-course-control .learning-course-option{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1 1 0;min-width:88px;min-height:44px;margin:0;padding:8px 0;border:0;border-radius:999px;background:transparent;color:#3d658b;box-shadow:none;font:750 14px/1.3 var(--joy-font,ui-rounded,system-ui,sans-serif);white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transform:none!important;transition:none;animation:none!important}
body #app .learning-course-control .learning-course-option::before,body #app .learning-course-control .learning-course-option::after{content:none!important}
body #app .learning-course-control .learning-course-label{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:28px;padding:0 18px;border-radius:999px;pointer-events:none}
body #app .learning-course-control .learning-course-option[aria-pressed=true]{color:#145c3c;font-weight:850}
body #app .learning-course-control .learning-course-option[aria-pressed=true]>.learning-course-label{background:linear-gradient(#c1f2d4,#90ddb5);box-shadow:inset 0 0 0 1px #f3fff9,inset 0 -2px 0 #72c69b}
body #app .learning-course-control .learning-course-option:focus-visible{z-index:1;outline:3px solid #0867ed;outline-offset:2px}
@media(forced-colors:active){body #app .learning-course-control>.learning-course-segments::before{background:ButtonFace;outline:1px solid ButtonText}body #app .learning-course-control .learning-course-option{color:ButtonText}body #app .learning-course-control .learning-course-option[aria-pressed=true]>.learning-course-label{background:Highlight;color:HighlightText;outline:1px solid Highlight;box-shadow:none}}

/* Sano stylesheet: mountain-game.css */
/* A new adventure surface, isolated from learning-card layout and motion. */
.mountain-game{--ink:#183653;max-width:1160px;margin:0 auto;padding:16px clamp(10px,3vw,30px) 32px;color:var(--ink);isolation:isolate}
.mountain-game-header{display:flex;align-items:center;justify-content:flex-start;gap:16px;margin:4px 0 18px}.mountain-game-header h1{font-size:clamp(28px,5vw,48px);line-height:1.12;margin:4px 0;color:#155790;letter-spacing:-1.4px}.mountain-eyebrow{font-size:14px;letter-spacing:.025em;font-weight:800;color:#56748a;margin:0}
.mountain-button{font:inherit;font-weight:850;border:2px solid #fff;border-bottom-width:5px;border-radius:22px;padding:12px 20px;min-height:52px;cursor:pointer;color:#193b56;background:linear-gradient(150deg,#f2fbff,#b8ddff);box-shadow:0 5px 12px #325e8120;touch-action:manipulation;transition:transform .13s ease,box-shadow .13s ease;line-height:1.25}.mountain-button:active{transform:translateY(3px) scale(.975);box-shadow:0 1px 3px #325e811a}.mountain-button:focus-visible,.mountain-canvas:focus-visible{outline:3px solid #1466cf;outline-offset:4px}.mountain-button[aria-pressed=true]{background:linear-gradient(140deg,#c9ffe7,#72dcb1);box-shadow:0 0 20px #69dbad55,inset 0 0 0 2px #fff}.mountain-button:disabled{opacity:.38;cursor:default;box-shadow:none}.mountain-button.mountain-back{background:linear-gradient(145deg,#f5739d,#d54779);color:white;font-size:14px;max-width:180px}
.mountain-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.mountain-mode-choices,.mountain-family-choice{display:flex;gap:10px}.mountain-mode-choices{flex:1}.mountain-mode-choices .mountain-button{display:flex;align-items:center;gap:12px;flex:1;max-width:265px;font-size:20px}.mountain-mode-choices svg{width:60px;height:46px;flex:none}.mountain-family-choice .mountain-button{font-size:14px;padding:10px 16px;min-height:48px}
.mountain-stage{position:relative;width:100%;height:clamp(430px,67svh,700px);border-radius:36px;border:4px solid #fff;overflow:hidden;background:linear-gradient(#86c9e8,#d9edee);box-shadow:0 18px 60px #527ba334,0 0 70px #addef940;contain:layout paint;isolation:isolate}.mountain-canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;outline:none}.mountain-hud{position:absolute;left:16px;right:16px;top:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;font-weight:900;font-size:22px;color:#fff;z-index:2;filter:drop-shadow(0 2px 1px #2a506d75)}.mountain-hud>span{background:#18365385;border:1px solid #ffffff50;border-radius:16px;padding:7px 13px;backdrop-filter:blur(8px)}.mountain-hud small{display:block;font-size:10px;font-weight:750;letter-spacing:.03em}.mountain-hearts{color:#ffbed1;letter-spacing:3px}.mountain-coins{color:#ffe182}.mountain-timer{font-variant-numeric:tabular-nums}
.mountain-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:72px 16px 20px;z-index:3;background:linear-gradient(0deg,#152e4745,#1c477320);overflow:auto}.mountain-overlay[hidden]{display:none}.mountain-start-card{width:min(440px,100%);border-radius:30px;padding:22px clamp(14px,4vw,30px);background:linear-gradient(145deg,#fffefaed,#e5f6ffec);box-shadow:0 16px 45px #14334f45,inset 0 0 0 2px #ffffffb3;text-align:center;display:flex;align-items:stretch;flex-direction:column;gap:13px;backdrop-filter:blur(8px)}.mountain-start-card h2{font-size:clamp(26px,4vw,37px);color:#174e75;margin:0;line-height:1.1}.mountain-start-card p{font-weight:750;font-size:15px;line-height:1.45;margin:0;color:#3a5b73}.mountain-start-card small{font-size:12px;color:#517089;line-height:1.45}.mountain-region{font-size:10px;letter-spacing:.12em;font-weight:900;color:#b17a30}.mountain-levels{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.mountain-levels .mountain-button{padding:4px;min-height:40px;border-radius:12px;font-size:14px;border-bottom-width:3px}.mountain-button.mountain-start{background:linear-gradient(140deg,#ffd78c,#ffb44c);border-color:#fff0cb;color:#704514;min-height:57px;font-size:21px;box-shadow:0 5px 0 #bb793331,0 8px 28px #ffbf5a52}.mountain-stage[data-phase=ready] .mountain-start{animation:mountain-invite 3s ease-in-out infinite}.mountain-results{display:flex;gap:12px;justify-content:center}.mountain-results>div{display:flex;flex-direction:column;flex:1;padding:12px;border-radius:18px;background:#d8ecff9c;gap:3px}.mountain-results strong{font-size:36px;color:#17618d}.mountain-results span{font-size:13px;font-weight:800}
.mountain-controls{display:flex;gap:12px;justify-content:center;margin:15px 0 8px}.mountain-controls .mountain-button{min-width:64px;min-height:58px;background:linear-gradient(135deg,#e8f5ff,#9ecffd);flex:1;max-width:210px;font-size:20px;touch-action:none;user-select:none}.mountain-controls .mountain-lift{max-width:420px;background:linear-gradient(135deg,#ffecc0,#ffcb64)}.mountain-instructions{text-align:center;font-size:14px;font-weight:750;color:#526d82;margin:10px 0}.mountain-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px;color:#57748a;font-weight:750;margin-top:16px}.mountain-foot b{font-size:21px;color:#2875a3;margin-left:5px}.mountain-toast{position:absolute;bottom:25px;left:10%;right:10%;pointer-events:none;text-align:center;font-weight:800;color:white}.mountain-family-note{font-size:12px!important}
@keyframes mountain-invite{0%,100%{transform:scale(1)}50%{transform:scale(1.025);box-shadow:0 6px 25px #ffbf5a70}}
@media(max-width:600px){.mountain-game{padding:10px 10px 24px}.mountain-game-header{gap:8px}.mountain-game-header h1{font-size:30px;letter-spacing:-.7px}.mountain-eyebrow{font-size:11px}.mountain-button.mountain-back{font-size:12px;padding:10px;min-height:48px;max-width:108px}.mountain-mode-choices{flex-basis:100%}.mountain-mode-choices .mountain-button{font-size:17px;max-width:none;padding:8px 12px;border-radius:20px;gap:8px}.mountain-mode-choices svg{width:49px;height:40px}.mountain-family-choice{width:100%;justify-content:center}.mountain-stage{border-radius:27px;height:clamp(440px,64svh,620px)}.mountain-hud{left:9px;right:9px;top:10px;font-size:17px;gap:5px}.mountain-hud>span{padding:6px 9px;border-radius:12px}.mountain-start-card{gap:11px;padding:17px}.mountain-controls{gap:7px}.mountain-controls .mountain-button{font-size:16px;min-width:48px;padding:10px 7px}.mountain-foot{font-size:11px}.mountain-overlay{padding:65px 12px 16px}}
@media(max-height:580px) and (orientation:landscape){.mountain-stage{height:400px}.mountain-game-header{margin-bottom:8px}.mountain-start-card{padding:12px 24px;gap:6px;width:480px}.mountain-start-card h2{font-size:26px}.mountain-levels{grid-template-columns:repeat(12,1fr)}.mountain-levels .mountain-button{min-height:32px}.mountain-overlay{padding-top:55px}.mountain-mode-bar{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.mountain-game *{animation:none!important;transition:none!important}}body[data-page-hidden=true] .mountain-game *{animation-play-state:paused!important}

/* The hold control is deliberately the clearest action below the flight view. */
.mountain-controls .mountain-lift{min-height:74px;max-width:480px;font-size:clamp(20px,3vw,25px);font-weight:900;color:#513000;border:3px solid #fff9d8;border-bottom:7px solid #d68914;background:linear-gradient(150deg,#fff397 0%,#ffd02e 45%,#ffad18 100%);box-shadow:0 8px 18px #da900f30,0 0 34px #ffcf625c,inset 0 2px 0 #fffbd7;letter-spacing:.01em}
.mountain-controls .mountain-lift:active{background:linear-gradient(150deg,#fff9bc,#ffdc43);transform:translateY(3px) scale(.98);box-shadow:0 0 30px #ffd03470}
.mountain-toast:not(:empty){bottom:20px;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:85%;padding:10px 19px;border:2px solid #fff;border-radius:22px;background:#fff8d9ed;color:#624215;box-shadow:0 6px 22px #244f7726;font-size:clamp(16px,3vw,21px)}
.mountain-stage[data-mode=fly] .mountain-timer{font-size:clamp(12px,2vw,17px)}

.mountain-difficulty{display:flex;gap:7px;flex-wrap:wrap}.mountain-difficulty .mountain-button{font-size:14px;min-height:44px;padding:8px 14px}

.mountain-control-demo{font-size:30px;font-weight:900;color:#aa6b0f;letter-spacing:.15em}.mountain-start-card{max-height:100%;overflow:auto}.mountain-reward-flight{position:absolute;pointer-events:none;opacity:0;font-size:34px;z-index:4}.mountain-stage[data-feedback="correct"] .mountain-coins{box-shadow:0 0 24px #57ef9bbb;background:#16764bcc}.mountain-stage[data-feedback="wrong"] .mountain-hearts{box-shadow:0 0 24px #ff5575bb;background:#a42a47cc}

.mountain-score-card{padding:17px;border-radius:23px;border:2px solid #fff;background:linear-gradient(140deg,#fff3c8,#e5f8ff);box-shadow:0 8px 24px #70b8e327,inset 0 2px 3px #fff}.mountain-score-card h3{margin:0 0 7px;color:#245b7c}.mountain-score-card ol{margin:12px 0;padding-left:25px;text-align:left}.mountain-score-card li{padding:7px;color:#385b76}.mountain-score-card li span{float:right;color:#926512}

.mountain-coins{transition:transform .12s ease,box-shadow .2s ease}@media(prefers-reduced-motion:reduce){.mountain-coins{transform:none!important;transition:none}}

/* A compact result: one gold star, two rewards and one next action. */
.mountain-stage[data-phase=finished]{height:auto;min-height:0;background:transparent;border:0;box-shadow:none;contain:none;overflow:visible}.mountain-stage[data-phase=finished] .mountain-canvas,.mountain-stage[data-phase=finished] .mountain-hud,.mountain-stage[data-phase=finished] .mountain-toast{display:none}.mountain-stage[data-phase=finished] .mountain-overlay{position:relative;padding:0;background:transparent;overflow:visible}.mountain-end-card{box-sizing:border-box;gap:10px;padding:16px clamp(14px,4vw,24px);background:linear-gradient(145deg,#f3fbff,#fdf5fb);border:2px solid #fff;box-shadow:0 12px 34px #689ac623,0 0 32px #bfddf53b;backdrop-filter:none;max-height:none}.mountain-result-star{display:block;align-self:center;width:104px;height:104px;pointer-events:none}.mountain-result-star svg{display:block;width:100%;height:100%}.mountain-end-card .mountain-best-score{font-size:15px;line-height:1.35}.mountain-end-card .mountain-results{gap:10px}.mountain-end-card .mountain-results strong{font-size:30px}.mountain-end-card .mountain-results>div{min-width:0;padding:10px 8px;border:2px solid #fff;border-bottom:5px solid #83bbdf;border-radius:24px;background:linear-gradient(145deg,#e2f4ff,#bae1fa);box-shadow:0 8px 24px #7fc7ef30}.mountain-end-card .mountain-results>div+div{background:linear-gradient(145deg,#fff5c8,#ffda79);border-bottom-color:#eebf4c;box-shadow:0 8px 24px #f4cb6536}.mountain-end-card .mountain-start{background:linear-gradient(145deg,#b9f6cf,#63dba4);color:#135849;border-color:#e5fff0;box-shadow:0 5px 0 #3c9f6f33,0 0 25px #6bdfb43a;animation:mountain-invite 3s ease-in-out infinite}.mountain-stage[data-phase=finished]~.mountain-instructions,.mountain-stage[data-phase=finished]~.mountain-foot{display:none}.mountain-mode-choices svg{width:76px;height:65px}@media(max-width:600px){.mountain-mode-choices svg{width:62px;height:53px}.mountain-end-card h2{font-size:29px}}@media(prefers-reduced-motion:reduce){.mountain-end-card .mountain-start{animation:none}}body[data-motion=reduce] .mountain-end-card .mountain-start{animation:none}

.mountain-stage[data-phase=playing]{touch-action:none}.mountain-mode-choices .mountain-button{border-bottom-width:5px;box-shadow:0 8px 23px #78b9e12b}.mountain-mode-choices .mountain-button[aria-pressed=true]{box-shadow:0 5px 0 #469acc24,0 0 28px #5dbfef40}

.mountain-collection{display:flex;gap:10px}.mountain-token{position:relative;display:grid;place-items:center;width:54px;height:58px;border-radius:18px;border:2px solid white;background:linear-gradient(145deg,#eef8ff,#b8dffa);box-shadow:0 4px 0 #83b8d333,0 0 18px #b0dcf54d}.mountain-foot .mountain-token b{font-size:30px;margin:0}.mountain-token.is-collected{background:#d8f3e7}.mountain-foot .mountain-token.is-collected b{color:#f52243;filter:blur(1.3px);opacity:.4}.mountain-token i{position:absolute;right:-3px;top:-5px;border:2px solid white;border-radius:50%;width:26px;height:26px;background:#14885d;color:white;display:grid;place-items:center;font-style:normal;font-size:19px}

.mountain-foot{flex-wrap:wrap;justify-content:center}.mountain-foot>[role=status]{min-width:76px;text-align:center;font-size:15px}

/* Both adventures share a short two-step guide; optional setup stays outside the view. */
.mountain-how-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mountain-how-step{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 7px;border:2px solid #fff;border-bottom:4px solid #82bdde;border-radius:22px;background:linear-gradient(145deg,#e9f8ff,#bce4fa);box-shadow:0 5px 16px #85cbed33}.mountain-how-step+ .mountain-how-step{background:linear-gradient(145deg,#e5fff0,#b7edcf);border-bottom-color:#7ecbaa;box-shadow:0 5px 16px #81d7b233}.mountain-how-step>span{font-size:36px;line-height:1;font-weight:900;color:#236994}.mountain-how-step strong{font-size:clamp(14px,2vw,17px);line-height:1.35;color:#235574}.mountain-start-card .mountain-match-rule{display:flex;align-items:center;text-align:left;gap:12px;font-size:14px;line-height:1.35}.mountain-match-rule b{display:grid;place-items:center;flex:none;min-width:47px;min-height:47px;font-size:29px;background:#fff3bb;border:2px solid white;border-radius:15px;color:#234e68}.mountain-button.mountain-hear{min-height:44px;font-size:14px;padding:9px 12px;background:linear-gradient(145deg,#f6efff,#e3d3f8);color:#654784}.mountain-extras{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:24px;align-items:start}.mountain-extras[hidden]{display:none}.mountain-setup-details{border:2px solid #fff;border-radius:25px;background:#e7f3fc;box-shadow:0 8px 26px #97c8eb2e;padding:15px}.mountain-setup-details summary{cursor:pointer;font-size:17px;font-weight:850;min-height:32px;line-height:1.4;color:#265a7b}.mountain-setup-details .mountain-levels{margin:16px 0}.mountain-setup-details .mountain-score-card p,.mountain-score-card small{line-height:1.5}.mountain-button.mountain-multiplayer{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;width:100%;padding:16px 18px 20px;border-radius:28px;border:3px solid #fff;border-bottom:6px solid #88bca5;background:linear-gradient(145deg,#e8f8ee,#c7e5d5)!important;box-shadow:0 8px 24px #79c3a633,0 0 30px #bcebd132;color:#235574;cursor:not-allowed}.mountain-multiplayer strong{font-size:22px;line-height:1.35}.mountain-multiplayer .multiplayer-preview{font-size:40px;letter-spacing:7px;filter:blur(3px);opacity:.5}.mountain-multiplayer .multiplayer-paid{position:static;width:auto;height:auto;align-self:flex-end;border:2px solid #fff6c3;border-bottom-color:#d8a334;border-radius:18px;padding:7px 11px;background:linear-gradient(145deg,#fff1ab,#f4c34d);color:#654312;font-size:12px;line-height:1.35;font-weight:900;box-shadow:0 3px 13px #e1b7463d}.multiplayer-soon{padding:7px 17px;background:#fffef0;border:2px solid white;border-radius:19px;font-size:16px;font-weight:900;color:#596c65}.mountain-button.mountain-multiplayer[data-feedback=unavailable]{background:linear-gradient(145deg,#ffe7e3,#ffc4c6)!important;border-color:#ed5367;box-shadow:0 0 28px #f36c7c69;color:#95263f}.mountain-unavailable-notice{grid-column:1/-1;margin:0;text-align:center;font-weight:800;color:#a43952}.mountain-unavailable-notice:empty{display:none}
@media(max-width:600px){.mountain-extras{grid-template-columns:1fr;gap:17px}.mountain-how-step{padding:9px 5px}.mountain-how-step strong{font-size:15px}.mountain-start-card h2{font-size:28px}.mountain-start-card .mountain-match-rule{font-size:14px}.mountain-multiplayer strong{font-size:23px}}
body[data-motion=reduce] .mountain-game *{animation:none!important;transition:none!important}

.mountain-stage[data-phase=ready]{min-height:510px}@media(max-height:580px) and (orientation:landscape){.mountain-stage[data-phase=ready]{min-height:400px}}

/* Side-on flight keeps its approaching obstacles in a wide view on phones, too. */
.mountain-stage[data-mode=fly][data-phase=playing],.mountain-stage[data-mode=fly][data-phase=paused]{height:auto;min-height:180px;aspect-ratio:16/9}.mountain-goal-prompt{width:fit-content;max-width:100%;margin:8px auto 12px;padding:6px 20px;border:2px solid white;border-radius:22px;background:linear-gradient(145deg,#fff9dc,#ffe6a5);box-shadow:0 4px 18px #dfc46425;color:#234e68;font-size:24px;font-weight:900;line-height:1.3;text-align:center}.mountain-goal-prompt[hidden]{display:none}.mountain-stage[data-mode=fly] .mountain-hud{top:8px;left:8px;right:8px;font-size:17px;gap:5px}.mountain-stage[data-mode=fly] .mountain-hud>span{padding:4px 8px;border-radius:12px}.mountain-stage[data-mode=fly] .mountain-hud small{display:inline;font-size:10px;margin-left:3px}.mountain-stage[data-mode=fly] .mountain-toast:not(:empty){bottom:8px;padding:5px 12px;font-size:14px}.mountain-stage[data-mode=fly][data-phase=paused] .mountain-overlay{padding:12px}.mountain-stage[data-mode=fly][data-phase=paused] .mountain-start-card{gap:10px;padding:16px}.mountain-stage[data-mode=fly][data-phase=paused] .mountain-start-card h2{font-size:25px}
@media(max-width:600px){.mountain-stage[data-mode=fly] .mountain-hud{font-size:14px}.mountain-stage[data-mode=fly] .mountain-hud>span{padding:4px 6px}.mountain-stage[data-mode=fly] .mountain-hud small{display:none}.mountain-stage[data-mode=fly] .mountain-timer{font-size:12px}.mountain-stage[data-mode=fly] .mountain-hearts{letter-spacing:1px}.mountain-goal-prompt{font-size:22px}}
@media(max-height:580px) and (orientation:landscape){.mountain-stage[data-mode=fly][data-phase=playing],.mountain-stage[data-mode=fly][data-phase=paused]{width:min(100%,110svh);margin-inline:auto}.mountain-goal-prompt{margin-block:5px;padding-block:3px}}

/* Mode artwork and labels stay within their card. */
.mountain-mode-choices,.mountain-mode-choices .mountain-button{min-width:0}.mountain-mode-choices .mountain-button>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:380px){.mountain-mode-choices .mountain-button{flex-direction:column;justify-content:center;gap:5px;padding:9px 8px;font-size:16px;text-align:center}.mountain-mode-choices .mountain-button>span{width:100%;line-height:1.35}.mountain-mode-choices svg{width:62px;height:53px}}

/* Guided setup uses the same three clear steps in both adventures. */
.mountain-mode-bar{display:grid;grid-template-columns:1fr;gap:20px}.mountain-setup-group h2{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:clamp(19px,3vw,24px);line-height:1.3;color:#245b7c}.mountain-setup-group h2>span,.mountain-step-number{display:inline-grid;place-items:center;border-radius:50%;width:32px;height:32px;background:#dceefe;border:2px solid #fff;font-size:18px;color:#245b7c;flex:none}.mountain-mode-choices .mountain-button{max-width:none;justify-content:center;min-height:96px}.mountain-difficulty{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mountain-difficulty .mountain-button{font-size:clamp(16px,3vw,21px);min-height:58px}.mountain-difficulty-group.is-locked .mountain-difficulty{filter:blur(2.2px);opacity:.5}.mountain-difficulty-group.is-locked .mountain-button{opacity:1}.mountain-setup-hint{font-weight:800;color:#57748a;margin:10px 0 0;text-align:center}.mountain-mode-choices .mountain-button[aria-pressed=true],.mountain-difficulty .mountain-button[aria-pressed=true]{background:linear-gradient(145deg,#d4ffe7,#68dcaa)!important;border-color:#fff;box-shadow:0 6px 0 #31865733,0 0 16px #5cddb867,0 0 38px #5cddb83d,inset 0 0 0 2px #fff}.mountain-start-card.is-locked{filter:blur(2.5px);opacity:.5;pointer-events:none}.mountain-locked-hint{position:absolute;left:8%;right:8%;top:43%;margin:0;padding:17px 20px;border:2px solid white;border-radius:24px;background:#edf8ffed;box-shadow:0 8px 28px #235b7e33;color:#215472;font-size:20px;font-weight:900;line-height:1.4;text-align:center}.mountain-stage[data-phase=ready]:not([data-setup=ready]) .mountain-canvas{filter:blur(4px);opacity:.5}.mountain-stage[data-phase=ready] .mountain-hud{visibility:hidden}.mountain-stage[data-phase=ready]~.mountain-foot,.mountain-stage[data-phase=ready]~.mountain-instructions{display:none}.mountain-stage[data-phase=ready] .mountain-overlay{padding-top:22px}

/* Coloured light follows each surface instead of a square white backing. */
.mountain-game .mountain-button.mountain-back,.mountain-game .mountain-button.mountain-another{background:linear-gradient(145deg,#ff729e,#d93772)!important;border-color:#ffe5ed;color:#fff;box-shadow:0 5px 0 #a4205140,0 7px 22px #e747804d,0 0 45px #f2609447}.mountain-game .mountain-button.mountain-back{animation:mountain-back-breathe 3.4s ease-in-out infinite}.mountain-game .mountain-button.mountain-start{background:linear-gradient(145deg,#ff88c0,#f03c8c)!important;color:#fff;border-color:#ffe3f1;border-bottom-color:#cf2c75;box-shadow:0 5px 0 #b3226433,0 9px 27px #f5509c5c,0 0 48px #f5509c38;animation:mountain-pink-invite 3s ease-in-out infinite}.mountain-game .mountain-end-card .mountain-button.mountain-again{background:linear-gradient(145deg,#67e4ad,#16a76f)!important;border-color:#dcffee;border-bottom-color:#168657;color:#fff;box-shadow:0 5px 0 #11784d33,0 8px 25px #2ccd9360,0 0 43px #56e1aa47;animation:mountain-green-invite 3s ease-in-out infinite}.mountain-game .mountain-button.mountain-another{animation:mountain-back-breathe 3.4s ease-in-out infinite}.mountain-how-step{box-shadow:0 6px 18px #65bfe344,0 0 27px #64c4ef35;animation:mountain-guide-float 4s ease-in-out infinite}.mountain-how-step+ .mountain-how-step{box-shadow:0 6px 18px #63c79944,0 0 27px #67d6a935;animation-delay:-2s}.mountain-match-rule b{color:#e51e43;background:linear-gradient(145deg,#fff4f4,#ffd2d9);border-color:#fff;box-shadow:0 4px 12px #e9254933,0 0 23px #f345655c;text-shadow:0 1px 0 #fff,0 0 9px #ff365849}.mountain-start-card small.mountain-heart-rule{display:flex;flex-direction:column;gap:5px}.mountain-heart-rule>span{font-size:27px;color:#f02140;letter-spacing:5px;line-height:1;text-shadow:0 1px 0 #ffadb5,0 0 10px #f3295060}.mountain-game .mountain-hearts{color:#ff2346;text-shadow:0 1px 0 #ffa0ad,0 0 7px #e5164059;letter-spacing:3px}.mountain-hud>.mountain-hearts{background:#fff4f2ed;border-color:#fff6f3}.mountain-goal-prompt{color:#de163b;background:linear-gradient(145deg,#fff4f0,#ffced7);border-color:#fff;box-shadow:0 4px 14px #e9365340,0 0 30px #f3446550;text-shadow:0 1px 0 #fff;font-size:clamp(25px,4vw,31px)}.mountain-toast:not(:empty){color:#ca1237;background:linear-gradient(145deg,#fff4ef,#ffd6dc);border-color:#fff;box-shadow:0 4px 16px #ed416244,0 0 22px #ff66764a}.mountain-stage[data-mode=fly] .mountain-toast:not(:empty){font-weight:950;font-size:clamp(14px,2.2vw,18px)}.mountain-token{min-width:54px;min-height:58px;width:auto;height:auto;padding:5px 8px;background:linear-gradient(145deg,#fff5f4,#ffd3dc);box-shadow:0 4px 0 #cc425f26,0 0 22px #f2476840}.mountain-foot .mountain-token b{color:#e51e43;text-shadow:0 1px 0 white,0 0 9px #ff365840}.mountain-token.is-collected{background:linear-gradient(145deg,#edfff5,#9fe7c2);box-shadow:0 4px 0 #328f6726,0 0 22px #51cd9850}.mountain-foot .mountain-token.is-collected b{color:#117b50;filter:none;opacity:.72;text-shadow:0 1px 0 #fff}.mountain-gold-star{display:inline-block;color:#ffc519;text-shadow:0 2px 0 #d69405,0 0 9px #ffcf40,0 0 22px #ffdf6570;filter:drop-shadow(0 -1px 0 #fff7b2);font-size:1.17em;vertical-align:-.02em}.mountain-collection{flex-wrap:wrap;justify-content:center}

.mountain-extras{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mountain-game .mountain-button.mountain-multiplayer{min-width:0;overflow:visible;padding-top:62px}.mountain-multiplayer .multiplayer-paid{position:absolute;top:10px;right:10px;left:auto;max-width:calc(100% - 20px);font-size:11px;padding:6px 9px}.mountain-multiplayer .multiplayer-paid>span{font-size:17px;white-space:nowrap}.mountain-multiplayer .multiplayer-preview{opacity:.45;filter:blur(3px);font-size:32px;min-height:46px;letter-spacing:2px}.mountain-multiplayer strong{font-size:20px}.mountain-game .mountain-button.mountain-multiplayer[data-feedback=unavailable]{background:linear-gradient(145deg,#ffd8e0,#ff8099)!important;border-color:#ff1d50;border-bottom-color:#c51844;box-shadow:0 0 0 3px #ff496744,0 0 20px #ff204caa,0 0 50px #ef285979,inset 0 0 18px #ffacbb;color:#80102f}.mountain-unavailable-notice{color:#b82149;line-height:1.4}

/* Touch controls never become a text-selection or long-press callout target. */
.mountain-stage[data-phase=playing],.mountain-stage[data-phase=playing] *,.mountain-controls,.mountain-controls *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.mountain-canvas,.mountain-controls .mountain-lift{touch-action:none;-webkit-tap-highlight-color:transparent}
@keyframes mountain-guide-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes mountain-pink-invite{0%,100%{transform:scale(1);box-shadow:0 5px 0 #b3226433,0 9px 27px #f5509c5c,0 0 48px #f5509c38}50%{transform:scale(1.02);box-shadow:0 5px 0 #b3226433,0 10px 32px #f5509c78,0 0 55px #f5509c50}}
@keyframes mountain-green-invite{0%,100%{transform:scale(1);box-shadow:0 5px 0 #11784d33,0 8px 25px #2ccd9360,0 0 43px #56e1aa47}50%{transform:scale(1.02);box-shadow:0 5px 0 #11784d33,0 10px 30px #2ccd9380,0 0 48px #56e1aa60}}
@keyframes mountain-back-breathe{0%,100%{transform:translateY(0);box-shadow:0 5px 0 #a4205140,0 7px 22px #e747804d,0 0 45px #f2609447}50%{transform:translateY(-2px);box-shadow:0 5px 0 #a4205140,0 8px 26px #e747806a,0 0 50px #f2609457}}
@media(max-width:720px){.mountain-extras{grid-template-columns:1fr}.mountain-game .mountain-button.mountain-multiplayer{min-height:190px}.mountain-setup-group h2{font-size:19px}.mountain-difficulty{gap:7px}.mountain-difficulty .mountain-button{padding:10px 6px}}
@media(prefers-reduced-motion:reduce){.mountain-game *{animation:none!important;transition:none!important}}
.mountain-game .mountain-button:active:not(:disabled){animation:none;transform:translateY(3px) scale(.975)}

/* Cream learning tiles with a clear red rim; gold remains the reward colour. */
.mountain-goal-prompt,.mountain-match-rule b{color:#15191d;background:linear-gradient(145deg,#fffdf5,#fff0c9);border-color:#e53748;box-shadow:0 4px 12px #244f7720;text-shadow:none}
.mountain-token{background:linear-gradient(145deg,#f8fcff,#dceefa);box-shadow:0 4px 0 #83b8d326;border-color:#b4d2e5}
.mountain-foot .mountain-token b{color:#17304b;text-shadow:none}
.mountain-foot .mountain-token.is-collected b{color:#117b50}
.mountain-toast:not(:empty){color:#17304b;background:#fffaf0;box-shadow:0 4px 14px #244f7726}
.mountain-stage[data-feedback="wrong"] .mountain-hearts{color:#c92242;background:#fff1f3;border-color:#f25c79;box-shadow:0 0 22px #ff557599}

.mountain-heart-empty{color:#a17f88;text-shadow:none}
@keyframes mountain-heart-impact{0%{transform:scale(1)}35%{transform:scale(1.08)}100%{transform:scale(1)}}
.mountain-stage[data-feedback="wrong"] .mountain-hearts{animation:mountain-heart-impact 700ms ease-out both}
@media(prefers-reduced-motion:reduce){.mountain-stage[data-feedback="wrong"] .mountain-hearts{animation:none}}
body[data-motion=reduce] .mountain-stage[data-feedback="wrong"] .mountain-hearts{animation:none}

/* Short landscape keeps the active playfield and its real touch controls together.
   Setup/results remain scrollable; active play is revealed below the header. */
.mountain-game{padding-left:max(clamp(10px,3vw,30px),env(safe-area-inset-left,0px));padding-right:max(clamp(10px,3vw,30px),env(safe-area-inset-right,0px));padding-bottom:max(32px,env(safe-area-inset-bottom,0px))}
.mountain-stage,.mountain-goal-prompt{scroll-margin-top:max(8px,env(safe-area-inset-top,0px))}
@media(max-height:580px) and (orientation:landscape){
 .mountain-stage[data-mode=run][data-phase=playing],.mountain-stage[data-mode=run][data-phase=paused]{height:clamp(180px,calc(100svh - 112px),400px);min-height:0}
 .mountain-stage[data-mode=fly][data-phase=playing],.mountain-stage[data-mode=fly][data-phase=paused]{width:min(100%,max(250px,calc((100svh - 164px) * 16 / 9)));min-height:140px}
 .mountain-stage:is([data-phase=playing],[data-phase=paused]) .mountain-hud{font-size:14px;top:8px;gap:5px}
 .mountain-stage:is([data-phase=playing],[data-phase=paused]) .mountain-hud>span{padding:4px 8px}
 .mountain-stage:is([data-phase=playing],[data-phase=paused]) .mountain-hud small{display:none}
 .mountain-stage:is([data-phase=playing],[data-phase=paused]) .mountain-overlay{padding:8px}
 .mountain-stage[data-phase=paused] .mountain-start-card{padding:12px;gap:8px}
 .mountain-stage[data-phase=paused] .mountain-start-card h2{font-size:22px}
 .mountain-stage[data-phase=playing]~.mountain-controls{margin:8px 0}
 .mountain-stage[data-phase=playing]~.mountain-controls .mountain-button{min-height:54px}
 .mountain-stage[data-mode=fly][data-phase=playing]~.mountain-controls .mountain-lift{min-height:64px}
}

/* All controls are surfaces, never editable text. Preserve page scrolling in setup. */
.mountain-game{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.mountain-game :is(img,svg,canvas){-webkit-user-drag:none}
.mountain-game :is(input,textarea,[contenteditable=true],[data-selectable]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.mountain-how-steps{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.mountain-how-step{min-width:0}
.mountain-how-step strong{font-size:clamp(11px,1.7vw,16px);white-space:nowrap;word-break:normal;overflow-wrap:normal}
.mountain-controls .mountain-button{white-space:nowrap;word-break:normal;overflow-wrap:normal}
.mountain-foot .mountain-token.is-collected b{filter:none;opacity:.72}
.mountain-mode-choices .mountain-button{position:relative;overflow:visible;animation:mountain-choice-float 4.6s ease-in-out infinite;box-shadow:0 5px 0 #64a7953b,0 10px 24px #65b99433,0 0 38px #8cdfbd66}
.mountain-mode-choices .mountain-button[data-mode=fly]{animation-delay:-2.3s;box-shadow:0 5px 0 #5997bd3b,0 10px 24px #6eb6e533,0 0 38px #8bd1f966}
.mountain-mode-choices .mountain-button[aria-pressed=true]{box-shadow:0 5px 0 #39996c44,0 9px 24px #55c8954d,0 0 44px #65dfa78c}
@keyframes mountain-choice-float{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-3px) rotate(.25deg)}}
@media(prefers-reduced-motion:reduce){.mountain-mode-choices .mountain-button{animation:none}}
body[data-motion=reduce] .mountain-mode-choices .mountain-button{animation:none}

.mountain-mode-choices .mountain-mode-art{display:block;flex:none;width:90px;height:90px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 6px 5px #305a7022)}
@media(max-width:600px){.mountain-mode-choices .mountain-mode-art{width:68px;height:68px}}
@media(max-width:380px){.mountain-mode-choices .mountain-mode-art{width:76px;height:76px}}

/* October: a taller phone flight view, with the same horizontal play distance. */
.mountain-game-header h1{color:#0666ef}
.mountain-game .mountain-quit-card{width:min(310px,100%);max-width:310px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;box-sizing:border-box}
.mountain-quit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;justify-content:center;gap:12px;width:100%}
.mountain-game .mountain-quit-actions .mountain-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:62px;aspect-ratio:auto;padding:12px 10px;border-radius:22px;animation:none}
.mountain-quit-actions strong{font-size:clamp(14px,3.7vw,18px);font-weight:900;line-height:1.25;text-wrap:balance}
.mountain-game .mountain-resume-card{width:min(310px,100%);gap:10px;padding:14px}
.mountain-quit-actions .mountain-quit{background:linear-gradient(155deg,#f575a8,#d94378);color:#fff;border-color:#fff;border-bottom-color:#a92a55;box-shadow:0 5px 0 #c1578036,0 0 24px #ef78aa42}
.mountain-stage[data-exit=true] :is(.mountain-canvas,.mountain-hud){filter:blur(8px)}
.mountain-game .mountain-stage[data-exit=true] .mountain-overlay{padding:20px 16px;background:transparent;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);overflow:auto}
@media(max-width:600px) and (orientation:portrait){
 .mountain-stage[data-mode=fly]:is([data-phase=playing],[data-phase=paused]){width:100%;height:clamp(360px,54svh,560px);min-height:360px;aspect-ratio:auto}
 .mountain-goal-prompt{font-size:24px;padding:7px 14px}
 .mountain-stage[data-mode=fly] .mountain-hud{font-size:15px;gap:5px}
 .mountain-stage[data-mode=fly] .mountain-hud>span{padding:5px 9px}
}

#app .mountain-game .mountain-quit-actions [data-mountain=cancel-exit]{animation:none!important;background:linear-gradient(145deg,#7ae9ac,#21b474)!important;border:3px solid #fff!important;border-bottom:6px solid #098455!important;color:#063f2c!important;box-shadow:0 5px 0 #15986229,0 0 24px #62dda976!important}
#app .mountain-game .mountain-quit-actions [data-mountain=confirm-exit]{animation:none!important;background:linear-gradient(145deg,#ff8391,#e63b56)!important;border:3px solid #fff!important;border-bottom:6px solid #b8213c!important;color:#fff!important;box-shadow:0 5px 0 #bc2c4329,0 0 24px #f86b865c!important}

/* Three equal, compact adventures in a single easy-to-scan column. */
.mountain-game [hidden]{display:none!important}
.mountain-game .mountain-game-header .mountain-back{max-width:none;white-space:nowrap}
.mountain-simple-choices{width:min(260px,88%);max-width:100%;margin:0 auto;padding:0;border:0;background:none;box-shadow:none}
.mountain-game .mountain-mode-bar{margin-bottom:0}
.mountain-simple-choices .mountain-mode-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;width:100%}
/* The home tiles' saturated enamel face, white rim and coloured raised edge. */
.mountain-simple-choices .mountain-mode-choices .mountain-button,.mountain-game .mountain-button.mountain-scribble{--topic-fill:#62b7ff;--topic-edge:#2989da;--topic-ink:#123963;appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;min-height:0;max-width:none;aspect-ratio:1;padding:18px 14px;border:3px solid #fff;border-bottom:6px solid var(--topic-edge);border-radius:32px;background:linear-gradient(145deg,#ffffff55,transparent 66%),var(--topic-fill);box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--topic-edge),0 11px 19px #28548818;color:var(--topic-ink);box-sizing:border-box;text-align:center}
.mountain-simple-choices .mountain-mode-choices .mountain-button[data-mode=run]{--topic-fill:#67dca4;--topic-edge:#29a875;--topic-ink:#104d39}
.mountain-simple-choices .mountain-mode-art,.mountain-game .mountain-scribble-art{display:block;flex:0 1 auto;width:clamp(96px,30vw,132px);height:clamp(96px,30vw,132px);max-width:100%;object-fit:contain;pointer-events:none}
.mountain-scribble-art>svg{display:block;width:100%;height:100%;object-fit:contain}
.mountain-choice-copy{display:grid;gap:6px;min-width:0;width:100%}
.mountain-simple-choices strong,.mountain-game .mountain-scribble strong{font:900 clamp(21px,4.8vw,27px)/1.25 var(--joy-font);overflow-wrap:break-word;text-wrap:balance}
.mountain-simple-choices small{font-size:clamp(13px,2vw,17px);font-weight:800;line-height:1.25}
.mountain-game .mountain-simple-choices .mountain-mode-choices .mountain-button>.mountain-mode-coin{position:absolute;top:8px;right:8px;display:block;flex:none;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;pointer-events:none}
.mountain-simple-choices .mountain-mode-coin>svg{display:block;width:100%;height:100%;animation:none;transform:none}
.mountain-setup-error{margin:18px auto 0;color:#9d274e;text-align:center;max-width:40ch}
.mountain-game .mountain-extras{width:min(260px,88%);max-width:100%;margin:22px auto 0;grid-template-columns:minmax(0,1fr);align-items:stretch}
.mountain-game .mountain-button.mountain-scribble{--topic-fill:#ff95c6;--topic-edge:#d95895;--topic-ink:#622744;animation:mountain-choice-float 4.6s ease-in-out -1.15s infinite}
.mountain-controls:empty{display:none}
@media(max-width:600px){.mountain-simple-choices,.mountain-game .mountain-extras{width:min(230px,84%)}.mountain-simple-choices .mountain-mode-choices .mountain-button,.mountain-game .mountain-button.mountain-scribble{padding:14px 12px;gap:10px;border-radius:28px}}
@media(prefers-reduced-motion:reduce){.mountain-game .mountain-button.mountain-scribble{animation:none}}
.mountain-price-prompt{display:grid;gap:12px;justify-items:center;margin:20px auto 0;padding:20px;width:min(480px,100%);border:3px solid #fff;border-radius:24px;background:#fff4ce;box-sizing:border-box;text-align:center}
.mountain-price-prompt>strong{font-size:22px;color:#68471a}
.mountain-price-prompt>div{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.mountain-price-prompt .mountain-button{min-height:48px}

/* One large matching goal stays visible while the child collects the set. */
.mountain-goal-prompt{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 14px;color:#173b57;border:3px solid #fff;border-bottom:5px solid #daa319;background:linear-gradient(145deg,#fff9c8,#ffdf64);box-shadow:0 5px 12px #173b5724;font-weight:900}
.mountain-target-word{font-size:18px;line-height:1.2;text-align:center}
.mountain-goal-prompt strong{grid-column:2;grid-row:1/3;font-size:76px;line-height:1.12;min-width:72px;text-align:center;font-family:"SanoDevanagari","SanoDevanagariBold",system-ui,sans-serif}
.mountain-goal-progress{display:flex;flex-direction:column;gap:2px;color:#096b42;font-size:23px;line-height:1.05;text-align:center;white-space:nowrap}
.mountain-goal-progress small{font-size:13px;color:#315375}
.mountain-goal-prompt{padding:7px 18px;margin:6px auto 10px;gap:2px 18px;min-height:74px;box-sizing:border-box}
.mountain-goal-prompt strong{font-size:62px}
.mountain-controls .mountain-jump{background:linear-gradient(145deg,#fff094,#ffc235);color:#5a3900;border-bottom-color:#d28b12}
.mountain-token.is-target{background:#e5f3ff;border-color:#2389d8;border-bottom-color:#146aac;box-shadow:0 4px 0 #146aac35}
.mountain-foot .mountain-token.is-target b{color:#173b57}
.mountain-game .mountain-token.is-collected{background:linear-gradient(145deg,#fff1a1,#ffd34c 52%,#edb027);border-color:#fff5c8;border-bottom-color:#bd8114;box-shadow:inset 0 2px 1px #fffce0,0 4px 0 #bd811455,0 0 18px #ffd34c60}
.mountain-game .mountain-foot .mountain-token.is-collected b{color:#4c3308;filter:none;opacity:1;text-shadow:none}
.mountain-game .mountain-hud>.mountain-coins.is-collected,.mountain-game .mountain-stage[data-feedback=correct] .mountain-coins{background:linear-gradient(145deg,#fff1a1,#ffd34c 52%,#edb027);color:#4c3308;border-color:#fff5c8;box-shadow:0 0 18px #ffd34c70;text-shadow:none}
@media(max-width:600px){
 .mountain-target-word{font-size:16px}
 .mountain-goal-progress{font-size:21px}
 .mountain-goal-prompt strong{font-size:56px}
 .mountain-stage[data-mode=run]:is([data-phase=playing],[data-phase=paused]){height:clamp(360px,54svh,560px)}
 .mountain-controls .mountain-button{min-height:60px;font-size:17px}
 .mountain-instructions{color:#315375;font-size:13px;line-height:1.4}
}
@media(max-height:580px) and (orientation:landscape){
 .mountain-goal-prompt{min-height:62px;margin:4px auto 7px;padding:4px 14px}
 .mountain-goal-prompt strong{font-size:46px}
}

/* Future choices wait below the current spoken step. Native disabled controls
   also keep them out of keyboard navigation until they are introduced. */
.mountain-game .mountain-button.is-setup-locked{filter:blur(3px);opacity:.45;pointer-events:none;animation:none!important;transform:none!important;box-shadow:none!important}

/* Choice emphasis follows actual recorded segments, never an estimated timer. */
[data-setup-speaking~="run"] .mountain-mode-choices [data-mode="run"],
[data-setup-speaking~="fly"] .mountain-mode-choices [data-mode="fly"],
[data-setup-speaking~="scribble"] .mountain-extras .mountain-scribble{
 animation:mountain-spoken-choice .9s ease-in-out infinite!important;
 outline:4px solid #ffd344;outline-offset:3px;
 box-shadow:0 5px 0 #c59e2340,0 0 0 7px #ffe98655,0 10px 28px #f9c52b70!important;
}
@keyframes mountain-spoken-choice{0%,100%{transform:translateY(0) scale(1)}25%{transform:translateY(-2px) rotate(-1deg) scale(1.025)}55%{transform:translateY(-3px) rotate(1deg) scale(1.04)}80%{transform:translateY(-1px) rotate(0) scale(1.02)}}
body:is([data-motion=reduce],[data-reduced-motion=true]) [data-setup-speaking] :is([data-mode],.mountain-scribble){animation:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){[data-setup-speaking] :is([data-mode],.mountain-scribble){animation:none!important;transform:none!important}}

/* Keep the complete retry screen in normal flow, with breathing room below both choices. */
.mountain-stage[data-phase=finished] .mountain-overlay{box-sizing:border-box;min-height:0;padding:clamp(18px,4svh,36px) 12px calc(40px + env(safe-area-inset-bottom,0px));align-items:flex-start}
.mountain-game .mountain-end-card{width:min(440px,100%);gap:12px;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible}
.mountain-end-card .mountain-result-star{width:72px;height:72px}
.mountain-end-card .mountain-results{width:100%;max-width:320px;align-self:center;gap:20px}
.mountain-end-card .mountain-results>div,.mountain-end-card .mountain-results>div+div{padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}
.mountain-end-card .mountain-best-score{margin:0}
.mountain-end-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;justify-items:center;align-self:center;gap:18px;width:min(320px,100%);margin:12px 0 8px;scroll-margin-bottom:calc(32px + env(safe-area-inset-bottom,0px))}
.mountain-end-actions .mountain-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:58px;aspect-ratio:auto;padding:10px 8px;border:3px solid #fff;border-bottom-width:6px;border-radius:20px;font:900 clamp(13px,3.6vw,16px)/1.3 var(--joy-font);white-space:normal;overflow-wrap:break-word;text-wrap:balance;text-align:center}
.mountain-hud>.mountain-coins{margin-left:auto}
@media(max-height:580px){.mountain-stage[data-phase=finished] .mountain-overlay{padding-top:12px}.mountain-game .mountain-end-card{gap:8px}.mountain-end-card .mountain-result-star{width:56px;height:56px}.mountain-end-card h2{font-size:26px}.mountain-end-actions{margin-top:8px}}

/* Pause, exit and results float above the whole blurred game page. */
#app .mountain-game:has(.mountain-stage[data-prompt=true]){isolation:auto}
#app .mountain-game .mountain-stage[data-prompt=true]{contain:none;isolation:auto;overflow:visible}
#app .mountain-game .mountain-stage[data-phase=finished]{height:clamp(430px,67svh,700px);min-height:360px;background:linear-gradient(#86c9e8,#d9edee)}
#app .mountain-game .mountain-stage[data-phase=finished] .mountain-canvas{display:block}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;max-width:none;height:auto;max-height:none;min-height:0;margin:0;padding:24px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));overflow:auto;background:rgba(244,249,255,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#app .mountain-game .mountain-overlay :is(.mountain-resume-card,.mountain-quit-card,.mountain-end-card){width:min(420px,100%);max-width:420px;max-height:none;margin:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;text-align:center}
#app .mountain-game .mountain-overlay :is(.mountain-results,.mountain-results>div){background:transparent;border:0;box-shadow:none;border-radius:0}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-button{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#124c77!important;font:900 clamp(20px,5vw,28px)/1.35 var(--joy-font);min-height:58px;padding:12px 8px;animation:none!important;text-shadow:0 1px 12px #fff;white-space:normal;text-wrap:balance;transform:none}
#app .mountain-game .mountain-overlay .mountain-quit-actions strong{font:inherit}
#app .mountain-game .mountain-overlay :is(.mountain-quit-actions,.mountain-end-actions){width:100%;max-width:420px;gap:20px}
#app .mountain-game .mountain-overlay .mountain-button:focus-visible{outline:0;filter:brightness(1.08)}
@media(forced-colors:active){#app .mountain-game .mountain-overlay .mountain-button:focus-visible{outline:3px solid Highlight;outline-offset:4px}}
#app .mountain-game .mountain-overlay .mountain-button:active{opacity:.7}
@media(max-height:580px){#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay{align-items:safe center;padding-top:12px;padding-bottom:12px}#app .mountain-game .mountain-end-card{gap:6px}#app .mountain-game .mountain-end-card .mountain-result-star{width:48px;height:48px}}

/* Keep the scene transparent, with distinct coloured result actions. */
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-button{border:3px solid #fff!important;border-bottom-width:6px!important;border-radius:22px!important;color:#fff!important;font:900 clamp(15px,3.8vw,19px)/1.25 var(--joy-font);min-height:84px;padding:14px 10px;text-shadow:0 1px 2px #0002;transition:transform .18s ease,filter .18s ease}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-another{background:linear-gradient(145deg,#ff8391,#e63b56)!important;border-bottom-color:#b8213c!important;box-shadow:inset 0 2px 1px #ffdce4,0 5px 0 #bc2c4333,0 0 24px #f86b8677!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-again{background:linear-gradient(145deg,#67e4ad,#16a76f)!important;border-bottom-color:#168657!important;box-shadow:inset 0 2px 1px #dcffee,0 5px 0 #11784d33,0 0 24px #2ccd9377!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-button:active{transform:translateY(3px) scale(.98);opacity:1;filter:brightness(1.06)}

/* Exit choices keep the transparent scene and restore two centred tiles. */
#app .mountain-game .mountain-overlay .mountain-quit-actions{display:flex;flex-direction:column;align-items:center;width:min(300px,100%);gap:18px;margin-inline:auto}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions .mountain-button{width:100%;min-height:80px;padding:16px 18px;border:3px solid #fff!important;border-bottom-width:6px!important;border-radius:24px!important;color:#fff!important;font:900 clamp(18px,4.5vw,24px)/1.3 var(--joy-font);text-shadow:0 1px 2px #0002;transition:transform .18s ease,filter .18s ease}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions [data-mountain=cancel-exit]{background:linear-gradient(145deg,#67e4ad,#16a76f)!important;border-bottom-color:#168657!important;box-shadow:inset 0 2px 1px #dcffee,0 5px 0 #11784d33,0 0 24px #2ccd9377!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions [data-mountain=confirm-exit]{background:linear-gradient(145deg,#ff8391,#e63b56)!important;border-bottom-color:#b8213c!important;box-shadow:inset 0 2px 1px #ffdce4,0 5px 0 #bc2c4333,0 0 24px #f86b8677!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions .mountain-button:active{transform:translateY(3px) scale(.98);opacity:1;filter:brightness(1.06)}
@media(prefers-reduced-motion:reduce){#app .mountain-game .mountain-quit-actions .mountain-button{transition:none!important}}

/* Give the two adventure pictures more presence without enlarging the home Games icon. */
.mountain-simple-choices .mountain-mode-choices .mountain-mode-art{width:clamp(112px,36vw,156px);height:clamp(112px,36vw,156px)}

/* A coin stays in the corner even where narrow-screen copy spans fill the tile. */
.mountain-mode-choices .mountain-button>.sano-price-badge{width:44px;height:44px}
@media(max-width:380px){.mountain-mode-choices .mountain-button>.sano-price-badge{width:40px;height:40px}}

/* A modal dialog enters the browser top layer, beyond every app transform and
   game-card containment boundary. Only its backdrop blurs the frozen page. */
#app .mountain-game .mountain-stage[data-prompt=true] dialog.mountain-prompt{
 position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
 margin:0;border:0;outline:0;border-radius:0;box-shadow:none;
 background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;
 overflow:auto;overscroll-behavior:contain;touch-action:pan-y;align-items:safe center;justify-content:safe center;
 padding:max(24px,env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));
}
dialog.mountain-prompt::backdrop{background:rgba(244,249,255,.30);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
dialog.mountain-prompt:not([open]){display:none!important}
body[data-mountain-prompt=true] #app *{animation-play-state:paused!important;transition:none!important}
body[data-mountain-prompt=true] .mountain-game-header{visibility:hidden!important;pointer-events:none!important}
#app .mountain-game .mountain-prompt :is(.mountain-end-card,.mountain-quit-card,.mountain-resume-card){border:0;outline:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-height:580px){#app .mountain-game .mountain-stage[data-prompt=true] dialog.mountain-prompt{padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:max(12px,env(safe-area-inset-bottom,0px));align-items:safe center}}

/* November: the chosen game owns the viewport; all surrounding app surfaces
   return when its reversible immersive lease ends. Portrait is the baseline. */
body[data-mountain-immersive=true]{overflow:hidden;overscroll-behavior:none}
body[data-mountain-immersive=true] .reward-toolbar-arrival{visibility:hidden!important}
body[data-mountain-immersive=true] :is(.corner-tools,.app-header,.bottom-navigation){visibility:hidden!important;pointer-events:none!important}
[data-mountain-immersive=true] .mountain-game,body[data-mountain-immersive=true] #app .mountain-game{position:fixed;inset:0;z-index:90;isolation:isolate;width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden;background:#86c9e8}
body[data-mountain-immersive=true] #app .mountain-game .sano-game-scroll{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;margin:0;padding:0;overflow:hidden;contain:none;mask-image:none;-webkit-mask-image:none;clip-path:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-stage{position:absolute;inset:0;width:100%;height:100%;max-width:none;min-height:0;aspect-ratio:auto;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;contain:layout paint;isolation:isolate}
body[data-mountain-immersive=true] #app .mountain-game .mountain-canvas{width:100%;height:100%;display:block}
body[data-mountain-immersive=true] #app .mountain-game :is(.mountain-game-header,.mountain-foot,.mountain-instructions){display:none!important}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud{left:max(10px,env(safe-area-inset-left,0px));right:calc(max(10px,env(safe-area-inset-right,0px)) + 60px);top:max(10px,env(safe-area-inset-top,0px));font-size:clamp(15px,3.8vw,21px);gap:6px;filter:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>span{border:1px solid #ffffffb3;border-radius:14px;padding:6px 9px;backdrop-filter:none;background:#173b57de;box-shadow:0 2px 6px #173b5729;color:#fff}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-hearts{background:#fff8f5ed;color:#e63859;text-shadow:none;letter-spacing:1px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud small{font-size:10px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-score{display:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-pause{display:grid;place-items:center;position:absolute;top:max(8px,env(safe-area-inset-top,0px));right:max(8px,env(safe-area-inset-right,0px));z-index:4;width:48px;height:48px;min-height:48px;min-width:48px;padding:0;border:2px solid #fff;border-bottom:4px solid #d49c29;border-radius:16px;background:linear-gradient(145deg,#fff8bc,#ffd65a);box-shadow:0 3px 7px #173b5729;color:#553c0c;font-size:24px;line-height:1;animation:none;touch-action:manipulation}
body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt{position:absolute;z-index:3;top:calc(max(10px,env(safe-area-inset-top,0px)) + 58px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);min-height:58px;margin:0;padding:5px 12px;gap:2px 12px;border:2px solid #fff;border-bottom:4px solid #d49c29;border-radius:19px;box-shadow:0 4px 10px #173b5724;pointer-events:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt strong{font-size:clamp(40px,10vw,56px);min-width:46px;line-height:1.15}
body[data-mountain-immersive=true] #app .mountain-game .mountain-target-word{font-size:14px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-progress{font-size:18px;gap:2px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-progress small{font-size:11px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-controls{position:absolute;z-index:3;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:max(10px,env(safe-area-inset-bottom,0px));margin:0;gap:10px;pointer-events:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-controls .mountain-button{pointer-events:auto;min-height:48px;min-width:0;white-space:normal;padding:8px 12px;max-width:150px;border-radius:17px;font-size:16px;box-shadow:0 3px 7px #173b5729}
body[data-mountain-immersive=true] #app .mountain-game .mountain-toast{bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 12px));font-size:clamp(14px,3.7vw,16px);line-height:1.4;left:max(14px,env(safe-area-inset-left,0px));right:max(14px,env(safe-area-inset-right,0px));width:auto;max-width:none;box-sizing:border-box;transform:none;margin:0;white-space:normal;z-index:3}
.mountain-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px;padding:0;border:0}
body[data-mountain-immersive=true] #app .mountain-game .mountain-stage[data-prompt=true]{contain:none;isolation:auto;overflow:visible}
body[data-mountain-immersive=true] #app .mountain-game .mountain-stage[data-prompt=true] dialog.mountain-prompt{padding:max(16px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));align-items:safe center}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card{box-sizing:border-box;width:min(480px,100%);max-width:480px;margin:auto;padding:20px;border:2px solid #ffffffdf;border-radius:28px;background:#f2fbfff2;box-shadow:0 12px 32px #173b5726;backdrop-filter:none;gap:16px}
.mountain-journey-heading{display:flex;gap:12px;justify-content:center;align-items:center}
.mountain-journey-heading .mountain-mode-art{width:64px;height:64px;object-fit:contain}
.mountain-journey-heading h2{font-size:clamp(24px,6vw,32px);line-height:1.25}
.mountain-journey-card fieldset,.mountain-audio-settings{border:0;min-width:0;margin:0;padding:0}
.mountain-journey-card legend,.mountain-audio-settings legend{font-size:16px;font-weight:850;line-height:1.5;margin:0 auto 8px;color:#204a68}
.mountain-playstyles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.mountain-session-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mountain-journey-actions{display:grid;gap:8px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-journey-card .mountain-button,body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-audio-settings .mountain-button{min-width:0;min-height:48px;padding:10px 8px;font:850 clamp(14px,3.6vw,17px)/1.3 var(--joy-font);border:2px solid #fff!important;border-bottom:4px solid #adc8db!important;border-radius:16px!important;background:linear-gradient(145deg,#f5fbff,#d2e9fb)!important;box-shadow:0 3px 6px #173b5714!important;color:#1d4a6b!important;text-shadow:none;animation:none!important;transform:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-button[aria-pressed=true]{background:linear-gradient(145deg,#d5ffeb,#83e5bb)!important;border-bottom-color:#24a477!important;color:#104d39!important;box-shadow:inset 0 0 0 1px #20a77c!important}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-start{min-height:58px;background:linear-gradient(145deg,#ff87bc,#ed3e88)!important;color:#fff!important;border-bottom-color:#c42a6a!important;font-size:18px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-button:disabled{opacity:.55}
.mountain-journey-card .mountain-choice-note{margin:7px 0 0;font-size:13px;line-height:1.45;font-weight:650;min-height:2.9em;color:#365d78}
.mountain-journey-card .mountain-input-guide{font-size:14px;line-height:1.45}
.mountain-audio-settings{margin:22px auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:360px}
.mountain-audio-settings legend{grid-column:1/-1}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-browser-fullscreen{font-size:15px;min-height:44px;margin-top:8px}
.mountain-quit-card h2{font-size:clamp(22px,6vw,30px);line-height:1.3;margin:0 0 20px;color:#174e75}
.mountain-graphics-notice{font-size:15px;line-height:1.5;color:#204a68;margin:18px 0 0}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-start:not(:disabled){animation:mountain-pink-invite 3s ease-in-out infinite!important;animation-play-state:running!important}
body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-start:active:not(:disabled){animation:none!important;transform:translateY(2px) scale(.98)}
body[data-motion=reduce][data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-start{animation:none!important;transform:none}
@media(prefers-reduced-motion:reduce){body[data-mountain-immersive=true] #app .mountain-game .mountain-overlay .mountain-journey-card .mountain-start:not(:disabled){animation:none!important;transform:none}}
.mountain-mission-recap{font-size:18px;line-height:1.5}
.mountain-sticker{display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:850}
.mountain-sticker>span{display:grid;place-items:center;width:64px;height:64px;background:#fff3b5;border:3px solid white;border-radius:50%;font-size:38px}
@media(max-width:360px){body[data-mountain-immersive=true] #app .mountain-game .mountain-hud{font-size:13px;gap:4px}body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>span{padding:6px}.mountain-journey-card .mountain-choice-note{font-size:12px}.mountain-playstyles{gap:4px}}
@media(max-height:580px) and (orientation:landscape){body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt{left:max(12px,env(safe-area-inset-left,0px));transform:none;top:calc(max(8px,env(safe-area-inset-top,0px)) + 54px)}body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt strong{font-size:38px}.mountain-journey-card{gap:10px!important}.mountain-journey-heading .mountain-mode-art{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){body[data-mountain-immersive=true] #app .mountain-game *{animation:none!important;transition:none!important}}



body[data-mountain-immersive=true] #app .mountain-game .mountain-pause svg{display:block;width:22px;height:22px;fill:currentColor;pointer-events:none}

/* Direct play fills the app viewport; only compact navigation sits over it. */
body[data-mountain-immersive=true] #app .mountain-game .mountain-pause{left:max(14px,env(safe-area-inset-left));right:auto;top:max(14px,env(safe-area-inset-top));width:46px;height:46px;min-width:46px;border-radius:16px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-screen-exit{position:absolute;right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));z-index:8;min-width:46px;width:46px;height:46px;padding:0;border:2px solid #fff;border-radius:16px;background:#ffffffdf;color:#dc5777;font:800 30px/1 system-ui;box-shadow:0 5px 12px #22566d21}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud{left:70px;right:70px;justify-content:center}
.mountain-mode-choices [data-mountain=arcade] .arcade-art{width:100px;height:100px;margin:auto}
.mountain-mode-choices{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.knowledge-matching-adventures .game-tile-face{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 10px}
.knowledge-matching-adventures img{width:90px;height:90px;object-fit:contain}
.knowledge-matching-adventures strong{font:800 clamp(17px,4vw,23px)/1.35 var(--joy-font);text-align:center;overflow-wrap:anywhere}

/* Collected learning stays visible without taking over the playfield. */
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud{align-items:center;flex-wrap:wrap;gap:5px;top:max(14px,env(safe-area-inset-top));pointer-events:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-practice-badge{display:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-score{display:inline-flex;align-items:center;gap:4px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-coins{margin-left:0}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-play-coins{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(145deg,#fff2b3,#ffdc73);color:#644317;border-color:#fff4cf}
.mountain-play-coins svg{width:23px;height:23px;flex:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt strong.mountain-word-goal{font-size:clamp(23px,5vw,38px);max-width:min(60vw,300px);overflow-wrap:anywhere}
.mountain-target-picture{display:block;width:clamp(42px,9vw,66px);height:clamp(42px,9vw,66px);margin:auto}
.mountain-target-picture>svg,.mountain-target-picture>img,.mountain-target-picture svg,.mountain-target-picture img{width:100%;height:100%;object-fit:contain}
body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt[data-kind=picture] strong{display:flex;align-items:center;gap:8px;font-size:clamp(20px,4.5vw,32px)}
@media(max-width:380px){body[data-mountain-immersive=true] #app .mountain-game .mountain-hud{font-size:12px;left:65px;right:65px;gap:3px}body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>span{padding:5px}.mountain-play-coins svg{width:19px;height:19px}body[data-mountain-immersive=true] #app .mountain-game .mountain-hud small{display:none}}
@media(orientation:landscape) and (max-height:580px){body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt{max-width:37vw;min-height:42px}body[data-mountain-immersive=true] #app .mountain-game .mountain-goal-prompt strong.mountain-word-goal{font-size:24px}.mountain-target-picture{width:38px;height:38px}}

/* Keep the full artwork inside the replay button, including image-based icons. */
.mountain-game .mountain-retry-art>img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;pointer-events:none}
.mountain-game .mountain-reward-flight{display:grid;place-items:center;line-height:1;will-change:transform,opacity}
.mountain-game .mountain-reward-flight>svg{display:block;width:100%;height:100%;overflow:visible}

/* Stable counters leave the learning prompt clear on small portrait screens. */
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>span{box-sizing:border-box;white-space:nowrap;font-variant-numeric:tabular-nums}
body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-coins{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(145deg,#fff8d8,#f8d983);color:#72511d;border-color:#fff6d5}
@media(max-width:380px){body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-score{display:none}}

.mountain-toast{opacity:0;translate:0 6px;transition:opacity .22s ease,translate .22s ease;pointer-events:none}.mountain-toast[data-visible=true]{opacity:1;translate:0 0}
@media(prefers-reduced-motion:reduce){.mountain-toast{transition:none}}

.mountain-end-card .mountain-end-actions{display:flex;flex-direction:column;gap:12px;width:min(100%,300px);margin:16px auto 0}.mountain-end-card .mountain-end-actions>button{width:100%;min-height:54px;max-height:none;display:flex;justify-content:center;align-items:center;padding:12px 18px;font-size:18px;border-radius:22px}
.mountain-end-card .mountain-again{order:-1;background:linear-gradient(145deg,#81ebba,#23ae78)!important;color:#083c2d;border:3px solid white;border-bottom:5px solid #168759}.mountain-end-card .mountain-another{background:linear-gradient(145deg,#ff91a0,#e84260)!important;color:white;border:3px solid white;border-bottom:5px solid #b42540}.mountain-end-card .mountain-retry-art{display:none}

/* Gold artwork stays readable in the scene, in flight, and at its destination. */
.mountain-coins{display:inline-flex;align-items:center;gap:5px}
.mountain-coins>svg{display:block;width:26px;height:26px;overflow:visible;filter:drop-shadow(0 0 5px #ffd447)}
.mountain-play-coins>svg{filter:drop-shadow(0 0 5px #ffce55)}
.mountain-reward-flight>svg{filter:drop-shadow(0 0 4px #fff5bd) drop-shadow(0 0 10px #ffca35)}

.mountain-game .mountain-simple-choices .mountain-button[data-arcade=fish]{--topic-fill:#68d8d1;--topic-edge:#299f9b;--topic-ink:#114947}
.mountain-game .mountain-simple-choices .mountain-button[data-arcade=balloons]{--topic-fill:#f5a6c8;--topic-edge:#d76596;--topic-ink:#712744}
.mountain-game .mountain-simple-choices .mountain-button[data-arcade=basket]{--topic-fill:#f4ca75;--topic-edge:#cc9841;--topic-ink:#704716}
.mountain-game .mountain-simple-choices .mountain-button[data-arcade=tap]{--topic-fill:#baacf3;--topic-edge:#8a70d1;--topic-ink:#42266e}
.mountain-game .mountain-simple-choices .mountain-button[data-arcade]{box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--topic-edge),0 0 30px color-mix(in srgb,var(--topic-fill) 65%,transparent)}
.toddler-hearts{position:absolute;top:14px;left:14px;z-index:5;color:#d54d6c;background:#fff7;border-radius:18px;padding:6px 12px;font-size:24px;letter-spacing:3px}
.toddler-adventure[data-feedback=wrong] .toddler-companion{filter:sepia(.5) saturate(3) hue-rotate(310deg) drop-shadow(0 0 8px #ff536580)}

/* Keep one caption layer while messages fade; rapid events replace its pending copy. */
.mountain-game .mountain-toast{line-height:1.45;min-height:1.45em;overflow-wrap:anywhere;text-wrap:balance;will-change:opacity,translate}
body[data-motion=reduce] .mountain-toast{transition:none}

.mountain-results strong{display:flex;align-items:center;justify-content:center;gap:7px}.mountain-result-currency{display:inline-flex;width:36px;height:36px;filter:drop-shadow(0 0 7px #ffd64b99)}.mountain-result-currency svg{width:100%;height:100%}

/* Keep both reward destinations visible on phones; the learning goal never
   covers a wrapped coin counter. Points remain available in the saved score. */
@media(max-width:600px){
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud{left:60px;right:60px;flex-wrap:nowrap;font-size:clamp(12px,3.5vw,16px);gap:5px}
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-score{display:none}
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>span{padding:5px 7px;min-width:0}
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud :is(.mountain-coins,.mountain-play-coins)>svg{width:22px;height:22px;flex:none}
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-hearts{letter-spacing:0}
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-timer{position:absolute;top:53px;right:-44px;max-width:64px;font-size:12px}
 body[data-mountain-immersive=true] #app .mountain-game .mountain-hud>.mountain-timer small{display:none}
}

/* A control keeps its own colour when glowing, pressed or keyboard focused. */
.mountain-game .mountain-button{--mountain-control-glow:#69bce9}
.mountain-game :is(.mountain-start,.mountain-pause,.mountain-jump,.mountain-lift){--mountain-control-glow:#f3c443}
.mountain-game :is(.mountain-back,.mountain-screen-exit,.mountain-another,.mountain-quit,[data-mountain=confirm-exit]){--mountain-control-glow:#ed6386}
.mountain-game :is(.mountain-again,[data-mountain=cancel-exit],.mountain-button[aria-pressed=true]){--mountain-control-glow:#45ce94}
.mountain-game .mountain-journey-card .mountain-start{--mountain-control-glow:#ef6aa3}
.mountain-game .mountain-hear{--mountain-control-glow:#ad84dd}
body #app .mountain-game .mountain-button:not(:disabled){box-shadow:0 4px 10px #203c491a,0 0 17px color-mix(in srgb,var(--mountain-control-glow) 42%,transparent)!important}
body #app .mountain-game .mountain-button:focus-visible{outline:3px solid transparent;outline-offset:3px;filter:brightness(1.08);box-shadow:0 0 9px 4px color-mix(in srgb,var(--mountain-control-glow) 80%,transparent),0 0 25px color-mix(in srgb,var(--mountain-control-glow) 55%,transparent)!important}
body #app .mountain-game .mountain-canvas:focus-visible{outline:0}
@media(forced-colors:active){body #app .mountain-game .mountain-button:focus-visible{outline-color:Highlight;filter:none}}
.mountain-game .mountain-mode-choices .mountain-button{--mountain-control-glow:var(--topic-fill,#69bce9)}
.mountain-game .mountain-scribble{--mountain-control-glow:#ed82b5}
body #app .mountain-game .mountain-button{
 --action-light:var(--mountain-control-glow)!important;
 --sano-surface-glow:var(--mountain-control-glow)!important;
 --sano-surface-shadow:inset 0 2px 1px #ffffffa6,0 4px 10px #203c491a,0 0 20px 3px color-mix(in srgb,var(--mountain-control-glow) 44%,transparent)!important;
}
body #app .mountain-game .mountain-button:focus-visible{--sano-surface-shadow:0 0 9px 4px color-mix(in srgb,var(--mountain-control-glow) 80%,transparent),0 0 25px color-mix(in srgb,var(--mountain-control-glow) 55%,transparent)!important}
body #app .mountain-game .mountain-button:active{--sano-surface-shadow:inset 0 1px 1px #ffffff90,0 0 22px 3px color-mix(in srgb,var(--mountain-control-glow) 55%,transparent)!important}

/* One loading surface, held until the scene is ready; no legacy start card. */
.mountain-loading-card{box-sizing:border-box;width:min(88vw,360px);padding:30px 24px 22px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;border:2px solid #ffffffeb;border-radius:34px;background:linear-gradient(150deg,#fffdf8,#edf9fa);box-shadow:0 15px 48px #23485c26,inset 0 2px 2px white;color:#315367}
.mountain-loading-card h2{margin:0;font-size:clamp(23px,5vw,30px)}
.mountain-loading-card p{margin:0;max-width:26ch;font-size:16px;line-height:1.5}
.mountain-loading-art{display:grid;place-items:center;width:108px;height:108px;border-radius:30px;background:#e5f8f3;box-shadow:0 0 28px #8bd9ba45}
.mountain-loading-art img{width:96px;height:96px;object-fit:contain}
.mountain-loading-dots{display:flex;gap:7px;padding:4px}
.mountain-loading-dots i{width:7px;height:7px;border-radius:50%;background:#65aa97;animation:mountain-loading-breathe 1.4s ease-in-out infinite}
.mountain-loading-dots i:nth-child(2){animation-delay:.16s}.mountain-loading-dots i:nth-child(3){animation-delay:.32s}
body #app .mountain-game .mountain-loading-back{min-height:44px;padding:8px 16px;margin:0;font-size:15px;background:#ffffffb8!important;color:#526a78;border:1px solid #d6e8e7;border-radius:18px;--mountain-control-glow:#9ecabe;--sano-surface-shadow:none!important}
.mountain-stage[data-phase=ready][data-setup=ready]:not([data-revealing=true]) .mountain-canvas{visibility:hidden}
.mountain-stage[data-phase=ready][data-setup=ready]{background:linear-gradient(145deg,#f1faf8,#e4f2fb)}
@keyframes mountain-loading-breathe{0%,100%{opacity:.4;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.mountain-loading-dots i{animation:none}}
body[data-motion=reduce] .mountain-loading-dots i{animation:none}
.arcade-loading{min-height:75dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#f1faf8,#e4f2fb)}

/* Loading belongs to the same clear mountain scene as play. Keep it opaque
   above the frozen game so the old orange scene cannot bleed through. */
dialog.mountain-prompt:has(.mountain-loading-card)::backdrop{background:linear-gradient(155deg,#eaf4ff,#eefaf5);backdrop-filter:none;-webkit-backdrop-filter:none}
body #app .mountain-game .mountain-loading-card{width:min(88vw,360px);padding:0 0 18px;gap:12px;overflow:hidden;background:#fafdff;border:2px solid white;border-radius:30px;box-shadow:0 18px 55px #2c628529,inset 0 1px white;opacity:1;filter:none;color:#244962}
.mountain-loading-scene{position:relative;width:100%;height:155px;overflow:hidden;background:#d9eeff;border-bottom:1px solid #dfedf3}
.mountain-loading-scene>img{width:100%;height:100%;object-fit:cover;object-position:center 38%;display:block}
body #app .mountain-game .mountain-loading-scene .mountain-loading-art{position:absolute;inset:auto auto 12px 50%;transform:translateX(-50%);width:88px;height:88px;border-radius:24px;border:2px solid #ffffffed;background:#f5fcffed;box-shadow:0 6px 22px #1c466c30}
.mountain-loading-scene .mountain-loading-art img{width:80px;height:80px}
body #app .mountain-game .mountain-loading-card h2{padding:0 18px;font-size:26px;line-height:1.2;color:#234c6b}
body #app .mountain-game .mountain-loading-card p{padding:0 18px;font-size:15px;color:#41657a}
body #app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-loading-card .mountain-button.mountain-loading-back{min-height:44px!important;padding:8px 18px!important;border:1px solid #c8e2df!important;border-radius:18px!important;background:#edf8f5!important;box-shadow:0 2px 7px #28584b12!important;color:#315c5a!important;font-size:15px!important;filter:none!important}
body #app .mountain-game .mountain-loading-card .mountain-loading-back:focus-visible{outline:2px solid #6aa798;outline-offset:3px}
body #app .mountain-game .mountain-loading-back::before,body #app .mountain-game .mountain-loading-back::after{display:none!important}
body[data-mountain-prompt=true] #app .mountain-loading-dots i{animation-play-state:running!important}
@media(max-height:480px){.mountain-loading-scene{height:88px}.mountain-loading-scene .mountain-loading-art{scale:.72;transform-origin:bottom center}body #app .mountain-game .mountain-loading-card{gap:7px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){body[data-mountain-prompt=true] #app .mountain-loading-dots i{animation:none!important}}
body[data-motion=reduce][data-mountain-prompt=true] #app .mountain-loading-dots i{animation:none!important}
.arcade-loading .mountain-loading-art svg{width:88px;height:88px;max-height:100%;max-width:100%}
.arcade-loading .mountain-loading-back{padding:10px 18px;min-height:44px;border:1px solid #d6e8e7;border-radius:18px;background:#ffffffb8;color:#526a78;font:inherit;font-size:15px;cursor:pointer}
.mountain-heart-loss{position:absolute;z-index:12;display:flex;align-items:center;gap:3px;pointer-events:none;filter:drop-shadow(0 3px 6px #a8294550)}.mountain-heart-loss svg{width:44px;height:44px}.mountain-heart-loss b{font-size:23px;color:#bc3153;background:#fff7f8;border-radius:20px;padding:3px 8px}

/* Match the rounded collection recap and compact captions used by River Friends. */
#app .mountain-game .mountain-prompt .mountain-collection-card{display:grid;justify-items:center;gap:12px;width:min(340px,100%);max-width:340px;box-sizing:border-box;padding:24px;border:3px solid #ffebbb;border-radius:32px;background:linear-gradient(#fffaf0,#ffedca);color:#66462b;box-shadow:0 12px 0 #936a3444,0 25px 60px #223e4444}
#app .mountain-game .mountain-collection-card h2{margin:0;font-size:24px;line-height:1.3;color:inherit}
#app .mountain-game .mountain-collection-card .mountain-collection-recap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:14px;margin:8px 0 12px}
#app .mountain-game .mountain-collection-recap strong{font:900 clamp(25px,6vw,32px)/1.3 var(--joy-font);gap:6px;color:#765015}
#app .mountain-game .mountain-collection-recap .mountain-result-currency{width:42px;height:42px;flex:none}
#app .mountain-game .mountain-collection-recap span{display:block;font-size:12px;line-height:1.35;margin-top:5px}
#app .mountain-game .mountain-collection-card :is(.mountain-quit-actions,.mountain-end-actions){display:flex;flex-direction:column;width:100%;gap:12px;margin:0}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-collection-card :is(.mountain-quit-actions,.mountain-end-actions) .mountain-button{width:100%;min-height:52px;padding:12px 16px;border-width:2px!important;border-bottom-width:4px!important;border-radius:24px!important;font:800 18px/1.3 var(--joy-font);text-shadow:none}
#app .mountain-game .mountain-collection-card :is([data-mountain=cancel-exit],[data-mountain=again]){background:linear-gradient(#b8f0cd,#6fd39b)!important;border-color:#c1f7d5!important;border-bottom-color:#2c8b5b!important;color:#174e33!important;box-shadow:inset 0 2px #ffffff8c,0 3px 0 #2c8b5b,0 0 15px #56c98f77!important}
#app .mountain-game .mountain-collection-card :is([data-mountain=confirm-exit],[data-mountain=home]){background:linear-gradient(#ffbeb1,#ed7c76)!important;border-color:#ffd1c9!important;border-bottom-color:#b74949!important;color:#732c2d!important;box-shadow:inset 0 2px #ffffff8c,0 3px 0 #b74949,0 0 15px #ef6b6b77!important}
#app .mountain-game .mountain-collection-card .mountain-result-star{width:54px;height:54px}
body[data-mountain-immersive=true] #app .mountain-game .mountain-toast{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:min(76%,440px);padding:8px 14px;border:2px solid #f7d598;border-radius:19px;background:linear-gradient(#fff9ebf0,#ffe9bbee);color:#65482b;box-shadow:0 3px 0 #956a3344,0 5px 14px #1e432b22;font:800 clamp(14px,3.2vmin,20px)/1.45 var(--joy-font)}
@media(max-height:580px){#app .mountain-game .mountain-prompt .mountain-collection-card{padding:16px 22px;gap:7px}#app .mountain-game .mountain-collection-card h2{font-size:21px}#app .mountain-game .mountain-collection-card .mountain-collection-recap{margin:0 0 5px}#app .mountain-game .mountain-collection-card .mountain-result-star{display:none}#app .mountain-game .mountain-stage[data-prompt=true] .mountain-collection-card .mountain-button{min-height:44px;padding:8px 14px;font-size:16px}}

.mountain-game .mountain-bottom-nav{display:flex;justify-content:center;padding:18px 10px calc(16px + env(safe-area-inset-bottom,0px))}.mountain-game .mountain-bottom-nav[hidden]{display:none}
.mountain-game .mountain-game-header>.mountain-back{display:none}
body[data-mountain-immersive=true] #app .mountain-game .mountain-pause{top:auto;left:50%;right:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:76px;height:44px;min-height:44px;z-index:8}
body[data-mountain-immersive=true] #app .mountain-game .mountain-instructions{bottom:calc(66px + env(safe-area-inset-bottom,0px))}

/* Sano stylesheet: spelling.css */
/* A shared two-pass spelling surface: colour identifies actions, words keep room. */
.spelling-practice{--spelling-ink:#24486f;display:flex;flex-direction:column;align-items:center;gap:18px;width:min(100%,660px);margin:0 auto;padding:10px 8px 24px;box-sizing:border-box;color:var(--spelling-ink);isolation:isolate}.spelling-heading{display:flex;align-items:center;gap:12px}.spelling-heading h2{font-size:clamp(25px,5vw,36px);margin:0;line-height:1.25}.spelling-pass{padding:7px 12px;border:2px solid white;border-radius:19px;background:#e0efff;font-size:16px;font-weight:900;color:#295f8a}.spelling-model{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;box-sizing:border-box;border:3px solid white;border-radius:32px;padding:16px;background:linear-gradient(145deg,#e2f3ff,#fff0f7);box-shadow:0 7px 0 #8bc5e342,0 10px 28px #76bde126}.spelling-picture{height:118px;width:136px;display:grid;place-items:center}.spelling-picture svg,.spelling-picture img{max-width:100%;max-height:118px;object-fit:contain}.spelling-model-word{margin:0;font-size:clamp(32px,7vw,51px);font-weight:900;line-height:1.5;overflow-wrap:anywhere;text-align:center;color:#1b6096;letter-spacing:.035em}.spelling-model-word[lang^=ne]{font-size:clamp(37px,8vw,54px);letter-spacing:normal}.spelling-model-word.is-memory{color:#9ebdd2;letter-spacing:.22em}.spelling-instruction{margin:0;font-size:16px;font-weight:750;line-height:1.5;text-align:center}.spelling-stage-label{margin:0;min-height:24px;font-size:17px;line-height:1.4;font-weight:850;text-align:center;color:#3c6686}.spelling-slots{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;width:100%}.spelling-slot{display:grid;place-items:center;min-width:44px;min-height:62px;padding:4px 8px;border:2px solid #aacfe7;border-bottom:5px solid #84b3d2;border-radius:19px;box-sizing:border-box;background:#f2f9ff;font-size:32px;font-weight:900;line-height:1.55;color:#6396b6}.spelling-slot.is-next{border-color:#ed99c0;background:#fff0f7;box-shadow:0 0 20px #eea5cf46}.spelling-slot.is-filled{color:#117a4e;background:linear-gradient(145deg,#d6ffea,#8ce0b6);border-color:#f2fff8;border-bottom-color:#4cb881;box-shadow:0 0 22px #77d8aa38}.spelling-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;width:min(100%,410px);padding:5px;box-sizing:border-box}.spelling-letter{display:grid;place-items:center;min-width:0;min-height:94px;padding:12px;border:3px solid white;border-bottom:6px solid #73b4dd;border-radius:28px;background:linear-gradient(145deg,#d9f2ff,#91cefa);box-shadow:0 8px 22px #63b3e137,0 0 30px #7fcdf334;color:#245f91;font:inherit;font-size:40px;font-weight:900;line-height:1.5;cursor:pointer;touch-action:manipulation;transition:transform .12s,box-shadow .12s}.spelling-letter:nth-child(2){background:linear-gradient(145deg,#ffe3f0,#f6aad2);border-bottom-color:#db7aaa;color:#933e6d;box-shadow:0 8px 22px #e98db735,0 0 30px #edacd130}.spelling-letter:nth-child(3){background:linear-gradient(145deg,#d9ffed,#a0e8c8);border-bottom-color:#43b98c;color:#175a43;box-shadow:0 8px 22px #43b98c35,0 0 30px #71d5a932}.spelling-letter.is-hint{outline:3px solid #34b88b;outline-offset:4px;box-shadow:0 0 26px #48d39c73}.spelling-letter.is-wrong{background:linear-gradient(145deg,#ffb3bf,#ff6c85);border-color:#ffd3dd;border-bottom-color:#d63258;box-shadow:0 0 24px #ec3b5f80;color:#852342;animation:spelling-retry .43s ease-out}.spelling-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:58px;padding:12px 18px;border:3px solid white;border-bottom:5px solid #df7faa;border-radius:25px;background:linear-gradient(145deg,#ffe5f1,#f7b8d9);box-shadow:0 7px 22px #e493bd35,0 0 27px #f0bad438;color:#83385f;font:inherit;font-size:18px;font-weight:850;line-height:1.35;text-align:center;cursor:pointer;touch-action:manipulation}.spelling-hear>span{display:block;width:34px;height:34px;flex:none}.spelling-hear svg{width:100%;height:100%}.spelling-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;width:100%}.spelling-tools>.spelling-action{flex:1;min-width:180px}.spelling-hint{background:linear-gradient(145deg,#fff3c4,#ffd97b);border-bottom-color:#d6af4d;color:#775523;box-shadow:0 7px 22px #dfba5a35,0 0 27px #f4d78038}.spelling-next{width:min(100%,430px);background:linear-gradient(145deg,#7ee6b7,#26b581);border-bottom-color:#168456;color:#fff;box-shadow:0 7px 24px #43c48f4a,0 0 33px #6ddda940;animation:spelling-next-glow 3s ease-in-out infinite}.spelling-success{display:flex;align-items:center;justify-content:center;gap:13px;font-size:22px;font-weight:900;line-height:1.4;color:#128051;margin:0;text-align:center}.spelling-star{font-size:44px;color:#ffc72b;text-shadow:0 2px 0 #d39415,0 0 15px #ffd14fa3}.spelling-audio-note{font-size:13px;line-height:1.5;text-align:center;color:#5d7488;margin:0}.spelling-practice button:active:not(:disabled){transform:translateY(3px) scale(.97);animation:none}.spelling-practice button:disabled{opacity:.5;cursor:default;animation:none}.spelling-practice button:focus-visible{outline:3px solid #175fd3;outline-offset:4px}@keyframes spelling-retry{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}@keyframes spelling-next-glow{0%,100%{transform:scale(1);box-shadow:0 7px 24px #43c48f4a,0 0 33px #6ddda940}50%{transform:scale(1.025);box-shadow:0 9px 26px #43c48f65,0 0 38px #6ddda95a}}@media(max-width:380px){.spelling-practice{gap:14px}.spelling-choices{gap:10px}.spelling-letter{min-height:83px;padding:8px;font-size:36px}.spelling-slot{min-width:37px;min-height:55px;padding:3px 6px;font-size:28px}.spelling-slots{gap:6px}.spelling-picture{height:99px}.spelling-picture svg,.spelling-picture img{max-height:99px}}@media(prefers-reduced-motion:reduce){.spelling-practice *{animation:none!important;transition:none!important}}body[data-motion=reduce] .spelling-practice *{animation:none!important;transition:none!important}body[data-page-hidden=true] .spelling-practice *{animation-play-state:paused!important}

.spelling-practice [lang|=ne]{font-family:SanoDevanagariBold,"Kohinoor Devanagari",sans-serif;letter-spacing:normal}.spelling-practice [lang|=en]{font-family:var(--joy-font),ui-rounded,sans-serif}

.spelling-star{display:inline-flex;flex:none;width:44px;height:46px;filter:drop-shadow(0 0 10px #ffd14f80)}

/* Tier choices remain roomy; sentence words wrap without clipping or tiny type. */
.spelling-tier{margin:0;color:#6b458e;background:#f0e6ff;border:2px solid #fff;border-radius:18px;padding:5px 16px;font-size:16px;font-weight:900}.spelling-choices[data-choice-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:330px}.spelling-choices[data-choice-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:450px}.spelling-letter:nth-child(4){background:linear-gradient(145deg,#fff3c5,#ffdd86);border-bottom-color:#d9b655;color:#795819;box-shadow:0 8px 22px #ddbf6135,0 0 30px #e7c76b32}.is-sentence .spelling-model-word{font-size:clamp(27px,5.6vw,39px);letter-spacing:normal}.is-sentence .spelling-slot{min-width:60px;max-width:100%;font-size:clamp(20px,4.5vw,29px);padding:7px 12px;overflow-wrap:anywhere}.is-sentence .spelling-letter{font-size:clamp(22px,5vw,32px);padding:9px;overflow-wrap:anywhere}.is-sentence .spelling-slots{gap:8px}

/* Sentence entries wrap naturally in the same topic tiles, without covering locks. */
.learning-entry-label[data-category=spelling]{font-size:clamp(21px,3.5vw,30px);line-height:1.45;white-space:normal;overflow-wrap:normal;text-align:center}

/* A quiet word picker: one instruction and three compact, finger-sized groups. */
.spelling-hub-intro.spelling-hub-simple{max-width:660px;margin:0 auto 18px}
.spelling-hub-simple>p:first-child{margin:0 0 12px;font-size:clamp(19px,4vw,24px)}
.spelling-hub-simple .spelling-levels{gap:8px;margin:0;align-items:stretch}
.spelling-hub-simple .spelling-levels button{min-height:52px;padding:9px 8px;border-radius:18px;font-size:14px;line-height:1.35;justify-content:center}
@media(max-width:360px){.spelling-hub-simple .spelling-levels{gap:6px}.spelling-hub-simple .spelling-levels button{padding:8px 5px;font-size:12px}}


/* Build a Word keeps one heading outside its activity card. */
body #app .simple-learning-activity.is-spelling{display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0}
body #app .is-spelling>.spelling-page-title{color:#176cba;font-size:clamp(27px,4vw,38px);line-height:1.2;text-align:center;margin:0;max-width:100%;font-weight:900}
body #app .is-spelling>.foundation-focus{width:min(100%,760px);box-sizing:border-box;min-width:0}
body #app .is-spelling .game-actions:has(>button[hidden]){display:none}
/* One compact action row; the shell's Next is moved into this same row. */
.spelling-tools{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}
.spelling-tools>.spelling-next,.spelling-tools>.continue-game{margin:0;width:auto;min-width:100px;min-height:48px}
.spelling-tools>.spelling-back{order:3}

/* Every spelling surface supplies its own colour to the shared glow system.
   Listen is lavender; Back is coral, matching the navigation family. */
.spelling-letter{--action-light:var(--polish-letter,#63b3e1)}
.spelling-action{--action-light:#df7faa}
.spelling-practice .spelling-hear{--action-light:#a38acf;background:linear-gradient(145deg,#eee3ff,#ceb5ef);border-bottom-color:#9775bb;color:#4c306d}
.spelling-practice .spelling-back{--action-light:#e45d78;background:linear-gradient(145deg,#ffe0e5,#f39aaf);border-bottom-color:#c84c6a;color:#71233e}
.spelling-hint{--action-light:#d6af4d}
.spelling-next{--action-light:#31c78b}
.spelling-letter.is-wrong{--action-light:#ec3b5f}
#app .spelling-letter.is-hint{outline-color:var(--action-light);box-shadow:0 0 26px color-mix(in srgb,var(--action-light) 55%,transparent)}
body .spelling-practice button:focus-visible{outline-color:var(--action-light,#24486f)}

.spelling-practice .spelling-action{box-shadow:0 7px 22px color-mix(in srgb,var(--action-light) 21%,transparent),0 0 27px color-mix(in srgb,var(--action-light) 22%,transparent)}

/* Sano stylesheet: world-learning.css */
.world-topic-info{display:grid;gap:8px;margin:12px auto 20px;max-width:580px;text-align:center;color:#365b80;font-size:16px;line-height:1.55}
.world-recording-notice{max-width:520px;margin:16px auto;padding:12px 18px;border-radius:22px;background:#e7f3ff;color:#30577e;font-size:15px;line-height:1.5;text-align:center}
.world-topic-group{grid-column:1/-1;flex-basis:100%;width:100%;padding:18px 4px 8px;text-align:center;color:#184d79;font-size:clamp(22px,4vw,30px);font-weight:850;line-height:1.5;letter-spacing:0}
.world-learning-picture{display:block;width:100%;height:100%;min-width:0;min-height:0}
.world-learning-picture svg{width:100%;height:100%;max-width:100%;max-height:100%}
.world-entry-picture{display:block;width:clamp(66px,17vw,100px);height:clamp(66px,17vw,100px);margin:0 auto 4px}
.topic-entry-face:has(.world-entry-picture){gap:4px;min-width:0}
.topic-entry-face:has(.world-entry-picture) .learning-entry-label{font-size:clamp(22px,4.2vw,26px);line-height:1.5;overflow-wrap:anywhere;max-width:100%}
.is-topic-locked .world-entry-picture{filter:blur(3px)}
.world-recording-notice[lang="ne"],.world-topic-info[lang="ne"],.world-topic-group[lang="ne"]{font-family:SanoDevanagari,sans-serif;line-height:1.75}

/* Sano stylesheet: scribble-practice.css */
.scribble-practice-position{font-weight:850;color:#734ab1}
.scribble-practice-picker{width:100%;border:2px solid #fff;border-radius:24px;padding:12px 16px;background:linear-gradient(135deg,#e6f5ff,#fbe8f4);box-sizing:border-box;text-align:center;color:#264367}
.scribble-practice-picker summary{font:850 18px/1.4 var(--joy-font);cursor:pointer;padding:6px;min-height:32px}
.scribble-practice-picker p{padding:12px 0 4px;font-weight:800}
.scribble-practice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:10px}
.scribble-practice-options button{min-height:58px;border:2px solid #fff;border-bottom:4px solid #77b7df;border-radius:18px;background:linear-gradient(#e0f4ff,#a5d9fc);color:#204368;font:800 16px/1.4 var(--joy-font);padding:10px;overflow-wrap:normal;word-break:normal;hyphens:none;box-shadow:0 6px 15px -7px #247ccb55}
.scribble-practice-options button[aria-pressed=true]{background:linear-gradient(#b6f1d1,#78dca6);border-bottom-color:#419e6c;box-shadow:0 0 14px #64cd9666,inset 0 0 0 2px #fff}
.scribble-practice-options button:active{transform:scale(.97)}
.scribble-practice-options button:focus-visible,.scribble-practice-picker summary:focus-visible{outline:3px solid #1b71bd;outline-offset:3px}
.scribble-example{width:100%;margin:0;padding:12px;box-sizing:border-box;border-radius:24px;background:linear-gradient(135deg,#eef8ff,#fbeeff);border:2px solid #fff;color:#3b5078}
.scribble-example figcaption{font:750 15px/1.5 var(--joy-font);padding:0 8px 8px}
.scribble-example svg{display:block;width:100%;height:auto;max-height:160px;overflow:visible}
.scribble-example path{fill:none;stroke:#268ed9;stroke-linecap:round;stroke-linejoin:round}
.scribble-example-text{font:850 clamp(36px,9vw,62px)/1.7 var(--joy-font);letter-spacing:.05em;overflow-wrap:normal;word-break:normal;hyphens:none}
.scribble-example-text[lang=ne]{font-family:SanoDevanagari,"Kohinoor Devanagari",sans-serif}
.scribble-change-confirm{width:100%;box-sizing:border-box;display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:16px;border:2px solid #fff;border-radius:24px;background:#ffebd8}
.scribble-change-confirm strong,.scribble-change-confirm p{width:100%}
@media(max-width:340px){.scribble-practice-options{gap:7px}.scribble-practice-options button{font-size:15px;padding:8px}.scribble-example{padding:8px}}

/* Drawing stays on its paper; labels wrap at spaces, including larger screen text. */
.scribble-page,.scribble-page>*{min-width:0;max-width:100%;box-sizing:border-box}
.scribble-page :is(h2,p,small,summary,button),.scribble-tools .scribble-action-face>span{white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none}
.scribble-practice-options{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.scribble-example-text{margin:0;max-width:100%;font-size:clamp(30px,8vw,62px)}
.scribble-tools{grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))}
.scribble-review-buttons>.pill,.scribble-change-confirm>.pill{min-width:0;max-width:100%;flex:1 1 140px}
@media(max-height:500px) and (orientation:landscape){.scribble-page{gap:12px}.scribble-example svg{max-height:105px}.scribble-example-text{font-size:40px}.scribble-paper{height:180px}.scribble-tools>.pill,.scribble-tools .scribble-action-face{min-height:88px}.scribble-tools .scribble-action-face>svg{width:42px;height:42px}}

/* Sano stylesheet: nepal-anthem.css */
.nepal-anthem{box-sizing:border-box;width:min(660px,100%);margin:24px auto;padding:24px;border:3px solid #fff9;border-radius:32px;background:linear-gradient(145deg,#e7f9ff,#e8e0ff 62%,#ffe1ed);color:#24416d;box-shadow:0 10px 25px #776bbe20,inset 0 2px 0 #fff;overflow:hidden}
.anthem-heading{display:flex;align-items:center;gap:16px;text-align:left}.anthem-flag{display:grid;place-items:center;flex:0 0 54px}.anthem-flag svg{width:54px;height:68px}.anthem-heading h2{margin:0;font:900 clamp(23px,5vw,30px)/1.35 var(--joy-font)}.anthem-subtitle{margin:5px 0 0;font-size:16px;line-height:1.5;font-weight:700;color:#53658b}
.anthem-waves{display:flex;align-items:center;justify-content:center;gap:5px;height:82px;margin:12px 0 2px}.anthem-waves i{height:var(--wave-height);width:7px;border-radius:8px;background:linear-gradient(#ba84ed,#ea85b2);transform:scaleY(.32);transition:transform .18s}.nepal-anthem[data-phase=playing] .anthem-waves i{animation:anthem-wave .85s ease-in-out var(--wave-delay) infinite alternate}@keyframes anthem-wave{from{transform:scaleY(.25)}to{transform:scaleY(1)}}
.anthem-timeline{display:flex;align-items:center;gap:14px;margin:0 0 18px}.anthem-progress{display:block;width:100%;height:8px;border:0;border-radius:20px;overflow:hidden;appearance:none;background:#fff9}.anthem-progress::-webkit-progress-bar{background:#fff9;border-radius:20px}.anthem-progress::-webkit-progress-value{background:#b989e4;border-radius:20px}.anthem-progress::-moz-progress-bar{background:#b989e4;border-radius:20px}.anthem-time{flex:none;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.anthem-controls{display:flex;align-items:stretch;gap:12px}.anthem-controls button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:60px;border:2px solid #fff8;border-radius:30px;padding:12px 20px;font:900 20px/1.3 var(--joy-font);cursor:pointer;transition:transform .15s,box-shadow .15s}.anthem-play{flex:1;background:#e8579d;color:white;box-shadow:0 5px 0 #b93c7c,0 8px 20px #e8579d35}.anthem-replay{background:#ffffffb8;color:#66558e;box-shadow:0 4px 0 #c3b3df}.anthem-replay span:first-child{font-size:29px}.anthem-controls button:active{transform:translateY(3px);box-shadow:0 1px 0 #b93c7c}.anthem-controls button:focus-visible{outline:3px solid #24416d;outline-offset:5px}.anthem-controls button:disabled{opacity:.5;cursor:default}.anthem-status{margin:12px 0 0;min-height:1.5em;line-height:1.5;font-size:14px;text-align:center}
[data-reduced-motion=true] .anthem-waves i{animation:none!important;transition:none}.nepal-anthem[data-phase=playing] .anthem-waves i{opacity:1}@media(prefers-reduced-motion:reduce){.anthem-waves i{animation:none!important;transition:none}.anthem-controls button{transition:none}}@media(max-width:380px){.nepal-anthem{padding:18px}.anthem-controls{gap:9px}.anthem-controls button{padding:12px;font-size:17px}.anthem-waves{gap:4px}.anthem-waves i{width:6px}}

.anthem-title{display:block;font:900 clamp(23px,5vw,30px)/1.35 var(--joy-font)}.anthem-subtitle{display:block}.anthem-heading-copy{min-width:0}.anthem-control-state{display:flex;align-items:center;justify-content:center;gap:10px}.anthem-stop{background:#fff9;color:#66558e;box-shadow:0 4px 0 #c3b3df}.anthem-stop span:first-child{font-size:18px}
.anthem-practice{margin-top:18px;padding:18px 14px;border-top:2px solid #fff;background:#fff8;border-radius:22px;text-align:center}.anthem-practice[hidden]{display:none}.anthem-practice h3{font-size:23px;line-height:1.4;margin:0 0 8px}.anthem-practice p{font-size:16px;line-height:1.6}.anthem-practice-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.anthem-practice-actions button{min-height:52px;border:2px solid white;border-radius:20px;padding:10px 16px;background:#197e69;color:white;font:800 17px/1.4 var(--joy-font);cursor:pointer}.anthem-practice-actions button[data-anthem-practice=retry],.anthem-practice-actions button[data-anthem-practice=later]{background:#806496}.anthem-practice-actions button:focus-visible{outline:3px solid #24416d;outline-offset:3px}.anthem-earned-star{display:block;width:82px;margin:4px auto;animation:anthem-star-in .5s ease-out}.anthem-earned-star svg{width:100%;height:auto}@keyframes anthem-star-in{from{transform:scale(.4) rotate(-15deg);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.anthem-earned-star{animation:none}}body[data-motion=reduce] .anthem-earned-star{animation:none}
.nepal-anthem-inline{width:100%;max-width:640px;padding:0 22px 13px;border-bottom:6px solid #bc9dcf;box-shadow:0 9px 22px #9974b52c;background:linear-gradient(140deg,#fce8f6,#eae4ff 60%,#ddf2ff)}
.anthem-tile-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;width:calc(100% + 44px);margin:0 -22px;padding:23px 22px 12px;background:transparent;border:0;border-radius:28px 28px 0 0;color:#24416d;box-shadow:none;text-align:left;cursor:pointer;transition:background .16s}
.anthem-tile-toggle:active{background:#fff6}.anthem-tile-toggle:focus-visible{outline:4px solid #24416d;outline-offset:-6px}.anthem-tile-toggle:disabled{opacity:.65;cursor:default}
.anthem-tile-toggle .anthem-heading{gap:13px;flex:1}.anthem-tile-toggle .anthem-title{font-size:clamp(21px,4.8vw,28px)}.anthem-tile-toggle .anthem-subtitle{font-size:14px;color:#66567c}.anthem-tile-toggle .anthem-control-state{flex:0 0 68px;width:68px;height:68px;flex-direction:column;gap:3px;background:#e8579d;border:2px solid #fff9;border-radius:50%;color:#fff;box-shadow:0 5px 0 #b93c7c,0 7px 15px #e8579d25}.anthem-tile-toggle .anthem-control-icon{font-size:24px;line-height:1.1}.anthem-tile-toggle .anthem-control-label{font:900 13px/1.3 var(--joy-font)}
.nepal-anthem-inline .anthem-waves{height:58px;margin:0 0 4px}.nepal-anthem-inline .anthem-waves i{max-height:48px}.nepal-anthem-inline .anthem-timeline{margin-bottom:12px}.nepal-anthem-inline .anthem-secondary-controls{justify-content:flex-end;gap:11px}.nepal-anthem-inline .anthem-secondary-controls button{min-height:45px;font-size:15px;padding:8px 14px;gap:7px;border-radius:17px}.nepal-anthem-inline .anthem-secondary-controls .anthem-replay span:first-child{font-size:22px}.nepal-anthem-inline .anthem-status{min-height:0;margin:10px 0 0;font-size:13px}.nepal-anthem-inline .anthem-status:empty{display:none}
body[data-motion=reduce] .anthem-waves i{animation:none!important;transition:none}body[data-page-hidden=true] .anthem-waves i{animation-play-state:paused!important}
@media(max-width:420px){.nepal-anthem-inline{padding:0 16px 13px}.anthem-tile-toggle{width:calc(100% + 32px);margin:0 -16px;padding:19px 16px 12px;gap:8px}.anthem-tile-toggle .anthem-heading{gap:9px}.anthem-tile-toggle .anthem-flag{flex-basis:38px}.anthem-tile-toggle .anthem-flag svg{width:38px;height:55px}.anthem-tile-toggle .anthem-title{font-size:21px}.anthem-tile-toggle .anthem-subtitle{font-size:12px}.anthem-tile-toggle .anthem-control-state{flex-basis:58px;width:58px;height:58px}.anthem-tile-toggle .anthem-control-label{font-size:12px}.nepal-anthem-inline .anthem-waves{gap:4px}.nepal-anthem-inline .anthem-waves i{width:6px}}

.anthem-invitation{width:min(640px,100%);margin:18px auto}.anthem-invitation .nepal-anthem-inline{margin:0;max-width:none}.anthem-gold-coin{position:absolute;right:12px;top:8px;width:34px;height:34px}.anthem-gold-coin svg{width:100%;height:100%}.anthem-tile-toggle{position:relative;padding-top:43px}.anthem-controls button[hidden]{display:none}

.nepal-anthem [hidden]{display:none!important}

/* Keep the tile title and every playback action reachable at narrow widths. */
.anthem-tile-toggle .anthem-heading,.anthem-heading-copy{min-width:0}
.anthem-title,.anthem-subtitle,.anthem-practice :is(h3,p,button){white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none}
.anthem-controls,.anthem-secondary-controls{flex-wrap:wrap}.anthem-controls button,.anthem-practice-actions button{min-width:0;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:normal}
@media(max-width:360px){.anthem-tile-toggle .anthem-title{font-size:19px}.anthem-tile-toggle .anthem-control-state{flex-basis:54px;width:54px;height:54px}}
@media(max-height:500px) and (orientation:landscape){.nepal-anthem-inline .anthem-waves{height:38px}.nepal-anthem-inline .anthem-waves i{max-height:34px}.anthem-tile-toggle{padding-block:18px 10px}.anthem-practice{padding:12px}}
/* Keep the flag, title and controls together: only the complete card floats. */
.anthem-invitation{padding:7px;box-sizing:border-box}
/* The same isolated, raised face and diagonal reflection as Sano Games,
   retaining the Anthem's pink, lilac and blue palette and original flag. */
.anthem-invitation .nepal-anthem-inline{position:relative;isolation:isolate;overflow:hidden;border:3px solid #fff3fa;border-bottom:7px solid #bc9dcf;background:linear-gradient(150deg,#fff6fc 0%,#fce8f6 18%,#d9c8f2 39%,#f3eaff 52%,#eae4ff 73%,#ddf2ff 100%);box-shadow:inset 0 2px 2px #fff,inset 0 -4px 8px #80609e27,0 5px 0 #c7aed9,0 9px 17px #8e75b724,0 0 30px #dcaae65c;animation:anthem-card-float 6.4s ease-in-out infinite;transform-origin:center center}
.anthem-invitation .nepal-anthem-inline::before{content:"";position:absolute;z-index:-1;inset:-100% -80%;background:linear-gradient(112deg,transparent 42%,#fffdf4b3 48%,#ffffff30 52%,transparent 58%);transform:translateX(-65%);animation:anthem-card-shine 7.2s ease-in-out infinite;pointer-events:none}
.nepal-anthem-inline .anthem-tile-toggle{padding-top:23px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.nepal-anthem-inline .anthem-heading,.nepal-anthem-inline .anthem-heading-copy,.nepal-anthem-inline .anthem-flag,.nepal-anthem-inline .anthem-control-state{animation:none!important;transform:none!important}
.nepal-anthem-inline .anthem-tile-toggle:active{background:#ffffff35;transform:none}
.nepal-anthem-inline .anthem-secondary-controls button{touch-action:manipulation}
@keyframes anthem-card-float{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-2px) rotate(-.35deg)}60%{transform:translateY(-1px) rotate(.35deg)}80%{transform:translateY(-2px) rotate(0)}}
@keyframes anthem-card-shine{0%,44%{transform:translateX(-65%)}76%,100%{transform:translateX(65%)}}
@media(prefers-reduced-motion:reduce){.anthem-invitation .nepal-anthem-inline,.anthem-invitation .nepal-anthem-inline::before{animation:none!important;transform:none!important}.anthem-invitation .nepal-anthem-inline::before{opacity:.25}}
body:is([data-motion=reduce],[data-reduced-motion=true]) .anthem-invitation .nepal-anthem-inline,body:is([data-motion=reduce],[data-reduced-motion=true]) .anthem-invitation .nepal-anthem-inline::before{animation:none!important;transform:none!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .anthem-invitation .nepal-anthem-inline::before{opacity:.25}
body[data-page-hidden=true] .anthem-invitation .nepal-anthem-inline,body[data-page-hidden=true] .anthem-invitation .nepal-anthem-inline::before{animation-play-state:paused!important}
@media(forced-colors:active){.anthem-invitation .nepal-anthem-inline{background:Canvas;border-color:ButtonText;box-shadow:none}.anthem-invitation .nepal-anthem-inline::before{display:none}}

/* Preserve the approved Nepal flag artwork. Only its cloth catches the wind. */
.nepal-anthem .anthem-flag svg{overflow:visible;transform-origin:12% 50%;animation:sano-anthem-cloth 4.8s ease-in-out infinite;filter:drop-shadow(1px 2px 1px #23335424)}
.nepal-anthem .anthem-cloth-light{animation:sano-anthem-fold 4.8s ease-in-out infinite;pointer-events:none}
@keyframes sano-anthem-cloth{0%,100%{transform:perspective(280px) rotateY(-4deg) skewY(-.6deg)}30%{transform:perspective(280px) rotateY(5deg) skewY(1.3deg)}68%{transform:perspective(280px) rotateY(-2deg) skewY(-1deg)}}
@keyframes sano-anthem-fold{0%,100%{transform:translateX(-45px);opacity:.55}50%{transform:translateX(85px);opacity:.9}}
/* A restrained reflected glint along the two existing dividing lines. */
#app .topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation)::after{background-image:linear-gradient(105deg,transparent 35%,#fff9e7 49%,transparent 63%),linear-gradient(90deg,#d093d800,#bb70d5 20%,#c270bc 50%,#719ddb 80%,#719ddb00);background-size:48% 100%,100% 100%;background-repeat:no-repeat;background-position:-100% 0,0 0;animation:sano-divider-light 7.6s ease-in-out infinite}
#app .topic-landing .nepal-invitation::after{animation-delay:1.7s}
@keyframes sano-divider-light{0%,36%{background-position:-100% 0,0 0}72%,100%{background-position:210% 0,0 0}}
body[data-page-hidden=true] .nepal-anthem :is(.anthem-flag svg,.anthem-cloth-light),body[data-page-hidden=true] #app .topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation)::after{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .nepal-anthem :is(.anthem-flag svg,.anthem-cloth-light),body:is([data-motion=reduce],[data-reduced-motion=true]) #app .topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation)::after{animation:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){.nepal-anthem :is(.anthem-flag svg,.anthem-cloth-light),#app .topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation)::after{animation:none!important;transform:none!important}}

/* The Music anthem tile catches the same travelling light as the coin tiles. */
.music-anthem-invitation .nepal-anthem-inline{position:relative;isolation:isolate;overflow:hidden}
.music-anthem-invitation .nepal-anthem-inline::before{content:"";position:absolute;z-index:1;inset:0;border-radius:inherit;background:linear-gradient(112deg,transparent 25%,#fffdf48c 48%,#ffffff20 59%,transparent 76%);transform:translateX(-125%);animation:music-anthem-shine 8.4s ease-in-out infinite;pointer-events:none}
@keyframes music-anthem-shine{0%,48%{transform:translateX(-125%)}82%,100%{transform:translateX(125%)}}
body[data-page-hidden=true] .music-anthem-invitation .nepal-anthem-inline::before{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .music-anthem-invitation .nepal-anthem-inline::before{animation:none;display:none}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.music-anthem-invitation .nepal-anthem-inline::before{animation:none;display:none}}


/* Sano stylesheet: nepal-culture.css */
/* A small set of discoveries: choose a category, choose a picture, explore it. */
.nepal-culture{width:100%;max-width:760px;margin:auto}
.nepal-culture,.nepal-hub-screen,.nepal-category-screen,.nepal-detail-screen{min-width:0;max-width:100%;box-sizing:border-box}
.nepal-culture h2,.nepal-culture h3{color:#184b70;font-family:var(--joy-font);font-weight:900;text-align:center}
.nepal-culture h2{font-size:clamp(25px,4vw,34px);margin:24px 0 18px}
.nepal-culture p{line-height:1.6}
.nepal-culture :is(h2,h3,p,button,strong,small){word-break:normal;overflow-wrap:normal;hyphens:none}
.nepal-culture :lang(ne){font-family:SanoDevanagari,"Kohinoor Devanagari",sans-serif;line-height:1.5}
.nepal-intro,.nepal-tap-hint{text-align:center;color:#526f86}
.nepal-intro{font-size:19px;font-weight:700}
.nepal-tap-hint{font-size:17px;margin:0 0 22px}
.nepal-hub-screen,.nepal-category-screen,.nepal-detail-screen{width:100%;animation:nepal-screen-enter .24s ease-out}
.nepal-category-screen>.nepal-back,.nepal-detail-screen>.nepal-back{display:block;width:fit-content;max-width:100%;margin:12px auto 18px}
.nepal-category-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:20px 0 24px}
.nepal-category{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:120px;padding:15px;text-align:left;border:3px solid #fff;border-bottom:6px solid #42698240;border-radius:26px;background:var(--nepal-colour);color:#184367;box-shadow:0 7px 16px color-mix(in srgb,var(--nepal-colour) 35%,transparent);transition:transform .18s ease,box-shadow .2s ease;cursor:pointer;touch-action:manipulation}
.nepal-category>span{display:grid;place-items:center;width:76px;height:76px;flex-shrink:0;margin:0}
.nepal-category img{width:76px;height:76px;object-fit:contain;pointer-events:none;user-select:none}
.nepal-category>strong{flex:1;min-width:0;width:auto;height:auto;max-width:100%;white-space:normal;font:900 clamp(16px,2.5vw,20px)/1.4 var(--joy-font)}
.nepal-category:lang(ne) strong{font-size:clamp(17px,2.7vw,21px)}
.nepal-category>.nepal-category-arrow{width:24px;height:auto;font:900 24px/1 var(--joy-font);animation:none}
.nepal-discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:18px;margin:18px 0}
.nepal-discovery-card{position:relative;isolation:isolate;padding:0;min-width:0;border:0;background:transparent;border-radius:30px;--topic-edge:#58bfff;transition:transform .18s ease;cursor:pointer;touch-action:manipulation}
.nepal-card-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;height:100%;min-height:216px;padding:18px 12px;background:linear-gradient(150deg,#e8f6ff,#aadeff);border:3px solid white;border-bottom:6px solid #81b9dc;border-radius:30px;box-shadow:inset 0 3px 5px #ffffffa0;animation:nepal-card-float 6.5s ease-in-out infinite}
.nepal-discovery-card:nth-child(2n){--topic-edge:#f28ebb}
.nepal-discovery-card:nth-child(2n) .nepal-card-face{background:linear-gradient(150deg,#fff0f6,#ffc4dd);border-bottom-color:#df9cbb;animation-delay:-2s}
.nepal-discovery-card:nth-child(3n){--topic-edge:#76d2a9}
.nepal-discovery-card:nth-child(3n) .nepal-card-face{background:linear-gradient(150deg,#ecfff6,#a9e9ca);border-bottom-color:#84c9a7;animation-delay:-4s}
.nepal-card-picture{display:grid;place-items:center;width:136px;height:136px;max-width:100%}
.nepal-card-picture img{width:136px;height:136px;max-width:100%;object-fit:contain;pointer-events:none;user-select:none}
.nepal-card-face strong{max-width:100%;font:900 clamp(16px,2.6vw,23px)/1.5 var(--joy-font);color:#224c69}
.nepal-card-face:lang(ne) strong{font-size:clamp(18px,2.7vw,25px)}
.nepal-discovery{display:flex;gap:24px;align-items:center;min-width:0;box-sizing:border-box;background:linear-gradient(145deg,#fffdf8,#e8f4ff);border:3px solid #fff;border-radius:34px;padding:24px;box-shadow:0 7px 20px #73b4e21c;margin:22px 0}
.nepal-discovery-picture{width:42%;flex-shrink:0}
.nepal-discovery-picture img{width:100%;height:240px;object-fit:contain;pointer-events:none;user-select:none}
.nepal-discovery-text{flex:1;min-width:0;text-align:center}
.nepal-discovery-text h2{font-size:clamp(22px,4vw,36px);line-height:1.5;margin:4px 0}
.nepal-discovery-text p{margin:8px 0;color:#466682;font-size:18px}
.nepal-name-translation{font-weight:800}
.nepal-discovery-text .nepal-discovery-fact{font-size:20px;line-height:1.65;margin:18px 0 22px}
.nepal-hear{max-width:100%;min-height:60px;white-space:normal;box-sizing:border-box;border:3px solid white;border-bottom:6px solid #16734f;border-radius:25px;background:linear-gradient(145deg,#50c998,#139763);color:white;font:900 20px/1.3 var(--joy-font);padding:15px 18px;box-shadow:0 6px 16px #2cbd8236;transition:transform .18s ease;cursor:pointer;touch-action:manipulation}
.nepal-pending{padding:10px 14px;border-radius:18px;background:#e7f2ff;color:#385f84;font-size:16px!important}
.nepal-audio-status{text-align:center;color:#385f84}
.nepal-audio-status:empty{display:none}
.nepal-culture [data-nepal-action=next]:disabled{opacity:.42;filter:saturate(.45) blur(.45px);cursor:default;animation:none;transform:none;pointer-events:none}
.nepal-culture :focus-visible{outline:4px solid #184b70;outline-offset:6px}
.nepal-category:active,.nepal-discovery-card:active,.nepal-hear:active{transform:scale(.97)}
.nepal-category>span:first-child{animation:nepal-card-float 6.5s ease-in-out infinite}
.nepal-category:nth-child(2n)>span:first-child{animation-delay:-2.5s}
.topic-picker[data-nepal-view=category]>.brand-heading,.topic-picker[data-nepal-view=category]>.topic-progress,.topic-picker[data-nepal-view=category]>.world-topic-info,.topic-picker[data-nepal-view=detail]>.brand-heading,.topic-picker[data-nepal-view=detail]>.topic-progress,.topic-picker[data-nepal-view=detail]>.world-topic-info{display:none}
@keyframes nepal-card-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes nepal-screen-enter{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
 .nepal-category-tabs{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px}
 .nepal-category{flex-direction:column;justify-content:center;gap:10px;min-height:152px;padding:14px 12px;text-align:center}
 .nepal-category>strong{width:100%;height:auto;flex:none;font-size:18px}
 .nepal-category>.nepal-category-arrow{display:none}
 .nepal-category>span,.nepal-category img{width:72px;height:72px}
 .nepal-discovery-grid{gap:16px}
 .nepal-discovery{flex-direction:column;gap:12px;padding:20px 16px}
 .nepal-discovery-picture{width:100%;max-width:230px}
 .nepal-discovery-picture img{height:205px}
 .nepal-discovery-text .nepal-discovery-fact{font-size:19px}
 .nepal-card-face{min-height:205px;padding:15px 12px}
 .nepal-card-picture,.nepal-card-picture img{height:128px;width:128px}
}
@media(max-width:380px){.nepal-category-tabs{gap:12px}.nepal-category{padding:14px 6px}.nepal-category>strong{font-size:18px}}
@media(max-height:500px) and (orientation:landscape){.nepal-culture h2{margin-block:12px;font-size:27px}.nepal-category{min-height:106px;padding:12px}.nepal-category>span,.nepal-category img{width:58px;height:58px}.nepal-card-face{min-height:175px;padding:12px}.nepal-card-picture,.nepal-card-picture img{width:100px;height:100px}.nepal-discovery-picture img{height:160px}}
@media(prefers-reduced-motion:reduce){.nepal-hub-screen,.nepal-category-screen,.nepal-detail-screen,.nepal-card-face,.nepal-category>span:first-child{animation:none}.nepal-category,.nepal-discovery-card,.nepal-hear{transition:none}}
body[data-motion=reduce] .nepal-hub-screen,body[data-motion=reduce] .nepal-category-screen,body[data-motion=reduce] .nepal-detail-screen,body[data-motion=reduce] .nepal-card-face,body[data-motion=reduce] .nepal-category>span:first-child{animation:none}
body[data-page-hidden=true] .nepal-card-face,body[data-page-hidden=true] .nepal-category>span:first-child{animation-play-state:paused}

/* Sano stylesheet: music.css */
.music-area{width:min(760px,100%);margin:0 auto;text-align:center;color:#24416d}.music-area h2{font-size:clamp(26px,5vw,34px);line-height:1.4}.music-area p{font-size:17px;line-height:1.6}.music-instrument-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.music-instrument-tile,.music-options button{border:3px solid white;border-bottom:6px solid #86adc8;border-radius:26px;padding:18px 12px;background:#b4e0ff;color:#24416d;cursor:pointer;font:900 22px/1.4 var(--joy-font)}.music-instrument-tile:nth-child(2){background:#ffe29a}.music-instrument-tile:nth-child(3){background:#ffc6dc}.music-instrument-tile svg{display:block;width:100%;max-height:150px}.music-options{display:flex;gap:12px;margin:20px 0}.music-options button{flex:1;min-width:0;font-size:20px}.music-options small{display:block;font-size:14px;font-weight:600;margin-top:8px}.music-options button[aria-pressed=true]{border-color:#13825e;background:#a6e8c8}.music-start{display:block;width:100%;min-height:64px;border:3px solid white;border-radius:25px;background:#148c66;color:white;font:900 23px/1.4 var(--joy-font)}.music-back{display:block;width:100%;margin:25px auto}.melody-tabs button{position:relative}.music-lock-coin{position:absolute;top:8px;right:9px;width:28px;height:28px;z-index:2}.music-lock-coin svg{width:100%;height:100%}.music-locked .melody-face{filter:blur(2px);opacity:.6}.music-denied{outline:4px solid #d73555;animation:music-shake .3s linear}.music-instrument-art svg{max-width:240px;max-height:200px}.music-instrument-art.is-plucked{animation:music-pluck .25s ease-out}.piano-key-scroll{width:100%;overflow-x:auto;padding:9px 0 16px}.piano-play[data-instrument=piano] .piano-keys{position:relative;display:block;width:720px;max-width:none;height:202px;padding:14px 0 0;background:#be3a53;border:8px solid #be3a53;border-top-width:16px;border-radius:17px}.piano-play[data-instrument=piano] .piano-key{position:absolute;top:0;left:calc(var(--key-position)*46px);width:45px;min-width:0;height:177px;min-height:0;padding:0;border:1px solid #b4bbcd;border-bottom:5px solid #b4bbcd;border-radius:0 0 9px 9px;background:#fffdf6;color:#293349;z-index:1;display:flex;align-items:flex-end;justify-content:center}.piano-play[data-instrument=piano] .piano-key.is-black{left:calc(var(--key-position)*46px + 31px);width:29px;height:114px;background:#283044;color:white;z-index:2;border-color:#131b2c}.piano-play[data-instrument=piano] .piano-key .game-tile-face{transform:none;padding:8px 1px;min-width:0}.piano-play[data-instrument=piano] .piano-key span[aria-hidden]{display:none}.piano-play[data-instrument=piano] .piano-key strong{font-size:11px;color:inherit}.piano-play .piano-key.tune-cue,.piano-play .piano-key.tune-player{background:#94e3ac!important}.piano-play .piano-key.tune-listening,.piano-play .piano-key.tune-miss{background:#f199aa!important}.piano-play[data-instrument=guitar] .piano-key{background:#f3d29b;border-color:#c29058}.piano-play[data-instrument=drums] .piano-key{border-radius:50%;aspect-ratio:1;min-height:100px;background:#ffe7b0;border:7px solid #dd779a;box-shadow:inset 0 0 0 3px white}.music-invitation{width:min(640px,100%);margin:18px auto}.music-invitation .topic-tile{width:100%;max-width:none}.music-invitation .topic-tile-face{display:flex;flex-direction:row;gap:20px;min-height:195px}.music-invitation .topic-tile-picture{width:150px;flex:none}.music-invitation .topic-tile-label{flex:1}.music-invitation .topic-tile-picture svg{width:100%;height:150px}@keyframes music-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}@keyframes music-pluck{50%{transform:rotate(2deg)}}@media(max-width:420px){.music-instrument-grid{grid-template-columns:1fr}.music-instrument-tile{display:flex;align-items:center;gap:20px}.music-instrument-tile span{width:100px}.music-options:not(.music-speeds){flex-direction:column}.music-options button{font-size:18px}.music-invitation .topic-tile-picture{width:110px}.music-invitation .topic-tile-face{gap:10px;padding:30px 12px 15px}}@media(prefers-reduced-motion:reduce){.music-denied,.music-instrument-art.is-plucked{animation:none}}body[data-motion=reduce] .music-denied,body[data-motion=reduce] .music-instrument-art.is-plucked{animation:none}
/* A focused turn: tune choices and instruments are separate stages. */
.piano-play [hidden]{display:none!important}.music-play-stage{width:100%}.music-play-stage .tune-name{font:900 23px/1.4 var(--joy-font);color:#24416d;text-align:center;margin:12px 0}.music-play-stage .piano-turn{padding:14px;margin:12px 0}.music-play-stage .tune-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:15px 0}.music-play-stage button[data-tune]{border:2px solid white;background:#d3eaff;color:#24416d;border-radius:20px;padding:12px 18px;min-height:48px;font:800 17px/1.4 var(--joy-font)}.music-play-stage button[data-tune=next]{background:#168765;color:white}.guitar-board{position:relative;width:470px;height:282px;background:linear-gradient(90deg,#755038,#583826);border:4px solid #ad7b4b;border-radius:18px;overflow:hidden}.guitar-frets{position:absolute;left:34px;right:0;top:6px;bottom:6px;background:repeating-linear-gradient(90deg,#b1a087 0 2px,transparent 2px 46px);border-left:5px solid #f4e8ce}.guitar-string{position:absolute;top:calc(var(--string-row)*46px);left:0;width:100%;height:46px;background:none;border:0;padding:0;cursor:pointer;color:#fff1d2}.guitar-string i{position:absolute;left:36px;right:0;top:22px;height:var(--string-weight);background:linear-gradient(#fff4cb,#ae9466)}.guitar-string span{position:absolute;left:4px;top:15px;font:800 12px var(--joy-font)}.guitar-fret{position:absolute;top:calc(var(--string-row)*46px + 3px);left:calc(36px + var(--fret)*46px);width:40px;height:40px;border:2px solid #77513a;border-radius:50%;background:#ebcd8d;color:#293349;font:800 12px var(--joy-font);z-index:2;cursor:pointer}.drum-kit{position:relative;width:100%;max-width:440px;aspect-ratio:1.18;margin:auto;border-radius:30px;background:radial-gradient(ellipse,#f4fbff,#dce9f4)}.drum-piece{position:absolute;transform:translate(-50%,-50%);border:0;background:none;padding:0;border-radius:50%;aspect-ratio:1;cursor:pointer}.drum-piece svg{width:100%;height:100%;display:block}.drum-piece strong{position:absolute;left:0;right:0;top:53%;font:900 12px/1.2 var(--joy-font);color:#553b35}.drum-piece:active{transform:translate(-50%,-50%) scale(.95)}.guitar-fret.tune-cue,.guitar-fret.tune-player{background:#92e1bd}.guitar-string.tune-cue i,.guitar-string.tune-player i{background:#92e1bd;height:5px}.drum-piece.tune-cue,.drum-piece.tune-player{box-shadow:0 0 0 5px #2ba566,0 0 22px #92e1bd}.guitar-fret.tune-listening,.guitar-fret.tune-miss{background:#ffb5d5}.guitar-string.tune-listening i,.guitar-string.tune-miss i{background:#ffb5d5;height:5px}.drum-piece.tune-listening,.drum-piece.tune-miss{box-shadow:0 0 0 5px #e05b8b,0 0 22px #ffb5d5}.music-play-stage [data-note]:focus-visible{outline:3px solid #185d91;outline-offset:3px}.guitar-string.tune-player i{animation:string-pluck .22s ease-out}.drum-piece.tune-player svg{animation:drum-hit .22s ease-out}@keyframes string-pluck{25%,75%{transform:translateY(-2px)}50%{transform:translateY(2px)}}@keyframes drum-hit{50%{transform:scale(.94)}}@media(prefers-reduced-motion:reduce){.guitar-string.tune-player i,.drum-piece.tune-player svg{animation:none}}body[data-motion=reduce] .guitar-string.tune-player i,body[data-motion=reduce] .drum-piece.tune-player svg{animation:none}
.topic-landing>.practice-invitation:has(.topic-practice-tile){padding-top:28px;border-top:2px solid #ffffff90;margin-top:25px}.anthem-tile-toggle{padding-top:23px}
.music-anthem-invitation{width:min(640px,100%);margin:0 auto 30px}
.music-anthem-invitation .nepal-anthem-inline{margin:0;max-width:none}
.music-area [data-music-content]{min-width:0;max-width:100%}

/* Keep complete labels inside feature cards; only the instruments scroll sideways. */
.music-area,.music-area .piano-play,.music-play-stage,.music-play-stage .piano-player{min-width:0;max-width:100%;box-sizing:border-box}
.music-area :is(h2,h3,p),.music-instrument-tile strong,.music-options button,.music-area .melody-face strong,.music-area .melody-face small,.music-play-stage button[data-tune]{white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;max-width:100%}
.music-options{flex-wrap:wrap}.music-options button{flex:1 1 150px;min-height:58px}.music-speeds button{flex-basis:100px}
.music-area .melody-section{min-width:0;max-width:100%;margin-inline:0;box-sizing:border-box}
.music-area .melody-tabs{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.music-area .melody-face{box-sizing:border-box;height:100%}.music-area .melody-face small{line-height:1.5}
.piano-key-scroll{min-width:0;max-width:100%;box-sizing:border-box;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.music-play-stage .tune-controls>button{min-width:0;flex:0 1 auto}
@media(max-width:480px){.music-instrument-grid{grid-template-columns:1fr}.music-instrument-tile{display:flex;align-items:center;gap:16px}.music-instrument-tile>span{flex:0 0 86px;width:86px}.music-instrument-tile strong{flex:1;min-width:0;text-align:left}.music-area .melody-tabs{gap:14px}.music-invitation .topic-tile-picture{width:90px}.music-invitation .topic-tile-face{min-height:150px;gap:12px}}
@media(max-height:500px) and (orientation:landscape){.music-area h2{margin-block:10px;font-size:26px}.music-instrument-tile{padding:12px;min-height:125px}.music-instrument-tile svg{max-height:90px}.music-options{margin-block:12px}.music-play-stage .piano-turn{padding:10px;margin-block:8px}.music-back{margin-block:16px}.music-area .melody-face{min-height:130px}}

/* One invitation at a time; stable hit areas surround gently moving faces. */
.music-area .music-instrument-tile,.music-area .music-options .music-option{position:relative;display:block;padding:0;border:0;background:none;box-shadow:none;isolation:isolate;touch-action:manipulation}
.music-area .music-instrument-face,.music-area .music-option-face{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;border:3px solid #fff;border-bottom:6px solid #86adc8;border-radius:26px;background:linear-gradient(155deg,#f1faff,#a7daff);box-shadow:inset 0 2px 2px #ffffffbf,0 7px 16px #5b97c52b,0 0 24px #a2dfff66;transition:background .2s,border-color .2s,box-shadow .2s}
.music-area .music-instrument-face{flex-direction:column;gap:10px;min-height:230px;height:100%;padding:18px 16px 28px;animation:music-choice-float 4.8s ease-in-out infinite}
.music-area .music-instrument-tile:nth-child(2) .music-instrument-face{background:linear-gradient(155deg,#fff8dd,#ffe09a);border-bottom-color:#d6b466;box-shadow:inset 0 2px 2px #ffffffbf,0 7px 16px #b194592b,0 0 24px #ffe7aa70;animation-delay:-1.6s}
.music-area .music-instrument-tile:nth-child(3) .music-instrument-face{background:linear-gradient(155deg,#fff1f7,#ffc2db);border-bottom-color:#dc91b4;box-shadow:inset 0 2px 2px #ffffffbf,0 7px 16px #b75a8d2b,0 0 24px #ffc5e466;animation-delay:-3.2s}
.music-area .music-instrument-picture{display:grid;place-items:center;flex:0 0 128px;width:132px;max-width:100%;height:128px}
.music-area .music-instrument-picture svg{width:120px;height:120px;max-width:100%;max-height:120px}
.music-area .music-instrument-face strong{display:block;margin:0;padding:0 0 4px;line-height:1.5;text-align:center}
.music-step{margin:22px 0}.music-step h3{margin:0;font-size:21px;line-height:1.5}
.music-area .music-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0}
.music-area .music-options .music-option{min-height:64px;font-size:20px}
.music-area .music-option-face{height:100%;min-height:64px;padding:12px 10px;font-weight:900;line-height:1.5}
.music-step.is-active .music-option-face{animation:music-choice-float 4.8s ease-in-out infinite}
.music-step.is-active .music-option:nth-child(2) .music-option-face{animation-delay:-1.6s}
.music-step.is-active .music-option:nth-child(3) .music-option-face{animation-delay:-3.2s}
.music-area .music-option[aria-pressed=true] .music-option-face{background:linear-gradient(145deg,#ddfff0,#a0e7c9);border-color:#fff;border-bottom-color:#48ae82;color:#165e48;box-shadow:inset 0 2px 2px #ffffffc9,0 6px 14px #3caa7c24,0 0 22px #76dfb446;animation:none}
.music-area .music-level-help{font-size:15px;line-height:1.5;margin:10px 0 0;color:#456480}
.music-speed-step,.music-start-step{animation:music-step-enter .32s cubic-bezier(.2,.75,.3,1) both}
.music-start-step{margin-top:24px;padding:5px}
.music-area .music-start{position:relative;isolation:isolate;overflow:hidden;min-height:70px;padding:14px 20px;border:3px solid #f4fff9;border-bottom:6px solid #248c65;border-radius:26px;background:linear-gradient(150deg,#b1f7d5 0%,#4bc893 45%,#269b76 100%);color:#104f3b;text-shadow:0 1px 0 #ffffff80;box-shadow:inset 0 2px 4px #ffffffdb,inset 0 -4px 9px #0e704329,0 7px 18px #32976938,0 0 25px #8ef2c58c;cursor:pointer;touch-action:manipulation;animation:music-start-glow 4.2s ease-in-out infinite}
.music-start::before{content:"";position:absolute;z-index:-1;inset:-70% -25%;background:linear-gradient(110deg,transparent 37%,#ffffff70 49%,transparent 62%);transform:translateX(-90%);animation:music-start-shine 6s ease-in-out infinite;pointer-events:none}
.music-area .music-back{width:fit-content;max-width:100%;min-height:54px;margin:26px auto 10px;padding:12px 22px;background:linear-gradient(145deg,#f8f2ff,#ede2ff);border:3px solid white;border-bottom:5px solid #b695dd;border-radius:24px;color:#674a83;box-shadow:inset 0 2px 1px #ffffffcc,0 6px 16px #ab89ce32;animation:music-choice-float 5.2s ease-in-out infinite}
.topic-picker:has(>.music-area)>.topic-footer .topic-exit{background:linear-gradient(145deg,#fff1f7,#ffe0ef);border-bottom-color:#d692b6;color:#803f63;box-shadow:inset 0 2px 1px #ffffffcc,0 6px 16px #d797ba32}
.music-area .music-instrument-tile:active .music-instrument-face,.music-area .music-option:active .music-option-face{animation:none;transform:translateY(3px) scale(.98)}
.music-area :is(.music-start,.music-back):active{animation:none;transform:translateY(3px) scale(.98)}
.music-area :is(.music-instrument-tile,.music-option,.music-start,.music-back):focus-visible{outline:3px solid #185d91;outline-offset:5px}
.music-invitation .topic-tile-picture{align-self:center;width:132px;height:132px;min-height:132px;padding:0;box-sizing:border-box}
.music-invitation .topic-tile-picture svg{height:100%;max-height:100%;overflow:visible}
@keyframes music-choice-float{0%,100%{transform:translateY(0) rotate(0)}24%{transform:translateY(-2px) rotate(-.65deg)}56%{transform:translateY(0) rotate(.65deg)}78%{transform:translateY(-1px) rotate(0)}}
@keyframes music-step-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes music-start-glow{0%,100%{transform:translateY(0);box-shadow:inset 0 2px 4px #ffffffdb,inset 0 -4px 9px #0e704329,0 7px 18px #32976938,0 0 25px #8ef2c58c}50%{transform:translateY(-2px);box-shadow:inset 0 2px 4px #ffffffdb,inset 0 -4px 9px #0e704329,0 9px 22px #32976942,0 0 34px #8ef2c5a6}}
@keyframes music-start-shine{0%,55%{transform:translateX(-90%)}85%,100%{transform:translateX(90%)}}
@media(max-width:480px){.music-area .music-instrument-face{flex-direction:row;gap:18px;min-height:126px;padding:14px 22px 19px}.music-area .music-instrument-picture{flex:0 0 82px;width:82px;height:82px}.music-area .music-instrument-picture svg{width:82px;height:82px}.music-area .music-instrument-face strong{text-align:left;flex:1}.music-area .music-options{gap:10px}.music-area .music-options .music-option{font-size:18px}.music-area .music-option-face{padding:12px 5px}.music-invitation .topic-tile-picture{width:90px;height:90px;min-height:90px}}
@media(max-width:340px){.music-area .music-options{grid-template-columns:1fr}.music-area .music-options .music-option,.music-area .music-option-face{min-height:56px}}
@media(max-height:500px) and (orientation:landscape){.music-area .music-instrument-face{min-height:165px;padding:12px 14px 22px;gap:5px}.music-area .music-instrument-picture{flex-basis:82px;height:82px}.music-area .music-instrument-picture svg{height:82px}.music-step{margin:16px 0}}
@media(prefers-reduced-motion:reduce){.music-area *,.music-area *::before{animation:none!important;transition:none!important}}
body[data-motion=reduce] .music-area *,body[data-motion=reduce] .music-area *::before{animation:none!important;transition:none!important}
body[data-page-hidden=true] .music-area *,body[data-page-hidden=true] .music-area *::before{animation-play-state:paused!important}

/* Future steps stay in place, but only the next choice can be pressed. */
.music-step-number{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:4px;border-radius:50%;background:#e4f2ff;color:#245a83;font-size:16px;vertical-align:middle}
.music-step.is-locked .music-step-number{background:#edf0f5;color:#78889c}
.music-area .is-locked :is(.music-option-face,.music-start){filter:blur(1.7px);opacity:.43;animation:none!important;box-shadow:none;cursor:default;transition:filter .22s,opacity .22s}
.music-area .is-locked .music-start::before{animation:none}
.music-area .music-option:disabled{cursor:default}
.music-area .music-start-step{max-width:430px;margin:20px auto 0}

/* A compact satin keyboard, with a small light on the sounding key. Keeping
   the ivory/ebony faces intact makes listening readable on every screen. */
.piano-play[data-instrument=piano] .piano-key-scroll{overflow:visible;padding:8px 0 16px}
.piano-play[data-instrument=piano] .piano-keys{--white-key-count:6;--key-width:calc(100% / var(--white-key-count));width:100%;max-width:430px;box-sizing:border-box;height:190px;margin-inline:auto;padding:0;background:linear-gradient(160deg,#53657a,#26364c);border:8px solid #35465d;border-top-width:16px;border-radius:15px;box-shadow:inset 0 2px 1px #ffffff50,0 8px 18px #1f365529}
.piano-play[data-instrument=piano] .piano-key{left:calc(var(--key-position)*var(--key-width));width:calc(var(--key-width) - 1px);height:166px;background:linear-gradient(100deg,#f2f3ef,#fffefa 22%,#fffefa 76%,#f0f1ee)!important;border-color:#bdc6cf!important;border-bottom-width:6px;box-shadow:inset 0 -2px 1px #ffffff,0 2px 2px #182c3f1a!important;opacity:1;transform:none;color:#283b53!important;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.piano-play[data-instrument=piano] .piano-key.is-black{left:calc((var(--key-position) + .69)*var(--key-width));width:calc(var(--key-width)*.62);height:101px;border-radius:0 0 6px 6px;background:linear-gradient(100deg,#172031,#3a4659 48%,#182334)!important;border-color:#111c2d!important;box-shadow:inset 0 2px 1px #708194,0 3px 4px #12243d55!important;color:#fff!important}
.piano-play[data-instrument=piano] .piano-key .game-tile-face{animation:none;box-shadow:none;background:transparent;opacity:1;transform:none}
.piano-play[data-instrument=piano] .piano-key::after{content:"";position:absolute;top:111px;left:50%;width:min(18px,35%);height:6px;border-radius:5px;background:#2385c6;opacity:0;transform:translateX(-50%);transition:opacity .1s,box-shadow .1s;pointer-events:none}
.piano-play[data-instrument=piano] .piano-key.is-black::after{top:9px}
.piano-play[data-instrument=piano] .piano-key.tune-listening::after{opacity:1;box-shadow:0 0 9px #2385c670}
.piano-play[data-instrument=piano] .piano-key:is(.tune-cue,.tune-player)::after{opacity:1;background:#15965b;box-shadow:0 0 9px #15965b70}
.piano-play[data-instrument=piano] .piano-key.tune-miss::after{opacity:1;background:#d84476;box-shadow:0 0 9px #d8447670}
.piano-play[data-instrument=piano] .piano-key:not(:disabled):active{transform:translateY(2px);height:164px}
.piano-play[data-instrument=piano] .piano-key.is-black:not(:disabled):active{height:99px}
.music-play-stage .piano-turn[data-turn=listen]{background:#e5f3ff;border-color:#81bce7}
.guitar-fret.tune-listening{background:#d2edff;box-shadow:0 0 14px #2385c666}
.guitar-string.tune-listening i{background:#68bce9;height:5px;box-shadow:0 0 12px #2385c670}
.drum-piece.tune-listening{box-shadow:0 0 0 4px #2385c6,0 0 18px #9ad7f9}
@media(prefers-reduced-motion:reduce){.piano-play[data-instrument=piano] .piano-key::after{transition:none}}
body[data-motion=reduce] .piano-play[data-instrument=piano] .piano-key::after{transition:none}

/* Clear whole-instrument feedback: Sano is red; every played note is green. */
.music-area h2{color:#0666ef;font-weight:950;letter-spacing:-.025em;text-shadow:0 2px 0 #fff,0 0 20px #7fc9ff55}
.music-play-stage .piano-turn[data-turn=listen]{background:linear-gradient(135deg,#fff4f1,#ffdce2);border-color:#ef7588;color:#92243c}
.piano-play[data-instrument=piano] .piano-key{transition:transform .09s ease-out,background .09s,box-shadow .09s;transform-origin:top center}
.piano-play[data-instrument=piano] .piano-key.is-black strong{display:none}
.piano-play[data-instrument=piano] .piano-key::after{display:none}
.piano-play[data-instrument=piano] .piano-key.tune-cue{background:linear-gradient(100deg,#d3f9e3,#f6fff9)!important;border-color:#69c99b!important;box-shadow:inset 0 -3px 0 #59c58d,0 0 14px #54db9b66!important}
.piano-play[data-instrument=piano] .piano-key.tune-listening{background:linear-gradient(100deg,#f55b72,#ff8f96 45%,#ed3556)!important;border-color:#ba2142!important;color:#fff!important;box-shadow:inset 0 3px 6px #92233c44,0 0 22px #fa466a99!important;transform:translateY(5px) scaleY(.975);border-bottom-width:2px}
.piano-play[data-instrument=piano] .piano-key.tune-player{background:linear-gradient(100deg,#38ca83,#83edb1 45%,#21af6e)!important;border-color:#087d4b!important;color:#073e28!important;box-shadow:inset 0 3px 6px #067b3e44,0 0 22px #36df8a99!important;transform:translateY(5px) scaleY(.975);border-bottom-width:2px}
.piano-play[data-instrument=piano] .piano-key.is-black.tune-cue{background:linear-gradient(#214b3c,#122b26)!important}
.piano-play[data-instrument=piano] .piano-key strong{font-size:14px;text-shadow:none}
.guitar-instrument{max-width:520px;margin:0 auto;padding:4px 5px 12px}
.guitar-instrument .guitar-board{width:100%;height:270px;box-sizing:border-box;border:5px solid #bc8249;border-radius:24px;background:repeating-linear-gradient(3deg,#6b3c2310 0 1px,transparent 1px 7px),linear-gradient(105deg,#b57846,#70422a 45%,#a3683b);box-shadow:inset 0 2px 9px #43241660,0 7px 0 #79492c,0 0 25px #d4a26750}
.guitar-instrument .guitar-frets{left:42px;background:repeating-linear-gradient(90deg,#dccbaa 0 3px,transparent 3px 16.66%)}
.guitar-instrument .guitar-string{top:calc(var(--string-row)*43px);height:44px;opacity:1}
.guitar-instrument .guitar-string span{left:9px;font-size:13px}
.guitar-instrument .guitar-string i{left:43px;right:8px;box-shadow:0 2px 2px #38210b88}
.guitar-instrument .guitar-note-label{margin:18px 0 9px;font-size:15px;font-weight:850;color:#775237}
.guitar-melody-notes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.guitar-melody-notes .guitar-fret{position:relative;inset:auto;width:100%;height:50px;min-height:44px;border:2px solid #fff;border-bottom:4px solid #bc8249;border-radius:17px;background:linear-gradient(145deg,#fff3d5,#edc487);font-size:17px;opacity:1;box-shadow:0 4px 9px #9d67382b;transition:transform .09s,background .09s}
.guitar-fret.tune-listening,.guitar-melody-notes .guitar-fret.tune-listening{background:linear-gradient(145deg,#ff9a9e,#ee4563);color:#fff;border-bottom-color:#ba2142;box-shadow:0 0 22px #fa466a99;transform:translateY(3px)}
.guitar-melody-notes .guitar-fret.tune-cue{background:linear-gradient(145deg,#e9fff3,#a5edc9);border-bottom-color:#3ea978}
.guitar-fret.tune-player,.guitar-melody-notes .guitar-fret.tune-player{background:linear-gradient(145deg,#8aefb7,#25b875);color:#073e28;border-bottom-color:#087d4b;box-shadow:0 0 22px #36df8a99;transform:translateY(3px)}
.guitar-string.tune-listening i{background:#ff627a;height:5px;box-shadow:0 0 15px #ff466d;animation:string-pluck .22s ease-out}
.guitar-string.tune-player i{background:#55e59a;height:5px;box-shadow:0 0 15px #36df8a}
.drum-piece.tune-listening{box-shadow:0 0 0 5px #f33d63,0 0 25px #ff6e87;transform:translate(-50%,-50%) scale(.96)}
.drum-piece.tune-player{box-shadow:0 0 0 5px #19b970,0 0 25px #60e6a1;transform:translate(-50%,-50%) scale(.96)}
.drum-piece.tune-listening svg{filter:sepia(.3) saturate(1.7);animation:drum-hit .22s ease-out}
.drum-piece{opacity:1;transition:transform .09s,box-shadow .09s}
@media(prefers-reduced-motion:reduce){.guitar-string.tune-listening i,.drum-piece.tune-listening svg{animation:none}}
body[data-motion=reduce] .guitar-string.tune-listening i,body[data-motion=reduce] .drum-piece.tune-listening svg{animation:none}
.piano-play[data-instrument=piano] .piano-key.tune-listening strong{color:#fff!important}
.piano-play[data-instrument=piano] .piano-key.tune-player strong{color:#073e28!important}

/* Only the current green target is an invitation during the child's turn. */
.piano-play[data-phase=copy] [data-note]:disabled{opacity:.4;cursor:default}
.piano-play[data-phase=copy] [data-note]:disabled:active{transform:none}
.piano-play[data-phase=copy] .drum-piece:disabled:active{transform:translate(-50%,-50%)}
.piano-play[data-phase=copy] [data-note].tune-cue{opacity:1}

/* Keep the active cue visible and put the child’s next tap first. */
.music-tune-progress{display:block;width:min(430px,100%);height:12px;margin:0 auto 12px;accent-color:#15965b;border:0;border-radius:8px;overflow:hidden;background:#d8e6f1}
.music-tune-progress::-webkit-progress-bar{background:#d8e6f1;border-radius:8px}
.music-tune-progress::-webkit-progress-value{background:#15965b;border-radius:8px}
.music-tune-progress::-moz-progress-bar{background:#15965b;border-radius:8px}
.music-play-stage button[data-tune=resume]{background:#168765;color:#fff;font-weight:900;min-height:56px}
.music-play-stage .piano-turn[data-turn=waiting]{color:#24416d;background:#eaf4ff}
@media(max-width:480px){.piano-play[data-instrument=guitar] .guitar-instrument{display:flex;flex-direction:column}.piano-play[data-instrument=guitar] .guitar-note-label{order:0;margin-top:0}.piano-play[data-instrument=guitar] .guitar-melody-notes{order:1}.piano-play[data-instrument=guitar] .guitar-board{order:2;height:180px;margin-top:18px}.piano-play[data-instrument=guitar] .guitar-string{top:calc(var(--string-row)*28px);height:29px}.piano-play[data-instrument=guitar] .guitar-string i{top:14px}.piano-play[data-instrument=guitar] .guitar-string span{top:7px}}

/* Music uses one shared Back: play → melodies/rhythms → instruments → home. */
.foundations-shell:has([data-music-area]) > :where(.sano-page-scroll) > .learning-bottom-nav{display:none}

/* One short musical turn, with the same tactile controls as learning. */
.music-anthem-invitation[hidden]{display:none!important}
.music-area .melody-tabs>button{padding-bottom:0}
.music-area .melody-face{padding-bottom:22px}
.music-area .music-price{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:none;color:#654307;font:900 15px/1 var(--joy-font);z-index:3;pointer-events:none}
.music-area .music-price>svg{position:absolute;inset:0;width:100%;height:100%}
.music-area .music-price>b{position:relative;display:grid;place-items:center;min-width:21px;min-height:21px;padding:0 1px;box-sizing:border-box;border-radius:50%;background:#ffd45d;color:#65400a;font:inherit;text-shadow:0 1px #fff4ba}
.music-area .tune-controls{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:18px auto 10px;max-width:440px}
.music-area .tune-controls .music-control{position:relative;isolation:isolate;overflow:hidden;flex:1 1 145px;max-width:220px;min-height:62px;padding:12px 18px;border:3px solid #fff;border-bottom:6px solid #8852bf;border-radius:24px;background:linear-gradient(150deg,#e6c9ff,#b779ea 50%,#9850d1);color:#37134f;font:900 clamp(18px,3.6vw,22px)/1.35 var(--joy-font);text-shadow:0 1px #fff7;box-shadow:inset 0 2px 2px #ffffffb3,0 7px 16px #925bc635,0 0 22px #d3a5f94d;cursor:pointer;touch-action:manipulation;animation:music-choice-float 4.8s ease-in-out infinite}
.music-area .tune-controls .music-control::before{content:"";position:absolute;inset:-70% -25%;z-index:-1;background:linear-gradient(110deg,transparent 37%,#ffffff80 49%,transparent 62%);transform:translateX(-90%);animation:music-start-shine 6s ease-in-out infinite;pointer-events:none}
.music-area .tune-controls :is(.music-control-finish,.music-control-play){background:linear-gradient(150deg,#b1f7d5,#4bc893 50%,#269b76);color:#104f3b;border-bottom-color:#248c65;box-shadow:inset 0 2px 2px #ffffffb3,0 7px 16px #32976935,0 0 22px #8ef2c54d;animation-delay:-1.8s}
.music-area .tune-controls .music-control:active{animation:none;transform:translateY(3px) scale(.98)}
.music-area .tune-controls .music-control:focus-visible{outline:3px solid #185d91;outline-offset:5px}
.music-area .piano-turn>span[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.music-area .tune-controls .music-control,.music-area .tune-controls .music-control::before{animation:none!important}}
body[data-motion=reduce] .music-area .tune-controls .music-control,body[data-motion=reduce] .music-area .tune-controls .music-control::before{animation:none!important}

/* Four unboxed melody/rhythm choices per row for every instrument. */
#app .music-area .melody-section{background:none;border:0;box-shadow:none;border-radius:0;padding:0;margin-top:24px}
#app .music-area .melody-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1.5vw,14px)}
#app .music-area .melody-face{min-width:0;padding-inline:6px}
#app .music-area .melody-face strong{font-size:clamp(12px,2vw,18px);overflow-wrap:anywhere}
@media(max-width:480px){#app .music-area .melody-face{min-height:110px;border-radius:18px}#app .music-area .melody-notes{font-size:24px}}

/* Three compact square instruments, with room around the heading and cards. */
#app .music-area > h2{margin:20px 0 32px;line-height:1.4}
#app .music-area .music-instrument-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:min(620px,100%);gap:clamp(10px,2.4vw,22px);margin:0 auto 28px;padding:6px 0 10px}
#app .music-area .music-instrument-tile{display:block;aspect-ratio:1;min-width:0;min-height:0;width:100%;padding:0}
#app .music-area .music-instrument-face{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:clamp(4px,1vw,9px);width:100%;height:100%;min-height:0;padding:clamp(7px,1.7vw,16px);border-radius:clamp(18px,3vw,26px)}
#app .music-area .music-instrument-picture{display:grid;place-items:center;align-self:center;flex:none;width:100%;height:100%;max-width:110px;max-height:110px;min-width:0;min-height:0}
#app .music-area .music-instrument-picture svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;aspect-ratio:1;object-fit:contain;overflow:visible}
#app .music-area .music-instrument-face strong{flex:none;margin:0;padding:0;width:100%;text-align:center;font-size:clamp(13px,2.7vw,22px);line-height:1.3}
/* The real instrument stays below the melody chooser, then unlocks in place. */
#app .music-area .music-play-stage[data-freeplay=true]{margin:32px auto 0;padding-top:2px}
#app .music-area :is(.melody-section>h3,.music-play-stage[data-freeplay=true]>.tune-name){font:900 28px/1.2 var(--joy-font);color:#0867ed;text-align:center}
#app .music-area .music-play-stage[data-freeplay=true]>.tune-name{margin:0 0 22px}
#app .music-area .music-instrument-surface{position:relative;isolation:isolate;width:100%;min-width:0;max-width:100%;margin:0 auto}
#app .music-area .music-instrument-surface[data-admission-needed=true]>.piano-key-scroll{filter:blur(2.2px);opacity:.55;pointer-events:none;user-select:none}
#app .music-area .music-instrument-surface .music-freeplay-unlock{position:absolute;inset:0;z-index:4;display:block;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:18px;background:transparent;box-shadow:none;cursor:pointer;touch-action:pan-y}
#app .music-area .music-freeplay-unlock:focus-visible{outline:3px solid #185d91;outline-offset:5px}
#app .music-area .music-freeplay-unlock>.music-price{top:-12px;right:4px;width:48px;height:48px;font-size:19px}
#app .music-area .music-freeplay-unlock>.music-price>b{min-width:28px;min-height:28px}
#app .music-area .music-instrument-surface[data-admission-needed=false]>.piano-key-scroll{filter:none;opacity:1}
#app .music-area .piano-play[data-instrument=piano] .piano-key-scroll{overflow-x:auto;overflow-y:hidden;padding:10px 0 18px;touch-action:pan-x pan-y}
#app .music-area .piano-play[data-instrument=piano] .piano-keys{width:100%;max-width:none;min-width:0;margin-inline:0}
#app .music-area .melody-tabs>button:disabled{cursor:default}
#app .music-area .music-freeplay-unlock:disabled{cursor:default}
#app .music-area .piano-play[data-instrument=piano] .piano-key{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:0;padding:0;box-sizing:border-box}
#app .music-area .piano-play[data-instrument=piano] .piano-key .game-tile-face{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:0;height:auto;padding:0 0 10px;gap:0;margin:0;border:0;border-radius:0;background:transparent}
#app .music-area .piano-play[data-instrument=piano] .piano-key strong{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:0;text-align:center;font-size:12px;line-height:1.2;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:clip}
#app .music-area .piano-play[data-instrument=piano] .piano-key.is-black{z-index:2}
#app .music-area .piano-play[data-instrument=piano] .piano-key.is-black .game-tile-face{display:none}
@media(forced-colors:active){#app .music-area .music-freeplay-unlock>.music-price{background:Canvas;border:2px solid ButtonText}.music-area .music-price>b{background:Canvas;color:ButtonText}}

/* Compact icon choices; the price belongs to the face it travels with. */
#app .music-area [data-music-content]>h2{margin:18px 0 24px}
#app .music-area .music-instrument-grid{width:min(600px,100%);gap:clamp(12px,2.8vw,22px);padding-block:4px 8px;margin-bottom:22px}
#app .music-area .music-instrument-tile{aspect-ratio:.92}
#app .music-area .music-instrument-face{position:relative;display:grid;grid-template-rows:minmax(0,1fr);place-items:center;gap:0;padding:32px clamp(12px,2.4vw,18px) clamp(10px,2vw,16px)}
#app .music-area .music-instrument-picture{max-width:104px;max-height:104px}
#app .music-area .music-instrument-face>.music-instrument-coin{position:absolute;top:5px;right:6px;display:block;width:22px;height:22px;pointer-events:none}
#app .music-area .music-instrument-coin>svg{display:block;width:100%;height:100%;max-height:100%;animation:none;transform:none}
#app .music-area .melody-face{position:relative;padding-top:28px;padding-bottom:16px}
#app .music-area .music-locked .melody-face{filter:none;opacity:1}
#app .music-area .music-locked .melody-face>:is(.melody-notes,strong){filter:blur(2px);opacity:.6}
#app .music-area .melody-face>.music-price{top:5px;right:5px;width:24px;height:24px;font-size:10px;flex:none}
#app .music-area .melody-face>.music-price>b{min-width:15px;min-height:15px}
#app .music-area .music-freeplay-unlock>.music-price{top:3px;right:5px;width:30px;height:30px;font-size:12px}
#app .music-area .music-freeplay-unlock>.music-price>b{min-width:18px;min-height:18px}
#app .music-anthem-invitation .nepal-anthem-inline::before{animation-duration:3.8s}

/* A single compact cue keeps the melody handover clear on every instrument. */
#app .music-area .music-play-stage .piano-turn{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:0;width:min(260px,100%);min-height:48px;height:auto;padding:8px 16px;margin:8px auto 12px;border-radius:22px;text-align:center}
#app .music-area .music-play-stage .piano-turn>strong{font-size:clamp(20px,4vw,24px);line-height:1.2}
/* Songs share Sano's white rim and coloured light behind the surface. */
#app .songs-page{max-width:680px;margin:0 auto;padding:12px 18px 36px;text-align:center;color:#21486e;font-family:var(--joy-font)}
#app .songs-heading h1{font-size:clamp(28px,7vw,42px);color:#159b71;margin:12px 0 8px}
#app .songs-heading p{font-size:20px;margin:0 0 30px}
#app .songs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px;padding:14px 4px 30px}
#app :is(.song-card,.song-control){--song-glow:#71b7f3;border:3px solid #fffffff2;border-radius:30px;background:linear-gradient(145deg,#ffffff66,transparent),#a1d4ff;color:#244769;font:800 20px/1.3 var(--joy-font);box-shadow:0 0 22px 4px color-mix(in srgb,var(--song-glow) 38%,transparent),0 8px 38px 6px color-mix(in srgb,var(--song-glow) 24%,transparent);transition:transform .16s ease;cursor:pointer}
#app .song-card{min-width:0;min-height:180px;padding:24px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
#app .song-card-art{font-size:clamp(28px,7vw,48px);line-height:1.4;color:#21486e;white-space:nowrap}
#app .song-tone-1{--song-glow:#e382b1;background:linear-gradient(145deg,#ffffff55,transparent),#ffbad8}
#app .song-tone-2{--song-glow:#60cba0;background:linear-gradient(145deg,#ffffff55,transparent),#a6e9c9}
#app .song-tone-3{--song-glow:#e6bd5a;background:linear-gradient(145deg,#ffffff55,transparent),#ffe295}
#app :is(.song-card,.song-control):active{transform:translateY(3px)}
#app :is(.song-card,.song-control):focus-visible{outline:3px solid #295ec1;outline-offset:7px}
#app .song-stage h2{font-size:26px;margin:6px 0 18px}
#app .song-companion{height:120px;width:100px;object-fit:contain;margin:4px auto 0}
#app .song-lyrics{font-size:clamp(19px,5.1vw,26px);font-weight:800;line-height:1.8;margin:12px auto 26px;max-width:580px}
#app .song-lyrics p{margin:5px 0}
#app .song-lyrics span{border-radius:8px;padding:2px 1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#app .song-lyrics .is-singing{color:#49305f;background:#ffe18c;box-shadow:0 0 14px #ffcf6b88}
#app .song-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;padding:5px}
#app .song-control{min-height:54px;min-width:112px;padding:12px 20px;font-size:18px;border-radius:24px}
#app .song-play{--song-glow:#59c69b;background:linear-gradient(145deg,#ffffff66,transparent),#9de1bd}
#app .song-speed{--song-glow:#af93dc;background:linear-gradient(145deg,#ffffff66,transparent),#d9c7f4}
#app .song-speed[aria-pressed=true]{color:#fff;background:#7850b6}
#app .song-back{--song-glow:#ed7488;background:linear-gradient(145deg,#ffffff44,transparent),#f06a83;color:#fff;animation:none!important}
#app .songs-back{padding:22px 0 8px}
#app .song-status{min-height:26px;font-size:16px;margin:22px 0 0}
#app .topic-four-home .topic-category-tile.topic-category-songs{--topic-fill:#d9c3ff;--topic-edge:#a082d9;--topic-ink:#49326c;grid-column:1/-1;width:calc((100% - 18px)/2);justify-self:center}
#app .english-vowel-example{display:flex;align-items:center;justify-content:center;gap:14px;margin:12px auto;font-size:27px}
#app .english-vowel-example>span{font-size:56px}
@media(max-width:360px){#app .songs-grid{gap:24px 14px}#app .song-card{min-height:155px;font-size:17px;padding:18px 8px}#app .song-control{min-width:98px;padding:11px 14px}}
@media(prefers-reduced-motion:reduce){#app :is(.song-card,.song-control){transition:none;animation:none}}
@media(forced-colors:active){#app :is(.song-card,.song-control){background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}#app .song-lyrics .is-singing{background:Highlight;color:HighlightText}}

#app .song-card-art>svg{display:block;width:76px;height:76px}
#app .english-vowel-example svg{display:block;width:70px;height:70px}

/* Separate song and rhyme choices retain the shared soft rim and pulse. */
#app .song-category{min-height:210px;font-size:25px}
#app .song-card strong{overflow-wrap:anywhere}
#app .song-version{display:block;font:600 13px/1.4 var(--joy-font);color:#405975}
#app .song-stage>.song-version{margin:-10px 0 18px}
@keyframes sanoSongPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@media(prefers-reduced-motion:no-preference){#app .song-card,#app .song-control:not(.song-back){animation:sanoSongPulse 2.4s ease-in-out infinite}#app .song-card:nth-child(even){animation-delay:-1.2s}}
@media(prefers-reduced-motion:reduce){#app .song-card,#app .song-control{animation:none!important}}
@media(max-width:360px){#app .song-category{min-height:185px;font-size:23px}}

/* Piano note letters belong directly on the key; the key itself supplies the
   red listening/green player feedback, without a second white tile frame. */
body #app .piano-play[data-instrument=piano] .piano-key>.game-tile-face{
 border:0!important;outline:0;box-shadow:none!important;background:transparent!important;
 border-radius:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body #app .piano-play[data-instrument=piano] .piano-key>.game-tile-face::before,
body #app .piano-play[data-instrument=piano] .piano-key>.game-tile-face::after{content:none!important}


/* A centred performance, followed by the persistent bottom playback controls. */
body #app .song-stage{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:880px;width:100%;margin-inline:auto;box-sizing:border-box;min-width:0;text-align:center}
body #app .song-stage>h2{order:0;align-self:center;color:#176cba;margin:0 0 4px;font-size:clamp(24px,3vw,32px);line-height:1.25}
body #app .song-stage>.song-performer{order:1;position:relative;flex:none;align-self:center;float:none;inset:auto;transform:none;width:140px;height:140px;max-width:100%;margin:0 auto;padding:0;overflow:visible}
body #app .song-stage>.song-lyrics{order:2;width:min(100%,620px);min-width:0;margin:0 auto;padding:8px 12px;box-sizing:border-box;font-size:clamp(18px,2.3vw,25px);line-height:1.65}
body #app .song-stage>.song-status{order:3;margin:0}
body #app .song-stage>.song-controls{order:4;position:sticky;bottom:0;z-index:3;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:12px;width:min(100%,620px);box-sizing:border-box;margin:8px auto 0;padding:12px max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));border-radius:24px;background:transparent}
body #app .song-controls>.song-control{flex:1;min-width:0;max-width:270px;min-height:52px;font-size:clamp(16px,2vw,20px)}
body #app .song-lyrics p{border-radius:18px;transition:background .15s ease,color .15s ease;margin:6px 0;overflow-wrap:anywhere}
body #app .song-lyrics .is-current-line{color:#1262a9;background:#e0f3ff88}
body #app .song-lyrics .is-singing{color:#165487;background:#ffe294;border-radius:.5em;box-shadow:0 0 12px #ffe29488}
@media(orientation:landscape) and (max-height:650px){body #app .song-stage>.song-lyrics{font-size:18px;line-height:1.5}body #app .song-stage{gap:6px}}
@media(prefers-reduced-motion:reduce){body #app .song-lyrics p{transition:none}}

/* Drum strikes glow into the surrounding surface without a hard ring. */
body #app .drum-kit{overflow:visible}
body #app .drum-piece.tune-listening,body #app .drum-piece.tune-player{box-shadow:0 0 15px 5px #ff365b66,0 0 34px 10px #ff557944;background:radial-gradient(ellipse,#ff446044 20%,#ff446018 58%,transparent 76%);filter:drop-shadow(0 0 7px #ff3b5866)}
body #app .drum-piece.tune-listening svg,body #app .drum-piece.tune-player svg{filter:drop-shadow(0 0 8px #ff425988);animation:drum-hit .22s ease-out}
body #app .drum-piece>svg,body #app .drum-piece>strong{pointer-events:none}
body #app .drum-piece:focus-visible{outline:3px solid #185d91;outline-offset:5px}
@media(prefers-reduced-motion:reduce){body #app .drum-piece.tune-listening svg,body #app .drum-piece.tune-player svg{animation:none}}

/* Sano stylesheet: play-recall.css */
.play-recall{text-align:center;max-width:580px;width:min(94vw,580px);padding:clamp(18px,4vw,32px)}.play-recall-eyebrow{font-weight:800;color:#175a43;margin:0 0 8px}.play-recall h2{font-size:clamp(22px,5vw,32px);margin:8px 0}.play-recall-word{font-size:clamp(30px,7vw,42px);line-height:1.6;color:#174274;font-weight:800;margin:12px 0;overflow-wrap:normal;word-break:normal}.play-recall-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.play-recall-choice{min-height:132px;min-width:0;padding:14px;border-radius:28px;border:3px solid #fff;border-bottom:6px solid #acd9ef;background:#e6f5ff;display:grid;place-items:center;touch-action:manipulation;transition:transform .18s ease,background .18s ease}.play-recall-choice svg,.play-recall-choice img{width:100%;height:96px;max-width:120px;object-fit:contain}.play-recall-choice:active{transform:scale(.97)}.play-recall-choice:focus-visible{outline:4px solid #246b87;outline-offset:3px}.play-recall-choice.is-hint{background:#dcf6d9;border-color:#4b9c70}.play-recall-choice.is-retry{background:#fff1d3;border-bottom-color:#e4bc6f}.play-recall-tools{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.play-recall-tools button{flex:1;min-width:125px}.play-recall-feedback{min-height:28px;font-weight:700;color:#31536f}.play-recall-result{padding:24px 0}.play-recall-result>span{font-size:72px;color:#dcac21}.play-recall-result p{font-size:24px;font-weight:800;color:#175a43}.play-recall-result .talk-primary{width:100%}@media(prefers-reduced-motion:reduce){.play-recall-choice{transition:none}}

/* Sano stylesheet: maths.css */
.maths-play{width:min(660px,100%);margin:14px auto 24px;text-align:center;color:#203d59;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.maths-play button{font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}.maths-play button:focus-visible{outline:4px solid #1264d2;outline-offset:4px}.maths-intro{font-size:22px;font-weight:750;margin:8px 0}.maths-level{font-size:15px;line-height:1.7;margin:0 0 23px;color:#526e8b}.maths-operations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.maths-operation{min-height:166px;border:3px solid white;border-bottom:7px solid var(--math-edge);border-radius:30px;padding:22px 10px;background:var(--math-fill);color:var(--math-ink);box-shadow:0 8px 17px #326f9912;transition:transform .18s,box-shadow .18s}.maths-operation:active{transform:translateY(4px) scale(.98);box-shadow:0 2px 8px #326f9912}.maths-operation strong{display:block;font-size:clamp(16px,3.8vw,23px);overflow-wrap:normal;word-break:normal;line-height:1.5}.maths-operation-symbol{display:grid;place-items:center;font-family:Arial,sans-serif;font-size:64px;font-weight:800;height:73px;margin:0 auto 12px;width:84px;border-radius:24px;background:#ffffff55}.maths-tone-mint{--math-fill:#92e1bd;--math-edge:#48b88c;--math-ink:#175a43}.maths-tone-blue{--math-fill:#91caff;--math-edge:#4c9fea;--math-ink:#174274}.maths-tone-pink{--math-fill:#ffb5d5;--math-edge:#e882b0;--math-ink:#71304f}.maths-tone-yellow{--math-fill:#ffe093;--math-edge:#dfb455;--math-ink:#665021}.maths-round,.maths-finish{animation:maths-arrive .24s cubic-bezier(.2,.8,.2,1) both}.maths-round{padding:22px 20px;background:#ffffffc9;border:2px solid white;border-radius:32px;box-shadow:0 10px 25px #37628a09}.maths-round-head{display:flex;justify-content:space-between;gap:14px;font-size:14px;line-height:1.6;text-align:left;color:#456886}.maths-round-dots{display:flex;justify-content:center;gap:7px;margin:16px 0 20px}.maths-round-dots i{width:17px;height:9px;border-radius:8px;background:#e0eaf6}.maths-round-dots i.current{background:#78b7fb;width:27px}.maths-round-dots i.done{background:#70cfa4}.maths-instruction{font-size:22px!important;line-height:1.5;margin:10px 0!important;color:#204b75!important;letter-spacing:0!important}.maths-equation{font-size:clamp(33px,7.5vw,58px);font-weight:850;letter-spacing:1px;padding:22px 6px;line-height:1.5;color:#204b75;white-space:nowrap}.maths-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:400px;margin:16px auto 8px}.maths-button{background:#edf5ff;border:3px solid #fff;border-bottom:6px solid #94bdf0;border-radius:23px;padding:12px 18px;min-height:52px;color:#214f7e;font-weight:750;transition:transform .16s,background .16s;line-height:1.5}.maths-button:active:not(:disabled){transform:translateY(3px)}.maths-button:disabled{cursor:default;opacity:.75}.maths-answer-grid .maths-button{font-size:38px;min-height:94px}.maths-button.maths-correct,.maths-button.maths-matched{background:#b9f0d5;border-bottom-color:#5db489;color:#195838;opacity:1}.maths-controls{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.maths-primary{background:#2783f5;border-bottom-color:#155cbd;color:white;min-width:160px}.maths-help,.maths-hear{background:#fff2d3;border-bottom-color:#e4c57e;color:#665021;font-size:16px}.maths-back{display:block;margin:23px auto 0;background:#e8eff9;min-width:180px;font-size:16px}.maths-status{min-height:29px;margin:12px 0;font-size:19px;font-weight:750;color:#29698b}.maths-match-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(70px,.65fr);gap:20px;margin:19px 0}.maths-match-questions,.maths-match-answers{display:grid;gap:13px}.maths-match-grid .maths-button{width:100%;min-height:65px;padding:9px 6px;font-size:clamp(18px,4vw,26px);white-space:nowrap}.maths-button.maths-selected{background:#ffdf87;border-color:#edb84f;border-bottom-color:#c28d28;color:#654b13}.maths-counters{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:460px;margin:0 auto 16px}.maths-counter-group{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:10px;min-width:38px;min-height:38px;max-width:224px;border-radius:16px;background:#e8f4ff;border:2px solid #d0e5fc}.maths-counter-group:nth-child(even){background:#fff0f6;border-color:#f7d5e4}.maths-counter-group i{height:14px;width:14px;border-radius:50%;background:#478fdb;box-shadow:inset 0 2px 0 #ffffff66}.maths-counter-group:nth-child(even) i{background:#d877a5}.maths-counter-group i.taken{opacity:.23;position:relative}.maths-counter-group i.taken:after{content:'';position:absolute;left:0;top:6px;right:0;height:2px;background:#243f57;transform:rotate(-40deg)}.maths-help-text{font-size:17px;line-height:1.8;color:#40698b;margin:5px auto 18px;max-width:440px}.maths-finish{padding:25px 14px}.maths-finish h2{color:#257a54;font-size:29px;line-height:1.5}.maths-finish p{font-size:19px;line-height:1.6}.maths-finish-star{display:block;font-size:84px;line-height:1.3;color:#edb42d;text-shadow:0 5px 0 #fff0ab}.maths-finish-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin:25px auto}.maths-play:lang(ne) .maths-operation strong{font-size:25px}.maths-play:lang(ne) .maths-equation{letter-spacing:0}.maths-play:lang(ne) .maths-instruction{line-height:1.7}@keyframes maths-arrive{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:380px){.maths-operations{gap:13px}.maths-operation{padding:18px 7px;min-height:150px}.maths-round{padding:18px 12px}.maths-match-grid{gap:11px}.maths-equation{font-size:32px}.maths-answer-grid .maths-button{min-height:83px}}@media(prefers-reduced-motion:reduce){.maths-play *{animation:none!important;transition:none!important}}

/* Whole operation names get a wider tile before the grid adds a column. */
.maths-play,.maths-round,.maths-finish{min-width:0;max-width:100%;box-sizing:border-box}
.maths-play :is(h2,p,button){overflow-wrap:normal;word-break:normal;hyphens:none}
.maths-operations{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.maths-round-head{flex-wrap:wrap}.maths-round-head>span{min-width:0;max-width:100%}
.maths-equation{font-size:clamp(24px,6.4vw,52px);padding-inline:0;letter-spacing:0}
.maths-match-grid .maths-button{font-size:clamp(16px,3.4vw,26px);padding-inline:3px;min-width:0}
.maths-controls>.maths-button,.maths-finish-actions>.maths-button,.maths-back{max-width:100%;min-width:min(160px,100%);white-space:normal}
.maths-counter-group{max-width:min(224px,100%);box-sizing:border-box}
@media(max-width:480px){.maths-operation{display:flex;align-items:center;justify-content:center;gap:15px;min-height:116px;padding:16px}.maths-operation-symbol{flex:0 0 64px;width:64px;height:64px;font-size:49px;margin:0}.maths-operation strong{flex:1;min-width:0;font-size:21px}.maths-play:lang(ne) .maths-operation strong{font-size:23px}}
@media(max-height:500px) and (orientation:landscape){.maths-play{margin-top:8px}.maths-operation{min-height:126px;padding:12px}.maths-operation-symbol{height:52px;width:62px;font-size:45px;margin-bottom:6px}.maths-round{padding:14px}.maths-equation{padding-block:10px}.maths-round-dots{margin-block:9px}.maths-answer-grid .maths-button{min-height:64px;font-size:30px}.maths-back{margin-top:16px}}

/* Sano stylesheet: topic-layout-polish.css */
/* One continuous, evenly packed learning grid. The same twenty topics form
   pairs on phones and four columns when the actual content area has room. */
.topic-picker.topic-landing{container-type:inline-size}
#app .topic-landing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
#app .topic-landing-grid>.topic-landing-tile{grid-column:auto}
#app .topic-landing-grid>.topic-landing-tile>.topic-tile-face{height:100%;min-height:196px;padding:22px 14px;gap:12px}
#app .topic-landing-grid .topic-tile-label strong{font-size:clamp(20px,3.5vw,25px);line-height:1.35;word-break:normal;overflow-wrap:normal;hyphens:none}
@container (min-width:700px){#app .topic-landing-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container (max-width:339px){#app .topic-landing-grid{grid-template-columns:minmax(0,1fr)}}
/* Raise the entire illustration, including its animated children. Padding on
   the picture alone cannot move an absolutely positioned topic scene. */
.music-invitation .topic-tile-picture>.topic-scene{transform:translateY(-8px) scale(.92)}
.web-entry-choice h1.brand-heading{width:min(100%,540px);margin:0 auto 24px;line-height:0;color:#0666ef}
.web-entry-choice h1.brand-heading>svg{width:100%;height:auto;max-height:96px;overflow:visible}
.web-entry-companions{position:relative;display:block;width:100%;height:100%;isolation:isolate}
.web-entry-companions>img{position:absolute;top:5%;width:75%;height:94%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 5px 3px #31557d16)}
.web-entry-companions>img:first-child{left:-10%;transform:rotate(-5deg)}
.web-entry-companions>img:last-child{right:-10%;transform:rotate(5deg)}
@media(max-height:500px) and (orientation:landscape){.web-entry-choice h1.brand-heading>svg{max-height:64px}}
/* Featured activities share one compact footprint at every viewport size. */
.topic-landing>.adventure-invitation,.topic-landing>.music-invitation{display:grid;grid-template-columns:minmax(0,1fr);width:min(500px,100%);box-sizing:border-box;padding:8px;margin:18px auto}
#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-face{box-sizing:border-box;width:100%;min-height:174px;padding:20px 22px;flex-direction:row;gap:14px}
#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-picture{flex:0 0 116px;width:116px;height:116px;min-height:116px;align-self:center}
#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-label{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-label strong{font-size:clamp(22px,4vw,27px);line-height:1.35;overflow-wrap:normal;word-break:normal}
#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-label small{font-size:15px;line-height:1.5;overflow-wrap:normal;word-break:normal}
.music-invitation .topic-tile-picture>.topic-scene{transform:translateY(-4px) scale(.94)}
/* A warm yellow metal surface and a slow reflected glint, with the hit target fixed. */
.topic-adventure-tile{--topic-fill:#ffd23f;--topic-edge:#d49a17;--topic-ink:#674414}
#app .topic-adventure-tile .topic-tile-face{position:relative;isolation:isolate;overflow:hidden;border:3px solid #fff3be;border-bottom:7px solid #be8215;background:linear-gradient(150deg,#fff8cc 0%,#ffe776 18%,#f2ba24 39%,#ffe16a 52%,#ffd23f 73%,#e7a71e 100%);box-shadow:inset 0 2px 2px #fffde8,inset 0 -4px 8px #9e641527,0 5px 0 #b67d13,0 9px 17px #94672324,0 0 30px #ffd34166;animation:sano-gold-float 6s ease-in-out infinite}
.topic-adventure-tile .topic-tile-face::before{content:"";position:absolute;z-index:-1;inset:-100% -80%;background:linear-gradient(112deg,transparent 42%,#fffdf4b3 48%,#ffffff30 52%,transparent 58%);transform:translateX(-65%);animation:sano-gold-shine 7.2s ease-in-out infinite;pointer-events:none}
.topic-adventure-tile .topic-tile-halo{opacity:.7;background:radial-gradient(ellipse closest-side,#ffc92970 0%,#ffd54e3d 50%,#ffc92912 78%,transparent 100%)}
.topic-adventure-tile .topic-tile-label{color:#674414;text-shadow:0 1px 0 #fff5bc}
.web-entry-tile .game-tile-face{justify-content:center}
.web-entry-personal .web-entry-symbol{margin-top:7px;margin-bottom:2px}
@keyframes sano-gold-float{0%,100%{transform:translateY(0) rotate(0)}24%{transform:translateY(-3px) rotate(-.65deg)}54%{transform:translateY(-1px) rotate(.65deg)}78%{transform:translateY(-2px) rotate(0)}}
@keyframes sano-gold-shine{0%,44%{transform:translateX(-65%)}76%,100%{transform:translateX(65%)}}
@media(max-width:420px){#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-face{min-height:160px;padding:22px 16px;gap:10px}#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-picture{flex-basis:88px;width:88px;height:88px;min-height:88px}}
@media(max-width:359px){#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-face{flex-direction:column;gap:9px}#app .topic-landing :is(.adventure-invitation,.music-invitation) .topic-tile-label{width:100%;flex:0 1 auto}}
@media(prefers-reduced-motion:reduce){#app .topic-adventure-tile .topic-tile-face,#app .topic-adventure-tile .topic-tile-face::before{animation:none}.topic-adventure-tile .topic-tile-face::before{opacity:.25;transform:none}}
body[data-motion=reduce] .topic-adventure-tile .topic-tile-face,body[data-motion=reduce] .topic-adventure-tile .topic-tile-face::before{animation:none!important}
body[data-page-hidden=true] .topic-adventure-tile .topic-tile-face,body[data-page-hidden=true] .topic-adventure-tile .topic-tile-face::before{animation-play-state:paused!important}

/* Sano stylesheet: talk-polish.css */
/* Speaking keeps the same bright page canvas, with one clear action at a time. */
.coin-backdrop[data-talk-view=true]{display:block;background:radial-gradient(ellipse at 1% 7%,#ffe3f0,transparent 48%),radial-gradient(ellipse at 100% 15%,#d5efff,transparent 52%),#f5faff;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate;overflow-y:auto;overscroll-behavior:contain}
.coin-backdrop .coin-dialog[data-talk-view=true]{background:transparent;border:0;border-radius:0;box-shadow:none;filter:none;width:min(680px,100%);max-height:none;min-height:100%;overflow:visible;margin:0 auto;scrollbar-gutter:auto}
.coin-dialog[data-talk-view=true] .coin-dialog-top{display:flex;align-items:center;gap:16px;position:relative;top:auto;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0}
.coin-dialog[data-talk-view=true] .coin-dialog-top .corner-tools{flex:0 0 auto;width:auto;min-height:0;padding:0;margin:0;container-type:normal}
.coin-backdrop[data-talk-view=true] .coin-dialog-top .context-return{flex:1;min-width:0;width:auto;border:0;background:none;padding:0;box-shadow:none}
.talk-heading{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin:0}
.talk-heading h2{width:min(340px,100%);margin:4px auto 8px}.talk-heading h2 svg{display:block;width:100%;height:auto;max-height:82px}
.coin-dialog .talk-heading h2,.coin-dialog[data-talk-view=true] .spoken-check h2{color:#174274;background:none;box-shadow:none;text-shadow:none;filter:none;line-height:1.3}
.coin-dialog[data-talk-view=true] .talk-menu,.coin-dialog[data-talk-view=true] .spoken-check{gap:16px}
.coin-dialog[data-talk-view=true] .speech-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;margin:8px 0 20px}
.coin-dialog[data-talk-view=true] .speech-topic-grid .topic-tile-face{min-height:152px;padding:18px 12px;gap:10px;box-sizing:border-box}
.coin-dialog[data-talk-view=true] .speech-topic-tile strong{font-size:clamp(17px,3.6vw,22px);line-height:1.4;word-break:normal;overflow-wrap:normal}
.talk-access-note{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.coin-dialog[data-talk-view=true] .speech-topic-picture{height:64px}
.coin-dialog[data-talk-view=true] .speech-topic-picture :is(img,svg){height:64px;max-height:64px}
.coin-dialog[data-talk-view=true] :is(.talk-primary,.back-tile){position:relative;background:none;border:0;padding:0;box-shadow:none;min-height:52px;isolation:isolate}
.coin-dialog[data-talk-view=true] :is(.talk-action-face,.talk-return-face){display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;box-sizing:border-box;padding:13px 18px;border:3px solid white;border-bottom:6px solid #107748;border-radius:25px;background:linear-gradient(145deg,#39b47a,#15965b 65%);color:white;font-weight:850;line-height:1.4;box-shadow:inset 0 2px 1px #ffffff80,0 6px 12px -5px #24416d26,0 0 20px 2px #48b88c32;animation:sano-choice-float 6s ease-in-out infinite}
.coin-dialog[data-talk-view=true] .talk-return-face{border-bottom-color:#aa224e;background:linear-gradient(150deg,#f36884,#e13d65 55%,#cf2d58);box-shadow:inset 0 2px 1px #ffffff85,0 7px 12px -5px #77224433,0 0 18px 1px #ee52743d}
.coin-dialog[data-talk-view=true] .talk-back .talk-return-face{background:linear-gradient(145deg,#a4d5ff,#91caff);border-bottom-color:#4c9fea;color:#174274;box-shadow:inset 0 2px 1px #ffffff85,0 6px 12px -5px #24416d26,0 0 18px #72b5f338;font-size:17px}
.coin-dialog[data-talk-view=true] :is(.talk-primary,.context-return,.back-tile):active :is(.talk-action-face,.talk-return-face){animation-play-state:paused;scale:.98}
.coin-dialog[data-talk-view=true] .talk-primary:disabled .talk-action-face{animation:none}
.talk-mix .talk-action-face{flex-wrap:wrap}
.talk-mix small{flex-basis:100%;font-size:13px}
.coin-dialog[data-talk-view=true] .spoken-prompt-card{padding:18px;background:#eff7ff;border:2px solid #fff;border-radius:28px;box-shadow:none;gap:10px}.coin-dialog[data-talk-view=true] .spoken-prompt-card .talk-listen{width:auto;max-width:100%;min-width:130px;margin-top:2px}
.coin-dialog[data-talk-view=true] .spoken-hint{background:transparent;border:0;padding:0 10px;gap:2px}
.coin-dialog[data-talk-view=true] .spoken-hint strong{font-size:24px}
.coin-dialog[data-talk-view=true] .spoken-check .talk-listen{min-height:52px;padding:7px 14px;font-size:18px;box-sizing:border-box;box-shadow:inset 0 2px 1px #ffffff80,0 4px 12px #d8447612}
.coin-dialog[data-talk-view=true] .talk-listen>span:first-child,.coin-dialog[data-talk-view=true] .talk-listen svg{width:34px;height:34px}
.coin-dialog[data-talk-view=true] .talk-mic-icon{flex:0 0 35px;width:35px;height:35px}
.coin-dialog[data-talk-view=true] .talk-manual{width:100%;padding:10px 14px;min-height:48px;border:2px solid #c4dce9;border-radius:20px;background:#f0f8ff;color:#365c80;font-size:15px;font-weight:750;line-height:1.5;box-shadow:none}
.coin-dialog[data-talk-view=true] .talk-manual:disabled{opacity:.55;cursor:default}
.coin-dialog[data-talk-view=true] .talk-repeat{width:100%;color:#365c80;font-size:15px}
.coin-dialog[data-talk-view=true] .talk-repeat summary{min-height:44px;align-content:center;cursor:pointer;font-weight:750}
.coin-dialog[data-talk-view=true] .talk-repeat[open] summary{margin-bottom:10px}
.coin-dialog[data-talk-view=true] .speech-permission{padding:12px 16px;background:#fff7df;border:1px solid #f1dfae;border-radius:20px}
.coin-dialog[data-talk-view=true] .speech-permission p{margin:4px 0;font-size:13px}
.coin-dialog[data-talk-view=true] .speech-permission summary{min-height:44px;align-content:center}
.coin-dialog[data-talk-view=true] .talk-success{font-size:19px;line-height:1.45}
.coin-dialog[data-talk-view=true] .talk-privacy{padding:6px 12px;max-width:470px;box-sizing:border-box}
.coin-dialog[data-talk-view=true] :is(.talk-help,.talk-more-topics){width:100%;color:#365c80;text-align:center}
.coin-dialog[data-talk-view=true] :is(.talk-help,.talk-more-topics)>summary{cursor:pointer;min-height:48px;padding:12px 14px;box-sizing:border-box;font-size:16px;line-height:1.5;font-weight:750;border-radius:20px}
.coin-dialog[data-talk-view=true] .talk-more-topics>summary{background:#ffffff80;border:2px solid #fff;color:#365c80}
.coin-dialog[data-talk-view=true] :is(.talk-help,.talk-more-topics)[open]>summary{margin-bottom:12px}
.coin-dialog[data-talk-view=true] .talk-help p{font-size:13px;line-height:1.6;max-width:470px;margin:8px auto}
.coin-dialog[data-talk-view=true] .talk-instruction{color:#526787;font-size:15px;line-height:1.5;max-width:440px}
.coin-dialog[data-talk-view=true] .talk-menu-help{max-width:440px;margin-top:4px}
.coin-dialog[data-talk-view=true] .speech-topic-picture>.topic-scene{position:relative;width:76px;height:76px;display:block}
.coin-dialog[data-talk-view=true] .speech-topic-picture .topic-motion-part svg{width:100%;height:100%;max-height:none}
.coin-dialog[data-talk-view=true] .speech-topic-grid .topic-tile-halo{opacity:.48}
.coin-dialog[data-talk-view=true] .spoken-sentence{overflow-wrap:normal;word-break:normal;hyphens:none}
.coin-dialog[data-talk-view=true] .coin-speech-content{width:100%;max-width:540px;margin:0 auto}
.coin-backdrop[data-talk-view=true]::before,.coin-dialog[data-talk-view=true]::before{content:none}
body[data-page-hidden=true] .coin-dialog[data-talk-view=true] :is(.talk-action-face,.talk-return-face){animation-play-state:paused}

@media(min-width:610px){.coin-dialog[data-talk-view=true] .speech-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:380px){.coin-dialog[data-talk-view=true] .coin-dialog-top{gap:8px}.coin-dialog[data-talk-view=true] .talk-return-face{padding:11px 10px;font-size:16px}.talk-heading{gap:8px}.talk-heading .talk-heading-art{flex-basis:48px;width:48px;height:48px}.coin-dialog[data-talk-view=true] .speech-topic-grid{gap:22px 14px}.coin-dialog[data-talk-view=true] .speech-topic-grid .topic-tile-face{padding:15px 9px;min-height:142px}}
@media(max-height:540px) and (orientation:landscape){.coin-dialog[data-talk-view=true] .coin-dialog-top{position:relative}.coin-dialog[data-talk-view=true] .spoken-prompt-card{padding:12px}.coin-dialog[data-talk-view=true] .spoken-picture{width:78px;height:68px}}
body[data-motion=reduce] .coin-dialog[data-talk-view=true] :is(.talk-action-face,.talk-return-face),body[data-reduced-motion=true] .coin-dialog[data-talk-view=true] :is(.talk-action-face,.talk-return-face){animation:none}
@media(prefers-reduced-motion:reduce){.coin-dialog[data-talk-view=true] :is(.talk-action-face,.talk-return-face){animation:none}}
@media(forced-colors:active){.coin-backdrop[data-talk-view=true],.coin-dialog[data-talk-view=true] .coin-dialog-top{background:Canvas}.coin-dialog[data-talk-view=true] :is(.talk-action-face,.talk-return-face,.talk-manual){background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none}}

/* Talk is a full bright page; each picture owns its own close glow. */
.coin-backdrop[data-talk-view=true],.coin-backdrop[data-talk-view=true][data-talk-intro=true]{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:linear-gradient(155deg,#fff5fb 0%,#f5faff 48%,#f0fff8 100%);background-attachment:local;backdrop-filter:none;-webkit-backdrop-filter:none;filter:none;box-shadow:none;overscroll-behavior-y:auto}
.coin-backdrop[data-talk-view=true] .coin-dialog[data-talk-view=true]{padding:14px 12px 24px;background:transparent;border:0;box-shadow:none;filter:none;isolation:isolate}
.coin-backdrop[data-talk-view=true] :is(.talk-menu,.speech-topic-grid,.coin-speech-content,.talk-start){background:transparent;box-shadow:none;filter:none}
.coin-backdrop[data-talk-view=true] .speech-topic-grid{gap:28px 24px;padding:10px 2px;box-sizing:border-box}
.coin-backdrop[data-talk-view=true] .speech-topic-grid .speech-topic-tile{position:relative;isolation:isolate;overflow:visible;background:transparent;box-shadow:none;filter:none;border-radius:28px}
.coin-backdrop[data-talk-view=true] .speech-topic-grid .topic-tile-halo{position:absolute;inset:6px;border-radius:26px;background:transparent;filter:none;transform:none;opacity:.75;box-shadow:0 0 10px 4px color-mix(in srgb,var(--topic-edge,#62b9f5) 44%,transparent);animation:talk-tile-light 4s ease-in-out infinite;animation-delay:var(--tile-delay,0s)}
.coin-backdrop[data-talk-view=true] .speech-topic-grid .topic-tile-face{position:relative;z-index:1;border:3px solid #fff;border-bottom:6px solid color-mix(in srgb,var(--topic-edge,#62b9f5) 72%,white);border-radius:28px;box-shadow:inset 0 2px 1px #fff9,0 5px 8px -5px #24416d30;min-height:156px}
.coin-backdrop[data-talk-view=true] .spoken-prompt-card{background:linear-gradient(145deg,#fff,#edf8ff);border:3px solid #fff;box-shadow:0 4px 0 #c9dfef66;padding:20px 16px}
.coin-backdrop[data-talk-view=true] .spoken-picture{display:grid;place-items:center;width:120px;height:108px}
.coin-backdrop[data-talk-view=true] .spoken-picture :is(img,svg){max-width:120px;max-height:108px;object-fit:contain}
.coin-backdrop[data-talk-view=true] .talk-turn-indicator{display:flex;align-items:center;justify-content:center;gap:6px;min-height:50px;color:#187947}
.coin-backdrop[data-talk-view=true] .talk-turn-indicator svg{width:36px;height:36px;margin-right:4px}
.coin-backdrop[data-talk-view=true] .talk-turn-indicator>span{width:7px;height:7px;border-radius:50%;background:#b6cad9}
.coin-backdrop[data-talk-view=true] [data-speech-phase=listening] .talk-turn-indicator{padding:6px 18px;border-radius:999px;background:#e0f8e9;box-shadow:0 0 16px #73dba333}
.coin-backdrop[data-talk-view=true] [data-speech-phase=listening] .talk-turn-indicator>span{background:#269864;animation:talk-dot .9s ease-in-out infinite}
.coin-backdrop[data-talk-view=true] [data-speech-phase=listening] .talk-turn-indicator>span:nth-of-type(2){animation-delay:.15s}
.coin-backdrop[data-talk-view=true] [data-speech-phase=listening] .talk-turn-indicator>span:nth-of-type(3){animation-delay:.3s}
.coin-backdrop[data-talk-view=true] .talk-turn-status{max-width:440px;margin:0;text-align:center;font-size:17px;font-weight:700;line-height:1.5;color:#365c80}
.coin-backdrop[data-talk-view=true] .talk-stop{min-height:46px;padding:9px 22px;border:2px solid #fff;border-radius:20px;background:#e4f0fb;color:#365c80;box-shadow:0 3px 0 #cadce9;font-size:16px;font-weight:750}
.coin-backdrop[data-talk-view=true] .talk-stepper{margin:0}
.coin-backdrop[data-talk-view=true] .talk-start{max-width:480px;margin:24px auto}
.coin-backdrop[data-talk-view=true] .talk-start-note{max-width:380px;font-size:14px;line-height:1.6}
@keyframes talk-tile-light{0%,100%{opacity:.55}50%{opacity:.95}}
body[data-page-hidden=true] .coin-backdrop[data-talk-view=true] :is(.topic-tile-halo,.talk-turn-indicator>span){animation-play-state:paused}
body[data-motion=reduce] .coin-backdrop[data-talk-view=true] :is(.topic-tile-halo,.talk-turn-indicator>span),body[data-reduced-motion=true] .coin-backdrop[data-talk-view=true] :is(.topic-tile-halo,.talk-turn-indicator>span){animation:none}
@media(prefers-reduced-motion:reduce){.coin-backdrop[data-talk-view=true] :is(.topic-tile-halo,.talk-turn-indicator>span){animation:none}}
@media(max-width:380px){.coin-backdrop[data-talk-view=true] .coin-dialog[data-talk-view=true]{padding:12px 4px 20px}.coin-backdrop[data-talk-view=true] .speech-topic-grid{gap:24px 18px}}

/* Sano stylesheet: display-accessibility.css */
/* Keep Sano's deliberately light artwork and controls consistent in dark-mode
   browsers. Device brightness/volume are not observable browser capabilities. */
:root{color-scheme:only light;-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* System contrast requests strengthen edges and labels without hiding the
   familiar art, changing the activity, or relying on glow alone. */
@media(prefers-contrast:more){
 :is(.game-tile-face,.topic-entry-face,.topic-tile-face,.welcome-store-face,.sano-tip,.spoken-prompt-card,.coin-dialog,.step-prompt,.mountain-start-card){border-color:#365c80!important;box-shadow:none!important;text-shadow:none!important}
 :is(.topic-tile-label,.topic-entry-face strong,.web-entry-tile strong,.web-entry-tile small,.sano-tip,.spoken-status,.coin-dialog h2,.onboarding-feedback-note,.welcome-sound-note){color:#17334d!important;text-shadow:none!important}
 .corner-tools>:is(.grownup-corner,.coin-corner,.guidance-switch,.screen-text-choice){border-color:#365c80;box-shadow:none}
 :is(button,a,input,select,summary):focus-visible{outline:3px solid #17334d!important;outline-offset:4px}
 :is(button,[role=button])[aria-pressed=true]{outline:3px solid #176641;outline-offset:2px}
 .answer-wrong{outline:3px solid #a61b36;outline-offset:2px}
 .answer-right{outline:3px solid #176641;outline-offset:2px}
}

/* Windows/high-contrast browsers own these colours. Shadows and gradients are
   decoration: borders, text and keyboard focus must survive their removal. */
@media(forced-colors:active){
 :root{color-scheme:light dark}
 body,#app,.coin-dialog,.step-prompt,.sano-tip,.spoken-prompt-card,.mountain-start-card{background:Canvas!important;color:CanvasText!important;box-shadow:none!important;text-shadow:none!important}
 :is(button,.game-tile-face,.topic-entry-face,.topic-tile-face,.welcome-store-face){forced-color-adjust:auto;background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important;text-shadow:none!important}
 :is(.spoken-status,.coin-dialog h2,.welcome-sound-note){color:CanvasText!important}
 :is(.topic-tile-label,.topic-entry-face strong,.web-entry-tile strong,.web-entry-tile small){color:ButtonText!important}
 :is(button,a,input,select,summary):focus-visible,:is(button,[role=button])[aria-pressed=true]{outline:3px solid Highlight!important;outline-offset:3px}
 :is(button,[role=button])[aria-disabled=true],button:disabled{color:GrayText!important;border-color:GrayText!important;opacity:1!important}
 :is(button,[role=button]):is(:disabled,[aria-disabled=true]) :is(.game-tile-face,.topic-entry-face,.topic-tile-face,.welcome-store-face,.topic-tile-label,strong,small){color:GrayText!important;border-color:GrayText!important;opacity:1!important}
 :is(.answer-wrong,.answer-right){outline:3px solid Highlight!important;outline-offset:3px}
}

/* Sano stylesheet: october-design-refresh.css */
/* Sano's existing pastel palette, shared across the refreshed web surfaces. */
:root{--sano-spring:cubic-bezier(.2,.8,.25,1.15);--sano-canvas:radial-gradient(ellipse at 1% 7%,#ffe3f0,transparent 48%),radial-gradient(ellipse at 100% 15%,#d5efff,transparent 52%),#f5faff}
/* Paint the whole document, including mobile safe areas and the space exposed
   as Safari/Chrome toolbars retract. Content can still grow and scroll. */
html{min-height:100%;background:#f5faff;color-scheme:only light}
body,body[data-learner=welcome]{margin:0;background:var(--sano-canvas);min-height:100vh;min-height:100svh;min-height:100dvh}
#app{background:var(--sano-canvas);min-height:100vh;min-height:100svh}
#app>.clean-welcome.art-welcome{min-height:calc(100svh - 68px - env(safe-area-inset-top));padding-top:28px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
#app>.foundations-shell{min-height:calc(100svh - 68px - env(safe-area-inset-top))}
.art-welcome .welcome-site-information,.art-welcome .welcome-site-information a{color:#111;font-weight:800}
.welcome-logo-dot{fill:#f02b42}
#app .simple-shell,#app .simple-content,#app .foundations-shell{background:transparent!important;box-shadow:none;border-inline:0}
/* A single full-width canvas removes the edge of the old narrow white panel. */
.topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation){position:relative;padding-bottom:26px;margin-bottom:20px}
.topic-landing .anthem-invitation{position:relative;padding-top:30px;margin-top:30px}
.topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation)::after,.topic-landing .anthem-invitation::before{content:"";position:absolute;left:5%;width:90%;height:4px;border-radius:9px;background:linear-gradient(90deg,#d093d800,#bb70d5 20%,#c270bc 50%,#719ddb 80%,#719ddb00);box-shadow:0 2px 8px #b57cce35;pointer-events:none}
.topic-landing :is(.music-invitation,.knowledge-invitation,.nepal-invitation)::after{bottom:0}
.topic-landing .anthem-invitation::before{top:0}
.topic-landing .music-invitation+.anthem-invitation{padding-top:7px;margin-top:0}
.topic-landing .music-invitation+.anthem-invitation::before{content:none}
.topic-landing>.practice-invitation:has(.topic-practice-tile){border-top:0;padding-top:8px;margin-top:8px}
.topic-tile-halo{opacity:.76}
:is(.game-tile-face,.topic-tile-face,.topic-entry-face){backface-visibility:hidden}
:is(.topic-tile,.web-entry-tile,.scribble-choice,.maths-operation){touch-action:manipulation}
:is(.topic-tile,.web-entry-tile,.scribble-choice,.maths-operation):focus-visible{outline:4px solid #2368c7;outline-offset:7px;border-radius:30px}

/* Who's playing / school: centred art, stronger colour, one corner marker. */
.web-entry-choice{padding-top:clamp(22px,5vh,54px);padding-bottom:40px}
.web-entry-options{gap:28px}
.web-entry-tile{position:relative;isolation:isolate}
.web-entry-tile .game-tile-face{position:relative;z-index:1;justify-content:center;min-height:310px;border-bottom:6px solid var(--entry-edge);box-shadow:inset 0 3px 2px #ffffffb3,0 5px 0 var(--entry-edge),0 12px 25px #35578118;animation:sano-refresh-float 6s ease-in-out infinite;animation-delay:var(--entry-delay,0s)}
.web-entry-tile:nth-child(even){--entry-delay:-2s}
.web-entry-personal{--entry-top:#e3f4ff;--entry-bottom:#a8d5ff;--entry-edge:#68a6e0}
.web-entry-personal .game-tile-face{padding-top:36px;padding-bottom:14px}
.web-entry-personal .web-entry-symbol{margin-top:15px;margin-bottom:4px}
.web-entry-school{--entry-top:#d5ffdf;--entry-bottom:#83dfaf;--entry-edge:#48b787}
.web-entry-try{--entry-top:#d9fff5;--entry-bottom:#69e4c9;--entry-edge:#23ab99}
.web-entry-pay{--entry-top:#fffbe5ed;--entry-bottom:#ffd77edb;--entry-edge:#d69b38}
.web-entry-halo{position:absolute;z-index:0;inset:-21px;border-radius:48px;background:radial-gradient(ellipse closest-side,var(--entry-bottom),transparent 100%);opacity:.8;filter:blur(10px);pointer-events:none}
.web-entry-corner{position:absolute;right:13px;top:12px;width:40px;height:40px;display:block;filter:drop-shadow(0 2px 4px #b5903730)}
.web-entry-pay .game-tile-face{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.web-entry-school-choice .web-entry-tile .game-tile-face{min-height:350px;padding-top:28px;padding-bottom:25px;border-radius:36px;box-shadow:inset 0 3px 2px #ffffffe6,inset 0 -5px 15px #ffffff24,0 6px 0 var(--entry-edge),0 16px 26px #3557811c,0 0 28px 4px color-mix(in srgb,var(--entry-bottom) 52%,transparent)}
.web-entry-school-choice .web-entry-halo{inset:-28px;opacity:.95;filter:blur(14px)}
.web-entry-school-choice .web-entry-symbol{position:relative;width:190px;margin-bottom:7px;filter:drop-shadow(0 7px 5px #3c658224);opacity:1}
.web-entry-school-choice .web-entry-symbol::before{content:"";position:absolute;z-index:-1;inset:9% -6%;border-radius:50%;background:radial-gradient(ellipse,#ffffffd9,#ffffff20 58%,transparent 72%)}
.web-entry-school-choice .web-entry-art{filter:saturate(1.18) contrast(1.03)}
.web-entry-school-choice strong{min-width:185px;padding:8px 18px;border-radius:22px;border:2px solid #ffffffcc;box-shadow:inset 0 2px 1px #ffffff80,0 4px 0 var(--entry-edge),0 7px 13px #31557820;box-sizing:border-box;font-size:26px;line-height:1.35}
.web-entry-try strong{color:#fff;background:linear-gradient(155deg,#159e8b,#087c83);text-shadow:0 1px 1px #175b7066}
.web-entry-pay strong{color:#654008;background:linear-gradient(155deg,#ffedab,#f6bd46);text-shadow:0 1px 0 #fff4ca}
.web-entry-school-choice small{margin-top:9px;padding:3px 13px;border:1px solid #ffffffa6;border-radius:999px;background:#ffffff8c;font-size:16px;font-weight:800;color:#244d65}
.web-entry-pay .web-entry-corner{width:46px;height:46px;right:14px;top:13px;filter:drop-shadow(0 3px 4px #b4772b40)}
.web-entry-pay.answer-wrong .game-tile-face{border-color:#f04455;background:#ffe1e1!important;box-shadow:0 0 22px 7px #f02e3e66!important;animation:sano-licence-jiggle .34s ease-in-out!important}
.web-entry-pay.answer-wrong .web-entry-halo{background:radial-gradient(ellipse closest-side,#f0445577,transparent 100%)}
@keyframes sano-licence-jiggle{0%,100%{transform:translateX(0) rotate(0)}20%{transform:translateX(-5px) rotate(-1.4deg)}40%{transform:translateX(5px) rotate(1.4deg)}60%{transform:translateX(-3px) rotate(-.7deg)}80%{transform:translateX(2px) rotate(.5deg)}}
.web-entry-school-choice .web-entry-note{min-height:3em;max-width:520px;margin:18px auto 8px;line-height:1.5}
@media(hover:hover){.web-entry-school-choice .web-entry-tile:hover .game-tile-face{box-shadow:inset 0 3px 2px #ffffffe6,0 6px 0 var(--entry-edge),0 18px 28px #35578124,0 0 32px 7px color-mix(in srgb,var(--entry-bottom) 65%,transparent)}}
@media(max-width:600px){.web-entry-school-choice .web-entry-tile .game-tile-face{min-height:270px;padding:26px 10px 22px}.web-entry-school-choice .web-entry-symbol{width:min(100%,145px)}.web-entry-school-choice strong{min-width:0;width:100%;font-size:22px;padding:8px 6px}.web-entry-school-choice small{font-size:14px;padding:3px 9px}.web-entry-pay .web-entry-corner{width:35px;height:35px;right:8px;top:8px}}
.web-entry-pay :is(strong,small),.web-entry-corner{filter:none;opacity:1}
.web-entry-tile:active .game-tile-face{animation-play-state:paused;translate:0 4px;scale:.975}
.web-entry-tile small{color:#30576e;max-width:240px}

/* Scribble: three visible starting choices, then one clear drawing task. */
.topic-picker:has(#scribble-root)>.brand-heading{width:min(330px,78%);margin:18px auto 8px}
.topic-picker:has(#scribble-root)>.difficulty-note{display:none}
.topic-picker:has(#scribble-root) .scribble-start{margin-top:8px}
.scribble-start{width:min(850px,100%);margin:20px auto 30px;text-align:center;color:#254c71}
.scribble-start h2{font-size:clamp(28px,5vw,38px);line-height:1.35;color:#1267c5}
.scribble-start>p{font-size:19px;margin:12px auto 25px}
.scribble-start-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:8px}
.scribble-choice{position:relative;min-width:0;padding:0;border:0;background:none;color:#274c6f}
.scribble-choice .game-tile-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:245px;padding:24px 14px;border:3px solid #fff;border-bottom:7px solid var(--choice-edge);border-radius:32px;background:linear-gradient(145deg,#ffffff9c,var(--choice-fill));box-shadow:0 8px 18px #35578115,0 0 28px var(--choice-glow);animation:sano-refresh-float 6s ease-in-out infinite}
.scribble-choice-pink{--choice-fill:#ffbbd6;--choice-edge:#db86b0;--choice-glow:#ef9dc236}
.scribble-choice-blue{--choice-fill:#acd9ff;--choice-edge:#6daee2;--choice-glow:#86bdf43d}
.scribble-choice-mint{--choice-fill:#a6ebca;--choice-edge:#6cbd9b;--choice-glow:#88d8b540}
.scribble-choice:nth-child(2) .game-tile-face{animation-delay:-2s}.scribble-choice:nth-child(3) .game-tile-face{animation-delay:-4s}
.scribble-choice-picture{width:120px;height:110px;display:grid;place-items:center}
.scribble-choice strong{font-size:23px;line-height:1.3}.scribble-choice small{font-size:15px;line-height:1.45}
.scribble-choice-letter{display:grid;place-items:center;font:850 60px/1.4 var(--joy-font);color:#397fb5}
.scribble-choice:active .game-tile-face{animation-play-state:paused;scale:.97;translate:0 3px}
.scribble-page{width:min(700px,100%);gap:12px;margin-inline:auto}
.scribble-page h2{color:#176cc5;font-size:clamp(27px,5vw,36px);line-height:1.4}
.scribble-change-topic{align-self:flex-start;min-height:44px;padding:9px 16px;background:#e3efff;border:2px solid #fff;border-radius:19px;color:#2b5b89;font-weight:800;margin-bottom:8px}
.scribble-example{background:linear-gradient(135deg,#e4f4ff,#f8eaff);border:3px solid white;border-radius:27px;padding:12px 20px}
.scribble-example figcaption{font-size:17px;color:#345574}
.scribble-example svg{max-height:108px}.scribble-example path{stroke:#438fd6;stroke-width:9}
.scribble-paper{border:3px solid #b7d9f3!important;border-radius:28px!important;background:#fff!important;box-shadow:0 7px 0 #dbe9f5,0 12px 25px #aacbe32e!important;aspect-ratio:2/1;min-height:220px;overflow:hidden}
.scribble-tools{gap:13px}.scribble-tools button{min-height:60px}
.scribble-practice-picker{margin-top:12px;padding:8px 12px;background:#edf5fc;border-color:#d4e6f5}
.scribble-practice-picker summary{font-size:16px;color:#416987}
.scribble-practice-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.scribble-practice-options button{display:grid;align-content:center;gap:8px;min-height:115px;font-size:16px}
.scribble-shape-preview{display:grid;place-items:center;height:55px}.scribble-shape-preview svg{width:100%;height:55px}.scribble-shape-preview path{fill:none;stroke:#377fbc;stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
.scribble-shape-preview .scribble-choice-letter{font-size:30px}
.scribble-resume{margin:24px auto;background:#d6f3e5;color:#28684e;border:2px solid white;font-weight:800}
.scribble-page>small{color:#476983;font-size:12px;line-height:1.5}

/* Required opening prompts completely de-emphasise the inactive page. */
.coin-backdrop:not([data-talk-view=true]){background:#dae9f3d9;backdrop-filter:blur(24px) saturate(.5);-webkit-backdrop-filter:blur(24px) saturate(.5)}
.coin-backdrop:not([data-talk-view=true])>.coin-dialog{background:linear-gradient(145deg,#fff,#eff7ff);border:3px solid white;border-radius:34px;box-shadow:0 18px 60px #47688425;color:#224c70}
.coin-backdrop[data-talk-intro=true]{background:#e2eef6ed;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}
.talk-start{text-align:center;padding:8px 8px 14px;max-width:540px;margin:auto}
.talk-start-art{display:block;width:88px;height:88px;margin:0 auto 12px}
.talk-start h2{color:#1267c5!important;font-size:clamp(26px,5vw,34px)!important;line-height:1.3}
.talk-start>p{margin:10px auto 18px;font-size:18px;color:#3d617e}
.talk-start-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;gap:13px;margin:24px 0}
.talk-start-steps li{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:12px 7px;background:#e7f3fe;border:2px solid white;border-radius:23px;color:#30516e}
.talk-start-steps li:nth-child(2){background:#ffebf4}.talk-start-steps li:nth-child(3){background:#e0f8eb}
.talk-start-steps span{display:block;width:64px;height:64px}.talk-start-steps strong{font-size:16px;line-height:1.45}
.talk-start .talk-primary{background:none;border:0;padding:0;width:min(320px,100%)}
.talk-start .talk-action-face{display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px;padding:14px 20px;border:3px solid #fff;border-bottom:6px solid #219b72;border-radius:25px;background:linear-gradient(145deg,#8ce9c2,#50c99c);box-shadow:0 0 22px #6bd4aa44;color:#16523e;font-size:22px;font-weight:850}
.talk-start .talk-start-note{max-width:380px;font-size:14px;margin:18px auto 0;line-height:1.5}
.talk-stepper{display:flex;justify-content:center;gap:18px;list-style:none;margin:0;padding:4px 0 15px;color:#5d7084;font-size:14px;font-weight:800}
.talk-stepper li{display:flex;align-items:center;gap:7px}.talk-stepper li>span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#e4edf5}
.talk-stepper [data-step-state=current]{color:#185992}.talk-stepper [data-step-state=current]>span{background:#a9d6ff;border:2px solid white;box-shadow:0 0 12px #80baff66}
.talk-stepper [data-step-state=done]>span{background:#b8eacf;color:#246846}
.talk-stepper [data-step-state=next]{opacity:.6}

/* Maths uses the same tactile faces. Neutral numbers are crisp on light tiles. */
.topic-picker:has([data-maths-root])>.brand-heading{width:min(240px,65%);margin:18px auto 8px}
.topic-picker:has([data-maths-root])>.difficulty-note{display:none}
.topic-picker:has([data-maths-root])>.topic-progress{margin-block:10px}
@media(min-width:900px){.maths-operations{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.maths-operation strong{font-size:16px}.maths-operation-face{padding-inline:6px}}
.maths-operation{position:relative;isolation:isolate;background:none;border:0;padding:0;box-shadow:none;min-height:0}
.maths-operation-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:164px;padding:18px 12px;background:linear-gradient(145deg,#ffffff80,var(--math-fill));border:3px solid #fff;border-bottom:7px solid var(--math-edge);border-radius:30px;box-shadow:inset 0 2px 1px #ffffffaa,0 7px 18px #326f9918;animation:sano-refresh-float 6.4s ease-in-out infinite}
.maths-operation:nth-child(even) .maths-operation-face{animation-delay:-2.6s}
.maths-tile-halo{position:absolute;z-index:-1;inset:-18px;background:radial-gradient(ellipse closest-side,var(--math-fill),transparent);opacity:.85;filter:blur(10px);pointer-events:none}
.maths-operation:active{transform:none;box-shadow:none}.maths-operation:active .maths-operation-face{animation-play-state:paused;scale:.975;translate:0 3px}
.maths-equation{color:#ab345b}.maths-answer-grid .maths-button{background:linear-gradient(145deg,#fff,#edf6ff);color:#a63257;border-bottom-color:#a1c9ed;box-shadow:0 5px 12px #719fc421;font-weight:850}
.maths-answer-grid .maths-button.maths-correct{background:#b9f0d5;border-bottom-color:#5db489;color:#195838}
.maths-button{transition:transform .2s var(--sano-spring),background .2s,box-shadow .2s}
.maths-controls .maths-button{min-height:57px;border-radius:23px;padding:11px 22px;font-size:18px;font-weight:800;box-shadow:0 5px 15px #6995b323}
.maths-help,.maths-hear{background:linear-gradient(145deg,#fff6d5,#ffe3a0);color:#775219;border-bottom-color:#d4b263}
.maths-back{background:linear-gradient(145deg,#e6f3ff,#bdddf9);color:#305b84;border-bottom-color:#81b2de;border-radius:23px;font-weight:800}
.topic-progress[data-star-arrival=true] .topic-progress-track i{transition:width .38s ease-out}
.topic-progress-track i{transition:width .38s ease-out}

@keyframes sano-refresh-float{0%,100%{transform:translateY(0) rotate(-.45deg)}50%{transform:translateY(-4px) rotate(.45deg)}}
@media(max-width:600px){.web-entry-options{gap:18px}.web-entry-tile .game-tile-face{min-height:258px;padding-inline:10px}.web-entry-personal .game-tile-face{padding-top:34px;padding-bottom:12px}.web-entry-corner{width:32px;height:34px;right:9px;top:9px}.web-entry-tile strong{font-size:24px}.web-entry-tile small{font-size:14px}.web-entry-symbol,.web-entry-try .web-entry-symbol{width:min(100%,137px)}.scribble-start-choices{grid-template-columns:1fr;max-width:420px;margin:auto;gap:18px}.scribble-choice .game-tile-face{display:grid;grid-template-columns:86px 1fr;column-gap:16px;row-gap:3px;min-height:130px;text-align:left;padding:14px 18px}.scribble-choice-picture{grid-row:span 2;width:86px;height:86px}.scribble-choice strong{align-self:end;font-size:23px}.scribble-choice small{align-self:start}.scribble-choice-letter{font-size:48px}.scribble-tools{gap:9px}.talk-start-steps{gap:7px}.talk-start-steps span{width:52px;height:52px}.talk-start-steps strong{font-size:14px}.talk-stepper{gap:10px;font-size:13px}.maths-operation-face{min-height:138px;padding:14px 8px}.maths-operation-symbol{margin:0 0 8px}.maths-operation strong{font-size:20px}}
@media(max-width:340px){.web-entry-options{grid-template-columns:1fr}.talk-start-steps{grid-template-columns:1fr}.talk-start-steps li{flex-direction:row;text-align:left;padding:8px 16px}.scribble-paper{min-height:190px}}
@media(prefers-reduced-motion:reduce){:is(.web-entry-tile,.scribble-choice,.maths-operation) :is(.game-tile-face,.maths-operation-face),.web-entry-pay.answer-wrong .game-tile-face{animation:none!important;transition:none!important}}
body[data-motion=reduce] :is(.web-entry-tile,.scribble-choice,.maths-operation) :is(.game-tile-face,.maths-operation-face){animation:none!important;transition:none!important}
body[data-motion=reduce] .web-entry-pay.answer-wrong .game-tile-face{animation:none!important}
body[data-page-hidden=true] :is(.web-entry-tile,.scribble-choice,.maths-operation) :is(.game-tile-face,.maths-operation-face){animation-play-state:paused!important}
@media(forced-colors:active){.web-entry-halo,.maths-tile-halo{display:none}.web-entry-tile .game-tile-face,.scribble-choice .game-tile-face,.maths-operation-face,.talk-start .talk-action-face{background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none}.coin-backdrop:not([data-talk-view=true])>.coin-dialog{background:Canvas;color:CanvasText}.talk-stepper li{color:CanvasText;opacity:1}}

/* Clear star spacing in onboarding and the grown-up challenge chooser. */
.challenge-face>.challenge-stars{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:0;letter-spacing:0;line-height:1;white-space:nowrap;flex-shrink:0}
.challenge-stars>span{display:block;flex:none;width:1em}
.challenge-face>.challenge-copy{gap:9px;min-width:0}
.challenge-copy>span{line-height:1.5}
.parent-challenge .challenge-face{display:grid;grid-template-columns:88px minmax(0,1fr) 22px;gap:18px}
.parent-challenge .challenge-stars{font-size:23px}
.parent-challenge .challenge-copy{align-items:flex-start;text-align:left}
@media(max-width:620px){.challenge-face{display:grid;grid-template-columns:88px minmax(0,1fr) 22px;gap:18px;padding:18px 15px}.challenge-face>.challenge-stars{font-size:23px}.challenge-copy strong{font-size:26px}.challenge-copy>span{font-size:16px}}
@media(max-width:380px){.challenge-face,.parent-challenge .challenge-face{grid-template-columns:64px minmax(0,1fr);gap:14px;padding:16px 12px}.challenge-face>.challenge-stars{font-size:18px;gap:5px}.challenge-arrow{display:none}.challenge-copy strong{font-size:24px}}
.progress-storage-card{margin:24px 0;padding:22px 24px;border:3px solid #fff;border-bottom:6px solid #99bde2;border-radius:26px;background:linear-gradient(145deg,#eaf7ff,#eae6ff);box-shadow:0 8px 20px #6c89b41c;color:#29466e}.progress-storage-card h3{font-size:23px;margin:0 0 12px;color:#0867ed;line-height:1.4}.progress-storage-card p{font-size:15px;line-height:1.7;margin:9px 0}.progress-storage-card .storage-lead{font-weight:850}.progress-storage-card details{margin:15px 0 0;border:0;padding:0}.progress-storage-card summary{min-height:44px;cursor:pointer;font-weight:800;line-height:1.5}.progress-storage-card .storage-measure{padding-top:12px;border-top:2px solid #fff;margin-top:15px}

/* Clear activity pictures and one consistent coin in each upper-right corner. */
.coin-extras{width:100%;box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
.coin-extras>h3,.coin-extras>.speech-footnote{grid-column:1/-1}
.coin-extra{position:relative;min-width:0;align-content:start;justify-items:center;padding:24px 12px 16px;gap:10px;background:linear-gradient(145deg,#ffffff85,transparent 75%),var(--topic-fill);border-color:#fff;border-bottom-color:var(--topic-edge);box-shadow:inset 0 2px 1px #ffffffb3,0 5px 0 color-mix(in srgb,var(--topic-edge) 30%,transparent),0 0 26px color-mix(in srgb,var(--topic-edge) 32%,transparent)}
.coin-extra .coin-extra-corner{position:absolute;top:9px;right:9px;width:31px;height:31px;pointer-events:none;filter:drop-shadow(0 2px 3px #b5802933)}
.coin-extra-corner svg{width:100%;height:100%}
.coin-extra-art{width:86px;height:82px;display:grid;place-items:center;filter:drop-shadow(0 5px 4px #305d6b26);margin:5px 0 1px}
.coin-extra-art img,.coin-extra-art svg{width:100%;height:100%;object-fit:contain}
.coin-extra>strong{font-size:20px;line-height:1.3;min-height:2.6em;display:grid;place-items:center}
.coin-extra-status{font-size:14px;font-weight:800;line-height:1.4;min-height:2em}
.coin-extra .back-tile{width:100%;min-height:52px;margin:2px 0 0;padding:10px 8px;font-size:17px;border-radius:20px}
.coin-collection .multiplayer-coming .multiplayer-preview{filter:none;opacity:1;height:100px;width:100%;display:grid;place-items:center}
.multiplayer-friends{display:flex;align-items:center;justify-content:center;gap:5px;width:100%}
.multiplayer-friends>span{display:grid;place-items:center;width:61px;height:91px;overflow:hidden;border:3px solid white;border-bottom:5px solid #75a9d1;border-radius:19px;background:linear-gradient(#e5f6ff,#abd9fa);box-shadow:0 4px 9px #34628220;rotate:-6deg}
.multiplayer-friends>span:last-child{background:linear-gradient(#ffedf6,#f7b9dc);border-bottom-color:#cf88b3;rotate:6deg}
.multiplayer-friends img{width:86px;height:86px;object-fit:contain;max-width:none}
.multiplayer-friends i{font-style:normal;font-size:24px;color:#237967;font-weight:900}
.coin-collection .multiplayer-coming .game-tile-face{border-color:#fff;border-bottom-color:#43b88b;background:linear-gradient(145deg,#e3fff1,#a0e8c8);box-shadow:inset 0 2px 1px #fff,0 5px 0 #48b88c40,0 0 28px #65dbad66;animation:sano-refresh-float 6s ease-in-out infinite}
.coin-language .coin-coming-paid{width:31px;height:31px;top:9px;right:9px}.coin-language .coin-coming-paid svg{width:100%;height:100%}
@media(max-width:380px){.coin-extras{gap:18px 12px}.coin-extra{padding-inline:9px}.coin-extra>strong{font-size:18px}.coin-extra .back-tile{font-size:16px}.coin-extra-art{width:76px;height:74px}}

/* The shared Listen control is identical across courses and guidance voices. */
.trace-listen,body #app .listen-button,.coin-dialog .trace-listen,.language-notice .trace-listen{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:62px;padding:12px 23px;border:3px solid #fff;border-bottom:6px solid #a38acf;border-radius:25px;background:linear-gradient(150deg,#faf3ff,#e6d6ff 58%,#d2bdf5)!important;color:#483680!important;box-shadow:inset 0 2px 1px #fff,0 4px 0 #af96d83b,0 8px 15px #7456aa1c,0 0 25px #ba96e947;font:900 19px/1.3 var(--joy-font);cursor:pointer;touch-action:manipulation;transition:translate .16s,box-shadow .16s}
body #app .listen-button{width:64px;height:64px;min-width:64px;padding:11px;border-radius:24px}
.trace-listen svg,body #app .listen-button svg{width:35px;height:35px;flex:none;filter:drop-shadow(0 2px 1px #55398a20);pointer-events:none}
.trace-listen:active:not(:disabled),body #app .listen-button:active:not(:disabled){translate:0 3px;box-shadow:inset 0 2px 1px #fff,0 1px 0 #af96d83b,0 0 30px #a98ad966}
.trace-listen:focus-visible,body #app .listen-button:focus-visible{outline:4px solid #6c48ae;outline-offset:5px}
.trace-listen:disabled,body #app .listen-button:disabled{opacity:.5;cursor:default}
@media(hover:hover){.trace-listen:hover:not(:disabled),body #app .listen-button:hover:not(:disabled){box-shadow:inset 0 2px 1px #fff,0 4px 0 #af96d83b,0 9px 18px #7456aa26,0 0 30px #a98ad966}}
@media(prefers-reduced-motion:reduce){.coin-collection .multiplayer-coming .game-tile-face{animation:none}.trace-listen,body #app .listen-button{transition:none}}
body[data-motion=reduce] .coin-collection .multiplayer-coming .game-tile-face{animation:none}
body[data-motion=reduce] :is(.trace-listen,.listen-button){transition:none}
body[data-page-hidden=true] .coin-collection .multiplayer-coming .game-tile-face{animation-play-state:paused}

/* The viewport shell owns edge scrolling; these rules style the controls. */
html{scroll-padding-top:calc(18px + env(safe-area-inset-top));background:#f5faff}
body{overflow-x:clip}
#app>.corner-tools{padding-top:calc(12px + env(safe-area-inset-top));min-height:calc(68px + env(safe-area-inset-top));z-index:50}
#app>.corner-tools:has(+.clean-welcome.art-welcome){backdrop-filter:none;-webkit-backdrop-filter:none}
#app .simple-header{display:grid;grid-template-columns:minmax(70px,1fr) auto minmax(70px,1fr);align-items:center;gap:8px;min-height:70px;height:auto;padding:10px 0 14px}
#app .simple-header>.brand{justify-self:center;min-width:0}
#app .simple-header>.shared-topic-back{justify-self:start;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 14px;border:2px solid #fff;border-bottom:4px solid #c43c6a;border-radius:19px;background:linear-gradient(145deg,#ff91b5,#e6487f);color:#fff;font:850 15px/1.2 var(--joy-font);box-shadow:0 4px 0 #c23c6430,0 0 18px #ed85b447;touch-action:manipulation}
.shared-topic-back:focus-visible{outline:3px solid #0867ed;outline-offset:4px}
#app .simple-header .sano-wordmark{width:clamp(96px,22vw,136px)}
/* Anchor animated artwork inside its own 38px icon, including a scrolled rail. */
#app .topic-rail-item>span{position:relative}
#app .topic-rail-item .topic-scene{display:block;width:100%;height:100%;max-width:none}
#app .topic-rail-item .topic-scene svg{width:100%;height:100%}
/* Crisp, companion-matched human body art with one stable 48px target. */
#app .body-explorer{width:min(570px,100%);gap:10px;margin:8px auto 24px;padding:18px 16px 20px;border:3px solid #fff;border-radius:30px;background:linear-gradient(155deg,#ffffffa8,#eaf4ff8c);box-shadow:0 8px 24px #6989ac14;box-sizing:border-box}
#app .body-instruction{font:850 19px/1.5 var(--joy-font);color:#1766b4;margin:0;text-align:center}
#app .body-discovery-count{font:800 14px/1.4 var(--joy-font);color:#49769a;padding:4px 13px;background:#dfedff;border:2px solid #fff;border-radius:999px}
#app .body-map{width:min(286px,100%);aspect-ratio:2/3;flex-shrink:0;position:relative;isolation:isolate}
#app .body-map>[data-body-art]{display:block;width:100%;height:100%;object-fit:contain;image-rendering:auto;pointer-events:none;user-select:none;-webkit-user-select:none}
#app .body-map>.body-part{position:absolute;width:48px;min-width:48px;max-width:48px;height:48px;min-height:48px;margin:0;padding:0;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:50%;background:#35c5b436;box-shadow:0 0 0 3px #079f89,0 0 19px 7px #24cbb870;z-index:3;touch-action:manipulation;animation:none}
#app .body-map>.body-part:active{transform:translate(-50%,-50%)}
#app .body-map>.body-part>span{position:absolute;inset:10px;border-radius:50%;border:2px solid #fff;background:#2ccdaa55;pointer-events:none}
#app .body-map>.body-part.body-seen{background:#1cb58385;box-shadow:0 0 0 3px #058f68,0 0 24px 8px #43d99c7d}
#app .body-part:focus-visible{outline:4px solid #174cff;outline-offset:6px}
#app .body-part-label{min-height:54px;text-align:center;color:#125885;font:850 25px/1.4 var(--joy-font)}
#app .body-part-label small{display:block;font-size:16px;color:#56728a}
#app .body-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;width:100%}
#app .body-actions>button{width:auto;max-width:100%;min-height:48px;padding:10px 20px;border:3px solid #fff;border-bottom:5px solid #97aed8;border-radius:21px;background:linear-gradient(145deg,#eaf3ff,#c9dfff);color:#295b91;font:850 17px/1.3 var(--joy-font);box-shadow:0 4px 10px #769dc121}
#app .body-actions>.body-again{background:linear-gradient(145deg,#d9ffed,#a0ecc9);border-bottom-color:#56b890;color:#175f49}
#app [data-body-again][hidden],#app .body-part[hidden]{display:none!important}
#app .topic-landing-tile[data-id=body] [data-body-art]{height:100%;max-height:156px;width:auto;max-width:100%;object-fit:contain}
/* Hard mode accepts ink across the page; its checking stencil stays hidden. */
[data-trace-difficulty=advanced] .trace-hit-surface rect{pointer-events:all;touch-action:none}
[data-trace-difficulty=advanced] .trace-paper{touch-action:none;background:#fff;box-shadow:inset 0 0 0 2px #e5edfb,0 7px 20px #698cb71c}
.trace-memory-model{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 auto 12px;color:#1b568e}
.trace-memory-model>span{font:800 42px/1.2 var(--joy-font)}
.trace-memory-model>small{font:800 15px/1.4 var(--joy-font)}
.trace-controls{flex-wrap:wrap}
.trace-controls .trace-check{min-height:58px;padding:12px 20px;border:3px solid white;border-bottom:5px solid #188c68;border-radius:23px;background:linear-gradient(145deg,#65dfb0,#20b486);color:#fff;font-weight:900;box-shadow:0 0 20px #53d7a659}
@media(max-width:390px){#app .simple-header>.shared-topic-back{padding:10px;font-size:14px}#app .body-explorer{padding:14px 10px}#app .body-map{width:min(250px,100%)}}
@media(prefers-reduced-motion:reduce){#app .body-part,#app .body-part>span{transition:none;animation:none}}

/* Keep the activity itself within reach on narrow screens. */
.web-entry-choice .difficulty-back .back-tile{width:min(180px,100%);min-height:48px;padding:8px 16px;font-size:18px}
#app>.corner-tools:has(+.clean-welcome.art-welcome){background:transparent}
#app>.clean-welcome.art-welcome{background:transparent}
#app:not(.topic-landing-view) .foundations-shell> :where(.sano-page-scroll) >.learning-course-control{flex-direction:row;flex-wrap:nowrap;gap:10px;margin:0 auto 12px;padding:0;font-size:14px}
#app:not(.topic-landing-view) .learning-course-control .pill{min-height:44px;width:auto;flex:0 1 auto}
#app:not(.topic-landing-view) .learning-course-control .pill>.game-tile-face{min-height:44px;padding:6px 12px;font-size:14px;box-sizing:border-box}
.topic-picker:has(>.body-explorer)>.difficulty-note,.topic-picker:has(>.body-explorer)>.topic-progress,.topic-picker:has(>.music-area)>.difficulty-note{display:none}
.topic-picker:has(>.body-explorer)>.brand-heading,.topic-picker:has(>.music-area)>.brand-heading{max-width:290px;margin:8px auto 12px}
.topic-picker:has(.music-play-stage:not([hidden]))>.brand-heading{display:none}
@media(max-width:600px){.topic-picker:has(>.body-explorer)>.brand-heading{max-width:240px}#app .body-map{width:min(236px,100%)}#app .body-explorer{padding:13px 12px 16px;gap:7px}#app .body-part-label{margin:4px 0 8px;min-height:42px;font-size:22px}}

/* Sano stylesheet: mobile-navigation.css */
/* Responsive controls and Back buttons. Viewport scrolling lives in app-viewport.css. */
#app>.corner-tools{backdrop-filter:none;-webkit-backdrop-filter:none}
.learning-bottom-nav{display:flex;justify-content:center;padding:24px 8px max(30px,env(safe-area-inset-bottom));margin-top:12px}
.learning-bottom-nav>.shared-topic-back{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;min-width:180px;padding:12px 20px;border:3px solid white;border-bottom:5px solid #b82e60;border-radius:23px;background:linear-gradient(145deg,#ff91b5,#e6487f);color:white;font:850 17px/1.3 var(--joy-font);box-shadow:0 5px 12px #bc5e8b20,0 0 22px #ee82b33d;touch-action:manipulation}
.learning-bottom-nav>.shared-topic-back:focus-visible{outline:3px solid #0867ed;outline-offset:4px}
/* The topic chooser has its own Back to difficulty action. */
#app.topic-landing-view .learning-bottom-nav{display:none}
/* Companion, screen text, coins and Family form one short row at 320px.
   The text switch stays immediately beside coins; narrow split views may wrap
   naturally and the existing viewport observer reserves their actual height. */
#app>.corner-tools{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
 gap:8px 10px;padding:calc(10px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left));
 width:100%;box-sizing:border-box;min-height:calc(68px + env(safe-area-inset-top));container-type:normal;
}
#app>.corner-tools>:is(.companion-switch,.screen-text-choice){display:flex;flex:0 0 auto;align-items:center;gap:0;padding:0;margin:0;border-width:2px;white-space:nowrap}
#app>.corner-tools>.companion-switch{margin-right:auto}
#app>.corner-tools :is(.companion-switch,.screen-text-choice)>button{
 box-sizing:border-box;flex:0 0 auto;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;
}
#app>.corner-tools>.screen-text-choice button[data-value=ne]{width:54px;min-width:54px}
#app>.corner-tools .screen-text-label{font-size:15px;line-height:1.55}
#app>.corner-tools .screen-text-label[lang=ne]{font-size:17px}
#app>.corner-tools>.coin-corner,#app>.corner-tools>.grownup-corner{flex:0 0 48px;box-sizing:border-box;width:48px;min-width:48px;height:48px;min-height:48px;margin:0}
#app>.corner-tools>.coin-corner{position:relative}
#app>.corner-tools>.grownup-corner{position:static}
#app>.corner-tools .companion-switch-face{width:32px;height:32px}
#app>.corner-tools .companion-switch-face img{width:50px;height:50px}
@media(max-width:600px){
 #app>.corner-tools{gap:8px 4px;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
 #app>.corner-tools>.coin-corner,#app>.corner-tools>.grownup-corner{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}
 #app>.corner-tools>.coin-corner{padding:4px}
 #app>.corner-tools>.grownup-corner{padding:0}
 #app>.corner-tools>.grownup-corner>:is(svg,.grownup-portrait){width:32px;height:32px;object-fit:contain}
}


#app:not(.topic-landing-view) .foundations-shell> :where(.sano-page-scroll) >.simple-content{padding-bottom:0}
.modal-bottom-nav{display:flex;justify-content:center;margin-top:24px;padding:12px 0 max(12px,env(safe-area-inset-bottom))}

.coin-bottom-nav{display:flex;justify-content:center;padding:24px 8px max(20px,env(safe-area-inset-bottom))}.coin-dialog:has(.spoken-check)>.coin-bottom-nav{display:none}.coin-bottom-nav button{min-height:48px;min-width:160px}

/* Family dialogs and celebrations use the same readable text choice without
   inheriting the retired eight-control toolbar's narrow button sizes. */
.step-prompt-toolbar{container-type:normal}
.modal-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;min-width:0;max-width:100%;margin:0 0 18px}
.modal-toolbar>.parent-dialog-top{position:static;flex:1 1 100px;min-width:0;margin:0;padding:0;background:transparent;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.modal-toolbar>.parent-dialog-top>.context-return{min-width:0;min-height:48px;width:100%;padding:10px 12px;font-size:16px;overflow-wrap:anywhere}
.modal-toolbar>.screen-text-choice,.step-prompt-toolbar>.screen-text-choice{display:flex;flex:0 0 auto;gap:0;padding:0;margin:0;border-width:2px;white-space:nowrap}
.modal-toolbar>.screen-text-choice{margin-left:auto}
.modal-toolbar>.screen-text-choice>button,.step-prompt-toolbar>.screen-text-choice>button{box-sizing:border-box;flex:0 0 auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
.modal-toolbar>.screen-text-choice>button[data-value=ne],.step-prompt-toolbar>.screen-text-choice>button[data-value=ne]{width:54px;min-width:54px}
.modal-toolbar .screen-text-label,.step-prompt-toolbar .screen-text-label{font-size:15px;line-height:1.55}
.modal-toolbar .screen-text-label[lang=ne],.step-prompt-toolbar .screen-text-label[lang=ne]{font-size:17px}
.step-prompt-toolbar>.coin-corner,.step-prompt-toolbar>.grownup-corner{flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;margin:0}

/* A consistent bottom return, with the logo left in its existing centred slot. */
body #app .foundations-shell>.simple-header{grid-template-columns:1fr auto 1fr}
body #app .foundations-shell>.simple-header>.brand{grid-column:2}
body #app .learning-bottom-nav,.page-bottom-nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:24px auto 12px;padding:8px 16px calc(10px + env(safe-area-inset-bottom,0px));width:100%;box-sizing:border-box}
body #app .learning-bottom-nav[hidden]{display:none}
:is(.sano-page-scroll,.mountain-simple-choices)>[data-page-swipe-hint]{display:block;flex:none;margin:2px auto 6px;padding:0 10px;font:650 clamp(12px,1.6vw,14px)/1.45 var(--joy-font,system-ui);color:#49647b;text-align:center;pointer-events:none}
.sano-page-scroll>[data-page-swipe-hint][hidden]{display:none}
@media(orientation:landscape) and (max-height:500px){.sano-page-scroll>[data-page-swipe-hint]{margin:0 auto 2px;font-size:12px}}
body #app .page-bottom-nav>.play-reward-back{position:static;width:auto;min-width:150px;min-height:48px;font-size:18px}
body #app :is(.simple-header,.corner-tools)[tabindex]:focus,body #overlay :is(.modal,.modal-toolbar)[tabindex]:focus{outline:none}
body #app .corner-tools button:focus:not(:focus-visible){outline:none}

/* One compact return control across learning, libraries and activity menus. */
body #app :is(.shared-topic-back,.topic-back,.play-reward-back,.story-library-back,.mountain-back,.story-back,.spelling-back,.web-entry-back),
body #app button[data-navigation="back"]{
 position:static;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 flex:none;width:auto;min-width:148px;max-width:100%;min-height:48px;padding:10px 20px;
 border:3px solid #fff;border-bottom:5px solid #b82e60;border-radius:22px;
 background:linear-gradient(145deg,#ff91b5,#e6487f);color:#fff;
 font:850 18px/1.3 var(--joy-font,system-ui);box-shadow:0 4px 10px #bc5e8b20,0 0 18px #ee82b330;
 white-space:nowrap;touch-action:manipulation;
}
body #app :is(.shared-topic-back,.topic-back,.play-reward-back,.mountain-back,.story-back,.spelling-back,.web-entry-back):active,
body #app button[data-navigation="back"]:active{transform:translateY(2px);box-shadow:0 2px 5px #bc5e8b20}

body #app :is(.shared-topic-back,.topic-back,.play-reward-back,.story-library-back,.mountain-back,.story-back,.spelling-back,.web-entry-back) svg,body #app button[data-navigation="back"] svg{flex:none;width:20px;height:20px}


/* Keep the account and dismissal touch targets in place while their content opens. */
body #app .art-welcome .welcome-account-actions > button,
body #sano-daily-rewards .sano-rewards-close {
 animation: none !important;
 transform: none !important;
 translate: none !important;
 rotate: none !important;
 scale: none !important;
 touch-action: manipulation;
}

/* Sano stylesheet: body-flow.css */
/* Body first, Feelings underneath: the same tactile faces as the main activities. */
#app .body-feelings-picker{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;width:min(260px,100%);margin:18px auto 24px}
#app .body-feelings-picker>.body-section-tile{position:relative;display:block;appearance:none;-webkit-appearance:none;isolation:isolate;overflow:visible;box-sizing:border-box;width:100%;min-width:0;min-height:44px;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:clamp(25px,7vw,36px);background:transparent;box-shadow:none;color:var(--topic-ink);text-align:center;touch-action:manipulation}
#app .body-section-tile>.topic-tile-face{position:absolute;inset:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-width:0;min-height:0;padding:clamp(12px,3.4vw,23px);gap:10px;border:3px solid #fff;border-bottom:6px solid var(--topic-edge);border-radius:inherit;background:linear-gradient(145deg,#ffffff55,transparent 66%),var(--topic-fill);box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--topic-edge),0 11px 19px #28548818;transform:none;animation:none;transition:transform .24s var(--spring,cubic-bezier(.2,.8,.2,1.2))}
#app .body-section-body{--topic-fill:#67dca4;--topic-edge:#29a875;--topic-ink:#104d39}
#app .body-section-feelings{--topic-fill:#ff95c6;--topic-edge:#d95895;--topic-ink:#622744}
#app .body-section-art{position:relative;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;isolation:isolate;flex:0 1 auto;width:clamp(76px,24vw,126px);height:clamp(76px,24vw,126px);min-height:0;max-width:100%;overflow:hidden;pointer-events:none}
#app .body-section-art>:is(svg,img){position:absolute;inset:0;display:block;min-width:0;min-height:0;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 2px #173a491b);pointer-events:none}
#app .body-section-label{display:block;flex:0 0 auto;width:100%;min-width:0;font:900 clamp(18px,4.6vw,26px)/1.3 var(--joy-font);text-wrap:balance;overflow-wrap:normal}
#app .body-feelings-picker>.body-section-tile:focus-visible{outline:4px solid #075cd1;outline-offset:4px}
#app .body-feelings-picker>.body-section-tile:active{transform:none;translate:none;scale:1}
#app .body-section-tile:active>.topic-tile-face{transform:translateY(3px) scale(.97)}
@media(max-width:390px){#app .body-feelings-picker{gap:14px}#app .body-section-tile>.topic-tile-face{padding:10px 8px;gap:7px;border-radius:25px}#app .body-section-label{font-size:18px}}
@media(max-height:540px) and (orientation:landscape){#app .body-feelings-picker{margin-block:10px 20px;gap:14px}#app .body-feelings-picker>.body-section-tile{aspect-ratio:auto;min-height:104px}#app .body-section-tile>.topic-tile-face{position:relative;inset:auto;flex-direction:row;min-height:104px;padding:8px 10px;gap:10px;border-radius:25px}#app .body-section-art{flex:0 0 64px;width:64px;height:64px}#app .body-section-label{flex:1 1 0;width:auto;font-size:18px}}
body[data-motion=reduce] #app .body-section-tile>.topic-tile-face{transition:none}
@media(prefers-reduced-motion:reduce){#app .body-section-tile>.topic-tile-face{transition:none}}
/* Let the approved transparent body artwork sit on the app's own background. */
#app .body-explorer{border:0;background:transparent;box-shadow:none;padding:10px 12px 18px;gap:10px}
#app .body-explorer .body-flow-title{width:min(340px,100%);margin:0 auto 6px;text-align:center}
#app .body-explorer .body-flow-title>svg{display:block;width:100%;height:auto;max-height:112px}
#app .body-explorer .body-part-label{margin:0;min-height:0;font-size:27px;line-height:1.2}
#app .body-explorer .body-part-label small{margin-top:3px;font-size:15px}
#app .body-explorer .body-instruction{margin:2px 0 0;min-height:2.6em;max-width:340px;text-align:center;font:700 15px/1.3 var(--joy-font);color:#47667e}
#app .body-explorer .body-map{margin:-10px 0 -4px}
/* The visible hint is small; its stationary touch target stays easy to reach. */
#app .body-explorer .body-map>button.body-part{box-sizing:border-box;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;transition:left .3s ease,top .3s ease;cursor:pointer}
#app .body-explorer .body-map>button.body-part:active{scale:1;translate:none;transform:translate(-50%,-50%)}
#app .body-explorer .body-map>button.body-part>span{position:absolute;inset:auto;left:50%;top:50%;box-sizing:border-box;width:22px;height:22px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#ff167f;box-shadow:0 0 0 2px #b90050,0 0 10px 3px #ff438c70;pointer-events:none;animation:body-target-heartbeat 2.8s ease-in-out infinite}
#app .body-explorer .body-map>button.body-part:is(.body-seen,:disabled)>span{animation:none}
#app .body-explorer .body-map>button.body-part.body-seen>span{background:#ed1b76;box-shadow:0 0 0 2px #b90050,0 0 10px 2px #ff438c61}
@keyframes body-target-heartbeat{0%,16%,100%{transform:translate(-50%,-50%) scale(1)}5%,11%{transform:translate(-50%,-50%) scale(1.1)}8%{transform:translate(-50%,-50%) scale(1.02)}}
body[data-motion=reduce] #app .body-explorer .body-map>button.body-part,body[data-page-hidden=true] #app .body-explorer .body-map>button.body-part{transition:none}
body[data-motion=reduce] #app .body-explorer .body-map>button.body-part>span,body[data-page-hidden=true] #app .body-explorer .body-map>button.body-part>span{animation:none}
#app .body-explorer .body-actions{gap:9px;margin-top:4px}
#app .body-actions>.body-next{background:linear-gradient(145deg,#d7fff0,#a4e8cf);border-bottom-color:#5ab895;color:#165c49}
#app .body-actions>.body-repeat.trace-listen{min-height:62px;padding:12px 23px;gap:11px;border:3px solid #fff;border-bottom:6px solid #a38acf;border-radius:25px;box-shadow:inset 0 2px 1px #fff,0 4px 0 #af96d83b,0 8px 15px #7456aa1c,0 0 25px #ba96e947;font:900 19px/1.3 var(--joy-font)}
#app .body-actions>button:disabled{opacity:.62;cursor:default}
#app .body-actions>.body-next:disabled{filter:blur(.65px) saturate(.65);opacity:.48;animation:none;transform:none}
#app .body-explorer .body-game-choice{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;margin-top:10px;padding-top:16px;border-top:2px dashed #b8d9da}
#app .body-game-choice>p{margin:0;max-width:330px;font:700 14px/1.4 var(--joy-font);color:#416d7f;text-align:center}
#app .body-game-choice>.body-games{min-height:48px;max-width:100%;padding:11px 19px;border:3px solid #fff;border-bottom:5px solid #c693ca;border-radius:21px;background:linear-gradient(145deg,#fff0fc,#f2d5f3);color:#764883;font:800 17px/1.3 var(--joy-font)}
#app .body-explorer [hidden]{display:none!important}
@media(max-width:390px){#app .body-feelings-picker{width:min(230px,100%)}#app .body-actions>button:not(.trace-listen){padding:10px 16px;font-size:17px}#app .body-explorer .body-part-label{font-size:25px}}
@media(prefers-reduced-motion:reduce){#app .body-explorer .body-map>button.body-part{transition:none}#app .body-explorer .body-map>button.body-part>span{animation:none}}
@media(forced-colors:active){#app .body-explorer .body-map>button.body-part>span{background:Canvas;border-color:ButtonText;box-shadow:none}#app .body-explorer .body-map>button.body-part.body-seen>span{background:Highlight;border-color:HighlightText}}
/* The next feeling opens only after the previous discovery earns its star. */
#app .simple-topic-picker[data-topic="body"] [data-topic-locked="true"] .topic-entry-face{filter:blur(4px);opacity:.5}
#app .simple-topic-picker[data-topic="body"] [data-topic-locked="true"]{cursor:default}


/* Sano stylesheet: game-input-polish.css */
/* Browser selection/callout policy lives in learning-touch-guard.css. */
input[readonly][data-numeric-input],input[readonly][data-explicit-keyboard] {caret-color:transparent;}
.mountain-bottom-nav {display:flex;justify-content:center;padding:22px 0 max(18px,env(safe-area-inset-bottom));}
.mountain-bottom-nav .mountain-bottom-back {min-height:48px;width:min(240px,100%);max-width:none;}

/* Sano stylesheet: app-viewport.css */
/* A single viewport prevents browser pull-to-refresh from revealing a second
   page. The inner scroller retains native momentum and elastic edge feedback. */
/* The same colour at every vertical position makes native rubber-banding,
   changing browser chrome and short/long screens share an unbroken canvas. */
:root{--sano-canvas:linear-gradient(90deg,#fff0f7 0%,#f5faff 50%,#eaf6ff 100%)}
html,body,body[data-learner=welcome]{height:100%;min-height:0;overflow:hidden;overscroll-behavior-y:none;background:var(--sano-canvas,#f5faff)}
body #app{--toolbar-height:calc(68px + env(safe-area-inset-top));position:fixed;inset:0;width:100%;height:100%;height:100dvh;min-height:0;box-sizing:border-box;padding-top:var(--toolbar-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-top:calc(var(--toolbar-height) + 16px);scroll-padding-bottom:max(24px,env(safe-area-inset-bottom));background:transparent}
body #app{scrollbar-gutter:stable}
body #app[inert]{overflow-y:hidden}
body #app:has(>.sano-startup){padding-top:0}
/* Keep chrome outside animated content and let the actual canvas show through.
   Each control keeps its own glass; empty toolbar space stays transparent. */
body #app>.corner-tools,body #app>.corner-tools:has(+.clean-welcome.art-welcome){position:fixed;inset:0 0 auto;margin:0;width:100%;z-index:50;isolation:isolate;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none;translate:none}
/* Glass follows the rounded mascot, language, coins and Family tiles on every
   screen, without a full-width rectangle during scrolling or elastic pulls. */
body #app>.corner-tools::before{content:none}
@media not (forced-colors:active){
 body #app>.corner-tools>:is(.companion-switch,.screen-text-choice,.coin-corner,.grownup-corner){backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
}
/* The transparent scroller and toolbar share one stationary canvas, including
   elastic pulls and safe-area padding. */
html,body,body[data-learner=welcome]{background-size:100vw 100vh;background-size:100vw 100dvh;background-position:0 0;background-repeat:no-repeat}
body #app>.sano-startup{background:transparent}
body #app>main,body #app>.foundations-shell{background:transparent!important;border:0;box-shadow:none}
body #app>.foundations-shell::before,body #app>.foundations-shell::after{content:none}
body #app>.clean-welcome.art-welcome,body #app>.foundations-shell,body #app>.language-choice,body #app>main:not(.sano-startup){min-height:calc(100vh - var(--toolbar-height) + 1px);min-height:calc(100dvh - var(--toolbar-height) + 1px);box-sizing:border-box}
/* The 68px one-row fallback matches mobile and desktop chrome. The viewport
   observer updates --toolbar-height if safe insets, larger text or wrapping
   need more room. One pixel keeps short pages elastically scrollable too. */
@media(forced-colors:active){body #app>.corner-tools,body #app>.corner-tools:has(+.clean-welcome.art-welcome){background:Canvas}body #app>.corner-tools::before{display:none}}

/* Activity instructions own their canvas. Wallet and grown-up sheets below
   keep the originating page visible through a lightly blurred scrim. */
body #overlay>.backdrop,
body>.coin-backdrop,
body>.step-prompt-backdrop{
 background:var(--sano-canvas,#f5faff)!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}
body #overlay>.backdrop:has(>.parent-modal),
body>.coin-backdrop:not([data-talk-view=true]){
 background:rgba(36,65,109,.12)!important;
 backdrop-filter:blur(6px)!important;
 -webkit-backdrop-filter:blur(6px)!important;
}
@media(forced-colors:active){
 body #overlay>.backdrop,
 body>.coin-backdrop,
 body>.step-prompt-backdrop{background:Canvas!important}
 body #overlay>.backdrop:has(>.parent-modal),
 body>.coin-backdrop:not([data-talk-view=true]){
  background:Canvas!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
 }
}


/* Chrome stays outside the native elastic surface. Keep #app full-screen so
   WebKit never clips its fixed toolbar while a nested content pane scrolls. */
body #app:has(.sano-page-scroll,.sano-game-scroll){overflow:hidden!important;scroll-padding-top:0}
body #app>.simple-shell.foundations-shell{height:100%;max-height:100%;min-height:0!important;padding:0;overflow:visible}
body #app>.foundations-shell>.sano-page-scroll,
body #app>.sano-page-scroll,
body #app .sano-game-scroll{
 box-sizing:border-box;min-height:0!important;height:100%;max-height:100%;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;clip-path:inset(0);
 scroll-padding-top:16px;scroll-padding-bottom:max(24px,env(safe-area-inset-bottom));
}
/* Put the gutter inside the scrolling viewport so its edge cannot cut the
   rounded tile glow at the old shell padding boundary. */
body #app>.foundations-shell>.sano-page-scroll{padding:28px max(22px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}
body #app:has(.mountain-game-header)>#adventure-root{height:100%;max-height:100%;min-height:0!important;padding:0}
body #app .mountain-game{height:100%;max-height:100%;min-height:0!important;padding:0;overflow:visible}
body #app .sano-game-scroll{padding:28px max(22px,3vw,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,3vw,env(safe-area-inset-left))}
/* Match Coins and Family: content fades into the stationary header. The
   first row sits below the fade; only the pane, never the chrome, scrolls. */
@media(forced-colors:none){
 body #app>.foundations-shell>.sano-page-scroll,body #app .sano-game-scroll{
  mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
 }
}
body #app .foundations-shell:has(#songs-root) .learning-bottom-nav,
body #app .foundations-shell:has(.home-landing) .learning-bottom-nav,
body #app .foundations-shell:has(.music-area) .learning-bottom-nav,
body #app .foundations-shell:has(#knowledge-challenge-root) .learning-bottom-nav{display:none}
/* Account, login and wallet sheets share the same stationary heading and
   clipped inner edge. Native bounce remains available inside each pane. */
body #overlay>.backdrop>.parent-modal>.sano-sheet-scroll,
body>.coin-backdrop:not([data-coin-view=access])>.coin-dialog>.coin-sheet-scroll{clip-path:inset(0);overscroll-behavior-y:contain}

/* Sano stylesheet: paid-topic-tiles.css */
/* Paid previews soften the existing illustration only. Labels and controls
   stay sharp; the existing tile motion and approved artwork remain intact. */
.topic-feature-card{position:relative;width:100%;isolation:isolate}
.topic-feature-card>.topic-feature-main{display:block;width:100%;max-width:none}
.topic-feature-card .topic-feature-main.is-paid-preview .topic-tile-picture{filter:blur(1.8px) saturate(.78);opacity:.68}
.topic-feature-card .topic-feature-status{display:block;margin-top:7px;font-weight:800;line-height:1.4}
.topic-feature-card .topic-feature-note{display:block;margin-top:7px;font-size:13px;line-height:1.4;font-weight:600}
.topic-feature-card .topic-feature-note[hidden],.topic-feature-card>.topic-feature-cta[hidden],.topic-feature-card .topic-feature-coming-soon[hidden]{display:none}
.topic-feature-card .topic-feature-coming-soon{position:absolute;top:10px;left:12px;z-index:2;padding:5px 10px;border:2px solid #fff;border-radius:18px;background:#ffb5d5;color:#71304f;font:800 12px/1.3 var(--joy-font)}
.topic-feature-card[data-feature-state=coming-soon] .topic-tile-face{padding-top:45px!important}
.topic-feature-card.has-feature-cta .topic-tile-face{padding-bottom:78px!important}
.topic-feature-card>.topic-feature-cta{position:absolute;z-index:3;bottom:21px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);min-height:44px;padding:9px 24px;border:2px solid #fff;border-radius:24px;background:#0666ef;color:#fff;box-shadow:0 4px 0 #174274;font:800 16px/1.35 var(--joy-font);cursor:pointer;white-space:normal}
.topic-feature-card>.topic-feature-cta:active{translate:0 2px;box-shadow:0 2px 0 #174274}
.topic-feature-card>.topic-feature-cta:focus-visible{outline:3px solid #174274;outline-offset:4px}
.topic-feature-card .topic-paid-corner{position:absolute;top:10px;right:10px;z-index:2;width:30px;height:30px;filter:none;opacity:1}
.topic-feature-card .topic-paid-corner svg{display:block;width:100%;height:100%}
/* A short, local response before opening the child's existing coin balance. */
.topic-feature-card.is-coin-short{animation:sano-paid-coins-jiggle .36s ease both}
#app .topic-feature-card.is-coin-short .topic-tile-face{outline:3px solid #e33d56;outline-offset:3px;box-shadow:inset 0 3px 0 #fff9,0 0 0 7px #ff6b7a40,0 9px 24px #d9405852}
@keyframes sano-paid-coins-jiggle{0%,100%{translate:0 0}20%,60%{translate:-5px 0}40%,80%{translate:5px 0}}
/* Keep the other section dividers; only the line above Knowledge is removed. */
#app .topic-landing .music-invitation:has(+.knowledge-invitation)::after{content:none}
.drawing-rainbow .rainbow-tool{position:relative}
.drawing-rainbow .rainbow-tool-art{font-size:27px}
.drawing-rainbow .rainbow-tool.is-paid-preview .rainbow-tool-art{filter:blur(1.5px) saturate(.78);opacity:.68}
.drawing-rainbow .rainbow-paid-corner{position:absolute;top:3px;right:5px;width:22px;height:22px;filter:none;opacity:1}
.drawing-rainbow .rainbow-paid-corner svg{width:100%;height:100%;display:block}
.drawing-rainbow .rainbow-tool.is-paid-preview{padding-right:34px}
@media(max-width:420px){.topic-feature-card .topic-feature-status{font-size:14px}.topic-feature-card .topic-feature-note{font-size:12px}.topic-feature-card>.topic-feature-cta{font-size:15px;padding:8px 20px}}
@media(prefers-reduced-motion:reduce){.topic-feature-card.is-coin-short{animation:none}}
@media(forced-colors:active){.topic-feature-card .topic-feature-main.is-paid-preview .topic-tile-picture,.drawing-rainbow .rainbow-tool.is-paid-preview .rainbow-tool-art{filter:none;opacity:1}.topic-feature-card>.topic-feature-cta{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}#app .topic-feature-card.is-coin-short .topic-tile-face{outline-color:Highlight;box-shadow:none}}

/* Sano stylesheet: interaction-polish.css */
/* Keep each familiar colour and animated illustration. The hit target stays
   still in layout; a small visual press and a soft, steady halo supply depth. */
:is(#app,.coin-backdrop[data-talk-view=true]){--press-ease:cubic-bezier(.2,.75,.25,1);--release-ease:cubic-bezier(.18,.8,.25,1)}

:is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile,.web-entry-tile,.language-option,.companion-option,.challenge-tile,.scribble-choice,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.word-tile,.choice,.reply-choice,.quiz-answer,.check-button,.spelling-letter,.maths-button,.body-actions>button,.body-part,.talk-primary,.talk-stop,.talk-manual,.music-start,.music-back,.spelling-next,.topic-exit,.back-tile,.shared-topic-back,.trace-listen,.listen-button,.practice-tool){
 transition:translate 180ms var(--release-ease),scale 180ms var(--release-ease),opacity 140ms ease;
 transform-origin:center;
}
:is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile,.web-entry-tile,.language-option,.companion-option,.challenge-tile,.scribble-choice,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.word-tile,.choice,.reply-choice,.quiz-answer,.check-button,.spelling-letter,.maths-button,.body-actions>button,.body-part,.talk-primary,.talk-stop,.talk-manual,.music-start,.music-back,.spelling-next,.topic-exit,.back-tile,.shared-topic-back,.trace-listen,.listen-button,.practice-tool):active:not(:disabled):not([aria-disabled=true]){
 translate:0 1px;scale:.985;transition-duration:100ms;transition-timing-function:var(--press-ease);
}
:is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile,.web-entry-tile,.language-option,.companion-option,.challenge-tile,.scribble-choice,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.word-tile,.choice,.reply-choice,.quiz-answer,.check-button,.spelling-letter,.maths-button,.body-actions>button,.body-part,.talk-primary,.talk-stop,.talk-manual,.music-start,.music-back,.spelling-next,.topic-exit,.back-tile,.shared-topic-back,.trace-listen,.listen-button,.practice-tool):focus-visible{
 outline:3px solid #2368a8;outline-offset:5px;
}
@media(hover:hover) and (pointer:fine){
 :is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile,.web-entry-tile,.language-option,.companion-option,.challenge-tile,.scribble-choice,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.word-tile,.spelling-letter,.talk-primary):hover:not(:active):not(:disabled):not([aria-disabled=true]){translate:0 -2px}
}

/* Use the component's own accent, including the existing repeating topic
   colours. No container-wide glow or colour change is introduced. */
#app .topic-tile,.coin-backdrop[data-talk-view=true] .topic-tile{--polish-accent:var(--topic-edge,#4c9fea)}
#app .topic-grid>.topic-tile:nth-child(3n+2){--polish-accent:#e882b0}
#app .topic-grid>.topic-tile:nth-child(3n){--polish-accent:#48b88c}
#app .web-entry-tile{--polish-accent:var(--entry-edge,#68a6e0)}
#app .language-option{--polish-accent:#4c9fea}
#app .language-option.english-option{--polish-accent:#e882b0}
#app .companion-option{--polish-accent:var(--companion-halo,#82b7e8)}
#app .challenge-tile{--polish-accent:var(--tile-edge,#82b7e8)}
#app .scribble-choice{--polish-accent:var(--choice-edge,#82b7e8)}
#app .maths-operation{--polish-accent:var(--math-edge,#82b7e8)}
#app .music-instrument-tile,#app .music-option{--polish-accent:#72b9de}
#app .music-instrument-tile:nth-child(2){--polish-accent:#d9b568}
#app .music-instrument-tile:nth-child(3){--polish-accent:#db90b7}
#app .music-option[aria-pressed=true]{--polish-accent:#53bc91}
#app .nepal-discovery-card{--polish-accent:var(--topic-edge,#58bfff)}

:is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile,.web-entry-tile,.language-option,.companion-option,.challenge-tile,.scribble-choice,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card) :is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face){
 box-shadow:inset 0 2px 1px #ffffffa6,0 4px 0 color-mix(in srgb,var(--polish-accent,#82b7e8) 38%,transparent),0 8px 16px -9px #24416d38,0 0 20px 1px color-mix(in srgb,var(--polish-accent,#82b7e8) 17%,transparent);
 transition:transform 180ms var(--release-ease),scale 180ms var(--release-ease),translate 180ms var(--release-ease),opacity 140ms ease;
}
/* A radial gradient is already soft. Removing blur avoids rasterising a
   moving filtered layer for every tile while scrolling on a phone. */
#app :is(.topic-tile-halo,.challenge-halo,.companion-halo,.web-entry-halo,.maths-tile-halo),
.coin-backdrop[data-talk-view=true] .speech-topic-grid .topic-tile-halo{
 inset:-14px;border-radius:40%;filter:none;box-shadow:none;transform:none;
 background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--polish-accent,var(--topic-edge,#82b7e8)) 27%,transparent),transparent 100%);
 opacity:.64;animation:none;transition:opacity 160ms ease;pointer-events:none;
}
:is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile,.web-entry-tile,.language-option,.companion-option,.challenge-tile,.maths-operation):is(:active,:focus-visible) :is(.topic-tile-halo,.challenge-halo,.companion-halo,.web-entry-halo,.maths-tile-halo){opacity:.86}
#app .web-entry-pay .game-tile-face{backdrop-filter:none;-webkit-backdrop-filter:none}
/* A paid school licence is an enquiry. Soften only its illustration; keep the
   gold coin, label and enquiry action sharp and fully keyboard accessible. */
#app .web-entry-pay .web-entry-symbol{filter:blur(2.5px);opacity:.72}
#app .web-entry-pay :is(strong,small,.web-entry-corner){filter:none;opacity:1}

/* Keep purposeful success/hint colours and game feedback untouched. Body
   landmarks stay anchored to the illustration; their glow is simply closer. */
#app .body-map>.body-part:not(.body-seen){box-shadow:0 0 0 3px #079f89,0 0 15px 4px #24cbb84d}
#app .body-map>.body-part.body-seen{box-shadow:0 0 0 3px #058f68,0 0 17px 4px #43d99c61}
#app .spelling-letter{--polish-letter:#63b3e1}
#app .spelling-letter:not(.is-wrong):not(.is-hint){box-shadow:inset 0 2px 1px #ffffff8c,0 6px 14px -8px #24416d38,0 0 18px color-mix(in srgb,var(--polish-letter) 20%,transparent)}
#app .spelling-letter:nth-child(2){--polish-letter:#e98db7}
#app .spelling-letter:nth-child(3){--polish-letter:#43b98c}
#app .spelling-letter:nth-child(4){--polish-letter:#ddbf61}
/* These two legacy pulses animated their shadows on every frame. Retain the
   invitation movement with transform alone; the existing glow stays steady. */
#app :is(.music-start,.spelling-next){animation-name:sano-invitation-lift}
@keyframes sano-invitation-lift{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.015)}}

/* Arcade translate places the hit target; reduced motion stops its decoration in learning-arcade.css. */
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(#app,.coin-backdrop[data-talk-view=true]) :is(button:not(.arcade-token),.game-tile-face,.topic-tile-face,.topic-entry-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face){transition:none!important;translate:none!important;scale:none!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app :is(.music-start,.spelling-next){animation:none!important}
@media(prefers-reduced-motion:reduce){
 :is(#app,.coin-backdrop[data-talk-view=true]) :is(button:not(.arcade-token),.game-tile-face,.topic-tile-face,.topic-entry-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face){transition:none!important;translate:none!important;scale:none!important}
 #app :is(.music-start,.spelling-next){animation:none!important}
}
@media(forced-colors:active){
 :is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile-halo,.challenge-halo,.companion-halo,.web-entry-halo,.maths-tile-halo){display:none}
 :is(#app,.coin-backdrop[data-talk-view=true]) :is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face){box-shadow:none;border-color:ButtonText}
 :is(#app,.coin-backdrop[data-talk-view=true]) button:focus-visible{outline-color:Highlight}
}

/* Short, cancellable overlay transitions. Microphone ownership ends before
   closing starts; the dimmed game remains inert until the exit is finished. */
.coin-backdrop[data-overlay-state]{opacity:1;transition:opacity 180ms ease}
.coin-backdrop[data-overlay-state]>.coin-dialog{transform:translateY(0);transition:transform 180ms cubic-bezier(.2,.75,.25,1)}
.coin-backdrop:is([data-overlay-state=entering],[data-overlay-state=closing]){opacity:0}
.coin-backdrop:is([data-overlay-state=entering],[data-overlay-state=closing])>.coin-dialog{transform:translateY(12px)}
.coin-backdrop[data-overlay-state=closing]{pointer-events:none}

/* The complete celebration is visible at once, including both actions. */
.step-prompt-backdrop.celebration-immediate{
 background:transparent;
 backdrop-filter:none;-webkit-backdrop-filter:none;
 padding:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
}
.sano-celebration-blur{filter:none;opacity:1}
.step-prompt.celebration-ready,.letter-celebration .step-prompt.celebration-ready{
 position:relative;isolation:isolate;z-index:1;box-sizing:border-box;width:min(440px,100%);max-height:100%;
 display:flex;flex-direction:column;align-items:center;gap:18px;padding:20px 24px;
 border:0;border-radius:0;
 background:transparent;box-shadow:none;
 animation:none;
}
.step-prompt.celebration-ready .step-prompt-mascot,.letter-celebration .celebration-ready .step-prompt-mascot{
 width:clamp(80px,16svh,122px);height:auto;max-height:130px;object-fit:contain;
 margin:0;filter:drop-shadow(0 7px 7px #53687914);animation:none;
}
.step-prompt.celebration-ready h2,.letter-celebration .celebration-ready h2{
 font-size:clamp(27px,6vw,36px);line-height:1.14;color:#244b73;text-shadow:none;filter:none;max-width:100%;margin:0;
}
.step-prompt.celebration-ready h2.brand-praise{width:min(290px,100%);line-height:0;filter:none}
.celebration-ready h2.brand-praise :is(img,svg){width:100%;height:auto;max-height:55px;object-fit:contain}
.celebration-ready .step-prompt-word{font-size:clamp(40px,8svh,62px);line-height:1.2;color:#315c7e;text-shadow:none}
.celebration-ready .step-prompt-roman{font-size:17px;margin:0;color:#59728b}
.celebration-ready .adventure-discoveries{gap:8px;margin:0;flex-wrap:wrap;justify-content:center}
.celebration-ready .adventure-discovery{background:#eaf4ff;border:1px solid #fff;border-radius:18px;padding:8px 12px}
.celebration-ready .adventure-discovery>span{font-size:30px}
.celebration-ready .adventure-discovery>small{font-size:14px}
.step-prompt.celebration-ready button{
 box-sizing:border-box;width:100%;min-height:76px;border-radius:28px;padding:18px 24px;margin:0;
 font-size:20px;line-height:1.25;animation:none;position:relative;z-index:3;
 transition:translate 140ms ease,scale 140ms ease;
}
.step-prompt.celebration-ready .step-prompt-next{--celebration-top:#38c97c;--celebration-bottom:#15965b;--celebration-edge:#188d5c;--celebration-glow:#38c97c45}
.step-prompt.celebration-ready [data-step-action=replay]{--celebration-top:#5babff;--celebration-bottom:#1671e2;--celebration-edge:#216bbf;--celebration-glow:#5babff45}
.step-prompt.celebration-ready [data-step-action=rest]{--celebration-top:#ff7a83;--celebration-bottom:#e33d56;--celebration-edge:#c0475b;--celebration-glow:#ff7a8345}
/* Each action keeps its own colour even when another choice is absent. Scope
   above the legacy branded/last-child button rules as well as the base tiles. */
.step-prompt-backdrop.celebration-immediate .step-prompt.celebration-ready button:is(.step-prompt-next,.step-prompt-rest){
 background:radial-gradient(ellipse at 40% -30%,#ffffff70,transparent 70%),linear-gradient(155deg,var(--celebration-top) 18%,var(--celebration-bottom));
 border:3px solid #ffffffe0;border-bottom:6px solid var(--celebration-edge);color:#fff;
 --celebration-shadow:inset 0 2px 2px #ffffffa6,inset 0 -3px 7px #23416d12,0 3px 0 color-mix(in srgb,var(--celebration-edge) 60%,white),0 8px 16px -9px #24416d38,0 0 23px 1px var(--celebration-glow);
 box-shadow:var(--celebration-shadow);
}
.step-prompt.celebration-ready button:active{translate:0 2px;scale:.985;transform:none}
.step-prompt-backdrop.celebration-immediate .step-prompt.celebration-ready button:focus-visible{outline:3px solid #377cbd;outline-offset:5px;box-shadow:0 0 0 4px #fff,var(--celebration-shadow)}
.step-prompt.celebration-ready .choice-brand-label{font-size:0}
.step-prompt.celebration-ready .choice-brand-label :is(img,svg){width:auto;max-width:100%;height:30px;object-fit:contain;filter:none}
@keyframes sano-result-arrive{from{transform:translateY(7px) scale(.985)}to{transform:translateY(0) scale(1)}}

/* One short wave of transparent trails. No tint, delay or repeating bursts. */
.celebration-immediate .letter-party.fireworks-fullscreen,.sano-celebration.fireworks-fullscreen{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden;margin:0;width:100%;height:100%}
.sano-celebration.fireworks-fullscreen{z-index:110}
.fireworks-fullscreen .celebration-firework-art{position:absolute;left:var(--burst-x);top:var(--burst-y);width:clamp(240px,60vmin,600px);height:auto;max-width:none;opacity:0;transform:translate(-50%,-50%);animation:sano-grand-firework 1600ms cubic-bezier(.2,.55,.3,1) 1 both;pointer-events:none}
.fireworks-fullscreen .celebration-firework-art:nth-child(3n){width:clamp(280px,70vmin,700px)}
.fireworks-fullscreen .celebration-firework-art:nth-child(3n+1){width:clamp(220px,55vmin,550px)}
.celebration-immediate .step-prompt.celebration-ready{z-index:2}
@keyframes sano-grand-firework{0%{opacity:1;transform:translate(-50%,-50%) scale(.2) rotate(var(--burst-turn,0deg))}58%{opacity:1}100%{opacity:0;transform:translate(-50%,-42%) scale(1.3) rotate(var(--burst-turn,0deg))}}
body[data-page-hidden=true] .celebration-firework-art{animation-play-state:paused}

/* Match the same finish across chapter, summit, quiz, family and speaking
   results, using one tiny local vector medal rather than more image downloads. */
:is(.round-complete,.mountain-end-card,.family-round-complete,.adventure-board[data-phase=complete],.adventure-board[data-phase=reward]){
 border:1px solid #fff;border-radius:30px;
 background:radial-gradient(ellipse at 50% 0%,#fff5d9a6,transparent 60%),linear-gradient(155deg,#fffdf8,#f1f8ff);
 box-shadow:inset 0 1px 0 #fff,0 12px 32px -22px #355f8c55;
}
.family-round-complete::before{content:'';display:block;width:100px;height:112px;margin:4px auto 12px;background:url('/images/reward-medal.svg') center/contain no-repeat;pointer-events:none}
:is(.round-medal,.finish-bubble){position:relative;background:radial-gradient(ellipse,#fff4d5,transparent 70%);box-shadow:none}
:is(.round-medal,.finish-bubble)::after{content:'';position:absolute;right:-12px;bottom:0;width:60px;height:68px;background:url('/images/reward-medal.svg') center/contain no-repeat;pointer-events:none}
:is(.family-results>div,.mountain-results,.quiz-score,.play-recall-result,.talk-success,.piano-play[data-phase=done] .piano-turn){border:1px solid #fff;border-radius:24px;background:linear-gradient(150deg,#fffaf0,#eef7ff);box-shadow:inset 0 1px 0 #fff,0 5px 18px -12px #45647d40}
:is(.family-score,.quiz-score){color:#35567c;text-shadow:0 1px #fff}
.sano-celebration{pointer-events:none}
@media(max-height:640px){
 .step-prompt.celebration-ready,.letter-celebration .step-prompt.celebration-ready{gap:15px;padding:14px 18px;border-radius:26px}
 .step-prompt.celebration-ready .step-prompt-mascot,.letter-celebration .celebration-ready .step-prompt-mascot{width:76px}
 .step-prompt.celebration-ready button{min-height:64px;padding:13px 18px}
 .step-prompt.celebration-ready .step-prompt-word{font-size:38px}
}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.coin-backdrop[data-overlay-state],.coin-backdrop[data-overlay-state]>.coin-dialog,.step-prompt.celebration-ready,.step-prompt.celebration-ready button){transition:none!important;animation:none!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.celebration-immediate .letter-party,.sano-celebration .celebration-firework-art){display:none}
@media(prefers-reduced-motion:reduce){
 :is(.coin-backdrop[data-overlay-state],.coin-backdrop[data-overlay-state]>.coin-dialog,.step-prompt.celebration-ready,.step-prompt.celebration-ready button){transition:none!important;animation:none!important}
 :is(.celebration-immediate .letter-party,.sano-celebration .celebration-firework-art){display:none}
}
@media(forced-colors:active){
 .step-prompt.celebration-ready,.step-prompt-backdrop.celebration-immediate .step-prompt.celebration-ready button:is(.step-prompt-next,.step-prompt-rest){background:Canvas;color:CanvasText;box-shadow:none;border:2px solid ButtonText}
 .step-prompt.celebration-ready .choice-brand-label{font-size:18px}
 .step-prompt.celebration-ready .choice-brand-label img{display:none}
 :is(.celebration-immediate .letter-party,.sano-celebration .celebration-firework-art){display:none}
}

.step-prompt.celebration-ready button[hidden]{display:none!important}
.coin-corner{position:relative}
.coin-balance-badge{position:absolute;right:-6px;top:-5px;min-width:23px;height:23px;display:grid;place-items:center;padding:0 5px;border-radius:20px;background:#0666ef;color:#fff;border:2px solid #fff;font:700 12px/1 system-ui;box-shadow:0 2px 6px #17427425}
.paid-wallet-summary{padding:12px 16px;margin:10px 0;border-radius:18px;background:#edf6ff;color:#174274}
.knowledge-invitation{margin:18px auto;max-width:520px}
.knowledge-invitation .topic-tile{width:100%;max-width:none}

/* One discoverable teaching control replaces competing voice/text switches. */
.corner-tools>.bilingual-help-control{flex:0 0 48px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;min-width:48px;height:48px;padding:0;background:#e9f8ee;border-color:#b4e0c6;border-radius:50%}
.corner-tools>.bilingual-help-control>button.bilingual-help-button{display:grid;place-items:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;background:#e9f8ee;color:#174c3e;border-radius:50%}
.corner-tools>.bilingual-help-control .bilingual-help-icon{display:block;width:30px;height:30px;pointer-events:none}
.welcome-sound-note{color:#17334d;font-weight:800}
.bilingual-help-panel{max-width:600px;margin:0 auto;color:#243e55;line-height:1.65}
.bilingual-help-panel h2{color:#0666ef;text-align:center;font-size:clamp(26px,5vw,38px)}
.bilingual-help-panel fieldset{margin:22px 0;padding:18px;border:2px solid #bcdcf8;border-radius:22px;background:#eef7ff}
.bilingual-help-panel legend{padding:0 8px;color:#174274;font-weight:800}
.bilingual-help-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 20px;margin-top:24px;padding-top:16px;border-top:1px solid #bed5e9}
.bilingual-help-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8px 4px;color:#174274;font-size:14px;font-weight:800;line-height:1.5;text-align:center;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.bilingual-help-links a:focus-visible{outline:3px solid #174274;outline-offset:4px;border-radius:4px}
@media(forced-colors:active){.bilingual-help-links{border-color:CanvasText}.bilingual-help-links a{color:LinkText}.bilingual-help-links a:focus-visible{outline-color:Highlight}}

.bilingual-screen-options{display:flex;flex-wrap:wrap;gap:10px}
.bilingual-screen-options button{min-height:48px;flex:1;border:2px solid #b6d9ee;background:#fff}
.bilingual-screen-options button[aria-pressed=true]{background:#dcf6e7;border-color:#55ad84;box-shadow:0 0 0 2px #bff1d5}
.bilingual-companion-note{font-size:15px}
.course-bilingual-summary{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:9px;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;margin:12px auto;padding:8px 14px;border:1px solid #88b7d6;border-radius:14px;background:#eef8ff;color:#173e5b;text-align:left;font-size:14px;font-weight:700;line-height:1.45}
.course-bilingual-summary::before{content:"";position:absolute;inset:-2px;z-index:-1;border:1px solid #70b4d0;border-radius:inherit;box-shadow:0 0 9px #70b4d044;pointer-events:none;animation:course-guidance-heartbeat 5.2s ease-in-out infinite}
.course-bilingual-sound{flex:0 0 22px;width:22px;height:22px;color:#225373}
.course-bilingual-summary>span{min-width:0;overflow-wrap:normal}
@keyframes course-guidance-heartbeat{0%,32%,60%,100%{opacity:.35;box-shadow:0 0 4px #70b4d022}40%,50%{opacity:.8;box-shadow:0 0 11px #70b4d05c}45%{opacity:.5;box-shadow:0 0 7px #70b4d038}}
@media(prefers-reduced-motion:reduce){.course-bilingual-summary::before{animation:none;opacity:.5}}
body[data-motion=reduce] .course-bilingual-summary::before,body[data-page-hidden=true] .course-bilingual-summary::before{animation:none;opacity:.5}
.bilingual-caption{display:grid;gap:4px;max-width:560px;margin:14px auto;padding:10px 16px;border-radius:18px;background:#edf7ff;color:#254b6a;text-align:center;line-height:1.55;font-size:16px}
.bilingual-caption[hidden]{display:none}
.bilingual-caption-target{font-weight:800}
.bilingual-caption-meaning{font-size:.93em}
@media(max-width:500px){.course-bilingual-summary{margin:10px auto;padding:7px 11px;font-size:13px}.bilingual-help-panel fieldset{padding:12px}}

/* All activity choices share the established SANO tile jiggle. Keep the
   language-switch pill's existing motion untouched: only named activity
   tiles participate, never every button or every game-tile-face. */
#app :is(
 :is(.topic-tile,.web-entry-tile,.language-option,.language-course,.course-planned-tile,.companion-option,.challenge-tile,.scribble-choice,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.knowledge-subject,.knowledge-answer,.word-tile,.choice,.reply-choice,.quiz-answer,.free-play-tile):not(:is(:disabled,[aria-disabled=true],.topic-back,.back-tile,.shared-topic-back,.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.correct,.is-correct,.matched,.connecting))>:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face),
 .melody-tabs>button:not(:is(:disabled,[aria-disabled=true],.music-denied,.answer-wrong,.answer-right))>.melody-face,
 :is(.sc-menu-tile,.scribble-idea,.nepal-category,.category-tile,.play-recall-choice,.mountain-mode-choices>.mountain-button,.mountain-extras>[data-mountain=scribble]):not(:is(:disabled,[aria-disabled=true],.is-setup-locked,.answer-wrong,.answer-right,.is-hint,.is-retry))
):not(.is-locked *):not(.learning-course-control *){
 animation:var(--sano-content-motion,tile-jiggle 3.8s ease-in-out infinite)!important;
 animation-delay:var(--tile-delay,var(--scribble-delay,var(--sano-content-delay,0s)))!important;
 animation-play-state:var(--sano-content-play,running)!important;
}
#app :is(.topic-tile,.web-entry-tile,.language-option,.language-course,.course-planned-tile,.companion-option,.challenge-tile,.scribble-choice,.scribble-idea,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.nepal-category,.knowledge-subject,.knowledge-answer,.word-tile,.choice,.reply-choice,.quiz-answer,.free-play-tile,.melody-tabs>button,.category-tile,.play-recall-choice,.mountain-mode-choices>.mountain-button,.mountain-extras>[data-mountain=scribble]):nth-child(3n+2){--sano-content-delay:-1.2s}
#app :is(.topic-tile,.web-entry-tile,.language-option,.language-course,.course-planned-tile,.companion-option,.challenge-tile,.scribble-choice,.scribble-idea,.maths-operation,.music-instrument-tile,.music-option,.nepal-discovery-card,.nepal-category,.knowledge-subject,.knowledge-answer,.word-tile,.choice,.reply-choice,.quiz-answer,.free-play-tile,.melody-tabs>button,.category-tile,.play-recall-choice,.mountain-mode-choices>.mountain-button,.mountain-extras>[data-mountain=scribble]):nth-child(3n){--sano-content-delay:-2.4s}
/* Nepal category cards have no face wrapper; move the complete card once. */
#app .nepal-category>span:first-child{animation:none}
#app button:active{--sano-content-play:paused}
body[data-page-hidden=true]{--sano-content-play:paused}
#app[inert]{--sano-content-play:paused}
body:is([data-motion=reduce],[data-reduced-motion=true]){--sano-content-motion:none}
@media(prefers-reduced-motion:reduce){body{--sano-content-motion:none}}

/* A tile's indicators belong to its moving surface, with a compact footprint. */
#app :is(.topic-tile-face,.topic-entry-face){position:relative}
#app .topic-tile-face>.topic-paid-corner{top:8px;right:8px;width:24px;height:24px;max-width:18%;max-height:18%;pointer-events:none}
#app .topic-tile-face>.topic-paid-corner>svg{display:block;width:100%;height:100%;animation:none;transform:none}
@media(max-width:380px){#app .topic-category-knowledge .topic-tile-face>.topic-paid-corner{top:6px;right:6px;width:20px;height:20px}}
#app .topic-entry-face>:is(.topic-entry-star,.topic-lock-badge){pointer-events:none}
#app .topic-tile.is-topic-locked .topic-entry-face{filter:none;opacity:1}
#app .topic-tile.is-topic-locked .topic-entry-face>:is(.world-entry-picture,.learning-entry-label){filter:blur(2px);opacity:.62}
#app .knowledge-subject>.game-tile-face{box-shadow:inset 0 2px 2px #ffffffa6,0 5px 0 #4c9fea,0 8px 14px -5px #24416d26,0 0 24px 3px #62b9f540}
#app .knowledge-subject-colours>.game-tile-face{box-shadow:inset 0 2px 2px #ffffffa6,0 5px 0 #d58aab,0 8px 14px -5px #71304f26,0 0 24px 3px #ef9bc340}
#app .knowledge-subject-shapes>.game-tile-face{box-shadow:inset 0 2px 2px #ffffffa6,0 5px 0 #a7b5c4,0 8px 14px -5px #24416d26,0 0 24px 3px #a7b5c440}


/* Sano stylesheet: coin-wallet-polish.css */
/* A child can explore their collection; purchases stay with a grown-up. */
.coin-area-title{margin:12px 0 20px;color:#224c70;font-size:clamp(25px,5vw,34px);text-align:center}
.coin-collection-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
.coin-collection-totals>section{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box;min-width:0;padding:18px 12px;border:3px solid #fff1ad;border-bottom:7px solid #bf8214;border-radius:26px;background:radial-gradient(ellipse at 30% 0%,#fffde9b3,transparent 58%),linear-gradient(150deg,#fff4b3 0%,#ffe365 22%,#ffc72e 43%,#ffe78b 65%,#f2b51d 100%);box-shadow:inset 0 2px 2px #fffef0,inset 0 -5px 10px #a5681624,0 4px 0 #a76c10,0 10px 18px #9869222b,0 0 22px #ffd44445;text-align:center}
.coin-collection-totals>section::before{content:"";position:absolute;z-index:0;inset:5px 6px auto;height:42%;border-radius:19px 19px 65% 35%;background:linear-gradient(165deg,#fffdfacc,#fffdfa33 55%,transparent);pointer-events:none}
.coin-collection-totals>section>*{position:relative;z-index:1}
.coin-collection-totals>.coin-star-hero{border-color:#c8f1ff;border-bottom-color:#287bb8;background:radial-gradient(ellipse at 30% 0%,#f2fdffbf,transparent 58%),linear-gradient(150deg,#ddf6ff 0%,#9ddfff 22%,#70c8fc 43%,#b9ebff 65%,#55b1ed 100%);box-shadow:inset 0 2px 2px #f6fdff,inset 0 -5px 10px #195d9824,0 4px 0 #23669f,0 10px 18px #2867962b,0 0 22px #60bdf040}
.coin-collection-totals .coin-hero-art{display:block;width:70px;height:72px;margin:0 auto 8px;filter:drop-shadow(0 4px 2px #91571440) drop-shadow(0 0 8px #fff6b873)}
.coin-collection-totals .coin-star-hero .coin-hero-art{filter:drop-shadow(0 4px 2px #1b5b9340) drop-shadow(0 0 9px #f7fbff8c)}
.coin-collection-totals .coin-hero-art svg{width:100%;height:100%}
.coin-collection-totals h3{margin:4px 0;color:#58380d;font-size:18px;line-height:1.3;text-shadow:0 1px #fff5bc}
.coin-collection-totals .coin-balance{margin:6px 0;font-size:clamp(32px,8vw,48px);font-weight:900;line-height:1.15;color:#58380d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-shadow:0 2px #fff6c1}
.coin-collection-totals .coin-star-hero :is(h3,.coin-balance){color:#0c3c67;text-shadow:0 1px #e9faff}
.coin-collection-totals p:not(.coin-balance){margin:4px 0;font-size:14px;line-height:1.45;color:#62420f}
.coin-collection-totals .coin-star-hero p:not(.coin-balance){color:#18466b}
.coin-wallet-explanation,.coin-purchase-help{color:#365c80;font-size:15px;line-height:1.5;text-align:center;margin:16px auto;max-width:470px}
.coin-extra-detail{font-size:14px;line-height:1.5;color:#254b60;margin:0;max-width:240px}
.coin-extra-price{font-size:13px;color:#365166;font-weight:700}
.coin-area .coin-extra{display:flex;flex-direction:column;align-items:center;text-align:center}
.coin-area .coin-extra>.back-tile{margin-top:auto}
.coin-area .coin-wallet-explanation{margin-bottom:8px}
.coin-area .coin-buy{position:relative;isolation:isolate;overflow:hidden;margin:8px auto 6px;max-width:420px;box-shadow:inset 0 2px 2px #e1ffed8c,inset 0 -3px 7px #05562d33,0 5px 0 #066d3d,0 9px 15px #0874452b,0 0 23px 3px #25d58d4d;animation:sano-wallet-buy-float 5.8s ease-in-out infinite}
.coin-area .coin-buy::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;background:linear-gradient(112deg,transparent 25%,#effff652 48%,#ffffff12 59%,transparent 76%);transform:translateX(-125%);animation:sano-wallet-buy-shine 8.4s ease-in-out infinite}
.coin-area .coin-buy>span{position:relative;z-index:1}
.coin-area .coin-buy:is(:hover,:focus-visible){animation-play-state:paused}
.coin-area .coin-buy:active{animation:none;translate:none}
@keyframes sano-wallet-buy-float{0%,100%{translate:0 0}50%{translate:0 -3px}}
@keyframes sano-wallet-buy-shine{0%,48%{transform:translateX(-125%)}82%,100%{transform:translateX(125%)}}
body[data-page-hidden=true] .coin-area .coin-buy,body[data-page-hidden=true] .coin-area .coin-buy::before{animation-play-state:paused}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-area .coin-buy{animation:none;translate:none}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-area .coin-buy::before{animation:none;transform:none;opacity:.25}
@media(prefers-reduced-motion:reduce){.coin-area .coin-buy{animation:none;translate:none}.coin-area .coin-buy::before{animation:none;transform:none;opacity:.25}}
@media(forced-colors:active){.coin-area .coin-buy{animation:none;translate:none;background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}.coin-area .coin-buy::before{display:none}}
.coin-buy small{display:block;font-size:14px;line-height:1.5;font-weight:700}
.coin-reward-preview{box-sizing:border-box;width:100%;padding:18px;border:2px solid white;border-radius:24px;background:#f0e8ff;text-align:center;margin:22px 0;color:#493871}
.coin-reward-preview>span{display:inline-block;width:42px;height:44px}.coin-reward-preview svg{width:100%;height:100%}
.coin-reward-preview h3{margin:7px 0;font-size:19px}.coin-reward-preview p{font-size:14px;line-height:1.5;margin:8px auto;max-width:440px}
.coin-future-art{display:grid;place-items:center;width:58px;height:62px;margin:0 auto;filter:none;opacity:1}.coin-future-art svg{width:100%;height:100%}
.topic-coming-soon{margin:35px auto 16px;padding-top:20px;width:100%;border-top:2px solid #9cc8e74d}
.topic-coming-soon>h2{font-size:20px;color:#496a86;text-align:center;margin:0 0 20px}.topic-coming-soon .practice-invitation{margin-block:12px}
@media(max-width:380px){.coin-collection-totals{gap:10px}.coin-collection-totals>section{padding:14px 8px}.coin-collection-totals h3{font-size:16px}.coin-collection-totals p:not(.coin-balance){font-size:13px}.coin-extra-detail{font-size:13px}}
@media(forced-colors:active){.coin-collection-totals>section,.coin-collection-totals>.coin-star-hero,.coin-reward-preview{background:Canvas;border-color:CanvasText;box-shadow:none}.coin-collection-totals>section::before{display:none}.coin-collection-totals .coin-hero-art,.coin-collection-totals .coin-star-hero .coin-hero-art{filter:none}.coin-collection-totals :is(h3,p,.coin-balance),.coin-collection-totals .coin-star-hero :is(h3,p,.coin-balance),.coin-wallet-explanation,.coin-purchase-help,.coin-extra-detail,.coin-extra-price,.coin-reward-preview,.topic-coming-soon>h2{color:CanvasText;text-shadow:none}}

.topic-coming-soon>.topic-coming-soon-heading{width:min(230px,70%);margin:0 auto 16px;line-height:0}.topic-coming-soon-heading>svg{display:block;width:100%;height:auto;max-height:52px}

/* A compact collection, using the same rounded lettering as the return button. */
.coin-backdrop .coin-dialog .coin-area :is(.coin-area-title,.coin-coming-title,.coin-extras>h3){font:850 clamp(20px,4.8vw,24px)/1.35 var(--joy-font,ui-rounded,system-ui,sans-serif);letter-spacing:0;color:#17549c;text-align:center;margin:15px auto 18px}
.coin-backdrop .coin-dialog .coin-area .coin-extra{padding:18px 12px 14px;gap:8px}
.coin-backdrop .coin-dialog .coin-area .coin-extra-art{width:min(92px,100%);height:92px;margin:32px 0 1px}
.coin-extra-art .coin-games-art{position:relative;display:block;width:100%;height:100%}
.coin-extra-art .coin-games-art .coin-games-mountain{position:absolute;left:0;bottom:0;width:86%;height:86%;object-fit:contain}
.coin-extra-art .coin-games-art .coin-games-kite{position:absolute;right:0;top:0;width:65%;height:65%;object-fit:contain;filter:drop-shadow(0 2px 2px #234f7333)}
.coin-backdrop .coin-dialog .coin-area .coin-extra>strong{font-size:18px;min-height:2.5em}
.coin-backdrop .coin-dialog .coin-area .coin-extra-status{font-size:13px;min-height:0}
.coin-backdrop .coin-dialog .coin-area .coin-extra>.back-tile{width:auto;font-size:14px;line-height:1.25;min-height:44px;padding:6px 12px;border-radius:16px}
.coin-backdrop .coin-dialog .coin-area :is(.coin-language-grid,.coin-future-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;margin:14px 0}
.coin-backdrop .coin-dialog .coin-area .coin-language{min-width:0;min-height:0;padding:0;border-radius:23px}
.coin-backdrop .coin-dialog .coin-area .coin-language>.game-tile-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-height:146px;padding:15px 9px 12px}
.coin-backdrop .coin-dialog .coin-area .coin-language .collection-flag{width:58px;height:42px;margin:0 auto 5px}
.coin-backdrop .coin-dialog .coin-area .coin-language strong{font-size:16px;line-height:1.25;min-height:0}
.coin-backdrop .coin-dialog .coin-area .coin-language small{font-size:12px;line-height:1.25;margin:0}
.coin-backdrop .coin-dialog .coin-area .coin-language .coin-coming-paid{width:20px;height:20px;top:7px;right:7px}
.coin-backdrop .coin-dialog .coin-area .coin-future-grid{margin-top:18px}
.coin-backdrop .coin-dialog .coin-area .coin-future-grid .game-tile-face{min-height:172px}
.coin-backdrop .coin-dialog .coin-area .coin-future-detail{font-size:12px;line-height:1.35;max-width:155px;color:#315672}
.coin-backdrop .coin-dialog .coin-area .multiplayer-preview{width:94px;height:62px;margin:0 auto;filter:none;opacity:1}
.coin-backdrop .coin-dialog .coin-area .multiplayer-friends{height:62px}
.coin-backdrop .coin-dialog .coin-area .multiplayer-friends span{width:39px;height:58px}
.coin-backdrop .coin-dialog .coin-area .multiplayer-friends img{width:100%;height:100%;object-fit:contain}
.coin-backdrop .coin-dialog .coin-area .multiplayer-friends i{font-size:17px}

.coin-backdrop .coin-dialog .coin-area .collection-flag svg,.coin-backdrop .coin-dialog .coin-area .coin-coming-paid svg{width:100%;height:100%;opacity:1}
.coin-balance-badge{background:linear-gradient(145deg,#fff8db,#ffdf75);color:#674516;border-color:#fff9e6;box-shadow:0 2px 5px #8055152e;text-shadow:0 1px #fff9dd}

/* Repeat the existing coloured divider and its gentle travelling light. */
#app .topic-landing .topic-coming-soon{position:relative;border-top:0;padding-top:28px}
#app .topic-landing .topic-coming-soon::before{content:"";position:absolute;top:0;left:5%;width:90%;height:4px;border-radius:9px;box-shadow:0 2px 8px #b57cce35;pointer-events:none;background-image:linear-gradient(105deg,transparent 35%,#fff9e7 49%,transparent 63%),linear-gradient(90deg,#d093d800,#bb70d5 20%,#c270bc 50%,#719ddb 80%,#719ddb00);background-size:48% 100%,100% 100%;background-repeat:no-repeat;background-position:-100% 0,0 0;animation:sano-divider-light 7.6s ease-in-out infinite}
body[data-page-hidden=true] #app .topic-coming-soon::before{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .topic-coming-soon::before{animation:none!important}
@media(prefers-reduced-motion:reduce){#app .topic-landing .topic-coming-soon::before{animation:none}}

/* Rainbow Pencil shares the warm metallic finish of the SANO Games tile.
   Only the artwork is blurred when locked; the label, price and coin stay clear. */
.drawing-rainbow .rainbow-tool{
 position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;
 width:min(340px,100%);min-height:68px;gap:12px;padding:10px 22px;
 border:3px solid #fff3be;border-bottom:6px solid #be8215;border-radius:25px;
 background:linear-gradient(150deg,#fff8cc 0%,#ffe776 18%,#f2ba24 39%,#ffe16a 52%,#ffd23f 73%,#e7a71e 100%);
 color:#674414;text-shadow:0 1px 0 #fff5bc;
 box-shadow:inset 0 2px 2px #fffde8,inset 0 -4px 8px #9e641527,0 4px 0 #b67d13,0 8px 15px #94672324,0 0 25px #ffd34166;
 touch-action:manipulation;transition:translate .16s ease,box-shadow .16s ease;
}
.drawing-rainbow .rainbow-tool::before{
 content:"";position:absolute;z-index:-1;inset:-100% -80%;pointer-events:none;
 background:linear-gradient(112deg,transparent 42%,#fffdf4b3 48%,#ffffff30 52%,transparent 58%);
 transform:translateX(-65%);animation:sano-gold-shine 7.2s ease-in-out infinite;
}
.drawing-rainbow .rainbow-tool strong{font-size:18px;line-height:1.3;font-weight:900}
.drawing-rainbow .rainbow-tool small{margin-top:4px;font-size:12px;line-height:1.35;font-weight:700}
.drawing-rainbow .rainbow-tool .rainbow-tool-art{font-size:31px;flex:none;line-height:1}
.drawing-rainbow .rainbow-tool.is-paid-preview{padding-right:40px}
.drawing-rainbow .rainbow-tool .rainbow-paid-corner{top:5px;right:7px;width:23px;height:23px}
.drawing-rainbow .rainbow-tool[aria-checked=true]{box-shadow:inset 0 2px 2px #fffde8,inset 0 -4px 8px #9e641527,0 4px 0 #b67d13,0 0 0 2px #f9d14e88,0 0 25px #ffd34166}
.drawing-rainbow .rainbow-tool:active:not(:disabled){translate:0 2px;box-shadow:inset 0 2px 2px #fffde8,0 2px 0 #b67d13,0 0 24px #ffd34166}
.drawing-rainbow .rainbow-tool:focus-visible{outline:3px solid #0867ed;outline-offset:5px}
body[data-page-hidden=true] .drawing-rainbow .rainbow-tool::before{animation-play-state:paused}
body[data-motion=reduce] .drawing-rainbow .rainbow-tool{transition:none;translate:none}
body[data-motion=reduce] .drawing-rainbow .rainbow-tool::before{animation:none;transform:none;opacity:.25}
@media(prefers-reduced-motion:reduce){
 .drawing-rainbow .rainbow-tool{transition:none;translate:none}
 .drawing-rainbow .rainbow-tool::before{animation:none;transform:none;opacity:.25}
}
@media(forced-colors:active){
 .drawing-rainbow .rainbow-tool{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none;text-shadow:none}
 .drawing-rainbow .rainbow-tool::before{display:none}
 .drawing-rainbow .rainbow-tool[aria-checked=true]{outline:2px solid Highlight;box-shadow:none}
}

/* A short wallet overview: balances, two clear actions, then four destinations. */
.coin-backdrop .coin-dialog .coin-area{gap:12px}
.coin-backdrop .coin-dialog .coin-area .coin-earn{box-sizing:border-box;width:100%;max-width:420px;min-height:48px;margin:0 auto;padding:10px 14px;font-size:clamp(17px,4.7vw,21px);line-height:1.3}
.coin-backdrop .coin-dialog .coin-area .coin-earn:disabled{cursor:wait}
.coin-backdrop .coin-dialog .coin-area .coin-earn-notice{margin:0;color:#234f73;font-size:15px;line-height:1.4}
.coin-backdrop .coin-dialog .coin-area .coin-extras{margin:6px 0 0;gap:14px}
.coin-backdrop .coin-dialog .coin-area .coin-extras>h3{margin:5px auto 2px}
.coin-backdrop .coin-dialog .coin-area .coin-extra{min-width:0}
.coin-backdrop .coin-dialog .coin-area .coin-extra>.back-tile{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}


.coin-backdrop .coin-dialog-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.coin-backdrop .coin-dialog-top>.coin-play-back{flex:none}
.coin-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.coin-header-tools .screen-text-choice{position:static;flex:none}
.coin-access-area .coin-buy,.coin-backdrop .coin-dialog .coin-access-area .coin-earn{margin:0 auto;min-height:76px;border-color:#fff3be;border-bottom-color:#be8215;background:linear-gradient(150deg,#fff8cc 0%,#ffe776 18%,#f2ba24 39%,#ffe16a 52%,#ffd23f 73%,#e7a71e 100%);color:#674414;text-shadow:0 1px #fff5bc;box-shadow:inset 0 2px 2px #fffde8,inset 0 -4px 8px #9e641527,0 4px 0 #b67d13,0 8px 15px #94672324}
.coin-unlock-pending{padding:24px;color:#17549c;font-weight:800}
.rainbow-price-badge{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;vertical-align:middle}
.rainbow-price-badge>svg{position:absolute;inset:0;width:100%;height:100%}
.rainbow-price-badge>b{position:relative;display:grid;place-items:center;box-sizing:border-box;min-width:25px;min-height:25px;padding:1px 2px;border-radius:50%;background:#ffd45d;color:#65400a;font:900 17px/1.1 var(--joy-font,ui-rounded,system-ui,sans-serif);text-shadow:0 1px #fff4ba}
.drawing-rainbow .rainbow-tool.is-paid-preview{padding-right:61px}
.drawing-rainbow .rainbow-tool .rainbow-paid-corner{top:9px;right:9px;width:44px;height:44px}
.coin-area .coin-extra .coin-extra-price-badge{width:44px;height:44px;top:6px;right:6px}
.coin-area .coin-extra .coin-extra-price-badge .rainbow-price-badge{width:100%;height:100%}
@media(forced-colors:active){.rainbow-price-badge>b{background:Canvas;color:CanvasText;border:1px solid CanvasText}.coin-access-area .coin-buy,.coin-backdrop .coin-dialog .coin-access-area .coin-earn{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none;text-shadow:none}}


/* Compact, equally weighted wallet actions; both keep the travelling shine. */
.coin-backdrop .coin-dialog .coin-area .coin-buy{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;
 width:min(340px,100%);max-width:340px;min-height:62px;margin:2px auto 6px;padding:10px 16px;gap:10px;
 border:3px solid #fff3be;border-bottom:6px solid #be8215;border-radius:23px;
 background:linear-gradient(150deg,#fff8cc 0%,#ffe776 18%,#f2ba24 39%,#ffe16a 52%,#ffd23f 73%,#e7a71e 100%);
 color:#674414;font-size:clamp(17px,4.7vw,20px);line-height:1.3;text-shadow:0 1px #fff5bc;
 box-shadow:inset 0 2px 2px #fffde8,inset 0 -4px 8px #9e641527,0 4px 0 #b67d13,0 8px 15px #94672324,0 0 20px #ffd34144;
}
.coin-backdrop .coin-dialog .coin-area .coin-buy .coin-buy-sparkle{flex:none;width:37px;height:37px}
.coin-backdrop .coin-dialog .coin-area .coin-buy .coin-buy-sparkle>svg{width:100%;height:100%}
.coin-backdrop .coin-dialog .coin-area .coin-earn{
 border-color:#ffd1d7;border-bottom-color:#b7233d;
 background:linear-gradient(150deg,#ff8b97 0%,#ff5168 30%,#ed2448 63%,#ff6177 100%);
 color:#fff;text-shadow:0 1px #a71b36;
 box-shadow:inset 0 2px 2px #ffe6eb,inset 0 -4px 8px #a51b3527,0 4px 0 #a91e38,0 8px 15px #a32c4824,0 0 20px #ff4b6944;
}
.coin-backdrop .coin-dialog .coin-area .coin-earn::before{animation-delay:-2.5s}
.coin-backdrop .coin-dialog .coin-collection-totals>section{padding-block:15px 12px}
.coin-backdrop .coin-dialog .coin-collection-totals .coin-hero-art{margin-bottom:0}
/* The old wallet footer's p:last-child rule also caught the sole zero/count.
   Match both totals explicitly, including zero and multi-digit balances. */
.coin-backdrop .coin-dialog .coin-collection-totals .coin-balance,
.coin-wallet-hero[data-coin-balance-tile]>.coin-balance{
 margin:3px 0 0;font:900 clamp(32px,8vw,48px)/1.15 var(--joy-font,ui-rounded,system-ui,sans-serif);
 font-variant-numeric:lining-nums tabular-nums;letter-spacing:normal;
}
body[data-interface-language=ne] .coin-backdrop .coin-dialog .coin-collection-totals .coin-balance,
body[data-interface-language=ne] .coin-wallet-hero[data-coin-balance-tile]>.coin-balance{font-family:SanoDevanagari,var(--joy-font,system-ui,sans-serif)}
.coin-backdrop .coin-dialog .coin-dialog-top{position:relative;top:auto;min-height:48px;margin:0 0 10px;padding:0;gap:8px;background:transparent;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:76px;max-width:28%;margin:0}
.coin-backdrop .coin-dialog .coin-dialog-close{
 display:grid;place-items:center;flex:none;box-sizing:border-box;min-width:44px;width:44px;min-height:44px;height:44px;
 padding:0;border:2px solid #fff;border-bottom:4px solid #90bddd;border-radius:16px;
 background:linear-gradient(145deg,#f4fbff,#d7eeff);color:#23567c;box-shadow:inset 0 1px #fff,0 3px 8px #32648b1c;
 font:800 29px/1 var(--joy-font,ui-rounded,system-ui,sans-serif);touch-action:manipulation;
}
.coin-backdrop .coin-dialog .coin-dialog-close:focus-visible{outline:3px solid #0867ed;outline-offset:3px}
.coin-backdrop .coin-dialog .coin-dialog-close:active{translate:0 2px}
.coin-backdrop .coin-dialog .coin-header-tools{position:relative;z-index:1}
@media(forced-colors:active){
 .coin-backdrop .coin-dialog .coin-area .coin-buy,.coin-backdrop .coin-dialog .coin-dialog-close{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none;text-shadow:none}
}

/* Coin prompts rise from the bottom and keep the activity's familiar canvas.
   The uncovered game remains a generous, tappable dismissal area. */
.coin-backdrop:not([data-talk-view=true]){
 display:flex;align-items:flex-end;justify-content:center;overflow:hidden;overscroll-behavior:none;
 padding:max(24px,env(safe-area-inset-top)) 0 0;
 background:#24416d33;backdrop-filter:blur(14px) saturate(.85);-webkit-backdrop-filter:blur(14px) saturate(.85);
}
.coin-backdrop:not([data-talk-view=true])>.coin-dialog{
 --coin-dialog-pad:clamp(16px,4vw,24px);width:min(650px,100%);height:auto;min-height:0;max-height:75vh;max-height:75dvh;margin:0;
 padding:0 max(var(--coin-dialog-pad),env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(var(--coin-dialog-pad),env(safe-area-inset-left));border:0;border-radius:30px 30px 0 0;
 background:var(--sano-canvas,radial-gradient(ellipse at 1% 7%,#ffe3f0,transparent 48%),radial-gradient(ellipse at 100% 15%,#d5efff,transparent 52%),#f5faff);
 box-shadow:0 -10px 42px #274d6b30;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:auto;
}
.coin-backdrop[data-coin-view=access]>.coin-dialog{width:min(490px,100%)}
.coin-backdrop:not([data-talk-view=true])[data-overlay-state]>.coin-dialog{transition:transform 180ms cubic-bezier(.2,.75,.25,1)}
.coin-backdrop:not([data-talk-view=true]):is([data-overlay-state=entering],[data-overlay-state=closing])>.coin-dialog{transform:translateY(100%)}
.coin-backdrop .coin-dialog .coin-dialog-top{position:relative;display:flex;flex-wrap:nowrap;align-items:center;min-height:82px;margin:0 0 8px;padding:31px 0 9px;gap:10px;background:transparent;border:0}
.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle{top:0;left:0;width:100%;max-width:none;min-width:0;height:30px;transform:none;margin:0}
.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle::before{left:calc(50% - 22px)}
.coin-sheet-brand{display:block;flex:0 1 114px;min-width:76px;color:#0867ed;line-height:0}
.coin-sheet-brand>.sano-wordmark{display:block;width:100%;height:auto;max-height:44px}
.coin-backdrop .coin-dialog .coin-header-tools{min-width:0;gap:9px}
.coin-backdrop .coin-dialog .coin-dialog-close{min-width:40px;width:40px;min-height:40px;height:40px;border-color:#ffd1d7;border-bottom-color:#b7233d;background:linear-gradient(145deg,#ff7c90,#ed2448);color:#fff;box-shadow:inset 0 1px #ffe6eb,0 3px 0 #b7233d,0 0 12px #ff4b6933}
.coin-backdrop .coin-dialog .coin-access-area{padding:8px 0 12px;margin:0;gap:14px}
@media(max-width:360px){.coin-backdrop .coin-dialog .coin-header-tools{gap:6px}.coin-sheet-brand{flex-basis:90px}}
@media(prefers-reduced-motion:reduce){.coin-backdrop:not([data-talk-view=true])[data-overlay-state]>.coin-dialog{transition:none}}
@media(forced-colors:active){.coin-backdrop:not([data-talk-view=true])>.coin-dialog{background:Canvas;color:CanvasText;border:1px solid CanvasText}.coin-sheet-brand{color:LinkText}.coin-backdrop .coin-dialog .coin-dialog-close{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}}


/* Activity top-up choices float at the centre of the current, blurred game.
   The ordinary Coins view keeps its approved bottom-sheet layout. */
.coin-backdrop[data-coin-view=access]:not([data-talk-view=true]){
 align-items:center;justify-content:center;
 padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
 background:transparent;backdrop-filter:blur(14px) saturate(.85);-webkit-backdrop-filter:blur(14px) saturate(.85);
}
.coin-backdrop[data-coin-view=access]:not([data-talk-view=true])>.coin-dialog{
 box-sizing:border-box;width:min(390px,100%);height:auto;max-height:100%;min-height:0;padding:10px;margin:0;
 background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;
}
.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-content:center;gap:18px;padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.coin-backdrop[data-coin-view=access]:not([data-talk-view=true])>.coin-dialog .coin-access-area>.coin-buy{
 display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;width:min(280px,100%);max-width:280px;min-width:0;min-height:62px;aspect-ratio:auto;
 margin:0 auto;padding:10px 12px;border-radius:20px;text-align:center;font-size:clamp(17px,4.7vw,20px);line-height:1.3;
}
.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area .coin-buy .coin-buy-sparkle{width:32px;height:32px;flex:0 0 32px}
.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area .coin-earn-status{position:relative;z-index:1;max-width:100%;font-size:12px;font-weight:700;line-height:1.35}
@media(max-height:360px){.coin-backdrop[data-coin-view=access]:not([data-talk-view=true])>.coin-dialog{width:min(320px,100%)}.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area{gap:18px}}
@media(forced-colors:active){.coin-backdrop[data-coin-view=access]:not([data-talk-view=true])>.coin-dialog{background:transparent;border:0;box-shadow:none}.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area>.coin-buy{background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none;text-shadow:none}}

/* Price overlaps the stable tool corner; the coin itself never animates. */
.drawing-rainbow .rainbow-tool{overflow:visible}
.drawing-rainbow .rainbow-tool::before{inset:0;border-radius:inherit;transform:none;background:linear-gradient(112deg,transparent 20%,#fffdf49e 48%,transparent 76%);background-size:240% 100%;animation:sano-rainbow-sheen 5s ease-in-out infinite}
.drawing-rainbow .rainbow-tool .rainbow-paid-corner{top:-15px;right:-12px;width:44px;height:44px;z-index:2;pointer-events:none;animation:none;transform:none;filter:none}
.drawing-rainbow .rainbow-price-badge,.drawing-rainbow .rainbow-price-badge>svg{animation:none;transform:none}
@keyframes sano-rainbow-sheen{0%,25%{background-position:140% 0}75%,100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.drawing-rainbow .rainbow-tool::before{animation:none}}
body:is([data-motion=reduce],[data-reduced-motion=true]) .drawing-rainbow .rainbow-tool::before{animation:none}

/* Keep the coin header clear and the balances compact. */
.coin-backdrop:not([data-talk-view=true]) .coin-dialog-top{column-gap:24px;margin-bottom:12px}
.coin-backdrop:not([data-talk-view=true]) .coin-header-tools{margin-inline-start:auto;padding-inline-start:8px;gap:12px}
.coin-backdrop .coin-dialog .coin-collection-totals>section{gap:0;padding-block:12px 9px;min-height:0}
.coin-backdrop .coin-dialog .coin-collection-totals .coin-hero-art{margin:0 auto}
.coin-backdrop .coin-dialog .coin-collection-totals .coin-balance{margin:0;line-height:1.1}
.coin-backdrop .coin-dialog .coin-area :is(.coin-buy,.coin-earn),
.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area :is(.coin-buy,.coin-earn){width:min(280px,100%);max-width:280px}

/* Keep every rainbow price anchored; animate only the pencil artwork and shine. */
.drawing-rainbow .rainbow-tool{overflow:visible;animation:none!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important}
.drawing-rainbow{overflow:visible}
.rainbow-paid-corner,.coin-extra-price-badge,.rainbow-price-badge,.rainbow-price-badge>svg,.rainbow-price-badge>b{animation:none!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important;transition:none!important}
.rainbow-price-badge svg *{animation:none!important;transition:none!important}
.coin-area .coin-extra[data-feature=rainbow-pencil]>.coin-extra-corner{top:6px;right:6px;z-index:3;overflow:visible}
.coin-area .coin-extra-price-badge{position:absolute;display:block;width:44px;height:44px;pointer-events:none}
.drawing-rainbow .rainbow-tool .rainbow-paid-corner{top:-12px;right:-8px;overflow:visible}

/* Give the wallet's logo, language controls and collection their own space. */
.coin-backdrop[data-coin-view=coins] .coin-dialog .coin-dialog-top{min-height:110px;padding:38px 0 18px;margin-bottom:24px;column-gap:24px}
.coin-backdrop[data-coin-view=coins] .coin-dialog>.coin-area{margin-top:12px}
.coin-backdrop .coin-dialog .coin-sheet-brand,
.coin-backdrop .coin-dialog .coin-sheet-brand>.sano-wordmark{padding:0;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;filter:none}
.coin-backdrop .coin-dialog .coin-sheet-brand::before,
.coin-backdrop .coin-dialog .coin-sheet-brand::after{content:none}
.coin-backdrop .coin-dialog .coin-collection-totals{gap:18px;margin-bottom:8px}
@media(max-width:380px){.coin-backdrop[data-coin-view=coins] .coin-dialog .coin-dialog-top{column-gap:16px;margin-bottom:20px}.coin-backdrop .coin-dialog .coin-collection-totals{gap:14px}}

/* Four square destinations: the full face is one action, and its small coin
   travels with the same surface as the artwork, label and reflection. */
.coin-backdrop .coin-dialog .coin-area .coin-extras{
 width:min(390px,100%);margin:8px auto 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
}
.coin-backdrop .coin-dialog .coin-area .coin-extras>.coin-extras-heading{
 width:min(300px,96%);margin:10px auto 6px;line-height:0;color:#0666ef;
}
.coin-backdrop .coin-dialog .coin-area .coin-extras-heading>svg{display:block;width:100%;height:auto;max-height:94px}
.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile{
 position:relative;isolation:isolate;display:block;appearance:none;-webkit-appearance:none;
 box-sizing:border-box;width:100%;min-width:0;min-height:0;aspect-ratio:1;padding:0;gap:0;
 border:0;border-radius:26px;background:transparent;box-shadow:none;color:var(--topic-ink);
 overflow:visible;cursor:pointer;touch-action:manipulation;
 animation:sano-coin-extra-float 4.2s ease-in-out var(--coin-float-delay,0s) infinite;
 transition:scale .16s ease;
}
.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile::before{
 content:"";position:absolute;inset:-17px;z-index:-1;border-radius:50%;pointer-events:none;
 background:radial-gradient(ellipse closest-side,color-mix(in srgb,var(--topic-edge) 35%,transparent),color-mix(in srgb,var(--topic-edge) 12%,transparent) 67%,transparent);
}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{
 position:absolute;inset:0;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;
 box-sizing:border-box;min-width:0;min-height:0;padding:22px 8px 12px;gap:5px;overflow:hidden;border-radius:inherit;
 border:3px solid #fff;border-bottom:5px solid var(--topic-edge);
 background:linear-gradient(145deg,#ffffff55,transparent 66%),var(--topic-fill);color:var(--topic-ink);
 box-shadow:inset 0 2px 1px #ffffffad,0 4px 0 var(--topic-edge),0 8px 15px #28548818;
}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face::before{
 content:"";position:absolute;inset:-70% -85%;z-index:-1;pointer-events:none;
 background:linear-gradient(110deg,transparent 39%,#ffffff08 44%,#fffefb9c 49%,#ffffff25 55%,transparent 61%);
 transform:translateX(-55%);animation:sano-coin-extra-shine 3.6s ease-in-out var(--coin-float-delay,0s) infinite;
}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{
 display:grid;place-items:center;flex:0 1 76px;width:clamp(58px,18vw,76px);height:clamp(58px,18vw,76px);min-height:0;margin:0;
}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{
 display:block;flex:none;min-height:0;max-width:100%;margin:0;color:#d71952;
 font:900 clamp(14px,3.8vw,18px)/1.25 var(--joy-font);text-align:center;text-wrap:balance;overflow-wrap:normal;
}
.coin-backdrop .coin-dialog .coin-area[lang=ne] .coin-extra-tile strong{font-family:SanoDevanagariBold,var(--joy-font);font-size:clamp(13px,3.6vw,17px);line-height:1.35}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-corner{
 position:absolute;top:6px;right:6px;z-index:2;display:block;width:26px;height:26px;pointer-events:none;
}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-price-badge{width:30px;height:30px}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .rainbow-price-badge>b{min-width:17px;min-height:17px;padding:0;font-size:12px}
.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile:is(:hover,:focus-visible){animation-play-state:paused}
.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile:focus-visible{outline:3px solid #0867ed;outline-offset:5px}
.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile:active{animation-play-state:paused;scale:.97}
@keyframes sano-coin-extra-float{0%,100%{translate:0 0;rotate:-.4deg}50%{translate:0 -3px;rotate:.4deg}}
@keyframes sano-coin-extra-shine{0%,20%{transform:translateX(-55%)}65%,100%{transform:translateX(55%)}}
body[data-page-hidden=true] .coin-area button.coin-extra-tile,body[data-page-hidden=true] .coin-extra-tile>.coin-extra-face::before{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-area button.coin-extra-tile,
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-extra-tile>.coin-extra-face::before{animation:none!important;translate:none;rotate:none;transition:none}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-extra-tile>.coin-extra-face::before{transform:none;opacity:.2}
@media(prefers-reduced-motion:reduce){
 .coin-backdrop .coin-dialog .coin-area button.coin-extra-tile,.coin-extra-tile>.coin-extra-face::before{animation:none!important;translate:none;rotate:none;transition:none}
 .coin-extra-tile>.coin-extra-face::before{transform:none;opacity:.2}
}
@media(max-width:359px){
 .coin-backdrop .coin-dialog .coin-area .coin-extras{gap:14px}
 .coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{padding:20px 6px 9px;gap:3px;border-radius:23px}
 .coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{width:58px;height:58px;flex-basis:58px}
}
@media(forced-colors:active){
 .coin-backdrop .coin-dialog .coin-area button.coin-extra-tile{animation:none;translate:none;rotate:none}
 .coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
 .coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{color:ButtonText}
 .coin-backdrop .coin-dialog .coin-area button.coin-extra-tile::before,.coin-extra-tile>.coin-extra-face::before{display:none}
}




/* Larger feature artwork with clear black labels, within the same tiles. */
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile{min-height:190px}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{width:clamp(76px,21vw,96px);height:clamp(76px,21vw,96px);flex:0 0 clamp(76px,21vw,96px);max-width:80%}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{color:#000;text-shadow:none}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{padding-top:25px;gap:6px}
@media(max-width:380px){.coin-backdrop .coin-dialog .coin-area .coin-extra-tile{min-height:158px}.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{width:72px;height:72px;flex-basis:72px}.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{gap:4px;padding:23px 6px 10px}}
@media(forced-colors:active){.coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{color:ButtonText;text-shadow:none}}

/* Larger artwork in the four available extras; two upcoming feature tiles. */
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile{min-height:206px}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{width:clamp(100px,27vw,122px);height:clamp(100px,27vw,122px);flex-basis:clamp(100px,27vw,122px);max-width:90%}
.coin-backdrop .coin-dialog .coin-area .coin-language>.game-tile-face{min-height:180px}
.coin-language-flags{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:5px;width:112px;height:88px}
.coin-language-flags>span{display:block;width:32px;height:26px}.coin-language-flags svg{width:100%;height:100%}
.coin-backdrop .coin-dialog .coin-area .coin-future-art{display:grid;place-items:center;width:88px;height:88px}.coin-future-art svg{width:100%;height:100%}
.coin-coming-notice{margin:12px 0;color:#9e2544;font-size:14px;text-align:center}
@media(max-width:380px){.coin-backdrop .coin-dialog .coin-area .coin-extra-tile{min-height:190px}}

/* Keep two-line titles centred beneath the artwork, clear of the tile edges. */
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{padding:22px 14px 18px;gap:8px}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{flex-shrink:1}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{display:grid;place-items:center;align-self:stretch;box-sizing:border-box;width:100%;min-height:2.5em;text-align:center}
@media(max-width:380px){.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{padding:20px 10px 16px;gap:6px}}

/* Keep the logo, drag handle and language controls above scrolling extras. */
.coin-backdrop:not([data-talk-view=true]):not([data-coin-view=access])>.coin-dialog>.coin-dialog-top{
 position:sticky;top:0;z-index:10;box-sizing:border-box;
 margin-inline:calc(-1 * max(var(--coin-dialog-pad),env(safe-area-inset-left))) calc(-1 * max(var(--coin-dialog-pad),env(safe-area-inset-right)));
 padding-inline:max(var(--coin-dialog-pad),env(safe-area-inset-left)) max(var(--coin-dialog-pad),env(safe-area-inset-right));
 background:linear-gradient(180deg,#f5faffeb,#f5faffb3);
 backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);
}
.coin-backdrop:not([data-talk-view=true])>.coin-dialog{scroll-padding-top:125px}
/* Each purchasable extra keeps one full-width row in every orientation. */
body>.coin-backdrop .coin-dialog .coin-area .coin-extras{width:min(520px,100%);grid-template-columns:minmax(0,1fr)}
body>.coin-backdrop .coin-dialog .coin-area .coin-extras>.coin-extras-heading{grid-column:1}
body>.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile{display:flex;align-items:stretch;aspect-ratio:auto;min-height:112px}
body>.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{position:relative;inset:auto;display:flex;flex-direction:row;width:100%;min-height:112px;padding:14px 42px 14px 16px;gap:14px}
body>.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{width:76px;height:76px;flex:0 0 76px;max-width:30%;margin:0}
body>.coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{display:block;align-self:center;flex:1 1 0;min-width:0;min-height:0;width:auto;text-align:left;font-size:clamp(17px,4.8vw,21px);overflow-wrap:anywhere}
body>.coin-backdrop .coin-dialog>.coin-sheet-scroll{overflow-anchor:none}
@media(forced-colors:active){.coin-backdrop:not([data-talk-view=true]):not([data-coin-view=access])>.coin-dialog>.coin-dialog-top{background:Canvas;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-transparency:reduce){.coin-backdrop:not([data-talk-view=true]):not([data-coin-view=access])>.coin-dialog>.coin-dialog-top{background:#f5faff;backdrop-filter:none;-webkit-backdrop-filter:none}}
.coin-backdrop .coin-dialog .coin-area :is(.coin-family,.coin-manage){display:flex;align-items:center;justify-content:center;min-height:54px;font:850 19px/1.4 var(--joy-font);text-align:center}
.coin-backdrop .coin-dialog .coin-area .coin-buy::before,.coin-backdrop .coin-dialog .coin-area .coin-extra-face::before{background:radial-gradient(ellipse at 35% 25%,#ffffff80,transparent 68%);inset:0;transform:none;animation:sano-wallet-soft-glow 5s ease-in-out infinite}
.coin-backdrop .coin-dialog .coin-area .coin-collection-totals>section{animation:sano-wallet-buy-float 5.8s ease-in-out infinite}
.coin-backdrop .coin-dialog .coin-area .coin-collection-totals>.coin-star-hero{animation-delay:-2.9s}
@keyframes sano-wallet-soft-glow{0%,100%{opacity:.35}50%{opacity:.7}}
body[data-page-hidden=true] .coin-area .coin-collection-totals>section{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-area :is(.coin-collection-totals>section,.coin-buy::before,.coin-extra-face::before){animation:none!important;translate:none}
@media(prefers-reduced-motion:reduce){.coin-backdrop .coin-dialog .coin-area :is(.coin-collection-totals>section,.coin-buy::before,.coin-extra-face::before){animation:none!important;translate:none}}


/* The earned shop uses game coins, with its balance visible before opening. */
.coin-play-shop>span:last-child{display:flex;flex-direction:column;gap:3px}.coin-play-shop small{font:650 14px/1.4 var(--joy-font);color:#58758a}.coin-play-shop .coin-buy-sparkle{width:54px;height:54px}

/* A visible escape from access offers, and bounded currency artwork. */
.coin-backdrop .coin-dialog .coin-access-exit{justify-self:end;align-self:flex-end;display:grid;place-items:center;box-sizing:border-box;flex:none;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;margin:0 0 2px auto;border:2px solid white;border-radius:15px;background:#ffffffd9;color:#cf4e6d;font:700 30px/1 system-ui;box-shadow:0 3px 10px #163a5815;cursor:pointer}
.coin-backdrop .coin-dialog .coin-access-exit:focus-visible{outline:3px solid #166bcc;outline-offset:3px}
.coin-backdrop .coin-dialog .coin-collection-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.coin-backdrop .coin-dialog .coin-collection-totals>:is(.coin-wallet-hero,.coin-star-hero){min-width:0;min-height:132px;height:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:14px 8px;box-sizing:border-box;overflow:hidden}
.coin-backdrop .coin-dialog .coin-collection-totals .coin-hero-art{position:static;display:block;flex:none;width:clamp(44px,9vw,62px);height:clamp(44px,9vw,62px);margin:0;transform:none}
.coin-backdrop .coin-dialog .coin-collection-totals .coin-hero-art>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
.coin-backdrop .coin-dialog .coin-collection-totals .coin-balance{font-size:clamp(25px,6vw,36px);line-height:1.1;margin:0}.coin-play-wallet small{font-size:12px;line-height:1.3;text-align:center}
.coin-backdrop .coin-dialog .sano-sheet-handle,.parent-modal .sano-sheet-handle{border:0!important;box-shadow:none!important;background:transparent!important;outline:none;touch-action:none}
.coin-backdrop .coin-dialog .sano-sheet-handle:focus-visible,.parent-modal .sano-sheet-handle:focus-visible{outline:3px solid #176bc9;outline-offset:-3px}

/* Sano stylesheet: trace-layout.css */
/* Tracing only: close the unused gaps below the paper without changing the
   drawing surface, pointer coordinates, touch targets, or other topic layouts. */
.foundation-home.is-tracing .trace-stage>.companion-lane{
 min-height:0;margin:10px auto 10px;padding:8px 8px 4px;gap:14px;
}
.foundation-home.is-tracing .trace-controls{margin-top:10px}
.foundation-home.is-tracing .trace-stage>.drawing-rainbow{margin-top:14px;padding:4px 8px 8px}
.foundation-home.is-tracing .bilingual-caption{margin-block:8px}
.foundation-home.is-tracing .difficulty-note:empty{display:none}
@media(max-width:460px){
 .foundation-home.is-tracing .trace-stage>.companion-lane{margin-top:8px;margin-bottom:8px;padding-top:8px;gap:12px}
 .foundation-home.is-tracing .trace-controls{margin-top:8px}
 .foundation-home.is-tracing .trace-stage>.drawing-rainbow{margin-top:12px;padding-bottom:6px}
}

/* Learn keeps its title, action and pictures together; progress stays below. */
.foundations-shell:has(.simple-topic-picker,.simple-learning-activity,.shapes-colours)> :where(.sano-page-scroll) >.learning-course-control{display:none}
.simple-topic-picker{padding-top:0}
.simple-topic-picker>.brand-heading{margin:4px auto 18px}
.topic-play-button{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 24px;min-width:180px;min-height:64px;font-weight:900}
.simple-topic-picker .topic-grid{margin-top:8px}
.simple-topic-picker .topic-tile{position:relative;min-width:0}
.simple-topic-picker .topic-entry-face{animation:none;min-height:128px}
.simple-topic-picker .topic-entry-face .learning-entry-label{font-weight:900}
.simple-topic-picker .world-entry-picture{display:flex;align-items:center;justify-content:center;width:90px;height:90px}
.simple-topic-picker .world-entry-picture>:is(img,svg){width:100%;height:100%;object-fit:contain}
.topic-entry-star{position:absolute;z-index:3;right:8px;top:8px;width:36px;height:38px;pointer-events:none}
.topic-entry-star svg{width:100%;height:100%}
.lesson-stars-footer{display:flex;justify-content:center;margin:24px auto 8px;padding-top:8px;width:100%}
.lesson-stars-footer .topic-progress{margin:0 auto;position:static}
.simple-learning-activity .foundation-focus{padding-top:0}
.simple-learning-activity .activity-content{padding-top:0}
.simple-learning-activity.is-tracing .sano-tip{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.simple-learning-activity.is-tracing .trace-stage>.companion-lane{position:relative;min-height:0;margin:2px auto 6px;padding:0;justify-content:center}
.simple-learning-activity.is-tracing .trace-stage>.companion-lane>.sano-guide{width:82px;height:82px;min-height:0}
.simple-learning-activity.is-tracing .drawing-rainbow p{display:none}
.simple-learning-activity .feedback:empty,.simple-learning-activity .game-actions:has(#continue[hidden]){display:none}
.simple-learning-activity.is-discovery .big-object{margin:6px auto;width:min(290px,68vw);height:min(290px,68vw);background:transparent;border:0;box-shadow:none}
.simple-learning-activity.is-discovery #revealed-word{margin:8px auto}
.simple-learning-activity.is-discovery .tap-invitation{margin:8px auto;font-weight:800}
.simple-learning-activity.is-discovery .game-actions{margin-top:16px}
.step-prompt.celebration-ready [data-step-action=back]{--celebration-top:#5babff;--celebration-bottom:#1684e8;--celebration-edge:#0872ce;--celebration-glow:#5babff45}
@media(max-width:460px){
 .simple-topic-picker>.brand-heading{margin-bottom:14px}
 .simple-topic-picker .topic-grid{gap:14px}
 .simple-topic-picker .topic-entry-face{padding:12px 7px;min-height:112px}
 .simple-topic-picker .world-entry-picture{width:76px;height:76px}
 .lesson-stars-footer{margin-top:20px}
}

/* Discovery lessons share the tracing lesson's familiar Listen control. */
#app .discovery-stage{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:min(100%,460px);margin:0 auto;padding:4px 12px 12px;box-sizing:border-box;}
#app .discovery-controls{display:flex;justify-content:center;gap:12px;margin:8px auto 0;}
#app .discovery-stage .trace-listen{min-width:150px;}
#app .nepal-hub-screen .nepal-discovery-heading{width:min(100%,390px);margin:4px auto 24px;}
#app .nepal-hub-screen .nepal-discovery-heading svg{display:block;width:100%;max-height:140px;}
#app .nepal-hub-screen .nepal-category-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;width:min(100%,242px);margin:0 auto 20px;}
#app .nepal-hub-screen .nepal-category{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;box-sizing:border-box;aspect-ratio:1;min-height:0;padding:18px;text-align:center;}
#app .nepal-hub-screen .nepal-category>strong{flex:none;width:100%;font-size:clamp(19px,4vw,23px);line-height:1.3;text-align:center;}
#app .nepal-hub-screen .nepal-category>span{position:relative;flex:0 0 108px;display:grid;place-items:center;width:108px;height:108px;isolation:isolate;contain:paint;}
#app .nepal-hub-screen .nepal-category img{display:block;width:108px;height:108px;object-fit:contain;}
#app .nepal-hub-screen .nepal-money-category>.nepal-money-picture{overflow:hidden;}
#app .nepal-money-category .currency-card{position:absolute;display:block;width:86px;height:72px;padding:0;margin:0;border:0;background:none;box-shadow:none;}
#app .nepal-money-category .currency-card:first-child{left:4px;top:34px;z-index:2;width:62px;transform:rotate(-10deg);}
#app .nepal-money-category .currency-card:last-child{right:4px;top:16px;transform:rotate(10deg);}
#app .nepal-money-category .currency-card svg{width:100%;height:100%;object-fit:contain;}
#app .nepal-money-category .currency-card small{display:none;}
#app .nepal-sequential-discovery .nepal-discover-object{display:block;position:relative;isolation:isolate;width:clamp(200px,54vw,290px);height:clamp(200px,54vw,290px);max-width:100%;padding:0;margin:0 auto;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;}
#app .nepal-sequential-discovery .nepal-discover-object::before,#app .nepal-sequential-discovery .nepal-discover-object::after{content:none;}
#app .nepal-sequential-discovery .nepal-discovery-picture{display:block;width:100%;height:100%;max-width:none;}
#app .nepal-sequential-discovery .nepal-discovery-picture img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;}
#app .nepal-sequential-discovery .nepal-discovery-text{flex:none;width:100%;}
#app .nepal-sequential-discovery .nepal-discovery-text h2{font-size:clamp(25px,5vw,36px);line-height:1.35;margin:6px auto;}
#app .nepal-sequential-discovery .nepal-name-translation{margin:4px auto;font-size:19px;}
#app .nepal-sequential-discovery .tap-invitation{margin:8px auto;font-size:19px;font-weight:800;}
#app .nepal-sequential-discovery .game-actions{display:flex;justify-content:center;margin:14px auto 0;}
#app .nepal-sequential-discovery .nepal-pending{margin:8px auto 0;text-align:center;}
#app .nepal-audio-status:empty{display:none;}
#app .nepal-discover-object:focus-visible{outline:3px solid #ff2d91;outline-offset:6px;border-radius:24px;}
#app .nepal-discover-object:active{transform:scale(.97);}
@media(max-height:520px) and (orientation:landscape){
 #app .discovery-stage{display:grid;grid-template-columns:minmax(160px,220px) minmax(130px,1fr);width:min(100%,600px);column-gap:20px;align-items:center;}
 #app .discovery-stage>.big-object,#app .discovery-stage>.nepal-discover-object{grid-column:1;grid-row:1 / 3;width:180px;height:180px;margin:0 auto;}
 #app .discovery-stage>#revealed-word,#app .discovery-stage>.nepal-discovery-text{grid-column:2;align-self:end;margin:0 auto 4px;}
 #app .discovery-stage>.discovery-controls{grid-column:2;align-self:start;margin-top:4px;}
 #app .discovery-stage>.nepal-pending{grid-column:2;}
 #app .nepal-hub-screen .nepal-category-tabs{width:min(100%,220px);}
 #app .nepal-hub-screen .nepal-category{min-height:0;padding:16px;gap:10px;}
}

/* The Nepal learning tile has no completion tick. */
#app .topic-learn-tile[data-id="nepal"] .topic-completed{display:none}

/* Sano stylesheet: our-nepal-polish.css */
/* Original Nepal learning illustrations. Scope excludes the paid SANO wallet. */
.currency-card.currency-illustrated{display:block;box-sizing:border-box;width:min(480px,100%);min-height:0;height:auto;padding:0;border:0;border-radius:0;background:none;color:inherit;overflow:visible}
.currency-card.currency-illustrated.currency-coin{width:min(240px,65vw);height:auto;border:0;border-radius:0;background:none}
.currency-illustration{display:block;width:100%;height:auto;overflow:visible}
.currency-illustration .currency-ne{font-family:SanoDevanagari,"Kohinoor Devanagari",sans-serif;font-weight:700}
.currency-illustration .currency-latin{font-family:var(--joy-font),sans-serif;font-weight:800;letter-spacing:.25px}
.currency-coin-engraving{text-shadow:0 1px #fff3bd}
.currency-card.currency-illustrated small{display:block;margin-top:3px;font:600 12px/1.4 var(--joy-font);color:#67708a}
.nepal-money-picture{position:relative;display:block;width:min(218px,100%);height:130px}
.nepal-money-picture .currency-card.currency-illustrated{position:absolute;right:0;top:26px;width:92%;height:auto;min-height:0;padding:0;border:0;border-radius:0;transform:rotate(-7deg);transform-origin:center center}
.nepal-money-picture .currency-card.currency-illustrated.currency-coin{z-index:1;left:0;right:auto;top:51px;width:37%;height:auto;transform:rotate(9deg)}
.nepal-money-picture .currency-card.currency-illustrated small{display:none}
.nepal-money-picture .currency-note-art{filter:drop-shadow(0 3px 2px #55432124)}

/* The coloured geometry and both emblems are untouched: light suggests cloth. */
.nepal-activity-picture{perspective:460px}
.nepal-activity-picture>svg.nepal-tile-cloth{width:min(116px,100%);height:134px;overflow:visible;transform-origin:12% 50%;filter:drop-shadow(3px 5px 2px #23335429);animation:nepal-tile-cloth 5.2s ease-in-out infinite}
.nepal-tile-cloth-light{animation:nepal-tile-cloth-light 5.2s ease-in-out infinite}
@keyframes nepal-tile-cloth{0%,100%{transform:rotateY(-8deg) rotateZ(-1deg)}35%{transform:rotateY(8deg) rotateZ(1deg)}72%{transform:rotateY(-3deg) rotateZ(-.6deg)}}
@keyframes nepal-tile-cloth-light{0%,100%{transform:translateX(-36px);opacity:.7}45%{transform:translateX(63px);opacity:1}}
body[data-page-hidden=true] :is(.nepal-tile-cloth,.nepal-tile-cloth-light),[hidden] :is(.nepal-tile-cloth,.nepal-tile-cloth-light){animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.nepal-tile-cloth,.nepal-tile-cloth-light){animation:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){.nepal-activity-picture>svg.nepal-tile-cloth,.nepal-tile-cloth-light{animation:none!important;transform:none!important}}
@media(max-width:359px){.nepal-money-picture{height:122px}.nepal-money-picture .currency-card.currency-illustrated{top:30px}.nepal-money-picture .currency-card.currency-illustrated.currency-coin{top:51px;width:42%}}

/* Familiar Listen and Next stay together, with equal, easy-to-tap surfaces. */
#app .nepal-lesson-controls{display:flex;align-items:stretch;justify-content:center;gap:12px;width:min(100%,336px);margin:12px auto 4px;}
#app .nepal-lesson-controls>button{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;min-height:62px;max-width:162px;margin:0;padding:12px 16px;border:3px solid #fff;border-bottom-width:6px;border-radius:25px;font:900 19px/1.3 var(--joy-font);cursor:pointer;touch-action:manipulation;animation:sano-invitation-lift 4.2s ease-in-out infinite;}
#app .nepal-lesson-controls>.trace-listen{min-width:0;gap:8px;border-bottom-color:#a38acf;}
#app .nepal-lesson-controls>.nepal-discovery-next{border-bottom-color:#15905b;background:linear-gradient(150deg,#68e0a3,#36c57e 58%,#1baa66);color:#073d28;box-shadow:inset 0 2px 1px #fff,0 4px 0 #16915b3b,0 8px 15px #1684531c,0 0 25px #54d79347;animation-delay:-2.1s;}
#app .nepal-lesson-controls>button::before{content:"";position:absolute;z-index:-1;inset:-100% -80%;background:linear-gradient(112deg,transparent 42%,#ffffff80 48%,#ffffff24 52%,transparent 58%);transform:translateX(-65%);animation:sano-gold-shine 7.2s ease-in-out infinite;pointer-events:none;}
#app .nepal-lesson-controls>button:nth-child(2)::before{animation-delay:-3.6s;}
#app .nepal-lesson-controls>button:active:not(:disabled){translate:0 2px;scale:.985;}
#app .nepal-lesson-controls>button:focus-visible{outline:3px solid #2368a8;outline-offset:5px;}
#app .nepal-lesson-controls>button:disabled{animation:none;}
#app .nepal-lesson-controls>button:disabled::before{content:none;}
#app .currency-play .currency-hint:empty{display:none;}
#app .currency-play :is([data-money-next],[data-money-answer],[data-money-hear]){transition:opacity .22s ease,filter .22s ease;}
#app .currency-play :is([data-money-next],[data-money-answer],[data-money-hear]):disabled{opacity:.5;filter:blur(.35px) saturate(.55);cursor:default;animation:none;}
/* Enlarged or translated text can make the icon and label need two rows. */
#app .currency-play .nepal-lesson-controls>button{white-space:normal;overflow-wrap:anywhere;}
#app .currency-play .nepal-lesson-controls>.trace-listen{flex-wrap:wrap;}
#app .currency-play .nepal-lesson-controls>.trace-listen>span{max-width:100%;min-width:0;}
@media(max-height:520px) and (orientation:landscape){#app .nepal-sequential-discovery .nepal-lesson-controls>button{padding:10px 8px;font-size:17px;gap:6px;}#app .nepal-sequential-discovery .nepal-lesson-controls svg{width:28px;height:28px;}}
body[data-page-hidden=true] #app .nepal-lesson-controls>button,body[data-page-hidden=true] #app .nepal-lesson-controls>button::before{animation-play-state:paused;}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .nepal-lesson-controls>button,body:is([data-motion=reduce],[data-reduced-motion=true]) #app .nepal-lesson-controls>button::before{animation:none!important;transform:none;}
@media(prefers-reduced-motion:reduce){#app .nepal-lesson-controls>button,#app .nepal-lesson-controls>button::before{animation:none!important;transform:none;}}
@media(forced-colors:active){#app .nepal-lesson-controls>button::before{content:none;}#app .nepal-lesson-controls>.nepal-discovery-next{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none;}}
@media(forced-colors:active){#app .currency-play .nepal-lesson-controls>button:disabled{filter:none;}}


#app .nepal-category.nepal-money-category>.nepal-money-picture{width:min(150px,100%);height:130px;flex:none}
#app .nepal-money-picture .currency-card.currency-illustrated{top:18px;width:95%}
#app .nepal-money-picture .currency-card.currency-illustrated.currency-coin{top:47px;width:45%}
#app :is(.nepal-lesson-controls>.nepal-discovery-next,.simple-learning-activity.is-discovery #continue):disabled{opacity:.42;filter:blur(1.2px) saturate(.6);cursor:default;animation:none!important;transform:none!important}
@media(forced-colors:active){#app :is(.nepal-lesson-controls>.nepal-discovery-next,.simple-learning-activity.is-discovery #continue):disabled{filter:none;color:GrayText}}

/* Sano stylesheet: premium-surfaces.css */
/* Calm enamel surfaces share the existing Sano Games tile's restrained depth.
   Component borders, shadows, artwork and motion keep their original ownership.
   This layer adds only an inset highlight and shade, never another outer halo. */
:where(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.step-prompt-next,.continue-game,.scribble-next,.listen-button,.choice,.match-item,.maths-button,.knowledge-button,.check-button,.spelling-letter,.spelling-action,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.back-tile:not(:has(.game-tile-face))){
 position:relative;isolation:isolate;
 --sano-glass-light:var(--answer-edge,var(--topic-edge,var(--tile-edge,var(--surface-light,var(--entry-edge,var(--choice-edge,var(--math-edge,var(--companion-halo,var(--language-glow,#59aeef)))))))));
}
:where(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.step-prompt-next,.continue-game,.scribble-next,.listen-button,.choice,.match-item,.maths-button,.knowledge-button,.check-button,.spelling-letter,.spelling-action,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.back-tile:not(:has(.game-tile-face)))::after{
 content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
 background:linear-gradient(155deg,#ffffff24 0%,#ffffff08 32%,transparent 58%,#1739620f 100%);
 box-shadow:inset 0 1px 0 #ffffff80,inset 1px 0 0 #ffffff24,inset -1px 0 0 #ffffff18;
}
/* Match the surrounding component's actual hue, including colour variants. */
.welcome-play-face,.companion-next .game-tile-face,.settings-pink .game-tile-face{--sano-glass-light:#ed66a5}
.topic-adventure-tile .topic-tile-face,.settings-yellow .game-tile-face,.free-play-tile .game-tile-face,.knowledge-top-up .game-tile-face{--sano-glass-light:#eeb936}
.topic-practice-tile .topic-tile-face,.english-option .game-tile-face{--sano-glass-light:#ec82b5}
.topic-talk-tile .topic-tile-face,.settings-mint .game-tile-face,.gate-continue .game-tile-face,.knowledge-primary .game-tile-face,.talk-start .talk-action-face,.welcome-store-face{--sano-glass-light:#4fca96}
.back-tile .game-tile-face,.settings-red .game-tile-face,.knowledge-back .game-tile-face,.talk-return-face{--sano-glass-light:#e55b85}
.knowledge-listen .game-tile-face{--sano-glass-light:#ab85e7}
.welcome-store-android .welcome-store-face,.talk-back .talk-return-face{--sano-glass-light:#59aeef}
/* Decorate the visible face once. Transparent piano artwork and official store
   badges retain their own material, rather than receiving a rectangular slab. */
:is(.choice,.match-item,.maths-button,.knowledge-button,.check-button,.spelling-action):has(>.game-tile-face)::after,
.piano-key .game-tile-face::after,
.topic-adventure-tile .topic-tile-face::after,
.has-official-store-badge :is(.welcome-store-face,.store-option-face)::after{content:none}
/* Feedback continues to own its colour, ring and motion. */
:is(.answer-wrong,.wrong,.is-wrong,.is-retry,.is-coin-short) :is(.game-tile-face,.topic-tile-face,.topic-entry-face,.challenge-face)::after,
:is(.choice,.match-item,.maths-button,.knowledge-button,.spelling-letter):is(.wrong,.is-wrong,.answer-wrong)::after{opacity:.25;box-shadow:inset 0 2px 0 #ffffffb3,inset 0 -3px 2px #77224424}
:is(.answer-right,.right,.correct,.is-correct,.matched) :is(.game-tile-face,.topic-tile-face,.topic-entry-face,.challenge-face)::after,
:is(.choice,.match-item,.maths-button,.knowledge-button,.spelling-letter):is(.right,.correct,.is-correct,.answer-right,.matched)::after{opacity:.5;box-shadow:inset 0 2px 0 #fff,inset 0 -3px 2px #20644826}
:is(.step-prompt-next,.continue-game,.scribble-next,.listen-button,.choice,.match-item,.maths-button,.knowledge-button,.check-button,.spelling-letter,.spelling-action,.back-tile):is(:disabled,[aria-disabled=true])::after,
:is(button:disabled,[aria-disabled=true]) :is(.game-tile-face,.topic-tile-face,.topic-entry-face,.welcome-store-face,.store-option-face)::after{opacity:.25;box-shadow:inset 0 1px 0 #ffffff80}
/* Existing scribble/piano cues, selected outlines and gold moving glint stay.
   Decoration always yields to operating-system contrast. */
@media(forced-colors:active){:where(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.step-prompt-next,.continue-game,.scribble-next,.listen-button,.choice,.match-item,.maths-button,.knowledge-button,.check-button,.spelling-letter,.spelling-action,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.back-tile:not(:has(.game-tile-face)))::after{content:none}}

/* Stronger colour and ink belong only to idle light faces. Explicit state
   exclusions preserve selected, unavailable, answer and keyboard-cue styling.
   Keep these author colours out of system high-contrast mode. */
@media (forced-colors:none) {
 :is(.topic-tone-blue,.maths-tone-blue):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) {
  --topic-fill:#67b8ff;--topic-ink:#103761;--math-fill:#67b8ff;--math-ink:#103761;
 }
 :is(.topic-tone-pink,.maths-tone-pink):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) {
  --topic-fill:#ff8ec1;--topic-ink:#5a1f3b;--math-fill:#ff8ec1;--math-ink:#5a1f3b;
 }
 :is(.topic-tone-mint,.maths-tone-mint):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) {
  --topic-fill:#5dd8a2;--topic-ink:#0f4631;--math-fill:#5dd8a2;--math-ink:#0f4631;
 }
 :is(.topic-tone-yellow,.maths-tone-yellow):not(.topic-adventure-tile):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) {
  --topic-fill:#ffd34d;--topic-ink:#543709;--math-fill:#ffd34d;--math-ink:#543709;
 }
 :is(.topic-tone-lilac,.maths-tone-lilac):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) {
  --topic-fill:#c1a6f9;--topic-ink:#3a2760;--math-fill:#c1a6f9;--math-ink:#3a2760;
 }
 :is(.topic-tone-peach,.maths-tone-peach):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) {
  --topic-fill:#ffb683;--topic-ink:#552b15;--math-fill:#ffb683;--math-ink:#552b15;
 }

 /* Text selectors deliberately exclude pictures, SVG lettering and piano keys.
    White text on existing dark red, blue and green action faces is untouched. */
 :is(.topic-entry-face strong,
     .topic-entry-face small,
     .companion-label,
     .challenge-copy strong,
     .challenge-copy small,
     .music-instrument-face strong,
     .music-option-face strong,
     .music-option-face small,
     .nepal-card-face strong,
     .settings-tile:not(.settings-red)>.game-tile-face strong,
     .settings-tile:not(.settings-red)>.game-tile-face small,
     .store-option-face strong,
     .store-option-face small,
     .welcome-store-copy strong,
     .welcome-store-copy small):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *):not(.piano-key *) {
  color:#173148;text-shadow:none;
 }

 /* Pink onward actions retain their pink identity with clear dark lettering.
    Their original geometry, hit targets, borders and motion are unchanged. */
 .art-welcome .welcome-play:not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) .welcome-play-face,
 .companion-next:not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening)):not(:where(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],.answer-right,.answer-wrong,.right,.wrong,.correct,.matched,.is-correct,.is-wrong,.is-retry,.is-coin-short,.is-topic-current,.is-topic-locked,.is-greeting,.maths-correct,.maths-selected,.maths-matched,.tune-cue,.tune-player,.tune-miss,.tune-listening) *) .game-tile-face {
  background:linear-gradient(155deg,#ffa1cc,#ee67a0);color:#3e162a;text-shadow:none;
 }
}

/* The welcome action keeps the shared passing reflection, slightly quicker in pink.
   The highlight stays behind the label and does not move the hit target. */
@media (forced-colors:none) {
 #app .art-welcome .welcome-play:not(:disabled):not([aria-disabled=true]) .welcome-play-face {
  overflow:hidden;
  background:linear-gradient(150deg,#ffb3db 0%,#ff8fc5 22%,#f65c9d 46%,#ff8ac0 61%,#ed4d8e 100%);
  color:#250c1b;border-color:#ffb4d8;text-shadow:none;
 }
 .art-welcome .welcome-play-face::before {
  content:"";position:absolute;z-index:-1;inset:-100% -80%;
  background:linear-gradient(112deg,transparent 42%,#fff5fb80 48%,#ffffff24 52%,transparent 58%);
  transform:translateX(-65%);animation:sano-gold-shine 5.8s ease-in-out infinite;pointer-events:none;
 }
}
@media (prefers-reduced-motion:reduce) {
 .art-welcome .welcome-play-face::before {animation:none;transform:none;opacity:.25}
}
body[data-motion=reduce] .art-welcome .welcome-play-face::before {animation:none!important;transform:none;opacity:.25}
body[data-page-hidden=true] .art-welcome .welcome-play-face::before {animation-play-state:paused!important}

/* Small colour lift on tile illustrations only. Keep parent silhouette shadows,
   text, mascot artwork and interactive piano cues under their own styling. */
@media (forced-colors:none) {
 .topic-tile-picture>svg,
 .topic-tile-picture>.topic-scene>.topic-motion-part>svg,
 .topic-tile-picture .topic-art-clip>span>svg,
 .coin-extra-art>svg {filter:saturate(1.08) contrast(1.04)}
 .topic-tile-picture>img,
 .topic-tile-picture>.topic-scene>.topic-motion-part>img,
 .topic-tile-picture .topic-art-clip>span>img,
 .coin-extra-art>img {filter:saturate(1.12) contrast(1.04)}
}


/* Sano stylesheet: premium-character-effects.css */
/* Keep the approved character artwork. Gesture motion belongs to the hand;
   the face, torso and feet stay steady and clear. */
.art-welcome .welcome-character .welcome-pose-rig {
  filter:drop-shadow(0 5px 3px #31557d24);
}

.companion-choice .companion-option:not(.is-greeting):not(.answer-right):not(.answer-wrong):not(:active) .companion-art-window {
  filter:drop-shadow(0 4px 2px #31557d20);
}

/* Genuine celebrations use the same pink/blue canvas as the main app. */
body:has(>.step-prompt-backdrop.celebration-immediate)>:is(#app,#overlay) {
  visibility:hidden;
}
.step-prompt-backdrop.celebration-immediate {
  background:var(--sano-canvas,linear-gradient(90deg,#fff0f7 0%,#f5faff 50%,#eaf6ff 100%));
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.step-prompt-backdrop.celebration-immediate>.step-prompt.celebration-ready {
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.step-prompt-backdrop.celebration-immediate>.step-prompt.celebration-ready h2 {
  color:#ff2d91;
}

.companion-gesture-art {display:block;width:100%;height:auto;overflow:visible;}
.companion-gesture-hand {transform-box:view-box;}
.companion-gesture-art.has-gesture-motion.is-waving .companion-gesture-hand {
  animation:sano-hand-greeting 1.9s ease-in-out infinite;
}
.companion-gesture-art.has-gesture-motion.is-celebrating .companion-gesture-hand {
  animation:sano-happy-thumbs-up 1.6s ease-in-out infinite;
}
.step-prompt.celebration-ready .step-prompt-mascot,
.letter-celebration .celebration-ready .step-prompt-mascot {
  width:clamp(108px,21svh,164px);
  max-height:164px;
  flex-shrink:0;
}
@keyframes sano-hand-greeting {
  0%,58%,100% {transform:rotate(0deg);}
  12%,36% {transform:rotate(-9deg);}
  24%,48% {transform:rotate(9deg);}
}
@keyframes sano-happy-thumbs-up {
  0%,68%,100% {transform:rotate(0deg);}
  14%,42% {transform:rotate(-8deg);}
  28%,56% {transform:rotate(7deg);}
}
body.page-hidden .companion-gesture-hand {animation-play-state:paused!important;}
@media (prefers-reduced-motion:reduce) {
  .companion-gesture-art .companion-gesture-hand {animation:none!important;transform:none!important;}
}
@media (max-height:560px) {
  .step-prompt.celebration-ready .step-prompt-mascot,
  .letter-celebration .celebration-ready .step-prompt-mascot {width:76px;max-height:76px;}
}

/* High-contrast presentation keeps the original silhouette without extra paint. */
@media (forced-colors:active) {
  .art-welcome .welcome-character .welcome-pose-rig,
  .companion-choice .companion-option:not(.is-greeting):not(.answer-right):not(.answer-wrong):not(:active) .companion-art-window {
    filter:none;
  }
  .step-prompt-backdrop.celebration-immediate,
  .step-prompt-backdrop.celebration-immediate>.step-prompt.celebration-ready {
    background:Canvas;
    color:CanvasText;
    box-shadow:none;
  }
}

/* Sano stylesheet: home-gloss.css */
/* Sano home v2 — a calm, focused welcome.
   All changes are home-scoped,
   except the already-visible startup fallback. User authorised home layout.
   Original mascot geometry/assets, paths, text, actions and animation timing
   remain intact. No new fonts, scripts, animation loops or hidden controls.
   Source landmarks: app.mjs brandStage()/renderWelcome()/welcomeWordmark;
   index.html startup; app-viewport.css.
*/

/* Keep the familiar pastel canvas and a single quiet pool of light. */
body:has(.clean-welcome.art-welcome),
body:has(.sano-startup) {
  --sano-canvas:
    radial-gradient(ellipse at 50% 33%,#ffffffdc 0%,#ffffff70 30%,transparent 64%),
    linear-gradient(90deg,#fff0f7 0%,#f5faff 50%,#eaf6ff 100%);
}

/* The home has just three toolbar actions. Reserve their actual single row,
   not the 128px two-row reservation needed by the in-lesson toolbar. */
body #app:has(>.clean-welcome.art-welcome) {
  --toolbar-height:calc(72px + env(safe-area-inset-top));
}
body #app>.corner-tools:has(+.clean-welcome.art-welcome) {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  /* This minimum must not depend on the measured toolbar height: a return
     from a taller screen would otherwise keep the old height forever. */
  min-height:calc(72px + env(safe-area-inset-top));
  padding:calc(12px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));
  container-type:normal;
}
body #app>.corner-tools:has(+.clean-welcome.art-welcome)>:is(.coin-corner,.grownup-corner,.bilingual-help-control) {
  flex:0 0 48px;
  width:48px;
  min-width:48px;
  height:48px;
  min-height:48px;
}
/* Keep the shared toolbar's approved white edge and coin/Family glow here.
   The same .corner-tools rules also follow these controls into celebrations;
   welcome-only shadow overrides made the first screen look like another app. */

/* A centred home: logo, two familiar friends, short promise, then one Play
   action. CSS reorders only non-focusable artwork inside its existing wrapper. */
body #app>.clean-welcome.art-welcome.home-simple {
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:1fr auto;
  place-items:center;
  align-content:center;
  row-gap:16px;
  padding:18px max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  overflow:visible;
}
body #app>.art-welcome .welcome-focus {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:min(440px,100%);
  max-width:none;
  gap:22px;
  margin:auto;
}
body #app>.art-welcome .welcome-artwork {
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  gap:12px;
}
body #app>.art-welcome .welcome-logo-wrap {
  order:0;
  width:min(310px,88%);
  margin:0 auto;
}
body #app>.art-welcome .welcome-scene {
  order:1;
  width:min(340px,100%);
  min-height:150px;
  grid-template-columns:clamp(42px,16%,54px) minmax(0,1fr) clamp(42px,16%,54px);
  margin:0;
}
body #app>.art-welcome .welcome-roots {
  order:2;
  max-width:30ch;
  margin:0;
  font-size:clamp(18px,4.5vw,22px);
  line-height:1.32;
  letter-spacing:-.25px;
}
body #app>.art-welcome .welcome-play-reveal {
  width:min(340px,100%);
  margin:0 auto;
}
body #app>.art-welcome .welcome-play {
  width:100%;
  margin:0!important;
}
body #app>.art-welcome .welcome-play-face {
  min-height:76px;
  padding:15px 22px;
  border-radius:30px;
  font-size:clamp(25px,6vw,30px);
}
body #app>.art-welcome.home-simple>.welcome-sound-note {
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:end;
  grid-column:1/-1;
  gap:8px;
  margin:0 auto;
  max-width:100%;
  color:#24364b;
  font-size:14px;
  font-weight:800;
  line-height:1.5;
}
body #app>.art-welcome.home-simple>.welcome-sound-note .welcome-sound-icon {
  display:block;
  width:32px;
  height:32px;
  flex:none;
}

.art-welcome .welcome-scene::before {
  content:"";
  position:absolute;
  inset:67% 14% 1%;
  z-index:-1;
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(ellipse at 50% 51%,#fff 0%,#d9ebff55 35%,transparent 70%);
}

/* All existing focus outlines remain in charge. Natural #app scrolling is
   retained; no fixed content height, clipping or hidden secondary actions. */
@media (max-height:700px) and (orientation:portrait) {
  body #app>.clean-welcome.art-welcome.home-simple {
    row-gap:10px;
    padding-top:10px;
  }
  body #app>.art-welcome .welcome-focus {gap:16px}
  body #app>.art-welcome .welcome-artwork {gap:9px}
  body #app>.art-welcome .welcome-logo-wrap {width:min(265px,86%)}
  body #app>.art-welcome .welcome-scene {width:min(300px,100%);min-height:126px}
  body #app>.art-welcome .welcome-roots {font-size:18px}
  body #app>.art-welcome .welcome-play-face {min-height:70px}
}
@media (min-width:900px) and (min-height:700px) {
  body #app>.clean-welcome.art-welcome.home-simple {padding-top:28px;row-gap:20px}
  body #app>.art-welcome .welcome-focus {width:min(460px,100%);gap:24px}
  body #app>.art-welcome .welcome-logo-wrap {width:340px}
  body #app>.art-welcome .welcome-scene {width:360px;min-height:166px}
}
@media (max-height:560px) and (orientation:landscape) and (min-width:600px) {
  body #app:has(>.clean-welcome.art-welcome) {--toolbar-height:calc(64px + env(safe-area-inset-top))}
  body #app>.corner-tools:has(+.clean-welcome.art-welcome) {min-height:calc(64px + env(safe-area-inset-top));padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px}
  body #app>.clean-welcome.art-welcome.home-simple {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:1fr auto;
    row-gap:10px;
    padding-top:8px;
    padding-bottom:max(8px,env(safe-area-inset-bottom));
  }
  body #app>.art-welcome .welcome-focus {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(220px,1fr);
    width:min(760px,100%);
    column-gap:32px;
    align-items:center;
  }
  body #app>.art-welcome .welcome-artwork {grid-row:auto;grid-column:1;width:100%;gap:5px}
  body #app>.art-welcome .welcome-logo-wrap {width:min(230px,88%)}
  body #app>.art-welcome .welcome-scene {width:min(285px,100%);min-height:112px}
  body #app>.art-welcome .welcome-roots {font-size:17px;line-height:1.22}
  body #app>.art-welcome .welcome-play-reveal {grid-row:1;grid-column:2;width:100%}
  body #app>.art-welcome .welcome-play-face {min-height:72px}
}

/* Restore the familiar flat blue/pink wordmark. Its original geometry and
   gentle motion remain unchanged; only a small grounding shadow is retained. */
.art-welcome .welcome-wordmark {filter:drop-shadow(0 3px 0 #d9e8ff)}

/* High contrast removes decoration while retaining every real control. */
@media (forced-colors:active) {
  body:has(.clean-welcome.art-welcome),body:has(.sano-startup) {--sano-canvas:Canvas}
  .art-welcome .welcome-scene::before,
  .art-welcome .welcome-logo-wrap::before {content:none}
  .art-welcome .welcome-wordmark,
  body:has(.clean-welcome.art-welcome) .brand .sano-wordmark {filter:none}
  .art-welcome .welcome-word-letters {stroke:CanvasText}
  .art-welcome .welcome-logo-dot {fill:CanvasText}
  .sano-startup-logo,.sano-startup-logo span {color:CanvasText;background:none;text-shadow:none}
  .art-welcome .welcome-roots {text-shadow:none}
  body #app>.art-welcome.home-simple>.welcome-sound-note {color:CanvasText}
}


/* Pure decoration yields space to the logo, friends and primary action.
   Actual language choices and all home controls remain available. */
body #app>.art-welcome :is(.welcome-letter,.welcome-glint){display:none}
body #app>.art-welcome .welcome-scene{grid-template-columns:0 minmax(0,1fr) 0;width:min(255px,78%);min-height:150px}
@media(max-height:700px) and (orientation:portrait){body #app>.art-welcome .welcome-scene{width:min(225px,76%);min-height:126px}}
@media(min-width:900px) and (min-height:700px){body #app>.art-welcome .welcome-scene{width:275px;min-height:166px}}
@media(max-height:560px) and (orientation:landscape) and (min-width:600px){body #app>.art-welcome .welcome-scene{width:min(220px,78%);min-height:112px}}

/* The activity home stays a compact two-by-two choice at every viewport.
   Detailed topic grids belong to Learn; their existing adaptive layout remains. */
#app .topic-picker.topic-four-home{width:min(520px,100%);padding:0 0 16px}
#app .topic-four-home>h1{width:min(330px,94%);margin:0 auto 18px;padding:0}
#app .topic-four-home>h1>svg{display:block;max-height:108px;aspect-ratio:auto}
#app .topic-four-home .topic-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px;width:100%;padding:4px 0 12px}
#app .topic-four-home .topic-category-tile{position:relative;display:block;appearance:none;-webkit-appearance:none;width:100%;min-width:0;min-height:0;aspect-ratio:1;align-self:start;grid-column:auto;padding:0;border:0;background:transparent;box-shadow:none}
/* Keep the four square faces equal and aligned instead of tilting separately. */
#app .topic-four-home .topic-category-tile>.topic-tile-face{animation:none;transform:none;position:absolute;inset:0;min-width:0;max-width:none}
#app .topic-four-home .topic-category-tile>.topic-tile-face{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;padding:clamp(12px,3.4vw,23px);gap:10px;border:3px solid #fff;border-bottom:6px solid var(--topic-edge);border-radius:clamp(25px,7vw,36px);background:linear-gradient(145deg,#ffffff55,transparent 66%),var(--topic-fill);box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--topic-edge),0 11px 19px #28548818}
#app .topic-four-home .topic-category-tile .topic-tile-picture{display:grid;place-items:center;flex:0 1 auto;width:clamp(76px,24vw,126px);height:clamp(76px,24vw,126px);min-height:0;margin:0}
#app .topic-four-home .topic-category-tile .topic-tile-picture>svg,#app .topic-four-home .topic-category-tile .topic-tile-picture>img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
#app .topic-four-home .topic-category-tile .topic-scene{display:block;width:100%;height:100%}
#app .topic-four-home .topic-category-tile .topic-tile-label{display:block;flex:0 0 auto;width:100%;color:var(--topic-ink);text-align:center}
#app .topic-four-home .topic-category-tile .topic-tile-label strong{display:block;font:900 clamp(18px,4.6vw,26px)/1.18 var(--joy-font);word-break:normal;overflow-wrap:normal;hyphens:none;text-wrap:balance}
#app .topic-four-home[lang=ne] .topic-category-tile .topic-tile-label strong{font-family:SanoDevanagariBold,sans-serif;font-size:clamp(17px,4.5vw,24px);line-height:1.4}
#app .topic-four-home .topic-category-learn{--topic-fill:#62b7ff;--topic-edge:#2989da;--topic-ink:#123963}
#app .topic-four-home .topic-category-games{--topic-fill:#ffd34e;--topic-edge:#d79b1d;--topic-ink:#62400d}
#app .topic-four-home .topic-category-music{--topic-fill:#67dca4;--topic-edge:#29a875;--topic-ink:#104d39}
#app .topic-four-home .topic-category-knowledge{--topic-fill:#ff95c6;--topic-edge:#d95895;--topic-ink:#622744}
#app .topic-four-home .topic-landing-finish{gap:16px;padding-top:6px}
#app .topic-four-home .topic-landing-finish .topic-exit>.game-tile-face{min-height:58px;padding:10px 14px;border-radius:25px}
#app .topic-four-home .topic-landing-finish .topic-exit svg{max-height:28px}
#app .topic-four-home .topic-landing-finish .finish-label-compact svg{max-height:20px}
#app .topic-learn-hub>h1{width:min(260px,70%);margin:0 auto 18px;padding-top:0}
#app .topic-learn-hub>h1>svg{display:block;max-height:76px;aspect-ratio:auto}
#app .topic-learn-grid .topic-learn-tile .topic-tile-label small{font-size:13px;line-height:1.4}
@media(max-width:359px){
 #app .topic-four-home .topic-category-grid{gap:16px 13px}
 #app .topic-four-home .topic-category-tile>.topic-tile-face{padding:10px 8px;gap:7px;border-radius:24px}
 #app .topic-four-home .topic-category-tile .topic-tile-picture{width:76px;height:76px}
 #app .topic-four-home .topic-category-tile .topic-tile-label strong{font-size:16px}
}
@media(forced-colors:active){
 #app .topic-four-home .topic-category-tile>.topic-tile-face{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
 #app .topic-four-home .topic-category-tile .topic-tile-label{color:ButtonText}
}

/* Onboarding's Next actions keep their soft pill shape and a brisk travelling
   reflection. The language and friend choice controls retain their own timing. */
#app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next,
#app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next:not(:disabled):not([aria-disabled=true]):not([hidden]){
 --tile-edge:#15965b;--tile-radius:28px;box-sizing:border-box;width:min(260px,100%);min-height:58px;height:58px;padding:0;border:0;border-radius:28px;background:transparent;box-shadow:none;
}
#app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next :is(.challenge-pulse,.challenge-halo,.game-tile-face){border-radius:28px}
#app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next .game-tile-face{
 box-sizing:border-box;min-height:58px;height:58px;padding:10px 24px;font:900 22px/1.25 var(--joy-font);
}
#app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next:not(:disabled):not([hidden]) .game-tile-face{
 position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;min-height:58px;padding:10px 24px;border-radius:28px;
 background:linear-gradient(150deg,#76dfa5 0%,#43c486 25%,#15965b 55%,#39bc7d 78%,#128951 100%);
 border:3px solid #dcffeb;border-bottom:5px solid #107748;color:#fff;font:900 22px/1.25 var(--joy-font);
 box-shadow:inset 0 2px 1px #ffffff9c,0 3px 0 #107748,0 6px 16px #15965b33;
}
#app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next:not(:disabled):not([hidden]) .game-tile-face::before{
 content:"";position:absolute;inset:-70% -85%;z-index:-1;pointer-events:none;
 background:linear-gradient(110deg,transparent 39%,#ffffff08 44%,#fffefbad 49%,#ffffff25 55%,transparent 61%);
 transform:translateX(-55%);animation:sano-onboarding-next-shine 2.8s ease-in-out infinite;
}
@keyframes sano-onboarding-next-shine{0%,14%{transform:translateX(-55%)}62%,100%{transform:translateX(55%)}}
body[data-page-hidden=true] #app .companion-next .game-tile-face::before{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .companion-next .game-tile-face::before{animation:none!important;transform:none;opacity:.2}
@media(prefers-reduced-motion:reduce){#app .companion-next .game-tile-face::before{animation:none!important;transform:none;opacity:.2}}
@media(forced-colors:active){
 #app :is(.companion-choice,.learning-course-choice) .companion-next-slot>button.pill.primary.companion-next:not(:disabled):not([hidden]) .game-tile-face{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
 #app .companion-next .game-tile-face::before{display:none}
}


/* Sano stylesheet: store-downloads.css */
/* Web welcome footer: a secondary action, separate from the main Play tile. */
.clean-welcome.art-welcome.has-store-downloads{grid-template-rows:1fr auto auto;row-gap:16px}
.welcome-store-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:center;gap:12px;width:min(100%,360px);margin-inline:auto;padding-top:8px}
.welcome-store-button{display:block;width:100%;min-width:0;min-height:54px;max-width:100%;padding:0;border:0;border-radius:18px;background:transparent;color:#394555;box-shadow:none!important;animation:none!important;transition:none!important;line-height:1.3;text-align:left;cursor:pointer}
.welcome-store-button,.welcome-store-button:hover,.welcome-store-button:active{transform:none!important;scale:none;rotate:none;filter:none}
.welcome-store-face{display:flex;box-sizing:border-box;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:9px 10px;border:2px solid #fff;border-bottom:4px solid #74bc98;border-radius:18px;background:linear-gradient(145deg,#e5ffe9,#a8ebbd);color:#235d43;box-shadow:inset 0 2px 1px #fff,0 5px 12px #56a77526,0 0 22px #8beaac66;animation:none;transition:box-shadow .16s ease;pointer-events:none}
.welcome-store-android .welcome-store-face{background:linear-gradient(145deg,#eaf5ff,#afd8ff);border-bottom-color:#70ade1;color:#255981;box-shadow:inset 0 2px 1px #fff,0 5px 12px #5690b726,0 0 22px #8acaff55}
.welcome-store-face>svg{width:20px;height:27px;flex-shrink:0}
.welcome-store-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.welcome-store-button strong{font-size:14px;font-weight:700;white-space:nowrap;letter-spacing:0}
.welcome-store-button small{font-size:11.5px;color:inherit;font-weight:700;line-height:1.4;white-space:nowrap}
/* The only movement is the existing finite rejection shake after a tap. */
.welcome-store-button:not(.has-official-store-badge).answer-wrong .welcome-store-face,.store-download-option:not(.has-official-store-badge).answer-wrong .store-option-face{background:#ffe4e5;border-color:#d62943;color:#991b30;box-shadow:0 0 18px 5px #f02e3e55;animation:store-gentle-shake .63s cubic-bezier(.36,.07,.19,.97)}
.welcome-store-button.answer-wrong small{color:#991b30}
.welcome-store-button:focus-visible,.store-download-option:focus-visible{outline:3px solid #146cea;outline-offset:5px}
.store-downloads{text-align:center;max-width:560px;margin:auto}
.store-downloads-art{display:grid;place-items:center;width:84px;height:84px;margin:8px auto 20px;border-radius:28px;background:#e4f2ff;color:#2569ae}
.store-downloads-art svg{width:53px;height:48px}
.store-downloads h2{line-height:1.2;font-size:clamp(25px,5vw,34px)}
.store-downloads p{line-height:1.65;color:#536a85;margin:16px auto 24px;max-width:440px}
.store-download-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.store-download-option{display:block;min-width:0;padding:0;border:0;border-radius:27px;background:transparent;color:#255e9b;text-align:center;line-height:1.4;overflow-wrap:normal;word-break:normal;cursor:pointer}
.store-option-face{display:flex;box-sizing:border-box;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;min-height:145px;border:2px solid #cfe3fb;border-radius:27px;background:#edf6ff;box-shadow:0 4px 0 #c8dcf3;pointer-events:none}
.store-download-option:nth-child(2) .store-option-face{background:#eaf8ef;border-color:#cee8d9;color:#31674c;box-shadow:0 4px 0 #c7e1d2}
.store-download-option strong{font-size:22px;white-space:nowrap}
.store-download-option small,.store-download-platform{font-size:13px}
.store-download-option[aria-disabled=true]{opacity:1;filter:none}
.store-download-option[aria-disabled=true] small{color:#5f6e80}
/* Reserved for unmodified official artwork after a verified store launch. */
.official-store-badge{display:block;width:auto;height:40px;max-width:none;object-fit:contain;transform:none!important;animation:none!important;filter:none!important;box-shadow:none!important}
.has-official-store-badge .welcome-store-face,.store-download-option.has-official-store-badge .store-option-face{min-height:60px;padding:10px;border:0;background:transparent;box-shadow:none;transform:none!important;animation:none!important;filter:none!important}
@media(max-width:390px){.welcome-store-entry:has(.has-official-store-badge){grid-template-columns:minmax(160px,200px)}}
@media(max-width:360px){.store-download-options{grid-template-columns:1fr}.store-option-face{min-height:115px;padding:18px 12px}.welcome-store-entry{gap:10px}.welcome-store-face{gap:6px;padding-inline:7px}}
@media(max-height:540px) and (orientation:landscape){.clean-welcome.art-welcome.has-store-downloads{row-gap:12px}.welcome-store-entry{padding-top:0}.welcome-store-button,.welcome-store-face{min-height:48px}.welcome-store-face{padding:6px 14px}}
@media(prefers-reduced-motion:reduce){.welcome-store-button.answer-wrong .welcome-store-face,.store-download-option.answer-wrong .store-option-face{animation:none!important}}
body[data-motion=reduce] .welcome-store-button.answer-wrong .welcome-store-face,body[data-motion=reduce] .store-download-option.answer-wrong .store-option-face{animation:none!important}

@keyframes store-gentle-shake{0%,100%{transform:translateX(0) rotate(0)}18%{transform:translateX(-4px) rotate(-1deg)}38%{transform:translateX(3px) rotate(.8deg)}58%{transform:translateX(-2px) rotate(-.5deg)}78%{transform:translateX(1px) rotate(.2deg)}}


/* Slim transparent opening banner: only its surface catches gestures. */
#sano-download-banner{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:900;width:min(620px,calc(100% - 24px));margin-inline:auto;pointer-events:none;opacity:0;transform:translateY(calc(100% + 24px + env(safe-area-inset-bottom,0px)));transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .3s ease;font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;color:#15965b}
#sano-download-banner[data-state=visible]{opacity:1;transform:translateY(0)}
#sano-download-banner[data-state=leaving]{transition:transform .32s cubic-bezier(.4,0,1,1),opacity .26s ease}
#sano-download-banner *{box-sizing:border-box}
#sano-download-banner .download-banner{display:flex;align-items:center;gap:14px;min-height:68px;padding:9px 12px 11px 16px;border:1px solid #ffffff80;border-bottom-color:#b8ddc96b;border-radius:20px;background:linear-gradient(130deg,#ffffff66,#e9fff34a);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 #ffffff70,0 3px 14px #246b4914;touch-action:pan-x;transition:opacity .28s ease;pointer-events:auto}
#sano-download-banner .download-heading{flex:1;min-width:0;font-size:18px;font-weight:900;line-height:1.18;letter-spacing:-.35px;text-shadow:0 1px #ffffffc9}
#sano-download-banner .download-stores{display:flex;align-items:center;gap:10px;flex:none}
#sano-download-banner .download-store{position:relative;display:grid;place-items:center;flex:none;overflow:hidden;width:46px;height:46px;margin:0;padding:8px;appearance:none;-webkit-appearance:none;border:2px solid #dff4ff;border-bottom:3px solid #2c7ec1;border-radius:14px;background:linear-gradient(145deg,#b7e4ff,#73c0ff 23%,#3b95eb 49%,#75bffa 67%,#348adc);box-shadow:inset 0 1px 1px #fff,0 3px 0 #2164a0;color:#fff;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;animation:sano-download-icon-float 3.8s ease-in-out infinite;animation-delay:var(--download-delay,0s)}
#sano-download-banner .download-store.google{--download-delay:-1.2s;border-color:#dcffed;border-bottom-color:#299f72;background:linear-gradient(145deg,#b4f5d7,#7de4b5 23%,#3abb88 49%,#78dfb3 67%,#2faa79);box-shadow:inset 0 1px 1px #fff,0 3px 0 #247a58}
#sano-download-banner .download-store svg{display:block;width:27px;height:27px;filter:drop-shadow(0 1px 0 #1e609533)}
#sano-download-banner .download-store:before{content:'';position:absolute;inset:0 0 48%;border-radius:0 0 50% 50%;background:linear-gradient(#ffffff65,#fff0);pointer-events:none}
#sano-download-banner .download-store:after{content:'';position:absolute;inset:-120% auto -120% -50%;width:32%;background:linear-gradient(90deg,transparent,#ffffff90,transparent);pointer-events:none;animation:sano-download-icon-shine 4.8s ease-in-out infinite;animation-delay:var(--download-delay,0s)}
#sano-download-banner .download-store:focus-visible{outline:3px solid #0666ef;outline-offset:4px}
#sano-download-banner .download-store:hover{filter:brightness(1.05)}
@keyframes sano-download-icon-float{0%,100%{transform:translate(-1px,-1px) rotate(-1.6deg)}25%{transform:translate(1px,1px) rotate(1.6deg)}50%{transform:translate(-1px,1px) rotate(-1.2deg)}75%{transform:translate(1px,-1px) rotate(1.2deg)}}
@keyframes sano-download-icon-shine{0%,12%{transform:translateX(0) rotate(22deg);opacity:0}18%{opacity:.8}56%{opacity:.7}65%,100%{transform:translateX(680%) rotate(22deg);opacity:0}}
@media(max-width:360px){#sano-download-banner .download-banner{gap:10px;padding-left:12px}#sano-download-banner .download-heading{font-size:16px}#sano-download-banner .download-stores{gap:8px}}
body[data-page-hidden=true] #sano-download-banner *,body[data-page-hidden=true] #sano-download-banner *:after{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-download-banner,body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-download-banner *,body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-download-banner *:after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){#sano-download-banner,#sano-download-banner *,#sano-download-banner *:after{animation:none!important;transition:none!important}}

#sano-download-banner .download-handle{display:grid;place-items:center;width:76px;height:30px;margin:0 auto;padding:0;border:1px solid #ffffff70;border-radius:15px 15px 8px 8px;background:#ffffff3d;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:inset 0 1px #ffffff70;appearance:none;-webkit-appearance:none;cursor:grab;touch-action:none;pointer-events:auto;-webkit-tap-highlight-color:transparent}
#sano-download-banner .download-handle span{width:31px;height:3px;border-radius:4px;background:#4d806bb0;box-shadow:0 1px #ffffff90;pointer-events:none}
#sano-download-banner .download-handle:focus-visible{outline:3px solid #0666ef;outline-offset:3px}
#sano-download-banner[data-dragging=true]{transition:none!important;transform:translateY(var(--download-drag-y,0px));cursor:grabbing}
#sano-download-banner[data-state=leaving]{pointer-events:none}
#sano-download-banner[data-state=leaving] *{pointer-events:none!important}

#sano-download-banner .download-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#sano-download-banner .download-availability{font-size:10px;font-weight:650;line-height:1.2;color:#376c53;text-shadow:0 1px #fff9}
#sano-download-banner .download-store:disabled{opacity:1;cursor:default}
html[data-sano-native=true] #sano-download-banner{display:none!important}

/* Sano stylesheet: family-account.css */
/* Parent account entry stays separate from the child's uncluttered play flow. */
body #app>.art-welcome .welcome-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
body #app>.art-welcome .welcome-account-actions>button{min-width:0;min-height:52px;padding:0;border:0;background:transparent;box-shadow:none}
body #app>.art-welcome .welcome-account-actions>button>.game-tile-face{display:grid;place-items:center;min-height:52px;padding:10px 12px;box-sizing:border-box;border:2px solid #fff;border-radius:22px;background:linear-gradient(145deg,#e8f7ff,#acd9ff);color:#17558b;font:800 clamp(18px,4.6vw,23px)/1.2 var(--joy-font);box-shadow:0 5px 0 #73addd,0 7px 15px #72a5ce24}
body #app>.art-welcome .welcome-account-actions>button.welcome-signup>.game-tile-face{background:linear-gradient(145deg,#86ecb3,#39cf86 55%,#1fb66e);color:#10472e;box-shadow:0 5px 0 #168650,0 7px 15px #51d88a44}
body #app>.art-welcome .welcome-play-face{font-size:clamp(22px,5.5vw,28px);padding-inline:14px}
body #app>.clean-welcome.art-welcome.home-simple{min-height:calc(100dvh - var(--toolbar-height) + 1px);grid-template-rows:minmax(0,1fr) auto}
body #app>.art-welcome.home-simple>.welcome-sound-note{font-size:12px;font-weight:650;color:#526b82;margin-top:12px;gap:6px}
body #app>.art-welcome.home-simple>.welcome-sound-note .welcome-sound-icon{width:23px;height:23px}
.family-hub>h2,.family-account-entry>h2{margin:4px 0 18px;text-align:center;color:#1764b5;font-size:clamp(28px,6vw,38px)}
.family-hub>p{margin:0 0 20px;text-align:center;color:#49647b}
.family-hub .parent-details{margin-block:14px}
.family-hub .parent-details summary{font-size:20px;font-weight:800;color:#244b70}
.family-hub .family-hub-account{padding:18px;border-radius:23px;background:#f1f8ff;border:1px solid #cee5fa}
.family-hub-account h3{margin:0 0 10px;color:#244b70}
.family-account-summary p{margin:8px 0;overflow-wrap:anywhere}
.family-account-links{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-wrap:wrap}
.family-account-links .pill{min-height:46px;padding:10px 20px}
.family-account-links a,.family-policy-links a{color:#165fa6;text-underline-offset:3px}
.family-policy-links a{display:block;min-height:44px;padding-block:10px;box-sizing:border-box}
.family-policy-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 8px;line-height:1.5}
@media(max-width:480px){.family-policy-links{grid-template-columns:1fr}}
.family-account-entry{max-width:420px;margin:auto}
.family-account-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 22px;padding:5px;border-radius:22px;background:#deedfa}
.family-account-choice>button{min-width:0;min-height:44px;padding:10px 12px;border:2px solid #c4daec;border-radius:17px;background:#f4faff;color:#315778;font:800 17px/1.25 var(--joy-font,ui-rounded,system-ui);cursor:pointer}
.family-account-choice>button[aria-pressed=true]::after{content:' ✓';font-size:.85em}
.family-account-choice>button[aria-pressed=true]{border-color:#fff;background:linear-gradient(145deg,#f36b80,#c52b4d);color:#fff;box-shadow:0 3px 0 #9d2340,0 0 20px #f5507180;transition:background .15s,box-shadow .15s}
.family-account-choice>button:focus-visible,.family-account-back:focus-visible{outline:3px solid #2275d0;outline-offset:3px}
.family-account-choice>button:disabled{opacity:.6;cursor:wait}
.family-account-entry>.family-account-back{display:block;min-height:44px;margin:18px auto 0;padding:10px 20px;color:#fff;text-decoration:none}
.family-eyebrow{text-align:center;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#486b89}
.family-account-note{font-size:16px;line-height:1.5;color:#49647b;text-align:center;margin:0 0 20px}
.family-account-form{display:grid;gap:14px}
.family-account-form>label{display:grid;gap:6px;color:#294c6a;font-size:16px;font-weight:750}
.family-account-form input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:48px;padding:10px 13px;border:2px solid #bfd9ee;border-radius:13px;background:#fff;color:#17334d;font:400 16px/1.4 system-ui}
.family-account-form input:focus-visible{outline:3px solid #2275d0;outline-offset:3px}
.family-account-form .family-adult-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:550;line-height:1.5}
.family-adult-confirm input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:#1670ca}
.family-account-form small{font-size:13px;color:#49647b;margin-top:-9px}
.family-account-status{font-size:14px;line-height:1.5;color:#3c627d;margin:0}
.family-account-status:empty{display:none}
.family-account-status[data-error=true]{color:#a52e4b;background:#fff0f3;border-radius:12px;padding:10px 12px;font-weight:700}
.family-account-form input[aria-invalid=true]{border-color:#ca365b}
.family-account-form .family-account-submit{width:100%;min-height:52px;margin-top:4px;border:2px solid #fff;border-radius:20px;background:linear-gradient(145deg,#86ecb3,#39cf86 55%,#1fb66e);color:#10472e;font-weight:850;box-shadow:inset 0 1px 1px #ffffffb3,0 5px 0 #168650,0 0 14px #51d88a55;transition:transform .15s ease,box-shadow .15s ease}
.family-account-form .family-account-submit:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 1px #ffffffb3,0 2px 0 #168650,0 0 16px #51d88a66}
.family-account-form .family-account-submit:focus-visible{outline:3px solid #2275d0;outline-offset:4px}
.family-account-other{display:grid;gap:10px;justify-items:center;margin:18px 0;font-size:14px}
.family-account-other a{color:#165fa6}
.family-account-legal{font-size:13px;text-align:center;margin:14px 0 0;color:#49647b}
.family-account-legal a{color:inherit}
@media(max-height:680px) and (orientation:portrait){body #app>.art-welcome .welcome-focus{gap:14px}body #app>.art-welcome .welcome-account-actions{margin-bottom:12px}body #app>.art-welcome .welcome-account-actions>button>.game-tile-face{min-height:46px;font-size:18px}}
@media(max-height:540px) and (orientation:landscape){body #app>.clean-welcome.art-welcome.home-simple{min-height:calc(100dvh - var(--toolbar-height) + 1px)}body #app>.art-welcome .welcome-account-actions{margin-bottom:12px}body #app>.art-welcome .welcome-account-actions>button>.game-tile-face{min-height:45px;font-size:18px}}
@media(forced-colors:active){body #app>.art-welcome .welcome-account-actions>button>.game-tile-face,.family-hub .family-hub-account,.family-account-form input:not([type=checkbox]){background:Canvas;color:CanvasText;border-color:ButtonText;box-shadow:none}body #app>.art-welcome.home-simple>.welcome-sound-note{color:CanvasText}}
@media(forced-colors:active){.family-account-form .family-account-submit{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}}
@media(forced-colors:active){.family-account-choice{background:Canvas;border:1px solid CanvasText}.family-account-choice>button{background:ButtonFace;color:ButtonText}.family-account-choice>button[aria-pressed=true]{background:Highlight;color:HighlightText;border-color:Highlight;box-shadow:none}.family-account-entry>.family-account-back{color:LinkText}}
@media(prefers-reduced-motion:reduce){.family-account-form .family-account-submit{transition:none}}

.family-account-form>[hidden]{display:none!important}
.parent-modal:has(.family-account-entry){max-height:75vh;max-height:75dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

body #app>.art-welcome .welcome-account-actions[hidden]{display:none!important}

/* Home sign-up and login also rise from the bottom, without a separate white
   toolbar. Existing account/session validation remains inside the form. */
#overlay>.backdrop:has(.family-account-entry){display:flex;align-items:flex-end;justify-content:center;padding:max(24px,env(safe-area-inset-top)) 0 0;overflow:hidden;overscroll-behavior:none;background:#24416d33;backdrop-filter:none;-webkit-backdrop-filter:none}
#overlay .parent-modal:has(.family-account-entry){box-sizing:border-box;width:min(480px,100%);height:auto;min-height:0;max-height:75vh;max-height:75dvh;margin:0;padding:0 max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));border:0;border-radius:30px 30px 0 0;background:var(--sano-canvas);box-shadow:0 -10px 42px #274d6b30;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;animation:sano-account-sheet-in 220ms cubic-bezier(.2,.75,.25,1)}
#overlay .parent-modal:has(.family-account-entry)>.sano-sheet-header>.sano-sheet-handle{width:100%;max-width:none;height:30px;margin:0}
#overlay .parent-modal:has(.family-account-entry)>.sano-sheet-header>.sano-sheet-handle::before{left:calc(50% - 22px)}
#overlay .parent-modal:has(.family-account-entry)>.sano-sheet-header>.modal-toolbar{position:relative;top:auto;margin:0 0 18px;padding:0;min-height:44px;background:transparent;box-shadow:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
@keyframes sano-account-sheet-in{from{opacity:.88;transform:translateY(min(28px,5vh))}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#overlay .parent-modal:has(.family-account-entry){animation:none}}
@media(forced-colors:active){#overlay .parent-modal:has(.family-account-entry){background:Canvas;color:CanvasText;border:1px solid CanvasText}}

/* Family and Help leave the activity visible above the sheet. Short pages
   keep their natural height; safe-area padding stays inside the bottom edge. */
#overlay>.backdrop:has(>.parent-modal :is(.family-hub,.bilingual-help-panel,.grownup-gate)){display:flex;align-items:flex-end;justify-content:center;padding:max(24px,env(safe-area-inset-top)) 0 0;overflow:hidden;overscroll-behavior:none;background:#24416d33;backdrop-filter:none;-webkit-backdrop-filter:none}
#overlay .parent-modal:has(:is(.family-hub,.bilingual-help-panel,.grownup-gate)){box-sizing:border-box;width:min(660px,100%);height:auto;min-height:0;max-height:75vh;max-height:75dvh;margin:0;padding:0 max(22px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));border:0;border-radius:30px 30px 0 0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;animation:sano-account-sheet-in 220ms cubic-bezier(.2,.75,.25,1)}
#overlay .parent-modal:has(:is(.family-hub,.bilingual-help-panel,.grownup-gate))::before{content:none;display:none}
#overlay .parent-modal:has(:is(.family-hub,.bilingual-help-panel,.grownup-gate))>.sano-sheet-header>.modal-toolbar>.sano-sheet-close{display:none}
#overlay .parent-modal:has(:is(.family-hub,.bilingual-help-panel,.grownup-gate))>.sano-sheet-header>.sano-sheet-handle{width:100%;max-width:none;min-width:0;height:44px;min-height:44px;margin:0}
#overlay .parent-modal:has(:is(.family-hub,.bilingual-help-panel,.grownup-gate))>.sano-sheet-header>.sano-sheet-handle::before{left:calc(50% - 22px)}
@media(prefers-reduced-motion:reduce){#overlay .parent-modal:has(:is(.family-hub,.bilingual-help-panel,.grownup-gate)){animation:none}}



/* The grown-up calculator uses the same compact sheet as its destination. */
#overlay .parent-modal:has(>.grownup-gate){width:min(480px,100%)}

/* The Family sheet and its grown-up gate share the approved header wordmark. */
#overlay .parent-modal>.sano-sheet-header>.modal-toolbar>.family-sheet-brand{display:block;flex:0 1 114px;min-width:76px;color:#0867ed;line-height:0}
#overlay .parent-modal>.sano-sheet-header>.modal-toolbar>.family-sheet-brand>.sano-wordmark{display:block;width:100%;height:auto;max-height:44px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;filter:none}
@media(max-width:360px){#overlay .parent-modal>.sano-sheet-header>.modal-toolbar>.family-sheet-brand{flex-basis:90px}}
@media(forced-colors:active){#overlay .parent-modal>.sano-sheet-header>.modal-toolbar>.family-sheet-brand{color:LinkText}}

/* The sheet controller owns the entrance/exit. The legacy backdrop animation
   also transforms its fixed-position ancestor, making the sheet jump. Keep
   that ancestor still and avoid re-blurring a moving full-screen activity. */
#overlay>.backdrop:has(>.parent-modal){animation:none;transform:none;backdrop-filter:none;-webkit-backdrop-filter:none;background:#24416d55}
#overlay>.backdrop>.parent-modal{will-change:transform}
/* Inert learning surfaces stay in place without painting their idle motion
   behind the adult sheet. Removing inert resumes the existing animation. */
#app[inert] *,#app[inert] *::before,#app[inert] *::after{animation-play-state:paused!important}

/* Loading, calculator and Family use one bottom-aligned frame. A network
   response changes its contents, never the frame's position or slide height. */
#overlay>.backdrop:has(>.parent-modal){display:flex;align-items:flex-end;justify-content:center;padding:max(24px,env(safe-area-inset-top)) 0 0;overflow:hidden;overscroll-behavior:none}
#overlay>.backdrop>.parent-modal{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--sano-canvas,#f5faff);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:auto;box-shadow:0 -10px 42px #274d6b30}
#overlay>.backdrop>.parent-modal:has(:is(.family-gate-loading,.grownup-gate,.family-hub)){
 box-sizing:border-box;width:min(650px,100%);height:75vh;height:75dvh;min-height:0;max-height:75vh;max-height:75dvh;margin:0;
 padding:0 max(22px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));border:0;border-radius:30px 30px 0 0;
}
#overlay .parent-modal:has(.family-gate-loading)>.sano-sheet-header>.sano-sheet-handle{width:100%;max-width:none;min-width:0;height:44px;min-height:44px;margin:0}
#overlay .parent-modal:has(.family-gate-loading)>.sano-sheet-header>.sano-sheet-handle::before{left:calc(50% - 22px)}
#overlay .parent-modal:has(.family-gate-loading)>.sano-sheet-header>.modal-toolbar>.sano-sheet-close{display:none}
.family-gate-loading{display:grid;place-items:center;min-height:180px}

/* Scroll content beneath one translucent header, as in the reference clip. */
#overlay .parent-modal>.sano-sheet-header{
 position:sticky;top:0;z-index:10;box-sizing:border-box;
 margin:0 calc(-1 * max(22px,env(safe-area-inset-right))) 10px calc(-1 * max(22px,env(safe-area-inset-left)));
 padding:0 max(22px,env(safe-area-inset-right)) 6px max(22px,env(safe-area-inset-left));
 background:linear-gradient(180deg,#f5faffd6,#f5faff80 72%,#f5faff00);
 backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
#overlay .parent-modal>.sano-sheet-header>.sano-sheet-handle{display:block;position:relative;width:100%;max-width:none;min-width:0;height:44px;min-height:44px;margin:0}
#overlay .parent-modal>.sano-sheet-header>.sano-sheet-handle::before{left:calc(50% - 22px)}
#overlay .parent-modal>.sano-sheet-header>.modal-toolbar{position:static;min-height:44px;margin:0;padding:0;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#overlay .parent-modal .sano-sheet-title{margin:10px 0 0;text-align:center;color:#1764b5;font-size:clamp(28px,6vw,38px);line-height:1.2}
#overlay .parent-modal{scroll-padding-top:144px}
#overlay .parent-modal:has(>.sano-sheet-header)::before{content:none;display:none}
@media(forced-colors:active){#overlay .parent-modal>.sano-sheet-header{background:Canvas;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-transparency:reduce){#overlay .parent-modal>.sano-sheet-header{background:#f5faff;backdrop-filter:none;-webkit-backdrop-filter:none}}


/* Match Coins: a stationary logo above the bounded scroll fade. Avoid a
   second blur layer extending into the first form row while it moves. */
body #overlay>.backdrop>.parent-modal:has(>.sano-sheet-scroll)>.sano-sheet-header::before{content:none!important;display:none!important}
body #overlay>.backdrop>.parent-modal:has(.family-account-entry){height:75vh;height:75dvh}
body #overlay>.backdrop>.parent-modal>.sano-sheet-scroll{overflow-anchor:none}
body #overlay>.backdrop>.parent-modal .grownup-gate>.gate-heading{display:block;width:min(320px,100%);margin:0 auto;line-height:0}
body #overlay>.backdrop>.parent-modal .grownup-gate>.gate-heading>span{display:block;width:100%}
body #overlay>.backdrop>.parent-modal .grownup-gate>.gate-heading svg{display:block;width:100%;height:auto;max-height:32px}
body #overlay .family-account-entry>.family-account-back{width:max-content;min-width:76px;min-height:44px;padding:10px 18px;border:3px solid #fff;border-radius:19px;text-decoration:none;font:850 15px/1.2 var(--joy-font);animation:none!important;transform:none!important}
@media(forced-colors:active){body #overlay .family-account-entry>.family-account-back{background:ButtonFace;color:ButtonText;border-color:ButtonText}}

/* One visible route back, directly beneath the Sano wordmark. */
body #overlay .parent-page-nav{display:flex;align-items:center;margin:10px 0 0;min-height:44px}
body #overlay .parent-page-back{position:static!important;width:auto!important;min-width:74px;min-height:44px;padding:8px 14px!important;font-size:15px;line-height:1.2;animation:none!important;transform:none!important}
body #overlay>.backdrop>.parent-modal:has(:is(.family-experience,.family-membership-offer)){box-sizing:border-box;width:min(650px,100%);height:80vh;height:80dvh;max-height:80dvh;min-height:0;margin:0;border:0;border-radius:30px 30px 0 0;padding:0 max(22px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}
.family-page-intro{font-size:17px;line-height:1.5;color:#486379}
.family-small-note{font-size:13px;line-height:1.5;color:#526b7d}
.family-progress-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.family-stat{display:grid;justify-items:center;align-content:center;gap:8px;padding:18px 8px;border:2px solid #fff;border-radius:24px;background:linear-gradient(145deg,#f3fbff,#dceffc);box-shadow:0 5px 16px #456b8012;text-align:center}
.family-stat>span:first-child{font-size:30px;color:#427da5}.family-stat>strong{font-size:clamp(24px,6vw,36px);line-height:1.1;font-variant-numeric:tabular-nums;color:#264c67}.family-stat strong small{font-size:16px;font-weight:600}
.family-stat>span:last-child{font-size:13px;line-height:1.4}.family-stat-stars{background:linear-gradient(145deg,#fff9db,#fff0b8)}.family-stat-stars>span:first-child{color:#db9b15}.family-stat-coins{background:linear-gradient(145deg,#fff4d9,#ffe4af)}.family-stat-coins>span:first-child{color:#ce8b16;text-shadow:0 2px 0 #ad7118,0 -1px 0 #fff6bc}
.family-progress-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.family-progress-actions>button{flex:1 1 170px;min-height:48px}
.family-help .parent-details{border:1px solid #d5e4ed;border-radius:20px;padding:4px 16px;background:#ffffffb8}.family-help .parent-details>summary{padding:14px 0;min-height:44px;box-sizing:border-box;font-size:18px}.family-help summary>span{display:inline-block;min-width:32px;color:#467ba6}
.family-progress :is(.learning-counts,.playful-counts){display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.family-progress .learning-counts>div{padding:14px;border-radius:18px;background:#edf7ff;text-align:center}.family-progress .learning-counts dt{font-size:13px;line-height:1.4}.family-progress .learning-counts dd{margin:8px 0 0;font-weight:800;font-size:28px;color:#246da2}
@media(max-width:360px){.family-progress-tiles{gap:6px}.family-stat{padding:15px 5px;border-radius:18px}.family-stat>span:last-child{font-size:12px}}
@media(forced-colors:active){.family-stat,.family-help .parent-details{background:Canvas;border-color:CanvasText;box-shadow:none}.family-stat>span:first-child{color:CanvasText;text-shadow:none}}
body #overlay>.backdrop>.parent-modal>.sano-sheet-header>.parent-page-nav{display:flex!important;justify-content:flex-start!important;align-items:center!important;min-height:44px!important;height:auto!important;padding:0!important;margin:4px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;gap:0!important}
body #overlay>.backdrop>.parent-modal>.sano-sheet-header>.parent-page-nav>.parent-page-back{margin:0!important;flex:none!important;filter:none!important;min-width:72px;min-height:44px;padding:8px 14px!important;border:2px solid #fff!important;border-radius:16px!important;background:linear-gradient(145deg,#f87683,#dc485e)!important;box-shadow:0 3px 0 #bb4153,0 4px 12px #ec586126!important;color:#fff;font:750 15px/1.3 var(--joy-font);text-shadow:none}
body #overlay .parent-modal>.sano-sheet-header>.modal-toolbar{justify-content:flex-start;gap:14px}body #overlay .parent-modal>.sano-sheet-header>.modal-toolbar>.family-sheet-brand{margin-right:auto}body #overlay .parent-modal>.sano-sheet-header>.modal-toolbar>.sano-sheet-close{order:3;margin:0}

/* A compact red return control beneath the brand; its row has no plate. */
body #overlay .parent-page-nav::before,body #overlay .parent-page-nav::after,body #overlay .parent-page-back::before,body #overlay .parent-page-back::after{content:none!important;display:none!important}
body #overlay .parent-page-back:focus-visible{outline:3px solid #0867ed;outline-offset:2px;border-radius:8px!important}
body #overlay .parent-page-back:active{color:#fff;translate:0 1px}

.password-field{display:block;position:relative;min-width:0}
.password-field input{box-sizing:border-box;width:100%;padding-right:54px!important}
.password-field>.password-visibility{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:10px;border:0;border-radius:12px;background:transparent;box-shadow:none;color:#315b79;cursor:pointer}
.password-visibility>svg{display:block;width:22px;height:22px;pointer-events:none}
.password-visibility .password-eye-slash{display:none}.password-visibility[aria-pressed=true] .password-eye-slash{display:block}
.password-field>.password-visibility:focus-visible{outline:3px solid #2275d0;outline-offset:1px}.password-field>.password-visibility:hover{background:#437eac15}
@media(forced-colors:active){.password-field>.password-visibility{color:ButtonText;border:1px solid ButtonText}}

/* Account fields keep one contained focus treatment, including iOS keyboard Done. */
.password-field{border-radius:13px;isolation:isolate}
.password-field:focus-within{box-shadow:0 0 0 3px #e86a8a44}
.password-field input:focus-visible{outline:none!important;border-color:#d64e73!important;box-shadow:none!important}
.password-field>.password-visibility{z-index:1;line-height:1;-webkit-tap-highlight-color:transparent}
.password-field>.password-visibility:focus-visible{outline:2px solid #af3157;outline-offset:-4px}
.family-account-form>label{min-width:0}
.family-account-form input:not([type=checkbox]):focus-visible{outline:2px solid #d64e73;outline-offset:0}
.family-account-choice>button{align-self:stretch;margin:0!important}
.family-password-guidance{margin:0;font-size:13px;line-height:1.4;color:#49647b}
:is(.parent-modal,.coin-dialog,.wallet-sheet)[tabindex]:focus{outline:none}

/* Sano stylesheet: shapes-colours.css */
/* Shapes share the tactile lesson tiles. The shell owns Back and the star total. */
#app .shapes-colours,#app .shapes-colours *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
#app .shapes-colours :is(input,textarea,[contenteditable]:not([contenteditable=false]),[contenteditable]:not([contenteditable=false]) *){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#app .shapes-colours{width:min(100%,820px);box-sizing:border-box;margin:0 auto;padding:28px 14px max(24px,env(safe-area-inset-bottom,0px));color:#173148;text-align:center}
#app .shapes-colours .sc-heading{margin:0 auto 28px;padding:0;max-width:100%}
#app .shapes-colours .sc-heading h1{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.22em;margin:0;color:#0666ef;font-size:clamp(1.65rem,5vw,2.6rem);font-weight:900;line-height:1.2;outline:none}
#app .shapes-colours .sc-heading .sc-title{display:block;width:min(100%,300px);margin:0 auto;line-height:1}
#app .shapes-colours .sc-title>svg{display:block;width:100%;height:auto;max-height:90px;overflow:visible}
#app .shapes-colours .sc-word-separator{opacity:.5;margin:0 .1em}
#app .shapes-colours .sc-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px;width:100%;margin:0 auto}
#app .shapes-colours .sc-pick{position:relative;isolation:isolate;display:block;width:100%;min-width:0;padding:0;border:0;border-radius:28px;background:none;box-shadow:none;color:#173148;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation}
#app .shapes-colours .sc-pick-face{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;min-height:160px;padding:12px 10px;border:3px solid #ffffffc9;border-radius:28px;background:linear-gradient(155deg,#ffffff45,transparent 57%),var(--topic-fill,#91caff);box-shadow:inset 0 2px 1px #ffffffa6,0 5px 0 var(--topic-edge,#4c9fea),0 9px 14px -6px #24416d35;animation:none}
#app .shapes-colours .sc-pick-face>:is(.sc-shape,.learning-colour-art){display:block;width:106px;max-width:100%;height:106px;flex:0 0 auto;filter:drop-shadow(0 3px 2px #23466520);background:none;pointer-events:none}
#app .shapes-colours .sc-pick strong{max-width:100%;font:900 clamp(1rem,2.4vw,1.2rem)/1.22 var(--joy-font);color:#173148;overflow-wrap:normal;word-break:normal}
#app .shapes-colours .sc-current .sc-pick-face{border-color:#fff;box-shadow:inset 0 2px 1px #fff,0 5px 0 var(--topic-edge,#4c9fea),0 0 0 2px #ffffffd9,0 0 18px #4c9fea50}
#app .shapes-colours .sc-current::before{content:"";position:absolute;inset:-6px;z-index:-1;border-radius:34px;background:radial-gradient(ellipse,#5db8ff55,transparent 73%);pointer-events:none}
#app .shapes-colours .sc-earned{position:absolute;z-index:3;top:6px;right:6px;width:28px;height:30px;pointer-events:none;filter:drop-shadow(0 2px 1px #926b2533)}
#app .shapes-colours .sc-earned svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;overflow:visible;animation:none;transform:none}
#app .shapes-colours .sc-model,#app .shapes-colours .sc-stencil{display:block;position:relative;width:min(64vw,300px);aspect-ratio:1;margin:0 auto;padding:0;border:0;border-radius:30px;background:linear-gradient(150deg,#fff,#f0f8ff);box-shadow:inset 0 0 0 3px #fff,0 5px 0 #a9cce6,0 10px 18px -8px #24416d35;appearance:none;-webkit-appearance:none}
#app .shapes-colours .sc-model{cursor:pointer;touch-action:manipulation}
#app .shapes-colours .sc-model>svg,#app .shapes-colours .sc-stencil>svg{display:block;width:100%;height:100%;background:none;overflow:visible}
#app .shapes-colours .sc-model>svg{filter:drop-shadow(0 4px 2px #23466520)}
/* No padding or border may change the stencil's 240x240 pointer coordinates. */
#app .shapes-colours .sc-stencil{touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
#app .shapes-colours .sc-crayons{display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,24px);margin:16px 0 0}
#app .shapes-colours .sc-crayon{width:65px;height:103px;display:flex;justify-content:center;align-items:center;min-width:44px;padding:3px 10px;border:3px solid transparent;border-radius:18px;background:transparent;box-shadow:none;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:transform .12s,border-color .12s}
#app .shapes-colours .sc-crayon svg{width:100%;height:100%;overflow:visible;pointer-events:none;filter:drop-shadow(0 3px 1px #23466522)}
#app .shapes-colours .sc-crayon[aria-pressed=true]{border-color:#ed5c9e;transform:translateY(-5px);background:#ffffff8c;box-shadow:0 3px 0 #dd8eb149}
#app .shapes-colours .sc-status{font-weight:800;font-size:1rem;line-height:1.3;min-height:1.3em;margin:4px 0;color:#a7195e}
#app .shapes-colours .sc-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin:28px 0 10px;padding:0 0 6px;overflow:visible}
#app .shapes-colours .sc-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:60px;min-width:110px;padding:11px 20px;border:3px solid #fff;border-bottom:6px solid #c94683;border-radius:25px;background:linear-gradient(150deg,#ffafd4,#f777b3 58%,#ec5f9f);color:#56223c;box-shadow:inset 0 2px 1px #ffffffb3,0 4px 0 #c946832b,0 8px 15px #74406521;font:900 1.15rem/1.2 var(--joy-font);cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation}
#app .shapes-colours .sc-button.sc-listen{min-width:120px;padding:11px 18px;border-bottom-color:#a38acf;background:linear-gradient(150deg,#faf3ff,#e6d6ff 58%,#d2bdf5)!important;color:#483680!important;box-shadow:inset 0 2px 1px #fff,0 4px 0 #af96d83b,0 8px 15px #7456aa1c}
#app .shapes-colours .sc-listen svg{display:block;width:29px;height:29px;flex:none;pointer-events:none;overflow:visible}
#app .shapes-colours .sc-button.sc-reset{min-width:60px;width:60px;padding:9px;border-bottom-color:#cda63b;background:linear-gradient(150deg,#fff3b7,#ffda63);color:#6a490b;font-size:1.8rem}
#app .shapes-colours .sc-key-cursor{visibility:hidden;pointer-events:none}
#app .shapes-colours .sc-key-cursor.sc-key-active{visibility:visible}
#app .shapes-colours :is(button,[tabindex]):focus-visible{outline:3px solid #174f9e;outline-offset:5px}
#app .shapes-colours button:active{translate:0 2px}
@media(max-width:600px){#app .shapes-colours{padding:2px 8px 12px}#app .shapes-colours .sc-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}#app .shapes-colours .sc-pick-face{min-height:145px;padding:10px 8px;border-radius:25px}#app .shapes-colours .sc-pick-face>.sc-shape{width:95px;height:95px}#app .shapes-colours .sc-heading{margin-bottom:12px}#app .shapes-colours .sc-model,#app .shapes-colours .sc-stencil{width:min(64vw,280px)}#app .shapes-colours .sc-crayon{height:86px;width:56px;padding:3px 8px}#app .shapes-colours .sc-actions{gap:12px;margin-top:16px}}
@media(max-height:700px){#app .shapes-colours[data-sc-phase=paint] .sc-stencil,#app .shapes-colours[data-sc-phase=model] .sc-model{width:min(56vw,235px)}#app .shapes-colours .sc-crayon{height:75px}#app .shapes-colours .sc-heading h1{font-size:1.65rem}#app .shapes-colours .sc-actions{margin-top:12px}}
@media(prefers-reduced-motion:no-preference){#app .shapes-colours .sc-model{animation:sc-arrive .36s cubic-bezier(.2,.8,.3,1.2) both}#app .shapes-colours .sc-current .sc-pick-face{animation:sc-heartbeat 3.6s ease-in-out infinite}#app .shapes-colours .sc-current::before{animation:sc-glow 3.6s ease-in-out infinite}#app .shapes-colours .sc-button,#app .shapes-colours .sc-pick-face{transition:transform .16s cubic-bezier(.2,.8,.3,1.4),translate .16s}#app .shapes-colours .sc-button:active,#app .shapes-colours .sc-pick:active .sc-pick-face{transform:scale(.96)}}
@keyframes sc-arrive{from{opacity:.4;transform:translateY(8px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sc-heartbeat{0%,38%,100%{transform:scale(1)}12%{transform:scale(1.035)}21%{transform:scale(1)}29%{transform:scale(1.02)}}
@keyframes sc-glow{0%,38%,100%{opacity:.5}12%,29%{opacity:1}}
body[data-page-hidden=true] #app .shapes-colours :is(.sc-pick-face,.sc-model,.sc-button),body[data-page-hidden=true] #app .shapes-colours .sc-current::before{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .shapes-colours :is(.sc-pick-face,.sc-model,.sc-button,.sc-crayon),body:is([data-motion=reduce],[data-reduced-motion=true]) #app .shapes-colours .sc-current::before{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){#app .shapes-colours :is(.sc-pick-face,.sc-model,.sc-button,.sc-crayon),#app .shapes-colours .sc-current::before{animation:none!important;transition:none!important}}
@media(forced-colors:active){#app .shapes-colours :is(.sc-pick-face,.sc-button,.sc-model,.sc-stencil){outline:2px solid ButtonText;box-shadow:none;background:ButtonFace!important;color:ButtonText!important}#app .shapes-colours .sc-current::before{display:none}#app .shapes-colours .sc-current .sc-pick-face{outline:3px solid Highlight}#app .shapes-colours .sc-crayon[aria-pressed=true]{border-color:Highlight}#app .shapes-colours svg{forced-color-adjust:none}}
@media(orientation:landscape) and (max-height:600px){#app .shapes-colours .sc-picker{grid-template-columns:repeat(4,minmax(0,1fr))}#app .shapes-colours[data-sc-phase=paint]{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,.8fr);column-gap:18px;max-width:690px}#app .shapes-colours[data-sc-phase=paint] .sc-heading{grid-column:1/-1;margin-bottom:8px}#app .shapes-colours[data-sc-phase=paint] .sc-stencil{grid-column:1;grid-row:2/5;width:min(40vw,220px)}#app .shapes-colours[data-sc-phase=paint] .sc-crayons{grid-column:2;grid-row:2;align-self:end;gap:4px;margin-top:0}#app .shapes-colours[data-sc-phase=paint] .sc-crayon{height:74px;width:51px;padding:3px 7px}#app .shapes-colours[data-sc-phase=paint] .sc-status{grid-column:2;grid-row:3;margin:2px 0}#app .shapes-colours[data-sc-phase=paint] .sc-actions{grid-column:2;grid-row:4;margin:0}}


/* The two paths start below the shell's navigation and use the same spacing. */
#app .shapes-colours .sc-discover{margin:16px 0 0;padding:0;color:#0666ef;font:900 clamp(1.05rem,3.5vw,1.25rem)/1.4 var(--joy-font);text-wrap:balance}
#app .shapes-colours .sc-discover.is-discovered{color:#23774f}
#app .shapes-colours .sc-menu{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;width:min(100%,230px);margin:0 auto}
#app .shapes-colours .sc-menu-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:0;width:100%;aspect-ratio:1;box-sizing:border-box;padding:18px 14px;border:3px solid #ffffffdd;border-radius:28px;background:linear-gradient(150deg,#ffffff60,transparent 65%),var(--topic-fill,#91caff);box-shadow:inset 0 2px 1px #fff9,0 6px 0 var(--topic-edge,#4c9fea),0 10px 16px -8px #24416d35;color:#173148;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation;font-family:var(--joy-font)}
#app .shapes-colours .sc-menu-art{display:flex;align-items:center;justify-content:center;gap:4px;width:min(100%,190px);height:clamp(52px,14vw,100px);flex:none;pointer-events:none}
#app .shapes-colours .sc-menu-art>svg{display:block;width:calc((100% - 8px)/3);max-width:33.333%;height:100%;min-width:0;overflow:visible}
#app .shapes-colours .sc-menu-tile strong{max-width:100%;font-size:clamp(1.1rem,4.6vw,1.85rem);font-weight:900;line-height:1.3;text-wrap:balance}
#app .shapes-colours .sc-colour-groups{display:grid;gap:34px}
#app .shapes-colours .sc-colour-group{margin:0;padding:0}
#app .shapes-colours .sc-colour-group h2{margin:0 0 18px;color:#0666ef;font:900 clamp(1.1rem,3.3vw,1.35rem)/1.3 var(--joy-font)}
#app .shapes-colours .sc-colour-group .sc-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
#app .shapes-colours [hidden]{display:none!important}
#app .shapes-colours .sc-button:disabled{opacity:.5;cursor:default;transform:none}
#app .shapes-colours .sc-next:disabled{filter:blur(.65px) saturate(.65);animation:none;translate:none}
#app .shapes-colours .sc-listen{position:relative;overflow:visible;white-space:nowrap;text-decoration:none;line-height:1.25}
#app .shapes-colours .sc-listen::before,#app .shapes-colours .sc-listen::after{content:none!important}
#app .shapes-colours .sc-listen span{display:block;position:static;transform:none;text-decoration:none;line-height:1.25}
#app .shapes-colours[data-sc-section=shapes] .sc-model{background:linear-gradient(150deg,#fff,#f1f3f5)}
@media(max-width:600px){
 #app .shapes-colours{padding:24px 8px max(22px,env(safe-area-inset-bottom,0px))}
 #app .shapes-colours .sc-heading{margin-bottom:26px}
 #app .shapes-colours .sc-menu{gap:18px}
 #app .shapes-colours .sc-menu-tile{min-height:0;padding:12px 9px;gap:10px}
 #app .shapes-colours .sc-pick-face>:is(.sc-shape,.learning-colour-art){width:95px;height:95px}
 #app .shapes-colours .sc-colour-group .sc-pick-face{min-height:124px;padding:10px 4px}
 #app .shapes-colours .sc-colour-group .sc-pick-face>.learning-colour-art{width:72px;height:72px}
 #app .shapes-colours .sc-colour-group .sc-picker{gap:14px 10px}
 #app .shapes-colours .sc-actions{margin-top:25px;gap:12px}
}
@media(prefers-reduced-motion:no-preference){
 #app .shapes-colours .sc-discover:not(.is-discovered){animation:sc-discover-pulse 2.8s ease-in-out infinite}
 #app .shapes-colours .sc-model.sc-jiggle{animation:sc-jiggle .45s ease-out}
}
@keyframes sc-discover-pulse{0%,45%,100%{transform:scale(1);color:#0666ef}16%{transform:scale(1.045);color:#398fff}28%{transform:scale(1)}37%{transform:scale(1.025);color:#398fff}}
@keyframes sc-jiggle{0%,100%{transform:rotate(0) scale(1)}22%{transform:rotate(-5deg) scale(1.035)}48%{transform:rotate(5deg) scale(1.035)}72%{transform:rotate(-3deg) scale(1.015)}}
body[data-page-hidden=true] #app .shapes-colours .sc-discover{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .shapes-colours :is(.sc-discover,.sc-model,.sc-menu-tile){animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){#app .shapes-colours :is(.sc-discover,.sc-model,.sc-menu-tile){animation:none!important;transition:none!important}}


/* Completed stars stay on the moving card surface; locked cards keep a clear
   lock while their artwork is dimmed. Every colour group uses three columns. */
#app .shapes-colours .sc-pick-face>.sc-earned{flex:none;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
#app .shapes-colours .sc-pick.is-locked{cursor:default}
#app .shapes-colours .sc-pick.is-locked .sc-pick-face{animation:none!important}
#app .shapes-colours .sc-pick.is-locked .sc-pick-face>:is(.sc-shape,.learning-colour-art,strong){opacity:.5;filter:blur(1px)}
#app .shapes-colours .sc-pick-face>.topic-lock-badge{position:absolute;top:6px;right:6px;display:grid;place-items:center;box-sizing:border-box;width:26px;height:26px;min-width:0;min-height:0;margin:0;padding:4px;border:2px solid #fff;border-radius:50%;background:#f7fbff;color:#49677e;box-shadow:0 2px 4px #24416d20;pointer-events:none}
#app .shapes-colours .topic-lock-badge>svg{display:block;width:100%;height:100%;transform:none;animation:none}
#app .shapes-colours .sc-colour-group .sc-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
#app .shapes-colours .sc-button{box-sizing:border-box;max-width:100%}
#app .shapes-colours .sc-next:not(.sc-ready){animation:none}
/* The canvas remains fixed so paint coordinates never shift. Animate the
   artwork within model and crayon controls, and only ready Next buttons. */
@media(prefers-reduced-motion:no-preference){
 #app .shapes-colours .sc-model>svg,
 #app .shapes-colours .sc-crayon>svg,
 #app .shapes-colours :is(.sc-listen,.sc-reset):not(:disabled){animation:sc-idle-tilt 3.8s ease-in-out infinite;transform-origin:center}
 #app .shapes-colours .sc-crayon:nth-child(3n+2)>svg{animation-delay:-1.2s}
 #app .shapes-colours .sc-crayon:nth-child(3n)>svg{animation-delay:-2.4s}
 #app .shapes-colours .sc-next.sc-ready:not(:disabled):not([hidden]){animation:sc-next-heartbeat 1.25s ease-in-out infinite;transform-origin:center}
}
@keyframes sc-idle-tilt{0%,100%{transform:translateY(-1px) rotate(-1.2deg)}50%{transform:translateY(1px) rotate(1.2deg)}}
@keyframes sc-next-heartbeat{0%,42%,100%{transform:scale(1)}12%{transform:scale(1.045)}22%{transform:scale(1)}32%{transform:scale(1.03)}}
#app .shapes-colours button:active,#app .shapes-colours button:active>svg{animation-play-state:paused}
body[data-page-hidden=true] #app .shapes-colours :is(.sc-model>svg,.sc-crayon>svg,.sc-menu-tile),#app[inert] .shapes-colours :is(.sc-model>svg,.sc-crayon>svg,.sc-button,.sc-menu-tile){animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .shapes-colours :is(.sc-model>svg,.sc-crayon>svg){animation:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){#app .shapes-colours :is(.sc-model>svg,.sc-crayon>svg){animation:none!important;transform:none!important}}
@media(max-width:380px){
 #app .shapes-colours .sc-colour-group .sc-pick-face{min-height:116px;padding:10px 3px}
 #app .shapes-colours .sc-colour-group .sc-pick-face>.learning-colour-art{width:62px;height:62px}
 #app .shapes-colours .sc-colour-group .sc-pick strong{font-size:.92rem}
 #app .shapes-colours .sc-colour-group .sc-picker{gap:14px 8px}
 #app .shapes-colours .sc-earned{width:24px;height:26px;top:4px;right:4px}
 #app .shapes-colours .sc-actions{gap:10px}
 #app .shapes-colours .sc-button{min-width:100px;padding-inline:12px;font-size:1.05rem}
 #app .shapes-colours .sc-button.sc-listen{min-width:112px;padding-inline:12px}
}
@media(orientation:landscape) and (max-height:600px){
 #app .shapes-colours[data-sc-phase=paint]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #app .shapes-colours[data-sc-phase=paint] .sc-actions{gap:8px;flex-wrap:wrap}
 #app .shapes-colours[data-sc-phase=paint] .sc-button{min-width:90px;padding-inline:10px}
 #app .shapes-colours[data-sc-phase=paint] .sc-stencil{max-width:100%}
}
@media(forced-colors:active){
 #app .shapes-colours .sc-pick-face>.topic-lock-badge{background:Canvas;border-color:CanvasText;color:CanvasText}
 #app .shapes-colours .sc-pick.is-locked .sc-pick-face>:is(.sc-shape,.learning-colour-art,strong){filter:none;opacity:.7}
}

/* Sano stylesheet: scribble-game.css */
/* Scribble uses the same raised, touch-sized choices as the learning tiles. */
/* On iOS a long hold on tool labels or artwork must remain part of drawing,
   without opening text selection, the magnifier, or the image callout. */
#app .scribble-freeplay,#app .scribble-freeplay *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
#app .scribble-freeplay :is(input,textarea,[contenteditable]:not([contenteditable=false]),[contenteditable]:not([contenteditable=false]) *){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#app .scribble-freeplay{display:flex;flex-direction:column;align-items:center;width:min(780px,100%);gap:12px;margin:6px auto 14px}
#app .scribble-freeplay [hidden]{display:none!important}
#app .scribble-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:min(650px,100%);padding:4px 2px 10px}
#app .scribble-mode-grid .scribble-choice{appearance:none;-webkit-appearance:none;display:block;position:relative;width:100%;min-width:0;max-width:none;padding:0;border:0;border-radius:28px;background:none;color:#174d83;cursor:pointer;touch-action:manipulation;--scribble-fill:#a8dbff;--scribble-edge:#3b97d7;--scribble-ink:#174d83;--scribble-delay:0s}
#app .scribble-mode-grid .scribble-choice:nth-child(2){--scribble-fill:#ffc0dc;--scribble-edge:#dc72a5;--scribble-ink:#7e2458;--scribble-delay:-.6s}
#app .scribble-mode-grid .scribble-choice:nth-child(3){--scribble-fill:#9be3be;--scribble-edge:#3caf7f;--scribble-ink:#155e43;--scribble-delay:-1.2s}
#app .scribble-mode-grid .scribble-choice:nth-child(4){--scribble-fill:#ffe18a;--scribble-edge:#d6a634;--scribble-ink:#73500a;--scribble-delay:-1.8s}
#app .scribble-mode-grid .scribble-choice-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:185px;width:100%;padding:15px 10px 18px;box-sizing:border-box;border:3px solid #fff;border-bottom:6px solid var(--scribble-edge);border-radius:28px;background:linear-gradient(145deg,#ffffff55,transparent 66%),var(--scribble-fill);color:var(--scribble-ink);box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--scribble-edge),0 11px 19px #28548818;animation:scribble-choice-breathe 4s ease-in-out infinite;animation-delay:var(--scribble-delay);transform-origin:50% 80%}
#app .scribble-mode-grid .scribble-choice-picture{display:grid;place-items:center;width:104px;height:94px;max-width:100%;min-height:0;margin:0}
#app .scribble-mode-grid .scribble-choice-picture>:is(img,svg){display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
#app .scribble-mode-grid .scribble-choice-picture path{stroke-linecap:round;stroke-linejoin:round}
#app .scribble-mode-grid .scribble-choice strong{display:block;width:100%;font:900 clamp(18px,3vw,24px)/1.25 var(--joy-font);text-align:center;text-wrap:balance;color:inherit}
#app .scribble-mode-grid .scribble-choice-picture{flex:none;overflow:visible}
#app .scribble-mode-grid .scribble-choice strong{flex:none;margin:0}
#app .scribble-mode-grid [data-mode=flag] .scribble-choice-face{gap:14px}
#app .scribble-mode-grid [data-mode=flag] .scribble-choice-picture{padding:2px 9px 6px;box-sizing:border-box}
#app .scribble-mode-grid .scribble-art-pencil{transform-box:fill-box;transform-origin:20% 90%;animation:scribble-pencil-draw 3.6s ease-in-out infinite}
#app .scribble-mode-grid .scribble-art-spark{transform-box:fill-box;transform-origin:center;animation:scribble-spark-pop 3.6s ease-in-out infinite}
#app .scribble-mode-grid .scribble-choice:active .scribble-choice-face{animation-play-state:paused;transform:translateY(3px) scale(.97)}
#app .scribble-freeplay .scribble-paper{display:block;width:100%;height:clamp(230px,44svh,480px);min-height:0;aspect-ratio:2/1;background:#fff!important;border:3px solid #b7d9f3!important;border-radius:24px!important;box-sizing:border-box;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#app .scribble-freeplay{touch-action:pan-y pinch-zoom}
#app .scribble-freeplay .scribble-paper-frame{position:relative;width:100%;min-width:0;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#app .scribble-freeplay .scribble-tool-cursor{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none;z-index:3}
#app .scribble-freeplay .scribble-paper[data-tool-active=true]{cursor:none}
#app .scribble-freeplay [data-scribble-tool-art]{display:block;width:34px;height:34px;flex:none;pointer-events:none}
#app .scribble-mode-grid .scribble-choice-picture>canvas[data-scribble-tool-art]{width:100%;height:100%;object-fit:contain}
#app .scribble-freeplay .scribble-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(550px,100%);margin-top:2px}
#app .scribble-freeplay .practice-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:76px;min-width:0;width:100%;padding:8px 6px;font:850 16px/1.25 var(--joy-font);border:2px solid #fff;border-bottom:5px solid #659fcf;border-radius:21px;background:linear-gradient(145deg,#e5f5ff,#a8d7fa);color:#214f77;box-shadow:inset 0 1px 0 #fff9,0 4px 0 #659fcf,0 7px 12px #28548818}
#app .scribble-freeplay .practice-tool[aria-pressed=true]{outline:3px solid #fff;outline-offset:-6px}
#app .scribble-freeplay .practice-tool svg{width:34px;height:34px;flex:none}
#app .scribble-freeplay .practice-tool [aria-hidden]:not(svg){display:grid;place-items:center;width:34px;height:34px;font-size:32px;line-height:1}
#app .scribble-freeplay .drawing-rainbow{margin:0;max-width:100%}
#app .scribble-freeplay .drawing-rainbow p{display:none}
#app .scribble-freeplay .drawing-rainbow .rainbow-tool{animation:scribble-rainbow-float 4.2s ease-in-out infinite;transform-origin:50% 85%}
#app .scribble-freeplay .drawing-rainbow .rainbow-tool-art{display:inline-block;transform-origin:45% 80%;animation:scribble-pencil-wiggle 4.2s ease-in-out infinite}
#app .scribble-freeplay .drawing-rainbow .rainbow-tool:active{animation-play-state:paused}
.scribble-freeplay .scribble-ideas{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.scribble-idea{appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:140px;padding:12px;border:3px solid #fff;border-bottom:6px solid #80b7dc;border-radius:24px;background:linear-gradient(145deg,#eaf7ff,#bfdef7);color:#234e71;font:850 20px/1.25 var(--joy-font);box-shadow:0 5px 14px #5f91b422;cursor:pointer;touch-action:manipulation}
.scribble-idea:nth-child(2n){background:linear-gradient(145deg,#ffeaf5,#f8c1dd);border-bottom-color:#db8fb8}
.scribble-idea svg{width:100%;height:85px;overflow:visible}
.scribble-idea>svg:not(.sano-coin-art) path,.scribble-game-model path{fill:none;stroke:#3f7eb8;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.scribble-idea:nth-child(2)>svg:not(.sano-coin-art) path{stroke:#ee77aa}
.scribble-game-model{width:min(550px,100%);margin:0;display:flex;align-items:center;justify-content:center;gap:10px}
.scribble-game-model svg{width:150px;height:64px;flex-shrink:1}
.scribble-game-model figcaption{font-size:18px;font-weight:850;color:#315c7d}
.scribble-freeplay :is(.scribble-choice,.scribble-idea,.pill):focus-visible{outline:3px solid #0666ef;outline-offset:4px}
.scribble-idea:active{transform:translateY(3px) scale(.98)}
#app .scribble-freeplay .scribble-round-status{margin:0;font-size:14px;font-weight:800;color:#355b78}
#app .scribble-freeplay .scribble-round-status:empty{display:none}
.scribble-price-prompt{display:grid;gap:12px;justify-items:center;width:min(480px,100%);padding:18px;border:3px solid #fff;border-radius:24px;background:#fff4ce;box-sizing:border-box;color:#68471a}
.scribble-price-prompt>div{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.scribble-price-prompt .pill{min-height:48px;padding:10px 18px}
@keyframes scribble-choice-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes scribble-pencil-draw{0%,16%,84%,100%{transform:translate(0,0) rotate(0)}30%,60%{transform:translate(-3px,2px) rotate(-4deg)}45%,72%{transform:translate(2px,-2px) rotate(3deg)}}
@keyframes scribble-spark-pop{0%,60%,100%{transform:scale(1)}70%{transform:scale(1.16) rotate(8deg)}82%{transform:scale(1) rotate(0)}}
@keyframes scribble-rainbow-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes scribble-pencil-wiggle{0%,20%,74%,100%{transform:rotate(0)}32%,56%{transform:rotate(-8deg)}44%,66%{transform:rotate(6deg)}}
@media(max-width:600px){#app .scribble-freeplay{gap:10px}#app .scribble-mode-grid{gap:15px 12px}#app .scribble-mode-grid .scribble-choice-face{min-height:165px;padding:13px 8px 16px;border-radius:24px}#app .scribble-mode-grid .scribble-choice-picture{width:84px;height:80px}#app .scribble-freeplay .scribble-paper{border-radius:20px!important}#app .scribble-freeplay .scribble-tools{gap:8px}#app .scribble-freeplay .practice-tool{min-height:70px;padding:7px 4px;font-size:14px}#app .scribble-freeplay .practice-tool svg{width:30px;height:30px}.scribble-freeplay .scribble-ideas{gap:12px}.scribble-idea{min-height:130px;font-size:17px}.scribble-game-model{gap:6px}.scribble-game-model svg{width:110px}.scribble-game-model figcaption{font-size:15px}}
@media(max-height:580px) and (orientation:landscape){#app .scribble-freeplay .scribble-paper{height:clamp(130px,43svh,260px)}#app .scribble-freeplay .practice-tool{flex-direction:row;min-height:48px;padding:5px 9px}#app .scribble-mode-grid .scribble-choice-face{flex-direction:row;min-height:110px;padding:10px}#app .scribble-mode-grid .scribble-choice-picture{width:72px;height:68px;flex:none}#app .scribble-mode-grid .scribble-choice strong{font-size:19px}}
body:is([data-motion=reduce],[data-reduced-motion=true]) .scribble-freeplay *{animation:none!important;transition:none!important}
body[data-page-hidden=true] .scribble-freeplay *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.scribble-freeplay *{animation:none!important;transition:none!important}}
@media(forced-colors:active){#app .scribble-mode-grid .scribble-choice-face,#app .scribble-freeplay .practice-tool{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}}

/* Clearing keeps the paper and controls fixed in place. */
#app .scribble-freeplay [data-scribble=clear]{animation:none!important;transform:none!important;transition:none}

/* Keep each tool recognisable, including when selected. */
#app .scribble-freeplay [data-scribble=draw]{background:linear-gradient(145deg,#ffb0b2,#ef6068);border-bottom-color:#be3545;color:#681523;box-shadow:inset 0 1px #fff9,0 4px 0 #be3545,0 7px 12px #88444418}
#app .scribble-freeplay [data-scribble=eraser]{background:linear-gradient(145deg,#ffe0f1,#f39aca);border-bottom-color:#c866a0;color:#792451;box-shadow:inset 0 1px #fff9,0 4px 0 #c866a0,0 7px 12px #88446618}
#app .scribble-freeplay [data-scribble=clear]{background:linear-gradient(145deg,#dcffe9,#8fdfaf);border-bottom-color:#49ab76;color:#205a3b;box-shadow:inset 0 1px #fff9,0 4px 0 #49ab76,0 7px 12px #44885518}
#app .scribble-freeplay .practice-tool[aria-pressed=true]{outline:3px solid #fff;outline-offset:-6px}
#app .scribble-freeplay .drawing-rainbow .rainbow-tool{animation:none;transform:none}
@media(forced-colors:active){#app .scribble-freeplay [data-scribble]{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}}

/* Both Scribble entry points retain the same green heading in either language. */
#app :is(.scribble-game-screen,.simple-topic-picker[data-topic=practice])>.brand-heading{color:#15965b}
#app :is(.scribble-game-screen,.simple-topic-picker[data-topic=practice])>.brand-heading [data-ui-heading]>g{stroke:#15965b}
#app :is(.scribble-game-screen,.simple-topic-picker[data-topic=practice])>.brand-heading [data-ui-heading]>text{fill:#15965b}

/* Drawing modes share taller paper with clear touch-scroll gutters. */
#app .scribble-freeplay:is([data-scribble-mode=free],[data-scribble-mode=name],[data-scribble-mode=ideas]) .scribble-paper-frame{
 width:min(560px,calc(100% - 48px));margin-inline:auto;
}
#app .scribble-freeplay:is([data-scribble-mode=free],[data-scribble-mode=name],[data-scribble-mode=ideas]) .scribble-paper{
 height:clamp(340px,60svh,600px);aspect-ratio:auto;
}
@media(max-height:580px) and (orientation:landscape){
 #app .scribble-freeplay:is([data-scribble-mode=free],[data-scribble-mode=name],[data-scribble-mode=ideas]) .scribble-paper-frame{width:min(470px,calc(100% - 64px))}
 #app .scribble-freeplay:is([data-scribble-mode=free],[data-scribble-mode=name],[data-scribble-mode=ideas]) .scribble-paper{height:clamp(230px,65svh,350px)}
}

/* Every Scribble mode shares the compact square rainbow-pencil control. */
#app .scribble-page .drawing-rainbow .rainbow-tool{
 display:inline-flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;
 width:96px;height:96px;min-width:0;min-height:0;aspect-ratio:1;
 padding:6px;gap:0;border-radius:20px;
}
#app .scribble-page .drawing-rainbow .rainbow-tool .rainbow-tool-art{display:block;width:72px;height:72px;flex:none;line-height:0}
#app .scribble-page .drawing-rainbow .rainbow-tool .rainbow-tool-art>.rainbow-pencil-art{display:block;width:100%;height:100%}
#app .scribble-page .drawing-rainbow .rainbow-tool .rainbow-paid-corner{width:34px;height:34px;top:-10px;right:-8px}
#app .scribble-freeplay .practice-tool:active{filter:none}


/* Colouring uses four familiar pens with an outline that erasing cannot remove. */
#app .scribble-freeplay[data-colouring=true] .scribble-paper-frame{isolation:isolate}
#app .scribble-freeplay .scribble-colouring-outline{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);max-width:none;pointer-events:none;z-index:1;overflow:visible}
#app .scribble-colouring-outline path{fill:none;stroke:#32475d;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.scribble-idea .scribble-colouring-picture path,.scribble-game-model .scribble-colouring-picture path{stroke:#32475d;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
#app .scribble-freeplay .scribble-colour-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;width:min(360px,100%)}
#app .scribble-freeplay .scribble-colour{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:64px;padding:6px 4px;border:2px solid #fff;border-bottom:4px solid #8fb8d5;border-radius:17px;background:linear-gradient(145deg,#fff,#e9f5ff);color:#234e71;font:800 13px/1.2 var(--joy-font);box-shadow:0 3px 0 #83aeca;touch-action:manipulation;cursor:pointer}
#app .scribble-freeplay .scribble-colour-dot{display:block;width:27px;height:27px;border-radius:50%;background:var(--colour);box-shadow:inset 0 2px 2px #ffffff88,0 2px 2px #254a6d33}
#app .scribble-freeplay .scribble-colour[aria-pressed=true]{outline:3px solid #0867ed;outline-offset:1px}
#app .scribble-freeplay .scribble-colour:focus-visible{outline:3px solid #0867ed;outline-offset:4px}
#app .scribble-freeplay .scribble-colour:active{scale:.97}
@media(max-width:360px){#app .scribble-freeplay .scribble-colour-palette{gap:7px}#app .scribble-freeplay .scribble-colour{font-size:12px;min-height:60px}}
@media(forced-colors:active){#app .scribble-freeplay .scribble-colour{background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none}#app .scribble-freeplay .scribble-colour[aria-pressed=true]{outline:3px solid Highlight}}


/* One coordinate system for the outline, colour hints and clipped ink. */
#app .scribble-freeplay[data-colouring=true] .scribble-paper{height:auto;aspect-ratio:1;min-height:0;overflow:hidden}
#app .scribble-freeplay .scribble-paper>.scribble-colouring-outline{pointer-events:none}
#app .scribble-freeplay .scribble-colour-hints{pointer-events:none}
#app .scribble-freeplay .scribble-paper image{filter:none;transform:none;opacity:1}

/* The flag and map remain colouring-only, with the flag always first. */
#app .scribble-nepal-colouring{width:100%;margin:14px auto 0;text-align:center}
#app .scribble-nepal-colouring h2{margin:0 0 20px;font:900 clamp(23px,4vw,30px)/1.25 var(--joy-font);color:#0867ed}
#app .scribble-mode-grid.scribble-nepal-grid{grid-template-columns:minmax(0,1fr);width:min(280px,100%);gap:24px;margin:0 auto}
#app .scribble-nepal-grid [data-mode=flag]{--scribble-fill:#ffe18a;--scribble-edge:#d6a634;--scribble-ink:#73500a}
#app .scribble-nepal-grid [data-mode=map]{--scribble-fill:#a8dbff;--scribble-edge:#3b97d7;--scribble-ink:#174d83}
#app .scribble-nepal-grid .scribble-choice-face{min-height:220px}
#app .scribble-nepal-grid [data-mode=map] .scribble-choice-picture{width:210px;height:140px}
#app .scribble-nepal-grid .scribble-colouring-picture path{stroke:#32475d;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app .scribble-freeplay[data-scribble-mode=map] .scribble-game-model{display:none}
#app .scribble-freeplay[data-scribble-mode=map] .scribble-paper{background:#fff}

/* Nepal is one main choice; its flag and map live together inside it. */
#app .scribble-mode-grid [data-mode=nepal]{--scribble-fill:#ffe18a;--scribble-edge:#d6a634;--scribble-ink:#73500a}
#app .scribble-game-screen>.brand-heading{width:min(440px,100%);margin:12px auto 22px}
#app .scribble-game-screen>.brand-heading svg{max-height:140px}

/* The paper scrolls normally until a child explicitly selects a tool. */
#app .scribble-freeplay .scribble-paper-frame[data-drawing=false],
#app .scribble-freeplay .scribble-paper-frame[data-drawing=false] .scribble-paper{touch-action:pan-y pinch-zoom;cursor:auto}
#app .scribble-freeplay .scribble-paper-frame[data-drawing=true],
#app .scribble-freeplay .scribble-paper-frame[data-drawing=true] .scribble-paper{touch-action:none}
#app .scribble-freeplay .scribble-tools{margin:0 auto 4px}
#app .scribble-freeplay [data-scribble=draw].is-draw-invitation{animation:discovery-next-heartbeat 1.7s ease-in-out infinite}
#app :is(.scribble-game-screen,.simple-topic-picker[data-topic=practice]):has(.scribble-page:not([data-screen=picker]))>.brand-heading{display:none}
#app :is(.scribble-game-screen,.simple-topic-picker[data-topic=practice]){margin-top:0;padding-top:0}
#app .simple-topic-picker[data-topic=practice]>.topic-grid:empty{display:none}
#app .scribble-game-model figcaption,#app .scribble-idea>strong{color:#0666ef}
#app .scribble-nepal-colouring{margin-top:0}
#app .scribble-mode-grid.scribble-nepal-grid{width:min(340px,100%);gap:26px}
#app .scribble-nepal-grid .scribble-choice-face{min-height:246px;padding:18px 12px}
#app .scribble-nepal-grid [data-mode=flag] .scribble-choice-picture{width:160px;height:170px}
#app .scribble-nepal-grid [data-mode=map] .scribble-choice-picture{width:min(270px,100%);height:180px}
@media(prefers-reduced-motion:reduce){#app .scribble-freeplay [data-scribble=draw].is-draw-invitation{animation:none}}

/* Tile colours follow their activity when the first two positions are swapped. */
#app .scribble-mode-grid [data-mode=free]{--scribble-fill:#a8dbff;--scribble-edge:#3b97d7;--scribble-ink:#174d83}
#app .scribble-mode-grid [data-mode=name]{--scribble-fill:#ffc0dc;--scribble-edge:#dc72a5;--scribble-ink:#7e2458}

/* Small page controls sit at the two lower corners of the same paper. */
#app .scribble-notebook-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;width:min(560px,calc(100% - 48px));margin:4px auto 0;box-sizing:border-box}
#app .scribble-page-button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:0;max-width:100%;padding:7px 11px;border:2px solid #fff;border-bottom-width:4px;border-radius:15px;font:800 13px/1.2 var(--joy-font);text-align:center;touch-action:manipulation;cursor:pointer;box-shadow:0 3px 9px #31587820}
#app .scribble-page-back{justify-self:start;background:linear-gradient(145deg,#ff8c9b,#e85165);border-bottom-color:#c54054;color:#fff}
#app .scribble-page-next{justify-self:end;background:linear-gradient(145deg,#66dba7,#20ac80);border-bottom-color:#198461;color:#fff}
#app .scribble-page-button>span{font:700 23px/1 system-ui,sans-serif}
#app .scribble-page-button:disabled{opacity:.42;cursor:default;box-shadow:none}
#app .scribble-page-button:focus-visible{outline:3px solid #0666ef;outline-offset:3px}
#app .scribble-page-count{font:800 12px/1.3 var(--joy-font);color:#416d8f;text-align:center;font-variant-numeric:tabular-nums}
#app .scribble-page-save-status{grid-column:1/-1;display:block;margin:1px 0 3px;text-align:center;color:#5c7b91;font:600 11px/1.4 var(--joy-font)}
#app .scribble-paper-frame[aria-busy=true]{pointer-events:none;will-change:transform,opacity}
@media(max-height:580px) and (orientation:landscape){#app .scribble-notebook-controls{width:min(470px,calc(100% - 64px))}}
@media(max-width:350px){#app .scribble-notebook-controls{gap:5px}#app .scribble-page-button{padding-inline:7px;font-size:12px}#app .scribble-page-count{font-size:11px}}
@media(forced-colors:active){#app .scribble-page-button{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}#app .scribble-page-button:disabled{opacity:1;color:GrayText}}

/* The temporary leaf has three hinged panels, real perspective, and a visible
   paper stack. It never receives input or changes the original SVG ink. */
#app .drawing-page-turn-scene{position:absolute;z-index:4;pointer-events:none;overflow:clip;overflow-clip-margin:18px;isolation:isolate;border-radius:24px;transform-style:preserve-3d}
#app .drawing-page-turn-stack{position:absolute;inset:0;background:#fff;border-radius:24px;box-shadow:0 3px 0 #d8e7f1,0 6px 0 #f8fcff,0 8px 0 #bed6e8,0 12px 14px #31587818}
#app .drawing-page-turn-page{display:block!important;position:absolute!important;inset:0 auto auto 0;min-width:0!important;max-width:none!important;min-height:0!important;width:100%!important;height:100%!important;margin:0!important;box-sizing:border-box!important;visibility:visible!important;pointer-events:none!important}
#app .drawing-page-turn-leaf{position:absolute;inset:0;transform-style:preserve-3d;will-change:transform}
#app .drawing-page-turn-panel{position:absolute;top:0;height:100%;transform-style:preserve-3d;will-change:transform}
#app .drawing-page-turn-front,#app .drawing-page-turn-verso{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
#app .drawing-page-turn-front{transform:translateZ(.3px)}
#app .drawing-page-turn-verso{transform:rotateY(180deg);border-top:2px solid #dbe7ef;border-bottom:2px solid #cadce9;box-shadow:inset 0 0 14px #ccdce744}
#app .drawing-page-turn-shade{position:absolute;inset:0;opacity:0;pointer-events:none}
#app .drawing-page-turn-shadow{position:absolute;inset:3px 0 0;background:linear-gradient(90deg,#193b67aa,#193b6733);filter:blur(13px);border-radius:24px;opacity:.04;will-change:transform,opacity}
#app .drawing-page-turn-spine{position:absolute;top:3px;bottom:3px;width:9px;border-radius:9px;background:linear-gradient(90deg,#42678755,#fff9 44%,#5f839b24);z-index:2;box-shadow:1px 0 4px #31587820}
#app .drawing-page-turn-scene[data-direction=back] .drawing-page-turn-shadow{background:linear-gradient(270deg,#193b67aa,#193b6733)}
@media(prefers-reduced-motion:reduce){#app .drawing-page-turn-scene{display:none}}

/* Account notebook controls stay with the paper and leave ink untouched. */
#app .scribble-cloud-library{width:min(560px,calc(100% - 48px));margin:0 auto 12px;color:#285574}
#app .scribble-cloud-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
#app .scribble-library-toggle,#app .scribble-library-entry,#app .scribble-library-remove{min-height:44px;border:2px solid #c9dfed;border-radius:14px;padding:8px 12px;background:#f5fbff;color:#285574;font:800 13px/1.3 var(--joy-font);cursor:pointer;touch-action:manipulation}
#app .scribble-library-toggle:focus-visible,#app .scribble-library-entry:focus-visible,#app .scribble-library-remove:focus-visible{outline:3px solid #146dc6;outline-offset:3px}
#app .scribble-notebook-library{margin-top:10px;padding:12px;border:1px solid #d8e9f4;border-radius:18px;background:rgba(255,255,255,.85);font-size:13px}
#app .scribble-notebook-library p{margin:4px 0 10px}
#app .scribble-library-row{display:flex;gap:8px;margin:8px 0}
#app .scribble-library-entry{flex:1;text-align:start}
#app .scribble-library-remove{background:#fff0f2;color:#922c40}
#app .scribble-page-save-status{line-height:1.45;max-width:100%;white-space:normal}
#app .scribble-freeplay[data-scribble-mode="free"] .scribble-colour-palette{width:min(560px,calc(100% - 48px));grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
#app .scribble-freeplay[data-scribble-mode="free"] .scribble-colour{min-height:48px;font-size:11px;padding:4px 2px}
@media(max-width:600px){#app .scribble-freeplay[data-scribble-mode="free"] .scribble-colour-palette{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(orientation:landscape) and (max-height:600px){#app .scribble-cloud-library{width:min(470px,calc(100% - 64px))}}

#app .scribble-freeplay .scribble-rainbow-colour{grid-column:1/-1;flex-direction:row;gap:8px}
#app .scribble-freeplay .scribble-rainbow-colour[hidden]{display:none}

/* Sano stylesheet: discovery-clean.css */
/* Learning artwork already contains transparency. Remove the old painted
   object bubble so its alpha edges blend into the lesson canvas. */
#app #activity-body .big-object,
#app .foundation-home #activity-body .big-object {
  width:clamp(200px,54vw,290px);
  height:clamp(200px,54vw,290px);
  max-width:100%;
  padding:0;
  border:0;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0;
  animation:none;
}
#app #activity-body .big-object::before,
#app #activity-body .big-object::after {content:none;}
#app #activity-body .big-object .game-tile-face {
  background:transparent;
  border:0;
  box-shadow:none;
  animation:none;
  transform:none;
}
/* Transparent illustrations are not enamel buttons. The shared button skin
   otherwise leaves a rectangular highlight behind their alpha edges. */
#app #activity-body .big-object .game-tile-face::before,
#app #activity-body .big-object .game-tile-face::after {content:none;}
#app #activity-body .big-object .game-tile-face>:is(.learning-picture,.world-learning-picture,svg),
#app #activity-body .big-object>:is(.learning-picture,.world-learning-picture,svg) {
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border:0;
  border-radius:0;
  background:transparent;
  filter:none;
  animation:none;
}
#app #activity-body .big-object:focus-visible {outline:3px solid #ff2d91;outline-offset:6px;border-radius:24px;}
#app #activity-body .big-object:active {transform:scale(.97);}
/* The knowledge prompt picture uses the same transparent originals; only the
   answer buttons keep their distinct coloured tap surfaces. */
#app .knowledge-challenge .knowledge-picture {
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:0;
}
#app .knowledge-challenge :is(.knowledge-picture,.knowledge-choice-art) :is(img,svg,.world-learning-picture) {
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  mix-blend-mode:normal;
}
/* Preserve white details in milk, rice, eyes and clothing. No blend modes or
   colour-key filters: the source alpha is the only mask. */
#app :is(.learning-picture,.world-learning-picture,.learning-colour-art) {mix-blend-mode:normal;}
@media(forced-colors:active) {
  #app #activity-body .big-object:focus-visible {outline-color:Highlight;}
}

/* Keep artwork in a definite box in the card's normal flow. Do not stack blur
   filters on the image and its parent: those added two rasterised layers per
   locked card while scrolling. Lock badges and dimming still show progression. */
#app .simple-topic-picker .topic-entry-face:has(.world-entry-picture){
 box-sizing:border-box;overflow:hidden;isolation:isolate;
 filter:none;backface-visibility:visible;will-change:auto;
}
#app .simple-topic-picker .is-topic-locked .topic-entry-face:has(.world-entry-picture){opacity:.7}
#app .simple-topic-picker .world-entry-picture{
 position:relative;isolation:isolate;contain:paint;overflow:hidden;
 flex:0 0 auto;min-width:0;max-width:100%;box-sizing:border-box;
 filter:none;transform:none;will-change:auto;border-radius:0;
 pointer-events:none;user-select:none;-webkit-user-select:none;
}
#app .simple-topic-picker .world-entry-picture>:is(img,svg,.world-learning-picture){
 position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;
 border-radius:0;filter:none;transform:none;will-change:auto;-webkit-user-drag:none;
}
#app .simple-topic-picker .world-entry-picture .world-learning-picture>svg{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;
}

/* Food and animals keep four choices per row on phones and larger screens. */
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]){
 width:min(640px,100%);margin-inline:auto;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal])>.topic-grid{
 grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,2vw,16px);align-items:stretch;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .topic-tile{
 min-width:44px;min-height:0;align-self:stretch;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .topic-entry-face{
 width:100%;height:100%;min-height:112px;padding:10px 5px;gap:6px;border-radius:22px;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .world-entry-picture{
 width:clamp(46px,14vw,94px);height:clamp(46px,14vw,94px);margin:0 auto;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .learning-entry-label{
 font-size:clamp(14px,3.4vw,19px)!important;line-height:1.35;overflow-wrap:anywhere;text-wrap:balance;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .topic-lock-badge{
 top:3px;right:3px;width:23px;height:23px;border-width:1px;
}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .topic-lock-badge svg{width:14px;height:14px}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal]) .topic-entry-star{width:28px;height:30px;right:8px;top:8px}

/* Toolbar, Back/brand row, then the lesson: each owns its own vertical space. */
#app .foundations-shell:has(.shapes-colours,.nepal-culture,.is-discovery,.simple-topic-picker[data-topic=food],.simple-topic-picker[data-topic=animal])>.simple-header{
 padding-top:18px;padding-bottom:18px;margin-bottom:12px;
}
#app .simple-content:has(.shapes-colours,.nepal-culture,.is-discovery){padding-top:18px}
#app .simple-topic-picker:is([data-topic=food],[data-topic=animal],[data-topic=nepal]){padding-top:24px}
#app .simple-topic-picker>.brand-heading{margin-bottom:18px}
#app :is(.tap-invitation,.discovery-subheading){
 display:block;color:#0666ef;font:900 clamp(18px,4.6vw,22px)/1.4 var(--joy-font);
 text-align:center;text-wrap:balance;margin:16px auto 26px;max-width:100%;
}
#app .nepal-hub-screen .nepal-discovery-heading{margin:0 auto 18px}
#app .nepal-hub-screen>.discovery-subheading{margin:0 auto 32px;color:#1765bd}
#app .nepal-hub-screen .nepal-category-tabs{gap:28px}
#app .nepal-hub-screen .nepal-category{aspect-ratio:auto;min-height:260px;gap:16px;padding:24px 18px}
#app .discovery-stage{gap:18px;padding:20px 12px 24px}
#app .discovery-stage :is(#revealed-word,.nepal-discovery-text){margin:0 auto;min-height:48px}
#app .discovery-stage .tap-invitation{margin:0 auto;color:#0666ef}
#app .discovery-controls{box-sizing:border-box;max-width:100%;align-items:center;flex-wrap:wrap;gap:16px;margin:12px auto 0;padding:6px 2px 12px;overflow:visible}
#app .discovery-controls .trace-listen{
 display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;
 min-height:60px;min-width:min(136px,100%);max-width:100%;gap:10px;padding:12px 18px;overflow:visible;
 white-space:normal;overflow-wrap:anywhere;text-decoration:none;line-height:1.25;
}
#app .discovery-controls .trace-listen::before,#app .discovery-controls .trace-listen::after{content:none!important}
#app .discovery-controls .trace-listen :is(span,.game-tile-face){position:static;transform:none;text-decoration:none;line-height:1.25}
#app .discovery-controls .trace-listen svg{display:block;flex:none;width:28px;height:28px;overflow:visible;transform:none}
#app .discovery-controls .trace-listen .game-tile-face{display:flex;align-items:center;justify-content:center;gap:10px;padding:0;background:none;box-shadow:none}
#app .discovery-controls .trace-listen .game-tile-face::before,#app .discovery-controls .trace-listen .game-tile-face::after{content:none!important}
@media(prefers-reduced-motion:no-preference){
 #app .tap-invitation{animation:discovery-invitation-pulse 2.8s ease-in-out infinite}
 #app :is(.nepal-discover-object,.big-object).bloom{animation:discovery-jiggle .42s ease-out}
}
@keyframes discovery-invitation-pulse{0%,45%,100%{transform:translateY(0) scale(1);color:#0666ef}16%,36%{transform:translateY(-3px) scale(1.04);color:#0666ef}26%{transform:translateY(0) scale(1)}}
@keyframes discovery-jiggle{0%,100%{transform:rotate(0) scale(1)}24%{transform:rotate(-5deg) scale(1.04)}50%{transform:rotate(5deg) scale(1.04)}74%{transform:rotate(-2deg)}}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app :is(.tap-invitation,.nepal-discover-object,.big-object){animation:none!important}
body[data-page-hidden=true] #app .tap-invitation{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#app :is(.tap-invitation,.nepal-discover-object,.big-object){animation:none!important}}
@media(max-height:520px) and (orientation:landscape){
 #app .discovery-stage{padding-top:14px;row-gap:14px}
 #app .discovery-controls{margin-top:8px}
}



/* Discovery pictures and their controls stay together in normal flow. Definite
   border-box dimensions prevent the bottom of an illustration being clipped. */
#app .simple-learning-activity.is-discovery{min-width:0;max-width:100%;height:auto;min-height:0;overflow:visible}
#app .simple-learning-activity.is-discovery .foundation-focus,
#app .simple-learning-activity.is-discovery #activity-body{box-sizing:border-box;min-width:0;max-width:100%;height:auto;min-height:0;max-height:none;overflow:visible}
#app .simple-learning-activity.is-discovery .foundation-focus{padding-bottom:14px}
#app .simple-learning-activity.is-discovery .discovery-stage{box-sizing:border-box;width:min(100%,460px);max-width:100%;min-width:0;gap:18px;padding:12px 10px 22px;overflow:visible}
#app .simple-learning-activity.is-discovery #activity-body .big-object{display:block;position:relative;box-sizing:border-box;flex:0 0 auto;width:min(64vw,280px);height:auto;min-height:0;aspect-ratio:1;max-width:100%;margin:0 auto;padding:0;overflow:visible}
#app .simple-learning-activity.is-discovery #activity-body .big-object>.game-tile-face{display:flex;box-sizing:border-box;width:100%;height:100%;aspect-ratio:1;min-width:0;min-height:0;padding:0;overflow:visible}
#app .simple-learning-activity.is-discovery #activity-body .big-object .game-tile-face>:is(.learning-picture,.world-learning-picture,svg){flex:0 0 auto;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
#app .simple-learning-activity.is-discovery #activity-body .big-object .world-learning-picture>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
#app .simple-learning-activity.is-discovery #revealed-word{width:100%;max-width:100%;min-width:0;min-height:0;margin:0;overflow-wrap:anywhere}
#app .simple-learning-activity.is-discovery :is(#feedback,.game-actions):empty{display:none}
#app .simple-learning-activity.is-discovery.is-auto-celebrating .discovery-actions{display:none!important}
/* Listen and Next match the compact Shapes & Colours controls. */
#app .simple-learning-activity.is-discovery .discovery-actions{display:flex;flex-direction:row;justify-content:center;align-items:center;flex-wrap:nowrap;width:100%;max-width:320px;min-width:0;gap:12px;margin:6px auto 0;padding:6px 4px 12px;overflow:visible}
#app .simple-learning-activity.is-discovery .discovery-actions>button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;box-sizing:border-box;width:auto;min-width:0;max-width:150px;min-height:60px;height:auto;margin:0;padding:11px 14px;gap:8px;border:3px solid #fff;border-bottom-width:6px;border-radius:25px;font:900 clamp(1rem,3vw,1.15rem)/1.25 var(--joy-font);white-space:nowrap;text-decoration:none;touch-action:manipulation}
#app .simple-learning-activity.is-discovery .discovery-actions>.trace-listen{border-bottom-color:#a38acf;background:linear-gradient(150deg,#faf3ff,#e6d6ff 58%,#d2bdf5)!important;color:#483680!important;box-shadow:inset 0 2px 1px #fff,0 4px 0 #af96d83b,0 8px 15px #7456aa1c}
#app .simple-learning-activity.is-discovery .discovery-actions>#continue{border-bottom-color:#c94683;background:linear-gradient(150deg,#ffafd4,#f777b3 58%,#ec5f9f);color:#56223c;box-shadow:inset 0 2px 1px #ffffffb3,0 4px 0 #c946832b,0 8px 15px #74406521;animation:none}
#app .simple-learning-activity.is-discovery .discovery-actions>#continue:disabled{animation:none;transform:none}
#app .simple-learning-activity.is-discovery .discovery-actions>button[hidden]{display:none!important}
#app .simple-learning-activity.is-discovery .discovery-actions>button:focus-visible{outline:3px solid #174f9e;outline-offset:5px}
#app .simple-learning-activity.is-discovery .discovery-actions>button:active{animation-play-state:paused;translate:0 2px}
@media(prefers-reduced-motion:no-preference){
 #app .simple-learning-activity.is-discovery #activity-body .big-object>.game-tile-face,
 #app .simple-learning-activity.is-discovery .discovery-actions>.trace-listen:not(:disabled){animation:discovery-idle-tilt 3.8s ease-in-out infinite;transform-origin:center}
 #app .simple-learning-activity.is-discovery .discovery-actions>#continue.is-guidance-ready:not(:disabled):not([hidden]){animation:discovery-next-heartbeat 1.25s ease-in-out infinite;transform-origin:center}
}
@keyframes discovery-idle-tilt{0%,100%{transform:translateY(-1px) rotate(-1.2deg)}50%{transform:translateY(1px) rotate(1.2deg)}}
@keyframes discovery-next-heartbeat{0%,42%,100%{transform:scale(1)}12%{transform:scale(1.045)}22%{transform:scale(1)}32%{transform:scale(1.03)}}
body[data-page-hidden=true] #app .simple-learning-activity.is-discovery :is(.big-object>.game-tile-face,.discovery-actions>button),#app[inert] .simple-learning-activity.is-discovery :is(.big-object>.game-tile-face,.discovery-actions>button){animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .simple-learning-activity.is-discovery :is(.big-object>.game-tile-face,.discovery-actions>button){animation:none!important;transition:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){#app .simple-learning-activity.is-discovery :is(.big-object>.game-tile-face,.discovery-actions>button){animation:none!important;transition:none!important;transform:none!important}}
@media(max-width:380px){
 #app .simple-learning-activity.is-discovery .discovery-stage{padding-inline:4px}
 #app .simple-learning-activity.is-discovery .discovery-actions{gap:10px}
 #app .simple-learning-activity.is-discovery .discovery-actions>button{padding-inline:10px}
}
@media(max-height:540px) and (orientation:landscape){
 #app .simple-learning-activity.is-discovery .discovery-stage{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);width:min(100%,640px);column-gap:18px;row-gap:12px;align-items:center;padding-block:8px 18px}
 #app .simple-learning-activity.is-discovery #activity-body .discovery-stage>.big-object{grid-column:1;grid-row:1/3;justify-self:center;width:min(38svh,180px);height:auto;min-height:0;margin:0}
 #app .simple-learning-activity.is-discovery .discovery-stage>#revealed-word{grid-column:2;grid-row:1;align-self:end;margin:0}
 #app .simple-learning-activity.is-discovery .discovery-stage>.discovery-actions{grid-column:2;grid-row:2;align-self:start;margin:0;gap:10px}
 #app .simple-learning-activity.is-discovery .discovery-actions>button{padding-inline:10px;min-height:54px;font-size:1rem}
}
@media(forced-colors:active){
 #app .simple-learning-activity.is-discovery .discovery-actions>button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText;box-shadow:none}
 #app .simple-learning-activity.is-discovery .discovery-actions>button:focus-visible{outline-color:Highlight}
}

/* Sano stylesheet: interface-refresh.css */
/* Large, predictable touch targets across phone/tablet and both orientations. */
#app .topic-four-home>h1 svg g{stroke-width:10}
#app .topic-four-home .topic-category-learn .topic-scene{transform:scale(1.12)}
#app .topic-four-home .topic-category-music .topic-scene{transform:scale(1.08)}
#app .topic-learn-hub{width:min(520px,100%);margin-inline:auto}
#app .topic-learn-hub>h1{width:min(360px,94%);margin-bottom:14px}
#app .topic-learn-hub>h1>svg{max-height:108px}
#app .topic-learn-grid{display:flex;flex-direction:column;gap:clamp(20px,3vw,24px);width:100%}
#app .topic-learn-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,3vw,22px);width:100%}
#app .topic-learn-row .topic-learn-tile{position:relative;display:block;appearance:none;-webkit-appearance:none;aspect-ratio:1;width:100%;min-width:0;min-height:0;grid-column:auto;padding:0}
#app .topic-learn-row .topic-learn-tile>.topic-tile-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;padding:16px 10px;gap:8px;transform:none;animation:none}
#app .topic-learn-row .topic-tile-picture{width:clamp(80px,14vw,132px);height:clamp(80px,14vw,132px);min-height:0;margin:0}
/* Give every nested artwork layer a definite height. Intrinsic portrait
   images must fit the picture box instead of extending over the label. */
#app .topic-learn-row .topic-tile-picture :is(.topic-scene,.topic-motion-part){width:100%;height:100%;min-width:0;min-height:0}
#app .topic-learn-row .topic-tile-picture .topic-motion-part{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
#app .topic-learn-row .topic-learn-tile .topic-tile-picture :is(img,svg){display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
/* Direct artwork fills the positioned motion layer independently of the
   image's intrinsic size, so an implicit grid track cannot grow over text. */
#app .topic-learn-row .topic-tile-picture .topic-motion-part>:is(img,svg){position:absolute;inset:0}
#app .topic-learn-row .topic-tile-label{width:100%;padding:0}
#app .topic-learn-row .topic-tile-label strong{font:900 clamp(18px,2.8vw,25px)/1.2 var(--joy-font);text-wrap:balance;overflow-wrap:normal}
#app .topic-learn-row .topic-tile-label small{display:none}
#app .topic-learn-tile:active>.topic-tile-face,#app .topic-category-tile:active>.topic-tile-face{transform:translateY(3px) scale(.97)}
#app .topic-learn-tile>.topic-tile-face,#app .topic-category-tile>.topic-tile-face{transition:transform .24s var(--spring,cubic-bezier(.2,.8,.2,1.2))}
/* Separate the Sano navigation, course row and learning content consistently. */
#app .foundations-shell>.simple-header{margin-bottom:8px}
#app .foundations-shell> :where(.sano-page-scroll) >.learning-course-control,#app:not(.topic-landing-view) .foundations-shell> :where(.sano-page-scroll) >.learning-course-control{margin:14px auto 24px}
.learning-course-choice{box-sizing:border-box;width:min(100%,620px);max-width:620px;gap:18px;padding-top:8px}
.learning-course-choice>h1{margin-bottom:0}
.learning-course-choice .language-choice-tiles{width:100%;max-width:572px;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0 auto}
.learning-course-choice .companion-next-slot{min-height:64px}
.learning-course-choice .course-choice-back{margin-top:6px}
.companion-choice>.companion-choices{margin-top:16px}
.companion-choice>.companion-note.sr-only,.onboarding-feedback-note.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:600px){
 #app .topic-learn-row .topic-tile-picture{width:clamp(76px,24vw,124px);height:clamp(76px,24vw,124px)}
 #app .topic-learn-row .topic-tile-label strong{font-size:clamp(17px,4.2vw,24px)}
 #app .topic-learn-row .topic-learn-tile>.topic-tile-face{padding:12px 8px}
}
@media(max-height:540px) and (orientation:landscape){
 #app .topic-picker.topic-four-home{width:min(520px,100%)}
 #app .topic-four-home>h1{width:min(330px,65%);margin-bottom:10px}
 #app .topic-four-home>h1>svg{max-height:64px}
 /* Short landscape uses the same four tactile tiles with pictures beside
    labels. Whole rows stay in document flow; text can grow without overlap. */
 #app .topic-four-home .topic-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;padding-block:4px 10px}
 #app .topic-four-home .topic-category-tile{aspect-ratio:auto;min-height:104px;align-self:stretch}
 #app .topic-four-home .topic-category-tile>.topic-tile-face{position:relative;inset:auto;flex-direction:row;min-height:104px;height:100%;padding:8px 10px;gap:10px;border-radius:25px}
 #app .topic-four-home .topic-category-tile .topic-tile-picture{flex:0 0 64px;width:64px;height:64px}
 #app .topic-four-home .topic-category-tile .topic-tile-label{flex:1 1 0;min-width:0;width:auto}
 #app .topic-four-home .topic-category-tile .topic-tile-label strong{font-size:18px;line-height:1.3}
 .learning-course-choice{gap:10px;padding-block:6px 16px}
 .learning-course-choice h1 svg{max-height:70px}
 .learning-course-choice .language-choice-tiles{width:min(500px,100%);margin-inline:auto}
 .companion-choice>.companion-choices{margin-top:8px}
 #app .simple-learning-activity.is-discovery{margin-top:0}
 #app .simple-learning-activity.is-discovery #activity-body .big-object{width:min(44svh,185px);height:min(44svh,185px);min-height:0;margin:4px auto}
 #app .simple-learning-activity.is-discovery .game-actions{margin-top:8px}
 #app .simple-learning-activity.is-discovery .lesson-stars-footer{margin-top:10px;padding-top:0}
}
@media(prefers-reduced-motion:reduce){
 #app .topic-learn-tile>.topic-tile-face,#app .topic-category-tile>.topic-tile-face{transition:none}
}
body[data-motion=reduce] .topic-learn-tile>.topic-tile-face,body[data-motion=reduce] .topic-category-tile>.topic-tile-face{transition:none}

#app .learning-bottom-nav[hidden]{display:none!important}

/* The wallet can signal a real shortfall without interrupting a child’s round. */
.coin-corner.is-low-coins .coin-balance-badge{background:#fff0f4;color:#a9174d;border-color:#e64b81}

/* One coin/star collection control; the existing body-level reward mirror
   stays above celebration blur and scrolling activity clipping. */
.reward-counter-art{display:block;width:100%;height:100%;transform-origin:50% 55%}
.reward-counter-art>svg{display:block;width:100%;height:100%}
.coin-corner[data-reward-mode=star] .reward-counter-art,.reward-counter-mirror[data-reward-mode=star] .reward-counter-art{animation:sano-counter-morph .28s ease-out both}
.coin-corner[data-reward-mode=star] .coin-balance-badge,.reward-counter-mirror[data-reward-mode=star] .coin-balance-badge{background:#925100;color:#fff;border-color:#fff1a9}
.coin-corner .coin-balance-badge,.reward-counter-mirror .coin-balance-badge{font-variant-numeric:tabular-nums;white-space:nowrap}
.reward-counter-mirror{box-sizing:border-box;padding:6px;border:2px solid #fff;border-radius:50%;background:#fff3cf;overflow:visible;pointer-events:none}
@keyframes sano-counter-morph{from{transform:scale(.72) rotate(-18deg);opacity:.6}to{transform:scale(1) rotate(0);opacity:1}}
body[data-motion=reduce] .reward-counter-art,body[data-reduced-motion=true] .reward-counter-art{animation:none!important}
@media(prefers-reduced-motion:reduce){.reward-counter-art{animation:none!important}}


/* Letters and Numbers use five entries per row at every viewport width.
   The separate Learn topic chooser above keeps its two-column layout. */
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]){width:min(520px,100%);margin-inline:auto}
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number])>.topic-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(6px,1.5vw,12px)}
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]) .topic-tile{min-width:44px;min-height:88px}
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]) .topic-entry-face{box-sizing:border-box;min-width:0;min-height:88px;padding:12px 4px}
#app .simple-topic-picker[data-topic=number] .topic-entry-face{padding-inline:2px}
#app .simple-topic-picker[data-topic=alphabet] .learning-entry-label{font-size:clamp(22px,6vw,38px)!important;line-height:1.35;white-space:nowrap}
#app .simple-topic-picker[data-topic=number] .learning-entry-label{font-size:clamp(18px,4.6vw,26px)!important;line-height:1.35;white-space:nowrap;overflow-wrap:normal}
@media(max-height:540px) and (orientation:landscape){
 /* The toolbar already reserves the top inset. Keep the course choice and
    first Learn pair in reach even on 568×320 phones, with normal scrolling. */
 #app.topic-landing-view>.foundations-shell{padding-top:0;padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right))}
 #app.topic-landing-view .learning-course-control{gap:6px 10px;margin:8px auto 12px;padding:4px 0 0;font-size:14px}
 #app .foundations-shell>.simple-header{margin-bottom:4px}
 #app:not(.topic-landing-view) .foundations-shell> :where(.sano-page-scroll) >.learning-course-control{margin:8px auto 14px}
 #app.topic-landing-view .learning-course-control .pill{min-height:44px;margin:0}
 #app.topic-landing-view .learning-course-control .pill>.game-tile-face{box-sizing:border-box;min-height:44px;padding:6px 12px;font-size:16px}
 #app .topic-picker.topic-learn-hub{width:min(320px,100%);padding-top:0}
 #app .topic-learn-hub>h1{width:min(300px,100%);margin:0 auto 10px}
 #app .topic-learn-hub>h1>svg{width:100%;height:48px;max-height:48px}
 #app .topic-learn-grid{gap:18px;margin-top:0}
 #app .topic-learn-row{gap:16px}
 #app .topic-learn-row .topic-learn-tile>.topic-tile-face{padding:10px 8px;gap:6px}
 #app .topic-learn-row .topic-tile-picture{width:76px;height:76px;min-height:0;flex:0 0 76px}
 #app .topic-learn-row .topic-tile-label strong{font-size:18px;line-height:1.3;margin-top:0}
 #app .topic-learn-row .topic-learn-tile[data-id=body] .topic-tile-picture{transform:none;margin:0}
 #app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]){width:min(440px,100%)}
}

/* The next unfinished letter/number is the invitation: no separate Play step.
   Only its visual face pulses; the button and every neighbouring tile stay put. */
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]) .is-topic-current>.topic-entry-face{
 border-color:#fff;
 box-shadow:inset 0 2px 1px #ffffffc9,0 5px 0 var(--topic-edge,#4c9fea),0 0 0 3px #217cce,0 0 22px 5px #66bfff7a;
 animation:sano-learning-heartbeat 3.2s ease-in-out infinite;
 transform-origin:50% 55%;
}
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]) .is-topic-current:active>.topic-entry-face{animation-play-state:paused}
@keyframes sano-learning-heartbeat{
 0%,42%,100%{transform:scale(1)}
 12%{transform:scale(1.045)}
 22%{transform:scale(1)}
 31%{transform:scale(1.025)}
}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app .simple-topic-picker .is-topic-current>.topic-entry-face{animation:none!important}
@media(prefers-reduced-motion:reduce){#app .simple-topic-picker .is-topic-current>.topic-entry-face{animation:none!important}}
@media(forced-colors:active){#app .simple-topic-picker .is-topic-current>.topic-entry-face{outline:3px solid Highlight;outline-offset:3px;box-shadow:none}}


/* The whole language pill toggles on either side. Match Family's blue glow
   without the former white border or the selected side's white inset ring. */
#app>.corner-tools>.screen-text-choice,
.corner-tools.step-prompt-toolbar>.screen-text-choice,
.modal-toolbar>.screen-text-choice,
.coin-header-tools>.screen-text-choice{
 border:0;padding:0;gap:0;background:#f5faffc9;
 box-shadow:inset 0 1px 1px #fff,0 0 5px #ffffffc9,0 0 14px 3px #91caff45,0 0 24px 5px #91caff18;
}
#app>.corner-tools>.screen-text-choice>button,
.corner-tools.step-prompt-toolbar>.screen-text-choice>button,
.modal-toolbar>.screen-text-choice>button,
.coin-header-tools>.screen-text-choice>button{border:0;box-shadow:none;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
#app>.corner-tools>.screen-text-choice>button[aria-pressed=true],
.corner-tools.step-prompt-toolbar>.screen-text-choice>button[aria-pressed=true],
.modal-toolbar>.screen-text-choice>button[aria-pressed=true],
.coin-header-tools>.screen-text-choice>button[aria-pressed=true]{box-shadow:0 0 10px 2px #54d69b55}
@media(prefers-reduced-motion:reduce){.screen-text-choice>button{transition:none!important}}
body[data-motion=reduce] .screen-text-choice>button{transition:none!important}
@media(forced-colors:active){
 #app>.corner-tools>.screen-text-choice,.corner-tools.step-prompt-toolbar>.screen-text-choice,.modal-toolbar>.screen-text-choice,.coin-header-tools>.screen-text-choice{box-shadow:none;border:1px solid ButtonText}
 .screen-text-choice>button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}
}

/* Learn has three separate rows: navigation, course controls, then its title
   and choices. Keep their spacing in normal flow, including short screens. */
#app .foundations-shell:has(.learn-landing)>.simple-header{margin-bottom:12px}
#app .foundations-shell:has(.learn-landing)> :where(.sano-page-scroll) >.learning-course-control{gap:12px 18px;margin:12px auto 32px;padding-block:0}
#app .foundations-shell:has(.learn-landing)> :where(.sano-page-scroll) >.simple-content{margin:0 auto}
#app .topic-picker.topic-learn-hub.learn-landing{padding:0 0 24px}
#app .topic-learn-hub.learn-landing>h1{width:min(420px,94%);margin:0 auto 32px;padding:0;line-height:0}
#app .topic-learn-hub.learn-landing>h1>svg{display:block;width:100%;height:auto;max-height:128px}
#app .learn-landing>.topic-learn-grid{margin-top:0;padding-top:0}
/* Remove the older upward offset so the baby shares the other tiles' centre. */
#app .learn-landing .topic-learn-tile[data-id=body] .topic-tile-picture{transform:none;margin:0;align-self:center}
#app .learn-landing .topic-learn-tile[data-id=body] [data-body-art]{object-position:center}
@media(max-width:600px){
 #app .foundations-shell:has(.learn-landing)> :where(.sano-page-scroll) >.learning-course-control{margin-block:12px 28px}
 #app .topic-learn-hub.learn-landing>h1{width:min(340px,94%);margin-bottom:28px}
 #app .topic-learn-hub.learn-landing>h1>svg{max-height:112px}
}
@media(max-height:540px) and (orientation:landscape){
 #app .foundations-shell:has(.learn-landing)>.simple-header{margin-bottom:8px}
 #app .foundations-shell:has(.learn-landing)> :where(.sano-page-scroll) >.learning-course-control{margin-block:12px 24px}
 #app .topic-learn-hub.learn-landing>h1{width:min(300px,94%);margin-bottom:24px}
 #app .topic-learn-hub.learn-landing>h1>svg{height:auto;max-height:96px}
}

/* Picture lesson selection keeps four columns. Letters and Numbers keep five.
   Scope this to direct picker entries so activity answers and category cards are unchanged. */
#app .simple-topic-picker[data-topic]>.topic-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:clamp(8px,2vw,16px);align-items:stretch;min-width:0;
}
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number])>.topic-grid{
 grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(6px,1.5vw,12px);
}
#app .simple-topic-picker[data-topic]>.topic-grid>.topic-tile{
 box-sizing:border-box;min-width:0;min-height:44px;align-self:stretch;
}
#app .simple-topic-picker[data-topic]>.topic-grid>.topic-tile>.topic-entry-face{
 box-sizing:border-box;width:100%;height:100%;min-width:0;
 min-height:clamp(104px,20vw,140px);padding:12px clamp(3px,1vw,8px);
 gap:6px;border-radius:clamp(18px,4vw,26px);
}
#app .simple-topic-picker[data-topic]>.topic-grid .world-entry-picture{
 width:min(94px,100%);height:auto;aspect-ratio:1;max-height:94px;margin:0 auto;
}
#app .simple-topic-picker[data-topic]>.topic-grid .world-entry-picture+.learning-entry-label{
 max-width:100%;font-size:clamp(14px,2.8vw,20px)!important;
 line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;
}
#app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number])>.topic-grid>.topic-tile>.topic-entry-face{
 min-height:76px;padding:16px 2px;
}
#app .simple-topic-picker[data-topic=spelling]>.topic-grid .learning-entry-label{
 max-width:100%;font-size:clamp(16px,4vw,27px)!important;overflow-wrap:anywhere;
}

/* A large pencil fills the same compact square across tracing and drawing. */
:is(#app,#overlay,.coin-backdrop) .drawing-rainbow .rainbow-tool.rainbow-tool-icon-only{
 display:inline-flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;
 width:96px;max-width:96px;height:96px;min-width:0;min-height:0;aspect-ratio:1;
 padding:6px;gap:0;border-radius:20px;
}
:is(#app,#overlay,.coin-backdrop) .drawing-rainbow .rainbow-tool.rainbow-tool-icon-only .rainbow-tool-art{
 display:block;width:72px;height:72px;flex:none;line-height:0;
}
:is(#app,#overlay,.coin-backdrop) .drawing-rainbow .rainbow-tool.rainbow-tool-icon-only .rainbow-tool-art>.rainbow-pencil-art{
 display:block;width:100%;height:100%;
}
:is(#app,#overlay,.coin-backdrop) .drawing-rainbow .rainbow-tool.rainbow-tool-icon-only .rainbow-paid-corner{
 width:34px;height:34px;top:-10px;right:-8px;
}

/* Navigation has one compact language: red to go back, green to continue.
   Only navigation controls are included; activity tools and reset actions keep
   their own colours, and disabled controls retain their existing appearance. */
:is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop) button:is(
 .shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,
 .coin-play-back,.context-return,.web-entry-back,.talk-back,
 .back-tile[data-action],.back-tile[data-coin]:not([data-id]),
 .flag-colouring .topic-exit,[data-step-action=back],[data-navigation=back]
):not(:disabled):not([aria-disabled=true]):not([hidden]){
 --navigation-top:#f87983;--navigation-bottom:#db3f53;--navigation-edge:#b72d43;
 --celebration-top:#f87983;--celebration-bottom:#db3f53;--celebration-edge:#b72d43;--celebration-glow:#db3f5333;
 display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;
 width:fit-content;max-width:100%;min-width:80px;min-height:44px;height:auto;
 padding:6px 14px;border:2px solid #fff;border-bottom:3px solid var(--navigation-edge);
 border-radius:14px;background:linear-gradient(145deg,var(--navigation-top),var(--navigation-bottom));
 color:#fff;font:850 16px/1.25 var(--joy-font);text-shadow:none;
 box-shadow:inset 0 1px 0 #ffffff80,0 2px 0 #b72d4326;animation:none;touch-action:manipulation;
}
:is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop) button:is(
 .continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,
 [data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],
 [data-check=next],[data-family=next],[data-adventure=next],[data-nepal-action=next],
 [data-sc-action=next],[data-knowledge=next],[data-speech=next],[data-money-next],[data-body-next]
):not([data-navigation=back]):not(:disabled):not([aria-disabled=true]):not([hidden]){
 --navigation-top:#43c486;--navigation-bottom:#15965b;--navigation-edge:#107748;
 --celebration-top:#43c486;--celebration-bottom:#15965b;--celebration-edge:#107748;--celebration-glow:#15965b33;
 --action-light:#43c486;
 display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;
 min-width:80px;min-height:44px;height:auto;max-width:100%;padding:6px 14px;
 border:2px solid #fff;border-bottom:3px solid var(--navigation-edge);border-radius:14px;
 background:linear-gradient(145deg,var(--navigation-top),var(--navigation-bottom));
 color:#fff;font:850 16px/1.25 var(--joy-font);text-shadow:none;
 box-shadow:inset 0 1px 0 #ffffff80,0 2px 0 #10774826;
}
/* Raised labels stay inside the same slim button instead of adding a second face. */
:is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop) button:is(
 .topic-back,.back-tile[data-action],.back-tile[data-coin]:not([data-id]),
 .knowledge-back,.talk-back,.context-return,.companion-next,.gate-continue
):not(:disabled):not([aria-disabled=true]):not([hidden]):has(.game-tile-face,.talk-return-face,.talk-action-face){
 padding:0;border:0;background:transparent;box-shadow:none;
}
:is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop) button:is(
 .topic-back,.back-tile[data-action],.back-tile[data-coin]:not([data-id]),
 .knowledge-back,.talk-back,.context-return,.companion-next,.gate-continue
):not(:disabled):not([aria-disabled=true]):not([hidden]) :is(.game-tile-face,.talk-return-face,.talk-action-face){
 display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;
 width:100%;min-height:44px;height:auto;padding:6px 14px;
 border:2px solid #fff;border-bottom:3px solid var(--navigation-edge);border-radius:14px;
 background:linear-gradient(145deg,var(--navigation-top),var(--navigation-bottom));
 color:#fff;font:850 16px/1.25 var(--joy-font);text-shadow:none;
 box-shadow:inset 0 1px 0 #ffffff80,0 2px 0 #24395715;animation:none;
}
#app .topic-landing-finish .topic-exit.topic-back{flex:0 1 156px;max-width:156px;min-width:80px;margin:0 auto}
#app .topic-landing-finish .topic-exit.topic-back svg{width:auto;max-width:90px;height:23px;max-height:23px}
#app .learning-bottom-nav{padding-top:16px;margin-top:8px}
#app .learning-bottom-nav>.shared-topic-back{min-width:120px}
#app.topic-landing-view .foundations-shell:has(.learn-landing)>.simple-header{display:grid}
#app .companion-next:not(:disabled):not([hidden]) :is(.challenge-pulse,.challenge-halo){border-radius:14px}
@media(forced-colors:active){
 :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop) button:is(.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.back-tile[data-action],.back-tile[data-coin]:not([data-id]),.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,[data-navigation=back],[data-action=continue],[data-action=quiz-next],[data-sc-action=next],[data-knowledge=next],[data-speech=next],[data-money-next],[data-body-next]):not(:disabled):not([aria-disabled=true]):not([hidden]),
 :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop) button:is(.topic-back,.back-tile[data-action],.back-tile[data-coin]:not([data-id]),.knowledge-back,.talk-back,.context-return,.companion-next,.gate-continue):not(:disabled):not([aria-disabled=true]):not([hidden]) :is(.game-tile-face,.talk-return-face,.talk-action-face){background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
}
@media(max-width:600px){
 #app .simple-topic-picker[data-topic]>.topic-grid .topic-entry-star{width:25px;height:27px;right:6px;top:6px}
 #app .simple-topic-picker[data-topic]>.topic-grid .topic-lock-badge{width:22px;height:22px;right:5px;top:5px;border-width:1px}
 #app .simple-topic-picker[data-topic]>.topic-grid .topic-lock-badge svg{width:14px;height:14px}
}



/* A discovery Next button stays visibly unavailable until its real task ends. */
#app .simple-learning-activity.is-discovery #continue:disabled{opacity:.42;filter:blur(.65px) saturate(.65);cursor:default;box-shadow:none;animation:none!important;transform:none!important}
@media(forced-colors:active){
 #app .foundations-shell:has(.home-landing,.learn-landing)> :where(.sano-page-scroll) >.learning-course-control strong{color:CanvasText}
 #app .simple-learning-activity.is-discovery #continue:disabled{opacity:1;filter:none;color:GrayText;border-color:GrayText}
}



/* Shared control movement: one layer carries its text, art and price. */
[data-control-motion=true]{animation:sano-control-drift 4.8s ease-in-out var(--control-delay,0s) infinite!important;transform-origin:50% 65%}
[data-control-motion=true]>.game-tile-face,[data-control-motion=true]>.topic-tile-face,[data-control-motion=true]>.topic-entry-face,[data-control-motion=true]>.scribble-choice-face,[data-control-motion=true]>.coin-extra-face{animation:none!important}
[data-control-motion=true]:is(:active,:focus-visible,[data-control-visible=false]),body[data-page-hidden=true] [data-control-motion=true]{animation-play-state:paused!important}
.corner-tools button,.learning-course-control button,button.brand{animation:none!important;translate:none!important;rotate:none!important}
[data-fixed-control=true],[data-fixed-control=true]:not([data-action=course-choice])>.game-tile-face,[data-fixed-control=true]>.topic-tile-face{animation:none!important;translate:none!important;rotate:none!important;transform:none!important}
@keyframes sano-control-drift{0%,100%{translate:-1px -2px;rotate:-.8deg}25%{translate:2px 0;rotate:.8deg}50%{translate:0 2px;rotate:.4deg}75%{translate:-2px 0;rotate:-.6deg}}
body:is([data-motion=reduce],[data-reduced-motion=true]) [data-control-motion=true]{animation:none!important;translate:none!important;rotate:none!important}
@media(prefers-reduced-motion:reduce){[data-control-motion=true]{animation:none!important;translate:none!important;rotate:none!important}}
@media(forced-colors:active){[data-control-motion=true]{animation:none!important;translate:none!important;rotate:none!important}}

/* The final Learn tile spans the same two columns without becoming a large square. */
#app .topic-learn-row .topic-learn-tile[data-id=nepal]:only-child{grid-column:1/-1;aspect-ratio:auto;height:clamp(108px,18vw,132px)}
#app .topic-learn-row .topic-learn-tile[data-id=nepal]:only-child>.topic-tile-face{flex-direction:row;gap:clamp(14px,4vw,28px);padding:12px 20px}
#app .topic-learn-row .topic-learn-tile[data-id=nepal]:only-child .topic-tile-picture{flex:0 0 auto;width:clamp(76px,15vw,100px);height:clamp(76px,15vw,100px)}
#app .topic-learn-row .topic-learn-tile[data-id=nepal]:only-child .topic-tile-label{width:auto;max-width:60%}

/* Keep the discovery cards' existing shape; give the pictures more of their space. */
#app .nepal-hub-screen .nepal-category>span{flex-basis:140px;width:140px;height:140px}
#app .nepal-hub-screen .nepal-category img{width:140px;height:140px}
#app .nepal-hub-screen .nepal-category{gap:10px;padding-block:20px}
#app .nepal-hub-screen .nepal-money-picture .currency-card.currency-illustrated{top:28px}
#app .nepal-hub-screen .nepal-money-picture .currency-card.currency-illustrated.currency-coin{top:64px}

/* A quiet, single-line course toggle with a full-height touch target. */
body #app .learning-course-control{display:flex!important;flex-wrap:nowrap;justify-content:center;width:fit-content!important;max-width:100%;min-width:0;gap:0!important;margin:6px auto 12px!important;padding:0!important}
body #app .learning-course-control>.pill[data-action=course-choice]{display:flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:44px;margin:0;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none!important}
body #app .learning-course-control>.pill[data-action=course-choice]::before,
body #app .learning-course-control>.pill[data-action=course-choice]>.game-tile-face::before,
body #app .learning-course-control>.pill[data-action=course-choice]>.game-tile-face::after{content:none!important}
body #app .learning-course-control>.pill[data-action=course-choice]>.game-tile-face{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:32px;padding:6px 10px;--sano-surface-shadow:none;border:1px solid #a8bdce80!important;border-radius:999px;background:#ffffff80;color:#466184;font:650 14px/1.3 var(--joy-font);white-space:nowrap;overflow-wrap:normal;box-shadow:none!important;transition:none!important;animation:none!important;translate:none!important;rotate:none!important;transform:none!important}
body #app .learning-course-control>.pill[data-action=course-choice]>.game-tile-face>span{display:inline;white-space:nowrap}
body #app .learning-course-control strong{color:inherit!important;font-weight:750}
@media(forced-colors:active){body #app .learning-course-control>.pill[data-action=course-choice]>.game-tile-face{background:ButtonFace;color:ButtonText;border-color:ButtonText}}

/* Sano stylesheet: phone-landscape.css */
/* The tile face owns its size in normal flow. In particular, WebKit must not
   infer grid row heights from an empty native button with an absolute child:
   that can retain the previous orientation's row size while the face resizes. */
body #app .topic-learn-row,
body #app .topic-four-home .topic-category-grid {
 grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;
 align-items:start;align-content:start;
}
body #app .topic-learn-row .topic-learn-tile:not([data-id=nepal]:only-child),
body #app .topic-four-home .topic-category-tile:not(.topic-category-songs) {
 position:relative;display:flex;align-items:stretch;justify-content:stretch;
 width:100%;min-width:0;min-height:0;height:auto;aspect-ratio:auto;align-self:start;
}
body #app .topic-learn-row .topic-learn-tile:not([data-id=nepal]:only-child)>.topic-tile-face,
body #app .topic-four-home .topic-category-tile:not(.topic-category-songs)>.topic-tile-face {
 position:relative;inset:auto;display:flex;flex-direction:column;flex:1 1 auto;
 align-items:center;justify-content:center;box-sizing:border-box;
 width:100%;height:auto;aspect-ratio:1;min-width:0;min-height:0;max-height:none;
 padding:clamp(10px,3vw,20px) 8px;gap:8px;
}
body #app .topic-learn-row .topic-learn-tile:not([data-id=nepal]:only-child) .topic-tile-picture,
body #app .topic-four-home .topic-category-tile:not(.topic-category-songs) .topic-tile-picture {
 flex:0 1 auto;min-width:0;min-height:0;max-width:100%;max-height:100%;
 width:clamp(72px,24vw,126px);height:clamp(72px,24vw,126px);margin:0;
}
body #app .topic-learn-row .topic-tile-label,
body #app .topic-four-home .topic-category-tile .topic-tile-label {
 flex:0 0 auto;min-width:0;width:100%;max-width:100%;
}
body #app .topic-learn-row .topic-tile-label strong,
body #app .topic-four-home .topic-category-tile .topic-tile-label strong {
 white-space:normal;overflow-wrap:anywhere;
}
/* Wide final tiles retain their shape and fill the whole native button. */
body #app .topic-category-tile.topic-category-songs,
body #app .topic-learn-row .topic-learn-tile[data-id=nepal]:only-child{display:flex;align-items:stretch}
body #app .topic-category-tile.topic-category-songs>.topic-tile-face,
body #app .topic-learn-row .topic-learn-tile[data-id=nepal]:only-child>.topic-tile-face{flex:1 1 auto;width:100%;min-width:0}

/* The separate Body/Feelings picker can grow with bilingual labels in a
   short touch landscape; it does not alter the square Home/Learn grids. */
@media (orientation:landscape) and (max-height:540px) and (max-width:1000px) and (pointer:coarse) {
 #app .body-feelings-picker>.body-section-tile {height:auto;align-self:stretch}
 #app .body-section-tile>.topic-tile-face {height:auto;min-height:104px}
 #app .body-section-label {overflow-wrap:anywhere;line-height:1.4}
}

/* The existing Songs artwork and Stories book share the final Home row.
   Let each square face own its height in normal flow, including after rotation. */
body #app .home-landing.topic-four-home .topic-category-tile:is(.topic-category-songs,.topic-category-stories){
 position:relative;display:flex;align-items:stretch;justify-content:stretch;
 grid-column:auto;justify-self:stretch;width:100%;min-width:0;min-height:0;
 height:auto;aspect-ratio:auto;align-self:start;
}
body #app .home-landing.topic-four-home .topic-category-tile:is(.topic-category-songs,.topic-category-stories)>.topic-tile-face{
 position:relative;inset:auto;display:flex;flex-direction:column;flex:1 1 auto;
 align-items:center;justify-content:center;box-sizing:border-box;
 width:100%;height:auto;aspect-ratio:1;min-width:0;min-height:0;max-height:none;
 padding:clamp(10px,3vw,20px) 8px;gap:8px;
}
body #app .home-landing.topic-four-home .topic-category-tile:is(.topic-category-songs,.topic-category-stories) .topic-tile-picture{
 flex:0 1 auto;min-width:0;min-height:0;max-width:100%;max-height:100%;
 width:clamp(72px,24vw,126px);height:clamp(72px,24vw,126px);margin:0;
}
body #app .home-landing.topic-four-home .topic-category-tile:is(.topic-category-songs,.topic-category-stories) .topic-tile-label{
 flex:0 0 auto;min-width:0;width:100%;max-width:100%;
}

/* A rotated phone has room for wider, shorter tiles and a scrollable grid. */
@media (orientation:landscape) and (max-height:540px) and (max-width:1000px) and (pointer:coarse) {
 body #app .topic-learn-row .topic-learn-tile:not([data-id=nepal]:only-child)>.topic-tile-face,
 body #app .home-landing.topic-four-home .topic-category-tile:not(.topic-category-songs)>.topic-tile-face,
 body #app .home-landing.topic-four-home .topic-category-tile:is(.topic-category-songs,.topic-category-stories)>.topic-tile-face{
  aspect-ratio:auto;min-height:clamp(85px,27dvh,136px);padding:6px 10px;gap:3px;
 }
 body #app .topic-learn-row .topic-learn-tile:not([data-id=nepal]:only-child) .topic-tile-picture,
 body #app .home-landing.topic-four-home .topic-category-tile .topic-tile-picture,
 body #app .home-landing.topic-four-home .topic-category-tile:is(.topic-category-songs,.topic-category-stories) .topic-tile-picture {
  width:clamp(46px,14dvh,72px);height:clamp(46px,14dvh,72px);
 }
}

/* Short phone screens keep the whole Home grid in normal scrolling flow. */
@media (orientation:landscape) and (max-height:540px) and (max-width:1000px) and (pointer:coarse) {
 :root body #app .home-landing.topic-four-home .topic-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow-anchor:none}
 :root body #app .home-landing.topic-four-home .topic-category-tile.topic-category-talk{grid-column:1/-1}
 :root body #app .home-landing.topic-four-home .topic-category-grid>.topic-category-tile,
 :root body #app .home-landing.topic-four-home .topic-category-grid>.topic-category-tile>.topic-tile-face{height:auto;min-height:0;aspect-ratio:auto}
 :root body #app .home-landing.topic-four-home .topic-category-grid>.topic-category-tile>.topic-tile-face{padding:6px 8px;min-height:86px}
 :root body #app .home-landing.topic-four-home .topic-category-grid>.topic-category-talk>.topic-tile-face{min-height:50px}
 :root body #app .home-landing.topic-four-home .topic-category-talk .topic-tile-picture{width:40px;height:40px}
 :root body #app .home-landing.topic-four-home .topic-category-grid .topic-tile-label strong{font-size:clamp(15px,2.3vw,19px)}
}

/* Sano stylesheet: inline-celebration.css */
/* The shared celebration fades into the centre without moving the activity
   or the earned-star flight. All decorative layers ignore pointer input. */
.activity-celebration{position:fixed;z-index:112;left:50%;top:50%;translate:-50% -50%;display:grid;place-items:center;width:min(84vw,78dvh,560px);aspect-ratio:1;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:none;transform-origin:50% 60%}
.activity-celebration[hidden]{display:none!important}
.activity-celebration[data-motion=play]{animation:activity-celebration-enter var(--celebration-fade,400ms) cubic-bezier(.22,.61,.36,1) both}
.activity-celebration-art{position:relative;display:grid;place-items:center;width:100%;height:100%;isolation:isolate}
.activity-celebration .activity-celebration-mascot{position:relative;z-index:1;display:block;width:100%;height:100%;max-width:none;max-height:none;animation:none;filter:drop-shadow(0 10px 12px #325a7626)}
.activity-celebration[data-motion=play] .activity-celebration-mascot{animation:activity-celebration-cheer 1100ms ease-in-out var(--celebration-fade,400ms) infinite}
.activity-celebration-mascot svg{display:block;width:100%;height:100%}
.activity-celebration-text{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.activity-celebration-transparent{border-color:transparent;background:transparent;box-shadow:none;backdrop-filter:none}
.activity-celebration-fireworks{position:fixed;inset:0;z-index:111;display:block;width:100%;height:100%;min-height:100dvh;margin:0;padding:0;overflow:hidden;pointer-events:none;isolation:isolate}
.activity-celebration-fireworks::before{content:none}
.activity-celebration-fireworks[hidden]{display:none!important}
/* Keep transformed lesson tiles and their Next-button faces inside their own
   stacking context. The shared body-level celebration sits in front for both
   companions; no activity layout, voice choice or navigation state changes. */
:is(#app,#overlay){isolation:isolate}
/* Adult sheets take priority immediately, including the first paint before
   the celebration controller's next visibility tick. */
body:has(#overlay .parent-modal) :is(.activity-celebration,.activity-celebration-fireworks){visibility:hidden}
.activity-celebration-fireworks img{position:absolute;left:var(--burst-x);top:var(--burst-y);width:clamp(240px,45vmin,420px);height:auto;max-width:none;translate:-50% -50%;rotate:var(--burst-turn,0deg);opacity:.7;scale:.85;pointer-events:none}
.activity-celebration-fireworks[data-motion=play]{animation:activity-celebration-fireworks-enter var(--celebration-fade,400ms) ease-out both}
.activity-celebration-fireworks[data-motion=play] img{animation:activity-celebration-sky-burst 1600ms cubic-bezier(.22,.61,.36,1) var(--burst-delay) infinite both}
.activity-celebration[data-motion=play].is-leaving{animation:activity-celebration-exit var(--celebration-fade,400ms) ease-in-out both}
.activity-celebration-fireworks[data-motion=play].is-leaving{animation:activity-celebration-fireworks-exit var(--celebration-fade,400ms) ease-in-out both}
.simple-learning-activity.is-auto-celebrating :is(.game-actions,#feedback){display:none!important}
.simple-learning-activity .companion-lane>.sano-guide{transition:opacity 160ms ease}
.simple-learning-activity.has-activity-celebration :is(.sano-tip-success,#feedback){visibility:hidden}
/* Hide idle mascots without changing their boxes or the reward-flight origin. */
:is(#app,#overlay) :is(.companion-lane>.sano-guide,.selected-companion){transition:opacity 160ms ease}
body.has-sano-activity-celebration :is(#app,#overlay) :is(.companion-lane>.sano-guide,.selected-companion){opacity:0!important;pointer-events:none;animation-play-state:paused!important}
@keyframes activity-celebration-enter{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes activity-celebration-cheer{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-7px) rotate(-1.5deg)}70%{transform:translateY(-3px) rotate(1.5deg)}}
@keyframes activity-celebration-sky-burst{0%{opacity:0;transform:scale(.08)}12%{opacity:1}32%{opacity:1;transform:scale(.7)}68%{opacity:.85}100%{opacity:0;transform:scale(1.3)}}
@keyframes activity-celebration-fireworks-enter{from{opacity:0}to{opacity:1}}
@keyframes activity-celebration-exit{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96) translateY(8px)}}
@keyframes activity-celebration-fireworks-exit{from{opacity:1}to{opacity:0}}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.activity-celebration,.activity-celebration-mascot,.activity-celebration-fireworks,.activity-celebration-fireworks img){animation:none!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .activity-celebration-fireworks img{opacity:.45;scale:.8}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(#app,#overlay) :is(.companion-lane>.sano-guide,.selected-companion){transition:none}
body[data-page-hidden=true] :is(.activity-celebration,.activity-celebration-mascot,.activity-celebration-fireworks,.activity-celebration-fireworks img){animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
 :is(.activity-celebration,.activity-celebration-mascot,.activity-celebration-fireworks,.activity-celebration-fireworks img){animation:none!important}
 .activity-celebration-fireworks img{opacity:.45;scale:.8}
 :is(#app,#overlay) :is(.companion-lane>.sano-guide,.selected-companion){transition:none}
}
@media(forced-colors:active){.activity-celebration{background:transparent;box-shadow:none}.activity-celebration .activity-celebration-mascot{filter:none}.activity-celebration-fireworks{display:none}}


#app .shapes-colours .sc-button[hidden]{display:none!important}



/* Sano stylesheet: games-shine.css */
/* Games keeps its established tile geometry, with a brighter plated face. */
#app .topic-four-home .topic-category-games>.topic-tile-face{
 overflow:hidden;isolation:isolate;background:linear-gradient(145deg,#fff9ba 0%,#ffe775 22%,#ffd044 51%,#f6ae22 78%,#ffe579 100%);
 border-color:#fff9d5;border-bottom-color:#bd8114;
 box-shadow:inset 0 3px 1px #fffdeb,inset 0 -5px 8px #ce8b2b55,0 5px 0 #bd8114,0 10px 23px #e4a52455;
 transition:transform .13s cubic-bezier(.2,.8,.2,1.2),filter .13s;
 animation:sano-games-glow 2.1s ease-in-out infinite;
}
#app .topic-four-home .topic-category-games>.topic-tile-face::before{
 content:"";position:absolute;inset:-60% -95%;z-index:-1;pointer-events:none;
 background:linear-gradient(110deg,transparent 38%,#ffffff08 43%,#fffefbc9 49%,#ffffff25 55%,transparent 61%);
 transform:translateX(-55%);animation:sano-games-shine 2.8s ease-in-out infinite;
}
#app .topic-four-home .topic-category-games>.topic-tile-face::after{
 content:"";position:absolute;inset:5px;z-index:-1;pointer-events:none;border:1px solid #fff3acaa;border-radius:inherit;
 background:linear-gradient(180deg,#ffffff44,transparent 42%);
}
#app .topic-four-home .topic-category-games:active>.topic-tile-face{transform:translateY(3px) scale(.97);filter:brightness(1.08)}
@keyframes sano-games-glow{0%,100%{box-shadow:inset 0 3px 1px #fffdeb,inset 0 -5px 8px #ce8b2b55,0 5px 0 #bd8114,0 10px 23px #e4a52455}50%{box-shadow:inset 0 3px 1px #fffdeb,inset 0 -5px 8px #ce8b2b55,0 5px 0 #bd8114,0 8px 30px #ffcd3a99}}
@keyframes sano-games-shine{0%,18%{transform:translateX(-55%)}63%,100%{transform:translateX(55%)}}
@media(prefers-reduced-motion:reduce){#app .topic-four-home .topic-category-games>.topic-tile-face,#app .topic-four-home .topic-category-games>.topic-tile-face::before{animation:none!important;transition:none!important}#app .topic-four-home .topic-category-games>.topic-tile-face::before{transform:none;opacity:.25}}
body[data-motion=reduce] #app .topic-four-home .topic-category-games>.topic-tile-face,body[data-motion=reduce] #app .topic-four-home .topic-category-games>.topic-tile-face::before{animation:none!important;transition:none!important}
body[data-motion=reduce] #app .topic-four-home .topic-category-games>.topic-tile-face::before{transform:none;opacity:.25}
@media(forced-colors:active){#app .topic-four-home .topic-category-games>.topic-tile-face{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none;animation:none}#app .topic-four-home .topic-category-games>.topic-tile-face::before,#app .topic-four-home .topic-category-games>.topic-tile-face::after{display:none}}

/* Sano stylesheet: nepal-flag-motion.css */
/* Shared cloth depth, with the original blue border and national emblems. */
body svg.sano-nepal-flag-motion{overflow:visible;transform-origin:10% 50%;transform:perspective(420px) rotateY(-9deg);filter:drop-shadow(2px 4px 2px #14265330);animation:none!important;isolation:isolate}
body svg.sano-nepal-flag-motion .welcome-flag-cloth{animation:none!important;transform:none!important}
body svg.sano-nepal-flag-motion :is(.anthem-cloth-light,.nepal-tile-cloth-light){display:none;animation:none!important}
body svg.sano-nepal-flag-motion [data-nepal-wind-light]{pointer-events:none}
body .welcome-nepal>svg.sano-nepal-flag-motion{transform:none;filter:drop-shadow(2px 5px 3px #14265330)}
body svg.sano-nepal-flag-motion[data-nepal-embedded=true]{transform:none;filter:none}
body svg.sano-nepal-flag-motion[data-nepal-embedded=true] [data-nepal-art=flag]{filter:drop-shadow(2px 4px 2px #14265330)}
body .sano-nepal-flag-inline{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
body .sano-nepal-flag-inline>svg{width:1.12em;height:1.32em;flex:none}
body .flag-orb.sano-nepal-flag-inline>svg{width:70%;height:84%}
body svg.sano-nepal-flag-image{display:block;max-width:100%;object-fit:contain}
body .flag-art>svg.sano-nepal-flag-motion{transform:none}
body:is([data-motion=reduce],[data-reduced-motion=true]) svg.sano-nepal-flag-motion{transform:none!important}
@media(prefers-reduced-motion:reduce){body svg.sano-nepal-flag-motion{transform:none!important}}
@media(forced-colors:active){body svg.sano-nepal-flag-motion{filter:none;transform:none!important}body svg.sano-nepal-flag-motion [data-nepal-wind-light]{display:none}}

/* Sano stylesheet: advertising.css */
/* One disclosed, filled menu placement. No placeholder space in off/no-fill mode. */
.sano-ad-banner{box-sizing:border-box;display:grid;justify-items:center;gap:4px;width:min(100%,360px);margin:22px auto max(12px,env(safe-area-inset-bottom,0px));padding:6px 8px;border-radius:12px;background:#ffffff38;isolation:isolate}
.sano-ad-banner[hidden]{display:none!important}
.sano-ad-disclosure{margin:0;color:#365166;font:700 11px/1.4 var(--joy-font,system-ui);letter-spacing:.03em}
.sano-ad-banner-content{display:block;width:100%;max-width:320px;overflow:hidden}
.sano-ad-banner-content:empty{display:none}
.sano-ad-reward-backdrop{position:fixed;inset:0;z-index:16000;display:grid;align-items:end;justify-items:center;box-sizing:border-box;padding:24px 12px 0;background:#173e5a33;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overscroll-behavior:contain}
.sano-ad-reward-sheet{box-sizing:border-box;width:min(100%,440px);max-height:75dvh;overflow:auto;padding:24px 22px max(24px,env(safe-area-inset-bottom,0px));border:2px solid #ffffffdd;border-bottom:0;border-radius:28px 28px 0 0;background:linear-gradient(150deg,#f7fbff,#e7f3ff);box-shadow:0 -8px 32px #183c5c1f;text-align:center;color:#153b55}
.sano-ad-reward-title{margin:12px 0;font:900 clamp(22px,6vw,28px)/1.25 var(--joy-font,system-ui);text-wrap:balance}
.sano-ad-reward-message{margin:0 auto 20px;max-width:330px;min-height:1.4em;font:600 15px/1.5 var(--joy-font,system-ui);text-wrap:balance}
.sano-ad-reward-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.sano-ad-reward-actions>button{min-height:48px;min-width:116px;max-width:100%;padding:10px 17px;border:2px solid white;border-bottom:4px solid #a88acb;border-radius:18px;background:linear-gradient(145deg,#f2eaff,#dfcdf4);box-shadow:0 3px 0 #a88acb22;font:800 17px/1.3 var(--joy-font,system-ui);color:#433467;cursor:pointer;touch-action:manipulation}
.sano-ad-reward-actions>.sano-ad-reward-watch{background:linear-gradient(145deg,#d0f8e7,#a8e5cc);border-bottom-color:#6ab69a;color:#185840}
.sano-ad-reward-actions>button[hidden]{display:none!important}
.sano-ad-reward-actions>button:focus-visible{outline:3px solid #1463c2;outline-offset:4px}
.sano-ad-reward-actions>button:active{transform:translateY(2px)}
@media(prefers-reduced-motion:no-preference){.sano-ad-reward-sheet{animation:sano-ad-sheet-enter .24s cubic-bezier(.2,.65,.3,1)}.sano-ad-reward-backdrop{animation:sano-ad-backdrop-enter .24s ease-out}}
@keyframes sano-ad-sheet-enter{from{transform:translateY(min(28px,5vh))}to{transform:translateY(0)}}
@keyframes sano-ad-backdrop-enter{from{opacity:0}to{opacity:1}}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.sano-ad-reward-sheet,.sano-ad-reward-backdrop){animation:none}
@media(forced-colors:active){.sano-ad-reward-sheet,.sano-ad-reward-actions>button{background:Canvas;color:CanvasText;border-color:ButtonText;box-shadow:none}.sano-ad-disclosure{color:CanvasText}}

/* Sano stylesheet: daily-rewards.css */
/* Floating daily reward controls. The backdrop stays colourless. */
#sano-daily-rewards{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:30px 20px;overflow:auto;background:transparent;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);font-family:'Arial Rounded MT Bold','SF Pro Rounded',ui-rounded,system-ui,sans-serif;color:#24425e;isolation:isolate;overscroll-behavior:contain;color-scheme:light}
#sano-daily-rewards *{box-sizing:border-box}
#sano-daily-rewards [hidden]{display:none!important}
#sano-daily-rewards button{font-family:inherit;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;cursor:pointer;margin:0}
#sano-daily-rewards button:focus-visible{outline:3px solid #0765f1;outline-offset:5px}
#sano-daily-rewards .sano-dialog{position:relative;width:min(344px,100%);flex-shrink:0;margin:auto;outline:0;background:transparent;border:0;box-shadow:none}
#sano-daily-rewards .sano-rewards-close{position:absolute;top:-58px;right:0;display:grid;place-items:center;width:44px;height:44px;padding:9px;border:2px solid #ffdce3;border-bottom:4px solid #bd2344;border-radius:50%;background:linear-gradient(145deg,#ff8da3,#ee365d);color:#fff;box-shadow:inset 0 1px #fff9,0 3px 0 #9d203c;overflow:hidden}
#sano-daily-rewards .sano-rewards-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round}
#sano-daily-rewards .sano-rewards-close:active{transform:translateY(2px)}
#sano-daily-rewards .sano-reward-list{display:grid;gap:19px}
#sano-daily-rewards .sano-reward{--sano-edge:#5c2ca8;position:relative;display:grid;grid-template-columns:51px minmax(0,1fr) 53px;align-items:center;gap:10px;width:100%;min-height:91px;padding:12px;border:3px solid #e5ceff;border-bottom:5px solid #7841c7;border-radius:23px;background:linear-gradient(145deg,#d5adff 0%,#ad77f6 19%,#9251e7 45%,#a167ec 61%,#7e41d5 100%);color:#fff;box-shadow:inset 0 2px 1px #f2e5ff,0 4px 0 var(--sano-edge),0 9px 15px #6528a42a;isolation:isolate;text-align:left;transition:filter .2s;overflow:hidden;animation:sano-reward-float 3.8s ease-in-out infinite;animation-delay:var(--sano-reward-delay,0s)}
#sano-daily-rewards .sano-reward:before{content:'';position:absolute;inset:0 0 52%;z-index:-1;background:linear-gradient(180deg,#fff5,#fff0);border-radius:19px 19px 65% 15%;pointer-events:none}
#sano-daily-rewards :is(.sano-reward,.sano-spin-button,.sano-rewards-close):after{content:'';position:absolute;inset:-120% auto -120% -50%;width:32%;background:linear-gradient(90deg,transparent,#ffffff85,transparent);pointer-events:none;animation:sano-reward-shine 4.8s ease-in-out infinite;animation-delay:var(--sano-reward-delay,0s)}
#sano-daily-rewards .sano-reward:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.04)}
#sano-daily-rewards .sano-reward:active:not(:disabled){transform:translateY(3px)}
#sano-daily-rewards .sano-reward:disabled{cursor:default}
#sano-daily-rewards .sano-checkin{--sano-edge:#b77b11;border-color:#fff5bc;border-bottom-color:#da9f22;background:linear-gradient(145deg,#fff5c0 0%,#ffe478 20%,#f8c338 43%,#ffdd65 62%,#f0b02b 100%);color:#714811;box-shadow:inset 0 2px 1px #fffde9,0 4px 0 var(--sano-edge),0 9px 15px #b17a2625}
#sano-daily-rewards .sano-watch{--sano-edge:#ad233e;border-color:#ffd8e2;border-bottom-color:#d03554;background:linear-gradient(145deg,#ffacb8 0%,#ff728c 20%,#f4496e 46%,#fc6587 62%,#e72c56 100%);box-shadow:inset 0 2px 1px #ffe4ec,0 4px 0 var(--sano-edge),0 9px 15px #ac2b4925}
#sano-daily-rewards .sano-reward-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
#sano-daily-rewards .sano-reward-name{font-size:17px;line-height:1.15;font-weight:900;letter-spacing:-.35px;text-shadow:0 1px 1px #422d7840;white-space:nowrap}
#sano-daily-rewards .sano-reward-description{font-size:12px;line-height:1.2;font-weight:700;color:#fff;white-space:nowrap}
#sano-daily-rewards .sano-checkin .sano-reward-name{text-shadow:0 1px #fff4ae}
#sano-daily-rewards .sano-checkin .sano-reward-description{color:#714811}
#sano-daily-rewards .sano-row-action{display:grid;place-items:center;min-height:34px;padding:5px 6px;border:1px solid #ffffff8c;border-radius:12px;background:linear-gradient(#ffffff5e,#ffffff25);box-shadow:inset 0 1px 1px #ffffff85,0 2px 1px #431d701a;font-size:12px;font-weight:900;white-space:nowrap}
#sano-daily-rewards .sano-row-action svg{width:21px;height:21px}
#sano-daily-rewards .sano-icon{position:relative;display:grid;place-items:center;width:51px;height:51px;filter:drop-shadow(0 3px 1px #4b257f27)}
#sano-daily-rewards .sano-mini-wheel{position:relative;width:48px;height:48px;border:4px solid #ffe17a;border-radius:50%;background:conic-gradient(from -30deg,#ffe166 0deg 60deg,#ff6b8c 60deg 120deg,#69c9ff 120deg 180deg,#72dc9f 180deg 240deg,#ffb152 240deg 300deg,#a88aff 300deg 360deg);box-shadow:inset 0 0 0 1px #fff6,0 1px 0 2px #b67b16}
#sano-daily-rewards .sano-mini-wheel:before{content:'';position:absolute;left:50%;top:50%;width:11px;height:11px;transform:translate(-50%,-50%);border-radius:50%;background:#fff3a7;border:2px solid #c68e20}
#sano-daily-rewards .sano-mini-wheel:after{content:'';position:absolute;left:50%;top:-9px;transform:translateX(-50%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:11px solid #fff5ae;filter:drop-shadow(0 1px 0 #bb7b19)}
#sano-daily-rewards .sano-calendar-art{display:grid;place-items:center;width:42px;height:45px;background:linear-gradient(#fffdf5,#fff5d4);border:2px solid #fff;border-bottom:4px solid #dfb24e;border-radius:11px;color:#d18d1f;transform:rotate(-7deg)}
#sano-daily-rewards .sano-calendar-art svg{width:27px;height:27px;stroke-width:2.3}
#sano-daily-rewards .sano-tiny-coin{position:absolute;right:-3px;bottom:-1px;font-size:22px;line-height:1}
#sano-daily-rewards .sano-video-art{display:grid;place-items:center;width:45px;height:39px;transform:rotate(-5deg);background:linear-gradient(#fff9ef,#ffeac0);border:2px solid #fff7d2;border-bottom:4px solid #deaa3b;border-radius:12px;color:#ec4770}
#sano-daily-rewards .sano-video-art svg{width:21px;height:21px;fill:#ec4770;stroke-width:1.4}
#sano-daily-rewards .sano-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#sano-daily-rewards .sano-wheel-wrap{position:relative;width:min(252px,92%);aspect-ratio:1;margin:16px auto 24px;border:7px solid #e7b12f;border-radius:50%;background:#ffe982;box-shadow:0 6px 0 #bb8420,0 12px 25px #ac7a272e,inset 0 0 0 3px #fff3ba}
#sano-daily-rewards .sano-wheel-wrap:after{content:'';position:absolute;inset:-13px;border-radius:50%;pointer-events:none;border:2px solid #ffeb9f85}
#sano-daily-rewards .sano-wheel{position:absolute;inset:5px;border:3px solid #fff6b6;border-radius:50%;background:conic-gradient(from -30deg,#ffe681 0deg 60deg,#fc8aa5 60deg 120deg,#88d1ff 120deg 180deg,#95e7b4 180deg 240deg,#ffc175 240deg 300deg,#be9cfb 300deg 360deg);transform:rotate(var(--sano-turn,0deg));transition:none;overflow:hidden}
#sano-daily-rewards .sano-wheel-number{position:absolute;color:#355064;font-size:21px;font-weight:950;line-height:1;text-align:center;transform:translate(-50%,-50%);text-shadow:0 1px #fff8}
#sano-daily-rewards .sano-wheel-number small{display:block;margin-top:4px;font-size:11px;font-weight:750;line-height:1.1}
#sano-daily-rewards .sano-wheel-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:61px;height:61px;font-size:39px;border:4px solid #ffe78a;border-radius:50%;background:linear-gradient(140deg,#fff7bf,#ffcf41);box-shadow:0 3px 0 #ba831c,0 4px 10px #b97b3a42}
#sano-daily-rewards .sano-wheel-pointer{position:absolute;top:-19px;left:50%;z-index:2;transform:translateX(-50%);width:30px;height:42px;border-radius:9px 9px 50% 50%;border:2px solid #fff2a5;background:linear-gradient(#fff3ad,#ffce3a 57%,#e89e0e);box-shadow:0 3px 1px #b27020}
#sano-daily-rewards .sano-wheel-pointer:after{content:'';position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:7px;height:7px;border-radius:50%;background:#a06b12}
#sano-daily-rewards .sano-wheel-wrap{width:min(318px,100%);margin:22px auto 30px;border:2px solid #fff3ba;background:radial-gradient(circle at 50% 2%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 74% 8%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 92% 26%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 98% 50%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 92% 74%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 74% 92%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 50% 98%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 26% 92%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 8% 74%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 2% 50%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 8% 26%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),radial-gradient(circle at 26% 8%,#fffdd8 0 2px,#d69b20 3px,transparent 4px),conic-gradient(from -35deg,#bc7713,#fff4b2 12%,#ffe16b 20%,#f5b525 31%,#fff2a2 43%,#b97b15 57%,#ffd44c 70%,#fff2af 83%,#e5a520 93%,#bc7713);box-shadow:inset 0 1px 3px #fffbe3,0 2px 0 #d69a1a,0 7px 0 #b07b18,0 14px 18px #c68b2136,0 0 23px #ffcf4240}
#sano-daily-rewards .sano-wheel-wrap:after{inset:-5px;border:1px solid #ffe07980;box-shadow:0 0 15px #ffd34f32}
#sano-daily-rewards .sano-wheel{inset:13px;border:4px solid #a8751d;background:conic-gradient(from -22.5deg,#ffe480 0deg 45deg,#ff9bb3 45deg 90deg,#90d3ff 90deg 135deg,#9ce4bb 135deg 180deg,#ffd19b 180deg 225deg,#cbb3ff 225deg 270deg,#91e3df 270deg 315deg,#ffc2df 315deg 360deg);box-shadow:0 0 0 2px #fff0a5,inset 0 0 0 2px #fff7,inset 0 4px 9px #75491c39}
#sano-daily-rewards .sano-wheel:after{content:'';position:absolute;inset:0;border-radius:50%;pointer-events:none;background:linear-gradient(133deg,#fff9 0%,#fff2 18%,transparent 30%,#fff6 35%,transparent 43%,transparent 65%,#ffffff3d 70%,transparent 78%),radial-gradient(ellipse at 50% 0%,#fff6,transparent 57%);box-shadow:inset 0 0 10px #fff3}
#sano-daily-rewards .sano-wheel-number{z-index:1;font-size:clamp(17px,5.5vw,22px);font-weight:950;text-shadow:0 2px #ffffff80}
#sano-daily-rewards .sano-wheel-center{z-index:2;width:76px;height:76px;font-size:44px;border:5px solid #ffdf62;background:linear-gradient(140deg,#fff7bf 0%,#ffdb59 32%,#fff0a2 49%,#f4b327 64%,#ffd65b 100%);box-shadow:inset 0 2px 2px #fffde7,inset 0 -3px 3px #cd8a1847,0 3px 0 #b37813,0 6px 12px #77471255}
#sano-daily-rewards .sano-wheel-center.sano-wheel-win{font-size:25px;font-weight:950;color:#875110;text-shadow:0 1px #fff6b4}
#sano-daily-rewards .sano-wheel-pointer{top:-12px;width:32px;height:47px;border-color:#fff5bc;background:linear-gradient(115deg,#fff6bc,#ffdb55 42%,#f6b318 68%,#ffd95c);box-shadow:inset 2px 0 2px #fff9,0 3px 0 #aa6e0f,0 5px 8px #77502245}
#sano-daily-rewards .sano-spin-button{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:61px;border:3px solid #fff0aa;border-bottom:5px solid #d2981d;border-radius:20px;background:linear-gradient(150deg,#fff3b1,#ffdb62 30%,#f6c038 53%,#ffdb69 75%,#f1b32d);color:#76501a;font-size:19px;font-weight:950;text-shadow:0 1px #fff6bd;box-shadow:inset 0 2px 1px #fffce3,0 4px 0 #ac7312,0 9px 16px #ad783522;transition:transform .2s}
#sano-daily-rewards .sano-spin-button svg{width:20px;height:20px}
#sano-daily-rewards .sano-spin-button:active:not(:disabled){transform:translateY(3px)}
#sano-daily-rewards .sano-spin-button:disabled{cursor:wait;filter:saturate(.8)}
#sano-daily-rewards .sano-small-spin{width:128px;min-height:47px;margin:0 auto;padding:7px 15px;border-radius:17px;font-size:18px}
#sano-daily-rewards .sano-reward[aria-disabled=true]{cursor:default}

#sano-daily-rewards .sano-tiny-coin{right:-4px;bottom:-6px;width:27px;height:27px}
#sano-daily-rewards .sano-tiny-coin svg{width:100%;height:100%}
#sano-daily-rewards .sano-wheel-center svg{width:60px;height:60px}
#sano-daily-rewards .sano-reward-description{white-space:normal;overflow-wrap:normal}
#sano-daily-rewards .sano-spin-button.sano-small-spin{margin:0 auto}
#sano-daily-rewards .sano-watch:disabled{cursor:default;opacity:1}
@media(max-width:380px){#sano-daily-rewards{padding-inline:15px}#sano-daily-rewards .sano-reward{grid-template-columns:43px minmax(0,1fr) 45px;gap:8px;padding:11px 9px;min-height:87px}#sano-daily-rewards .sano-icon{width:43px;height:46px}#sano-daily-rewards .sano-mini-wheel{width:43px;height:43px}#sano-daily-rewards .sano-reward-name{font-size:15px}#sano-daily-rewards .sano-reward-description{font-size:11px}#sano-daily-rewards .sano-row-action{font-size:11px;padding-inline:4px}#sano-daily-rewards .sano-calendar-art{width:36px;height:41px}#sano-daily-rewards .sano-video-art{width:38px;height:35px}}
@media(max-height:480px) and (min-width:600px){#sano-daily-rewards{padding-block:18px}#sano-daily-rewards .sano-wheel-wrap{width:250px;margin:14px auto 24px}#sano-daily-rewards .sano-rewards-close{position:absolute;top:-58px;right:0;display:grid;place-items:center;width:44px;height:44px;padding:9px;border:2px solid #ffdce3;border-bottom:4px solid #bd2344;border-radius:50%;background:linear-gradient(145deg,#ff8da3,#ee365d);color:#fff;box-shadow:inset 0 1px #fff9,0 3px 0 #9d203c;overflow:hidden}
#sano-daily-rewards .sano-rewards-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round}
#sano-daily-rewards .sano-rewards-close:active{transform:translateY(2px)}
#sano-daily-rewards .sano-reward-list{gap:13px}#sano-daily-rewards .sano-reward{min-height:80px}}
@media(prefers-reduced-motion:reduce){#sano-daily-rewards *,#sano-daily-rewards *:before,#sano-daily-rewards *:after{transition:none!important;animation:none!important}}
body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards *,body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards *:before,body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards *:after{transition:none!important;animation:none!important}

#sano-daily-rewards .sano-rewards-close{position:relative;inset:auto;overflow:hidden;display:grid;place-items:center;width:42px;height:42px;margin:0 0 14px auto;border:2px solid #fff2a5;border-bottom-color:#d69a1d;border-radius:50%;background:linear-gradient(135deg,#fff9d3 0%,#ffe98a 20%,#f8c43c 43%,#fff0a2 60%,#e9a71d 82%,#ffdf69 100%);color:#ce283f;box-shadow:inset 0 2px 2px #fffde5,inset 0 -2px 2px #c58a2633,0 3px 0 #ae751a,0 5px 12px #8762212b;padding:9px}
#sano-daily-rewards .sano-rewards-close svg{width:22px;height:22px}

/* Match the gentle motion of the main tiles; the sheen only animates transforms and opacity. */
#sano-daily-rewards .sano-reward:nth-child(2){--sano-reward-delay:-1.2s}
#sano-daily-rewards .sano-reward:nth-child(3){--sano-reward-delay:-2.4s}
#sano-daily-rewards .sano-rewards-close svg{position:relative;z-index:1;stroke-width:3;filter:drop-shadow(0 1px 0 #fff5c4)}
body[data-page-hidden=true] #sano-daily-rewards *,body[data-page-hidden=true] #sano-daily-rewards *:after{animation-play-state:paused!important}
@keyframes sano-reward-float{0%,100%{transform:translate(-3px,-2px) rotate(-1.6deg)}25%{transform:translate(3px,2px) rotate(1.6deg)}50%{transform:translate(-2px,2px) rotate(-1.2deg)}75%{transform:translate(2px,-2px) rotate(1.2deg)}}
@keyframes sano-reward-shine{0%,12%{transform:translateX(0) rotate(22deg);opacity:0}18%{opacity:.8}56%{opacity:.7}65%,100%{transform:translateX(680%) rotate(22deg);opacity:0}}

/* Only the floating controls move. The transparent blur fades with the prompt. */
#sano-daily-rewards:is([data-state=entering],[data-state=leaving]){will-change:opacity}
#sano-daily-rewards:is([data-state=entering],[data-state=leaving]) .sano-dialog{will-change:transform}
#sano-daily-rewards[data-state=leaving]{pointer-events:none}

/* Square reward tiles retain the existing artwork, colours, sheen and motion. */
#sano-daily-rewards .sano-dialog:has(.sano-reward-list){width:min(390px,100%)}
#sano-daily-rewards .sano-reward-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#sano-daily-rewards .sano-reward{grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;aspect-ratio:1;min-height:0;gap:6px;padding:12px 10px;text-align:center}
#sano-daily-rewards .sano-watch{grid-column:1/-1;justify-self:center;width:calc((100% - 18px)/2)}
#sano-daily-rewards .sano-reward-copy{align-items:center;gap:3px;width:100%}
#sano-daily-rewards .sano-reward-name{white-space:normal;line-height:1.2;font-size:clamp(14px,3.9vw,17px);text-wrap:balance}
#sano-daily-rewards .sano-reward-description{font-size:11px;line-height:1.25;text-wrap:balance}
#sano-daily-rewards .sano-row-action{min-width:58px;min-height:28px;padding:4px 10px}
#sano-daily-rewards .sano-icon{width:46px;height:46px}
#sano-daily-rewards .sano-mini-wheel{width:43px;height:43px}
@media(max-width:359px){
 #sano-daily-rewards .sano-reward-list{gap:14px}
 #sano-daily-rewards .sano-reward{padding:8px 6px;gap:4px}
 #sano-daily-rewards .sano-watch{width:calc((100% - 14px)/2)}
 #sano-daily-rewards .sano-reward-name{font-size:13px}
 #sano-daily-rewards .sano-reward-description{font-size:10px}
 #sano-daily-rewards .sano-icon{width:34px;height:34px}
 #sano-daily-rewards .sano-icon>span:not(.sano-tiny-coin){scale:.78}
 #sano-daily-rewards .sano-tiny-coin{width:21px;height:21px}
 #sano-daily-rewards .sano-row-action{min-height:24px;padding:3px 8px}
}

/* Voluntary rewards invite a tap with a pulse and light behind each tile. */
#sano-daily-rewards :is(.sano-reward,.sano-spin-button){--action-light:#ae7aee;--sano-content-motion:sano-reward-invite 2.8s ease-in-out infinite;--sano-content-delay:var(--sano-reward-delay,0s);animation:var(--sano-content-motion);animation-delay:var(--sano-content-delay);transform-origin:center;border:3px solid #fffffff2;box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--sano-edge,#ac7312),0 0 22px 4px color-mix(in srgb,var(--action-light) 40%,transparent),0 8px 38px 6px color-mix(in srgb,var(--action-light) 24%,transparent)}
#sano-daily-rewards :is(.sano-checkin,.sano-spin-button){--action-light:#f3c348}
#sano-daily-rewards .sano-watch{--action-light:#f276a2}
#sano-daily-rewards .sano-reward[data-claimed=true],#sano-daily-rewards[data-busy=true] :is(.sano-reward,.sano-spin-button){--sano-content-motion:none;animation:none;filter:none}
#sano-daily-rewards .sano-spin-button:before{content:'';display:block;flex:none;width:22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376501a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7a9 9 0 0 0-15-2L2 8m0-5v5h5M4 17a9 9 0 0 0 15 2l3-3m0 5v-5h-5'/%3E%3C/svg%3E") center/contain no-repeat;animation:sano-spin-invitation 4s linear infinite}
#sano-daily-rewards .sano-spin-button:disabled:before{animation:none;opacity:.5}
/* Keep labels upright at the angle actually drawn this frame. */
#sano-daily-rewards .sano-wheel-number{transform:translate(-50%,-50%) rotate(calc(-1 * var(--sano-turn,0deg)));transition:none}
@keyframes sano-reward-invite{0%,100%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 3px color-mix(in srgb,var(--action-light) 12%,transparent))}50%{transform:scale(1.045);filter:brightness(1.06) drop-shadow(0 0 13px color-mix(in srgb,var(--action-light) 48%,transparent))}}
@keyframes sano-spin-invitation{to{transform:rotate(360deg)}}
body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards :is(.sano-reward,.sano-spin-button){--sano-content-motion:none;animation:none;filter:none}
@media(prefers-reduced-motion:reduce){#sano-daily-rewards :is(.sano-reward,.sano-spin-button){--sano-content-motion:none;animation:none;filter:none}}

#sano-daily-rewards [lang="ne"] .sano-reward-copy{line-height:1.6}
#sano-daily-rewards .sano-dialog{flex-shrink:0;margin-block:auto}
#sano-daily-rewards .sano-wheel-wrap{width:min(318px,calc(100% - 12px))}
#sano-daily-rewards .sano-rewards-close{min-width:44px;min-height:44px}
@media(max-height:480px){#sano-daily-rewards .sano-wheel-wrap{width:min(230px,calc(100% - 12px))}}

/* Already-collected rewards stay tappable so tomorrow's reminder can play. */
#sano-daily-rewards .sano-reward.sano-reward-denied{animation:sano-reward-denied-jiggle 560ms ease-in-out 1;box-shadow:inset 0 2px 1px #ffffffad,0 5px 0 var(--sano-edge,#ac7312),0 0 14px 7px #f02e5c99,0 0 38px 13px #ed244666;transform-origin:center}
#sano-daily-rewards .sano-reward.sano-reward-denied-still{animation:none!important;transform:none!important}
@keyframes sano-reward-denied-jiggle{0%,100%{transform:translateX(0) rotate(0)}15%{transform:translateX(-8px) rotate(-4deg)}30%{transform:translateX(8px) rotate(4deg)}45%{transform:translateX(-6px) rotate(-3deg)}60%{transform:translateX(6px) rotate(3deg)}75%{transform:translateX(-3px) rotate(-1.5deg)}90%{transform:translateX(3px) rotate(1.5deg)}}
.sano-reward-fireworks{position:absolute;inset:0;z-index:15;overflow:hidden;pointer-events:none;contain:strict}
.sano-reward-fireworks img{position:absolute;left:var(--x);top:var(--y);width:clamp(110px,30vw,240px);height:auto;opacity:0;animation:sano-reward-burst 1.8s ease-out var(--delay) both;transform-origin:center}
@keyframes sano-reward-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.1) rotate(var(--turn))}20%{opacity:.85}70%{opacity:.6}100%{opacity:0;transform:translate(-50%,-50%) scale(1.15) rotate(var(--turn))}}
.sano-reward-fireworks[data-motion=reduce] img{animation:none;opacity:.35;transform:translate(-50%,-50%) scale(.65)}

#sano-daily-rewards .sano-wheel{transition:none}
#sano-daily-rewards[data-busy=true] .sano-wheel{will-change:transform}
#sano-daily-rewards .sano-reward-list{position:relative}
.sano-paper-confetti{position:absolute;z-index:5;inset:-12px;display:block;overflow:hidden;pointer-events:none;contain:strict;border-radius:24px}
.sano-paper-confetti i{position:absolute;left:50%;top:55%;width:var(--paper-size);height:var(--paper-size);border-radius:0;opacity:0;animation:sano-paper-burst 1.1s var(--paper-delay) ease-out both}
@keyframes sano-paper-burst{0%{opacity:0;transform:translate(0,0) rotate(0)}12%{opacity:1}55%{opacity:1;transform:translate(calc(var(--paper-x)*.8),var(--paper-y)) rotate(var(--paper-r))}100%{opacity:0;transform:translate(var(--paper-x),calc(var(--paper-y) + 60px)) rotate(calc(var(--paper-r) + 90deg))}}
.sano-paper-confetti.is-still i{animation:none;opacity:.8;transform:translate(var(--paper-x),var(--paper-y)) rotate(var(--paper-r))}

/* Shared folded-paper bursts: a single canvas replaces hundreds of moving nodes. */
.sano-paper-confetti>canvas{display:block;width:100%;height:100%;pointer-events:none}
.sano-paper-confetti.is-celebration{inset:0;z-index:20;border-radius:0}

@media (orientation:landscape) and (max-height:540px) {
 #sano-daily-rewards {
  box-sizing:border-box;
  padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
 }
 #sano-daily-rewards .sano-dialog:has(.sano-reward-list){width:min(508px,100%);padding-right:56px}
 #sano-daily-rewards .sano-rewards-close{top:0;right:0;z-index:3}
 #sano-daily-rewards [data-view="spin"]:not([hidden]){display:flex;align-items:center;justify-content:space-evenly;gap:14px}
 #sano-daily-rewards .sano-wheel-wrap{flex:0 1 auto;width:min(55dvh,245px,60%);margin:14px 0}
 #sano-daily-rewards .sano-small-spin{flex:0 1 auto;width:auto;min-width:80px;min-height:44px;margin:0}
 #sano-daily-rewards .sano-reward-list{gap:8px}
 #sano-daily-rewards .sano-reward-list>.sano-reward{min-height:56px;padding-block:4px}
}

/* Keep the Spin hit area still. Its arrow and glow invite the tap. */
#sano-daily-rewards .sano-spin-button.sano-small-spin{--sano-content-motion:none;animation:none}

/* Sano stylesheet: coin-price-badges.css */
/* Price coins use the same gold artwork and yellow number badge as the toolbar. */
.sano-price-badge{position:absolute;top:8px;right:8px;z-index:4;display:block;box-sizing:border-box;width:44px;height:44px;padding:4px;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:none;white-space:nowrap}
.sano-price-badge>svg{position:static;display:block;width:100%!important;height:100%!important;animation:none!important;transform:none!important}
.sano-price-badge>.coin-balance-badge{position:absolute;right:-3px;top:-3px;display:grid;place-items:center;box-sizing:content-box;min-width:17px;height:19px;padding:0 4px;border:2px solid #fff9e6;border-radius:20px;background:linear-gradient(145deg,#fff8db,#ffdf75);color:#674516;font:700 12px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 2px 5px #8055152e;text-shadow:0 1px #fff9dd}
.sano-price-badge svg *{animation:none!important}
.topic-tile-face,.coin-extra-face,.music-instrument-face,.melody-face,.scribble-idea,.mountain-scribble{position:relative}
.drawing-rainbow .rainbow-paid-corner{position:absolute!important;top:-7px!important;right:-9px!important;width:40px!important;height:40px!important;max-width:none!important;overflow:visible!important;z-index:5}
.drawing-rainbow .rainbow-paid-corner .sano-price-badge{top:0;right:0;width:40px;height:40px}
.music-freeplay-unlock>.sano-price-badge{top:8px;right:8px}
#app .music-area .melody-face{padding-top:46px}
@media(max-width:380px){.sano-price-badge{top:6px;right:6px;width:40px;height:40px}}
@media(forced-colors:active){.sano-price-badge>.coin-balance-badge{background:Canvas;color:CanvasText;border-color:CanvasText}}
.sc-menu-tile,.sc-pick-face,.knowledge-button>.game-tile-face{position:relative}
.knowledge-button[data-knowledge=start]>.game-tile-face{padding-right:58px}
.coin-spend-notice{position:fixed;z-index:1250;translate:-50% 0;display:grid;place-items:center;min-width:42px;padding:6px 10px;border:2px solid #fff5c0;border-radius:18px;background:linear-gradient(145deg,#fff8db,#ffdf75);color:#674516;box-shadow:0 3px 9px #80551530;font:900 18px/1.1 ui-rounded,system-ui,sans-serif;pointer-events:none;animation:sano-coin-spend 1.8s ease-out both}
@keyframes sano-coin-spend{0%{opacity:0;transform:translateY(-5px) scale(.9)}15%,72%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(12px) scale(.98)}}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-spend-notice{animation:none}
@media(prefers-reduced-motion:reduce){.coin-spend-notice{animation:none}}

/* Sano stylesheet: learning-followup.css */
/* Shared discovery and proceed cues across both learning courses. */
#app .body-explorer .body-instruction.tap-invitation{color:#0666ef;font:900 clamp(18px,4.6vw,22px)/1.4 var(--joy-font);min-height:0;margin:12px auto 20px}
#app .body-explorer .body-part-label[hidden]{display:none!important}
/* Ordinary instruction does not pause hands-on learning. */
body[data-guidance-playing=true] :is(.choice-grid,.match-stage,.drag-area){cursor:auto}
body[data-guidance-playing=true] #trace-board{cursor:crosshair}
body[data-guidance-playing=true] :is([data-action="continue"],[data-body-next],[data-family="next"],.sc-next,[data-check="next"]){animation:none!important}
@media(prefers-reduced-motion:no-preference){
 body:not([data-motion=reduce]):not([data-reduced-motion=true]) :is([data-action="continue"],[data-body-next],[data-family="next"],[data-family="ready"],[data-check="next"],[data-check="again"],[data-scribble="next"],.sc-next):not(:disabled):not([hidden]){animation:proceed-heartbeat 2.8s ease-in-out infinite}
}

@media(prefers-reduced-motion:no-preference){
 body:not([data-motion=reduce]):not([data-reduced-motion=true]):not([data-guidance-playing=true]) :is([data-nepal-action="next"],[data-knowledge="next"],[data-maths="next"],.spelling-next,[data-sc-action="next"]):not(:disabled):not([hidden]){animation:proceed-heartbeat 2.8s ease-in-out infinite}
}

#sano-daily-rewards :is(.sano-reward,.sano-spin-button){transition:box-shadow .2s ease,outline-color .2s ease}
body[data-page-hidden=true] #sano-daily-rewards .is-required{animation-play-state:paused!important}

/* Daily gifts form one centred stack in their reading order. */
#sano-daily-rewards .sano-dialog:has(.sano-reward-list){width:min(390px,100%)}
#sano-daily-rewards .sano-reward-list{display:flex;flex-direction:column;align-items:center;gap:18px}
#sano-daily-rewards .sano-reward{width:min(100%,290px);aspect-ratio:auto;min-height:112px;grid-template-columns:46px minmax(0,1fr) 52px;gap:10px;padding:16px 12px;text-align:center}
#sano-daily-rewards .sano-watch{width:min(100%,290px);grid-column:auto}
#sano-daily-rewards .sano-reward-copy{width:100%;align-items:center}
@media(max-width:359px){#sano-daily-rewards .sano-reward{grid-template-columns:34px minmax(0,1fr) 44px;gap:7px;min-height:100px;padding:12px 9px}#sano-daily-rewards .sano-reward-list{gap:14px}}

/* Keep the scene transparent, with distinct coloured result actions. */
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-button{border:3px solid #fff!important;border-bottom-width:6px!important;border-radius:22px!important;color:#fff!important;font:900 clamp(15px,3.8vw,19px)/1.25 var(--joy-font);min-height:84px;padding:14px 10px;text-shadow:0 1px 2px #0002;transition:transform .18s ease,filter .18s ease}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-another{background:linear-gradient(145deg,#ff8391,#e63b56)!important;border-bottom-color:#b8213c!important;box-shadow:inset 0 2px 1px #ffdce4,0 5px 0 #bc2c4333,0 0 24px #f86b8677!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-again{background:linear-gradient(145deg,#67e4ad,#16a76f)!important;border-bottom-color:#168657!important;box-shadow:inset 0 2px 1px #dcffee,0 5px 0 #11784d33,0 0 24px #2ccd9377!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-end-actions .mountain-button:active{transform:translateY(3px) scale(.98);opacity:1;filter:brightness(1.06)}

#app .topic-category-games .sano-games-art{position:relative;display:block;width:100%;height:100%;isolation:isolate}
#app .topic-category-games .sano-games-art img{position:absolute;display:block;object-fit:contain;pointer-events:none;max-width:none}
#app .topic-category-games .sano-games-mountain{width:94%;height:94%;left:0;bottom:0}
#app .topic-category-games .sano-games-kite{width:49%;height:49%;right:-4%;top:-5%;filter:drop-shadow(0 3px 2px #59432133)}

/* Keep the toolbar, Back/brand row, language row and activity separate. */
body #app:has(>.foundations-shell){padding-top:calc(var(--toolbar-height) + 12px)}
body #app>.simple-shell.foundations-shell>.simple-header{height:auto;min-height:72px;box-sizing:border-box;padding-block:12px;margin-block:0 12px}
body #app>.simple-shell.foundations-shell> :where(.sano-page-scroll) >.learning-course-control{margin-block:10px 22px;row-gap:10px}
body #app>.simple-shell.foundations-shell> :where(.sano-page-scroll) >.simple-content{padding-top:8px}
/* The flag uses the same explicit drawing switch as the other art pages. */
#app .flag-colouring[data-drawing=false] :is(.flag-stencil,.flag-input,.flag-input path){touch-action:pan-y pinch-zoom;cursor:auto}
#app .flag-colouring[data-drawing=true] :is(.flag-stencil,.flag-input,.flag-input path){touch-action:none}
#app .flag-draw-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;min-width:126px;padding:8px 16px;color:#0666ef}
#app .flag-draw-toggle svg{width:24px;height:38px}
#app .flag-draw-toggle[aria-pressed=true]{outline:3px solid #0666ef;outline-offset:2px}
#app .flag-draw-toggle[aria-pressed=false]:not(:disabled){animation:discovery-next-heartbeat 1.7s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#app .flag-draw-toggle{animation:none!important}}

/* Tile colours follow their activity when the first two positions are swapped. */
#app .scribble-mode-grid [data-mode=free]{--scribble-fill:#a8dbff;--scribble-edge:#3b97d7;--scribble-ink:#174d83}
#app .scribble-mode-grid [data-mode=name]{--scribble-fill:#ffc0dc;--scribble-edge:#dc72a5;--scribble-ink:#7e2458}

/* Exit choices keep the transparent scene and restore two centred tiles. */
#app .mountain-game .mountain-overlay .mountain-quit-actions{display:flex;flex-direction:column;align-items:center;width:min(300px,100%);gap:18px;margin-inline:auto}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions .mountain-button{width:100%;min-height:80px;padding:16px 18px;border:3px solid #fff!important;border-bottom-width:6px!important;border-radius:24px!important;color:#fff!important;font:900 clamp(18px,4.5vw,24px)/1.3 var(--joy-font);text-shadow:0 1px 2px #0002;transition:transform .18s ease,filter .18s ease}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions [data-mountain=cancel-exit]{background:linear-gradient(145deg,#67e4ad,#16a76f)!important;border-bottom-color:#168657!important;box-shadow:inset 0 2px 1px #dcffee,0 5px 0 #11784d33,0 0 24px #2ccd9377!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions [data-mountain=confirm-exit]{background:linear-gradient(145deg,#ff8391,#e63b56)!important;border-bottom-color:#b8213c!important;box-shadow:inset 0 2px 1px #ffdce4,0 5px 0 #bc2c4333,0 0 24px #f86b8677!important}
#app .mountain-game .mountain-stage[data-prompt=true] .mountain-overlay .mountain-quit-actions .mountain-button:active{transform:translateY(3px) scale(.98);opacity:1;filter:brightness(1.06)}
@media(prefers-reduced-motion:reduce){#app .mountain-game .mountain-quit-actions .mountain-button{transition:none!important}}

/* Give the third activity breathing room beneath the lesson heading. */
#app .is-vowel-activity .vowel-speaking{padding-top:22px}
#app .vowel-speaking .vowel-speaking-controls .vowel-speaking-complete{background:linear-gradient(145deg,#67e4ad,#16a76f);border:3px solid #fff;border-bottom:6px solid #168657;border-radius:22px;color:#fff;box-shadow:inset 0 2px 1px #dcffee,0 4px 0 #11784d33,0 0 18px #2ccd9344;font-weight:900}

/* Draw uses the same pencil artwork on Nepal's flag and map. */
#app .flag-draw-toggle{flex-direction:column;gap:2px;min-width:94px;padding:6px 14px}
#app .flag-draw-toggle canvas{display:block;width:52px;height:52px;pointer-events:none}
/* Matching compact blue wordmarks in the coin collection. */
.coin-backdrop .coin-dialog .coin-area .coin-extras>.coin-extras-heading{width:min(250px,94%);margin:12px auto 10px}
.coin-backdrop .coin-dialog .coin-area .coin-extras-heading>svg{display:block;width:100%;height:auto;max-height:64px}
.coin-backdrop .coin-dialog .coin-area .coin-collection>.coin-coming-title{width:min(180px,80%);margin:12px auto 18px;line-height:0;color:#0666ef}
.coin-backdrop .coin-dialog .coin-area .coin-coming-title>svg{display:block;width:100%;height:auto;max-height:40px}
/* Artwork and wrapped labels own separate rows, including narrow phones. */
.coin-backdrop .coin-dialog .coin-area button.coin-extra-tile{aspect-ratio:auto;min-height:200px;height:100%;align-self:stretch}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile>.coin-extra-face{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-content:center;padding:30px 10px 14px;gap:10px}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile .coin-extra-art{width:min(96px,100%);height:100%;max-height:96px;min-height:0;max-width:100%}
.coin-backdrop .coin-dialog .coin-area .coin-extra-art>:is(img,svg){display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.coin-backdrop .coin-dialog .coin-area .coin-extra-tile strong{position:static;min-width:0;max-width:100%;overflow-wrap:anywhere}
#app .topic-four-home .topic-category-knowledge>.topic-tile-face{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:10px;padding-top:24px}
#app .topic-four-home .topic-category-knowledge .topic-tile-picture{width:min(110px,100%);height:100%;max-height:100%;min-height:0}
#app .topic-four-home .topic-category-knowledge .topic-tile-label{position:static;min-width:0}

/* Reading support owns a separate line below its learning model. Keep the
   existing paper, illustrations, controls and animations in their own boxes. */
body :is(#app,#overlay,.play-recall) [data-learning-support]{
 display:block;position:relative;box-sizing:border-box;max-width:100%;min-width:0;
 margin:12px 0 10px;padding:0;flex-shrink:0;
 color:#9f3143;font-size:1rem;line-height:1.55;overflow-wrap:anywhere;
}
body #app .trace-stage>[data-activity-learning-support]{
 flex:0 0 auto;box-sizing:border-box;padding-top:18px;padding-bottom:4px;
}
body #app .trace-stage>[data-activity-learning-support]>[data-learning-support]{margin:0}
body #app .body-part-label:has([data-learning-support])>br{display:none}
/* The written tracing instruction remains visible when narration is off. */
body #app .simple-learning-activity.is-tracing .companion-lane>.sano-tip{
 position:relative!important;width:auto!important;height:auto!important;
 padding:8px 12px!important;overflow:visible!important;clip-path:none;
 white-space:normal;text-align:center;
}
/* Story and song helper lines share the same warm red. Active words keep
   their existing blue text and yellow highlights. */
body #app .story-pronunciation{margin-top:14px;color:#9f3143}
body #app .story-meaning,body #app .song-meaning>p{color:#9f3143}
body #app .song-lyrics .song-line-support{margin-top:10px;color:#9f3143}
body #app .song-lyrics .is-current-line .song-line-support{color:#9f3143}
@media(forced-colors:active){
 body :is(#app,#overlay,.play-recall) [data-learning-support],
 body #app :is(.story-pronunciation,.story-meaning),
 body #app .song-lyrics .song-line-support,
 body #app .song-lyrics .is-current-line .song-line-support,
 body #app .song-meaning>p{color:CanvasText}
}
/* Vowel examples keep their native word above its syllables and meaning. */
body #app .vowel-speaking .vowel-word-chunks{
 flex-wrap:wrap;row-gap:4px;margin-top:10px;color:#9f3143;
}
body #app .vowel-speaking .vowel-word-chunks :is(b,i,.muted){color:inherit}
@media(forced-colors:active){body #app .vowel-speaking .vowel-word-chunks{color:CanvasText}}

/* Sano stylesheet: button-consistency.css */
/* One surface treatment across both learning courses. Feedback states keep
   their own animations; navigation Back controls remain stationary. */
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *)>:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face),
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.practice-tool,.sc-button,.sc-next,.sc-menu-tile,.nepal-category,.category-tile,.body-actions>button,.family-actions>button,.discovery-actions>button,.nepal-lesson-controls>button,.knowledge-button,.maths-button,.spelling-action,.spelling-next,.check-button,.coin-buy,.coin-language,.coin-extra-tile,.coin-unlock,.reward-confirmation>button,.settings-tile,.family-account-links>button,.mountain-quit-actions>.mountain-button,.mountain-end-actions>.mountain-button,.mountain-mode-choices>.mountain-button,.scribble-tools>button,.scribble-idea,.scribble-next,.flag-draw-toggle,.coin-currency-toggle,.topic-feature-cta,.sano-reward,.sano-spin-button,.pill,.quiet):not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *):not(.rainbow-tool):not(:has(:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face))){
 --sano-surface-glow:var(--answer-edge,var(--topic-edge,var(--entry-edge,var(--choice-edge,var(--tile-edge,var(--scribble-edge,var(--math-edge,var(--companion-halo,var(--language-glow,var(--action-light,var(--polish-accent,#62b9f5)))))))))));
 border-color:transparent;
 box-shadow:0 0 20px 3px color-mix(in srgb,var(--sano-surface-glow) 38%,transparent),0 8px 34px 5px color-mix(in srgb,var(--sano-surface-glow) 20%,transparent);
 transform-origin:50% 55%;
}
/* Purple audio tools, green completion and the original colour of each tile. */
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) :is(.trace-listen,.listen-button){--action-light:#a38acf}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) :is(.coin-buy,.coin-unlock){--action-light:#f5bd39}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) .coin-earn{--action-light:#ef526e}
body #app :is(.mountain-back,.mountain-another){--action-light:#ef526e}
body #app .mountain-start{--action-light:#f03c8c}
body #app .mountain-again{--action-light:#31c78b}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) .family-account-links>[data-action=family-account-logout]{--action-light:#ef526e;background:linear-gradient(145deg,#ff8391,#e63b56);color:#fff;border:3px solid #fffffff2;border-radius:25px}
body #app .mountain-quit-actions>[data-mountain=cancel-exit]{--action-light:#25c48a}
body #app :is(.mountain-quit-actions>[data-mountain=confirm-exit],.mountain-end-actions>.mountain-another){--action-light:#ef526e}
body #app .sc-button{--action-light:#ec5f9f}
body #app .sc-listen{--action-light:#a38acf}
body #app .sc-reset{--action-light:#d6ad43}
body #app .melody-tabs>button:nth-child(3n+2){--action-light:#e882b0}
body #app .melody-tabs>button:nth-child(3n){--action-light:#48b88c}
body #app .scribble-idea:nth-child(2n){--action-light:#db8fb8}
/* Listen and Next share a white rim and their coloured glow. */
body #app .simple-learning-activity.is-discovery .discovery-actions{align-items:stretch;gap:18px;padding:10px 8px 20px;max-width:340px}
body #app .simple-learning-activity.is-discovery .discovery-actions>button{flex:1 1 0;max-width:none;min-width:0;min-height:60px;border:3px solid #fffffff2!important;border-radius:26px!important;padding:12px 14px;white-space:normal;line-height:1.3}
body #app .simple-learning-activity.is-discovery .discovery-actions>.trace-listen{box-shadow:0 5px 0 #a38acf,0 0 22px 4px #b99ae866,0 8px 32px 4px #b99ae833}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-sc-action=shape-next],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done]),
body #app .simple-learning-activity.is-discovery .discovery-actions>#continue{
 --action-light:#31c78b;--sano-surface-glow:#31c78b;
 border:3px solid #fffffff2!important;border-radius:26px!important;
 background:linear-gradient(145deg,#67e4ad,#16a76f)!important;color:#fff!important;
 box-shadow:0 5px 0 #168657,0 0 23px 4px #31c78b70,0 9px 34px 5px #31c78b38!important;
 text-shadow:0 1px 2px #11654033;transform-origin:center;
}
/* Wrapped button faces inherit the same radius; do not animate twice. */
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-sc-action=shape-next],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done]):not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *)>:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face){border-radius:inherit!important;animation:none!important;background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important}
@keyframes sano-next-pulse{0%,42%,100%{transform:scale(1)}12%{transform:scale(1.045)}22%{transform:scale(1)}32%{transform:scale(1.025)}}
@media(prefers-reduced-motion:no-preference){
 body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *)>:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face),
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.practice-tool,.sc-button,.sc-next,.sc-menu-tile,.nepal-category,.category-tile,.body-actions>button,.family-actions>button,.discovery-actions>button,.nepal-lesson-controls>button,.knowledge-button,.maths-button,.spelling-action,.spelling-next,.check-button,.coin-buy,.coin-language,.coin-extra-tile,.coin-unlock,.reward-confirmation>button,.settings-tile,.family-account-links>button,.mountain-quit-actions>.mountain-button,.mountain-end-actions>.mountain-button,.mountain-mode-choices>.mountain-button,.scribble-tools>button,.scribble-idea,.scribble-next,.flag-draw-toggle,.coin-currency-toggle,.topic-feature-cta,.sano-reward,.sano-spin-button,.pill,.quiet):not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *):not(.rainbow-tool):not(:has(:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face))){animation:var(--sano-content-motion,tile-jiggle 3.8s ease-in-out infinite)!important;animation-delay:var(--tile-delay,var(--scribble-delay,var(--sano-content-delay,0s)))!important;animation-play-state:var(--sano-content-play,running)!important}
 body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-sc-action=shape-next],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done]):not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *),
body #app .simple-learning-activity.is-discovery .discovery-actions>#continue:not(:disabled):not([hidden]){animation:var(--sano-next-motion,sano-next-pulse 2.8s ease-in-out infinite)!important;animation-delay:0s!important;animation-play-state:var(--sano-content-play,running)!important}
}
/* Preserve the correct halo for picture choices, even after a current/star state. */
body #app .simple-topic-picker[data-topic] .topic-tile:not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *)>.topic-entry-face{box-shadow:0 0 20px 4px color-mix(in srgb,var(--topic-edge,#4c9fea) 38%,transparent),0 8px 32px 5px color-mix(in srgb,var(--topic-edge,#4c9fea) 20%,transparent)}
body #app .simple-topic-picker .topic-tile-halo{opacity:.9;pointer-events:none}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back]),
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back]) :is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face,.challenge-pulse,.challenge-halo){animation:none!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:active{--sano-content-play:paused}
body[data-page-hidden=true],body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards)[inert]{--sano-content-play:paused}
body:is([data-motion=reduce],[data-reduced-motion=true]){--sano-content-motion:none;--sano-next-motion:none}
@media(prefers-reduced-motion:reduce){body{--sano-content-motion:none;--sano-next-motion:none}}
@media(forced-colors:active){
 body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *)>:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face),
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.practice-tool,.sc-button,.sc-next,.sc-menu-tile,.nepal-category,.category-tile,.body-actions>button,.family-actions>button,.discovery-actions>button,.nepal-lesson-controls>button,.knowledge-button,.maths-button,.spelling-action,.spelling-next,.check-button,.coin-buy,.coin-language,.coin-extra-tile,.coin-unlock,.reward-confirmation>button,.settings-tile,.family-account-links>button,.mountain-quit-actions>.mountain-button,.mountain-end-actions>.mountain-button,.mountain-mode-choices>.mountain-button,.scribble-tools>button,.scribble-idea,.scribble-next,.flag-draw-toggle,.coin-currency-toggle,.topic-feature-cta,.sano-reward,.sano-spin-button,.pill,.quiet):not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *):not(.rainbow-tool):not(:has(:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.melody-face,.coin-extra-face))),
 body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-sc-action=shape-next],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done]):not(:is(:disabled,[aria-disabled=true],[hidden],.big-object,.nepal-discover-object,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short)):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short) *),
body #app .simple-learning-activity.is-discovery .discovery-actions>#continue:not(:disabled):not([hidden]){background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important}
}

@media(prefers-reduced-motion:no-preference){body #app .simple-topic-picker:is([data-topic=alphabet],[data-topic=number]) .is-topic-current:not(:disabled):not(.answer-wrong):not(.answer-right)>.topic-entry-face{animation:var(--sano-next-motion,sano-next-pulse 2.8s ease-in-out infinite)!important;animation-play-state:var(--sano-content-play,running)!important}}


/* A single 3px white rim matches the Scribbles reference. Apply light to the
   visible surface, not its transparent wrapper. Custom Games/Scribbles tiles
   share this treatment; disabled and feedback states keep their own styling. */
@media(forced-colors:none){
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) :is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.coin-extra-face,.scribble-tools .scribble-action-face),
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.practice-tool,.sc-button,.sc-next,.sc-menu-tile,.nepal-category,.category-tile,.body-actions>button,.family-actions>button,.discovery-actions>button,.nepal-lesson-controls>button,.knowledge-button,.maths-button,.spelling-action,.spelling-next,.spelling-letter,.choice,.match-item,.check-button,.coin-buy,.coin-language,.coin-extra-tile,.coin-unlock,.reward-confirmation>button,.settings-tile,.family-account-links>button,.mountain-quit-actions>.mountain-button,.mountain-end-actions>.mountain-button,.mountain-mode-choices>.mountain-button,.scribble-tools>button,.scribble-idea,.scribble-next,.flag-draw-toggle,.coin-currency-toggle,.topic-feature-cta,.sano-reward,.sano-spin-button,.pill,.quiet,.continue-game,.companion-next,.step-prompt-next,.gate-continue,.nepal-discovery-next,.vowel-speaking-complete,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-sc-action=shape-next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done],.mountain-button,.coin-earn,.parent-return-tile,.step-prompt-rest,.scribble-review-buttons>button,.melody-tabs>button,.number-pad-keys>button,.gate-keypad>button,.quiz-answer,.word-tile,.reply-choice,.answer-check,.grownup-corner,.coin-corner):not(:has(:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.coin-extra-face,.scribble-action-face))){
 border-width:3px!important;border-style:solid!important;border-color:#fffffff2!important;background-clip:border-box!important;
}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) :is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.coin-extra-face,.scribble-tools .scribble-action-face):not(:is(:disabled,[aria-disabled=true],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:is(:disabled,[aria-disabled=true],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]) *),
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.practice-tool,.sc-button,.sc-next,.sc-menu-tile,.nepal-category,.category-tile,.body-actions>button,.family-actions>button,.discovery-actions>button,.nepal-lesson-controls>button,.knowledge-button,.maths-button,.spelling-action,.spelling-next,.spelling-letter,.choice,.match-item,.check-button,.coin-buy,.coin-language,.coin-extra-tile,.coin-unlock,.reward-confirmation>button,.settings-tile,.family-account-links>button,.mountain-quit-actions>.mountain-button,.mountain-end-actions>.mountain-button,.mountain-mode-choices>.mountain-button,.scribble-tools>button,.scribble-idea,.scribble-next,.flag-draw-toggle,.coin-currency-toggle,.topic-feature-cta,.sano-reward,.sano-spin-button,.pill,.quiet,.continue-game,.companion-next,.step-prompt-next,.gate-continue,.nepal-discovery-next,.vowel-speaking-complete,.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-sc-action=shape-next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done],.mountain-button,.coin-earn,.parent-return-tile,.step-prompt-rest,.scribble-review-buttons>button,.melody-tabs>button,.number-pad-keys>button,.gate-keypad>button,.quiz-answer,.word-tile,.reply-choice,.answer-check,.grownup-corner,.coin-corner):not(:has(:is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.coin-extra-face,.scribble-action-face))):not(:is(:disabled,[aria-disabled=true],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:is(:disabled,[aria-disabled=true],.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]) *){
 --sano-surface-glow:var(--action-light,var(--answer-edge,var(--topic-edge,var(--entry-edge,var(--choice-edge,var(--tool-edge,var(--scribble-edge,var(--math-edge,var(--companion-halo,var(--language-glow,var(--surface-light,var(--tile-edge,var(--sano-glass-light,var(--polish-accent,#62b9f5))))))))))))));
 box-shadow:var(--sano-surface-shadow,inset 0 2px 1px #ffffffad,0 0 22px 4px color-mix(in srgb,var(--sano-surface-glow) 40%,transparent),0 8px 38px 6px color-mix(in srgb,var(--sano-surface-glow) 24%,transparent))!important;
}
/* Preserve surface shine without adding a second inset frame. */
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) :is(.topic-tile-face,.topic-entry-face,.game-tile-face,.companion-face,.challenge-face,.welcome-play-face,.maths-operation-face,.music-instrument-face,.music-option-face,.nepal-card-face,.talk-action-face,.talk-return-face,.store-option-face,.welcome-store-face,.melody-face,.coin-extra-face)::after{
 border-color:transparent!important;box-shadow:none!important;
}
body .corner-tools>:is(.grownup-corner,.coin-corner,.companion-switch),body .companion-switch>button{border-width:2px!important}
}
@media(forced-colors:none){
body #app .scribble-tools>button:has(>.scribble-action-face){border:0!important;background:transparent!important;box-shadow:none!important}
}

/* Onward controls own one outer surface even while disabled or wrapped in a pulse. */
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.gate-continue,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-sc-action=shape-next],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done]):has(:is(.game-tile-face,.challenge-face,.scribble-action-face)) :is(.game-tile-face,.challenge-face,.scribble-action-face){border:0!important;box-shadow:none!important;background:transparent!important;border-radius:inherit!important;color:inherit!important;animation:none!important}
/* Navigation keeps a quiet edge while activity controls retain their backlight.
   This inherited shadow also reaches nested button faces without changing motion. */
@media(forced-colors:none){
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.song-back,.mountain-back,.parent-return-tile,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back]){
 --action-light:#db3f53;--sano-surface-glow:var(--action-light);
 --sano-surface-shadow:inset 0 1px 0 #ffffff80,0 2px 0 #b72d4326,0 0 20px 3px color-mix(in srgb,var(--action-light) 32%,transparent);
}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.song-back,.mountain-back,.parent-return-tile,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back]):not(:has(.game-tile-face,.talk-return-face,.talk-action-face,.topic-tile-face,.topic-entry-face,.challenge-face)){
 box-shadow:var(--sano-surface-shadow)!important;
}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.song-back,.mountain-back,.parent-return-tile,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back]) :is(.challenge-halo,.topic-tile-halo,.web-entry-halo){
 opacity:.12!important;
}
body #app .learning-course-control .pill[data-action=course-choice]{
 --sano-surface-shadow:inset 0 2px 1px #ffffffa6,0 7px 12px -5px #24416d26,0 0 18px 1px #4c9fea26;
}
body #app .learning-course-control .pill[data-action=course-choice]::before{opacity:.12}
}

/* Sano stylesheet: usability-repair.css */
/* One visible tile surface; its light follows its own colour. */
@media(forced-colors:none){
 body #app .welcome-play,
 body #app .welcome-play>.welcome-play-pulse{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
 body #app .welcome-play::before,body #app .welcome-play::after{content:none!important}
 body #app .welcome-play-face{--action-light:#f05b9c}
 body .corner-tools>.coin-corner{--action-light:#ffc43d;--sano-surface-shadow:inset 0 1px 1px #ffffff90,0 0 14px 2px #ffc43d55,0 0 24px 4px #ffcf4926;border-width:2px!important}
 body .corner-tools>.grownup-corner{--action-light:#91caff;--sano-surface-shadow:inset 0 1px 1px #ffffff90,0 0 14px 2px #91caff40,0 0 24px 4px #91caff20;border-width:2px!important}
 body :is(.coin-backdrop,#overlay) .coin-buy:not(.coin-earn){--action-light:#f5bd39;background:linear-gradient(145deg,#ffe9a1,#ffd45d 58%,#efb82f)!important;color:#65400a!important}
 body :is(.coin-backdrop,#overlay) .coin-earn,
 body #sano-daily-rewards .sano-watch{--action-light:#ef334f;--sano-surface-shadow:inset 0 2px 1px #ffffff90,0 0 22px 4px #ef334f66,0 8px 38px 6px #ef334f3d;background:linear-gradient(145deg,#ff8b97,#f5415e 58%,#d82241)!important;color:#fff!important;text-shadow:0 1px #a71b36;box-shadow:var(--sano-surface-shadow)!important}
 body :is(.coin-backdrop,#overlay) .coin-earn:disabled,
 body #sano-daily-rewards .sano-watch:disabled{opacity:1;cursor:default}
 body :is(.coin-backdrop,#overlay) .coin-earn .coin-earn-status{flex-basis:100%;color:#fff;font-size:13px;line-height:1.4}
 body #app .companion-choice .shared-topic-back{min-height:44px;padding:10px 14px;border:3px solid #fff;border-radius:19px;background:linear-gradient(145deg,#ff91b5,#e6487f);color:#fff;font:850 15px/1.2 var(--joy-font);animation:none!important;transform:none!important}
}
/* The opening reward prompt keeps Watch & Earn compact below the daily choices. */
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{height:auto;min-height:96px;aspect-ratio:auto;padding:35px 12px 6px;gap:2px}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile>.watch-earn-label{font-size:clamp(24px,6vw,26px);line-height:1.15;font-weight:950}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile>.watch-earn-status{align-self:end;font-size:12px;line-height:1.25}
/* The same top-left Back and centred logo remain visible on activity pages. */
body #app>.simple-shell.foundations-shell>.simple-header,
body #app .mountain-game-header{
 position:fixed;top:var(--toolbar-height);left:0;right:0;z-index:45;
 display:grid;grid-template-columns:minmax(75px,1fr) auto minmax(75px,1fr);align-items:center;gap:8px;
 width:min(780px,100%);height:74px;min-height:74px;box-sizing:border-box;margin:0 auto;
 padding:8px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));
 background:transparent;border:0;box-shadow:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
 transform:none;translate:none;
}
/* Keep fixed controls inside the full viewport. Moving their scrolling ancestor
   below them clips the controls on WebKit during compositing and momentum. */
body #app:has(>.foundations-shell),
body #app:has(.mountain-game-header){
 top:0;height:100%;height:100dvh;
 padding-top:calc(var(--toolbar-height) + 74px);scroll-padding-top:calc(var(--toolbar-height) + 90px);overscroll-behavior-y:contain;
}
body #app>.foundations-shell,
body #app:has(.mountain-game-header)>#adventure-root{min-height:calc(100dvh - var(--toolbar-height) - 74px + 1px)}
body #app .foundations-shell{padding-top:8px}
body #app .mountain-game{padding-top:8px}
body #app .mountain-game-header>.mountain-back{justify-self:start;position:static;min-width:0;min-height:44px;padding:10px 14px;font-size:15px;border-radius:19px}
body #app .mountain-game-header>.brand{grid-column:2;justify-self:center;display:block;width:114px;padding:0;background:transparent;border:0;box-shadow:none;color:#0867ed}
body #app .mountain-game-header>.brand .sano-wordmark{display:block;width:100%;height:auto;max-height:44px}
body #app .foundations-shell:has(#songs-root)> :where(.sano-page-scroll) >.learning-bottom-nav,
body #app .foundations-shell:has(.home-landing)> :where(.sano-page-scroll) >.learning-bottom-nav,
body #app .foundations-shell:has(.music-area)> :where(.sano-page-scroll) >.learning-bottom-nav,
body #app .foundations-shell:has(#knowledge-challenge-root)> :where(.sano-page-scroll) >.learning-bottom-nav{display:none}
/* The header never enters the elastic scroll surface. Only the body moves. */
body #overlay>.backdrop>.parent-modal:has(>.sano-sheet-scroll),
body>.coin-backdrop>.coin-dialog:has(>.coin-sheet-scroll){
 display:flex;flex-direction:column;overflow:hidden!important;min-height:0;max-height:75vh;max-height:75dvh;padding:0!important;
}
body #overlay>.backdrop>.parent-modal>.sano-sheet-header,
body>.coin-backdrop>.coin-dialog>.coin-dialog-top{
 position:relative!important;top:auto!important;flex:0 0 auto;z-index:10;margin:0!important;
 padding-inline:max(22px,env(safe-area-inset-left)) max(22px,env(safe-area-inset-right));
 background:transparent!important;border:0!important;box-shadow:none!important;
 backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
body #overlay>.backdrop>.parent-modal>.sano-sheet-header{padding-bottom:12px}
body>.coin-backdrop>.coin-dialog>.coin-dialog-top{min-height:96px;padding-top:36px;padding-bottom:16px}
body>.coin-backdrop>.coin-dialog>.coin-dialog-top{display:grid;grid-template-columns:minmax(64px,1fr) auto minmax(64px,1fr);align-items:center;gap:8px}
body>.coin-backdrop>.coin-dialog>.coin-dialog-top>.coin-sheet-back{justify-self:start;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:3px solid #fff;border-radius:19px;background:linear-gradient(145deg,#ff91b5,#e6487f);color:#fff;font:850 15px/1.2 var(--joy-font);box-shadow:0 0 18px #ed85b447;animation:none!important;transform:none!important}
body>.coin-backdrop>.coin-dialog>.coin-dialog-top>.coin-sheet-brand{grid-column:2;justify-self:center;width:100px;min-width:0}
body>.coin-backdrop>.coin-dialog>.coin-dialog-top>.coin-header-tools{grid-column:3;justify-self:end;min-width:0}
body>.coin-backdrop[data-coin-view=access]>.coin-dialog>.coin-dialog-top{min-height:74px;padding:8px 0 14px}
body>.coin-backdrop[data-coin-view=access]>.coin-dialog>.coin-sheet-scroll{padding:8px 12px 24px}
body #overlay>.backdrop>.parent-modal>.sano-sheet-scroll,
body>.coin-backdrop>.coin-dialog>.coin-sheet-scroll{
 flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:scroll;
 overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
 padding:6px max(22px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));
 background:transparent;scroll-padding-top:16px;
}
body #overlay .parent-modal .sano-sheet-scroll>:first-child{margin-top:0}
/* Fade content into the stationary heading instead of revealing the square
   edge of the nested scroll viewport. Keep the first row below the fade. */
@media(forced-colors:none){
body #overlay>.backdrop>.parent-modal>.sano-sheet-scroll,
body>.coin-backdrop:not([data-coin-view=access])>.coin-dialog>.coin-sheet-scroll{
 padding-top:28px;
 mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
}
}
body #overlay .parent-modal .sano-sheet-scroll:has(>.family-gate-loading){min-height:180px}
/* The invitation uses the established blue pulse; category titles stay out. */
#app .songs-heading .songs-invitation{color:#0666ef;font-weight:900;font-size:clamp(21px,5.3vw,28px);line-height:1.4;text-shadow:0 1px 0 #fff,0 0 16px #7fc9ff55}
#app .song-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:430px;margin-inline:auto}
#app .song-controls>.song-replay{grid-column:1}
#app .song-controls>.song-play{grid-column:2}
@keyframes sanoInvitationPulse{0%,100%{scale:1}50%{scale:1.025}}
@media(prefers-reduced-motion:no-preference){body:not([data-motion=reduce]) #app .songs-invitation{animation:sanoInvitationPulse 2.4s ease-in-out infinite}}
@media(forced-colors:active){body #app .simple-header,body #app .mountain-game-header,body #overlay .parent-modal>.sano-sheet-header,body>.coin-backdrop>.coin-dialog>.coin-dialog-top{background:Canvas!important;backdrop-filter:none;-webkit-backdrop-filter:none}}
#app .song-stage h2{color:#0666ef;font-size:clamp(25px,6vw,34px);font-weight:950;text-shadow:0 1px 0 #fff,0 0 16px #7fc9ff44}
#app .song-card-art:is(.song-icon-cow,.song-icon-cat,.song-icon-rooster,.song-icon-bridge,.song-icon-boat,.song-icon-bus,.song-icon-body){font-size:clamp(48px,12vw,72px);line-height:1.15}
#app .song-card-art>svg{width:88px;height:88px}
#app .song-card-art:has(svg){font-size:inherit}
#app .song-stage .song-companion{height:150px;width:120px}
#app .songs-heading:empty{display:none}

/* Feather the glass behind the controls. Blurring the header box itself leaves
   a hard horizontal seam as colourful content passes under it. */
@media(forced-colors:none){
body #app>.simple-shell.foundations-shell>.simple-header,
body #app .mountain-game-header,
body #overlay>.backdrop>.parent-modal>.sano-sheet-header,
body>.coin-backdrop>.coin-dialog>.coin-dialog-top{
 isolation:isolate;overflow:visible;background:transparent!important;border:0!important;border-radius:0;outline:0;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body #app .foundations-shell>.simple-header::before,
body #app .mountain-game-header::before,
body #overlay>.backdrop>.parent-modal>.sano-sheet-header::before,
body>.coin-backdrop>.coin-dialog>.coin-dialog-top::before{
 content:''!important;display:block!important;position:absolute;inset:-24px -36px -40px;z-index:0;pointer-events:none;
 background:transparent;border:0;outline:0;box-shadow:none;
 backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
 mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 48%,#000b 65%,#0004 82%,transparent),linear-gradient(to right,transparent,#000 44px,#000 calc(100% - 44px),transparent);
 mask-composite:intersect;
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 48%,#000b 65%,#0004 82%,transparent),linear-gradient(to right,transparent,#000 44px,#000 calc(100% - 44px),transparent);
 -webkit-mask-composite:source-in;
}
body #app .foundations-shell>.simple-header>*,
body #app .mountain-game-header>*,
body #overlay>.backdrop>.parent-modal>.sano-sheet-header>*,
body>.coin-backdrop>.coin-dialog>.coin-dialog-top>*{position:relative;z-index:1;filter:none}
/* The in-activity top-up is just two choices floating over the blurred page. */
body>.coin-backdrop[data-coin-view=access]:not([data-talk-view=true]){
 background:transparent!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;
}
body>.coin-backdrop[data-coin-view=access]>.coin-dialog,
body>.coin-backdrop[data-coin-view=access]>.coin-dialog>.coin-sheet-scroll{
 background:transparent!important;border:0!important;outline:0;box-shadow:none!important;border-radius:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
}
body>.coin-backdrop[data-coin-view=access]>.coin-dialog>.coin-dialog-top{display:none!important}
/* A two-choice prompt has no sheet viewport. Clipping the buttons' soft glow
   made an otherwise transparent wrapper look like a rectangular panel. */
body>.coin-backdrop[data-coin-view=access]>.coin-dialog,
body>.coin-backdrop[data-coin-view=access]>.coin-dialog>.coin-sheet-scroll{
 overflow:visible!important;max-height:none;contain:none;clip-path:none;
}
body>.coin-backdrop[data-coin-view=access]>.coin-dialog{display:block}
body>.coin-backdrop[data-coin-view=access]>.coin-dialog>.coin-sheet-scroll{padding:0}
body:has(>.coin-backdrop[data-coin-view=access]) #app>.corner-tools,
body:has(>.coin-backdrop[data-coin-view=access]) #app .simple-header,
body:has(>.coin-backdrop[data-coin-view=access]) #app .mountain-game-header,
body:has(>.coin-backdrop[data-coin-view=access]) #app .learning-course-control{visibility:hidden}
@media(forced-colors:active){
body>.coin-backdrop[data-coin-view=access]>.coin-dialog{border:0;box-shadow:none}
}
@media(prefers-reduced-transparency:reduce){
body #app .foundations-shell>.simple-header::before,
body #app .mountain-game-header::before,
body #overlay>.backdrop>.parent-modal>.sano-sheet-header::before,
body>.coin-backdrop>.coin-dialog>.coin-dialog-top::before{display:none!important}
}



/* Songs sits in the middle beneath the four square Home choices. */
#app .home-landing .topic-category-tile.topic-category-songs{grid-column:1/-1;width:min(400px,100%);justify-self:center;aspect-ratio:auto}
#app .home-landing .topic-category-tile.topic-category-songs>.topic-tile-face{position:relative;inset:auto;flex-direction:row;height:auto;min-height:112px;padding:14px 18px;gap:clamp(12px,3vw,20px)}
#app .home-landing .topic-category-tile.topic-category-songs .topic-tile-picture{flex:0 0 auto;width:clamp(76px,20vw,96px);height:clamp(76px,20vw,96px)}
#app .home-landing .topic-category-tile.topic-category-songs .topic-tile-label{flex:1 1 0;min-width:0;width:auto}
/* Spelling keeps the same soft tiles and generous touch targets as Learn. */
.spelling-hub-intro{max-width:660px;margin:0 auto 24px;text-align:center;color:#24486f}
.spelling-hub-intro>p:first-child{font-size:clamp(17px,4vw,21px);font-weight:800;line-height:1.5}
.spelling-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.spelling-levels button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:13px 8px;min-height:90px;border:3px solid #fff;border-radius:24px;background:linear-gradient(145deg,#e6f6ff,#a9d9ff);color:#245478;font:800 15px/1.3 var(--joy-font);box-shadow:0 5px 17px #81bce22e;cursor:pointer}
.spelling-levels button>span{font-size:27px}
.spelling-levels button[aria-pressed=true]{background:linear-gradient(145deg,#e1fff0,#8ee2b7);box-shadow:0 0 0 2px #46b991,0 7px 24px #61cdab38;color:#185e43}
.spelling-hub-help{font-size:15px;line-height:1.7;margin:12px 4px;color:#456683}
.spelling-vowels-link{min-height:44px;padding:8px 18px;background:#fff3cb;border:2px solid #fff;border-radius:20px;color:#755425;font:800 15px/1.4 var(--joy-font);cursor:pointer}
.simple-topic-picker[data-topic=spelling] .world-entry-picture{display:grid;place-items:center;width:110px;height:98px;margin:4px auto 8px}
.simple-topic-picker[data-topic=spelling] .world-entry-picture :is(img,svg){max-width:100%;max-height:98px;object-fit:contain}
.simple-topic-picker[data-topic=spelling] .learning-entry-label{font-size:clamp(23px,5vw,33px);line-height:1.6;overflow-wrap:anywhere}
.spelling-word-matches{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;width:100%}
.spelling-word-matches>button{flex:1 1 140px;max-width:280px;min-height:70px;font-size:clamp(24px,6vw,34px);overflow-wrap:anywhere}
.spelling-word-matches>button:nth-child(2){background:linear-gradient(145deg,#d9f2ff,#91cefa);color:#245f91;border-bottom-color:#73b4dd}
.spelling-word-matches>button:nth-child(3){background:linear-gradient(145deg,#d9ffed,#a0e8c8);color:#175a43;border-bottom-color:#43b98c}
.spelling-match h2{font-size:clamp(25px,5vw,34px);text-align:center;margin:0}
.spelling-practice :is(button,[tabindex]):focus-visible,.spelling-hub-intro button:focus-visible{outline:3px solid #1669bf;outline-offset:4px}
@media(max-width:420px){.spelling-levels{gap:8px}.spelling-levels button{font-size:13px;padding:12px 5px}.spelling-word-matches{gap:10px}}
@media(forced-colors:active){.spelling-levels button[aria-pressed=true]{outline:3px solid Highlight}.spelling-word-matches>button,.spelling-levels button,.spelling-vowels-link{background:ButtonFace;color:ButtonText;border:2px solid ButtonText}}

/* Keep the game exit as recognisable as Home and Coins. The earlier games
   layout stripped its surface to a small red text link. Preserve the grid
   placement and quiet motion while restoring its ordinary Back affordance. */
body #app #adventure-root .mountain-game-header>button.mountain-button.mountain-back{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;padding:10px 12px!important;
 background:linear-gradient(145deg,#ff91b5,#e6487f)!important;
 border:3px solid #fff!important;border-radius:19px;color:#fff!important;
 font:850 15px/1.2 var(--joy-font);
 --sano-surface-shadow:inset 0 1px 0 #ffffff80,0 2px 0 #b72d4326,0 0 10px #db3f531f;
 box-shadow:var(--sano-surface-shadow)!important;
 animation:none!important;transform:none!important;translate:none!important;
}

/* Compact in-game coin choices, with equally readable primary labels. */
body>.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area>.coin-buy{width:min(310px,100%);max-width:310px;min-height:76px;height:auto;aspect-ratio:auto;padding:12px 16px;margin:0 auto;font:900 clamp(22px,5.6vw,26px)/1.2 var(--joy-font)}
body>.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area>.watch-earn-tile{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:12px 18px 9px;min-height:76px;grid-template-rows:none}
body>.coin-backdrop[data-coin-view=access] .coin-dialog .watch-earn-tile>.watch-earn-label{font:inherit;line-height:1.2;align-self:center}
body>.coin-backdrop[data-coin-view=access] .coin-dialog .watch-earn-tile>.watch-earn-status{font:750 12px/1.25 var(--joy-font);align-self:center;margin:0}

/* One compact Watch & Earn treatment in both Coins and access prompts. */
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(310px,100%);max-width:310px;min-height:76px;height:auto;aspect-ratio:auto;padding:12px 18px 9px;gap:3px;overflow:visible}
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile>.watch-earn-label{font:900 clamp(22px,5.6vw,26px)/1.2 var(--joy-font);align-self:center}
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile>.watch-earn-status{font:750 12px/1.25 var(--joy-font);align-self:center;margin:0;text-align:center}
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile:after{content:"";position:absolute;inset:3px 3px 45%;border-radius:18px 18px 50% 50%;background:linear-gradient(165deg,#ffffff66,#ffffff08);pointer-events:none}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-entry{position:relative;isolation:isolate;overflow:visible;border:2px solid #fff;border-radius:23px;transition:filter .2s,opacity .2s,box-shadow .2s}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-spin{color:#735008;background:linear-gradient(145deg,#fff8c7 0%,#f8d260 37%,#e7ac28 65%,#ffed9a 100%);box-shadow:inset 0 2px 2px #fffbdc,0 5px 0 #c18b25,0 8px 16px #bd8a2522}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-checkin{color:#07583e;background:linear-gradient(145deg,#d9ffe8,#79dcaa 40%,#33ba83 70%,#acf4c7);box-shadow:inset 0 2px 2px #eaffef,0 5px 0 #25956a,0 8px 16px #25956a22}
body>.coin-backdrop .coin-dialog .coin-daily-entry:before{content:"";position:absolute;inset:3px 3px 52%;border-radius:20px 20px 60% 40%;background:linear-gradient(160deg,#fff9,#fff0);pointer-events:none;z-index:-1}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-wheel{background:repeating-conic-gradient(#fff0a7 0deg 30deg,#e4ac2d 30deg 60deg);border:4px solid #bb8218;box-shadow:inset 0 0 0 2px #fff3b0,0 3px 7px #8b5d2844}
body>.coin-backdrop .coin-dialog .coin-daily-wheel>i{background:linear-gradient(#fff6c8,#dca62a);border-color:#a67217}
body>.coin-backdrop .coin-dialog .coin-daily-checkin .coin-daily-art{filter:drop-shadow(0 2px 0 #ffffff88);color:#08754e}
body>.coin-backdrop .coin-dialog .coin-daily-count{position:absolute;right:-7px;top:-8px;display:grid;place-items:center;width:25px;height:25px;border:2px solid #fff;border-radius:50%;background:#f84461;color:white;font:900 14px/1 var(--joy-font);box-shadow:0 3px 7px #bc365b33}
body>.coin-backdrop .coin-dialog .coin-daily-count[hidden]{display:none}
body>.coin-backdrop .coin-dialog .coin-daily-entry.is-claimed{opacity:.58;filter:saturate(.38)}
body>.coin-backdrop .coin-dialog .coin-daily-entry.is-claimed>:is(.coin-daily-art,strong){filter:blur(.7px)}
body>.coin-backdrop .coin-dialog .coin-daily-entry.answer-wrong{animation:daily-claimed-shake .38s ease-out;box-shadow:0 0 18px 6px #ff355f77;filter:none}
@keyframes daily-claimed-shake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){body>.coin-backdrop .coin-dialog .coin-daily-entry.answer-wrong{animation:none}}
body[data-motion=reduce]>.coin-backdrop .coin-dialog .coin-daily-entry.answer-wrong{animation:none}
/* Opening rewards reuse the same colour, count and used-state language. */
body #sano-daily-rewards .sano-reward.sano-spin{background:linear-gradient(145deg,#fff8c7,#f8d260 37%,#e7ac28 65%,#ffed9a);color:#735008}
body #sano-daily-rewards .sano-reward.sano-checkin{background:linear-gradient(145deg,#d9ffe8,#79dcaa 40%,#33ba83 70%,#acf4c7);color:#07583e}
/* Availability belongs to the icon, never the tile's animated sheen layer. */
body #sano-daily-rewards .sano-reward[data-available=true]>.sano-icon::after{content:"1";position:absolute;inset:-5px -6px auto auto;display:grid;place-items:center;box-sizing:border-box;width:21px;height:21px;border:2px solid #fff;border-radius:50%;background:#f84461;color:#fff;font:900 12px/1 var(--joy-font);box-shadow:0 2px 5px #bc365b33;z-index:2;animation:none;transform:none;opacity:1;pointer-events:none}
body #sano-daily-rewards .sano-reward[data-claimed=true]{opacity:.58;filter:saturate(.38)}
body #sano-daily-rewards .sano-reward[data-claimed=true] .sano-icon{filter:blur(.7px)}
body #sano-daily-rewards .sano-reward.answer-wrong{animation:daily-claimed-shake .38s ease-out;box-shadow:0 0 18px 6px #ff355f77;filter:none}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{min-height:76px;padding:12px 18px 9px;gap:3px}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile>.watch-earn-status{align-self:center;text-align:center}
@media(prefers-reduced-motion:reduce){body #sano-daily-rewards .sano-reward.answer-wrong{animation:none}}
body[data-motion=reduce] #sano-daily-rewards .sano-reward.answer-wrong{animation:none}

/* Sano stylesheet: release-compat.css */

/* A shared two-pass spelling surface: colour identifies actions, words keep room. */
.spelling-practice{--spelling-ink:#24486f;display:flex;flex-direction:column;align-items:center;gap:18px;width:min(100%,660px);margin:0 auto;padding:10px 8px 24px;box-sizing:border-box;color:var(--spelling-ink);isolation:isolate}.spelling-heading{display:flex;align-items:center;gap:12px}.spelling-heading h2{font-size:clamp(25px,5vw,36px);margin:0;line-height:1.25}.spelling-pass{padding:7px 12px;border:2px solid white;border-radius:19px;background:#e0efff;font-size:16px;font-weight:900;color:#295f8a}.spelling-model{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;box-sizing:border-box;border:3px solid white;border-radius:32px;padding:16px;background:linear-gradient(145deg,#e2f3ff,#fff0f7);box-shadow:0 7px 0 #8bc5e342,0 10px 28px #76bde126}.spelling-picture{height:118px;width:136px;display:grid;place-items:center}.spelling-picture svg,.spelling-picture img{max-width:100%;max-height:118px;object-fit:contain}.spelling-model-word{margin:0;font-size:clamp(32px,7vw,51px);font-weight:900;line-height:1.5;overflow-wrap:anywhere;text-align:center;color:#1b6096;letter-spacing:.035em}.spelling-model-word[lang^=ne]{font-size:clamp(37px,8vw,54px);letter-spacing:normal}.spelling-model-word.is-memory{color:#9ebdd2;letter-spacing:.22em}.spelling-instruction{margin:0;font-size:16px;font-weight:750;line-height:1.5;text-align:center}.spelling-stage-label{margin:0;min-height:24px;font-size:17px;line-height:1.4;font-weight:850;text-align:center;color:#3c6686}.spelling-slots{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;width:100%}.spelling-slot{display:grid;place-items:center;min-width:44px;min-height:62px;padding:4px 8px;border:2px solid #aacfe7;border-bottom:5px solid #84b3d2;border-radius:19px;box-sizing:border-box;background:#f2f9ff;font-size:32px;font-weight:900;line-height:1.55;color:#6396b6}.spelling-slot.is-next{border-color:#ed99c0;background:#fff0f7;box-shadow:0 0 20px #eea5cf46}.spelling-slot.is-filled{color:#117a4e;background:linear-gradient(145deg,#d6ffea,#8ce0b6);border-color:#f2fff8;border-bottom-color:#4cb881;box-shadow:0 0 22px #77d8aa38}.spelling-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;width:min(100%,410px);padding:5px;box-sizing:border-box}.spelling-letter{display:grid;place-items:center;min-width:0;min-height:94px;padding:12px;border:3px solid white;border-bottom:6px solid #73b4dd;border-radius:28px;background:linear-gradient(145deg,#d9f2ff,#91cefa);box-shadow:0 8px 22px #63b3e137,0 0 30px #7fcdf334;color:#245f91;font:inherit;font-size:40px;font-weight:900;line-height:1.5;cursor:pointer;touch-action:manipulation;transition:transform .12s,box-shadow .12s}.spelling-letter:nth-child(2){background:linear-gradient(145deg,#ffe3f0,#f6aad2);border-bottom-color:#db7aaa;color:#933e6d;box-shadow:0 8px 22px #e98db735,0 0 30px #edacd130}.spelling-letter:nth-child(3){background:linear-gradient(145deg,#d9ffed,#a0e8c8);border-bottom-color:#43b98c;color:#175a43;box-shadow:0 8px 22px #43b98c35,0 0 30px #71d5a932}.spelling-letter.is-hint{outline:3px solid #34b88b;outline-offset:4px;box-shadow:0 0 26px #48d39c73}.spelling-letter.is-wrong{background:linear-gradient(145deg,#ffb3bf,#ff6c85);border-color:#ffd3dd;border-bottom-color:#d63258;box-shadow:0 0 24px #ec3b5f80;color:#852342;animation:spelling-retry .43s ease-out}.spelling-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:58px;padding:12px 18px;border:3px solid white;border-bottom:5px solid #df7faa;border-radius:25px;background:linear-gradient(145deg,#ffe5f1,#f7b8d9);box-shadow:0 7px 22px #e493bd35,0 0 27px #f0bad438;color:#83385f;font:inherit;font-size:18px;font-weight:850;line-height:1.35;text-align:center;cursor:pointer;touch-action:manipulation}.spelling-hear>span{display:block;width:34px;height:34px;flex:none}.spelling-hear svg{width:100%;height:100%}.spelling-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;width:100%}.spelling-tools>.spelling-action{flex:1;min-width:180px}.spelling-hint{background:linear-gradient(145deg,#fff3c4,#ffd97b);border-bottom-color:#d6af4d;color:#775523;box-shadow:0 7px 22px #dfba5a35,0 0 27px #f4d78038}.spelling-next{width:min(100%,430px);background:linear-gradient(145deg,#7ee6b7,#26b581);border-bottom-color:#168456;color:#fff;box-shadow:0 7px 24px #43c48f4a,0 0 33px #6ddda940;animation:spelling-next-glow 3s ease-in-out infinite}.spelling-success{display:flex;align-items:center;justify-content:center;gap:13px;font-size:22px;font-weight:900;line-height:1.4;color:#128051;margin:0;text-align:center}.spelling-star{font-size:44px;color:#ffc72b;text-shadow:0 2px 0 #d39415,0 0 15px #ffd14fa3}.spelling-audio-note{font-size:13px;line-height:1.5;text-align:center;color:#5d7488;margin:0}.spelling-practice button:active:not(:disabled){transform:translateY(3px) scale(.97);animation:none}.spelling-practice button:disabled{opacity:.5;cursor:default;animation:none}.spelling-practice button:focus-visible{outline:3px solid #175fd3;outline-offset:4px}@keyframes spelling-retry{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}@keyframes spelling-next-glow{0%,100%{transform:scale(1);box-shadow:0 7px 24px #43c48f4a,0 0 33px #6ddda940}50%{transform:scale(1.025);box-shadow:0 9px 26px #43c48f65,0 0 38px #6ddda95a}}@media(max-width:380px){.spelling-practice{gap:14px}.spelling-choices{gap:10px}.spelling-letter{min-height:83px;padding:8px;font-size:36px}.spelling-slot{min-width:37px;min-height:55px;padding:3px 6px;font-size:28px}.spelling-slots{gap:6px}.spelling-picture{height:99px}.spelling-picture svg,.spelling-picture img{max-height:99px}}@media(prefers-reduced-motion:reduce){.spelling-practice *{animation:none!important;transition:none!important}}body[data-motion=reduce] .spelling-practice *{animation:none!important;transition:none!important}body[data-page-hidden=true] .spelling-practice *{animation-play-state:paused!important}

.spelling-practice [lang|=ne]{font-family:SanoDevanagariBold,"Kohinoor Devanagari",sans-serif;letter-spacing:normal}.spelling-practice [lang|=en]{font-family:var(--joy-font),ui-rounded,sans-serif}

.spelling-star{display:inline-flex;flex:none;width:44px;height:46px;filter:drop-shadow(0 0 10px #ffd14f80)}

/* Tier choices remain roomy; sentence words wrap without clipping or tiny type. */
.spelling-tier{margin:0;color:#6b458e;background:#f0e6ff;border:2px solid #fff;border-radius:18px;padding:5px 16px;font-size:16px;font-weight:900}.spelling-choices[data-choice-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:330px}.spelling-choices[data-choice-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:450px}.spelling-letter:nth-child(4){background:linear-gradient(145deg,#fff3c5,#ffdd86);border-bottom-color:#d9b655;color:#795819;box-shadow:0 8px 22px #ddbf6135,0 0 30px #e7c76b32}.is-sentence .spelling-model-word{font-size:clamp(27px,5.6vw,39px);letter-spacing:normal}.is-sentence .spelling-slot{min-width:60px;max-width:100%;font-size:clamp(20px,4.5vw,29px);padding:7px 12px;overflow-wrap:anywhere}.is-sentence .spelling-letter{font-size:clamp(22px,5vw,32px);padding:9px;overflow-wrap:anywhere}.is-sentence .spelling-slots{gap:8px}

/* Sentence entries wrap naturally in the same topic tiles, without covering locks. */
.learning-entry-label[data-category=spelling]{font-size:clamp(21px,3.5vw,30px);line-height:1.45;white-space:normal;overflow-wrap:normal;text-align:center}

/* A quiet word picker: one instruction and three compact, finger-sized groups. */
.spelling-hub-intro.spelling-hub-simple{max-width:660px;margin:0 auto 18px}
.spelling-hub-simple>p:first-child{margin:0 0 12px;font-size:clamp(19px,4vw,24px)}
.spelling-hub-simple .spelling-levels{gap:8px;margin:0;align-items:stretch}
.spelling-hub-simple .spelling-levels button{min-height:52px;padding:9px 8px;border-radius:18px;font-size:14px;line-height:1.35;justify-content:center}
@media(max-width:360px){.spelling-hub-simple .spelling-levels{gap:6px}.spelling-hub-simple .spelling-levels button{padding:8px 5px;font-size:12px}}

/* Games uses the same compact Back and Sano wordmark as the learning header. */
body #app .mountain-game-header>.mountain-back{min-width:0;min-height:44px;padding:10px 14px;font:850 15px/1.2 var(--joy-font);border-radius:19px}
body #app .mountain-game-header>.brand{width:clamp(96px,22vw,114px);min-width:0}
body #app .mountain-game-header>.brand .sano-wordmark{width:100%;height:auto;max-height:44px}

/* Identify Free draw by its own violet colour, including its raised face. */
#app .scribble-mode-grid .scribble-choice[data-mode=free]{--scribble-fill:#c9b4fa;--scribble-edge:#9370d1;--scribble-ink:#503178;--action-light:#b494ed}

/* Match the paper-and-pencil activity artwork and lift the flag into its tile. */
#app .scribble-mode-grid :is([data-mode=nepal],[data-mode=flag]) .scribble-choice-picture{display:grid;place-items:center;padding:0;overflow:visible}
#app .scribble-mode-grid [data-mode=nepal] .scribble-choice-picture{width:110px;height:104px}
#app .scribble-mode-grid [data-mode=flag] .scribble-choice-picture{width:160px;height:160px}
#app .scribble-mode-grid .scribble-nepal-art{display:block;width:100%;height:100%;max-height:none;transform:translateY(-6px)}

/* The palette becomes available only while Draw is explicitly selected. */
#app .scribble-colour-palette[data-locked=true],#app .flag-palette[data-locked=true]{opacity:.46;filter:blur(2px);pointer-events:none;user-select:none}
#app .scribble-colour-palette[data-locked=false],#app .flag-palette[data-locked=false]{opacity:1;filter:none}
#app :is(.scribble-colour-palette,.flag-palette)[data-locked=true] button{cursor:default}
@media(forced-colors:active){#app .scribble-colour-palette[data-locked=true],#app .flag-palette[data-locked=true]{filter:none;opacity:.55}}

/* Center the instrument art inside its existing tile at every viewport. */
#app .music-area .music-instrument-grid .music-instrument-face{
 grid-template-rows:minmax(0,1fr);
 place-items:center;
 gap:0;
 padding:clamp(12px,2.4vw,18px);
}
#app .music-area .music-instrument-grid .music-instrument-picture{
 justify-self:center;
 align-self:center;
 margin:auto;
}

/* Optional daily gifts remain available from the Coins sheet. */
.coin-backdrop .coin-dialog .coin-area .coin-daily-entries{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:14px;
 width:min(310px,100%);
 margin:4px auto 12px;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-entry{
 box-sizing:border-box;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:10px;
 aspect-ratio:1;
 width:100%;
 min-width:0;
 padding:12px 9px;
 border:3px solid #fff;
 border-bottom:6px solid #71bca2;
 border-radius:23px;
 background:linear-gradient(150deg,#edfff5,#aee7cc);
 box-shadow:inset 0 2px 1px #ffffffb3,0 6px 12px #456d8b20;
 color:#205b48;
 font:inherit;
 cursor:pointer;
 touch-action:manipulation;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-spin{
 border-bottom-color:#79a9d8;
 background:linear-gradient(150deg,#eff8ff,#b9ddff);
 color:#245788;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-entry strong{
 font-size:clamp(14px,3.8vw,17px);
 line-height:1.25;
 text-align:center;
 white-space:normal;
 word-break:normal;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-art{
 position:relative;
 flex:none;
 display:grid;
 place-items:center;
 width:44px;
 height:44px;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-art>svg{display:block;width:100%;height:100%}
.coin-backdrop .coin-dialog .coin-area .coin-daily-wheel{
 width:46px;
 height:46px;
 border:3px solid #fff;
 border-radius:50%;
 background:conic-gradient(#ffcf59 0deg 60deg,#ff8fae 60deg 120deg,#9edbbc 120deg 180deg,#81c2f2 180deg 240deg,#bea1eb 240deg 300deg,#ffe08c 300deg 360deg);
 box-shadow:0 2px 5px #48678930;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-wheel::before{
 content:'';
 position:absolute;
 top:-6px;
 width:0;
 height:0;
 border-left:5px solid transparent;
 border-right:5px solid transparent;
 border-top:9px solid #315a83;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-wheel>i{
 width:11px;
 height:11px;
 border:2px solid #fff;
 border-radius:50%;
 background:#ffce51;
}
.coin-backdrop .coin-dialog .coin-area .coin-daily-entry:focus-visible{outline:3px solid #1264d2;outline-offset:4px}
.coin-backdrop .coin-dialog .coin-area .coin-daily-entry:disabled{opacity:.55;cursor:default}

/* Keep Back and Next together, with progression still gated by an answer. */
#app .maths-play .maths-question-nav{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:12px;
 width:min(380px,100%);
 margin:18px auto 0;
}
#app .maths-play .maths-question-nav>.maths-button{
 flex:1 1 0;
 min-width:0;
 max-width:calc((100% - 12px)/2);
 margin:0;
 padding-inline:12px;
}
#app .maths-play .maths-question-nav>.maths-back{display:block}
#app .maths-play .maths-controls:empty{display:none}
@media(forced-colors:active){
 .coin-backdrop .coin-dialog .coin-area .coin-daily-entry{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
 .coin-backdrop .coin-dialog .coin-area .coin-daily-wheel{border-color:ButtonText;background:Canvas}
 .coin-backdrop .coin-dialog .coin-area .coin-daily-wheel::before{border-top-color:ButtonText}
}

/* The same quiet red Watch & Earn tile appears in opening rewards and Coins. */
body #sano-daily-rewards .watch-earn-tile,
body :is(.coin-backdrop,#overlay) .coin-area .watch-earn-tile{
 position:relative;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-rows:1fr auto;align-items:center;justify-items:center;align-content:stretch;
 gap:4px;min-width:0;min-height:124px;padding:36px 10px 10px;
 border:3px solid #fff;border-bottom:5px solid #c52642;border-radius:23px;
 background:linear-gradient(145deg,#ff8897,#f3425e 60%,#d72341)!important;color:#fff!important;
 text-align:center;white-space:normal;animation:none!important;translate:none;transform:none;
 opacity:1;cursor:default;
}
body :is(.coin-backdrop,#overlay) .coin-area .watch-earn-tile{width:min(310px,100%);max-width:100%;margin:10px auto 14px}
body #sano-daily-rewards .watch-earn-tile::before,
body :is(.coin-backdrop,#overlay) .watch-earn-tile::before{display:none}
body .watch-earn-tile>.watch-earn-badge{
 position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;
 gap:3px;max-width:calc(100% - 16px);min-height:23px;padding:2px 7px 2px 3px;
 border:1px solid #fff5ba;border-radius:15px;background:#fff0ae;color:#754b09;
 font:900 12px/1.2 var(--joy-font);text-shadow:none;box-shadow:0 2px 4px #a0243025;
}
body .watch-earn-tile>.watch-earn-badge>svg{display:block;flex:none;width:21px;height:21px}
body .watch-earn-tile>.watch-earn-label{align-self:center;max-width:100%;font:850 clamp(16px,4vw,22px)/1.25 var(--joy-font);text-wrap:balance;overflow-wrap:normal}
body .watch-earn-tile>.watch-earn-status{align-self:end;max-width:100%;margin:0;font:750 12px/1.35 var(--joy-font);color:inherit;text-wrap:balance}
@media(min-width:700px){body .watch-earn-tile>.watch-earn-label{font-size:22px}}
@media(max-width:359px){
 body #sano-daily-rewards .watch-earn-tile{min-height:120px;padding-inline:6px}
 body .watch-earn-tile>.watch-earn-label{font-size:16px}
 body .watch-earn-tile>.watch-earn-status{font-size:11px}
}
@media(forced-colors:active){
 body #sano-daily-rewards .watch-earn-tile,
 body :is(.coin-backdrop,#overlay) .coin-area .watch-earn-tile{background:ButtonFace!important;color:ButtonText!important;box-shadow:none;border-color:ButtonText}
 body .watch-earn-tile>.watch-earn-badge{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}
}

/* One stable three-control footer for every arithmetic operation and task. */
body #app .maths-play .maths-question-nav{display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);align-items:center;gap:12px;width:min(440px,100%);margin:18px auto 0;padding:4px 0}
body #app .maths-play .maths-question-nav>.maths-button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;min-height:52px;padding:10px 8px;font-size:clamp(14px,3.4vw,17px);line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body #app .maths-play .maths-question-nav>.maths-hear-question{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 4px;background:#fff2d3;color:#665021;border-bottom-color:#e4c57e;font-size:12px}
body #app .maths-play .maths-hear-question>svg{display:block;width:24px;height:24px;overflow:visible}

/* Chrome stays outside the native elastic surface. Keep #app full-screen so
   WebKit never clips its fixed toolbar while a nested content pane scrolls. */
body #app:has(.sano-page-scroll,.sano-game-scroll){overflow:hidden!important;scroll-padding-top:0}
body #app>.simple-shell.foundations-shell{height:100%;max-height:100%;min-height:0!important;padding:0;overflow:visible}
body #app>.foundations-shell>.sano-page-scroll,
body #app>.sano-page-scroll,
body #app .sano-game-scroll{
 box-sizing:border-box;min-height:0!important;height:100%;max-height:100%;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;clip-path:inset(0);
 scroll-padding-top:16px;scroll-padding-bottom:max(24px,env(safe-area-inset-bottom));
}
/* Put the gutter inside the scrolling viewport so its edge cannot cut the
   rounded tile glow at the old shell padding boundary. */
body #app>.foundations-shell>.sano-page-scroll{padding:28px max(22px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}
body #app:has(.mountain-game-header)>#adventure-root{height:100%;max-height:100%;min-height:0!important;padding:0}
body #app .mountain-game{height:100%;max-height:100%;min-height:0!important;padding:0;overflow:visible}
body #app .sano-game-scroll{padding:28px max(22px,3vw,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(22px,3vw,env(safe-area-inset-left))}
/* Match Coins and Family: content fades into the stationary header. The
   first row sits below the fade; only the pane, never the chrome, scrolls. */
@media(forced-colors:none){
 body #app>.foundations-shell>.sano-page-scroll,body #app .sano-game-scroll{
  mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
 }
}
body #app .foundations-shell:has(#songs-root) .learning-bottom-nav,
body #app .foundations-shell:has(.home-landing) .learning-bottom-nav,
body #app .foundations-shell:has(.music-area) .learning-bottom-nav,
body #app .foundations-shell:has(#knowledge-challenge-root) .learning-bottom-nav{display:none}
/* Account, login and wallet sheets share the same stationary heading and
   clipped inner edge. Native bounce remains available inside each pane. */
body #overlay>.backdrop>.parent-modal>.sano-sheet-scroll,
body>.coin-backdrop:not([data-coin-view=access])>.coin-dialog>.coin-sheet-scroll{clip-path:inset(0);overscroll-behavior-y:contain}
/* Piano note letters belong directly on the key; the key itself supplies the
   red listening/green player feedback, without a second white tile frame. */
body #app .piano-play[data-instrument=piano] .piano-key>.game-tile-face{
 border:0!important;outline:0;box-shadow:none!important;background:transparent!important;
 border-radius:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body #app .piano-play[data-instrument=piano] .piano-key>.game-tile-face::before,
body #app .piano-play[data-instrument=piano] .piano-key>.game-tile-face::after{content:none!important}
/* Keep the two Learn columns close together at every screen width. The
   outer scrolling gutter still leaves room for each rounded tile's glow. */
body #app .learn-landing>.topic-learn-grid{gap:12px;justify-content:flex-start}
body #app .learn-landing .topic-learn-row{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
 justify-content:normal;align-content:start;
}

/* A compact, contained full-body image. The renderer animates the artwork
   inside this neutral button without a second moving control layer. */
#app .song-stage .song-performer{display:block;position:relative;width:140px;height:140px;min-width:0;min-height:0;max-width:100%;box-sizing:border-box;appearance:none;-webkit-appearance:none;margin:0 auto 2px;padding:0;border:0;border-radius:30px;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#app .song-stage .song-performer:focus-visible{outline:3px solid #8c65d7;outline-offset:2px}
#app .song-stage .song-performer .song-companion{display:block;position:absolute;inset:0;width:90%;height:90%;margin:auto;object-fit:contain;pointer-events:none}
#app .song-stage h2{margin:3px 0 9px}
#app .song-stage>.song-controls{margin:0 auto 8px}
#app .song-stage>.song-status:empty{display:none}
#app .song-stage>.song-status{margin:6px 0 10px}
#app .song-stage>.song-lyrics{margin-top:14px}
@media(prefers-reduced-motion:reduce){#app .song-stage .song-performer{cursor:default}}

/* The song already scrolls through the shared transparent edge fade. Do not
   blur the mascot a second time behind the stationary heading: WebKit can
   sample its bright clothes into a luminous strip as its head scrolls away. */
body #app>.foundations-shell:has(#songs-root .song-stage)>.simple-header{
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body #app>.foundations-shell:has(#songs-root .song-stage)>.simple-header::before{
 display:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
/* Keep the artwork on the page's pastel background. */
body #app .song-stage>.song-performer,
body #app .song-stage>.song-performer>.song-companion{
 background:transparent!important;box-shadow:none!important;filter:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}

/* Discovery Listen keeps its icon and label together within one tile. The
   wrapping action row may move a whole button, never split its contents. */
body #app .simple-learning-activity.is-discovery .discovery-stage .discovery-actions>button.trace-listen,
body #app .discovery-controls>button.trace-listen{
 display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center;justify-content:center;gap:10px;box-sizing:border-box;
 flex:1 1 132px;min-inline-size:max-content;max-inline-size:100%;min-height:60px;
 white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal;
}
body #app .discovery-controls>button.trace-listen>span:not(.game-tile-face){
 display:inline!important;position:static!important;flex:0 0 auto;min-width:0;
 width:auto!important;margin:0!important;white-space:nowrap!important;
}
body #app .discovery-controls>button.trace-listen>.game-tile-face{
 display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center;justify-content:center;gap:10px;width:auto!important;min-width:0;
 min-height:0;padding:0!important;border:0!important;background:transparent!important;
 box-shadow:none!important;white-space:nowrap!important;
}
body #app .discovery-controls>button.trace-listen svg{
 position:static!important;display:block;flex:0 0 28px;width:28px;height:28px;
 margin:0;transform:none!important;
}
body #app .voice-status>button.trace-listen{display:inline-flex;flex-direction:row;white-space:nowrap}

/* This final exception outranks the later shared glass treatment. Empty
   letter choices stay transparent; answer colours and focus outlines remain. */
body #app .simple-learning-activity.is-vowel-activity :is(.vowel-listening,.vowel-word) button.choice:not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:has(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]))),
body #app .simple-learning-activity.is-vowel-activity :is(.vowel-listening,.vowel-word) button.choice:not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:has(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])))>.game-tile-face{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body #app .simple-learning-activity.is-vowel-activity :is(.vowel-listening,.vowel-word) button.choice:not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:has(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])))>.game-tile-face::before,
body #app .simple-learning-activity.is-vowel-activity :is(.vowel-listening,.vowel-word) button.choice:not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:has(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])))>.game-tile-face::after{content:none!important}

/* One gentle pulse belongs to the enabled outer action only. The existing
   narration state gates the cue; this never unlocks or recolours a button. */
body{--sano-ready-cue:none}
@keyframes sano-ready-pulse{0%,42%,100%{transform:scale(1)}20%{transform:scale(1.025)}}
@media(prefers-reduced-motion:no-preference){
 body:not([data-motion=reduce]):not([data-reduced-motion=true]):not([data-guidance-waiting=true]):not([data-page-hidden=true]){--sano-ready-cue:sano-ready-pulse 3.2s ease-in-out infinite}
}
body :is([inert],[aria-busy=true],[data-guidance=playing],[data-guidance=loading],[data-guidance=idle]){--sano-ready-cue:none}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.talk-listen,.knowledge-cue-button,.sc-listen,.music-control-listen,[data-action=replay],[data-body-repeat],[data-money-hear],[data-knowledge=listen],[data-knowledge=hear],[data-adventure=hear],[data-nepal-hear],[data-nepal-action=hear],[data-maths=hear],[data-spelling=hear],[data-sc-action=hear],[data-vowel-listen=model],[data-vowel-word=listen],[data-vowel-speech=model],[data-recall=hear],[data-tune=listen],[data-song-action=play],.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-action=vowel-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-sc-action=shape-next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done],[data-vowel-speech=complete],[data-step-action=next]):not(:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.mountain-back,.song-back,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]) *):not(:disabled):not([aria-disabled=true]):not([hidden]):not([aria-busy=true]):not([aria-pressed=true]):not(.is-playing){--sano-content-motion:var(--sano-ready-cue,none);--sano-next-motion:var(--sano-ready-cue,none);animation:var(--sano-ready-cue,none)!important;animation-delay:0s!important;animation-play-state:var(--sano-content-play,running)!important;transform-origin:center}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.talk-listen,.knowledge-cue-button,.sc-listen,.music-control-listen,[data-action=replay],[data-body-repeat],[data-money-hear],[data-knowledge=listen],[data-knowledge=hear],[data-adventure=hear],[data-nepal-hear],[data-nepal-action=hear],[data-maths=hear],[data-spelling=hear],[data-sc-action=hear],[data-vowel-listen=model],[data-vowel-word=listen],[data-vowel-speech=model],[data-recall=hear],[data-tune=listen],[data-song-action=play],.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-action=vowel-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-sc-action=shape-next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done],[data-vowel-speech=complete],[data-step-action=next]):not(:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.mountain-back,.song-back,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]) *):not(:disabled):not([aria-disabled=true]):not([hidden]):not([aria-busy=true]):not([aria-pressed=true]):not(.is-playing) :is(.game-tile-face,.challenge-face,.talk-action-face,.scribble-action-face,.companion-face,.challenge-pulse){--sano-content-motion:none;--sano-next-motion:none;animation:none!important}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.talk-listen,.knowledge-cue-button,.sc-listen,.music-control-listen,[data-action=replay],[data-body-repeat],[data-money-hear],[data-knowledge=listen],[data-knowledge=hear],[data-adventure=hear],[data-nepal-hear],[data-nepal-action=hear],[data-maths=hear],[data-spelling=hear],[data-sc-action=hear],[data-vowel-listen=model],[data-vowel-word=listen],[data-vowel-speech=model],[data-recall=hear],[data-tune=listen],[data-song-action=play],.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-action=vowel-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-sc-action=shape-next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done],[data-vowel-speech=complete],[data-step-action=next]):not(:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.mountain-back,.song-back,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]) *):is(:disabled,[aria-disabled=true],[hidden],[aria-busy=true],[aria-pressed=true],.is-playing){--sano-ready-cue:none;--sano-content-motion:none;--sano-next-motion:none;animation:none!important}
body :is(#app,#overlay,.step-prompt-backdrop,.coin-backdrop,#sano-daily-rewards) button:is(.trace-listen,.listen-button,.talk-listen,.knowledge-cue-button,.sc-listen,.music-control-listen,[data-action=replay],[data-body-repeat],[data-money-hear],[data-knowledge=listen],[data-knowledge=hear],[data-adventure=hear],[data-nepal-hear],[data-nepal-action=hear],[data-maths=hear],[data-spelling=hear],[data-sc-action=hear],[data-vowel-listen=model],[data-vowel-word=listen],[data-vowel-speech=model],[data-recall=hear],[data-tune=listen],[data-song-action=play],.continue-game,.scribble-next,.companion-next,.step-prompt-next,.spelling-next,.sc-next,.nepal-discovery-next,.vowel-speaking-complete,[data-action=continue],[data-action=quiz-next],[data-action=course-next],[data-action=companion-next],[data-action=vowel-next],[data-check=next],[data-family=next],[data-family=ready],[data-adventure=next],[data-nepal-action=next],[data-sc-action=next],[data-sc-action=shape-next],[data-knowledge=next],[data-maths=next],[data-recall=continue],[data-speech=next],[data-money-next],[data-body-next],[data-scribble=next],[data-scribble=done],[data-vowel-speech=complete],[data-step-action=next]):not(:is(.back-tile,.shared-topic-back,.learning-top-back,.topic-back,.music-back,.knowledge-back,.coin-play-back,.context-return,.web-entry-back,.talk-back,.topic-exit,.mountain-back,.song-back,[data-navigation=back],[data-step-action=back],[data-action=back],[data-action=learning-back],[data-action=topics],[data-coin=back],[data-family=back],[data-scribble=back],[data-sc-action=back],[data-knowledge=back])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking])):not(:is(.answer-wrong,.answer-right,.tune-miss,.tune-player,.music-denied,.is-wrong,.is-hint,.is-retry,.correct,.is-correct,.matched,.connecting,.is-required,.is-coin-short,.maths-correct,.maths-selected,.maths-matched,.right,.wrong,.is-setup-locked,[data-feedback=unavailable],[data-setup-speaking]) *):is(:disabled,[aria-disabled=true],[hidden],[aria-busy=true],[aria-pressed=true],.is-playing) :is(.game-tile-face,.challenge-face,.talk-action-face,.scribble-action-face,.companion-face,.challenge-pulse){animation:none!important}

/* Login uses the existing Family sheet's native scroll owner. Its password
   autocomplete identifies login independently of translated interface text. */
body #overlay>.backdrop>.parent-modal:has(.family-account-entry input[autocomplete=current-password]){
 display:flex;flex-direction:column;height:75vh;height:75dvh;min-height:0;
 overflow:hidden!important;
}
body #overlay>.backdrop>.parent-modal:has(.family-account-entry input[autocomplete=current-password])>.sano-sheet-header{
 flex:0 0 auto;position:relative!important;top:auto!important;
}
body #overlay>.backdrop>.parent-modal:has(.family-account-entry)>.sano-sheet-header .sano-sheet-close{
 display:inline-grid!important;place-items:center;order:3;flex:0 0 44px;
 width:44px;min-width:44px;height:44px;min-height:44px;padding:0;
 border:0;border-radius:14px;background:#fff;color:#e75780;
 font-size:26px;line-height:1;box-shadow:0 3px 10px #274d6b12;
}
body #overlay>.backdrop>.parent-modal:has(.family-account-entry input[autocomplete=current-password])>.sano-sheet-scroll{
 flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:scroll;
 overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;clip-path:inset(0);
}
body #overlay>.backdrop>.parent-modal:has(.family-account-entry input[autocomplete=current-password])>.sano-sheet-scroll>.family-account-entry{
 box-sizing:border-box;min-height:calc(100% + 1px);
}

/* The Games and Flight header gives Back and the wordmark separate grid
   cells. All three children stay in the fixed header, outside the scroll pane. */
body #app .mountain-game-header{
 display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:8px;
 align-items:center;
}
body #app .mountain-game-header[hidden]{display:none!important}
body #app #adventure-root .mountain-game-header>button.mountain-back{
 grid-column:1;grid-row:1;justify-self:start;position:static!important;inset:auto!important;
 box-sizing:border-box;width:auto;min-width:0;max-width:100%;min-height:44px;
 margin:0!important;padding:8px 6px!important;white-space:nowrap;
 font:850 14px/1.25 var(--joy-font);background:transparent!important;--sano-surface-shadow:none;
 border:0!important;box-shadow:none!important;color:#c73754!important;
 animation:none!important;transform:none!important;translate:none!important;
}
body #app .mountain-game-header>.brand{
 grid-column:2;grid-row:1;justify-self:center;position:static!important;inset:auto!important;
 box-sizing:border-box;display:block;width:clamp(80px,22vw,104px);min-width:0;max-width:100%;
 margin:0!important;padding:0!important;transform:none!important;translate:none!important;
}
body #app .mountain-game-header>.brand .sano-wordmark{display:block;width:100%;height:auto;max-height:40px}
body #app .mountain-game-header>.header-balance{grid-column:3;grid-row:1;min-width:0;max-width:100%;pointer-events:none}
/* Native games use the canvas gestures; no empty desktop control row remains. */
body #app [data-native-game=true] .mountain-controls{display:none!important}

/* The optional voice may continue after its one-second input delay. */
body[data-guidance-playing=true]:not([data-guidance-waiting=true]) :is(.choice-grid,.match-stage,.drag-area){cursor:auto}
body[data-guidance-playing=true]:not([data-guidance-waiting=true]) #trace-board{cursor:crosshair}

/* Sano stylesheet: music-release-followup.css */
/* A centred performance, followed by the persistent bottom playback controls. */
body #app .music-area :is(.melody-section>h3,.music-own-heading){font:900 28px/1.2 var(--joy-font);color:#0867ed;text-align:center}
body #app .music-own-heading{display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 0 12px;min-width:0}
body #app .music-own-heading>span{min-width:0;overflow-wrap:break-word}
body #app .music-own-heading>.music-own-note{display:block;flex:none;width:28px;height:28px}
body #app .music-own-heading[hidden]{display:none}
body #app .song-stage{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:880px;width:100%;margin-inline:auto;box-sizing:border-box;min-width:0;text-align:center}
body #app .song-stage>h2{order:0;align-self:center;color:#176cba;margin:0 0 4px;font-size:clamp(24px,3vw,32px);line-height:1.25}
body #app .song-stage>.song-performer{order:1;position:relative;flex:none;align-self:center;float:none;inset:auto;transform:none;width:140px;height:140px;max-width:100%;margin:0 auto;padding:0;overflow:visible}
body #app .song-stage>.song-lyrics{order:2;width:min(100%,620px);min-width:0;margin:0 auto;padding:8px 12px;box-sizing:border-box;font-size:clamp(18px,2.3vw,25px);line-height:1.65}
body #app .song-stage>.song-status{order:3;margin:0}
body #app .song-stage>.song-controls{order:4;position:sticky;bottom:0;z-index:3;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:12px;width:min(100%,620px);box-sizing:border-box;margin:8px auto 0;padding:12px max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));border-radius:24px;background:transparent}
body #app .song-controls>.song-control{flex:1;min-width:0;max-width:270px;min-height:52px;font-size:clamp(16px,2vw,20px)}
body #app .song-lyrics p{border-radius:18px;transition:background .15s ease,color .15s ease;margin:6px 0;overflow-wrap:anywhere}
body #app .song-lyrics .is-current-line{color:#1262a9;background:#e0f3ff88}
body #app .song-lyrics .is-singing{color:#165487;background:#ffe294;border-radius:.5em;box-shadow:0 0 12px #ffe29488}
@media(orientation:landscape) and (max-height:650px){body #app .song-stage>.song-lyrics{font-size:18px;line-height:1.5}body #app .song-stage{gap:6px}}
@media(prefers-reduced-motion:reduce){body #app .song-lyrics p{transition:none}}

/* Drum strikes glow into the surrounding surface without a hard ring. */
body #app .drum-kit{overflow:visible}
body #app .drum-piece.tune-listening,body #app .drum-piece.tune-player{box-shadow:0 0 15px 5px #ff365b66,0 0 34px 10px #ff557944;background:radial-gradient(ellipse,#ff446044 20%,#ff446018 58%,transparent 76%);filter:drop-shadow(0 0 7px #ff3b5866)}
body #app .drum-piece.tune-listening svg,body #app .drum-piece.tune-player svg{filter:drop-shadow(0 0 8px #ff425988);animation:drum-hit .22s ease-out}
body #app .drum-piece>svg,body #app .drum-piece>strong{pointer-events:none}
body #app .drum-piece:focus-visible{outline:3px solid #185d91;outline-offset:5px}
@media(prefers-reduced-motion:reduce){body #app .drum-piece.tune-listening svg,body #app .drum-piece.tune-player svg{animation:none}}
/* Build a Word keeps one heading outside its activity card. */
body #app .simple-learning-activity.is-spelling{display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0}
body #app .is-spelling>.spelling-page-title{color:#176cba;font-size:clamp(27px,4vw,38px);line-height:1.2;text-align:center;margin:0;max-width:100%;font-weight:900}
body #app .is-spelling>.foundation-focus{width:min(100%,760px);box-sizing:border-box;min-width:0}
body #app .is-spelling .game-actions:has(>button[hidden]){display:none}
/* Compact in-game coin choices, with equally readable primary labels. */
body>.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area>.coin-buy{width:min(310px,100%);max-width:310px;min-height:76px;height:auto;aspect-ratio:auto;padding:12px 16px;margin:0 auto;font:900 clamp(22px,5.6vw,26px)/1.2 var(--joy-font)}
body>.coin-backdrop[data-coin-view=access] .coin-dialog .coin-access-area>.watch-earn-tile{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:12px 18px 9px;min-height:76px;grid-template-rows:none}
body>.coin-backdrop[data-coin-view=access] .coin-dialog .watch-earn-tile>.watch-earn-label{font:inherit;line-height:1.2;align-self:center}
body>.coin-backdrop[data-coin-view=access] .coin-dialog .watch-earn-tile>.watch-earn-status{font:750 12px/1.25 var(--joy-font);align-self:center;margin:0}

/* One compact Watch & Earn treatment in both Coins and access prompts. */
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(310px,100%);max-width:310px;min-height:76px;height:auto;aspect-ratio:auto;padding:12px 18px 9px;gap:3px;overflow:visible}
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile>.watch-earn-label{font:900 clamp(22px,5.6vw,26px)/1.2 var(--joy-font);align-self:center}
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile>.watch-earn-status{font:750 12px/1.25 var(--joy-font);align-self:center;margin:0;text-align:center}
body>.coin-backdrop .coin-dialog .coin-area>.watch-earn-tile:after{content:"";position:absolute;inset:3px 3px 45%;border-radius:18px 18px 50% 50%;background:linear-gradient(165deg,#ffffff66,#ffffff08);pointer-events:none}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-entry{position:relative;isolation:isolate;overflow:visible;border:2px solid #fff;border-radius:23px;transition:filter .2s,opacity .2s,box-shadow .2s}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-spin{color:#735008;background:linear-gradient(145deg,#fff8c7 0%,#f8d260 37%,#e7ac28 65%,#ffed9a 100%);box-shadow:inset 0 2px 2px #fffbdc,0 5px 0 #c18b25,0 8px 16px #bd8a2522}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-checkin{color:#07583e;background:linear-gradient(145deg,#d9ffe8,#79dcaa 40%,#33ba83 70%,#acf4c7);box-shadow:inset 0 2px 2px #eaffef,0 5px 0 #25956a,0 8px 16px #25956a22}
body>.coin-backdrop .coin-dialog .coin-daily-entry:before{content:"";position:absolute;inset:3px 3px 52%;border-radius:20px 20px 60% 40%;background:linear-gradient(160deg,#fff9,#fff0);pointer-events:none;z-index:-1}
body>.coin-backdrop .coin-dialog .coin-area .coin-daily-wheel{background:repeating-conic-gradient(#fff0a7 0deg 30deg,#e4ac2d 30deg 60deg);border:4px solid #bb8218;box-shadow:inset 0 0 0 2px #fff3b0,0 3px 7px #8b5d2844}
body>.coin-backdrop .coin-dialog .coin-daily-wheel>i{background:linear-gradient(#fff6c8,#dca62a);border-color:#a67217}
body>.coin-backdrop .coin-dialog .coin-daily-checkin .coin-daily-art{filter:drop-shadow(0 2px 0 #ffffff88);color:#08754e}
body>.coin-backdrop .coin-dialog .coin-daily-count{position:absolute;right:-7px;top:-8px;display:grid;place-items:center;width:25px;height:25px;border:2px solid #fff;border-radius:50%;background:#f84461;color:white;font:900 14px/1 var(--joy-font);box-shadow:0 3px 7px #bc365b33}
body>.coin-backdrop .coin-dialog .coin-daily-count[hidden]{display:none}
body>.coin-backdrop .coin-dialog .coin-daily-entry.is-claimed{opacity:.58;filter:saturate(.38)}
body>.coin-backdrop .coin-dialog .coin-daily-entry.is-claimed>:is(.coin-daily-art,strong){filter:blur(.7px)}
body>.coin-backdrop .coin-dialog .coin-daily-entry.answer-wrong{animation:daily-claimed-shake .38s ease-out;box-shadow:0 0 18px 6px #ff355f77;filter:none}
@keyframes daily-claimed-shake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){body>.coin-backdrop .coin-dialog .coin-daily-entry.answer-wrong{animation:none}}
body[data-motion=reduce]>.coin-backdrop .coin-dialog .coin-daily-entry.answer-wrong{animation:none}
/* Opening rewards reuse the same colour, count and used-state language. */
body #sano-daily-rewards .sano-reward.sano-spin{background:linear-gradient(145deg,#fff8c7,#f8d260 37%,#e7ac28 65%,#ffed9a);color:#735008}
body #sano-daily-rewards .sano-reward.sano-checkin{background:linear-gradient(145deg,#d9ffe8,#79dcaa 40%,#33ba83 70%,#acf4c7);color:#07583e}
/* Availability belongs to the icon, never the tile's animated sheen layer. */
body #sano-daily-rewards .sano-reward[data-available=true]>.sano-icon::after{content:"1";position:absolute;inset:-5px -6px auto auto;display:grid;place-items:center;box-sizing:border-box;width:21px;height:21px;border:2px solid #fff;border-radius:50%;background:#f84461;color:#fff;font:900 12px/1 var(--joy-font);box-shadow:0 2px 5px #bc365b33;z-index:2;animation:none;transform:none;opacity:1;pointer-events:none}
body #sano-daily-rewards .sano-reward[data-claimed=true]{opacity:.58;filter:saturate(.38)}
body #sano-daily-rewards .sano-reward[data-claimed=true] .sano-icon{filter:blur(.7px)}
body #sano-daily-rewards .sano-reward.answer-wrong{animation:daily-claimed-shake .38s ease-out;box-shadow:0 0 18px 6px #ff355f77;filter:none}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{min-height:76px;padding:12px 18px 9px;gap:3px}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile>.watch-earn-status{align-self:center;text-align:center}
@media(prefers-reduced-motion:reduce){body #sano-daily-rewards .sano-reward.answer-wrong{animation:none}}
body[data-motion=reduce] #sano-daily-rewards .sano-reward.answer-wrong{animation:none}

/* Keep Coming soon readable while its quiet highlight passes over the label. */
@keyframes sano-coming-soon-shine{
 0%,68%,100%{text-shadow:0 0 0 #ffffff00}
 82%{text-shadow:0 0 4px #ffffff99,0 0 9px #ffffff55}
}
@media(prefers-reduced-motion:no-preference) and (forced-colors:none){
 body:not([data-motion=reduce]):not([data-reduced-motion=true]) .watch-earn-tile[data-feature-status=coming-soon]>.watch-earn-status{
  animation:sano-coming-soon-shine 4.8s ease-in-out infinite;
 }
 body[data-page-hidden=true]:not([data-motion=reduce]):not([data-reduced-motion=true]) .watch-earn-tile[data-feature-status=coming-soon]>.watch-earn-status{animation-play-state:paused}
}

/* One clear song action: Play on the right; replay follows a finished listen. */
body #app .song-controls>.song-control{display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-height:62px;padding:12px 10px;font-size:clamp(15px,3.8vw,20px);line-height:1.25;white-space:normal;animation:none;transition:opacity .2s,filter .2s,box-shadow .2s}
body #app .song-controls .song-control-icon{display:block;width:20px;height:20px;flex:none}
body #app .song-controls .song-control-label{min-width:0;word-break:normal;overflow-wrap:normal}
body #app .song-controls>.song-replay:disabled{opacity:.46;filter:blur(.65px) saturate(.45);animation:none;cursor:default;box-shadow:inset 0 2px 3px #ffffff66,0 3px 0 #88b4cd55}
@keyframes sano-song-play-heartbeat{0%,36%,60%,100%{transform:scale(1)}43%{transform:scale(1.035)}50%{transform:scale(1.012)}55%{transform:scale(1.025)}}
/* This song-specific cue wins over the generic ready-action pulse. */
body #app #songs-root .song-controls>.song-play:not(.is-ready){animation:none!important}
@media(prefers-reduced-motion:no-preference) and (forced-colors:none){body:not([data-motion=reduce]):not([data-reduced-motion=true]):not([data-guidance-waiting=true]) #app #songs-root .song-controls>.song-play.is-ready{animation:sano-next-pulse 1.8s ease-in-out infinite!important;box-shadow:inset 0 2px 3px #ffffffaa,0 0 22px 4px #59c69b66,0 8px 38px 6px #59c69b3d}}
body[data-page-hidden=true]:not([data-motion=reduce]):not([data-reduced-motion=true]):not([data-guidance-waiting=true]) #app #songs-root .song-controls>.song-play.is-ready{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true],[data-guidance-waiting=true]) #app #songs-root .song-controls>.song-play.is-ready{animation:none!important}
@media(prefers-reduced-motion:reduce){body #app #songs-root .song-controls>.song-play.is-ready{animation:none!important}}

/* Keep the performance artwork and lyrics directly on the page canvas. */
body #app .song-stage>.song-controls{background:transparent!important;box-shadow:none!important;border:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body #app .piano-play .music-play-stage>.tune-name{display:none}
body #app .music-area .tune-controls{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body #app .music-area .tune-controls>.music-control-listen:disabled{opacity:.46;filter:blur(.65px) saturate(.45);animation:none!important;cursor:default;box-shadow:inset 0 2px 3px #ffffff66,0 3px 0 #88b4cd55}
body #app .music-area .tune-controls>.music-control-listen:disabled::before{animation:none}
@media(prefers-reduced-motion:no-preference) and (forced-colors:none){body:not([data-motion=reduce]):not([data-reduced-motion=true]):not([data-guidance-waiting=true]) #app .music-area .tune-controls>.music-control-play:not([hidden]):not(:disabled){animation:sano-next-pulse 1.8s ease-in-out infinite!important;box-shadow:inset 0 2px 3px #ffffffaa,0 0 22px 4px #59c69b66,0 8px 38px 6px #59c69b3d}}
body:is([data-motion=reduce],[data-reduced-motion=true],[data-guidance-waiting=true]) #app .music-area .tune-controls>.music-control-play{animation:none!important}
body[data-page-hidden=true] #app .music-area .tune-controls>.music-control-play{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){body #app .music-area .tune-controls>.music-control-play{animation:none!important}}

/* Compact, title-only choices shared by piano, guitar and drums. */
body #app .music-area .melody-tabs{width:min(280px,100%);margin-inline:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body #app .music-area .melody-tabs>button{box-sizing:border-box;width:100%;min-width:0;min-height:0;aspect-ratio:1;padding:0}
body #app .music-area .melody-tabs>button>.melody-face{box-sizing:border-box;display:grid;place-items:center;width:100%;height:100%;min-height:0;gap:0;padding:12px 10px;border-radius:24px}
body #app .music-area .melody-tabs>button>.melody-face:has(.sano-price-badge){padding-top:32px}
body #app .music-area .melody-face strong{display:block;max-width:100%;font-size:16px;line-height:1.35;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none;text-wrap:balance}
@media(min-width:601px){body #app .music-area .melody-tabs{width:min(430px,100%);grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Sano stylesheet: coin-drawing-navigation.css */
/* Shared reward illustrations and compact, readable earn actions. */
body .coin-backdrop .coin-dialog .coin-area .coin-daily-wheel,
body #sano-daily-rewards .sano-mini-wheel,
body #sano-daily-rewards .sano-calendar-art{
 display:block;width:62px;height:62px;border:0;border-radius:0;background:none;box-shadow:none;transform:none;
}
body .coin-backdrop .coin-dialog .coin-area .coin-daily-wheel::before,
body .coin-backdrop .coin-dialog .coin-area .coin-daily-wheel::after,
body #sano-daily-rewards .sano-mini-wheel::before,
body #sano-daily-rewards .sano-mini-wheel::after{display:none}
body .coin-backdrop .coin-dialog .coin-area .coin-daily-art>svg,
body #sano-daily-rewards :is(.sano-mini-wheel,.sano-calendar-art)>svg{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 2px #59617420)}
body #sano-daily-rewards :is(.sano-mini-wheel,.sano-calendar-art){width:48px;height:48px}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{
 display:grid;grid-template-columns:48px minmax(0,1fr) 46px;grid-template-rows:auto auto;
 align-content:center;align-items:center;justify-items:start;column-gap:8px;row-gap:1px;
 width:min(310px,100%);max-width:310px;min-height:70px;height:auto;aspect-ratio:auto;
 padding:9px 12px;border-radius:22px;margin:10px auto 14px;overflow:hidden;
}
body :is(.coin-backdrop,#overlay,#sano-daily-rewards) .watch-earn-tile>.watch-earn-art{
 display:block;grid-column:1;grid-row:1/3;width:48px;height:48px;position:relative;z-index:1;
}
body .watch-earn-tile>.watch-earn-art>svg{display:block;width:100%;height:100%}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile>.watch-earn-label,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile>.watch-earn-label{
 grid-column:2;grid-row:1;align-self:end;font:900 clamp(17px,4.8vw,22px)/1.2 var(--joy-font);text-align:left;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile>.watch-earn-status,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile>.watch-earn-status{
 grid-column:2;grid-row:2;align-self:start;margin:0;font:750 11px/1.3 var(--joy-font);text-align:left;
}
body :is(.coin-backdrop,#overlay,#sano-daily-rewards) .watch-earn-tile>.watch-earn-badge{
 position:static;grid-column:3;grid-row:1/3;align-self:center;justify-self:end;gap:2px;
 padding:5px 4px;font-size:12px;min-width:0;transform:none;
}
body :is(.coin-backdrop,#overlay,#sano-daily-rewards) .watch-earn-tile>.watch-earn-badge>svg{width:17px;height:17px}
body .watch-earn-tile>.coin-earn-status{grid-column:1/-1;grid-row:3}
/* The Nepal flag uses the same three-tool row as Write your name. */
#app .flag-colouring.scribble-freeplay{padding-top:12px;gap:12px}
#app .flag-colouring .flag-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(550px,100%);gap:10px;margin:0 auto 4px}
#app .flag-colouring .flag-tools>.practice-tool{width:auto;max-width:none;min-width:0;min-height:76px;margin:0;aspect-ratio:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;font-size:15px}
#app .flag-colouring .flag-tools canvas{display:block;width:48px;height:48px}
#app .flag-colouring .flag-tools [data-flag-done]>span:first-child{font-size:32px;line-height:48px;color:#199975}
#app .flag-colouring .flag-tools [aria-pressed=true]{outline:3px solid #74b8ff;outline-offset:2px}
#app .flag-colouring .flag-palette{width:min(550px,100%);margin:0 auto}
#app .flag-colouring .flag-stencil{margin-top:4px}
/* Keep the header's feather inside its reserved space, away from page titles. */
body #app>.corner-tools:has(+.foundations-shell),
body #app>.corner-tools:has(+#adventure-root){
 min-height:calc(56px + env(safe-area-inset-top));
 padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:4px;
}
body #app>.simple-shell.foundations-shell>.simple-header,
body #app .mountain-game-header{
 height:48px;min-height:48px;padding-top:0;padding-bottom:4px;margin-block:0;
}
body #app>.foundations-shell>.simple-header>.brand,
body #app .mountain-game-header>.brand{translate:0 -6px}
body #app:has(>.foundations-shell),
body #app:has(.mountain-game-header){padding-top:calc(var(--toolbar-height) + 48px);scroll-padding-top:calc(var(--toolbar-height) + 64px)}
body #app>.foundations-shell>.simple-header::before,
body #app .mountain-game-header::before{
 inset:-4px -24px -6px;
 backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
 mask-image:linear-gradient(to bottom,transparent,#0009 12px,#0009 55%,#0004 76%,transparent),linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent);
 -webkit-mask-image:linear-gradient(to bottom,transparent,#0009 12px,#0009 55%,#0004 76%,transparent),linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent);
}
@media(max-width:600px){#app .flag-colouring .flag-tools{gap:8px}#app .flag-colouring .flag-tools>.practice-tool{min-height:70px;padding:7px 4px;font-size:14px}}
@media(forced-colors:active){#app .flag-colouring .flag-tools [aria-pressed=true]{outline-color:Highlight}}

/* Every paper starts with a single, clear invitation. The blur never covers
   navigation, and it is removed without replacing the child's canvas. */
#app :is(.scribble-tools,.flag-tools) [hidden],
#app .scribble-colour-palette[hidden],#app .flag-palette[hidden],
#app .knowledge-drawing-tool-choice [hidden]{display:none!important}
#app :is(.scribble-page,.flag-colouring,.knowledge-drawing)[data-drawing-started=false] :is(.scribble-paper-frame,.scribble-game-model,.flag-stencil,.drawing-rainbow,.knowledge-drawing-surface){filter:blur(5px);opacity:.45;pointer-events:none;user-select:none}
#app :is(.scribble-page,.flag-colouring)[data-drawing-started=false] .scribble-tools{grid-template-columns:minmax(86px,130px);justify-content:center}
#app :is(.scribble-page,.flag-colouring,.knowledge-drawing) .is-draw-invitation{
 animation:sano-draw-invitation 1.65s ease-in-out infinite;
 box-shadow:inset 0 2px 0 #fff9,0 4px 0 #659fcf,0 0 22px #ffc72e99;
}
#app .flag-colouring .flag-tools canvas{width:34px;height:34px}
#app .knowledge-drawing-tool-choice{display:flex;justify-content:center;gap:10px;order:-1}
#app .knowledge-drawing{display:flex;flex-direction:column}
#app .knowledge-drawing-tool-choice .knowledge-button{min-height:76px;min-width:86px;border:2px solid #fff;border-bottom:5px solid #659fcf;border-radius:21px;background:linear-gradient(145deg,#e5f5ff,#a8d7fa);color:#214f77;box-shadow:inset 0 1px 0 #fff9,0 4px 0 #659fcf}
#app .knowledge-drawing-tool-choice canvas{width:34px;height:34px}
#app #continue.is-guidance-ready:not(:disabled){animation:sano-next-invitation 1.8s ease-in-out infinite;box-shadow:0 0 18px #52d59a70}
@keyframes sano-draw-invitation{0%,100%{transform:scale(1);filter:drop-shadow(0 0 3px #ffd44b55)}50%{transform:scale(1.055);filter:drop-shadow(0 0 10px #ffd44baa)}}
@keyframes sano-next-invitation{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle{position:absolute;top:0;left:50%;width:90px;max-width:90px;height:32px;margin:0;transform:translateX(-50%);z-index:3}
.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle::before{left:calc(50% - 22px)}
@media(prefers-reduced-motion:reduce){#app .is-draw-invitation,#app #continue.is-guidance-ready:not(:disabled){animation:none!important;transform:none}}
body:is([data-motion=reduce],[data-reduced-motion=true]) #app :is(.is-draw-invitation,#continue.is-guidance-ready){animation:none!important;transform:none}

#app [data-sc-phase=paint][data-drawing-started=false] .sc-stencil{filter:blur(5px);opacity:.45;pointer-events:none}
#app [data-sc-phase] :is(.sc-crayons,[data-sc-action=eraser])[hidden]{display:none!important}
#app .sc-drawing-tools{display:flex;justify-content:center;gap:10px;margin:10px auto}
#app .sc-drawing-tools .practice-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:76px;min-width:100px;border:2px solid #fff;border-bottom:5px solid #659fcf;border-radius:21px;background:linear-gradient(145deg,#e5f5ff,#a8d7fa);color:#214f77;box-shadow:inset 0 1px 0 #fff9,0 4px 0 #659fcf}
#app .sc-drawing-tools canvas{width:34px;height:34px}
#app .sc-drawing-tools .is-draw-invitation{animation:sano-draw-invitation 1.65s ease-in-out infinite;box-shadow:0 4px 0 #659fcf,0 0 22px #ffc72e99}
/* A full-width badge fits both its coin and number, independent of button styles. */
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{
 grid-template-columns:44px minmax(0,1fr) max-content;column-gap:7px;
 animation:sano-watch-float 4s ease-in-out infinite!important;transform:none;
}
body :is(.coin-backdrop,#overlay,#sano-daily-rewards) .watch-earn-tile>.watch-earn-badge{
 display:inline-flex!important;flex-direction:row;align-items:center;justify-content:center;
 box-sizing:border-box;position:static!important;inset:auto;width:auto!important;min-width:54px!important;max-width:none!important;height:28px!important;min-height:28px;aspect-ratio:auto!important;flex:none;
 gap:3px;padding:4px 7px!important;border-radius:999px!important;white-space:nowrap;line-height:1;
 transform:none;translate:none;overflow:visible;font-size:12px!important;
}
body :is(.coin-backdrop,#overlay,#sano-daily-rewards) .watch-earn-tile>.watch-earn-badge>*{flex:none;white-space:nowrap}
body :is(.coin-backdrop,#overlay,#sano-daily-rewards) .watch-earn-tile>.watch-earn-art{width:44px;height:44px}
@keyframes sano-watch-float{0%,100%{translate:0 0;rotate:-.4deg}50%{translate:0 -3px;rotate:.4deg}}
body[data-page-hidden=true] .watch-earn-tile{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#app .sc-drawing-tools .is-draw-invitation,body .watch-earn-tile{animation:none!important;translate:none!important;rotate:none!important}}
body:is([data-motion=reduce],[data-reduced-motion=true]) .watch-earn-tile{animation:none!important;translate:none;rotate:none}

/* Games: two square adventures and a centred wide drawing tile. */
#app #adventure-root .mountain-simple-choices{width:min(620px,100%);margin-inline:auto}
#app #adventure-root .mountain-mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,3vw,22px);width:100%;max-width:620px;margin-inline:auto}
#app #adventure-root .mountain-mode-choices>[data-mode]{box-sizing:border-box;width:100%;max-width:none;min-width:0;height:auto;min-height:0;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:14px 8px}
#app #adventure-root .mountain-mode-choices .mountain-mode-art{width:clamp(62px,19vw,116px);height:auto;max-height:54%;object-fit:contain}
#app #adventure-root .mountain-choice-copy{min-width:0;text-align:center}
#app #adventure-root .mountain-choice-copy strong{font-size:clamp(16px,4.3vw,24px);line-height:1.15;white-space:normal}
#app #adventure-root .mountain-extras{width:min(620px,100%);margin:18px auto 0;display:flex;justify-content:center}
#app #adventure-root .mountain-extras[hidden]{display:none}
#app #adventure-root .mountain-extras>.mountain-scribble{box-sizing:border-box;width:100%;max-width:620px;height:auto;min-height:92px;aspect-ratio:auto;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:18px;padding:14px 18px}
#app #adventure-root .mountain-scribble-art{width:68px;height:68px;flex:none}
#app #adventure-root .mountain-scribble strong{font-size:clamp(18px,4.5vw,25px);line-height:1.2;text-align:left}
@media(prefers-reduced-motion:reduce){
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
 body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{animation:none!important;translate:none!important;rotate:none!important}
}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{animation:none!important;translate:none!important;rotate:none!important}

/* Restore the glossy raised plate on daily invitations. */
body #sano-daily-rewards .sano-reward.sano-spin{--sano-edge:#ba821b;--sano-surface-shadow:inset 0 3px 2px #fffce0,inset 0 -3px 4px #df9b1940,0 5px 0 #ba821b,0 0 26px #f4c94b66;border-color:#fff3c2;background:linear-gradient(145deg,#fff5b6 0%,#ffe471 24%,#f7bc2d 62%,#ffdf76 100%);box-shadow:inset 0 3px 2px #fffce0,inset 0 -3px 4px #df9b1940,0 5px 0 #ba821b,0 0 26px #f4c94b66}
body #sano-daily-rewards .sano-reward.sano-checkin{--sano-edge:#16865d;--sano-surface-shadow:inset 0 3px 2px #effff7,inset 0 -3px 4px #08745135,0 5px 0 #16865d,0 0 26px #5cd59c66;border-color:#ddffec;background:linear-gradient(145deg,#d8ffe6 0%,#8de5b7 27%,#25b881 65%,#92e8be 100%);box-shadow:inset 0 3px 2px #effff7,inset 0 -3px 4px #08745135,0 5px 0 #16865d,0 0 26px #5cd59c66}
body #sano-daily-rewards :is(.sano-spin,.sano-checkin)::before{display:block;content:"";position:absolute;inset:3px 3px 48%;z-index:-1;border-radius:19px 19px 60% 40%;background:linear-gradient(155deg,#ffffff99,#ffffff08);pointer-events:none}
body #sano-daily-rewards :is(.sano-spin,.sano-checkin) .sano-reward-description{color:inherit}

/* Follow the whole sung row, with the original recording's lyric timing. */
body #app .song-lyrics .is-current-line{color:#684200;background:#ffed53;box-shadow:0 0 6px #ffe33fcc,0 0 17px #ffd62a80;text-shadow:0 1px #fff7a4}
body #app .song-lyrics [data-song-word]{display:inline-block;white-space:nowrap;border-radius:.35em;padding-inline:.07em}
@media(forced-colors:active){body #app .song-lyrics .is-current-line{color:HighlightText;background:Highlight;box-shadow:none;text-shadow:none}}

/* One plated surface across the Coins hub, daily rewards and activity top-up.
   Only the reflection moves; labels, prices and pointer targets stay still. */
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area,
body #sano-daily-rewards{
 --coin-plate-face:linear-gradient(150deg,#fff9cf 0%,#ffe990 18%,#eeb332 40%,#ffed9b 57%,#f6c442 78%,#dca024 100%);
 --coin-plate-edge:#ad7616;--coin-plate-rim:#fff0ad;--coin-plate-light:#fffde7;--coin-plate-ink:#62400c;--coin-plate-glow:#e9b12a;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-star-hero{
 --coin-plate-face:linear-gradient(150deg,#e8faff 0%,#b6e9ff 18%,#63b9eb 40%,#cff1ff 57%,#8bd0f7 78%,#4c9bd7 100%);
 --coin-plate-edge:#286c9e;--coin-plate-rim:#d8f4ff;--coin-plate-light:#f3fcff;--coin-plate-ink:#103e65;--coin-plate-glow:#58b3ea;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-checkin,
body #sano-daily-rewards .sano-checkin{
 --coin-plate-face:linear-gradient(150deg,#e1ffeb 0%,#a3ecc1 18%,#36b782 40%,#b6f2d0 57%,#6fd3a4 78%,#28a471 100%);
 --coin-plate-edge:#167953;--coin-plate-rim:#d6ffe8;--coin-plate-light:#effff6;--coin-plate-ink:#084a34;--coin-plate-glow:#36ba7e;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .watch-earn-tile,
body #sano-daily-rewards .sano-watch{
 --coin-plate-face:linear-gradient(150deg,#ffb0bd 0%,#f87990 18%,#cc254b 40%,#eb6580 57%,#d93359 78%,#b81e40 100%);
 --coin-plate-edge:#a11d39;--coin-plate-rim:#ffc6d4;--coin-plate-light:#ffe5ed;--coin-plate-ink:#fff;--coin-plate-glow:#df3653;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section),
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
body #sano-daily-rewards .sano-reward,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{
 --sano-content-motion:none;--sano-surface-shadow:inset 0 2px 1px var(--coin-plate-light),inset 0 -4px 6px #542b1224,0 4px 0 var(--coin-plate-edge),0 9px 16px #533b2524,0 0 24px var(--coin-plate-glow);
 position:relative;isolation:isolate;overflow:hidden;
 border:3px solid var(--coin-plate-rim);border-bottom:6px solid var(--coin-plate-edge);
 background:var(--coin-plate-face)!important;color:var(--coin-plate-ink)!important;
 box-shadow:inset 0 2px 1px var(--coin-plate-light),inset 0 -4px 6px #542b1224,0 4px 0 var(--coin-plate-edge),0 9px 16px #533b2524,0 0 24px var(--coin-plate-glow)!important;
}
/* Resting plates stay still; an unavailable tap must be allowed to move. */
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section):not(.answer-wrong),
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
body #sano-daily-rewards .sano-reward:not(.sano-reward-denied),
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{
 animation:none!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::before,
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile::before,
body #sano-daily-rewards .sano-reward::before,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile::before{
 display:block;content:"";position:absolute;inset:3px 4px 46%;height:auto;width:auto;z-index:0;border-radius:18px 18px 65% 35%;
 background:linear-gradient(160deg,#ffffffa6,#ffffff24 65%,transparent);pointer-events:none;
 animation:none!important;transform:none!important;opacity:.72;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::after,
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile::after,
body #sano-daily-rewards .sano-reward::after,
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile::after{
 display:block;content:"";position:absolute;inset:0;width:auto;height:auto;z-index:0;border-radius:inherit;
 background:linear-gradient(112deg,transparent 35%,#ffffff05 45%,#ffffff99 49%,#ffffff24 53%,transparent 65%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;pointer-events:none;
 transform:none!important;translate:none!important;rotate:none!important;scale:none!important;opacity:.65;animation:sano-coin-plate-shine 7s ease-in-out infinite;
}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)>*,
body #sano-daily-rewards .sano-reward>*{position:relative;z-index:1}
/* Claim/Spin badges retain their own width instead of overflowing a narrower
   legacy grid track into the row's padding on WebKit. */
body #sano-daily-rewards .sano-reward:is(.sano-spin,.sano-checkin){grid-template-columns:max-content minmax(0,1fr) max-content}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry>.coin-daily-count{position:absolute;top:5px;right:5px;z-index:2}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .watch-earn-tile,
body #sano-daily-rewards .watch-earn-tile{opacity:1!important;text-shadow:0 1px 1px #7b173780}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .watch-earn-tile:disabled,
body #sano-daily-rewards .watch-earn-tile:disabled{cursor:default}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry.is-claimed>strong{filter:none}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-collection-totals :is(h3,.coin-balance){color:var(--coin-plate-ink);text-shadow:0 1px var(--coin-plate-light)}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-buy:not(.coin-earn){text-shadow:0 1px #fff2bc}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-checkin::after{animation-delay:-2.3s}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-star-hero::after{animation-delay:-3.5s}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-earn::after{animation-delay:-4.7s}
/* Animate paint inside the fixed pseudo box: translated pseudos can enlarge
   scrollWidth on WebKit even when their parent clips the visible reflection. */
@keyframes sano-coin-plate-shine{0%,28%{background-position:100% 0}72%,100%{background-position:0% 0}}
/* Insets and auto margins centre the handle without a transform that a generic
   button press rule could cancel. The visible bar centres within its target. */
body>.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle{
 left:0;right:0;width:90px;min-width:90px;max-width:90px;margin:0 auto;
 transform:none!important;translate:none!important;rotate:none!important;scale:none!important;
}
body>.coin-backdrop .coin-dialog .coin-dialog-top>.sano-sheet-handle::before{left:calc(50% - 22px);width:44px;transform:none}
body[data-page-hidden=true] :is(.coin-backdrop,#overlay) .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::after,
body[data-page-hidden=true] #sano-daily-rewards .sano-reward::after{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.coin-backdrop,#overlay) .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::after,
body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards .sano-reward::after{animation:none!important;background-position:50% 0;opacity:.12}
@media(prefers-reduced-motion:reduce){
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::after,
 body #sano-daily-rewards .sano-reward::after{animation:none!important;background-position:50% 0;opacity:.12}
}
@media(forced-colors:active){
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section),
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile,
 body #sano-daily-rewards .sano-reward,
 body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText;box-shadow:none!important;text-shadow:none}
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::before,
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-collection-totals>section)::after,
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile::before,
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area>.coin-earn.watch-earn-tile::after,
 body #sano-daily-rewards .sano-reward::before,body #sano-daily-rewards .sano-reward::after{display:none!important}
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-collection-totals :is(h3,.coin-balance){color:ButtonText;text-shadow:none}
}
@media(max-width:380px){
 body>.coin-backdrop[data-coin-view=coins]>.coin-dialog>.coin-dialog-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px}
 body>.coin-backdrop[data-coin-view=coins]>.coin-dialog>.coin-dialog-top>.coin-sheet-brand{width:100%;min-width:0;max-width:94px;justify-self:center}
 body>.coin-backdrop[data-coin-view=coins]>.coin-dialog>.coin-dialog-top>.coin-header-tools{margin-left:0;min-width:0;gap:0}
}
/* The old feather extends36px sideways and40px over the first coin row.
   This sheet already has its own scroll-edge fade; keep its heading bounded. */
body>.coin-backdrop[data-coin-view=coins]>.coin-dialog>.coin-dialog-top::before{content:none!important;display:none!important}


/* The tapped unavailable reward shakes as one tile, with a red halo outside
   its clipped sheen. Claim state and reward availability remain unchanged. */
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry.answer-wrong,
body #sano-daily-rewards .sano-reward.sano-reward-denied{
 animation:sano-reward-denied-jiggle 560ms ease-in-out 1!important;
 opacity:1!important;filter:none!important;transition:none!important;transform-origin:center;
 box-shadow:inset 0 2px 1px var(--coin-plate-light,#ffffffad),0 5px 0 var(--coin-plate-edge,#ac7312),0 0 14px 7px #f02e5c99,0 0 38px 13px #ed244666!important;
}
body #sano-daily-rewards .sano-reward.sano-reward-denied-still,
body:is([data-motion=reduce],[data-reduced-motion=true]) :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry.answer-wrong,
body:is([data-motion=reduce],[data-reduced-motion=true]) #sano-daily-rewards .sano-reward.sano-reward-denied{
 animation:none!important;transform:none!important;
}
@media(prefers-reduced-motion:reduce){
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry.answer-wrong,
 body #sano-daily-rewards .sano-reward.sano-reward-denied{animation:none!important;transform:none!important}
}

/* The shop leads the hub. Wide tiles share the balance row's usable width. */
body .coin-backdrop .coin-dialog .coin-area .coin-play-shop-section{width:100%;margin:0 0 22px;padding:0;border:0;background:none;box-shadow:none}
body .coin-backdrop .coin-dialog .coin-area .coin-play-shop{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:20px;width:100%;max-width:none;min-height:116px;height:auto;aspect-ratio:auto;margin:0;padding:16px 20px;font-size:clamp(22px,5vw,28px);text-align:left}
body .coin-backdrop .coin-dialog .coin-area .coin-play-shop .coin-buy-sparkle{width:76px;height:76px;flex:none}
body .coin-backdrop .coin-dialog .coin-area .coin-play-shop small{font-size:14px;color:inherit}
body .coin-backdrop .coin-dialog .coin-area .coin-daily-entries{width:min(390px,100%);gap:16px;margin:16px auto 22px}
body .coin-backdrop .coin-dialog .coin-area .coin-daily-entry{min-height:126px;aspect-ratio:auto;padding:12px 10px;gap:8px}
body .coin-backdrop .coin-dialog .coin-area .coin-daily-art{width:62px;height:62px;flex:none}
body .coin-backdrop .coin-dialog .coin-area .coin-coming-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:none}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming{width:100%;max-width:none;height:auto;aspect-ratio:auto}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:18px;min-height:128px;padding:18px 22px;text-align:left}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-art{width:112px;height:88px;flex:none}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming strong{display:block;min-height:0;text-align:left;font-size:clamp(19px,4.5vw,25px)}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming small{display:block;margin-top:5px;text-align:left;font-size:14px}

/* Keep a visible halo even on unavailable/claimed rewards; availability still
   comes from the existing disabled state. Red tap feedback remains separate. */
@media(forced-colors:none){
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area :is(.coin-buy,.coin-daily-entry,.coin-wallet-hero,.coin-star-hero):not(.answer-wrong),
body #sano-daily-rewards .sano-reward:not(.sano-reward-denied){
 --action-light:var(--coin-plate-glow);
 --sano-surface-shadow:inset 0 2px 1px var(--coin-plate-light),inset 0 -4px 6px #542b1224,0 4px 0 var(--coin-plate-edge),0 0 22px 4px color-mix(in srgb,var(--coin-plate-glow) 40%,transparent),0 8px 38px 6px color-mix(in srgb,var(--coin-plate-glow) 24%,transparent);
 box-shadow:var(--sano-surface-shadow)!important;
}
body .coin-backdrop .coin-dialog .coin-area .coin-play-wallet{background:var(--coin-plate-face)!important;color:var(--coin-plate-ink)!important;border-color:var(--coin-plate-rim);border-bottom-color:var(--coin-plate-edge)}
body .coin-backdrop .coin-dialog .coin-area .coin-daily-entry:is(:disabled,.is-claimed){opacity:.82;filter:none}
}
@media(max-width:380px){
 body .coin-backdrop .coin-dialog .coin-area .coin-play-shop{gap:12px;padding:14px 12px}
 body .coin-backdrop .coin-dialog .coin-area .coin-play-shop .coin-buy-sparkle{width:66px;height:66px}
 body .coin-backdrop .coin-dialog .coin-area .coin-daily-entries{gap:14px}
 body .coin-backdrop .coin-dialog .coin-area .coin-daily-art{width:68px;height:68px}
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face{gap:12px;padding:14px 12px}
}

body .coin-backdrop .coin-dialog .coin-area .coin-languages-copy{min-width:0}
@media(max-width:380px){body .coin-backdrop .coin-dialog .coin-area .coin-languages-art{width:76px;height:76px}}
/* Match the larger hub artwork when the daily reward chooser opens. */
body #sano-daily-rewards :is(.sano-mini-wheel,.sano-calendar-art){width:68px;height:68px}

body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-play-shop{--topic-fill:#f38d9b;--topic-edge:#ce5269;--topic-ink:#6e2035;--coin-plate-face:linear-gradient(140deg,#ffd9df,#f698a6);--coin-plate-edge:#c95168;--coin-plate-rim:#fff1f3;--coin-plate-light:#fff0f3;--coin-plate-ink:#712638;--coin-plate-glow:#ef718b}
body .coin-backdrop .coin-dialog .coin-area .coin-play-shop .coin-buy-sparkle{background:none;border:0;box-shadow:none;filter:drop-shadow(0 0 9px #f56f8a55)}

/* Family has its own purple surface; balances read as information, not actions. */
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-family{--coin-plate-face:linear-gradient(145deg,#eee2ff,#c6a5ec);--coin-plate-edge:#8d62ba;--coin-plate-rim:#f6edff;--coin-plate-light:#fcf7ff;--coin-plate-ink:#4c2b70;--coin-plate-glow:#ab82db;display:flex;width:100%;max-width:none;min-height:112px;gap:18px;padding:14px 20px;justify-content:center;text-align:left}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-family .coin-buy-sparkle{width:80px;height:80px;flex:0 0 80px;background:none;box-shadow:none;filter:drop-shadow(0 0 10px #c196ed80)}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-family .coin-buy-sparkle>svg{width:100%;height:100%}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals{gap:12px;width:min(330px,100%);margin:0 auto 16px;justify-content:center}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section{--coin-plate-face:#fff8df;--sano-surface-shadow:0 0 16px #e9b12a30;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:8px;row-gap:2px;min-height:76px;height:auto;aspect-ratio:auto;padding:12px;border:1px solid #f1dc9b;border-radius:22px;background:var(--coin-plate-face)!important;box-shadow:var(--sano-surface-shadow)!important;cursor:default}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>.coin-star-hero{--coin-plate-face:#eef8ff;--sano-surface-shadow:0 0 16px #58b3ea30;border-color:#c8e7f9}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section.coin-wallet-hero{--sano-surface-shadow:0 0 16px #e9b12a30}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section :is(.coin-balance,small){justify-self:stretch;width:auto;min-width:0}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section::before,body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section::after{display:none}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals .coin-hero-art{grid-column:1;grid-row:1/3;width:40px;height:40px;margin:0}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals .coin-balance{grid-column:2;grid-row:1;margin:0;text-align:left;font-size:clamp(24px,5vw,32px);line-height:1.1}
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals small{grid-column:2;grid-row:2;margin:0;text-align:left;font-size:14px;line-height:1.3}
@media(max-width:380px){body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals{gap:8px}body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section{grid-template-columns:32px minmax(0,1fr);column-gap:6px;padding:8px;min-height:80px}body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals .coin-hero-art{width:32px;height:32px}body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-family{gap:10px;padding:12px}body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-family .coin-buy-sparkle{width:72px;height:72px;flex-basis:72px}}
@media(forced-colors:active){body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-collection-totals>section{background:Canvas!important;border-color:CanvasText;box-shadow:none!important}}

/* Short, wide reward rows keep artwork, copy and action beside one another. */
body #sano-daily-rewards .sano-dialog:has(.sano-reward-list){width:min(420px,100%)}
body #sano-daily-rewards .sano-reward-list{grid-template-columns:minmax(0,1fr);gap:16px}
body #sano-daily-rewards .sano-reward:is(.sano-spin,.sano-checkin,.sano-watch){display:grid;grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:auto;align-content:center;align-items:center;justify-items:stretch;gap:12px;aspect-ratio:auto;width:100%;min-height:98px;padding:14px 16px;border-radius:24px;text-align:left}
body #sano-daily-rewards .sano-reward .sano-icon{grid-column:1;grid-row:1;width:52px;height:52px;margin:0}
body #sano-daily-rewards .sano-reward .sano-icon :is(.sano-mini-wheel,.sano-calendar-art){width:100%;height:100%;min-width:0}
body #sano-daily-rewards .sano-reward .sano-reward-copy{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;width:100%;text-align:left}
body #sano-daily-rewards .sano-reward .sano-row-action{grid-column:3;grid-row:1;position:relative;inset:auto;transform:none;justify-self:end;min-width:52px;margin:0}
body #sano-daily-rewards .sano-reward-name{font-size:16px;line-height:1.3;white-space:normal;overflow-wrap:normal}
body #sano-daily-rewards .sano-reward-description{font-size:12px;line-height:1.4;white-space:normal}
body .coin-backdrop .coin-access-area .coin-daily-entries{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 22px}
body .coin-backdrop .coin-access-area .coin-daily-entry{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;min-width:0;min-height:98px;padding:14px 30px 14px 16px;column-gap:12px;row-gap:3px;text-align:left}
body .coin-backdrop .coin-access-area .coin-daily-entry .coin-daily-art{grid-column:1;grid-row:1/3;width:48px;height:48px;margin:0}
body .coin-backdrop .coin-access-area .coin-daily-entry strong{grid-column:2;grid-row:1;justify-self:start}
body .coin-backdrop .coin-access-area .coin-daily-entry small{grid-column:2;grid-row:2;justify-self:start}
body .coin-backdrop .coin-access-area .coin-daily-entry strong{font-size:16px;line-height:1.3;white-space:normal}
body .coin-backdrop .coin-access-area .coin-daily-entry small{font-size:12px;line-height:1.4}
body .coin-backdrop .coin-access-area .coin-family{min-height:70px;margin-top:12px}
body .coin-backdrop .coin-access-area .coin-family .coin-buy-sparkle{width:48px;height:48px;flex-basis:48px}
body #sano-daily-rewards .sano-reward.sano-watch.watch-earn-tile{grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:auto auto;width:100%;max-width:none;min-height:98px;margin:0;padding:14px 16px;column-gap:12px;row-gap:3px}
body #sano-daily-rewards .sano-watch.watch-earn-tile .watch-earn-art{grid-column:1;grid-row:1/3;width:48px;height:48px}
body #sano-daily-rewards .sano-watch.watch-earn-tile .watch-earn-label{grid-column:2;grid-row:1;justify-self:start;text-align:left}
body #sano-daily-rewards .sano-watch.watch-earn-tile .watch-earn-status{grid-column:2;grid-row:2;justify-self:start;text-align:left}
body #sano-daily-rewards .sano-watch.watch-earn-tile .watch-earn-badge{position:relative;inset:auto;grid-column:3;grid-row:1/3;justify-self:end}
@media(max-width:359px){body #sano-daily-rewards .sano-reward:is(.sano-spin,.sano-checkin,.sano-watch){grid-template-columns:42px minmax(0,1fr) auto;min-height:94px;padding:12px 10px;gap:8px}body #sano-daily-rewards .sano-reward .sano-icon{width:42px;height:42px}body #sano-daily-rewards .sano-reward-name{font-size:14px}body #sano-daily-rewards .sano-reward .sano-row-action{min-width:45px;padding-inline:7px}}

.drawing-play-shop{display:flex;justify-content:center;margin:16px 0}
.drawing-shop-button{display:flex!important;align-items:center;gap:10px;min-height:68px;padding:8px 20px!important;background:linear-gradient(145deg,#ffecb8,#ffd08d)!important;color:#68431c!important;border:2px solid #fff5d5!important;border-radius:22px!important;box-shadow:0 4px 0 #d6a55a!important}
.drawing-shop-button>span:first-child{display:flex;width:52px;height:52px}.drawing-shop-button svg{width:100%;height:100%}
.drawing-shop-button>span:last-child{display:flex;flex-direction:column;gap:3px;text-align:left}.drawing-shop-button strong{font-size:17px}.drawing-shop-button small{font-size:12px}

body .coin-backdrop .coin-access-area :is(.coin-daily-entry,.coin-daily-entries)[hidden]{display:none!important}
body .coin-backdrop .coin-access-area .coin-daily-entries:has(>.coin-daily-entry[hidden]){grid-template-columns:1fr}

/* Paid entry uses unused daily gifts before membership or native video offers. */
body :is(.coin-backdrop,#overlay) .coin-dialog .coin-access-area :is([data-access-fallback],[data-daily-loading],[data-coin="retry-daily"])[hidden]{display:none!important}
.coin-daily-loading{display:grid;justify-items:center;align-content:center;min-height:120px;gap:12px}
.coin-daily-spinner{width:34px;height:34px;border:4px solid #e9d8ba;border-top-color:#b17d25;border-radius:50%;animation:coin-daily-loading-spin 1s linear infinite}
.coin-daily-loading.is-retry .coin-daily-spinner{display:none}
@keyframes coin-daily-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.coin-daily-spinner{animation:none}}

/* Daily gifts use the same soft surfaces as the shop and Family tiles. */
@media(forced-colors:none){
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-checkin{
  --coin-plate-face:linear-gradient(145deg,#d8fae8,#83d6ac);--coin-plate-edge:#60ae89;--coin-plate-rim:#f4fff8;--coin-plate-light:#fff;--coin-plate-ink:#285741;--coin-plate-glow:#8bd0ab;
 }
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-spin{
  --coin-plate-face:linear-gradient(145deg,#fff1bd,#f6cf65);--coin-plate-edge:#c19b47;--coin-plate-rim:#fffdf2;--coin-plate-light:#fff;--coin-plate-ink:#6b5029;--coin-plate-glow:#ebca7b;
 }
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry{
  border:2px solid var(--coin-plate-rim);border-bottom:3px solid var(--coin-plate-edge);border-radius:23px;
 }
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry:not(.answer-wrong){
  --sano-surface-shadow:inset 0 2px 2px #ffffffa6,0 3px 0 var(--coin-plate-edge),0 8px 24px color-mix(in srgb,var(--coin-plate-glow) 26%,transparent);
  box-shadow:var(--sano-surface-shadow)!important;
 }
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry::before{
  inset:0;border-radius:inherit;background:linear-gradient(155deg,#ffffff80,transparent 65%);opacity:.6;
 }
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry::after{opacity:.25}
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry strong{color:var(--coin-plate-ink);text-shadow:0 1px #ffffffa6;line-height:1.35}
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-art>svg{filter:drop-shadow(0 4px 4px #37664b20)}
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry>.coin-daily-count{top:9px;right:9px;background:linear-gradient(145deg,#ff8b9e,#e85a77);box-shadow:0 2px 6px #b33d5b24}
 body :is(.coin-backdrop,#overlay) .coin-dialog .coin-area .coin-daily-entry:is(:disabled,.is-claimed){opacity:.85}
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming{
  --topic-fill:#d6eafa;--topic-edge:#98bddb;--topic-ink:#254e70;--action-light:#9bc5e8;
 }
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face{
  border:3px solid #f6fbff;border-bottom:4px solid #98bddb;border-radius:inherit;
  background:linear-gradient(145deg,#f0f8ff,#c4e0f6)!important;color:#254e70;
  box-shadow:inset 0 2px 2px #ffffffa6,0 3px 0 #98bddb,0 10px 28px #79add033!important;
 }
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face::before{
  inset:0;border-radius:inherit;background:linear-gradient(155deg,#ffffff80,transparent 65%);opacity:.6;animation:none!important;transform:none!important;
 }
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face::after{opacity:.25}
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-art svg{opacity:1}
}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming:not(.answer-wrong),
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face{
 animation:none!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important;
}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face{gap:22px;padding:18px 22px}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-art{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:8px;width:150px;height:82px;flex:0 0 150px;margin:0}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-art>svg{flex:0 0 44px;width:44px;height:30px;margin:0;filter:drop-shadow(0 3px 3px #345f8526)}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-art>svg>svg{width:100%;height:100%;filter:none}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming strong{line-height:1.25;text-wrap:balance}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming small{line-height:1.4}
@media(max-width:480px){
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming>.game-tile-face{gap:12px;padding:16px 12px}
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-art{width:126px;flex-basis:126px;gap:6px}
 body .coin-backdrop .coin-dialog .coin-area .coin-languages-art>svg{width:38px;height:27px;flex-basis:38px}
}

/* Unavailable feedback must sit above the resting tile finish. */
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming.answer-wrong{animation:sano-reward-denied-jiggle 560ms ease-in-out 1!important;filter:none!important;transform-origin:center}
body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming.answer-wrong>.game-tile-face{border-color:#f16b81;box-shadow:inset 0 2px 2px #ffffffa6,0 3px 0 #cf546d,0 0 14px 5px #ef426b88,0 0 32px 10px #ed42664d!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-languages-coming.answer-wrong{animation:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){body .coin-backdrop .coin-dialog .coin-area .coin-languages-coming.answer-wrong{animation:none!important;transform:none!important}}
@media(forced-colors:none){body #sano-daily-rewards .sano-reward.sano-checkin{--coin-plate-face:linear-gradient(145deg,#d8fae8,#83d6ac);--coin-plate-edge:#60ae89}body #sano-daily-rewards .sano-reward.sano-spin{--coin-plate-face:linear-gradient(145deg,#fff1bd,#f6cf65);--coin-plate-edge:#c19b47}body #sano-daily-rewards .sano-reward:is(.sano-checkin,.sano-spin){border-width:2px;border-bottom-width:3px}}

/* Drawing tools keep the warm glow of their yellow shop tile. */
body :is(#app,.coin-dialog) .drawing-shop-button{--action-light:#f3bd30;--sano-surface-glow:#f3bd30;--sano-surface-shadow:inset 0 2px 1px #fff9dd,0 4px 0 #d6a55a,0 0 20px #f7c94470;box-shadow:var(--sano-surface-shadow)!important;filter:none}
body :is(#app,.coin-dialog) .drawing-shop-button:is(:hover,:focus-visible){--sano-surface-shadow:inset 0 2px 1px #fff9dd,0 4px 0 #d6a55a,0 0 8px #ffd85b,0 0 28px #f7c944aa;outline-color:#a57014}
body :is(#app,.coin-dialog) .drawing-shop-button:active{--sano-surface-shadow:inset 0 2px 5px #b7812422,0 2px 0 #d6a55a,0 0 22px #f7c94499}
body #app>.foundations-shell,body #app:has(.mountain-game-header)>#adventure-root{min-height:calc(100dvh - var(--toolbar-height) - 56px + 1px)}

/* Sano stylesheet: screen-text-pill.css */
/* One text-language control in toolbars, sheets and the isolated account UI. */
.screen-text-choice.screen-text-choice{display:flex;align-items:center;flex:0 0 auto;gap:0;padding:0;margin:0;border:0;border-radius:999px;white-space:nowrap;background:#f5faffc9;box-shadow:inset 0 1px 1px #fff,0 0 5px #ffffffc9,0 0 14px 3px #91caff45,0 0 24px 5px #91caff18;font:750 15px/1.55 system-ui}
.screen-text-choice.screen-text-choice>button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:999px;background:#edf5ff;color:#466184;font:inherit;box-shadow:none;touch-action:manipulation;cursor:pointer}
.screen-text-choice.screen-text-choice>button:is([data-value=ne],[data-language=ne]){width:44px;min-width:44px;font-size:17px}
.screen-text-choice.screen-text-choice>button[aria-pressed=true]{background:#a0e6bc;color:#145c37;box-shadow:0 0 10px 2px #54d69b55}
.screen-text-choice.screen-text-choice .screen-text-label{font:inherit}
.screen-text-choice.screen-text-choice>button:focus-visible{outline:2px solid #0867ed;outline-offset:2px}
@media(forced-colors:active){.screen-text-choice.screen-text-choice{border:1px solid ButtonText;box-shadow:none}.screen-text-choice.screen-text-choice>button[aria-pressed=true]{background:Highlight;color:HighlightText;outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}}
/* One keyboard stop and one full-width hit target; the two labels are visual. */
button.screen-text-choice[data-screen-text-toggle]{appearance:none;min-width:88px;min-height:44px;text-align:center;text-transform:none;letter-spacing:normal;cursor:pointer;touch-action:manipulation}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:#edf5ff;color:#466184;font:inherit;pointer-events:none}
.screen-text-choice.screen-text-choice .screen-text-flag{display:grid;place-items:center;width:23px;height:25px;line-height:0}
.screen-text-choice.screen-text-choice .screen-text-flag[lang=ne]{height:28px}
.screen-text-choice.screen-text-choice .screen-text-flag>svg{display:block;width:100%;height:100%;overflow:visible}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:#a0e6bc;color:#145c37;box-shadow:0 0 10px 2px #54d69b55}
button.screen-text-choice[data-screen-text-toggle]:focus-visible{outline:3px solid #0867ed;outline-offset:3px}
@media(forced-colors:active){button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:Highlight;color:HighlightText;outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}}


/* One visual surface inside a 44px hit target. Match the shared selector's
   specificity so its old outer background/halo cannot form a second rim. */
body button.screen-text-choice.screen-text-choice[data-screen-text-toggle]{position:relative;isolation:isolate;box-sizing:border-box;justify-content:center;width:88px;height:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
button.screen-text-choice[data-screen-text-toggle]::before{content:"";position:absolute;inset:4px 2px;border:0;border-radius:999px;background:#f5faffc9;box-shadow:0 0 13px 2px #91caff3d;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);pointer-events:none}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option{position:relative;z-index:1;flex-basis:40px;width:40px;height:36px;background:transparent}
button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:#a0e6bc;box-shadow:0 0 6px #54d69b44}
@media(forced-colors:active){
 button.screen-text-choice[data-screen-text-toggle]::before{border:1px solid ButtonText;background:Canvas;box-shadow:none}
 button.screen-text-choice[data-screen-text-toggle]>.screen-text-option[data-selected=true]{background:Highlight;color:HighlightText;box-shadow:none}
}

/* The UK flag catches a gentle breeze, anchored at its hoist. Animate only the
   artwork, keeping the language switch and its active marker steady. */
.screen-text-choice.screen-text-choice .screen-text-flag[lang=en]>svg {
 transform-origin:0 50%;animation:sano-uk-flag-breeze 4.05s ease-in-out infinite;
 filter:drop-shadow(1px 2px 1px #14265324);
}
@keyframes sano-uk-flag-breeze {
 0%,100% {transform:perspective(180px) rotateY(-7deg) skewY(-2deg)}
 50% {transform:perspective(180px) rotateY(7deg) skewY(2deg)}
}
body:is([data-motion=reduce],[data-reduced-motion=true]) .screen-text-choice .screen-text-flag[lang=en]>svg {animation:none;transform:none}
body[data-page-hidden=true] .screen-text-choice .screen-text-flag[lang=en]>svg {animation-play-state:paused}
@media(prefers-reduced-motion:reduce),(forced-colors:active) {
 .screen-text-choice.screen-text-choice .screen-text-flag[lang=en]>svg {animation:none;transform:none}
}

/* Sano stylesheet: page-rhythm.css */
/* Shared page rhythm. Keep the toolbar, navigation header and learning content
   separate; title length must not decide the size of its letters. */
body #app {
 --sano-heading-scale:.6153846154;
 --sano-header-content-gap:32px;
 --sano-title-after:24px;
 --sano-subtitle-size:22px;
}
/* Intrinsic SVG metrics preserve equal letter sizes for one/two-line titles.
   Scope to headings: logo, button lettering and lesson targets stay intact. */
body #app :is(h1,h2,h3,.sc-title) > svg[data-ui-heading][style*="--sano-heading-width"],
body #app .sc-title > svg[data-ui-heading][style*="--sano-heading-width"] {
 display:block;
 width:calc(var(--sano-heading-width) * var(--sano-heading-scale))!important;
 height:auto!important;
 max-width:100%!important;
 max-height:none!important;
 margin-inline:auto;
 overflow:visible;
}
body #app h1.brand-heading,
body #app :is(.topic-picker,.simple-topic-picker,.scribble-game-screen) > .brand-heading,
body #app .topic-learn-hub.learn-landing > h1,
body #app :is(.companion-choice,.learning-course-choice,.voice-language-choice) > h1 {
 width:100%!important;
 max-width:100%!important;
 margin:0 auto var(--sano-title-after)!important;
 padding:0;
 line-height:0;
}
/* Each onboarding screen has the same top alignment and action spacing.
   Choices remain scrollable on short screens instead of crowding Back. */
body #app :is(.companion-choice,.learning-course-choice,.voice-language-choice) {
 box-sizing:border-box;
 justify-content:start;
 align-content:start;
 padding-top:32px;
 padding-bottom:max(36px,env(safe-area-inset-bottom));
 gap:18px;
}
body #app :is(.companion-choice,.learning-course-choice,.voice-language-choice) > h1 {margin-bottom:6px!important}
/* The companion screen is a grid. Keep its single track stretched when the
   content is top-aligned so its heading and actions remain horizontally centred. */
body #app .companion-choice {grid-template-columns:minmax(0,1fr)}
body #app .companion-choice > .companion-choices {margin-top:0}
body #app :is(.companion-choice,.learning-course-choice,.voice-language-choice) > .companion-next-slot {margin-top:46px}
body #app :is(.companion-choice,.learning-course-choice,.voice-language-choice) > .difficulty-back {margin-top:10px}

/* One compact gap below the fixed Back / Sano row at every screen size.
   Its 32px still clears the scroll pane's 28px feather. The empty legacy slot
   reserves 24px without controls, caption, focus target or another page gap. */
body #app > .foundations-shell > .sano-page-scroll {
 padding-top:calc(var(--sano-header-content-gap) - 24px)!important;
}
body #app .foundations-shell > .sano-page-scroll > .learning-course-control.learning-course-switch.learning-course-spacer {
 height:24px!important;
 min-height:24px!important;
 margin:0 auto!important;
 padding:0!important;
}
body #app .foundations-shell > .sano-page-scroll > .simple-content {
 padding-top:0!important;
 margin-top:0!important;
}
body #app .simple-content > :first-child {
 margin-top:0!important;
 padding-top:0!important;
}
body #app .sano-game-scroll {padding-top:var(--sano-header-content-gap)!important}
body #app .sano-game-scroll > :first-child {margin-top:0!important}
body #app :is(.simple-topic-picker,.topic-picker,.scribble-game-screen) > .brand-heading:first-child {margin-top:0!important}

body #app #tab-content :is(.songs-heading,.page-intro,.game-home) h1:not(:has(svg)),
body #app .simple-learning-activity > .spelling-page-title {
 font-size:calc(56px * var(--sano-heading-scale))!important;
 line-height:1.3;
 margin-top:0;
 margin-bottom:var(--sano-title-after);
}

/* Supporting headings/instructions use one readable scale, without resizing
   letters, numbers, equations, lyrics or drawing surfaces. Colours are inherited. */
body #app :is(.music-area > h2,.music-area [data-music-content] > h2,.song-stage > h2,.songs-heading p,.maths-intro,.maths-instruction,.music-step h3,.tap-invitation) {
 font-size:var(--sano-subtitle-size)!important;
 line-height:1.5;
 text-wrap:balance;
}
body #app .music-area > h2 {margin:0 0 var(--sano-title-after)}
body #app .music-area [data-music-content] > h2 {margin:0 0 var(--sano-title-after)}

/* Smaller artwork, not smaller touch targets. */
body #app > .corner-tools {padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px;min-height:64px}
body #app .corner-tools > .companion-switch .companion-switch-face {width:28px;height:28px}
body #app .corner-tools > .companion-switch .companion-switch-face img {width:44px;height:44px}

@media(max-width:389px) {
 body #app {--sano-heading-scale:.54;--sano-subtitle-size:20px}
}
@media(max-width:359px) {
 body #app {--sano-heading-scale:.48}
 body #app .corner-tools > .companion-switch .companion-switch-face {width:24px;height:24px}
 body #app .corner-tools > .companion-switch .companion-switch-face img {width:38px;height:38px}
}
@media(max-height:480px) and (orientation:landscape) {
 body #app {--sano-heading-scale:.48;--sano-title-after:18px;--sano-subtitle-size:20px}
 body #app :is(.companion-choice,.learning-course-choice,.voice-language-choice) {padding-top:20px;gap:14px}
}


/* Match the compact visual toolbar without reducing any touch target. */
body #app > .corner-tools > .companion-switch {border-width:0!important}
body #app > .corner-tools > :is(.companion-switch,.coin-corner,.grownup-corner) {backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body #app > .corner-tools > .companion-switch > button {box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;border-width:0!important}
body #app > .corner-tools > button[data-action]:is(.coin-corner,.grownup-corner) {
 box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;
 position:relative;inset:auto;isolation:isolate;border-width:0!important;background:transparent!important;
 --sano-surface-shadow:none;
 box-shadow:none!important;
}
body #app > .corner-tools > .coin-corner {padding:5px}
body #app > .corner-tools > .grownup-corner {padding:4px;border-radius:16px}
body #app > .corner-tools > .grownup-corner > :is(svg,.grownup-portrait) {width:32px;height:32px}
/* A single soft face inside each full-size touch target. No outer/inset rims. */
body #app > .corner-tools > :is(.coin-corner,.grownup-corner)::before {
 content:"";position:absolute;inset:4px;z-index:-1;pointer-events:none;
 border:0;border-radius:50%;background:#f5faffc9;box-shadow:0 0 13px 2px #91caff3d;
 backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
body #app > .corner-tools > .coin-corner::before {box-shadow:0 0 13px 2px #f2ce4455}
body #app > .corner-tools > .grownup-corner::before {border-radius:12px}
/* Focus indicators are still shown for keyboard navigation. */
@media(forced-colors:active) {
 body #app > .corner-tools > button[data-action]:is(.coin-corner,.grownup-corner) {border:1px solid ButtonText!important}
 body #app > .corner-tools > :is(.coin-corner,.grownup-corner)::before {background:Canvas;box-shadow:none}
}

/* Sano stylesheet: learning-touch-guard.css */
/* Every app page and sheet: long holds do not select labels or lift artwork.
   Keep this inventory aligned with learning-touch-guard.mjs. */
:where(#app,#overlay,[data-sano-touch-root],#sano-download-banner,.wallet-account-host,.coin-backdrop,.foundations-shell,.clean-welcome,.learning-course-choice,.companion-choice,.web-entry-choice,.clean-onboard,.mountain-game,.corner-tools,.coin-dialog,.step-prompt-backdrop,.topic-picker,.simple-learning-activity,.activity-content,.scribble-page,.flag-colouring,.learning-checks,[data-learning-touch]),
:where(#app,#overlay,[data-sano-touch-root],#sano-download-banner,.wallet-account-host,.coin-backdrop,.foundations-shell,.clean-welcome,.learning-course-choice,.companion-choice,.web-entry-choice,.clean-onboard,.mountain-game,.corner-tools,.coin-dialog,.step-prompt-backdrop,.topic-picker,.simple-learning-activity,.activity-content,.scribble-page,.flag-colouring,.learning-checks,[data-learning-touch]) *,
:host(.wallet-account-host),:host(.wallet-account-host) * {
 -webkit-user-select:none!important;
 user-select:none!important;
 -webkit-touch-callout:none!important;
}
/* Allow native scrolling without double-tap or pinch zoom on the app. Zoom
   intersects ancestor policy; drawing canvases retain touch-action: none. */
:where(#app,#overlay,[data-sano-touch-root],#sano-download-banner,.wallet-account-host,.coin-backdrop,.foundations-shell,.clean-welcome,.learning-course-choice,.companion-choice,.web-entry-choice,.clean-onboard,.mountain-game,.corner-tools,.coin-dialog,.step-prompt-backdrop,.topic-picker,.simple-learning-activity,.activity-content,.scribble-page,.flag-colouring,.learning-checks,[data-learning-touch]),:host(.wallet-account-host) {
 touch-action:pan-x pan-y;
}
:where(#app,#overlay,[data-sano-touch-root],#sano-download-banner,.wallet-account-host,.coin-backdrop,.foundations-shell,.clean-welcome,.learning-course-choice,.companion-choice,.web-entry-choice,.clean-onboard,.mountain-game,.corner-tools,.coin-dialog,.step-prompt-backdrop,.topic-picker,.simple-learning-activity,.activity-content,.scribble-page,.flag-colouring,.learning-checks,[data-learning-touch]) :is(img,svg,canvas),
:host(.wallet-account-host) :is(img,svg,canvas) {
 -webkit-user-drag:none!important;
}
/* Real adult text fields and deliberately selectable recovery content
   remain editable even when nested in a learning dialog. No focus is blocked. */
:where(#app,#overlay,[data-sano-touch-root],#sano-download-banner,.wallet-account-host,.coin-backdrop,.foundations-shell,.clean-welcome,.learning-course-choice,.companion-choice,.web-entry-choice,.clean-onboard,.mountain-game,.corner-tools,.coin-dialog,.step-prompt-backdrop,.topic-picker,.simple-learning-activity,.activity-content,.scribble-page,.flag-colouring,.learning-checks,[data-learning-touch]) :is(input:not([inputmode="none"]),textarea,select,option,[contenteditable]:not([contenteditable="false"]),[contenteditable]:not([contenteditable="false"]) *,.wallet-recovery,.wallet-recovery *,[data-selectable],[data-selectable] *,[data-native-text],[data-native-text] *),
:host(.wallet-account-host) :is(input:not([inputmode="none"]),textarea,select,option,[contenteditable]:not([contenteditable="false"]),[contenteditable]:not([contenteditable="false"]) *,.wallet-recovery,.wallet-recovery *,[data-selectable],[data-selectable] *,[data-native-text],[data-native-text] *) {
 -webkit-user-select:text!important;
 user-select:text!important;
 -webkit-touch-callout:default!important;
}

/* Small inherited/search text must not trigger iPhone focus zoom. Account and
   wallet fields already declare 16px; custom read-only keypads keep their size. */
@media (pointer:coarse) {
 #app :is(.search-field input,.setting input,.family-challenge input):not([inputmode="none"]),
 #overlay :is(.setting input,.family-challenge input):not([inputmode="none"]) {
  font-size:max(16px,1em);
 }
}

/* Sano stylesheet: onboarding-toolbar-blend.css */
/* The opening choices use the same feathered scrolling edge as the learning
   pages. Scope this to the app's direct children, not the course-choice sheet. */
@media(forced-colors:none){
 body #app>:is(.companion-choice,.learning-course-choice).sano-page-scroll{
  mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 28px,#000);
 }
 body #app>.corner-tools:has(+:is(.companion-choice,.learning-course-choice))::before{
  content:'';display:block;position:absolute;inset:-24px -36px -40px;
  z-index:0;pointer-events:none;background:transparent;border:0;outline:0;box-shadow:none;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 48%,#000b 65%,#0004 82%,transparent),linear-gradient(to right,transparent,#000 44px,#000 calc(100% - 44px),transparent);
  mask-composite:intersect;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 48%,#000b 65%,#0004 82%,transparent),linear-gradient(to right,transparent,#000 44px,#000 calc(100% - 44px),transparent);
  -webkit-mask-composite:source-in;
 }
 body #app>.corner-tools:has(+:is(.companion-choice,.learning-course-choice))>*{position:relative;z-index:1}
}
@media(prefers-reduced-transparency:reduce){
 body #app>.corner-tools:has(+:is(.companion-choice,.learning-course-choice))::before{display:none}
}

/* Sano stylesheet: songs-player-layout.css */
/* A selected song owns the space below the shared header. Its footer remains
   in normal layout, while the mascot and lyrics have their own scroll pane. */
body #app>.foundations-shell:has(#songs-root .song-stage)>.sano-page-scroll{
 display:flex;flex-direction:column;overflow:hidden;
 /* Keep the shared header clear, with less empty space before the performer. */
 padding-top:max(0px,calc(var(--sano-header-content-gap,64px) - 48px))!important;
 padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));
 mask-image:none;-webkit-mask-image:none;
}
body #app>.foundations-shell:has(#songs-root .song-stage)>.sano-page-scroll>.learning-course-control{flex:none}
body #app>.foundations-shell:has(#songs-root .song-stage)>.sano-page-scroll>.simple-content{
 display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;width:100%;padding:0;
}
body #app #songs-root:has(.song-stage){display:flex;flex:1;min-height:0;min-width:0;width:100%}
body #app .songs-page:has(>.song-stage){display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;width:100%;max-width:880px;padding:0}
body #app .songs-page>.songs-heading:empty{display:none}
body #app .songs-page>.song-stage{flex:1;min-height:0;gap:0;overflow:hidden}
body #app .song-stage>.song-scroll{
 flex:1;min-height:0;min-width:0;width:100%;box-sizing:border-box;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;
 padding:12px 12px 18px;scroll-padding-block:12px 18px;
}
body #app .song-scroll:focus-visible{outline:2px solid #0867ed;outline-offset:-3px;border-radius:12px}
body #app .song-scroll>.song-performer{flex:none;float:none;inset:auto;transform:none;width:140px;height:140px;max-width:100%;margin:0 auto;padding:0;overflow:visible;background:transparent!important;box-shadow:none!important;filter:none!important}
body #app .song-scroll>.song-status{margin:6px 0 10px}
body #app .song-scroll>.song-status:empty{display:none}
body #app .song-scroll>.song-lyrics{width:min(100%,620px);min-width:0;margin:8px auto 0;padding:8px 0;box-sizing:border-box;font-size:clamp(18px,2.3vw,25px);line-height:1.65}
body #app .song-line-primary{display:block}
/* Pair each pronunciation with its lyric, large enough to read on a phone. */
body #app .song-line-support{display:block;margin-top:4px;font-family:Nunito,sans-serif;font-size:clamp(17px,.84em,22px);font-weight:650;line-height:1.65;color:#52677a;letter-spacing:normal;word-break:normal;overflow-wrap:break-word;hyphens:none;text-wrap:pretty}
body #app .is-current-line .song-line-support{color:#354b5d}
body #app .song-stage>.song-controls{
 position:static;flex:none;align-self:center;bottom:auto;
 margin:0 auto;padding:12px max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
}
@media(forced-colors:none){
 body #app .song-stage>.song-scroll{mask-image:linear-gradient(to bottom,transparent,#000 12px,#000);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 12px,#000)}
}
@media(orientation:landscape) and (max-height:650px){
 body #app .song-scroll>.song-lyrics{font-size:18px;line-height:1.5}
 body #app .song-stage>.song-controls{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
}


body #app .song-stage>.song-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:8px 8px 4px}
body #app .song-stage .song-controls>button{min-height:52px;min-width:135px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:3px solid white;border-bottom:5px solid #409c78;border-radius:24px;background:linear-gradient(140deg,#a8f1d1,#65d8a8);color:#164f40;font:800 17px/1.4 var(--joy-font);box-shadow:0 4px 12px #43c89525;touch-action:manipulation}
body #app .song-stage .song-controls>button[data-song-action="replay"]{background:linear-gradient(140deg,#ffe5a5,#ffd35a);border-bottom-color:#c99b2c;color:#614819}
body #app .song-stage .song-controls>button:disabled{opacity:.58;box-shadow:none}
body #app>.foundations-shell:has(#songs-root)>.sano-page-scroll>.learning-bottom-nav:not([hidden]){display:flex;flex:none;margin:0 auto;padding:4px 8px max(8px,env(safe-area-inset-bottom))}
@media(orientation:landscape) and (max-height:650px){body #app .song-stage>.song-controls{padding-top:4px}body #app .song-stage .song-controls>button{min-height:44px;padding-block:6px}}

/* Sano stylesheet: home-tile-motion.css */
/* Home icon motion stays inside the existing picture slot. No button, label,
   price badge or page layout participates in these animations. */
.home-landing .home-tile-art{display:block;position:relative;width:100%;height:100%;min-width:0;min-height:0;pointer-events:none;isolation:isolate}
.home-landing .home-tile-art>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;overflow:visible}
.home-landing .home-tile-art :where([data-home-motion-part],.sano-games-kite){animation-duration:6.4s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-fill-mode:both;animation-play-state:paused;animation-delay:var(--home-part-delay,0s)}
.home-landing .home-tile-art[data-motion-running=true] :is([data-home-motion-part],.sano-games-kite){animation-play-state:running}
.home-landing .home-tile-art [data-home-motion-extra]{opacity:0}
.home-landing .home-motion-book-leaf{transform-box:view-box;transform-origin:50% 50%;animation-name:home-book-page-turn;animation-duration:6.8s}
.home-landing .home-motion-knowledge-pen{transform-box:view-box;transform-origin:74% 70%;animation-name:home-knowledge-scribble;animation-duration:6.6s}
.home-landing .home-motion-knowledge-ink{stroke-dasharray:1;stroke-dashoffset:0;animation-name:home-knowledge-ink;animation-duration:6.6s}
.home-landing .home-tile-art .sano-games-kite{transform-origin:50% 50%;animation-name:home-kite-orbit;animation-duration:7s}
.home-landing .home-motion-song-note-a,.home-landing .home-motion-song-note-b{transform-box:view-box;transform-origin:50% 50%;animation-name:home-song-note-float;animation-duration:5.8s}
.home-landing .home-motion-song-note-b{--home-part-delay:2.4s}
.home-landing .home-motion-piano-key{transform-box:fill-box;transform-origin:50% 0;animation-name:home-piano-key-tap}
.home-landing .home-motion-guitar-strings{transform-box:fill-box;transform-origin:center;animation-name:home-guitar-strum;--home-part-delay:.7s}
.home-landing .home-motion-drum-stick-a{transform-box:view-box;transform-origin:30% 12.5%;animation-name:home-drum-left;--home-part-delay:1.2s}
.home-landing .home-motion-drum-stick-b{transform-box:view-box;transform-origin:70% 12.5%;animation-name:home-drum-right;--home-part-delay:1.2s}
.home-landing .home-motion-drum-head{transform-box:fill-box;transform-origin:center;animation-name:home-drum-head;--home-part-delay:1.2s}

@keyframes home-book-page-turn{0%,18%{opacity:0;transform:scaleX(1)}20%{opacity:1;transform:scaleX(1)}29%{opacity:1;transform:scaleX(.45)}34%{opacity:1;transform:scaleX(.04)}44%{opacity:1;transform:scaleX(-.96)}49%{opacity:0;transform:scaleX(-1)}56%,100%{opacity:0;transform:scaleX(1)}}
@keyframes home-knowledge-scribble{0%,14%,72%,100%{transform:translate(0,0)}23%{transform:translate(-38px,-48px)}28%{transform:translate(-25px,-55px)}33%{transform:translate(-14px,-48px)}36%{transform:translate(-7px,-45px)}39%{transform:translate(0,-48px)}44%{transform:translate(-38px,-26px)}50%{transform:translate(-27px,-31px)}57%{transform:translate(-16px,-26px)}}
@keyframes home-knowledge-ink{0%,17%{stroke-dashoffset:0}21%,23%{stroke-dashoffset:1}39%,44%{stroke-dashoffset:.34}57%,100%{stroke-dashoffset:0}}
@keyframes home-kite-orbit{0%,12%,86%,100%{transform:translate(0,0) rotate(0deg) scale(1)}27%{transform:translate(-25%,15%) rotate(-4deg) scale(.96)}42%{transform:translate(-70%,35%) rotate(-8deg) scale(.9)}57%{transform:translate(-45%,60%) rotate(4deg) scale(.97)}72%{transform:translate(-15%,38%) rotate(6deg) scale(1)}}
@keyframes home-song-note-float{0%,16%{opacity:0;transform:translate(0,7px) scale(.9)}24%{opacity:.8;transform:translate(1px,1px) scale(1)}48%{opacity:.68;transform:translate(4px,-8px) scale(1)}65%,100%{opacity:0;transform:translate(8px,-17px) scale(.9)}}
@keyframes home-piano-key-tap{0%,18%,27%,40%,49%,100%{transform:translateY(0) scaleY(1)}22%,44%{transform:translateY(1.7px) scaleY(.95)}}
@keyframes home-guitar-strum{0%,20%,42%,100%{transform:translateX(0)}23%,29%,35%{transform:translateX(.65px)}26%,32%,38%{transform:translateX(-.65px)}}
@keyframes home-drum-left{0%,18%,32%,46%,100%{transform:rotate(0deg)}23%,37%{transform:rotate(-12deg)}27%,41%{transform:rotate(3deg)}}
@keyframes home-drum-right{0%,25%,39%,53%,100%{transform:rotate(0deg)}30%,44%{transform:rotate(12deg)}34%,48%{transform:rotate(-3deg)}}
@keyframes home-drum-head{0%,26%,32%,40%,46%,100%{transform:scaleY(1)}28%,42%{transform:scaleY(.96)}}

/* The controller also pauses offscreen/covered icons. These direct guards keep
   newly inserted icons calm before observers or preference listeners run. */
body[data-page-hidden=true] .home-landing .home-tile-art :is([data-home-motion-part],.sano-games-kite){animation-play-state:paused!important}
body[data-motion=reduce] .home-landing .home-tile-art :is([data-home-motion-part],.sano-games-kite),body[data-reduced-motion=true] .home-landing .home-tile-art :is([data-home-motion-part],.sano-games-kite){animation:none!important;transform:none!important}
body[data-motion=reduce] .home-landing .home-tile-art [data-home-motion-extra],body[data-reduced-motion=true] .home-landing .home-tile-art [data-home-motion-extra]{opacity:0!important}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.home-landing .home-tile-art :is([data-home-motion-part],.sano-games-kite){animation:none!important;transform:none!important}.home-landing .home-tile-art [data-home-motion-extra]{opacity:0!important}}

/* Sano stylesheet: storybook.css */
/* A reading surface, with the same rounded glossy controls as the Sano tiles. */
.storybook {width:min(100%,1060px);margin-inline:auto;color:#254e6a;padding-bottom:max(24px,env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.storybook *, .storybook *::before, .storybook *::after {box-sizing:border-box}
.storybook button {font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.story-shelf h1 {text-align:center;color:#15965b;margin:0;font-size:clamp(2rem,5vw,3rem);line-height:1.3}
.story-shelf h1 svg {max-width:100%;height:auto}
.story-shelf-intro {text-align:center;font-size:1.25rem;font-weight:750;margin:16px 0 26px}
.story-shelf-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;max-width:960px;margin:28px auto 0;padding:0 6px 8px}
.storybook .story-book-card {display:flex;flex-direction:column;gap:16px;min-width:0;padding:12px 12px 22px 27px;background:linear-gradient(150deg,#fffef6,#d9f2e5);border:3px solid #fff;border-radius:8px 22px 22px 8px;box-shadow:3px 3px 0 #f7faf2,6px 6px 0 #7eae9b60,0 0 28px #95d6c04a;overflow:hidden;isolation:isolate;position:relative;color:#275d55;transition:translate .2s,box-shadow .2s;line-height:1.4;font-weight:800}
.story-book-card:nth-child(2) {background:linear-gradient(150deg,#fffef6,#ffedb8);color:#6b5735;box-shadow:3px 3px 0 #fffcef,6px 6px 0 #d5bc7860,0 0 28px #f3dc9b4a}
.story-book-card:nth-child(3) {background:linear-gradient(150deg,#fffef6,#e2ddf7);color:#535681;box-shadow:3px 3px 0 #f9f7ff,6px 6px 0 #a797cc60,0 0 28px #bab0e54a}
.story-book-card:before {content:"";position:absolute;left:0;top:0;bottom:0;width:22px;border-radius:5px 0 0 5px;background:linear-gradient(90deg,#467f6b40,#fff9 35%,#467f6b26 70%,transparent);border-right:1px solid #729d8c33;pointer-events:none;z-index:2}
/* Folded page signatures and a shaded hinge make the left edge a binding. */
.story-book-binding {position:absolute;left:2px;top:8px;bottom:8px;width:15px;z-index:3;pointer-events:none;border-radius:4px 0 0 4px;background:linear-gradient(90deg,#55736955,#fffdf1 38%,#d3d9c7 70%,#fffef5);box-shadow:1px 0 2px #3c5a4326}
.story-book-binding:before {content:"";position:absolute;inset:0 4px 0 0;background:linear-gradient(135deg,#fdfbf0 45%,#aeb8a699 48%,#fffdf5 54%) 0 0/100% 12px repeat-y;clip-path:polygon(35% 0,100% 0,100% 100%,35% 100%,0 96%,35% 92%,0 88%,35% 84%,0 80%,35% 76%,0 72%,35% 68%,0 64%,35% 60%,0 56%,35% 52%,0 48%,35% 44%,0 40%,35% 36%,0 32%,35% 28%,0 24%,35% 20%,0 16%,35% 12%,0 8%,35% 4%)}
.story-book-binding:after {content:"";position:absolute;inset:0 0 0 auto;width:3px;border-left:1px solid #6a806939;background:#fff8}
.story-book-card:after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffff4f 47%,transparent 65%);translate:-120% 0;animation:story-shine 8s ease-in-out infinite}
.story-book-card:focus-visible {outline:3px solid #236be6;outline-offset:4px}
.story-book-card:active {translate:0 3px}
.story-shelf-picture {display:block;position:relative;isolation:isolate;aspect-ratio:1;width:100%;border-radius:6px 13px 13px 6px;overflow:hidden}
.story-shelf-picture .story-shelf-sano {position:absolute;width:43%;height:auto;bottom:7%;left:5%;z-index:3}
.story-shelf-friend {position:absolute;width:32%;right:8%;bottom:6%;z-index:3}
.story-shelf-focus {position:absolute;width:31%;top:8%;left:37%;z-index:2}
.story-shelf-picture[data-world="little-garden"] .story-shelf-focus {top:30%;left:39%;width:28%}
.story-shelf-friend svg,.story-shelf-focus svg {display:block;width:100%;height:auto}
.story-card-heading {display:flex;flex-direction:column;gap:7px;width:100%;margin:auto 0;min-width:0}
.story-card-title {font-size:clamp(1.25rem,2.5vw,1.55rem);text-wrap:balance;padding-inline:4px;min-height:2.8em;display:grid;align-items:center}
.story-title-support {display:block;font-family:Nunito,sans-serif;font-size:clamp(.95rem,1.5vw,1.05rem);line-height:1.5;font-weight:700;color:#9f3143;text-wrap:balance;overflow-wrap:anywhere;letter-spacing:normal}
.story-rabbit {width:20%;left:28%;bottom:8%;z-index:5}
.story-tortoise {width:20%;right:10%;bottom:6%;z-index:4}
.story-kite {width:22%;left:38%;top:6%;z-index:3;transition:translate 1.2s,rotate 1.2s}
.story-ribbon {width:14%;left:71%;top:28%;z-index:4;transition:translate 1s,rotate 1s}
.story-bow {width:17%;left:51%;bottom:23%;z-index:6;transition:scale 1s,rotate 1s}
.story-bridge {width:29%;left:52%;bottom:10%;z-index:3}
.story-breeze {position:absolute;left:40%;top:31%;font-size:4rem;color:#fff9;opacity:0;transition:opacity .7s,translate 1s}
.story-adventure[data-world="kite"] .story-cloud {right:5%;width:22%;top:2%}
.story-adventure[data-world="kite"][data-scene="breeze"][data-played="true"] .story-breeze {opacity:1;translate:30px 0}
.story-adventure[data-world="kite"]:is([data-scene="kite"],[data-scene="fly"])[data-played="true"] .story-kite {translate:12% -12%;rotate:9deg}
.story-adventure[data-world="kite"]:is([data-scene="ribbon"],[data-scene="branch"])[data-played="true"] .story-ribbon {translate:-120% 115%;rotate:-30deg}
.story-adventure[data-world="kite"][data-scene="bow"] .story-bow>svg {scale:.7;transform-origin:center bottom;transition:scale 1s,rotate 1s}
.story-adventure[data-world="kite"][data-scene="bow"][data-played="true"] .story-bow>svg {scale:1;rotate:8deg}
.story-adventure[data-world="kite"][data-scene="bridge"][data-played="true"] .story-rabbit {translate:70% -3%;transition:translate 1.2s}
.story-owl {width:19%;left:3%;top:19%;z-index:5}
.story-fox {width:23%;right:3%;bottom:7%;z-index:5}
.story-moon {width:19%;left:58%;top:6%;z-index:1;filter:drop-shadow(0 0 10px #fcf2bb60)}
.story-adventure[data-world="moon"] .story-cloud {width:28%;left:53%;top:7%;right:auto;z-index:3;transition:translate 1.5s,opacity 1.5s}
.story-adventure[data-world="moon"] .story-sano {width:24%;left:10%;bottom:8%}
.story-pond {left:36%;bottom:7%;width:41%;height:24%;z-index:3}
.story-water-rings {display:block;width:75%;height:55%;border:3px solid #cae7eb85;border-radius:50%;opacity:0;transition:opacity .7s,scale 1s}
.story-moon-reflection {position:absolute;left:54%;bottom:14%;width:10%;height:10%;border-radius:50%;background:#f6ebbe;opacity:.7;filter:blur(2px);pointer-events:none;transition:opacity 1s}
.story-adventure[data-world="moon"]:is([data-scene="pond"],[data-scene="cloud"],[data-scene="fox"]) .story-moon-reflection {opacity:0}
.story-fireflies {width:28%;right:4%;top:34%;z-index:6;opacity:.45;transition:opacity .6s}
.story-adventure[data-world="moon"][data-played="true"] .story-fireflies {opacity:1}
.story-adventure[data-world="moon"]:is([data-scene="cloud"],[data-scene="moon"])[data-played="true"] .story-cloud {translate:-110% 0;opacity:.65}
.story-adventure[data-world="moon"]:is([data-scene="ripple"],[data-scene="pond"])[data-played="true"] .story-water-rings {opacity:1;scale:1.15;animation:story-ripple 2.3s ease-out 2}
.story-adventure[data-world="moon"][data-scene="ripple"][data-played="true"] .story-moon-reflection {animation:story-ripple 2.3s ease-out 2}
.story-adventure[data-world="moon"][data-scene="still"] .story-water-rings {opacity:1}
.story-adventure[data-world="moon"][data-scene="still"][data-played="true"] .story-water-rings {opacity:0;scale:1.3}
@keyframes story-ripple {0%{scale:.8;opacity:.7}100%{scale:1.3;opacity:.1}}
@media(max-width:749px){.story-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px;max-width:560px;margin:24px auto 0}.storybook .story-book-card{padding:9px 8px 16px 21px;gap:10px;border-radius:6px 17px 17px 6px}.story-book-card:before{left:0;width:17px}.story-book-binding{left:1px;width:12px;top:6px;bottom:6px}.story-card-heading{gap:5px}.story-card-heading .story-title-support{font-size:.9rem;line-height:1.4}.story-book-card:last-child{grid-column:1/-1;justify-self:center;width:calc((100% - 18px)/2)}.story-card-title{font-size:clamp(1.05rem,3vw,1.3rem);padding:0;line-height:1.35;min-height:4.05em}}
.story-cover {display:grid;justify-items:center;gap:24px;max-width:760px;margin:auto}
.story-cover h1 {width:100%;margin:0;text-align:center;color:#15965b;font-size:clamp(2rem,5vw,3rem);line-height:1.25}
.story-cover h1 svg {display:block;max-width:100%;height:auto;margin:auto}
.story-cover .story-scene {width:100%;aspect-ratio:1.55;box-shadow:0 12px 0 #a5cdb533,0 10px 36px #65b99b30}
.story-page-top {display:flex;align-items:center;justify-content:flex-end;margin-bottom:8px}
.story-page-number {margin:0;line-height:1.5;flex:none;font-size:1rem;color:#567184;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.story-spread {display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.story-scene {position:relative;isolation:isolate;aspect-ratio:1.5;overflow:hidden;overflow:clip;border:4px solid #fff;border-radius:32px;background:#def4eb;box-shadow:0 9px 0 #a5cdb533,0 8px 26px #80b7b52b}
.story-scenery {position:absolute;inset:0;pointer-events:none}
.story-scenery>svg {width:100%;height:100%;object-fit:cover}
.story-object {position:absolute;z-index:2;display:grid;place-items:center;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:40%;background:none;box-shadow:none;outline-offset:-3px;transform-origin:center bottom}
.story-object>svg {display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 4px 2px #366a6b16)}
.story-object>img {display:block;width:100%;height:auto;object-fit:contain;-webkit-user-drag:none;filter:drop-shadow(0 6px 4px #35766a22)}
.story-object:focus-visible {outline:3px dashed #246ee8;background:#ffffff24}
.story-sano {width:25%;left:5%;bottom:9%;z-index:5}
.story-pip {width:17%;right:10%;bottom:15%;z-index:4}
.story-sun {width:19%;top:4%;left:7%;z-index:1}
.story-cloud {width:25%;top:6%;right:14%;z-index:2}
.story-soil {position:absolute;left:42%;bottom:12%;width:24%;height:8%;border-radius:50%;background:radial-gradient(ellipse at 45% 15%,#bf956d,#98704f);box-shadow:inset 0 3px 2px #d8b691;z-index:1}
.story-seed {width:12%;left:48%;bottom:15%;z-index:4;transition:translate 1.1s,opacity 1.1s}
.story-plant {width:27%;left:41%;bottom:15%;z-index:3;transform-origin:center bottom}
.story-butterfly {width:19%;right:23%;top:22%;z-index:5}
.story-leaf {width:28%;left:40%;bottom:17%;z-index:6;rotate:25deg;transition:translate .9s,rotate .9s}
.story-gate {width:43%;left:33%;bottom:11%;z-index:6;transform-origin:left center;transition:transform 1.2s ease,opacity 1.2s}
.story-ladybird {width:9%;min-width:44px;right:4%;bottom:3%;z-index:5}
.story-rain {position:absolute;inset:29% 14% 20% 39%;z-index:3;pointer-events:none;opacity:0;transition:opacity .5s}
.story-rain i {position:absolute;left:calc(var(--drop)*10%);top:5%;width:5px;height:17px;border-radius:80% 40%;background:#66b8e6;rotate:15deg}
.story-sunshine {position:absolute;inset:0;background:radial-gradient(circle at 16% 18%,#fff5ad99,transparent 62%);z-index:1;opacity:0;pointer-events:none;transition:opacity 1s}
.story-petals {position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:6;opacity:0}
.story-petals i {position:absolute;left:calc(18% + var(--petal)*13%);top:10%;width:8px;height:11px;background:#ffdd7d;border-radius:80% 10%}
.story-scene[data-scene="cover"] .story-soil {opacity:.6}
.story-scene[data-scene="cover"] .story-sunshine {opacity:1}
.story-scene[data-scene="gate"] .story-pip {right:24%;bottom:24%}
.story-scene[data-scene="gate"][data-played="true"] .story-gate {transform:perspective(400px) rotateY(-65deg);opacity:.8}
.story-scene[data-scene="leaf"][data-played="true"] .story-leaf {translate:50% -40%;rotate:60deg}
.story-scene[data-scene="seed"][data-played="true"] .story-seed {translate:0 40%;opacity:0}
.story-scene[data-scene="rain"] .story-leaf {left:6%;bottom:44%;width:35%;rotate:65deg;z-index:6}
.story-scene:is([data-scene="cloud"],[data-scene="rain"])[data-played="true"] .story-rain {opacity:1}
.story-scene:is([data-scene="cloud"],[data-scene="rain"])[data-played="true"] .story-rain i {animation:story-raindrop 1.8s calc(var(--drop)*-.23s) 3 both}
.story-scene[data-scene="sun"] .story-plant>svg {scale:.5;transform-origin:center bottom;transition:scale 1.5s}
.story-scene[data-scene="sun"][data-played="true"] .story-plant>svg {scale:.83}
.story-scene[data-scene="sun"][data-played="true"] .story-sunshine {opacity:1}
.story-scene[data-scene="bud"] .story-plant>svg {scale:.85;transform-origin:center bottom;transition:scale 1.2s}
.story-scene[data-scene="bud"][data-played="true"] .story-plant>svg {scale:1}
.story-scene[data-scene="friends"][data-played="true"] .story-petals {opacity:1}
.story-scene[data-scene="friends"][data-played="true"] .story-petals i {animation:story-petal 3s calc(var(--petal)*-.3s) 2 both}
.story-invitation {font-size:clamp(1rem,2vw,1.15rem);line-height:1.5;text-align:center;color:#457c71;margin:16px 8px 0;font-weight:700}
.story-reading-page {background:#ffffffb8;border:2px solid #fff;border-radius:28px;padding:clamp(18px,3vw,30px);box-shadow:0 8px 25px #508cad0a;align-self:center}
.story-text {font-size:clamp(1.6rem,3vw,2.1rem);line-height:1.65;letter-spacing:.005em;text-align:start;margin:0;font-weight:750;overflow-wrap:normal;word-break:normal;text-wrap:pretty}
.story-text:lang(ne) {line-height:1.85;letter-spacing:normal;font-family:SanoDevanagariBold,sans-serif}
.story-text:lang(ne-Latn) {line-height:1.65;letter-spacing:.005em;font-family:inherit;overflow-wrap:anywhere}
/* Keep pronunciation easy to follow without adding another reading layer. */
.story-pronunciation {margin:8px 0 0;font-family:Nunito,sans-serif;font-size:clamp(1.125rem,2.1vw,1.375rem);line-height:1.7;font-weight:650;color:#536c7b;letter-spacing:normal;word-break:normal;overflow-wrap:break-word;hyphens:none;text-wrap:pretty}
.story-pronunciation>span {border-radius:6px;padding-block:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.story-pronunciation .is-reading {background:#fff0ab;color:#294e68}
.story-translation {margin-top:16px;font-size:1rem;line-height:1.5;color:#457064}
.story-translation summary {width:fit-content;min-height:44px;padding:10px 8px;cursor:pointer;font-weight:750;touch-action:manipulation;border-radius:10px}
.story-translation summary:focus-visible {outline:3px solid #236be6;outline-offset:2px}
.story-meaning {margin:8px 0 0;color:#3a596d;font-family:inherit;font-size:clamp(1.05rem,2vw,1.2rem);line-height:1.65;user-select:text}
.story-text>span {border-radius:6px;padding-block:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone;transition:background-color .15s}
.story-text .is-reading {background:#fff0ab;color:#294e68}
.story-ending {font-size:1.1rem;color:#30815f;text-align:center;margin:20px 0 0;font-weight:800}
.story-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px;padding:5px 0 12px}
.storybook .story-button {display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;min-width:0;padding:12px 16px;border:3px solid #fff;border-radius:25px;color:#254e6a;font-size:clamp(1rem,2.3vw,1.25rem);font-weight:850;line-height:1.3;background:linear-gradient(145deg,#e2f4ff,#a8d8fa);box-shadow:0 5px 0 #94beda5c,0 0 25px #9ed5f341,inset 0 4px 5px #fff9;position:relative;isolation:isolate;overflow:hidden;transition:translate .18s,box-shadow .18s}
.story-button>svg {flex:none;width:24px;height:24px}
.story-button>span {position:relative;z-index:1;text-wrap:balance}
.story-button:before {content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;background:linear-gradient(110deg,transparent 30%,#ffffff65 47%,transparent 65%);translate:-120% 0;animation:story-shine 7s ease-in-out infinite}
.story-button:active {translate:0 3px}
.story-button:focus-visible {outline:3px solid #236be6;outline-offset:3px}
.storybook .story-forward {background:linear-gradient(145deg,#d2f6d7,#8cd9b1);box-shadow:0 5px 0 #61ad844c,0 0 28px #8bdbab48,inset 0 4px 5px #fff9}
.storybook .story-back {background:linear-gradient(145deg,#f9cee0,#efa3bf);box-shadow:0 5px 0 #bb829b40,0 0 20px #f7c1d336,inset 0 4px 5px #fff9}
.story-open {min-width:min(100%,280px);animation:story-button-breathe 3.4s ease-in-out infinite}
.story-open>svg:first-child {width:40px;height:40px}
.story-pause-icon {font-size:1.3rem}
.story-button:disabled {cursor:default;opacity:.6;animation:none}
.story-audio-notice {text-align:center;font-size:1rem;line-height:1.5;margin:10px 0;color:#536f83}
.story-audio-notice[hidden] {display:none}
.story-object.is-invited {animation:story-invite 3.2s ease-in-out 3}
.story-learn-entry {margin-top:22px}
.story-learn-entry .topic-learn-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.story-tile-art {display:block;width:100%;height:100%}
.story-tile-art>svg {width:100%;height:100%}
@keyframes story-shine {0%,55%{translate:-120% 0}80%,100%{translate:120% 0}}
@keyframes story-invite {0%,100%{filter:drop-shadow(0 0 0 #fff9)}50%{filter:drop-shadow(0 0 8px #fff9);translate:0 -4px}}
@keyframes story-button-breathe {0%,100%{scale:1}50%{scale:1.025}}
@keyframes story-raindrop {0%{translate:0 -20px;opacity:0}20%{opacity:.9}100%{translate:-15px 170px;opacity:0}}
@keyframes story-petal {0%{translate:0 -20px;rotate:0deg;opacity:0}15%{opacity:.9}100%{translate:18px 280px;rotate:180deg;opacity:0}}
@media(min-width:850px) {.story-spread{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:28px}.story-nav{max-width:620px;margin:32px auto 0}.story-page-top{margin-bottom:10px}.story-text{font-size:1.9rem}}
@media(max-width:399px) {.story-nav{gap:8px}.story-button{padding:11px 8px;gap:4px;font-size:1rem}.story-button>svg{width:18px;height:20px}.story-scene{border-radius:25px}.story-page-top{margin-bottom:8px}.story-reading-page{padding:16px}.story-text{font-size:1.6rem}.story-cover{gap:20px}}
@media(prefers-reduced-motion:reduce) {.storybook *,.storybook *::before,.storybook *::after{animation:none!important;transition:none!important}}
body[data-motion="reduce"] .storybook *,body[data-motion="reduce"] .storybook *::before,body[data-motion="reduce"] .storybook *::after {animation:none!important;transition:none!important}
body[data-page-hidden="true"] .storybook * {animation-play-state:paused!important}

body #app .story-learn-entry .story-learn-tile {width:100%;min-height:165px;max-width:none;aspect-ratio:auto;margin:0}body #app .story-learn-entry .story-learn-tile .topic-tile-face{display:flex;align-items:center;justify-content:center;gap:18px;padding:16px 24px}body #app .story-learn-entry .story-learn-tile .topic-tile-picture{flex:0 0 100px;width:100px;height:110px;margin:0}body #app .story-learn-entry .story-learn-tile .topic-tile-label{flex:0 1 auto;margin:0;padding:0}

.story-shelf h1 {letter-spacing:normal}.storybook .story-button {font-weight:850;font-size:clamp(1rem,2.3vw,1.25rem)}

/* Rendered story worlds keep their complete composition on every screen. */
.storybook:has(.story-film-scene) {width:min(100%,1120px)}
.story-spread:has(.story-film-scene) {grid-template-columns:minmax(0,1fr);gap:16px}
.story-film-scene {aspect-ratio:1.75;border-width:2px;border-radius:26px;background:#142c29;box-shadow:0 12px 36px #19392b25}
.story-film {display:block;width:100%;height:100%;object-fit:contain}
.story-film-poster {position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;opacity:1;transition:opacity .18s ease-out}
.story-film-scene[data-film-revealed="true"] .story-film-poster {opacity:0}
.story-film-scene[role="button"] {cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.story-film-scene[role="button"]:focus-visible {outline:4px solid #ffdd70;outline-offset:2px}
.story-film-notice {position:absolute;z-index:2;left:12px;right:12px;bottom:12px;padding:8px 12px;border-radius:10px;background:#fff;color:#254e6a;font-size:1rem;pointer-events:none}
.story-film-notice[hidden] {display:none}
.story-film-cover img {display:block;width:100%;height:100%;object-fit:cover}
.story-spread:has(.story-film-scene) .story-reading-page {max-width:900px;width:100%;margin:auto;padding:20px 26px}
@media(max-width:399px){.story-film-scene{border-radius:18px}.story-spread:has(.story-film-scene) .story-reading-page{padding:16px}}

/* Completion leaves the story and its bottom navigation in place. */
.story-spread-wrap {position:relative;isolation:isolate}
.story-ready-next .story-forward {animation:story-next-ready 3s ease-in-out 3;box-shadow:0 5px 0 #61ad844c,0 0 22px #72dbaa70,inset 0 4px 5px #fff9}
.story-ready-next .story-forward:before {animation:none}
.story-next-status {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes story-next-ready {0%,100%{box-shadow:0 5px 0 #61ad844c,0 0 22px #72dbaa70,inset 0 4px 5px #fff9}50%{box-shadow:0 5px 0 #61ad844c,0 0 30px #48d99c99,inset 0 4px 5px #fff9}}

/* A quiet page arrival replaces the turning duplicate cover. The real scene
   and narration start immediately, and the words remain visible throughout. */
.story-picture-page {position:relative;min-width:0}
.storybook[data-story-opening] .story-spread {animation:story-open-spread .22s ease-out both}
@keyframes story-open-spread {from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Bring an open book closer to the toolbar while retaining a clear gap inside
   the clipped content pane. The shelf and other learning sections keep theirs. */
body #app>.foundations-shell:has(#storybook-root .story-page)>.sano-page-scroll {
 padding-top:24px!important;
 mask-image:linear-gradient(to bottom,transparent,#000 12px,#000);
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 12px,#000);
}
body #app>.foundations-shell:has(#storybook-root .story-page)>.sano-page-scroll>.learning-course-control.learning-course-spacer {display:none!important}
@media(max-width:749px){body #app>.foundations-shell:has(#storybook-root .story-page)>.sano-page-scroll{padding-top:16px!important}}

/* The fourth book uses the same spread, with illustrated pages ready for narration. */
.story-illustration-scene{position:relative;overflow:hidden;aspect-ratio:2/1;border-radius:22px;cursor:pointer;background:#d6edc4}
.story-illustration-art{display:block;width:100%;height:100%;pointer-events:none}
.story-illustration-scene .story-illustration-art{transition:transform .6s ease}
.story-illustration-scene[data-played=true] .story-illustration-art{transform:scale(1.025)}
.story-illustration-sparkles{position:absolute;right:8%;top:12%;font-size:34px;color:#fff1b6;text-shadow:0 0 12px #f5cc54;opacity:0;pointer-events:none}
.story-illustration-scene[data-played=true] .story-illustration-sparkles{animation:story-bunny-sparkle 1.2s ease-out both}
.story-illustration-cover{overflow:hidden}.story-illustration-cover .story-illustration-art{width:100%;height:100%;transform:scale(1.1)}
.story-illustration-scene:focus-visible{outline:3px solid #1877d3;outline-offset:3px}
@keyframes story-bunny-sparkle{0%{opacity:0;transform:scale(.5)}40%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:translateY(-20px)}}
@media(prefers-reduced-motion:reduce){.story-illustration-art{transition:none!important}.story-illustration-sparkles{animation:none!important}}

/* Two books per row; each atlas illustration fills only its own frame. */
.storybook .story-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:800px}
.storybook .story-book-card:last-child{grid-column:auto;justify-self:stretch;width:100%}
.storybook .story-illustration-cover{overflow:hidden;isolation:isolate}
.storybook .story-illustration-cover>.story-illustration-art{display:block;width:100%;height:100%;overflow:hidden}

/* The moving paper has a printed reverse, a lit fold and a shadow cast on the
   stationary next page. The controls stay outside the sheet. */
.story-page-paper {position:relative;isolation:isolate;border-radius:20px;background:#fffcf7;touch-action:pan-y pinch-zoom}
.story-page-paper .story-film-scene[role="button"] {touch-action:pan-y pinch-zoom}
.storybook[data-story-turn] {overflow-anchor:none}
.story-turn-leaf {position:absolute;top:0;left:0;z-index:3;overflow:hidden;contain:layout paint style;border-radius:inherit;pointer-events:none}
.story-turn-leaf * {pointer-events:none!important;animation:none!important;transition:none!important}
.story-curl-preview,.story-curl-front,.story-curl-back {position:absolute;inset:0;overflow:hidden;background:#fffcf7}
.story-curl-front,.story-curl-back {transform-origin:0 0;will-change:clip-path}
.story-curl-back {background:linear-gradient(145deg,#fffcf0,#f0e7d5);will-change:clip-path,transform}
.story-curl-print {opacity:.16}
.story-curl-shading,.story-curl-shadow,.story-curl-roll {position:absolute;top:0;left:0;width:clamp(46px,14vw,145px);transform-origin:0 0;will-change:transform}
.story-curl-roll {background:linear-gradient(90deg,#76684d4a 0%,#dfd5bf47 11%,#fffaf08a 39%,#fffffd00 100%)}
.story-curl-shading {background:linear-gradient(90deg,#8d78599c,#bbaa8c80 9%,#fffdf5ab 43%,#fffdf500)}
.story-curl-shadow {background:linear-gradient(90deg,#241d1947,#42332420 36%,#46352100);will-change:transform,opacity}
.story-film-scene {min-height:0;overflow:hidden}
@media(prefers-reduced-motion:reduce){.story-turn-leaf{display:none}}
body[data-motion="reduce"] .story-turn-leaf {display:none}

/* Sano stylesheet: welcome-launch-background.css */
/* Match the approved native home and loading artwork. */
body:has(#app > .home-simple),
body:has(#app > .sano-startup) {
  --sano-canvas: #edf3ff;
  background: #edf3ff url('/images/welcome-launch-pastel.jpg') center / 100% 100% no-repeat;
}
body #app:has(> .home-simple),
body #app:has(> .sano-startup) {
  background: linear-gradient(#ffffff1f, #ffffff1f);
}
body #app:has(> .home-simple) > .corner-tools {
  background: transparent !important;
}
@media (forced-colors: active) {
  body:has(#app > .home-simple), body #app:has(> .home-simple),
  body:has(#app > .sano-startup), body #app:has(> .sano-startup) {
    background: Canvas;
  }
}

/* Sano stylesheet: interface-gameplay-refresh.css */
/* Keep the approved Sano artwork, tile geometry, colours, shadows and motion.
   This final layer affects keyboard focus and long translated labels only. */

/* The drawing tool bar has a selected-tool outline but no local keyboard-focus
   rule. Use the same blue focus ring as its neighbouring drawing controls. */
#app .scribble-freeplay :is(.practice-tool,.scribble-colour):focus-visible {
  outline:3px solid #0666ef;
  outline-offset:4px;
}

/* Keep focused controls clear of a scroll pane's edge without changing their
   size, layout, touch response or the drawing surface's coordinate system. */
#app :is(.topic-category-tile,[data-action=topic-start],.scribble-choice,
  .practice-tool,.scribble-colour,.scribble-page-button,.story-button,
  .song-control):focus-visible {
  scroll-margin-block:12px;
}

/* Long translated labels can wrap instead of pushing past their existing
   picture slot. All established font sizes, line heights and motion remain. */
#app .scribble-mode-grid .scribble-choice strong,
#app .simple-topic-picker .learning-entry-label {
  overflow-wrap:break-word;
  hyphens:none;
}

@media(forced-colors:active) {
  #app .scribble-freeplay :is(.practice-tool,.scribble-colour):focus-visible {
    outline-color:Highlight;
  }
}

.coin-daily-entry,.coin-family,.coin-earn,.coin-play-shop{position:relative;isolation:isolate;overflow:hidden;transition:transform .18s ease,filter .18s ease}
.coin-daily-entry:not(:disabled),.coin-family,.coin-play-shop{animation:sano-reward-breathe 4.5s ease-in-out infinite}
.coin-daily-spin{animation-delay:-1.5s}.coin-family{animation-delay:-3s}
.coin-daily-entry:not(:disabled):hover,.coin-buy:hover,.play-reward-card:focus-within{filter:brightness(1.05);transform:translateY(-3px)}
.coin-daily-entry:not(:disabled):active,.coin-buy:active{transform:scale(.97)}
.coin-play-shop-section{margin:24px 0;padding:20px;border-radius:28px;background:linear-gradient(140deg,#fff7db,#dff7eb);border:2px solid #fff;box-shadow:0 8px 25px #276b5520;text-align:center}
.coin-play-shop-section h2{color:#278568;margin:0 0 12px}.coin-play-shop-section .coin-play-shop{margin:auto}
.coin-wallet-hero[data-coin]{cursor:pointer;font:inherit;color:inherit;border:2px solid #fff;min-width:0}
.play-reward-card{border:2px solid #fff!important;box-shadow:0 7px 0 #bfd9cf,0 12px 24px #47745c20;border-radius:26px!important;background:linear-gradient(150deg,#fff,#e5f7ee)!important}
.play-reward-card[data-reward-kind=accessory]{background:linear-gradient(150deg,#fff3fa,#f3d8ef)!important}.play-reward-card[data-reward-kind=drawing]{background:linear-gradient(150deg,#fffbe8,#ffe6a7)!important}
.mountain-end-actions [data-mountain=home]{background:linear-gradient(#ffb2bb,#ef7183);color:#602b3c;border-color:#fff}.mountain-end-actions [data-mountain=again]{background:linear-gradient(#bbf0cd,#79cda2);color:#215b43;border-color:#fff}
@keyframes sano-reward-breathe{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(-3px) rotate(.4deg)}}
@media(prefers-reduced-motion:reduce){.coin-daily-entry,.coin-family,.coin-play-shop{animation:none!important}}
body[data-motion=reduce] :is(.coin-daily-entry,.coin-family,.coin-play-shop){animation:none!important}

.coin-play-wallet{font:inherit;color:inherit;cursor:pointer;position:relative}.coin-play-wallet small{display:block;font-size:.7rem;font-weight:800;color:#68451d;padding:0 .25rem .4rem;text-align:center}

/* Game admission uses the same artwork as home and always has an exit. */
body #app .arcade-loading{position:fixed;inset:0;z-index:220;box-sizing:border-box;display:block;min-height:100%;width:100%;height:100dvh;margin:0;padding:0;background:#f5faff;overflow:hidden}
body #app .arcade-loading .arcade-exit{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:2px solid #fff;border-radius:15px;background:#ffffffd9;color:#cf4e6d;font:700 30px/1 system-ui;box-shadow:none}

/* Sano stylesheet: family-membership.css */
.family-membership-offer{max-width:48rem;margin-inline:auto;padding:clamp(1rem,4vw,2rem);text-align:left;color:inherit}
.family-membership-offer h2{margin:.2rem 0;font-size:clamp(1.8rem,5vw,2.6rem)}
.family-membership-offer p,.family-membership-offer li{line-height:1.55}
.family-offer-eyebrow{font-weight:800;margin:0}
.family-membership-offer ul{padding-left:1.4rem}
.family-membership-offer li+li{margin-top:.5rem}
.family-membership-state{font-weight:700;background:#f0f8ed;border-radius:1rem;padding:1rem}
.family-membership-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-block:1rem}
.family-plan{border:2px solid #dce8df;border-radius:1.4rem;padding:1rem;background:#fff}
.family-plan h3{margin:0}.family-plan-price{font-size:1.8rem;font-weight:800;margin:.6rem 0}.family-plan-price span{font-size:1rem;font-weight:500}
.family-membership-actions{display:flex;flex-wrap:wrap;gap:.65rem}.family-membership-actions button,.family-plan button{min-height:44px;white-space:normal}
.family-membership-notice:empty{display:none}.family-membership-notice{font-weight:700}
.family-membership-terms,.family-membership-local{font-size:.9rem}.family-membership-local{opacity:.8}
@media(max-width:420px){.family-membership-plans{grid-template-columns:1fr}.family-membership-actions{flex-direction:column}.family-membership-actions button{width:100%}}

/* Included access replaces only a member's coin badge, preserving tile art. */
.sano-price-badge.sano-membership-included,.mountain-mode-choices .mountain-button>.sano-price-badge.sano-membership-included,.drawing-rainbow .rainbow-paid-corner .sano-price-badge.sano-membership-included{display:grid;place-items:center;width:auto;min-width:4.4rem;max-width:5rem;height:auto;min-height:1.65rem;padding:.3rem .5rem;white-space:normal;text-align:center;border-radius:999px;background:#e6f6e8;color:#215a32;font:700 11px/1.2 system-ui,sans-serif}

.family-membership-offer{text-align:center}.family-membership-offer ul{text-align:left;max-width:35rem;margin:1rem auto}.family-plan{position:relative;background:linear-gradient(140deg,#e1f7ef,#bcead7);border:3px solid white;box-shadow:0 6px 0 #a2cdbc,0 10px 22px #456a5930;transition:transform .2s}.family-plan:nth-child(2){background:linear-gradient(140deg,#fff0cf,#ffe0a1);box-shadow:0 6px 0 #dec28c,0 10px 22px #665a3430}.family-plan:has(button):hover{transform:translateY(-3px) rotate(.5deg)}.family-plan button{width:100%}.family-plan-details{text-align:left;padding:12px;border-radius:16px;background:#ffffff88}.family-membership-actions{justify-content:center}.family-plan:has(button){animation:sano-reward-breathe 5s ease-in-out infinite}.family-plan:nth-child(2){animation-delay:-2.5s}@media(prefers-reduced-motion:reduce){.family-plan{animation:none!important}}body[data-motion=reduce] .family-plan{animation:none!important}

.family-membership-offer{padding:0 0 18px}.family-membership-offer header>p{margin:8px 0 18px;color:#516c7b}.family-offer-heart{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 12px;border:3px solid white;border-radius:24px;background:linear-gradient(145deg,#e0f8ee,#b4e5cf);color:#2b8a63;font-size:47px;line-height:1;box-shadow:0 6px 18px #43866518}
.family-benefit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.family-benefit-grid>div{display:grid;align-content:start;justify-items:center;gap:8px;padding:16px 12px;border:2px solid white;border-radius:24px;background:#eaf7f1}.family-benefit-grid>div:nth-child(2){background:#edf5ff}.family-benefit-grid>div:nth-child(3){background:#fff5df}.family-benefit-grid>div:nth-child(4){background:#fff0f4}.family-benefit-grid>div>span{font-size:30px;line-height:1;color:#4f7a67}.family-benefit-grid strong{font-size:16px}.family-benefit-grid small{font-size:13px;line-height:1.45;color:#4b6574}
.family-membership-offer .family-plan{animation:none!important;transform:none!important;border-radius:24px;border:2px solid #fff;box-shadow:0 5px 16px #44674e17}.family-membership-offer .family-plan-details{margin:12px 0;background:#ffffffb8;border:1px solid #d9e6e0;border-radius:18px}.family-plan-details>summary{min-height:44px;padding:10px 0;box-sizing:border-box;font-weight:750;cursor:pointer}.family-membership-state{font-size:15px;padding:14px;border:1px solid #dbe9e1;background:#edf6f0;line-height:1.5}.family-membership-terms{color:#4b6574;line-height:1.55}.family-membership-actions{gap:12px;margin:18px 0}
@media(forced-colors:active){.family-benefit-grid>div,.family-offer-heart,.family-membership-offer .family-plan{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}}

.family-membership-offer .family-membership-plans{gap:.65rem}
.family-membership-offer .family-plan .pill.primary{width:100%;margin-top:.35rem}
@media(max-width:420px){
 .family-membership-offer .family-plan{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:.5rem;text-align:left}
 .family-membership-offer .family-plan h3,.family-membership-offer .family-plan-price{grid-column:1;margin:.15rem 0}
 .family-membership-offer .family-plan .pill.primary{grid-column:2;grid-row:1/3;margin:0;min-width:6rem}
}

/* Sano stylesheet: family-experience.css */
/* Parent-area layout only. Existing Sano button colours, shapes and motion win. */
.family-experience{width:100%;min-width:0}
.family-experience-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-block:8px 16px}
.family-experience-tabs>[role=tab]{flex:1 1 120px;min-height:44px}
.family-experience-tabs>[aria-selected=true]{outline:2px solid currentColor;outline-offset:2px}
.family-experience-status:empty{display:none}
.family-experience label{display:grid;gap:6px;font-weight:750;min-width:0}
.family-experience :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px 10px;font:inherit;border:1px solid #aac5da;border-radius:12px;background:#fff;color:#254e6a}
.family-experience :is(button,input,select):focus-visible{outline:3px solid #0666ef;outline-offset:3px}
.family-learner-choice,.family-journey-choice{margin-block:12px;max-width:100%}
.family-learner-list,.family-passport-steps{padding:0;list-style:none;display:grid;gap:18px}
.family-learner-list>li,.family-passport-steps>li{display:grid;gap:10px;padding-block:14px;border-bottom:1px solid #cbdde8}
.family-experience :is(h3,h4,p){overflow-wrap:break-word}
.family-experience h4{margin:0;font-size:1.05em}
.family-experience form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.family-experience form>label{flex:1 1 170px}
.family-experience form>button{min-height:44px;flex:0 0 auto}
.family-passport-actions{display:flex;flex-wrap:wrap;gap:10px}
.family-passport-actions>button{min-height:44px;max-width:100%;white-space:normal}
.family-passport-steps [data-family-action=mark]{justify-self:start;min-height:44px;text-align:start;white-space:normal}
.family-passport-steps small{line-height:1.5}
.family-week-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px}
.family-week-counts>div{min-width:0}
.family-week-counts dt{overflow-wrap:break-word}
.family-week-counts dd{font-variant-numeric:tabular-nums}
.family-experience[lang=ne]{line-height:1.6}
@media(forced-colors:active){.family-experience :is(input,select){background:Field;color:FieldText;border-color:FieldText}.family-learner-list>li,.family-passport-steps>li{border-color:CanvasText}.family-experience :is(button,input,select):focus-visible,.family-experience-tabs>[aria-selected=true]{outline-color:Highlight}}

.family-experience-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:5px;border-radius:23px;background:#e3eef6}
.family-experience-tabs>[role=tab]{font-size:14px;line-height:1.3;padding:10px 6px;box-shadow:none!important;min-width:0;border-radius:18px;border:2px solid transparent;background:transparent;color:#42617a;animation:none!important;transform:none!important}
.family-experience-tabs>[aria-selected=true]{outline:none;border-color:#fff;background:linear-gradient(145deg,#eefaff,#c9e9fb);color:#1f5a80;box-shadow:0 3px 8px #365d7515!important}
.family-learner-list{gap:14px}.family-learner-list>li{padding:18px;border:2px solid #fff;border-radius:24px;background:linear-gradient(135deg,#f4fbff,#e4f3ff);box-shadow:0 5px 16px #345d7a10}
.family-learner-heading{display:flex;align-items:center;gap:14px}.family-learner-heading>div{display:grid;gap:5px}.family-learner-heading strong{font-size:21px}.family-learner-heading>div>span{font-size:13px;color:#526f83}.family-learner-avatar{display:grid;place-items:center;width:52px;height:52px;border:3px solid #fff;border-radius:50%;background:linear-gradient(145deg,#ddf7eb,#a9e4d0);font-weight:850;font-size:24px;color:#28634f}
.family-edit-name{font-size:14px}.family-edit-name>summary,.family-explainer>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 0;font-weight:750}.family-edit-name form{margin-top:8px}.family-explainer{margin-block:16px;border-top:1px solid #d8e6ee;font-size:13px;line-height:1.6;color:#4b687d}
.family-week-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.family-week-counts>div{display:flex;flex-direction:column-reverse;gap:8px;padding:18px 12px;border:2px solid #fff;border-radius:22px;background:#e9f6ff;text-align:center;box-shadow:0 4px 14px #3156700d}.family-week-counts>div:nth-child(2n){background:#eaf8f1}.family-week-counts>div:last-child{grid-column:1/-1;background:#fff4dc}.family-week-counts dt{font-size:14px;line-height:1.4}.family-week-counts dd{margin:0;font-size:34px;line-height:1.1;font-weight:850;color:#2f657b}
.family-passport-progress{display:grid;gap:10px;margin:20px 0;color:#2d6e5a}.family-passport-progress progress{width:100%;height:14px;accent-color:#47b48b;border:0;border-radius:9px;overflow:hidden}.family-passport-progress progress::-webkit-progress-bar{background:#e0ede6;border-radius:9px}.family-passport-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#5bc6a0,#36a67f);border-radius:9px}
.family-passport-steps{gap:12px}.family-passport-steps>li{display:block;padding:0;border:0}.family-passport-day{border:2px solid #fff;border-radius:22px;background:#f0f8ff;box-shadow:0 5px 14px #355a7510;overflow:hidden}.family-passport-day[open]{background:#effaf4}.family-passport-day>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:15px;min-height:68px;box-sizing:border-box;list-style:none}.family-passport-day>summary::-webkit-details-marker{display:none}.family-passport-day>summary>span:nth-child(2){display:grid;gap:4px;font-size:12px;color:#557284}.family-passport-day summary strong{font-size:16px;color:#294f64}.family-day-number{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:#fff;color:#358966;font-size:20px;font-weight:850}.family-day-done{margin-left:auto;font-size:12px;color:#34846a}.family-day-body{padding:0 16px 16px}.family-day-body>p{margin-top:0}.family-day-body small{display:block;margin-top:10px}.family-passport-actions{margin-bottom:12px}
@media(forced-colors:active){.family-learner-list>li,.family-week-counts>div,.family-passport-day{background:Canvas;border:1px solid CanvasText;box-shadow:none}.family-experience-tabs>[aria-selected=true]{background:Highlight;color:HighlightText}}

/* Sano stylesheet: toddler-adventure.css */
/* Explore only. Existing running/flying scenes and the Sano tile system stay intact. */
.mountain-stage[data-play-style=explore] .mountain-canvas,
body[data-mountain-immersive=true] #app .mountain-game .mountain-stage[data-play-style=explore] .mountain-canvas{display:none}
.mountain-stage[data-play-style=explore] .mountain-hud,.mountain-stage[data-play-style=explore] .mountain-reward-flight{display:none!important}
body[data-mountain-immersive=true] #app .mountain-game:has(.mountain-stage[data-play-style=explore]) .mountain-goal-prompt{display:none}
.mountain-toddler{position:absolute;inset:0;overflow:hidden;z-index:1;background:linear-gradient(#d9f3ff,#f2fbff 65%,#d9efcf);color:#204d6b;font-family:var(--joy-font);touch-action:manipulation}
.mountain-toddler[hidden]{display:none}
.toddler-adventure{position:relative;isolation:isolate;box-sizing:border-box;height:100%;min-height:0;padding:calc(max(8px,env(safe-area-inset-top,0px)) + 54px) max(18px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));overflow:auto}
.toddler-progress{position:absolute;left:max(18px,env(safe-area-inset-left,0px));top:max(16px,env(safe-area-inset-top,0px));font:900 22px/1.3 var(--joy-font);color:#26516c}
.toddler-progress>span{color:#b47700;text-shadow:0 1px #fff}
.toddler-match{position:relative;z-index:2;display:flex;align-items:center;flex-direction:column;gap:clamp(12px,2.6svh,24px);max-width:660px;margin:0 auto}
.toddler-instruction{margin:0;min-height:1.4em;text-align:center;font:900 clamp(23px,5.6vw,32px)/1.4 var(--joy-font);color:#244c6a;text-shadow:0 2px #fff}
.toddler-target{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px;min-width:108px;min-height:116px;padding:8px 20px;background:#fffdf0;border:3px solid #fff;border-bottom:5px solid #e8c96e;border-radius:28px;box-shadow:0 5px 16px #305f7a1a}
.toddler-target>span:last-child:not(.toddler-letter):not(.toddler-number):not(.toddler-dots){width:100%;text-align:center;font:850 18px/1.3 var(--joy-font)}
.toddler-choices{display:flex;justify-content:center;align-items:center;gap:clamp(12px,3vw,24px);width:100%;margin-top:4px}
.toddler-choice{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;flex:0 1 148px;width:148px;min-width:80px;min-height:124px;margin:0;padding:12px 8px;border:3px solid #fff;border-bottom:6px solid #a7cddd;border-radius:26px;background:linear-gradient(150deg,#fff,#edf9ff);box-shadow:0 5px 12px #244c6a1a;color:#294a81;font-family:var(--joy-font);touch-action:manipulation;cursor:pointer;transition:transform .15s ease,background .15s ease}
.toddler-choice:active:not(:disabled){transform:translateY(3px) scale(.98)}
.toddler-choice:focus-visible{outline:4px solid #8a3aba;outline-offset:5px}
.toddler-choice:disabled{opacity:1;cursor:default}
.toddler-choice.is-matched{background:#dbf9d9;border-bottom-color:#64ae78;transform:translateY(-4px)}
.toddler-choice-label{font:850 clamp(15px,3.7vw,19px)/1.4 var(--joy-font);color:#204d6b}
.toddler-shape{display:block;width:80px;max-width:100%;height:80px;flex-shrink:0;fill:var(--shape-colour,#8572df);stroke:#294a8166;stroke-width:2;filter:drop-shadow(0 3px 0 #294a8118)}
.toddler-letter,.toddler-number{display:block;font:900 clamp(58px,12vw,80px)/1.25 var(--joy-font);text-align:center;min-width:1em}
.toddler-letter[lang=ne],.toddler-number[lang=ne]{font-family:SanoDevanagariBold,"Kohinoor Devanagari",sans-serif;line-height:1.45}
.toddler-adventure[lang=ne] :is(.toddler-instruction,.toddler-choice-label),.toddler-adventure[lang=ne] .toddler-target>span:not(.toddler-letter):not(.toddler-number):not(.toddler-dots){font-family:SanoDevanagariBold,"Kohinoor Devanagari",sans-serif;line-height:1.5}
.toddler-dots{display:flex;justify-content:center;gap:5px;width:100%;padding:3px 0}
.toddler-dots i{display:block;width:11px;height:11px;border-radius:50%;background:#294a81}
.toddler-world{position:absolute;z-index:0;inset:auto 0 0;height:40%;min-height:180px;pointer-events:none;overflow:hidden}
.toddler-scenery{display:block;width:100%;height:100%}
.toddler-companion{position:absolute;bottom:7%;left:calc(8% + var(--trail-step)*6%);height:clamp(86px,18svh,145px);width:auto;object-fit:contain;transition:left .6s ease;filter:drop-shadow(0 5px 3px #294a8126)}
.toddler-adventure[data-scene=fly] .toddler-companion{bottom:12%}
.mountain-stage[data-play-style=explore] .mountain-toast:empty{display:none}
@media(max-width:360px){.toddler-adventure{padding-left:12px;padding-right:12px}.toddler-choice{min-height:112px;padding:10px 5px;border-radius:22px}.toddler-shape{width:64px;height:64px}.toddler-choices{gap:10px}.toddler-letter,.toddler-number{font-size:58px}}
@media(max-height:620px) and (orientation:portrait){.toddler-match{gap:9px}.toddler-target{min-height:90px;padding:3px 14px}.toddler-target .toddler-shape{width:64px;height:64px}.toddler-choice{min-height:112px}.toddler-world{height:30%;min-height:130px}}
@media(max-height:580px) and (orientation:landscape){.toddler-adventure{padding-top:58px}.toddler-match{display:grid;grid-template-columns:150px minmax(240px,1fr);gap:10px 28px;max-width:720px}.toddler-instruction{grid-column:1/-1;font-size:23px}.toddler-target{min-height:100px;padding:4px 12px}.toddler-choices{gap:14px}.toddler-choice{min-height:112px;flex-basis:120px}.toddler-world{height:34%;min-height:100px}.toddler-companion{height:75px}.toddler-shape{width:68px;height:68px}.toddler-letter,.toddler-number{font-size:58px}}
@media(prefers-reduced-motion:reduce){.toddler-choice,.toddler-companion{transition:none}.toddler-choice.is-matched{transform:none}}
.mountain-toddler[data-reduced-motion=true] .toddler-choice,.mountain-toddler[data-reduced-motion=true] .toddler-companion{transition:none}

.toddler-world>.toddler-companion{display:block;aspect-ratio:1;width:auto}.toddler-companion>.dressed-companion{width:auto;height:100%;aspect-ratio:1}

/* Sano stylesheet: play-rewards.css */
.play-reward-shop{max-width:860px;margin:0 auto;padding:16px 16px 40px;color:#284e70;font-family:var(--joy-font,ui-rounded,system-ui,sans-serif)}
.play-reward-heading{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;min-height:52px;margin:0 0 15px}.play-reward-heading h1{font-size:clamp(24px,5vw,34px);color:#0666ef;margin:0;text-align:center;outline:none}.play-reward-back{position:absolute;left:0;width:46px;height:46px;border:2px solid #d7e9fb;border-radius:16px;background:#fff;color:#377eaa;font:700 32px/1 system-ui;cursor:pointer}
.play-reward-wallet{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;background:linear-gradient(130deg,#fff5cf,#fff9e5);border:2px solid #ffeaaf;border-radius:24px;padding:13px 20px;max-width:430px;margin:0 auto;box-shadow:0 7px 15px #d4a44210}.play-reward-coin{display:block;width:49px;height:49px}.play-reward-coin svg{width:100%;height:100%}.play-reward-wallet strong{font-size:34px;font-variant-numeric:tabular-nums;color:#946617}.play-reward-wallet>span:last-of-type{font-size:17px;font-weight:800}.play-reward-wallet small{flex-basis:100%;text-align:center;color:#755c37;font-size:14px}.play-reward-how{text-align:center;font-size:14px;line-height:1.5;color:#617c92;margin:12px auto 26px;max-width:420px}
.play-reward-section{margin:24px 0}.play-reward-section h2{font-size:20px;margin:0 0 12px;color:#3b6f98}.play-reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.play-reward-card{display:flex;flex-direction:column;align-items:center;background:#f2f8fe;border:2px solid #e0edf9;border-radius:23px;padding:13px 12px 15px;min-width:0;text-align:center;box-shadow:0 5px 10px #5189b309}.play-reward-card[data-reward-kind=accessory]{background:#fff3f8;border-color:#f8dfeb}.play-reward-card[data-reward-kind=drawing]{background:#f0faf5;border-color:#d8eee2}.play-reward-card.is-equipped{border-color:#6abb9e;box-shadow:0 0 0 2px #a2d6bd22}.play-reward-art{width:clamp(75px,14vw,110px);height:clamp(75px,14vw,110px);filter:drop-shadow(0 5px 4px #45799616)}.play-reward-art svg{display:block;width:100%;height:100%}.play-reward-card h3{font-size:17px;line-height:1.25;margin:4px 0 6px}.play-reward-card p{font-size:12px;line-height:1.4;color:#688095;max-width:180px;margin:0 0 12px;flex:1}.play-reward-card>.pill{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:100px;padding:7px 13px;font-size:15px}.play-reward-card>.pill>span{display:block;width:25px;height:25px}.play-reward-card>.pill svg{width:100%;height:100%}.play-reward-card>.pill:disabled{opacity:1;background:#e3eee9;color:#5b7b6c;cursor:default}.play-reward-card:not(.is-equipped)>.pill:disabled{background:#e8eef3;color:#7a8d9e}.play-reward-card>small{font-size:11px;color:#758b9b;margin-top:7px}.play-reward-notice{min-height:25px;margin:20px 0 0;color:#267b5c;text-align:center;font-weight:700}.play-reward-shop button:focus-visible{outline:3px solid #2464bf;outline-offset:4px}
@media(max-width:560px){.play-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.play-reward-heading h1{padding:0 48px;font-size:25px}.play-reward-card{padding:11px 9px 13px}.play-reward-card h3{font-size:16px}.play-reward-card p{font-size:12px}.play-reward-how{font-size:13px}}
@media(prefers-reduced-motion:reduce){.play-reward-shop *{animation:none!important;transition:none!important}}
.scribble-earned-tools{display:flex;justify-content:center;margin:8px 0 12px}.scribble-star-stamp{display:flex;align-items:center;gap:9px;min-height:44px;background:#fff4cb;border:2px solid #f5d77c;color:#85651f}.scribble-star-stamp>span{font-size:23px;color:#dca838}

/* Sano stylesheet: sano-play-polish.css */
/* Keep new rewards and restored wallet controls on Sano's shared soft surfaces. */
.sano-play-sprite{display:block;width:100%;height:100%;filter:hue-rotate(var(--sprite-hue,0deg))}
.companion-choice .companion-art-window{box-sizing:border-box;overflow:visible;padding:14px 9px 19px}
.companion-choice .companion-art-window .companion-greeting-art{overflow:visible}
.sano-sheet-handle:focus-visible{outline:none!important;box-shadow:none!important}
.sano-sheet-handle:focus-visible::before{outline:3px solid #1684df;outline-offset:5px}
.coin-backdrop .coin-dialog .coin-area .coin-languages-art{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;width:112px;height:69px;margin:0 auto 3px}
.coin-backdrop .coin-dialog .coin-area .coin-languages-art svg{flex:0 0 31px;width:31px;height:26px;margin:0;filter:drop-shadow(0 3px 2px #3d72ac25)}
.coin-backdrop .coin-dialog .coin-area :is(.coin-extra-tile,.coin-language,.coin-daily-entry,.coin-buy,.coin-earn,.coin-collection-totals>section){animation:sano-wallet-drift 4.6s ease-in-out var(--control-delay,var(--coin-float-delay,0s)) infinite!important;transform-origin:50% 65%}
.coin-backdrop .coin-dialog .coin-area :is(.coin-language,.coin-daily-entry):nth-child(even){animation-delay:-2.1s!important}
.coin-backdrop .coin-dialog .coin-area :is(.coin-extra-tile,.coin-language,.coin-daily-entry,.coin-buy,.coin-earn):is(:active,:focus-visible){animation-play-state:paused!important}
@keyframes sano-wallet-drift{0%,100%{translate:-1px -3px;rotate:-1deg}25%{translate:2px 0;rotate:1deg}50%{translate:0 3px;rotate:.6deg}75%{translate:-2px 0;rotate:-.7deg}}
.play-reward-shop .play-reward-grid{gap:18px;padding:5px 2px 9px}
.play-reward-shop .play-reward-card{position:relative;isolation:isolate;overflow:hidden;border:3px solid #fff;border-bottom:5px solid #8bc4e7;border-radius:28px;background:radial-gradient(ellipse at 30% 8%,#fff 0,transparent 55%),linear-gradient(145deg,#e8f8ff,#bfe3fa);box-shadow:inset 0 2px 3px #fff,0 6px 12px #3d7aa71c,0 0 23px #92caff42;padding:15px 11px 17px}
.play-reward-shop .play-reward-card[data-reward-kind=accessory]{background:radial-gradient(ellipse at 30% 8%,#fff 0,transparent 55%),linear-gradient(145deg,#fff0f7,#f9ccdf);border-bottom-color:#eaa3c4;box-shadow:inset 0 2px 3px #fff,0 6px 12px #a73d7020,0 0 23px #ffb5d742}
.play-reward-shop .play-reward-card[data-reward-kind=drawing]{background:radial-gradient(ellipse at 30% 8%,#fff 0,transparent 55%),linear-gradient(145deg,#edfff5,#bfead6);border-bottom-color:#8dcbb0;box-shadow:inset 0 2px 3px #fff,0 6px 12px #3d8c6c20,0 0 23px #9ce0be42}
.play-reward-shop .play-reward-card[data-reward-value=star-crown]{background:radial-gradient(ellipse at 30% 8%,#fff 0,transparent 55%),linear-gradient(145deg,#fff8da,#f7dfa0);border-bottom-color:#debc64;box-shadow:inset 0 2px 3px #fff,0 6px 12px #a7843d20,0 0 23px #f8d97542}
.play-reward-shop .play-reward-card::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 28% 9%,#ffffff85,transparent 58%);animation:sano-reward-glow 5s ease-in-out infinite}
.play-reward-shop .play-reward-card.is-equipped{outline:2px solid #52b48b;outline-offset:2px}
.play-reward-shop .play-reward-art{width:clamp(93px,20vw,133px);height:clamp(93px,20vw,133px);margin:1px 0 7px;filter:drop-shadow(0 7px 4px #45799628);animation:sano-reward-art-float 4.8s ease-in-out infinite}
.play-reward-shop .play-reward-card:nth-child(even) .play-reward-art{animation-delay:-2.4s}
.play-reward-art>img{display:block;width:100%;height:100%;object-fit:contain}
.play-reward-art>img.play-world-preview{object-fit:cover;border:3px solid #ffffffd9;border-radius:26px;box-sizing:border-box;box-shadow:0 4px 6px #47779930}
.play-reward-shop .play-reward-card h3{color:#245772;line-height:1.35;max-width:100%;overflow-wrap:anywhere}
.play-reward-shop .play-reward-card p{color:#4f6e83;line-height:1.5}
.play-reward-shop .play-reward-card>.pill{box-sizing:border-box;width:min(126px,100%);min-width:0;max-width:100%;min-height:46px;border:2px solid #fff;border-bottom-width:4px;border-radius:18px;line-height:1.25}
.play-reward-shop .play-reward-card>.pill>span{flex:0 0 25px;width:25px;height:25px}
.play-reward-shop .play-reward-card.is-equipped>.pill{background:linear-gradient(#dcfae9,#b4e3ca);color:#275e48;border-bottom-color:#8fc5a8}
.play-reward-shop .play-reward-card>small{color:#587184;line-height:1.4;min-height:1.4em}
@keyframes sano-reward-art-float{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -5px;rotate:1deg}}
@keyframes sano-reward-glow{50%{opacity:.45}}
body #app .mountain-start-card .mountain-again{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-height:76px;padding:11px 17px;border:3px solid #fff;border-bottom:5px solid #64ba95;border-radius:24px;background:linear-gradient(145deg,#d4ffe9,#8edcb8)!important;color:#23664c!important;box-shadow:inset 0 2px 2px #fff9,0 5px 10px #358e6c25,0 0 23px #84ddb34d!important;font-size:clamp(17px,4vw,21px);line-height:1.3}
.mountain-retry-art{display:block;flex:0 0 45px;width:45px;height:45px;filter:drop-shadow(0 3px 2px #37725025)}
.mountain-retry-art>svg{display:block;width:100%;height:100%}
.mountain-again>strong{min-width:0;overflow-wrap:anywhere}
body[data-page-hidden=true] .coin-backdrop .coin-dialog .coin-area :is(.coin-extra-tile,.coin-language,.coin-daily-entry,.coin-buy,.coin-earn,.coin-collection-totals>section),body[data-page-hidden=true] .play-reward-shop *{animation-play-state:paused!important}
body:is([data-motion=reduce],[data-reduced-motion=true]) .coin-backdrop .coin-dialog .coin-area :is(.coin-extra-tile,.coin-language,.coin-daily-entry,.coin-buy,.coin-earn,.coin-collection-totals>section),body:is([data-motion=reduce],[data-reduced-motion=true]) .play-reward-shop *{animation:none!important;translate:none!important;rotate:none!important}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.coin-backdrop .coin-dialog .coin-area :is(.coin-extra-tile,.coin-language,.coin-daily-entry,.coin-buy,.coin-earn,.coin-collection-totals>section),.play-reward-shop *{animation:none!important;translate:none!important;rotate:none!important}}
@media(max-width:380px){.play-reward-shop .play-reward-grid{gap:13px}.play-reward-shop .play-reward-card{padding:12px 8px 14px}.play-reward-shop .play-reward-card h3{font-size:15px}}

/* Wallet art is readable at a glance; scroll and drag have their own layers. */
.coin-buy-sparkle>svg{display:block;width:64px;height:64px}.coin-family small,.coin-play-shop small{display:block;font-size:13px;line-height:1.5;margin-top:3px}
[data-sano-sheet-transition]{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;backface-visibility:hidden}
[data-sano-sheet-dragging] .coin-area *{animation-play-state:paused!important}
[data-sano-sheet-dragging]{contain:layout style;backdrop-filter:none!important}
body .coin-backdrop{backdrop-filter:none;background:#344b6660}
.topic-learn-grid .topic-learn-row:has([data-action=open-play-learning]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

/* Sano stylesheet: free-talk.css */
.free-talk{max-width:680px;margin:auto;padding:12px 18px 24px;text-align:center;color:#284c62}.free-talk-heading h2{font-size:clamp(1.55rem,5vw,2.2rem);margin:10px 0 4px;color:#0876bd}.free-talk-heading p{margin:0 0 16px}.free-talk-badge{display:inline-block;background:#def5e9;color:#176744;font-size:.8rem;font-weight:800;padding:5px 12px;border-radius:30px}.free-talk-friend{display:flex;align-items:center;justify-content:center;gap:18px;margin:10px auto;min-height:140px}.free-talk-friend>img{object-fit:contain;width:120px;height:145px;flex-shrink:0}.free-talk-bubble{background:#fff;border:2px solid #c8e6f5;border-radius:26px 26px 26px 4px;padding:20px;max-width:340px;text-align:left;box-shadow:0 5px 0 #c8e6f53b}.free-talk-bubble strong{font-size:1.5rem;line-height:1.7;color:#165d80;display:block}.free-talk-bubble span{display:block;font-size:1rem;line-height:1.5}.free-talk-bubble small{display:block;font-size:.72rem;color:#5b7687;margin-top:8px}.free-talk-status{min-height:2.8em;font-size:.95rem;margin:12px auto 6px;max-width:440px}.free-talk-controls{min-height:60px;display:flex;justify-content:center;align-items:center}.free-talk-mic{display:flex!important;align-items:center;justify-content:center;gap:10px;min-height:54px;min-width:190px;padding:10px 22px!important}.free-talk-mic svg{width:28px;height:28px;flex:none}.free-talk-download{font-size:.8rem;line-height:1.5;max-width:360px;margin:10px auto;color:#5a7485}.free-talk-tabs{display:flex;justify-content:center;gap:8px;margin:20px auto 14px}.free-talk-tabs button{border:2px solid #d1e6ed;border-radius:30px;background:#fff;padding:10px 18px;color:#3c6176;font:inherit;font-weight:700;min-height:44px}.free-talk-tabs button[aria-pressed=true]{background:#e1f3ff;border-color:#63b2e6;color:#1267a0}.free-talk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.free-talk-card{background:linear-gradient(165deg,#fff,#f1faff);border:2px solid #d5e9f3;border-radius:20px;padding:12px 5px;display:flex;align-items:center;flex-direction:column;min-height:136px;box-shadow:0 4px 0 #b8d7e04a;color:inherit;font:inherit;cursor:pointer}.free-talk-card:nth-child(3n+2){background:linear-gradient(165deg,#fff,#f2fbeb)}.free-talk-card:nth-child(3n){background:linear-gradient(165deg,#fff,#fff1f6)}.free-talk-card:disabled{opacity:.55;cursor:default}.free-talk-picture{height:55px;width:65px;font-size:2.5rem;display:flex;align-items:center;justify-content:center}.free-talk-picture img,.free-talk-picture svg{max-width:100%;max-height:100%;object-fit:contain}.free-talk-card strong{font-size:1.2rem;line-height:1.7}.free-talk-card>span:not(.free-talk-picture){font-size:.8rem;color:#567184}.free-talk-card small{font-size:.75rem;color:#567184;margin-top:4px}.free-talk-hint{font-size:.85rem;line-height:1.6}.free-talk-help{text-align:left;margin:16px auto;padding:12px 16px;border-radius:16px;background:#eef6f8;font-size:.8rem;line-height:1.6}.free-talk-help summary{cursor:pointer;font-weight:700;min-height:24px}.free-talk [data-talk]:focus-visible{outline:3px solid #1586d2;outline-offset:4px}.free-talk-feature-free{display:block;color:#19764d;font-size:.8rem;font-weight:800}.free-talk[data-talk-phase=listening] .free-talk-bubble{border-color:#31b780}.free-talk[data-talk-phase=processing] .free-talk-bubble{border-color:#e9bd59}@media(max-width:420px){.free-talk{padding:8px 8px 20px}.free-talk-friend{gap:8px}.free-talk-friend>img{width:86px;height:112px}.free-talk-bubble{padding:12px}.free-talk-bubble strong{font-size:1.25rem}.free-talk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.free-talk-tabs button{padding:9px 14px;font-size:.9rem}.free-talk-card{min-height:125px}}


.free-talk-question{text-align:left;margin:16px auto;max-width:540px}.free-talk-question label{display:block;font-size:.85rem;font-weight:700;margin-bottom:6px}.free-talk-question>div{display:flex;gap:8px}.free-talk-question input{min-width:0;flex:1;padding:12px;border:2px solid #b8deed;border-radius:16px;background:white;font:inherit;color:inherit}.free-talk-topic{display:flex;align-items:center;justify-content:center;gap:12px;margin:20px 0;font-weight:700}.free-talk-topic select{max-width:230px;padding:10px;border:2px solid #b8deed;border-radius:14px;background:white;color:inherit;font:inherit}.free-talk-controls{gap:8px}.free-talk-question button{padding:10px 16px!important}.free-talk-tabs{flex-wrap:wrap}@media(max-width:420px){.free-talk-question>div{flex-wrap:wrap}.free-talk-question input{flex-basis:100%}.free-talk-topic{flex-wrap:wrap}}

/* Scoped controls override the older Talk artwork-button skin. */
.coin-dialog[data-talk-view=true] .free-talk :is(.talk-primary,.talk-stop,.back-tile){display:flex;align-items:center;justify-content:center;min-height:50px;width:auto;max-width:100%;padding:10px 22px;border:2px solid white;border-bottom:5px solid #13784b;border-radius:24px;background:linear-gradient(145deg,#35b77c,#13864e);color:#fff;font:inherit;font-weight:800;box-shadow:0 4px 12px #245c3420;cursor:pointer}
.coin-dialog[data-talk-view=true] .free-talk :is(.talk-stop,.back-tile){background:linear-gradient(145deg,#ec7289,#d64165);border-bottom-color:#a82e4c}
.coin-dialog[data-talk-view=true] .free-talk>.back-tile{margin:18px auto 0}
.coin-dialog[data-talk-view=true] .free-talk .talk-primary:disabled{opacity:.55}
body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top{display:flex;flex-wrap:wrap;gap:8px}
body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top .coin-sheet-brand{min-width:0;flex:1;max-width:160px}
@media(max-width:460px){body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top .coin-header-tools{flex-basis:100%;justify-content:center;margin:0}body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top{justify-content:space-between}}

/* Voice and four picture choices form the child-facing screen. */
.free-talk{max-width:600px}.free-talk-heading h2{margin:4px 0 12px}.free-talk-friend{margin:8px auto;min-height:116px}.free-talk-friend>img{height:126px;width:108px}.free-talk-status{min-height:1.6em;margin:10px auto;font-size:.92rem}.free-talk-controls{min-height:76px}.coin-dialog[data-talk-view=true] .free-talk .free-talk-mic{min-height:72px;min-width:220px;font-size:1.15rem;border-radius:34px}.free-talk-mic svg{width:34px;height:34px}.free-talk-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:440px;margin:0 auto;gap:12px}.free-talk-card{min-height:146px;padding:12px 8px;animation:none!important;transform:none!important}.free-talk-picture{height:76px;width:88px}.free-talk-picture img,.free-talk-picture svg{width:100%;height:100%;min-width:0;min-height:0}.free-talk-card strong{font-size:1.25rem}.free-talk-card small{font-size:.85rem}.free-talk-topic{margin:18px 0 12px;font-size:.9rem}.free-talk-topic select{max-width:220px;min-height:48px}.free-talk-tabs{margin:12px auto;gap:10px}.free-talk-options,.free-talk-help{max-width:480px;margin:16px auto 0;text-align:left}.free-talk-options{border:1px solid #d5e9f3;border-radius:18px;padding:4px 14px;background:#ffffff80}.free-talk-options>summary,.free-talk-help>summary{display:list-item;min-height:44px;padding:12px 0;box-sizing:border-box;cursor:pointer;font-weight:700}.free-talk-help{background:transparent;padding:0 14px;font-size:.8rem;color:#567184}.free-talk-options .free-talk-tabs{margin:6px 0}.free-talk-download{margin:6px 0;text-align:left}.free-talk-question{margin:12px 0}.free-talk-question input{min-height:48px}.free-talk-options summary:focus-visible,.free-talk-help summary:focus-visible{outline:3px solid #1586d2;outline-offset:3px}@media(max-width:420px){.free-talk-friend{gap:10px}.free-talk-friend>img{width:82px;height:108px}.free-talk-bubble{padding:12px}.free-talk-card{min-height:140px}.free-talk-picture{height:72px;width:82px}.free-talk-topic{gap:8px}.free-talk-topic select{max-width:210px}}

/* One wide Talk entry, then three pairs at every screen size. */
body #app .home-landing.topic-four-home .topic-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
body #app .home-landing.topic-four-home .topic-category-tile{position:relative;display:flex;grid-column:auto;width:100%;min-width:0;min-height:0;aspect-ratio:auto;justify-self:stretch;align-self:stretch}
body #app .home-landing.topic-four-home .topic-category-tile>.topic-tile-face{position:relative;inset:auto;display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;align-items:center;min-height:0;height:auto;aspect-ratio:1;padding:12px 10px;gap:10px}
body #app .home-landing.topic-four-home .topic-category-tile .topic-tile-picture{flex:0 1 auto;width:clamp(66px,20vw,112px);height:clamp(66px,20vw,112px);max-height:62%;margin:0}
body #app .home-landing.topic-four-home .topic-category-tile .topic-tile-label{position:static;flex:0 0 auto;width:100%;min-width:0;text-align:center}
body #app .home-landing.topic-four-home .topic-category-talk{grid-column:1/-1;aspect-ratio:auto;min-height:112px;--topic-fill:#67dca4;--topic-edge:#29a875;--topic-ink:#104d39}
body #app .home-landing.topic-four-home .topic-category-talk>.topic-tile-face{flex-direction:row;aspect-ratio:auto;min-height:112px;padding:14px 22px;gap:20px}
body #app .home-landing.topic-four-home .topic-category-talk .topic-tile-picture{flex:0 0 64px;width:64px;height:64px;max-height:none}
body #app .home-landing.topic-four-home .topic-category-talk .topic-tile-label{flex:0 1 auto;width:auto}
@media(max-width:380px){body #app .home-landing.topic-four-home .topic-category-grid{gap:14px 12px}body #app .home-landing.topic-four-home .topic-category-talk{min-height:100px}body #app .home-landing.topic-four-home .topic-category-talk>.topic-tile-face{padding:12px;gap:14px}}

/* Use the available screen for Talk instead of the older short coin sheet. */
body>.coin-backdrop>.coin-dialog:has(.free-talk){height:calc(100svh - 24px);max-height:calc(100svh - 24px)}
body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-sheet-scroll{padding:12px 14px 24px}
@media(max-width:460px){body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top{flex-wrap:nowrap;gap:6px;min-height:100px;padding:30px 10px 8px}body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top .coin-sheet-brand{max-width:88px;min-width:44px;flex:1 1 70px}body>.coin-backdrop>.coin-dialog:has(.free-talk)>.coin-dialog-top .coin-header-tools{flex-basis:auto;flex-shrink:0;justify-content:flex-end;margin:0;gap:4px}}

/* A single large learning item, the companion, and three small practice actions. */
.free-talk-guided{max-width:540px;margin:0 auto;padding-top:20px}
.free-talk-guided .free-talk-friend{gap:20px;min-height:250px;align-items:center}
.free-talk-guided .free-talk-friend>img{width:140px;height:190px;filter:drop-shadow(0 0 15px #5ed6a353)}
.free-talk-guided .free-talk-bubble{flex:1;max-width:280px;text-align:center;border-color:#b1e9cb;background:linear-gradient(#fff,#f0fff6);box-shadow:0 0 25px #6bdaa338}
.free-talk-current-picture{display:grid!important;place-items:center;min-height:132px;height:132px;margin-bottom:10px}
.free-talk-current-picture img,.free-talk-current-picture svg{display:block;width:124px;height:124px;object-fit:contain}
.free-talk-letter{font-size:3.8rem!important;color:#23764f}
.free-talk-guided .free-talk-bubble strong{font-size:1.8rem;color:#206444}
.free-talk-guided .free-talk-status{max-width:390px;min-height:3em;display:grid;place-items:center;margin:18px auto 6px}
.free-talk-guided .free-talk-tabs{gap:8px;flex-wrap:nowrap}
.free-talk-guided .free-talk-tabs button{background:linear-gradient(#fff,#e7f7ed);border-color:#b5e7c9;box-shadow:0 0 13px #65cc8e38;color:#286546;min-height:48px;flex:1;padding:10px 8px;font-size:.9rem}
.free-talk-guided[data-talk-phase=listening] .free-talk-mic{box-shadow:0 0 22px #42cc8e99!important}
@media(max-width:420px){.free-talk-guided{padding:8px 0 20px}.free-talk-guided .free-talk-friend{gap:10px;min-height:220px}.free-talk-guided .free-talk-friend>img{width:92px;height:150px}.free-talk-current-picture{height:112px;min-height:112px}.free-talk-current-picture img,.free-talk-current-picture svg{width:106px;height:106px}.free-talk-guided .free-talk-bubble strong{font-size:1.5rem}}

body>.coin-backdrop>.coin-dialog:has(.free-talk-guided){background:linear-gradient(140deg,#fff9fc,#f1fbff 60%,#f2fff7)!important}

.free-talk-guided{--friend-glow:#429aff75}
.free-talk-guided[data-companion=girl]{--friend-glow:#ed74b077}
.free-talk-guided .free-talk-friend>img{filter:drop-shadow(0 0 14px var(--friend-glow));transform-origin:50% 85%;transition:filter .25s,transform .25s}
.free-talk-guided[data-talk-phase=speaking] .free-talk-friend>img{animation:sano-tutor-speaking 2.2s ease-in-out infinite}
.free-talk-guided[data-talk-phase=listening] .free-talk-friend>img{transform:rotate(-4deg) scale(1.025)}
@keyframes sano-tutor-speaking{0%,100%{transform:translateY(0) rotate(-1deg)}40%{transform:translateY(-5px) rotate(2deg)}70%{transform:translateY(-2px) rotate(-2deg)}}
.free-talk-guided .free-talk-tabs button[data-talk=repeat]{background:linear-gradient(#f7f0ff,#d8c5f5);border-color:#c3a5e8;color:#583781;box-shadow:0 0 16px #b597e65c}
.free-talk-guided .free-talk-tabs button[data-talk=next]{background:linear-gradient(#fff5da,#f7d77e);border-color:#e8bd57;color:#775015;box-shadow:0 0 16px #e6bf595e}
.free-talk-guided .free-talk-tabs button[data-talk=slow]{background:linear-gradient(#fff0f1,#f5b7bd);border-color:#e594a0;color:#883b51;box-shadow:0 0 16px #e78e9e5c}
@media(prefers-reduced-motion:reduce){.free-talk-guided .free-talk-friend>img{animation:none!important;transform:none!important;transition:none}}
body[data-motion=reduce] .free-talk-guided .free-talk-friend>img{animation:none!important;transform:none!important;transition:none}

/* Keep every 44px choice visible without wrapping the two mascots. */
@media(max-width:460px){body>.coin-backdrop>.coin-dialog:has(.free-talk-guided)>.coin-dialog-top .coin-sheet-back{width:50px;min-width:50px;padding:4px;font-size:14px}body>.coin-backdrop>.coin-dialog:has(.free-talk-guided)>.coin-dialog-top{gap:4px;justify-content:space-between}}
@media(max-width:380px){body>.coin-backdrop>.coin-dialog:has(.free-talk-guided)>.coin-dialog-top .coin-sheet-brand{display:none}}

/* Talk belongs to the main learning canvas, with the same Back and choices. */
body>.coin-backdrop[data-talk-view=true]{padding:0;background:var(--sano-canvas,#f5faff);backdrop-filter:none;-webkit-backdrop-filter:none}
body>.coin-backdrop>.coin-dialog[data-talk-view=true]{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;background:var(--sano-canvas,#f5faff)!important}
body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top{display:grid;grid-template-columns:76px minmax(70px,1fr) auto;align-items:center;gap:12px;max-width:1040px;width:100%;box-sizing:border-box;margin:auto;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));min-height:88px}
body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-sheet-brand{display:block;justify-self:center;max-width:130px;min-width:70px;width:100%}
body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-header-tools{margin:0;gap:8px;justify-content:flex-end;flex-basis:auto}
body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-sheet-scroll{display:grid;align-content:center;flex:1;min-height:0;padding:24px 18px max(24px,env(safe-area-inset-bottom));overflow-y:auto}
body>.coin-backdrop>.coin-dialog[data-talk-view=true] [data-free-talk-root]{width:min(600px,100%);margin:auto}
.free-talk-guided{padding:0 0 12px}.free-talk-guided .free-talk-friend{min-height:230px;margin:16px auto;gap:24px}.free-talk-guided .free-talk-friend>img{filter:drop-shadow(0 5px 8px #392b2929);width:150px;height:205px}.free-talk-guided[data-companion=girl] .free-talk-friend>img{filter:drop-shadow(0 5px 8px #332e3529)}
@media(max-width:460px){body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top{grid-template-columns:64px 1fr;gap:10px;padding-top:max(14px,env(safe-area-inset-top));min-height:128px}body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-sheet-brand{grid-column:1/-1;grid-row:1;max-width:106px}body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-sheet-back{grid-row:2;width:62px;min-width:62px}body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-header-tools{grid-row:2;grid-column:2;gap:6px}body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-sheet-scroll{align-content:start;padding:22px 16px max(22px,env(safe-area-inset-bottom))}.free-talk-guided .free-talk-friend{min-height:205px;gap:12px}.free-talk-guided .free-talk-friend>img{width:100px;height:165px}}
@media(min-width:461px){body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-sheet-back{position:static!important;justify-self:start}body>.coin-backdrop>.coin-dialog[data-talk-view=true]>.coin-dialog-top .coin-header-tools{justify-self:end}}

.free-talk-privacy{max-width:39rem;margin:8px auto 12px;padding:0 16px;text-align:center;color:#526b7a;font-size:13px;line-height:1.5;text-wrap:balance}
.free-talk-level{display:flex;align-items:center;gap:3px;height:28px;width:32px;flex:none}
.free-talk-level i{width:4px;height:100%;border-radius:6px;background:#fff;transform:scaleY(calc(.12 + var(--bar-level,var(--voice-level,0))*.88));transition:transform 45ms linear;transform-origin:center}
.free-talk-level i:nth-child(1){--bar-level:var(--voice-4,0)}.free-talk-level i:nth-child(2){--bar-level:var(--voice-2,0)}.free-talk-level i:nth-child(3){--bar-level:var(--voice-level,0)}.free-talk-level i:nth-child(4){--bar-level:var(--voice-1,0)}.free-talk-level i:nth-child(5){--bar-level:var(--voice-3,0)}
.free-talk-guided[data-talk-phase=listening] .free-talk-mic{animation:none;outline:3px solid #b0edcf;outline-offset:calc(3px + var(--voice-level,0)*7px);box-shadow:0 0 calc(8px + var(--voice-level,0)*32px) #42cc8e99!important;transition:outline-offset 45ms linear,box-shadow 45ms linear}
.free-talk-guided[data-talk-phase=listening] .free-talk-mic>svg{transform:scale(calc(1 + var(--voice-level,0)*.09));transition:transform 45ms linear}
.free-talk-guided[data-talk-phase=listening][data-voice-active=true] .free-talk-bubble{border-color:#4fbd80;box-shadow:0 0 calc(18px + var(--voice-level,0)*24px) #68d49b75}
@media(prefers-reduced-motion:reduce){.free-talk-guided[data-talk-phase=listening] .free-talk-mic{outline-offset:3px}.free-talk-guided[data-talk-phase=listening] .free-talk-mic>svg{transform:none}}
body[data-motion=reduce] .free-talk-guided[data-talk-phase=listening] .free-talk-mic{outline-offset:3px}body[data-motion=reduce] .free-talk-guided[data-talk-phase=listening] .free-talk-mic>svg{transform:none}

/* The meter follows measured microphone energy; idle readiness stays still. */
.coin-dialog[data-talk-view=true] .free-talk.free-talk-guided .free-talk-mic{position:relative;min-width:230px;min-height:78px;gap:12px;border-radius:30px;background:linear-gradient(145deg,#46c98d,#147b54);box-shadow:0 8px 22px #186d4b25!important}
.coin-dialog[data-talk-view=true] .free-talk.free-talk-guided[data-talk-phase=listening] .free-talk-mic{outline:3px solid #b0edcf;outline-offset:calc(3px + var(--voice-level,0)*10px);box-shadow:0 0 calc(12px + var(--voice-level,0)*48px) #47d895b0,0 8px 20px #176e4c25!important}
.free-talk-guided .free-talk-level{width:39px;height:32px;gap:3px}.free-talk-guided .free-talk-level i{width:5px;box-shadow:0 0 7px #d5ffdbb0}
.free-talk-guided .free-talk-signal{min-height:1.4em;margin:12px auto 2px;color:#32805b;font-size:.82rem;font-weight:700}
.free-talk-guided .free-talk-bubble{border-radius:28px;border-width:2px;background:linear-gradient(150deg,#fff,#ebfff5);box-shadow:0 10px 35px #53856e18;transition:border-color .12s,box-shadow .12s}
.free-talk-guided .free-talk-status{font-size:.96rem;min-height:2.5em;margin:12px auto 8px;text-wrap:balance}
.free-talk-guided .free-talk-privacy{font-size:12px;color:#5d786b;margin:4px auto 12px}
@media(prefers-reduced-motion:reduce){.coin-dialog[data-talk-view=true] .free-talk.free-talk-guided[data-talk-phase=listening] .free-talk-mic{outline-offset:3px}}
body[data-motion=reduce] .coin-dialog[data-talk-view=true] .free-talk.free-talk-guided[data-talk-phase=listening] .free-talk-mic{outline-offset:3px}

@media(max-width:380px){.coin-dialog[data-talk-view=true] .free-talk.free-talk-guided .free-talk-mic{min-width:190px;gap:8px;padding:10px 12px!important}.free-talk-guided .free-talk-mic>svg{width:24px;height:24px}.free-talk-guided .free-talk-level{width:27px;gap:2px}.free-talk-guided .free-talk-level i{width:3px}}

/* The listening result stays visible through its recorded guidance. */
.free-talk-guided .free-talk-status{display:flex;align-items:center;justify-content:center;gap:8px;min-height:3em;padding:8px 12px;border-radius:18px;transition:background .18s,color .18s}
.free-talk-result-mark:empty{display:none}.free-talk-result-mark{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#fff9;font-size:24px;font-weight:900}
.free-talk-guided[data-talk-feedback=matched] .free-talk-status{background:#d6f7e3;color:#166342;font-weight:800}
.free-talk-guided[data-talk-feedback=matched] .free-talk-bubble{border-color:#55c991;box-shadow:0 0 22px #60d9a255,0 10px 30px #53856e18}
.free-talk-guided:is([data-talk-feedback=retry],[data-talk-feedback=unclear]) .free-talk-status{background:#fff0ca;color:#78551c;font-weight:800}
.free-talk-guided:is([data-talk-feedback=retry],[data-talk-feedback=unclear]) .free-talk-bubble{border-color:#e8c264;box-shadow:0 0 20px #f2cd7544}
@media(prefers-reduced-motion:reduce){.free-talk-guided .free-talk-status{transition:none}}

/* Actual input energy drives the broad halo; silence has no pretend pulse. */
.free-talk-guided .free-talk-controls{position:relative;isolation:isolate;min-height:96px;align-items:center}
.free-talk-guided .free-talk-controls::before{content:"";pointer-events:none;position:absolute;z-index:-1;inset:-22px 5%;border-radius:50%;background:radial-gradient(ellipse,#54edaa85 0%,#6cebc552 40%,#62dda000 73%);filter:blur(14px);opacity:0;transform:scale(.92)}
.free-talk-guided[data-talk-phase=listening] .free-talk-controls::before{opacity:calc(.16 + var(--voice-level,0)*.84);transform:scale(calc(.94 + var(--voice-level,0)*.36))}
.free-talk-guided .free-talk-mic{position:relative;min-width:210px;min-height:78px;border-radius:30px;gap:12px}
.free-talk-guided .free-talk-mic:disabled{opacity:.75;cursor:default}
.free-talk-guided .free-talk-processing{display:none;width:24px;height:24px;flex:none;border:3px solid #92dcbc;border-top-color:#147a53;border-radius:50%;box-shadow:0 0 16px #55dba66e;animation:talk-processing-turn .85s linear infinite}
.free-talk-guided[data-talk-phase=processing] .free-talk-processing{display:inline-block}
.free-talk-guided[data-talk-phase=processing] .free-talk-status>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.free-talk-guided[data-talk-phase=processing] .free-talk-mic>span{visibility:hidden;width:0;overflow:hidden}
@keyframes talk-processing-turn{to{rotate:360deg}}
/* Talk lives inside exactly the same home toolbar, safe area and scroll shell. */
body #app .foundations-shell:has(.home-landing,.free-talk-page)>.simple-header>.shared-topic-back{display:none}
body #app .foundations-shell:has(.home-landing,.free-talk-page)>.simple-header>.brand{grid-column:2}
.free-talk-page{width:min(600px,100%);margin:0 auto;padding:clamp(12px,3vh,30px) 0}
.home-landing>.topic-landing-finish{display:flex;justify-content:center;margin:22px auto 8px}
.free-talk-page .free-talk-friend{gap:clamp(12px,3vw,24px)}
.free-talk-page .free-talk-controls{flex-wrap:wrap;gap:12px}
@media(max-width:380px){.free-talk-page .free-talk-mic{min-width:180px;padding-inline:12px!important}.free-talk-page .free-talk-friend>img{width:95px;height:155px}}
@media(prefers-reduced-motion:reduce){.free-talk-guided .free-talk-processing{animation:none}.free-talk-guided[data-talk-phase=listening] .free-talk-controls::before{transform:none}}
body[data-motion=reduce] .free-talk-guided .free-talk-processing{animation:none}body[data-motion=reduce] .free-talk-guided[data-talk-phase=listening] .free-talk-controls::before{transform:none}

