:root{font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#233f61;font-synthesis:none;--ink:#203d64;--violet:#7762d9;--green:#75d343;--gold:#ffcf47}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none}button:focus-visible{outline:4px solid #ffdc53;outline-offset:5px}button:disabled{cursor:default}#game{position:relative;width:100%;height:100%;height:100dvh;background:#153e70;isolation:isolate;overflow:hidden}.map-viewport{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}.map-viewport::-webkit-scrollbar{display:none}.world{position:relative;width:max(100vw,150vh);height:100%;background:#286d94 url('assets/city.webp') center/cover no-repeat;isolation:isolate}.world:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(180deg,#061d4b52,transparent 28%,transparent 80%,#102d5b66)}.hud{position:absolute;top:0;left:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;padding:24px 30px;pointer-events:none;gap:12px}.hud>*{pointer-events:auto}.wordmark{transform:rotate(-3deg);text-align:center;filter:drop-shadow(0 5px 0 #254e7970);padding:6px 12px;color:white;text-shadow:0 3px #34457c,2px 0 #34457c,-2px 0 #34457c;line-height:1.04}.wordmark>span{display:block;font-size:clamp(16px,2.1vw,30px);font-weight:900;letter-spacing:1px}.wordmark strong{font-size:clamp(22px,3vw,42px);font-weight:1000;color:#ffdc58;display:block}.wordmark small{font-size:8px;letter-spacing:1.4px;display:block;margin-top:8px;color:#d4f7ff;text-shadow:0 1px #234e73}.controls{display:flex;gap:12px;align-items:center}.square,.balance{border:3px solid #fff9;border-bottom:5px solid #b1b8e3;background:linear-gradient(160deg,#fff,#e4f2ff);box-shadow:0 5px 15px #112f5638;border-radius:20px;min-width:60px;height:60px;color:#6557ac;font-size:30px;font-weight:900;display:inline-flex;justify-content:center;align-items:center;transition:transform .18s}.square:active,.balance:active{transform:translateY(3px)}.square:hover{background:#fff}.balance{gap:10px;padding:0 20px;min-width:115px;color:#68512c;background:linear-gradient(160deg,#fff9d6,#fff0ae);border-bottom-color:#ddaa56;font-size:27px}.balance span{font-size:31px}.company-marker{position:absolute;left:27%;top:32%;z-index:3;transform:translate(-50%,-50%);width:166px;height:166px;border-radius:38px;border:5px solid #fff6ab;background:linear-gradient(140deg,#fff,#fbf2e7);box-shadow:0 7px 0 #e7aa3b,0 0 40px #ffe275,0 0 75px #ffcf4488;animation:logo-bob 3s ease-in-out infinite;padding:20px 14px 8px}.phos-logo{width:100%;height:100%;padding-top:16px;filter:drop-shadow(0 2px 0 #fff)}.logo-face{position:absolute;top:12px;left:45px;display:flex;gap:17px}.logo-face i{display:block;width:11px;height:16px;background:#243553;border-radius:50%;border:3px solid white;box-sizing:content-box;animation:blink 5s infinite}.logo-face b{position:absolute;top:10px;left:22px;font-size:23px;color:#ee7779}.mitten{position:absolute;font-size:35px;top:65px;filter:drop-shadow(0 3px #298a39)}.left-mitten{left:-36px;transform-origin:90% 90%;animation:wave 1.8s ease-in-out infinite}.right-mitten{right:-32px;transform:rotate(25deg)}.marker-spark{position:absolute;color:#fff4b0;text-shadow:0 0 20px #ffb82e;font-size:38px;animation:twinkle 2s infinite}.spark-one{top:-30px;left:-24px}.spark-two{right:-30px;top:16px;animation-delay:1s}.play-badge{position:absolute;right:-16px;bottom:-12px;background:#8bdb41;border:4px solid white;color:white;width:51px;height:51px;display:grid;place-items:center;border-radius:50%;font-size:23px;box-shadow:0 4px 0 #3f9f58}.tap-hand{position:absolute;bottom:-54px;left:54px;font-size:40px;filter:drop-shadow(0 3px 1px #563a81);color:white;animation:tap 2s infinite}.future{position:absolute;background:#fff2dfdb;border:3px solid #fff;border-bottom:5px solid #9aaccb;border-radius:20px;padding:8px 14px;display:grid;place-items:center;box-shadow:0 5px 20px #24437340;z-index:2;backdrop-filter:blur(8px);transform:rotate(4deg)}.future span{font-size:30px}.future small{font-weight:bold;font-size:11px;color:#6b6f91}.future-one{left:73%;top:29%}.future-two{left:85%;top:48%}.hero-button{position:absolute;left:49%;top:74%;transform:translate(-50%,-50%);border:0;background:none;width:130px;height:180px;padding:0;z-index:4;filter:drop-shadow(0 8px 3px #2c3b6340)}.avatar{display:block;position:relative;z-index:1;animation:breathe 3s ease-in-out infinite}.avatar svg{width:100%;height:auto}.hero-ring{position:absolute;bottom:-3px;left:-10px;width:150px;height:38px;background:#ffe47aa8;border:4px solid #fff6c1;border-radius:50%;box-shadow:0 0 30px #ffdb51;z-index:-1;animation:ring 2s infinite}.hero-hint{position:absolute;right:-29px;top:0;z-index:2;border:3px solid white;border-radius:20px 20px 20px 4px;background:#a49bf1;font-size:25px;padding:6px;animation:float 3s infinite;box-shadow:0 4px 0 #6154ad}.hero-hint b{font-size:16px;color:#fff9b7}.boat{position:absolute;right:5%;bottom:10%;font-size:45px;filter:drop-shadow(0 6px 2px #163c5c60);animation:boat 15s ease-in-out infinite;z-index:1}.map-caption{position:absolute;bottom:25px;left:30px;display:flex;align-items:center;gap:12px;color:white;text-shadow:0 2px 4px #203557;background:#173d655e;backdrop-filter:blur(12px);padding:12px 20px;border:1px solid #fff3;border-radius:18px;pointer-events:none}.map-caption b{display:block;font-size:14px}.map-caption span:not(.compass){display:block;font-size:11px;color:#d1f1fc;margin-top:5px}.compass{font-size:32px;color:#ffdc66}.wardrobe-shortcut{position:absolute;bottom:25px;right:30px;border:3px solid white;border-bottom:5px solid #7e67bd;border-radius:23px;padding:10px 19px;background:linear-gradient(150deg,#c6a9f3,#8c7cdd);color:white;font-size:30px;box-shadow:0 6px 20px #21336b50;display:flex;align-items:center;gap:12px}.wardrobe-shortcut span{font-size:16px;font-weight:bold}.aurora{position:absolute;top:0;left:0;right:0;height:32%;background:radial-gradient(ellipse at 60% 0,#62ffe434,transparent 60%);mix-blend-mode:screen;animation:aurora 12s ease-in-out infinite;pointer-events:none}.snow{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}.snow i{position:absolute;top:-15px;left:var(--x);width:var(--size);height:var(--size);background:#fff;border-radius:50%;opacity:.65;animation:snow var(--duration) linear infinite;animation-delay:var(--delay)}.toast{position:absolute;left:50%;bottom:110px;transform:translate(-50%,20px);padding:15px 25px;border:2px solid #fff8;border-radius:20px;background:#fff5da;color:#4f4775;box-shadow:0 8px 40px #19344c55;font-size:18px;font-weight:bold;max-width:90vw;text-align:center;opacity:0;pointer-events:none;z-index:30;transition:.3s}.toast.show{opacity:1;transform:translate(-50%,0)}.welcome{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#122d5a77;backdrop-filter:blur(6px);transition:opacity .4s}.welcome.gone{opacity:0;pointer-events:none}.welcome-card{text-align:center;background:linear-gradient(155deg,#f8fcff,#e7e7ff);border:5px solid #fffc;border-radius:38px;width:470px;max-width:92vw;padding:26px 30px 22px;box-shadow:0 25px 100px #112b65aa;position:relative}.welcome-stars{color:#f3be3d;font-size:30px}.welcome-card>small{font-size:9px;font-weight:900;letter-spacing:2px;color:#7a78a4;display:block;margin-top:12px}.welcome h1{font-size:35px;line-height:1.14;margin:12px 0;color:#273d65}.welcome em{font-style:normal;color:#7b61c9}.welcome p{font-size:14px;color:#7884a5}.welcome-avatar{height:170px;margin:-7px auto -4px;position:relative;filter:drop-shadow(0 9px 5px #706e9b38)}.welcome-avatar svg{height:180px;width:150px}.primary{background:linear-gradient(#97df59,#63c42d);color:white;border:3px solid #e3ffc7;border-bottom:6px solid #46a325;box-shadow:0 5px 0 #3d8b2220;border-radius:22px;font-size:25px;font-weight:900;min-height:64px;display:flex;align-items:center;justify-content:center;gap:15px;transition:transform .15s}.primary:active{transform:translateY(3px)}.start{width:100%;margin:16px auto 0}.sound-note{display:block;font-size:11px;color:#8185a4;margin-top:13px}dialog{border:none;padding:0;color:var(--ink);box-shadow:0 20px 100px #102e5755}dialog::backdrop{background:#142c5366;backdrop-filter:blur(4px)}.drawer{margin:0 0 0 auto;inset:0;height:100%;height:100dvh;max-height:100dvh;width:410px;max-width:100vw;border-radius:32px 0 0 32px;background:linear-gradient(160deg,#faf5ff,#f1effb);padding:26px 24px;overflow-y:auto;overscroll-behavior:contain}.drawer[open]{animation:drawer-in .3s ease-out}.drawer-head,.quest-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.drawer h2{margin:5px 0;font-size:29px}.drawer-head small,.quest-head small{font-size:8px;letter-spacing:1.4px;font-weight:bold;color:#8a86a7}.close.square{min-width:44px;width:44px;height:44px;font-size:21px;border-radius:15px}.preview-platform{height:240px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#e5daf7,transparent 65%)}#previewAvatar{z-index:1;width:155px;height:220px;animation:breathe 3s ease-in-out infinite}#previewAvatar svg{height:100%;width:100%}.platform{position:absolute;bottom:0;width:215px;height:50px;border-radius:50%;background:#d7c6f0;border:6px solid #fff8;box-shadow:0 7px 0 #b9a2da}.preview-stars{position:absolute;top:40px;left:0;right:0;text-align:center;color:#ddac49;font-size:27px;letter-spacing:32px}.store-balance{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#8b86a4;margin:16px 3px}.store-balance>span{background:#fff0bd;color:#82602e;border-radius:12px;font-size:18px;padding:7px 12px}.categories{display:flex;gap:12px;margin:12px 0 20px}.categories button{flex:1;background:#e6dff3;border:2px solid transparent;border-radius:16px;height:54px;font-size:26px}.categories button.active{background:#aa94e1;border:3px solid #fff;box-shadow:0 3px 0 #8260b6}.items{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.item{position:relative;padding:10px 4px;border:3px solid white;border-bottom:5px solid #d6c6e8;border-radius:19px;background:#eae0f7;color:#62517e;min-height:102px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.item.selected{border-color:#9dd955;background:#f1ffdc}.item-icon{font-size:35px;line-height:1.15;display:block}.item-price{font-size:14px;font-weight:bold}.item-check{position:absolute;right:-3px;top:-6px;background:#7fc94d;color:white;border:2px solid white;border-radius:50%;width:24px;height:24px;font-size:14px;display:grid;place-items:center}.item-description{text-align:center;color:#7a7194;font-size:13px;min-height:18px;margin:16px 0}.equip{width:100%;font-size:20px}.equip:disabled{background:#cec6dd;border-color:#ebe6f4;border-bottom-color:#aaa0bd;color:#fff}.store-note{color:#8e85a8;font-size:12px;text-align:center}.quest-dialog{width:760px;max-width:94vw;max-height:93dvh;background:#f3f5ff;border:5px solid white;border-radius:32px;padding:24px;overflow-y:auto}.quest-dialog h2{margin:5px 0;font-size:26px}.quest-head>.square{min-width:43px;width:43px;height:43px;font-size:26px;border-radius:14px}.quest-head>div{flex:1;text-align:center}.professions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:35px 0 15px}.profession{background:linear-gradient(160deg,#fff,#e1e9fa);border:3px solid white;border-bottom:6px solid #c0c5e1;border-radius:24px;min-height:210px;color:#3e547e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}.profession>span{font-size:66px;display:block}.profession b{font-size:16px}.profession small{font-size:15px;background:#fff1b8;padding:5px 10px;border-radius:10px}.quest-instruction{text-align:center;color:#727ca0;font-size:15px;margin:20px 0}.quest-board{position:relative;min-height:260px;background:linear-gradient(#d1effa,#e7e4f5);border:3px solid white;border-radius:24px;padding:20px;overflow:hidden}.gem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:460px;margin:auto}.gem{font-size:50px;min-height:85px;background:#ffffff75;border:3px solid #fff;border-bottom:5px solid #9db8d8;border-radius:20px;transition:transform .2s,opacity .2s}.gem.found{transform:scale(.7);opacity:.28;pointer-events:none}.progress-dots{display:flex;gap:10px;justify-content:center;margin:15px 0}.progress-dots i{width:16px;height:16px;background:#d3d5e8;border:2px solid white;border-radius:50%}.progress-dots i.done{background:#94d759}.truck-scene{height:170px;position:relative;border-bottom:15px solid #bdc5d8}.truck-emoji{position:absolute;bottom:3px;left:0;font-size:80px;transition:left .6s}.truck-target{position:absolute;right:0;bottom:0;font-size:75px}.quest-action{margin:20px auto 0;min-width:130px;font-size:30px;padding:8px 25px}.plant-scene{height:170px;display:flex;justify-content:center;align-items:end;gap:20px}.plant-scene .plant{font-size:100px;transition:transform .5s;filter:drop-shadow(0 5px 1px #61714b20)}.reward{text-align:center;padding:20px 0}.reward .reward-icon{font-size:95px;animation:float 3s infinite}.reward h3{font-size:28px;margin:15px 0;color:#6457a2}.reward .reward-stars{font-size:36px;font-weight:bold;color:#bf8b25;margin:20px}.reward .primary{max-width:290px;margin:auto}.voice-small{display:block;margin:14px auto 0;border:0;background:#e5e9f8;border-radius:14px;min-width:48px;min-height:44px;font-size:23px}.mobile-pan{display:none}#confetti{position:absolute;inset:0;pointer-events:none;z-index:50;overflow:hidden}#confetti i{position:absolute;left:var(--x);top:-30px;width:12px;height:18px;background:var(--color);border-radius:3px;animation:confetti var(--d) ease-in forwards}
@keyframes logo-bob{0%,100%{transform:translate(-50%,-50%) rotate(-3deg)}50%{transform:translate(-50%,-56%) rotate(2deg)}}@keyframes wave{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(18deg)}}@keyframes blink{0%,45%,49%,100%{transform:scaleY(1)}47%{transform:scaleY(.1)}}@keyframes tap{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes twinkle{0%,100%{opacity:.5;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-4px) rotate(1deg)}}@keyframes ring{0%,100%{box-shadow:0 0 15px #ffdc59}50%{box-shadow:0 0 40px #ffdc59}}@keyframes boat{0%,100%{transform:translate(0,0) rotate(-4deg)}50%{transform:translate(-90px,8px) rotate(3deg)}}@keyframes aurora{0%,100%{transform:scaleX(1);opacity:.4}50%{transform:scaleX(1.2);opacity:1}}@keyframes snow{to{transform:translate(40px,110vh)}}@keyframes drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes confetti{to{transform:translateY(110vh) rotate(620deg)}}
@media(min-width:1500px){.hero-button{width:160px;height:220px}.company-marker{width:190px;height:180px}}@media(max-width:700px){.hud{padding:16px 14px;gap:8px}.wordmark{padding:5px 0}.wordmark>span{font-size:13px;letter-spacing:.3px}.wordmark strong{font-size:21px}.wordmark small{display:none}.controls{gap:7px}.square{min-width:44px;height:46px;font-size:24px;border-radius:15px}.balance{min-width:72px;height:46px;font-size:21px;padding:0 9px;gap:4px;border-radius:15px}.balance span{font-size:24px}.map-caption{left:12px;bottom:max(15px,env(safe-area-inset-bottom));padding:10px 12px;gap:8px;max-width:58%}.map-caption b{font-size:10px}.map-caption span:not(.compass){display:none}.compass{font-size:23px}.wardrobe-shortcut{right:12px;bottom:max(15px,env(safe-area-inset-bottom));padding:8px 12px;font-size:28px;border-radius:18px}.wardrobe-shortcut span{font-size:12px}.mobile-pan{display:block;position:absolute;bottom:82px;left:50%;transform:translateX(-50%);color:white;background:#193b6355;border:1px solid #fff4;border-radius:20px;padding:4px 16px;font-size:20px;pointer-events:none;animation:float 3s infinite}.company-marker{width:143px;height:143px;left:27%;top:34%}.logo-face{left:35px;top:8px}.hero-button{width:120px;height:165px}.quest-dialog{padding:18px 12px;border-radius:26px}.quest-dialog h2{font-size:21px}.quest-head small{font-size:7px;letter-spacing:.5px}.professions{gap:8px;padding-top:25px}.profession{min-height:175px;border-radius:18px;gap:12px}.profession>span{font-size:43px}.profession b{font-size:12px}.profession small{font-size:12px}.quest-board{padding:15px 10px;min-height:245px}.gem{font-size:42px;min-height:80px}.gem-grid{gap:9px}.drawer{padding:22px 20px;border-radius:26px 0 0 26px}.welcome-card{padding:23px}.welcome h1{font-size:30px}.welcome p{font-size:12px}.welcome-avatar{height:155px}.welcome-avatar svg{height:166px}.toast{font-size:15px;width:max-content;max-width:90%}.preview-platform{height:215px}#previewAvatar{height:200px;width:145px}}
@media(max-height:650px){.welcome-card{padding:16px 25px}.welcome h1{font-size:27px}.welcome-stars{font-size:22px}.welcome p{margin:8px 0}.welcome-avatar{height:120px}.welcome-avatar svg{height:133px}.start{min-height:54px;margin-top:9px}.welcome-card>small{margin-top:5px}.preview-platform{height:175px}#previewAvatar{height:165px;width:120px}.drawer{padding:15px 22px}.drawer h2{font-size:24px}.items .item{min-height:90px}.store-balance{margin:10px 3px}.categories{margin:10px 0}.preview-stars{top:25px}.company-marker{top:34%;width:135px;height:135px}.hero-button{width:105px;height:145px}.logo-face{left:32px;top:7px}.quest-dialog{padding:15px}.professions{padding:18px 0 5px}.profession{min-height:165px}.quest-board{min-height:210px}.gem{min-height:65px;font-size:38px}.quest-instruction{margin:12px 0}.truck-scene,.plant-scene{height:120px}.reward .reward-icon{font-size:65px}.reward{padding:10px 0}.quest-action{margin-top:12px;min-height:55px}.reward h3{margin:8px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
.boot{transition:opacity .35s}.boot.loaded{opacity:0;pointer-events:none}.boot:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 70% 0,#73ffd73a,transparent 60%);animation:aurora 8s ease-in-out infinite}.boot-inner{position:relative}.boot-sky{font-size:28px;letter-spacing:16px;color:#ffdd7d;animation:twinkle 3s infinite}.boot-mountain{margin-top:20px;filter:drop-shadow(0 10px 20px #0e234c44);animation:float 3s infinite}.boot h2 span{color:#ffe28c}.boot-track{box-shadow:0 0 25px #6ddbe333}.boot-fill{box-shadow:0 0 15px #8df4dc}.boot button{font:inherit}
.boot-mountain{height:190px;position:relative;display:grid;place-items:center}.loading-peaks{position:absolute;width:100%;height:160px;bottom:0;opacity:.7}#bootAvatar{position:relative;height:180px;width:135px;z-index:1;filter:drop-shadow(0 8px 5px #0e274640)}#bootAvatar svg{height:100%;width:100%}.boot h2{margin-top:22px}
@media(max-width:700px){.company-marker{width:110px;height:110px;border-radius:28px;padding:14px 6px 6px}.company-marker .logo-face{left:25px;top:7px;gap:12px}.company-marker .logo-face i{width:8px;height:11px;border-width:2px}.company-marker .logo-face b{font-size:18px;left:16px;top:7px}.company-marker .phos-logo{padding-top:12px}.company-marker .mitten{font-size:26px;top:40px}.company-marker .left-mitten{left:-27px}.company-marker .right-mitten{right:-25px}.company-marker .play-badge{width:38px;height:38px;font-size:17px;border-width:3px}.company-marker .tap-hand{left:35px;font-size:32px;bottom:-45px}.hero-button{width:100px;height:140px}.hero-ring{width:120px;left:-10px;height:30px}.hero-hint{font-size:20px;right:-20px}}
@media(max-height:650px){.boot-mountain{height:140px;margin-top:8px}#bootAvatar{height:140px;width:105px}.loading-peaks{height:110px}.boot h2{font-size:25px;margin:12px 0}.boot-sky{font-size:20px}.boot-track{margin-top:15px}}
/* The live world is a real 3D scene, replacing the painted background. */
.world{background:radial-gradient(ellipse at 60% -10%,#5acdcf55,transparent 55%),linear-gradient(180deg,#244675,#659ed2 65%,#7dbfdd)}.city-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-x}.world>.snow,.world>.boat{display:none}.aurora{z-index:1;pointer-events:none;top:-3%;height:28%;background:radial-gradient(ellipse at 50% 20%,#3effbd55,transparent 65%);mix-blend-mode:screen;filter:blur(8px)}.aurora:before,.aurora:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,#8dffe12b 40%,#5cffa450 48%,transparent 60%);transform:skewX(-20deg);animation:aurora-ribbon 15s ease-in-out infinite}.aurora:after{animation-delay:-8s;transform:skewX(20deg);opacity:.5}.hero-button{width:125px;height:175px;filter:none;background:transparent}.hero-button #mapAvatar,.hero-ring{display:none}.hero-bubble{position:absolute;right:-20px;top:-15px;font-size:34px;background:#fff9e9;border:4px solid white;box-shadow:0 6px 0 #e3c9ad,0 6px 22px #172f5e33;border-radius:22px 22px 22px 5px;padding:9px;opacity:0;transform:scale(.3);transition:transform .25s,opacity .25s}.hero-bubble.show{opacity:1;transform:scale(1)}.portrait{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px #5a488128)}.welcome-avatar img{height:190px;width:180px}.boot-mountain #bootAvatar img{height:100%;width:100%;object-fit:contain}.company-marker{width:155px;height:165px;border-radius:35px;background:linear-gradient(140deg,#fff,#fff0e5);border:5px solid #fff4ad;padding:39px 9px 12px}.company-marker .logo-face{top:9px;left:45px;gap:15px}.company-marker .phos-logo{padding:0;width:100%;height:100%;overflow:visible}.company-marker .mitten{top:65px}.phos-flower{transform-origin:50% 57%;animation:flower-sway 3s ease-in-out infinite}.company-marker .logo-face i{animation:blink 4.7s infinite}.company-marker .tap-hand{bottom:-43px;left:48px}.company-marker .logo-face b{top:8px;left:22px}.company-marker:active{filter:brightness(1.08)}
/* Dressing room: a warm peach stage, purple picture tabs, large 3D hero and toy cards. */
.drawer{width:475px;max-width:100vw;background:radial-gradient(ellipse at 80% 10%,#fff5d5,transparent 60%),linear-gradient(145deg,#ffe9e8,#fff4df 55%,#f2e0fa);padding:24px 24px 18px;border-left:5px solid #fff9;border-radius:35px 0 0 35px}.drawer-head{position:relative;justify-content:center;min-height:75px}.drawer-head>div{text-align:center}.drawer-head small{display:none}.drawer-head h2{color:#fff;font-size:34px;font-weight:1000;line-height:1.1;margin:0;padding:13px 23px 15px;border:4px solid #c5a5f2;border-bottom:7px solid #7651ac;border-radius:25px;background:linear-gradient(160deg,#c59af4,#9265d1);text-shadow:0 3px #71489d;box-shadow:0 5px 16px #8055a128}.drawer-head>.close{position:absolute;right:-8px;top:-9px;min-width:37px;width:37px;height:37px;background:#fffc;color:#9e7ea9;font-size:18px;border:2px solid #fff;border-bottom:4px solid #dac1d4}.preview-platform{height:330px;margin:6px -9px 0;display:block;background:radial-gradient(ellipse at 55% 60%,#ffecd3,transparent 70%)}#previewAvatar{position:absolute;left:64px;right:47px;top:3px;width:auto;height:315px;z-index:2;animation:none}#previewAvatar canvas{display:block;width:100%;height:100%;filter:drop-shadow(0 10px 7px #b17b7a24)}.platform{bottom:8px;left:94px;width:220px;height:43px;background:#e6c6d4;border:6px solid #fff7;box-shadow:0 7px 0 #c6a9c5}.preview-stars{top:20px;left:75px;right:40px;color:#edba44;font-size:30px;letter-spacing:30px}.mini-heroes{position:absolute;right:-6px;top:30px;display:grid;gap:12px;width:73px;z-index:2}.mini-heroes img{width:75px;height:104px;object-fit:contain;filter:drop-shadow(0 5px 0 #ddbdc645)}.categories{position:absolute;left:20px;top:140px;display:flex;flex-direction:column;gap:13px;margin:0;width:59px;z-index:3}.categories button{flex:none;width:59px;height:60px;font-size:30px;background:linear-gradient(140deg,#ba9af1,#9675d1);border:3px solid #fff;border-bottom:5px solid #8055b8;border-radius:18px;box-shadow:0 3px 4px #ac7fba1a}.categories button.active{border:4px solid #94da44;border-bottom:5px solid #67b632;background:linear-gradient(150deg,#bc98f1,#9470ce);box-shadow:0 0 0 3px white}.reward-story{display:flex;align-items:center;justify-content:center;gap:18px;margin:4px 0 12px}.reward-story span{font-size:38px;filter:drop-shadow(0 3px 1px #e4b5a56b)}.reward-story i{font-style:normal;font-size:27px;color:#9566c6;font-weight:900;letter-spacing:4px}.store-balance{margin:0 4px 10px;font-size:12px;color:#9d7c92}.store-balance>span{padding:6px 11px;background:#ffe8a6;color:#83602f}.items{gap:11px;padding:12px;background:#e7d0f2;border-radius:25px;box-shadow:inset 0 3px 8px #c6a1d538}.item{min-height:112px;background:linear-gradient(135deg,#fff7ff,#dcc1ee);border:3px solid #fff;border-bottom:6px solid #b992d5;border-radius:22px;gap:9px;padding:8px 4px}.item.selected{background:#f8ffe9;border:4px solid #8bd943;border-bottom:6px solid #68ba30}.item-icon{font-size:43px;filter:drop-shadow(0 3px 0 #b290c330);min-height:49px}.item-price{font-size:18px;font-weight:1000;background:#a580d8;border:2px solid #c8a9ed;border-radius:11px;padding:4px 9px;color:#fff;min-width:62px}.item-price:has(+.item-check){color:#fff}.item-check{width:27px;height:27px;top:-9px;right:-8px;background:#67c74b;border:3px solid #fff}.equip{min-height:65px;font-size:26px;border-radius:23px;background:linear-gradient(135deg,#a5ec57,#72cf2d);border:4px solid #cafa95;border-bottom:7px solid #51b325;text-shadow:0 2px #56ab2880;box-shadow:0 5px 16px #a5b74c38}.item-description{margin:11px 0;font-size:13px;color:#9d7e9f}.store-note{margin:12px 0 0;font-size:11px;color:#a38b9f}.drawer::backdrop{background:#162e4845;backdrop-filter:blur(2px)}
@keyframes flower-sway{0%,100%{transform:rotate(-5deg) translateY(0)}50%{transform:rotate(5deg) translateY(-2px)}}@keyframes aurora-ribbon{0%,100%{transform:translateX(-5%) skewX(-20deg)}50%{transform:translateX(10%) skewX(15deg)}}
@media(max-height:850px){.drawer{padding:16px 21px}.drawer-head{min-height:63px}.drawer-head h2{font-size:29px;padding:10px 20px}.preview-platform{height:265px}#previewAvatar{height:260px;left:62px;right:48px}.platform{bottom:4px;left:87px;height:33px;width:200px}.categories{top:112px;left:19px;gap:9px;width:55px}.categories button{width:55px;height:53px;font-size:26px}.mini-heroes{top:15px;width:67px;gap:7px}.mini-heroes img{width:67px;height:96px}.reward-story span{font-size:30px}.reward-story{gap:16px;margin:0 0 8px}.item{min-height:98px}.item-icon{font-size:35px;min-height:40px}.item-price{font-size:16px}.equip{min-height:58px}.items{padding:10px}.store-balance{margin-bottom:6px}.store-note{margin-top:8px}}
@media(max-width:700px){.drawer{width:430px;max-width:100vw}.drawer-head h2{font-size:29px}.company-marker{width:118px;height:132px;padding:33px 6px 10px;border-radius:28px}.company-marker .logo-face{left:29px;top:8px;gap:12px}.company-marker .logo-face i{width:8px;height:12px}.company-marker .logo-face b{left:17px;font-size:18px}.company-marker .phos-logo{padding-top:0}.company-marker .mitten{top:50px}.company-marker .tap-hand{left:32px;bottom:-37px}.hero-button{width:100px;height:145px}.hero-bubble{font-size:28px;right:-13px;top:-18px;padding:7px}.drawer .mini-heroes{right:-2px}.drawer .platform{width:185px;left:80px}.drawer #previewAvatar{left:58px;right:42px}}
@media(max-width:360px){.drawer{padding:15px 13px}.categories{left:14px}.mini-heroes{display:none}#previewAvatar{right:4px!important}.drawer .platform{left:80px;width:180px}.item-price{font-size:14px;padding:4px 5px}.item-icon{font-size:31px}.reward-story{margin:0}}
@media(max-height:650px){.preview-platform{height:205px}#previewAvatar{height:205px!important}.categories{top:101px;gap:7px}.categories button{width:46px;height:43px;font-size:22px;border-radius:14px}.mini-heroes img{height:80px;width:61px}.mini-heroes{gap:0;top:4px}.platform{height:28px;bottom:1px}.drawer-head h2{font-size:25px}.drawer-head{min-height:54px}.reward-story{margin:0 0 5px}.reward-story span{font-size:23px}.store-balance{font-size:11px}.store-balance>span{font-size:15px;padding:3px 10px}.item{min-height:80px;gap:3px}.item-icon{min-height:30px;font-size:29px}.item-price{font-size:14px;padding:3px 7px}.item-description{margin:7px 0}.equip{min-height:50px;font-size:23px}.items{padding:8px}.store-note{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.phos-flower,.aurora:before,.aurora:after{animation:none}}
.phos-flower{transform-origin:85px 60px}.company-marker .phos-logo{overflow:visible}.wordmark{background:linear-gradient(145deg,#8c68caed,#6452b9e8);border:4px solid #c6b3f4;border-bottom:7px solid #4d4390;border-radius:26px;padding:12px 20px;box-shadow:0 6px 18px #172a4e3b}.wordmark small{font-size:7px}.square{background:linear-gradient(140deg,#cbb6fa,#8a6acc);color:white;border-color:#e4d7ff;border-bottom-color:#694b9b;text-shadow:0 2px #654f96}.balance{background:linear-gradient(140deg,#bc97f2,#8c6bce);border-color:#dac6fa;border-bottom-color:#674999;color:white;text-shadow:0 2px #7150a2}.controls{gap:10px}
@media(max-width:700px){.wordmark{padding:9px 10px;border-width:3px;border-bottom-width:5px;border-radius:19px}.wordmark>span{font-size:11px}.wordmark strong{font-size:18px}.controls{gap:6px}.hud{padding:13px 10px}.square{min-width:42px;width:42px;height:45px}.balance{min-width:65px;padding:0 7px}.balance span{font-size:21px}}
.item-icon{height:64px;width:78px;display:grid;place-items:center}.item-icon img{width:85px;height:76px;object-fit:contain;filter:drop-shadow(0 3px 1px #9a6d9d33)}.item{min-height:130px}.items{align-items:stretch}
@media(max-height:850px){.item-icon{height:54px}.item-icon img{height:65px;width:74px}.item{min-height:110px}}
@media(max-height:650px){.item-icon{height:36px;width:62px}.item-icon img{height:48px;width:62px}.item{min-height:88px}}
.world{background:#193952 url('assets/city.webp') center / 100% 100% no-repeat;width:max(100vw,150dvh);height:100%;}.world:after{background:none}.world>.snow{display:block;opacity:.42}.world>.aurora{opacity:.42}.world>.boat{display:none}
.hero-button{left:50%;top:79%;width:auto;height:clamp(78px,17vh,175px);aspect-ratio:242/387;transform:translate(-50%,-100%);filter:drop-shadow(0 3px 2px #774b3d55)}
.hero-button #mapAvatar{display:block;width:100%;height:100%;transform-origin:50% 94%}.hero-button img,#previewAvatar>img{width:100%;height:100%;object-fit:contain;display:block}.hero-bubble{z-index:3;top:-7%;right:-30px}
.company-marker{left:24.6%;top:27%}.future-one{left:66%;top:26%}.future-two{left:85%;top:23%}
@media(min-aspect-ratio:3/2){.world{background-size:cover}.hero-button{top:calc(50% + 19.33vw)}}
/* Let the approved map be the first screen after loading. */
.welcome{align-items:flex-end;justify-content:center;padding-bottom:max(20px,env(safe-area-inset-bottom));background:transparent;backdrop-filter:none}
.welcome-card{width:218px;padding:0;background:transparent;border:0;box-shadow:none}
.welcome-stars,.welcome-card>small,.welcome-card h1,.welcome-card p,.welcome-avatar{display:none}
.welcome .start{margin:0;min-height:52px;box-shadow:0 4px 14px #26334b66}
.welcome .sound-note{color:white;text-shadow:0 1px 5px #17294b;margin-top:4px}
#game:has(.welcome:not(.gone)) :is(.map-caption,.wardrobe-shortcut,.mobile-pan){visibility:hidden}
.world{width:150vh;width:150dvh;margin-inline:auto;background-position:center;background-size:100% 100%}
.hero-button{top:79%}
.map-viewport{background:#163951}
.hero-button .hero-ring{display:block;position:absolute;left:8%;width:84%;height:12%;bottom:-1%;border:2px solid #fff4bb;background:#ffc75a8c;box-shadow:0 0 12px #ffd9789c;z-index:-1}
/* Reference artwork is shared by the map controls and the hero's home. */
.hud{padding:14px 20px;align-items:flex-start;gap:14px}
.wordmark{padding:0;width:clamp(170px,25vw,390px);height:auto;aspect-ratio:401/179;border:0;border-radius:0;background:none;box-shadow:none;transform:none;filter:drop-shadow(0 5px 4px #33247760)}
.reference-art,.mascot-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.controls{gap:9px;align-items:center}
.controls .square{position:relative;width:clamp(52px,6.6vw,98px);height:auto;aspect-ratio:1;border:0;border-radius:26%;background:none;box-shadow:none;padding:0;min-width:0;filter:drop-shadow(0 4px 3px #16295b55)}
.controls .square:active{transform:translateY(3px) scale(.96)}
.controls .balance{position:relative;width:clamp(100px,10.5vw,160px);height:auto;aspect-ratio:158/83;min-width:0;padding:0;border:0;background:none;box-shadow:none;display:block}
.balance>.reference-art{position:absolute;inset:0}.controls #balance{position:absolute;inset:12% 5% 13% 48%;display:grid;place-items:center;background:linear-gradient(145deg,#a477df,#8143b3);border-radius:8px;font-size:clamp(23px,3vw,43px);color:white;text-shadow:0 3px #4e247e}
.company-marker{width:clamp(160px,17vw,310px);height:auto;aspect-ratio:314/220;left:25.5%;top:26%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;animation:mascot-invite 4s ease-in-out infinite;filter:drop-shadow(0 0 7px #fff898) drop-shadow(0 0 16px #ffcf39)}
.company-marker .mascot-art{position:relative;z-index:1}
.mascot-flower-glow{position:absolute;width:18%;height:24%;left:44%;top:41%;z-index:2;box-shadow:0 0 14px #a4ff6870;border-radius:50%;animation:flower-alive 2.8s ease-in-out infinite;pointer-events:none}
@keyframes mascot-invite{0%,100%{transform:translate(-50%,-50%) rotate(-2deg)}50%{transform:translate(-50%,-54%) rotate(2deg)}}
@keyframes flower-alive{0%,100%{transform:scale(.9);opacity:.2}50%{transform:scale(1.12);opacity:.8}}
#mapAvatar>.animated-hero,#previewAvatar>.animated-hero{width:100%;height:100%;display:block;object-fit:contain}
.hero-button #mapAvatar{animation:none}
.scenery-patch{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.living-truck{position:absolute;left:20.1823%;top:37.8906%;width:9.6354%;height:11.0352%;object-fit:fill;z-index:1;pointer-events:none;transform-origin:50% 90%;animation:truck-idle .17s linear infinite}
.living-boat{position:absolute;left:83.5286%;top:59.2773%;width:14.4531%;height:19.9219%;object-fit:fill;z-index:1;pointer-events:none;transform-origin:50% 85%;animation:boat-afloat 4.8s ease-in-out infinite}
.truck-exhaust{position:absolute;left:27.5%;top:42%;width:1%;height:1%;z-index:1;pointer-events:none}
.truck-exhaust i{position:absolute;inset:0;border-radius:45%;background:radial-gradient(ellipse,#e2e4ef90,#aebac84a 65%,transparent);animation:exhaust-puff 2.6s ease-out infinite}
.truck-exhaust i:nth-child(2){animation-delay:-.65s}.truck-exhaust i:nth-child(3){animation-delay:-1.3s}.truck-exhaust i:nth-child(4){animation-delay:-1.95s}
.boat-ripples{position:absolute;left:83.9%;top:75%;width:14%;height:4%;border:2px solid #b4f7ed70;border-radius:50%;z-index:0;animation:ripple-water 4.8s ease-out infinite;pointer-events:none}
@keyframes truck-idle{0%,100%{transform:translateY(0)}35%{transform:translateY(-.55px) rotate(.16deg)}70%{transform:translateY(.4px) rotate(-.14deg)}}
@keyframes exhaust-puff{0%{transform:translate(0,0) scale(.3);opacity:0}15%{opacity:.55}100%{transform:translate(14px,-40px) scale(3.2);opacity:0}}
@keyframes boat-afloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-4px) rotate(1deg)}}
@keyframes ripple-water{0%{transform:scale(.85);opacity:.1}35%{opacity:.45}100%{transform:scale(1.2);opacity:0}}
.drawer{width:min(560px,100vw);max-width:100vw;padding:16px 24px 18px;background:radial-gradient(ellipse at 42% 34%,#ffedcd,#ffe0d3 65%,#f4cee9);border:0;border-left:5px solid #fff9e8;border-radius:75px 0 0 75px;overflow-x:hidden;box-shadow:-10px 0 35px #25255055}
.drawer-head{height:80px;min-height:0;position:relative;display:block;margin:0 0 2px}
.drawer-sign{height:100%;width:100%;object-fit:contain;display:block}
.drawer-head>.close{position:absolute;right:-8px;top:-7px;z-index:3;font-size:20px;min-width:32px;width:32px;height:32px;border-width:2px;border-radius:50%;opacity:.9}
.preview-platform{height:355px;background:none;margin:0;position:relative}
#previewAvatar{position:absolute;left:85px;right:82px;top:0;height:100%!important;filter:drop-shadow(0 12px 8px #c38b854d)}
.categories{position:absolute;top:115px;left:20px;gap:17px}
.categories button{width:84px;height:84px;border:0;border-radius:25px;padding:0;background:none;box-shadow:none}
.categories button.active{outline:4px solid #97e413;outline-offset:1px;filter:drop-shadow(0 0 4px white)}
.categories .reference-art{width:100%;height:100%}
.mini-heroes{right:-8px;top:14px;display:grid;gap:15px;width:96px}
.mini-heroes img{width:96px;height:145px;border-radius:25px;background:#d9b8f4;object-fit:contain;padding:7px;box-shadow:0 2px 0 #fff8}
.preview-stars,.preview-platform>.platform{display:none}
.reward-story{height:90px;display:block;margin:0}
.reward-story>.reference-art{height:100%;width:100%;object-fit:contain}
.store-balance{position:absolute;left:28px;bottom:10px;font-size:0;opacity:.8}
.store-balance>span{font-size:13px;padding:3px 8px}
.items{padding:12px;border:0;border-radius:32px;background:#d9b5f2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;box-shadow:inset 0 2px 1px #fff7}
.item{border:3px solid #fff3ff;border-radius:25px;background:linear-gradient(145deg,#fff3fc,#d5b9eb);padding:7px 3px 6px;min-height:132px;box-shadow:0 3px 1px #a37bc5;position:relative}
.item.selected{border-color:#8fdd0b;box-shadow:0 0 0 3px #fff8,0 3px 1px #a37bc5}
.item-icon{width:100%;height:88px}.item-icon img{width:100%;height:95px;object-fit:contain}
.item-price{background:linear-gradient(#b778e7,#7542ae);border:2px solid #fff8;border-radius:12px;color:#fff;text-shadow:0 2px #623c8f;font-size:25px;padding:3px 9px;width:90%;text-align:center}
.item-check{top:-13px;right:-9px;width:34px;height:34px;font-size:24px;border:3px solid white}
.item-description{height:0;overflow:hidden;margin:0}
.equip{display:block;position:relative;width:100%;height:105px;margin:9px auto 0;padding:0;border:0;background:none;box-shadow:none;border-radius:32px;color:transparent;font-size:0}
.equip:disabled{opacity:.5;filter:saturate(.6)}
.equip>.reference-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.small-dialog{width:min(420px,90vw);border:5px solid #fff8;border-radius:35px;padding:35px;background:linear-gradient(145deg,#ffe9cd,#e2c2f5);text-align:center;color:#573e7f}
.small-dialog .close{position:absolute;right:12px;top:12px}.inventory-picture{font-size:90px}#passportStamps{font-size:60px}
@media(min-height:950px){.drawer{padding-top:22px}.preview-platform{height:calc(100dvh - 540px);max-height:550px}.reward-story{height:105px}.items{padding:16px}.item{min-height:155px}.item-icon{height:100px}.item-icon img{height:112px}.equip{height:120px}}
@media(max-height:820px){.drawer{padding:10px 18px 14px}.drawer-head{height:64px}.preview-platform{height:calc(100dvh - 403px);min-height:195px}.reward-story{height:70px}.categories{top:94px;left:13px;gap:12px}.categories button{width:65px;height:65px}.mini-heroes{width:75px;gap:9px}.mini-heroes img{width:75px;height:110px}.items{padding:9px}.item{min-height:112px}.item-icon{height:65px}.item-icon img{height:75px}.item-price{font-size:21px}.equip{height:83px;margin-top:5px}}
@media(max-width:700px){.hud{padding:8px 8px;gap:3px;flex-direction:column}.wordmark{width:175px}.controls{gap:5px;align-self:flex-end;margin-top:-15px}.controls .square{width:49px}.controls .balance{width:87px}.controls #balance{font-size:24px}.company-marker{width:185px;top:27%}.drawer{border-radius:45px 0 0 45px}.map-caption{display:none}#previewAvatar{left:60px;right:65px}.mini-heroes{right:-3px}}
@media(max-width:370px){.controls .square{width:43px}.controls .balance{width:78px}.controls{gap:3px}.wordmark{width:160px}.mini-heroes{width:65px}.mini-heroes img{width:65px;height:100px}.categories button{width:58px;height:58px}#previewAvatar{left:51px;right:55px}}
@media(prefers-reduced-motion:reduce){.living-truck,.living-boat,.truck-exhaust i,.boat-ripples,.company-marker,.mascot-flower-glow{animation:none}}
.items.featured{grid-template-columns:repeat(4,minmax(0,1fr))}
.items.featured .item-price{font-size:23px;padding:3px 4px}
.items.featured .item-icon img{width:100%;height:100%}
.mascot-art{position:relative;z-index:1}
.mascot-flower-glow{display:none}
@media(max-width:430px){.items.featured{gap:5px;padding:8px}.items.featured .item-price{font-size:19px}.items.featured .item{border-radius:19px}.items.featured .item-check{width:28px;height:28px;font-size:20px}}
.living-truck{left:19.987%;top:37.6953%;width:9.8958%;height:11.2305%}
.hero-button{aspect-ratio:2/3;height:clamp(96px,18vh,195px);filter:drop-shadow(0 3px 2px #774b3d35)}
#previewAvatar{left:72px;right:75px}
.living-truck{left:19.8568%;top:37.5%;width:10.026%;height:11.6211%}
.truck-exhaust{left:20.9%;top:44.65%;width:1.15%;height:1.1%;z-index:2}
.truck-exhaust i{background:radial-gradient(ellipse at 38% 36%,#f0eef2 0%,#b4b1c2 54%,#9293a770 75%,transparent 80%);box-shadow:0 1px 5px #8b8da13d;animation:visible-exhaust 2.8s ease-out infinite}
@keyframes visible-exhaust{0%{transform:translate(0,0) scale(.3);opacity:.2}15%{opacity:.9}50%{opacity:.65}100%{transform:translate(-220%,-280%) scale(2.5);opacity:0}}
@media(max-width:700px){#previewAvatar{left:52px;right:60px}}
.hero-button{aspect-ratio:20/27}
.hero-button{height:clamp(110px,20vh,225px)}
.hero-button{height:clamp(125px,22vh,245px)}
.hero-button{transform:translate(-50%,calc(0% - var(--hero-ground,87%)))}
.hero-button .hero-ring{left:50%;top:var(--hero-ground,87%);bottom:auto;width:43%;height:4.5%;border:0;border-radius:50%;background:radial-gradient(ellipse,#66402d70 0%,#79523b35 45%,transparent 73%);box-shadow:none;transform:translate(-50%,-50%);pointer-events:none}
.hero-button .hero-ring{animation:none}
.hero-button{aspect-ratio:8/11;height:clamp(110px,19vh,215px)}
.hero-button .hero-ring{width:58%}
