@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fraunces:wght@600;700;800&display=swap');
*{box-sizing:border-box}body{margin:0;background:#102e2c;color:#fff3d9;font:600 16px Nunito,system-ui,sans-serif;background-image:radial-gradient(ellipse at 80% 10%,#32655388,transparent 50%)}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:14px;padding:12px 18px;background:#ffce6b;color:#273d30;font-weight:900;min-height:46px}button:hover{filter:brightness(1.08)}button:disabled{opacity:.55;cursor:default}button.secondary{background:#ffffff13;color:#fff3d9;border:1px solid #ffffff30}header{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px 30px}.brand{font:800 30px Fraunces,Georgia;color:#ffda87;text-decoration:none;text-shadow:0 3px #0004}.brand span{display:block;font:800 11px Nunito;letter-spacing:4px;margin-top:5px;color:#c1d5bb}main{max-width:1140px;margin:16px auto 120px;padding:0 24px}h1,h2,h3{font-family:Fraunces,Georgia;margin:0 0 16px}h1{font-size:40px}h2{font-size:27px}h3{font-size:21px}p{line-height:1.6;color:#cbdbcd}.eyebrow{color:#ffce6b;letter-spacing:2px;font-size:13px;font-weight:900}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.stats{display:flex;gap:12px;flex-wrap:wrap}.stat{background:#244a40;border:1px solid #8aad7133;padding:12px 20px;border-radius:18px}.stat strong{color:#ffda87;font-size:22px}.home-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.scene{position:relative;min-height:470px;background:linear-gradient(0deg,#102e2c,transparent 70%),url('world.webp') center/cover;border-radius:28px;border:1px solid #9bc89255;overflow:hidden;padding:28px;display:flex;flex-direction:column;justify-content:end;box-shadow:0 16px 60px #0003}.scene p{color:#fff3d9;max-width:330px}.card{background:#21463d;border:1px solid #a0c49730;border-radius:22px;padding:24px;margin-bottom:16px}.quest{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid #ffffff15}.quest small{display:block;color:#bfd4bc;margin-top:5px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.critter{padding:12px;text-align:center}.critter img{width:100%;aspect-ratio:1/1.08;object-fit:cover;border-radius:15px}.critter h3{margin:15px 0 7px}.critter p{font-size:14px;margin:8px 0}.critter button{width:100%}.tag{display:inline-block;border-radius:8px;background:#ffce6b22;color:#ffda87;padding:5px 10px;font-size:13px}.lesson-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.lesson-icon{font-size:34px;margin-bottom:12px}.wardrobe{display:grid;grid-template-columns:1fr 1.1fr;gap:24px}.portrait{position:relative;max-width:360px;margin:auto}.portrait img{width:100%;border-radius:26px}.outfit{position:absolute;bottom:20px;left:15px;right:15px;border-radius:18px;padding:14px;text-align:center;background:#a4577ddd;color:white;font-weight:900;box-shadow:0 5px 20px #0006}.outfit.gold{background:#c8911ddd}.outfit.blue{background:#376a9ddd}.outfit.green{background:#2b7852dd}nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:6px;background:#082a27ee;border:1px solid #91ac7755;backdrop-filter:blur(15px);padding:8px;border-radius:22px;z-index:5;box-shadow:0 6px 30px #0008}nav button{background:transparent;color:#c5d8c2;white-space:nowrap}nav button.active{background:#ffce6b;color:#213a2d}label{display:block;margin:16px 0 7px}input,select{width:100%;padding:12px;border-radius:10px;background:#fff6e6;border:0;color:#203b31}dialog{background:#21463d;color:#fff3d9;border:1px solid #8eb68a;border-radius:24px;max-width:560px;width:calc(100% - 32px);padding:28px;max-height:85vh}dialog::backdrop{background:#001b19cc}.close{float:right;background:#ffffff15;color:white}#toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#ffda87;color:#213c30;border-radius:14px;padding:15px 22px;z-index:20;display:none;box-shadow:0 8px 30px #0005}.empty{padding:20px;text-align:center;color:#bcd0bc}.hint{font-size:14px;color:#b3c9b6}.locations{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.locations button{background:#2d5747;color:#fff2d4;text-align:left}.profile{max-width:220px}footer{color:#adc6b2;font-size:13px;margin-top:24px}@media(max-width:750px){header{padding:20px}.brand{font-size:24px}header button{font-size:14px;padding:10px}main{padding:0 18px;margin-top:8px}h1{font-size:32px}.top{align-items:start;flex-direction:column;gap:12px}.home-grid,.wardrobe{grid-template-columns:1fr}.scene{min-height:370px}.grid{grid-template-columns:repeat(2,1fr)}.lesson-grid{grid-template-columns:1fr}nav{bottom:10px;gap:0;width:calc(100% - 20px);justify-content:space-around;padding:6px}nav button{font-size:13px;padding:10px 8px;border-radius:14px}.card{padding:20px}.quest button{font-size:14px;padding:10px}.stat{padding:9px 13px}.scene h2{font-size:32px}}
/* A calmer, larger play surface for young explorers. */
body{background:#f4f8e9;color:#243f32;background-image:none}header{padding:20px 28px;border-bottom:1px solid #dfe7d4}.brand{color:#275540;text-shadow:none}.brand span{color:#697d60}header>button{background:transparent;color:#52664c;font-size:14px;border:1px solid #ccd9c1;min-height:44px}main{margin:24px auto 100px;max-width:1080px}p{color:#52694f}.kid-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.kid-top h1{font-size:32px;margin:0 0 5px}.kid-top p{margin:0;font-size:18px}.profile{width:auto;max-width:230px;background:#e4ecd8;border:1px solid #cedcbd;border-radius:16px}.kid-layout{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:start}.buddy-stage{background:#204f3d;border-radius:32px;padding:24px;color:#fff5d9;box-shadow:0 12px 24px #214b3412}.buddy-caption{text-align:center}.buddy-caption>span{font-size:12px;letter-spacing:2px;color:#d0dfbf}.buddy-caption h2{font-size:29px;margin:9px 0 20px}.buddy-picture{display:block;padding:0;position:relative;width:100%;max-width:330px;margin:auto;border-radius:26px;overflow:hidden;background:#153e30;box-shadow:0 6px 15px #001b2233}.buddy-picture img{display:block;width:100%;height:310px;object-fit:cover}.buddy-picture>span{display:block;background:#ffdc85;font-size:18px;padding:15px}.buddy-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:19px;flex-wrap:wrap}.buddy-tools button.secondary{font-size:14px;padding:10px 13px;color:#fff5d9;background:#ffffff14;border-color:#ffffff30}.firefly-balance{font-size:16px;color:#ffdf8b}.today h2{font-size:26px;margin:6px 0 20px}.activity-list{display:flex;flex-direction:column;gap:12px}.activity{display:flex;align-items:center;gap:15px;width:100%;text-align:left;background:white;border:1px solid #d9e5ce;border-radius:20px;padding:17px;min-height:94px;box-shadow:0 4px 0 #dfe8d4;color:#294833}.activity>span:nth-child(2){flex:1}.activity strong{display:block;font-size:18px;line-height:1.35}.activity small{display:block;margin-top:5px;color:#63765d;font-size:14px;font-weight:600}.activity-icon{display:flex;align-items:center;justify-content:center;min-width:50px;height:50px;background:#edf3df;border-radius:16px;font-size:27px}.activity-tick{font-size:23px;color:#629758}.story{background:#fff7d9;border-color:#e7dcb0;box-shadow:0 4px 0 #ede1bc}.story .activity-icon{background:#ffedb4}.explore-big{width:100%;background:#32764e;color:white;border-radius:20px;padding:18px;margin-top:24px;font-size:23px;box-shadow:0 5px 0 #225d3c}.explore-big small{display:block;font-size:14px;margin-top:7px;font-weight:600;line-height:1.5}.explore-big:disabled{background:#e1e9d9;color:#53694e;box-shadow:0 4px 0 #cedbc2;opacity:1}.approval-note{font-size:14px;margin:18px 0 0}.more-activities{display:block;margin:17px auto 0;background:transparent;color:#466941;text-decoration:underline;font-size:15px}.all-done{text-align:center;padding:24px;background:white;border-radius:20px;font-size:35px}.all-done h3{margin-top:15px}.all-done p{font-size:16px}.card{background:white;color:#294833;border-color:#d6e1cc}.card small,.hint,.empty{color:#5b7054}.card .tag{background:#eaf0d9;color:#456039}.quest{border-color:#e1e8d9}.secondary{color:#375b40!important;background:#e8efdc!important;border-color:#c5d6b8!important}.stat{background:#e7efdc;color:#385d40;border-color:#d6e2c8}.stat strong{color:#365c34}nav{background:#f5f8edeb;border-color:#cad8bd}nav button{color:#365739}dialog{background:#fffdf4;color:#294833;border-color:#d0dfc3}dialog .close{color:#39583c;background:#e7eedc}.locations button{background:#dcebcf;color:#294833}.menu-choices{display:grid;gap:15px;margin-top:26px}.menu-choices button{text-align:left;padding:24px;background:#e7efd8;font-size:20px}footer{color:#687c5d}.critter h3{font-size:22px}.critter img{max-height:220px}.lesson-grid .card button{font-size:16px}.outfit{color:white}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #c88722;outline-offset:4px}@media(max-width:750px){header{padding:14px 18px}.brand{font-size:23px}.brand span{font-size:10px;letter-spacing:3px}main{margin-top:20px}.kid-top{align-items:start;margin-bottom:20px;gap:10px}.kid-top h1{font-size:27px}.kid-top p{font-size:16px}.kid-top .profile{max-width:135px;font-size:14px;padding:10px}.kid-layout{grid-template-columns:1fr;gap:24px}.buddy-stage{padding:18px;border-radius:26px}.buddy-caption h2{font-size:25px;margin:6px 0 13px}.buddy-picture{max-width:none;display:grid;grid-template-columns:130px 1fr;align-items:center;border-radius:20px;background:#ffdc85}.buddy-picture img{height:160px;width:130px;object-fit:cover}.buddy-picture>span{font-size:20px;padding:18px}.buddy-tools{margin-top:14px}.today h2{font-size:24px;margin-bottom:16px}.activity{min-height:85px;padding:14px}.activity strong{font-size:17px}.explore-big{margin-top:20px}.top h1{font-size:28px}header>button{padding:9px 12px}.card .quest{flex-wrap:wrap}nav{width:auto;min-width:220px}.buddy-tools button.secondary{color:#fff5d9!important;background:#ffffff14!important;border-color:#ffffff30!important}}

/* October: warm lanterns, plum skies, friendly adventures. */
.hollow-map{border-radius:28px;overflow:hidden;background:#204f3d;color:#fff5d9;margin-bottom:28px;border:1px solid #387854}.map-title{padding:22px 24px 4px}.map-title>span{font-size:14px;letter-spacing:2px;font-weight:900}.map-title h2{margin:8px 0;font-size:30px}.map-title p,.map-help{color:#f8ecd2}.map-title p{margin:8px 0 16px}.map-landscape{position:relative;aspect-ratio:1.8;background:url('world.webp') center/cover}.map-stop{position:absolute;background:#fffcf0ed;color:#284832;text-align:center;padding:10px 14px;box-shadow:0 4px 0 #122b3466;border:2px solid #fff7d8;min-width:130px}.map-stop>span{display:block;font-size:26px;margin-bottom:3px}.map-stop small{display:block;font-size:14px;font-weight:600;margin-top:4px}.stop-0{left:9%;top:12%}.stop-1{left:30%;top:57%}.stop-2{right:8%;top:61%}.stop-3{right:13%;top:10%}.map-help{font-size:14px;margin:0;padding:16px 24px;line-height:1.5}
body[data-theme=halloween]{background:#f6ebdf;color:#432b4d}body[data-theme=halloween] header{border-color:#dfc7bc}body[data-theme=halloween] .brand{color:#562d64}body[data-theme=halloween] .brand span{color:#925533}body[data-theme=halloween] p{color:#725763}body[data-theme=halloween] .hollow-map,body[data-theme=halloween] .buddy-stage{background:#392548;border-color:#7f4e7f}body[data-theme=halloween] .map-landscape{background-image:url('halloween-map.webp')}body[data-theme=halloween] .map-title p,body[data-theme=halloween] .map-help{color:#f9dfba}body[data-theme=halloween] .buddy-caption>span{color:#f2c89e}body[data-theme=halloween] .buddy-picture>span,body[data-theme=halloween] button:not(.secondary):not(.activity):not(.more-activities):not(.map-stop):not(.close){background:#ffba67;color:#46284e}body[data-theme=halloween] .activity{border-color:#e4c9bb;color:#4b3052;box-shadow:0 4px 0 #dfc7ba}body[data-theme=halloween] .activity-icon{background:#fce2bf}body[data-theme=halloween] .story{background:#fff3dc}body[data-theme=halloween] .explore-big{background:#744987!important;color:#fff8ec!important;box-shadow:0 5px 0 #523263}body[data-theme=halloween] .explore-big:disabled{background:#e2d5e6!important;color:#674e6e!important;box-shadow:0 4px 0 #cfbad7}body[data-theme=halloween] .profile,body[data-theme=halloween] .stat{background:#efdfed;color:#54375e;border-color:#d7bddb}body[data-theme=halloween] dialog{border-color:#d6bbd8;color:#432b4d}body[data-theme=halloween] .secondary{background:#eadfeb!important;color:#55315b!important;border-color:#cfb6d3!important}body[data-theme=halloween] .buddy-tools .secondary{background:#ffffff18!important;color:#fff3da!important}body[data-theme=halloween] .card{color:#432b4d;border-color:#dfc9df}body[data-theme=halloween] .quest{border-color:#e8dbe8}body[data-theme=halloween] .outfit{background:#824c91e8}body[data-theme=halloween] .map-stop{color:#513157;background:#fff4dfed;border-color:#ffcd84}body[data-theme=halloween] nav{background:#fff3e8ee;border-color:#d8bfd7}body[data-theme=halloween] .more-activities{color:#694178}
@media(max-width:600px){.map-title{padding:19px 18px 4px}.map-title h2{font-size:25px}.map-landscape{aspect-ratio:1/1.05}.map-stop{min-width:0;max-width:145px;font-size:14px;padding:9px 11px}.map-stop small{font-size:14px}.map-stop>span{font-size:23px}.stop-0{left:5%;top:10%}.stop-1{left:5%;top:60%}.stop-2{right:4%;top:63%}.stop-3{right:4%;top:12%}.map-help{padding:14px 18px}.hollow-map{border-radius:24px}.map-title p{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

/* Large, picture-first controls for little explorers. */
body,body[data-theme=halloween]{background:#fff6e9;color:#413557}header{max-width:1000px;padding:16px 24px}header .brand{font-family:Nunito,system-ui;font-weight:900;font-size:28px}.brand span{font-size:12px;letter-spacing:2px}main{max-width:940px;margin-top:18px}.kid-top{margin-bottom:16px}.kid-top h1{font:900 26px Nunito,system-ui;margin:0}.hollow-map{border:3px solid #d9bae9!important;background:#fff!important;box-shadow:0 7px 0 #eedff4}.map-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 22px}.map-title h2{font:900 27px Nunito,system-ui;color:#603777;margin:0}.map-balance{background:#fff0b4;color:#614226;border-radius:20px;padding:10px 14px;font-size:20px;font-weight:900;white-space:nowrap}.map-balance span{font-size:14px}.map-landscape{aspect-ratio:1.85}.map-stop,body[data-theme=halloween] .map-stop{border:3px solid white;background:#fff9ef;color:#4d3263;border-radius:24px;font-size:20px;font-weight:900;box-shadow:0 6px 0 #744d8255;min-height:88px;min-width:140px}.map-stop>span{font-size:36px}.map-stop:active,.play-buttons button:active{transform:translateY(3px);box-shadow:none}.map-bottom{display:flex;justify-content:center;align-items:center;gap:18px;padding:13px 18px;color:#614273}.map-bottom>span{border-radius:15px;padding:9px 13px;background:#ede1fa;font-size:18px;font-weight:900;white-space:nowrap}.map-bottom p{margin:0;font-size:16px;color:#614273!important}.play-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0}.play-buttons button,body[data-theme=halloween] .play-buttons button{background:#ffdf92;color:#614225;padding:20px 12px;font-size:21px;border:3px solid white;border-radius:24px;box-shadow:0 6px 0 #ecc876;min-height:120px}.play-buttons button:nth-child(2),body[data-theme=halloween] .play-buttons button:nth-child(2){background:#dfcafa;color:#57367b;box-shadow:0 6px 0 #c3a5e3}.play-buttons button:nth-child(3),body[data-theme=halloween] .play-buttons button:nth-child(3){background:#bfece1;color:#225f56;box-shadow:0 6px 0 #99d5c7}.play-buttons button>span{display:block;font-size:40px;margin-bottom:9px}.play-buttons small{display:block;font-size:14px;margin-top:7px}.my-buddy{display:flex;align-items:center;gap:20px;background:white;border:2px solid #e8daeb;border-radius:26px;padding:14px 20px}.my-buddy img{width:84px;height:84px;object-fit:cover;border-radius:20px}.my-buddy>div{flex:1}.my-buddy small{font-size:14px;color:#806689}.my-buddy h2{font:900 22px Nunito;margin:6px 0}.my-buddy button{font-size:16px}.card h2,.card h3,dialog h2,dialog h3{font-family:Nunito,system-ui;font-weight:900}.lesson-grid .card p{font-size:16px}.lesson-grid .card .lesson-icon{font-size:44px}.lesson-grid .card>button{min-height:56px;font-size:19px}.quest{min-height:88px}.quest button{min-height:52px;font-size:18px}dialog{padding:24px;max-width:560px}dialog p{font-size:18px;line-height:1.6}.read-story{margin-bottom:12px}.hint{font-size:16px}#choices button{min-height:60px;font-size:18px}h1,h2{font-family:Nunito,system-ui;font-weight:900}
@media(max-width:600px){header{padding:14px 16px}header .brand{font-size:23px}.brand span{font-size:12px;letter-spacing:1px}main{padding:0 14px}.kid-top h1{font-size:23px}.map-title{padding:14px 12px;flex-wrap:wrap}.map-title h2{font-size:22px}.map-balance{font-size:18px;padding:8px 11px}.map-balance span{display:none}.map-landscape{aspect-ratio:1/1.05}.map-stop,body[data-theme=halloween] .map-stop{min-width:110px;max-width:130px;font-size:17px;min-height:86px;padding:9px 10px}.map-stop>span{font-size:32px}.map-bottom{gap:10px;padding:12px}.map-bottom p{font-size:14px}.map-bottom>span{font-size:16px;padding:8px 10px}.play-buttons{gap:9px;margin:22px 0}.play-buttons button,body[data-theme=halloween] .play-buttons button{padding:14px 5px;font-size:16px;min-height:110px;border-radius:20px}.play-buttons button>span{font-size:33px}.my-buddy{gap:12px;padding:12px}.my-buddy img{width:65px;height:75px}.my-buddy h2{font-size:18px}.my-buddy button{font-size:14px;padding:10px}.quest button{font-size:16px}.hollow-map{margin-bottom:20px}}

.map-landscape{aspect-ratio:1.5;background-size:100% 100%}@media(max-width:600px){.map-landscape{aspect-ratio:1.2}}

/* Each sprite cell is a full critter wearing the chosen clothes. */
.costume-sprite{background-image:var(--sprite);background-size:200% 400%;background-position:var(--x) var(--y);background-repeat:no-repeat;aspect-ratio:4/5;border-radius:22px;background-color:#fff7e6;flex-shrink:0}.buddy-costume{width:84px}.big-costume{width:100%;max-width:350px;margin:0 auto}.dressed-preview{text-align:center;align-self:start;position:sticky;top:20px}.dressed-preview h2{font-size:25px}.wearing-label{font-size:20px!important;font-weight:900;color:#633c75!important;margin-bottom:5px}.costume-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.costume-choice,body[data-theme=halloween] .costume-choice{background:#fff7eb!important;border:3px solid #eedfee;border-radius:23px;padding:9px!important;color:#593267!important;text-align:center;box-shadow:0 4px 0 #dfcbe4;min-width:0}.costume-thumb{width:100%;margin-bottom:8px;border-radius:16px}.costume-choice strong{display:block;font-size:16px;line-height:1.4}.costume-choice>span{display:block;font-size:14px;padding-top:7px;font-weight:800}.costume-choice.chosen{border-color:#9264ba;box-shadow:0 4px 0 #9264ba;background:#f1e1ff!important}.costume-choice:disabled{opacity:.7}.costume-choice:disabled .costume-thumb{filter:saturate(.75)}.costume-chest h2{font-size:25px}@media(max-width:750px){.wardrobe{grid-template-columns:1fr}.dressed-preview{position:static}.big-costume{max-width:260px}.buddy-costume{width:65px}.costume-options{grid-template-columns:repeat(2,minmax(0,1fr))}.costume-thumb{max-height:none}.costume-choice strong{font-size:16px}.costume-chest{padding:16px}.dressed-preview>p:last-child{font-size:16px}}

.map-stop,body[data-theme=halloween] .map-stop{font-size:17px;padding:9px 12px;min-width:130px;background:#fff9e9e8}.map-critter{width:84px;margin:0 auto 4px;border-radius:18px;aspect-ratio:var(--cell-ratio,4/3)}.map-stop .friend-status{font-size:14px;margin:4px 0 0;color:#6d4583;font-weight:900}.costume-sprite{aspect-ratio:var(--cell-ratio,4/3)}@media(max-width:600px){.map-stop,body[data-theme=halloween] .map-stop{font-size:15px;min-width:105px;max-width:125px;padding:7px 9px}.map-critter{width:68px}.map-stop .friend-status{font-size:14px}.stop-1{top:54%}.stop-2{top:54%}.stop-0,.stop-3{top:6%}}

.friend-picture{width:100%;border-radius:18px}.found-friend{width:240px;max-width:100%;margin:auto}.my-buddy .costume-sprite{border-radius:18px}

.online-message{text-align:center;max-width:600px;margin:70px auto}.signin-button{display:inline-block;padding:16px 22px;background:#744987;color:white;border-radius:18px;text-decoration:none;font-weight:900;min-height:52px}.account-label{font-size:14px!important;overflow-wrap:anywhere}dialog a{color:#744987;font-weight:800}#app[aria-busy=true]{pointer-events:none;opacity:.85}

#auth-form label{display:block;margin-top:1rem}#auth-error{color:#842138}#saved-recovery{width:100%;font:inherit;overflow-wrap:anywhere}#recovery-confirm{width:auto} .online-message button{margin-top:.5rem}
