/* Math Quest — warm expedition UI. All artwork is local and original. */
:root{--ink:#203e3d;--ink-soft:#71817a;--cream:#fffdf6;--parch:#fffaf0;--green:#237b59;--green-dk:#14583f;--action:#f9ba47;--action-dk:#da9832;--shadow:0 12px 35px #193b3820}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}
button,a,input{-webkit-tap-highlight-color:transparent}button{font-family:var(--body)}button:focus-visible,a:focus-visible{outline:3px solid #df9e31;outline-offset:5px}button{touch-action:manipulation}button:disabled{cursor:default}
#screen-title{display:block;padding:0;text-align:left;background:#f8f8ef;overflow-y:auto;touch-action:pan-y;color:var(--ink);isolation:isolate}
.sidebar{position:fixed;inset:0 auto 0 0;width:98px;background:#173f38;display:flex;align-items:center;flex-direction:column;color:#b9d0be;z-index:2;padding:30px 10px 20px}
.brand-mark{display:grid;place-items:center;width:52px;height:52px;border:1px solid #c5ac6650;border-radius:17px;color:#f4cc70;background:#ffffff08;transform:rotate(-7deg)}.brand-mark svg{width:38px;height:38px;stroke-width:1.35}
.side-nav{display:flex;flex-direction:column;gap:15px;margin-top:65px;width:100%}.nav-item{border:0;color:#b3c8bc;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:74px;width:100%;font-size:10px;font-weight:800;border-radius:13px;cursor:pointer;transition:background .2s,color .2s}.nav-item svg{width:25px;height:25px;stroke-width:1.55}.nav-item.active{background:#f5ce7520;color:#f5d586;box-shadow:inset 0 0 0 1px #f2d48d25}.nav-item:hover{background:#ffffff12;color:#fff4d7}.side-bottom{margin-top:auto;width:100%;text-align:center}.sidebar-spark{display:block;color:#c9ae68;font-size:25px;margin-top:28px}
.adventure-shell{margin-left:98px}.home-header{height:102px;border-bottom:1px solid #e6e8dc;display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:20px;background:#fffef8b3}.wordmark{text-decoration:none;display:block;font-family:var(--display);font-size:28px;font-weight:800;line-height:.94;color:#254a3c;letter-spacing:-1px;transform:rotate(-3deg)}.wordmark>span{color:#cb8e26}.wordmark small{display:block;font:800 7px var(--body);letter-spacing:2px;color:#82907c;margin-top:7px}.header-right{display:flex;align-items:center;gap:22px}.local-note{display:flex;align-items:center;gap:8px;font-size:11px;color:#7b8578;font-weight:700}.local-note>span{width:6px;height:6px;background:#84a986;border-radius:50%}.round-button{display:grid;place-items:center;border:1px solid #e5e8dc;background:#fffdf6;width:39px;height:39px;border-radius:50%;cursor:pointer;color:#526b5a}.round-button svg{width:18px;height:18px}.round-button[aria-pressed=true]{opacity:.55;background:#e7eadd}.profile-button{border:0;border-left:1px solid #e4e7da;background:none;display:flex;align-items:center;gap:11px;text-align:left;padding:0 0 0 22px;cursor:pointer;color:var(--ink)}.profile-face{display:grid;place-items:center;width:44px;height:44px;border:3px solid #fff;outline:1px solid #dce4d4;background:#dcebd6;border-radius:50%;font-size:26px}.profile-button b{font-size:12px;display:block}.profile-button small{display:block;font-size:9px;margin-top:4px;color:#85917e}.profile-chevron{margin-left:12px;color:#819177}
.home-content{max-width:1530px;margin:0 auto;padding:34px 42px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:20px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:900;color:#809079}.page-heading h1{font-family:var(--display);font-size:34px;line-height:1.2;letter-spacing:-.6px;margin:7px 0 5px;font-weight:700}.page-heading h1>span{color:#d6a13d}.page-heading p{margin:0;color:#7b867b;font-size:12px;line-height:1.6}.chapter-pill{font-size:9px;letter-spacing:1.4px;font-weight:900;display:flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #e1e5d6;border-radius:8px;padding:11px 14px;color:#78866b}.chapter-pill svg{width:16px;height:16px}
.adventure-grid{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:22px}.island-hero{position:relative;min-height:430px;border-radius:20px;overflow:hidden;background:#afe1d9 url('../assets/sunshine-islands.svg') 61% center/cover;box-shadow:0 6px 15px #305f4410;border:1px solid #b7d9bb;isolation:isolate}.island-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#edf5dcec 0%,#edf5dcbb 26%,#edf5dc14 58%,transparent 75%);z-index:-1}.hero-text{padding:34px 30px 61px;position:relative;z-index:1;max-width:380px}.world-badge{display:inline-flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.1px;font-weight:900;border:1px solid #5c947341;background:#f6ffefb3;color:#40744d;padding:7px 10px;border-radius:5px}.world-badge>span{width:5px;height:5px;border-radius:50%;background:#4e9658}.hero-text h2{font-family:var(--display);font-size:66px;line-height:.94;font-weight:800;color:#174e3f;letter-spacing:-2px;margin:24px 0 17px;text-shadow:0 2px #ffffd34a}.hero-text h2>span{color:#dfaa36}.hero-text p{font-size:13px;line-height:1.8;font-weight:700;color:#426e58;margin:0}.hero-tags{display:flex;gap:14px;font-size:9px;font-weight:800;color:#537c58;margin:17px 0 22px}.adventure-button{display:inline-flex;align-items:center;justify-content:center;gap:26px;min-height:49px;padding:0 23px;border:1px solid #ffc966;border-radius:9px;color:#41351d;background:linear-gradient(#ffdb76,#f6c254);box-shadow:0 4px 0 #cd9a36,0 7px 15px #a8873130;font-size:14px;font-weight:900;cursor:pointer;transition:transform .15s,box-shadow .15s}.adventure-button:hover{transform:translateY(-2px);box-shadow:0 6px 0 #cd9a36,0 9px 20px #a8873130}.adventure-button:active{transform:translateY(3px);box-shadow:0 1px 0 #cd9a36}.adventure-button svg{width:19px;height:19px}.hero-footnote{display:block;font-size:9px;color:#5d8060;margin:14px 0 0 9px;font-weight:700}.portal-label{position:absolute;right:26px;bottom:82px;font-size:9px;font-weight:800;color:#365d49;padding:9px 12px;background:#fff9ddd9;border:1px solid #fff9dd;border-radius:6px;transform:rotate(-5deg);box-shadow:0 3px 10px #163f3820}.portal-label span{font-size:15px;margin-left:4px}.hero-bottom{position:absolute;inset:auto 0 0;display:flex;justify-content:space-between;align-items:center;padding:13px 24px;background:#164e3bdb;backdrop-filter:blur(10px);color:#e4edca;font-size:8px;letter-spacing:1.6px;font-weight:900}.hero-bottom>span{display:flex;gap:9px;align-items:center}.hero-bottom svg{width:14px;height:14px}.hero-bottom i{width:31px;height:1px;background:#b5c8a369}
.quest-column{display:flex;flex-direction:column;gap:17px}.quest-card{border:1px solid #e6e5d5;background:#fffdf5;border-radius:17px;padding:23px 21px;flex:1;box-shadow:0 4px 8px #464e2b03}.section-kicker{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:800;color:#8c8d74}.mini-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:8px}.mini-icon svg{width:16px;height:16px}.gold{background:#fff0c5;color:#c39b38}.tiny-stars{margin-left:auto;font-size:25px;color:#d8c890}.quest-card h2{font-family:var(--display);font-size:24px;font-weight:700;letter-spacing:-.4px;margin:10px 0 0}.quest-card>p{font-size:10px;color:#8b8e7b;margin:2px 0 18px}.quest-list{display:grid;gap:17px}.quest-list>div{display:flex;gap:10px;align-items:center;font-size:10px;font-weight:800;color:#4f6452}.quest-list small{display:block;font-size:9px;font-weight:600;color:#929581;margin-top:3px}.quest-check{width:19px;height:19px;flex-shrink:0;border:1.5px solid #d9ddc6;border-radius:50%;background:#f8f9ed;display:grid;place-items:center}.quest-check.done{background:#e0efda;border-color:#9fc590;color:#3c794c}.quest-progress{display:flex;justify-content:space-between;margin-top:23px;font-size:9px;color:#91927e;font-weight:800}.quest-progress>span:last-child{color:#bd9c4b}.quest-track{height:5px;background:#eeeddf;border-radius:9px;margin-top:8px;overflow:hidden}.quest-track>span{display:block;height:100%;width:0;background:#8db17c;transition:width .3s}.hak-card{display:flex;align-items:center;gap:18px;padding:21px 16px;border:1px solid #d8e3cb;background:#eaf0df;border-radius:16px;min-height:136px}.hak-card .eyebrow{font-size:7px;letter-spacing:1px}.hak-card h3{font-family:var(--display);font-size:20px;margin:2px 0}.hak-card p{font-size:9px;color:#738169;line-height:1.65;margin:0}.text-button{border:0;background:none;padding:9px 0 0;color:#4b7250;font-size:9px;font-weight:900;cursor:pointer}.text-button span{margin-left:7px}.hak-mascot{position:relative;width:64px;height:75px;flex-shrink:0;border-radius:45% 45% 43% 43%;background:linear-gradient(120deg,#63c5ac,#238675);box-shadow:inset -5px -4px 0 #217e7440,0 8px 0 -4px #c5d4b4;transform:rotate(-7deg)}.hak-mascot:before{content:"";position:absolute;left:10px;bottom:4px;width:45px;height:45px;border-radius:50%;background:#faf0cd}.hak-mascot:after{content:"";position:absolute;left:-8px;top:34px;width:16px;height:28px;background:#4aaf98;border-radius:70%;transform:rotate(20deg)}.hak-eye{position:absolute;top:25px;width:7px;height:10px;background:#1e403b;border-radius:50%;z-index:1}.hak-eye:after{content:"";position:absolute;top:1px;left:2px;width:2px;height:3px;background:white;border-radius:50%}.hak-eye.left{left:18px}.hak-eye.right{right:14px}.hak-beak{position:absolute;top:39px;left:29px;width:13px;height:9px;background:#f6b447;border-radius:3px 3px 60% 60%;z-index:1}.hak-feather{position:absolute;top:-10px;left:24px;width:12px;height:21px;border-radius:80% 0;background:#46a289;transform:rotate(20deg)}
.worlds-section{margin-top:29px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.section-heading h2{font-family:var(--display);font-size:23px;letter-spacing:-.35px;font-weight:700;line-height:1.3;margin:0}.section-heading p{font-size:10px;color:#8a8e7d;margin:3px 0 0}.world-count{font-size:8px;font-weight:900;letter-spacing:1px;color:#93967f}.world-count>span{margin-left:12px;color:#687a5c;letter-spacing:2px}.world-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.world-card{display:block;text-align:left;border:1px solid #e1e4d6;border-radius:13px;padding:0;background:#fffdf7;overflow:hidden;cursor:pointer;min-width:0;transition:transform .2s,box-shadow .2s}.world-card:hover{transform:translateY(-4px);box-shadow:0 8px 18px #214b3a15}.world-art{position:relative;height:124px;overflow:hidden;isolation:isolate}.sunshine .world-art{background:#86cac0 url('../assets/sunshine-islands.svg') 85% 57%/165% auto}.sunshine{border-color:#afc9a6}.world-status{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:4px;z-index:3;color:#fffef1;background:#263e5066;backdrop-filter:blur(6px);padding:5px 7px;border-radius:4px;font-size:6px;letter-spacing:1px;font-weight:900}.world-status svg{width:9px;height:9px}.world-status.available{background:#fff9ddeb;color:#4f7650}.world-number{position:absolute;bottom:3px;right:12px;font-family:var(--display);font-weight:800;font-size:38px;color:#fff8;z-index:2}.world-info{padding:15px 14px;display:flex;align-items:center;justify-content:space-between;gap:5px}.world-info b{font-family:var(--display);font-size:16px;font-weight:700;line-height:1.2;display:block}.world-info small{font-size:8px;color:#90917f;display:block;margin-top:5px}.world-lock{width:14px;height:14px;color:#a3aa94}.world-action{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ebf0e1;color:#5c8053}.world-action svg{width:14px;height:14px}.crystal .world-art{background:radial-gradient(ellipse at 50% 110%,#e6b4ff,transparent 65%),linear-gradient(135deg,#283751,#6563a0 60%,#ac86bc)}.crystal .world-art:after{content:"✦ · ✧";position:absolute;top:20px;right:20px;color:#e8caff;letter-spacing:8px}.crystal-shape{position:absolute;width:49px;height:108px;bottom:-15px;background:conic-gradient(from 0deg at 50% 23%,#f1d9ff,#bb91f1,#674cac,#c9b4fb,#f1d9ff);clip-path:polygon(50% 0,100% 24%,83% 85%,50% 100%,13% 82%,0 26%);filter:drop-shadow(0 0 8px #dcbdff)}.c1{left:24%;transform:rotate(-16deg) scale(.8)}.c2{left:47%;bottom:-4px}.c3{left:70%;transform:rotate(19deg) scale(.7)}.frozen .world-art{background:linear-gradient(#7fbbd2,#d8edf0)}.mountain{position:absolute;bottom:-5px;width:160px;height:124px;background:linear-gradient(125deg,#f4f9ee 49%,#99bfd1 50%,#bddbe7);clip-path:polygon(50% 0,100% 100%,0 100%)}.m1{left:-10%;transform:scale(.9)}.m2{left:26%;height:138px}.m3{left:65%;transform:scale(.8)}.pine{position:absolute;bottom:-17px;color:#467d82;font-size:88px;line-height:1;transform:scaleX(.6);text-shadow:0 -10px #467d82}.p1{left:2%}.p2{right:1%;font-size:67px}.sky .world-art{background:linear-gradient(140deg,#b5b5d9,#f2d8b9)}.sky-cloud{position:absolute;width:170px;height:45px;border-radius:50%;background:#fff4dfc9;box-shadow:25px -13px 0 -4px #fff4dfc9,-16px -11px 0 -8px #fff4dfc9;bottom:-5px}.sc1{left:-30px}.sc2{right:-40px;bottom:9px}.castle{position:absolute;left:48%;bottom:20px;width:68px;height:38px;background:linear-gradient(90deg,#e9cf9e,#fff0c8);border-bottom:8px solid #afa799;border-radius:0 0 16px 16px;transform:rotate(-5deg)}.castle i{position:absolute;bottom:8px;width:18px;height:58px;background:linear-gradient(90deg,#ddc295,#fff1cc);border-top:16px solid #9298b3;clip-path:polygon(50% 0,100% 20%,100% 100%,0 100%,0 20%)}.castle i:nth-child(1){left:-6px;height:48px}.castle i:nth-child(2){left:24px;height:75px}.castle i:nth-child(3){right:-5px}
.home-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #e4e7d8;padding:20px 0 23px;margin-top:27px;font-size:9px;color:#979a86;font-weight:700}.home-footer>span{display:flex;gap:8px;align-items:center}.home-footer svg{width:16px;height:16px;color:#b6a768}.footer-heart{color:#bd9a70;font-size:12px}
/* Shared in-game surfaces */
.screen:not(#screen-title){background:linear-gradient(110deg,#173e37cc,#3b79645e),url('../assets/sunshine-islands.svg') center/cover;touch-action:pan-y}.creator,.glass{background:#fffdf3;color:var(--ink);border:1px solid #e7e4cb;border-radius:22px;box-shadow:0 24px 100px #122f3966}.creator{max-width:440px;padding:22px 30px}.creator .eyebrow{margin-top:12px;font-size:8px}.creator h2{font-size:30px;margin:3px 0 12px}.panel-back{border:0;background:transparent;color:#7a8a70;cursor:pointer;font-size:10px;font-weight:800;padding:2px 0 8px}.creator .field .lbl{color:#7c8d73;font-size:10px;display:block}.creator .pickview{color:#3d6250;font-size:15px;min-width:85px}.creator .arrow{width:34px;height:34px;min-width:34px;min-height:34px;background:#edf0e0;color:#567446;box-shadow:none;font-size:23px}.creator .seg button{background:#ecf0e2;color:#6d8162;box-shadow:none;font-size:14px;padding:7px}.creator .seg button[aria-pressed=true]{background:#337859;color:white;box-shadow:none}.creator .seg button.girl[aria-pressed=true]{background:#94628b}.creator .ctrlcard{background:#edf0e4;box-shadow:none;color:#6a7e61!important;border:1px solid transparent;padding:8px}.creator .ctrlcard[aria-checked=true],#ctrlCards2 .ctrlcard[aria-checked=true]{background:#e5eedb;color:#38643d!important;box-shadow:none;border:1px solid #87ad74}.creator .ctrlcard .big{font-size:20px}.creator .ctrlcard .cl{font-size:12px}.creator .sw{width:34px;height:34px;min-width:34px;min-height:34px;border-width:3px;box-shadow:0 2px 5px #1d39231a}.creator .sw[aria-checked=true]{outline:2px solid #708c51}.creator .sw:after{font-size:16px}.creator #nameInput{background:#f3f3e8;border:1px solid #e1e4d4;border-radius:8px;font-size:16px;padding:8px 12px}.creator #avatarPreview{background:radial-gradient(ellipse at bottom,#d7e9c5,#edf3df);border:1px solid #d9e3cf;border-radius:50%;width:125px!important;height:125px!important}.btn{border-radius:10px;font-size:18px;padding:11px 25px;color:#43371e;box-shadow:0 4px 0 var(--action-dk)}.btn.play{color:#fff;box-shadow:0 4px 0 var(--green-dk)}.btn.ghost{color:#647553;background:#eef0e3;box-shadow:0 4px 0 #d3dcc3}.glass h2{font-size:30px}.card{background:#fffaf0;border:1px solid #e5d6ad;border-radius:23px;padding:25px;box-shadow:0 20px 70px #1b40394d,inset 0 0 0 5px #fffcf6}.card:before{content:"✦  A LITTLE THINKING. A BIG DISCOVERY.  ✦";display:block;text-align:center;color:#9a956d;font-size:8px;letter-spacing:1.2px;font-weight:900;margin-bottom:17px}#qtag{color:#647d51;font-size:12px}#qprompt{margin:20px 0 25px;color:#214e40}#qprompt small{color:#8b9576}#qsub{color:#7f8a6a;font-size:13px;margin-top:22px}.choice{border-radius:12px;min-height:70px;font-size:32px}.choice:nth-child(1){background:#438bac;box-shadow:0 5px 0 #2d6986}.choice:nth-child(2){background:#63a575;box-shadow:0 5px 0 #447e57}.choice:nth-child(3){background:#967ab3;box-shadow:0 5px 0 #745b90}#qwrap:not(.show){visibility:hidden}#speech{background:#fffdf1;border:1px solid #e7ddbc;box-shadow:0 8px 24px #24534826;font-size:17px;padding:12px 22px}#speech .who{color:#328c74}
#topbar{padding:20px;gap:12px;align-items:flex-start}#hud{gap:7px}.chip{border:1px solid #ffffffb8;background:#fffdf0f0;box-shadow:0 4px 15px #20453912;border-radius:12px;font-size:18px;padding:10px 12px}#levelbadge{padding:7px 13px 7px 7px;gap:9px}#levelbadge .thumb{width:38px;height:38px;background:#d6e8c5;border-radius:8px;font-size:24px}#levelbadge .lv b{font-size:15px}#levelbadge .lv span{font-size:10px}#hearts{font-size:17px;min-height:52px;align-items:center}#friends{display:none}#centerwrap{flex:0 1 250px;padding-top:7px}#progwrap{box-shadow:0 4px 15px #20453912;background:#fffdf0ed}#progfill{background:linear-gradient(90deg,#45865c,#99c873)}#progcaption{font-size:10px;color:#41634b}#hudright .iconbtn{border-radius:12px;min-width:46px;min-height:46px;background:#fffdf0f0;box-shadow:0 4px 15px #20453912}#speech{top:95px}#touchpad .tbtn{background:#224f43a6;border:2px solid #ffffddae}#touchpad #btnJump{background:#448b5dcc}
.info-dialog{width:min(92vw,490px);max-height:86dvh;border:1px solid #e8e1c9;border-radius:22px;padding:35px;background:#fffdf4;color:var(--ink);box-shadow:0 24px 90px #153f3966;touch-action:pan-y}.info-dialog::backdrop{background:#133c377a;backdrop-filter:blur(5px)}.info-dialog h2{font-family:var(--display);font-size:32px;line-height:1.1;margin:14px 0 20px}.dialog-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:28px;color:#83927b;cursor:pointer;width:35px;height:35px}.info-dialog p{font-size:14px;color:#74816a;line-height:1.8}.info-dialog .adventure-button{margin-top:20px}.guide-step{display:flex;gap:14px;margin:20px 0}.guide-step>span{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:#ecf1df;border-radius:10px;color:#6d8f55;font-weight:900}.guide-step b{font-size:14px}.guide-step p{font-size:12px;margin:4px 0}.journal-table{margin:14px 0}.journal-table>div:first-child{display:flex;justify-content:space-between;font-size:12px;font-weight:800;margin-bottom:7px}.journal-table .quest-track{height:7px}.journal-table small{font-size:10px;font-weight:600;color:#8a917b}.preview-scene{height:160px;border-radius:12px;background:#d9eddb url('../assets/sunshine-islands.svg') 85% center/cover}.preview-note{background:#f0f2e4;border-radius:10px;padding:12px 15px}
@media(min-width:1550px){.island-hero{min-height:475px}.hero-text{padding:45px 40px 70px}.hero-text h2{font-size:76px}.world-art{height:155px}.quest-card{padding:27px}.quest-list{gap:23px}.adventure-grid{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1200px){.home-header{padding:0 27px}.home-content{padding:27px 27px 0}.adventure-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.hero-text{padding-left:24px}.hero-text h2{font-size:58px}.hero-tags{gap:8px;font-size:8px}.quest-card{padding:20px 16px}.hak-card{gap:12px;padding:19px 12px}.hak-mascot{transform:rotate(-7deg) scale(.85);margin:-4px}.local-note{display:none}.world-grid{gap:12px}.world-info{padding:13px 10px}.world-info b{font-size:15px}.portal-label{right:15px;bottom:68px;font-size:8px}.world-count{font-size:7px}}
@media(max-width:980px){.sidebar{width:80px;padding-left:7px;padding-right:7px}.adventure-shell{margin-left:80px}.home-header{height:86px}.page-heading h1{font-size:29px}.chapter-pill{display:none}.adventure-grid{grid-template-columns:minmax(0,1fr)}.quest-column{display:grid;grid-template-columns:1.2fr 1fr}.quest-card{padding:17px 20px}.quest-card h2{font-size:22px}.quest-list{gap:10px}.quest-card>p{margin-bottom:13px}.quest-progress{margin-top:14px}.hak-card{justify-content:center}.hak-mascot{transform:scale(1.1) rotate(-7deg);margin:5px}.hak-card h3{font-size:25px}.hak-card p{font-size:11px}.hak-card .text-button{font-size:11px}.island-hero{min-height:420px;background-position:center}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-art{height:150px}.world-info b{font-size:18px}.world-info small{font-size:10px}.world-status{font-size:8px}#centerwrap{order:2;flex:1 1 100%;max-width:320px;margin:auto;padding-top:0}#topbar{padding:12px}#speech{top:130px}}
@media(max-width:600px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:calc(66px + env(safe-area-inset-bottom));padding:4px 12px calc(4px + env(safe-area-inset-bottom));flex-direction:row;border-radius:16px 16px 0 0;box-shadow:0 -4px 20px #20403018}.brand-mark,.sidebar-spark{display:none}.side-nav{flex-direction:row;gap:5px;margin:0;flex:3}.nav-item{min-height:55px;font-size:9px;gap:4px;border-radius:9px}.nav-item svg{width:21px;height:21px}.side-bottom{flex:1;margin:0 0 0 5px}.adventure-shell{margin:0}.home-header{height:80px;padding:0 20px}.wordmark{font-size:26px}.header-right{gap:12px}.profile-button{padding:0;border:0}.profile-button>span:not(.profile-face){display:none}.profile-face{width:37px;height:37px;font-size:23px}.round-button{width:35px;height:35px}.home-content{padding:24px 18px 90px}.eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:27px;letter-spacing:-.5px;line-height:1.1;margin:9px 0}.page-heading p{font-size:11px;max-width:300px}.island-hero{min-height:440px;background-position:61% center}.island-hero:before{background:linear-gradient(90deg,#edf5dce6 0%,#edf5dcb0 37%,#edf5dc14 85%)}.hero-text{padding:26px 21px 65px}.hero-text h2{font-size:59px;margin-top:26px}.hero-text p{font-size:12px}.hero-tags{font-size:8px;margin:18px 0 24px}.hero-footnote{margin-top:17px}.world-badge{font-size:7px}.portal-label{display:none}.hero-bottom{padding:13px 19px}.quest-column{grid-template-columns:1fr;gap:14px}.quest-card{padding:20px}.quest-list{gap:16px}.quest-list>div{font-size:12px}.quest-list small{font-size:10px}.quest-card>p{font-size:11px}.section-kicker{font-size:10px}.quest-progress{margin-top:20px}.hak-card{justify-content:flex-start;gap:25px;padding:20px 28px}.worlds-section{margin-top:26px}.section-heading h2{font-size:23px;line-height:1.2;max-width:230px}.section-heading p{font-size:10px}.world-count{display:none}.world-grid{gap:12px}.world-art{height:115px}.world-info{padding:12px 10px}.world-info b{font-size:14px}.world-info small{font-size:8px;line-height:1.5}.world-action{display:none}.world-status{font-size:6px;left:8px;top:9px;padding:5px}.world-number{font-size:30px}.world-lock{width:12px;height:12px}.world-info{gap:2px}.home-footer{flex-direction:column;align-items:flex-start;font-size:9px;gap:10px;padding-bottom:8px}.creator{padding:18px 23px}.creator .field{margin:10px 0}.creator .seg{margin:10px 0}.screen:not(#screen-title){padding:18px}.creator h2{font-size:28px}.card{padding:23px 17px}#choices{grid-template-columns:repeat(3,1fr);gap:9px}.choice{font-size:24px;padding:14px 5px;min-height:62px}#qprompt{font-size:42px}.card:before{font-size:6px;letter-spacing:1px}#qsub{font-size:12px}#topbar{gap:6px}#hud{gap:5px}#levelbadge .lv span{font-size:8px}#levelbadge .lv b{font-size:11px}#levelbadge .thumb{width:28px;height:28px;font-size:18px}#levelbadge{padding:5px 7px 5px 5px;gap:5px}.chip{padding:8px;font-size:13px}#hearts{min-height:39px;font-size:12px;gap:0}#hudright{gap:5px}#hudright .iconbtn{min-width:36px;min-height:36px;width:36px;height:36px;font-size:16px}#hud .chip:has(#timeval){display:none}#speech{font-size:13px;top:123px;padding:10px 14px}#centerwrap{max-width:240px}.info-dialog{padding:30px 24px}}
@media(max-height:740px) and (min-width:601px){.screen:not(#screen-title){padding:15px}.creator{padding:15px 25px}.creator #avatarPreview{width:90px!important;height:90px!important}.creator h2{font-size:25px;margin-bottom:5px}.creator .field{margin:7px 0}.creator .eyebrow{margin-top:3px}.creator .seg{margin:7px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* The explorer is the hero of the creator, not a tiny placeholder thumbnail. */
.explorer-stage{position:relative;margin:12px auto 0;width:100%;max-width:300px;border:1px solid #d7e2c6;border-radius:20px;background:radial-gradient(ellipse at 50% 40%,#fff8d9 0%,#e9efce 48%,#ccdfb9 100%);overflow:hidden;isolation:isolate}
.explorer-stage:before{content:"";position:absolute;inset:auto -15px -30px;height:64px;background:#adc79870;border-radius:50%;z-index:-1}
.creator .explorer-stage #avatarPreview{display:block;width:210px!important;height:210px!important;max-width:100%;margin:0 auto 10px;background:none;border:0;border-radius:0}
.stage-spark{position:absolute;color:#b59740;pointer-events:none}.spark-left{left:20px;top:40px;font-size:25px;transform:rotate(-12deg)}.spark-right{right:25px;top:82px;font-size:31px;color:#88a265}.stage-label{position:absolute;inset:auto 0 9px;font-size:7px;font-weight:900;letter-spacing:2px;color:#607f4e;pointer-events:none}
.pose-picker{display:flex;align-items:center;justify-content:center;gap:5px;margin:10px 0 12px}.pose-picker button{border:1px solid #dfe5d2;border-radius:7px;background:#f5f6eb;color:#718265;font-weight:800;font-size:10px;min-height:32px;padding:6px 10px;cursor:pointer}.pose-picker button[aria-pressed=true]{background:#346e52;color:#fff9e5;border-color:#346e52}.pose-picker button:focus-visible{outline:3px solid #d6a44e;outline-offset:2px}
.profile-face,#levelbadge .thumb{overflow:hidden}.profile-face canvas,#levelbadge .thumb canvas{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:600px){.creator .explorer-stage #avatarPreview{width:185px!important;height:185px!important}.explorer-stage{max-width:275px}.pose-picker button{min-height:36px}.pose-picker{margin-bottom:12px}}
@media(max-height:780px) and (min-width:601px){.creator .explorer-stage #avatarPreview{width:160px!important;height:160px!important}.explorer-stage{margin-top:7px;max-width:260px}.pose-picker{margin:7px 0}.pose-picker button{min-height:28px;padding:4px 10px}}/* The how-to-play guide is long on small screens: the steps scroll, the header and the "Got it!" button stay put. */
.info-dialog{max-height:90dvh}.info-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.info-dialog #infoBody{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.info-dialog .adventure-button{flex:none;align-self:flex-start}.guide-step{margin:15px 0}.guide-step:first-child{margin-top:0}
/* iPad portrait and small tablets: the HUD's progress bar wraps onto a second row, so Hak's bubble sits lower to stay clear of it */
@media (max-width:820px) and (min-width:601px){#speech{top:20.5vmin}}
