:root{--ink:#302b52;--muted:#7c7591;--line:#e6ddf3;--orange:#ff964b;--paper:#fffaf0;--purple:#7254dd}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#28224e;color:var(--ink);font-family:system-ui,-apple-system,'PingFang TC',sans-serif;background-image:radial-gradient(#5b4c8540 1px,transparent 1px);background-size:22px 22px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,.pin:focus-visible{outline:3px solid #fd7c49;outline-offset:4px}[hidden]{display:none!important}.game-header{max-width:1440px;margin:auto;padding:20px 4%;display:flex;align-items:center;gap:25px;color:#fff}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand b{font-size:22px;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:4px;color:#a99bd1;margin-top:3px}.brand-icon{font-size:35px;background:#ffcd57;color:#574138;border:3px solid #fff4ba;border-radius:14px;width:53px;height:53px;text-align:center;box-shadow:0 4px 0 #b97835;transform:rotate(-6deg)}.player{display:flex;align-items:center;gap:10px;margin-left:auto;background:#403461;border:1px solid #665484;border-radius:40px;padding:5px 18px 5px 6px}.avatar{width:43px;height:43px;border-radius:50%;background:#a4dfe4;border:2px solid #fff3c3;overflow:hidden}.avatar svg{width:100%;height:100%}.player small{display:block;font-size:10px;color:#c6badd}.player b{font-size:12px}.online-dot{width:7px;height:7px;background:#82e7a0;border-radius:50%;margin-left:10px}.sound{background:#493863;border:1px solid #695180;color:#eadff7;padding:10px 13px;border-radius:12px;font-size:11px}main{max-width:1440px;padding:15px 4% 0;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;color:#fff}.eyebrow{font-size:10px;font-weight:850;letter-spacing:2px;color:#9480d4}.intro .eyebrow{color:#fdcf66}.intro h1{font-size:clamp(23px,3vw,35px);margin:10px 0;font-weight:900;letter-spacing:.2px}.intro h1 span{color:#ffd267;margin-left:5px}.intro p{font-size:13px;color:#c6b8dc;margin:0;line-height:1.7}.version-badge{border:1px solid #70523d;border-radius:14px;padding:12px 18px;background:#473748;color:#ffda76;font-size:12px;transform:rotate(2deg)}.version-badge small{display:block;text-align:center;font-size:10px;color:#c7b4bf;margin-top:6px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:25px}.stat{display:flex;align-items:center;gap:13px;border:2px solid #fff5;border-radius:17px;padding:15px 18px;box-shadow:0 5px 0 #17122d}.stat strong{font-size:25px;display:block;font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums}.stat small{font-size:10px;font-weight:800;display:block;margin-bottom:5px}.stat-icon{font-size:25px;width:40px;height:40px;border-radius:12px;background:#ffffff50;display:grid;place-items:center}.gold{background:#ffd373;color:#755126}.violet{background:#c5b2ff;color:#4d3687}.blue{background:#97dcec;color:#2d6684}.green{background:#a4e4ab;color:#326b48}.coral{background:#ffb9a3;color:#8c4941}.main-nav{display:flex;gap:7px;margin-bottom:18px}.nav-btn{border:0;background:#453566;color:#bfb0d6;border-radius:13px;padding:12px 19px;font-size:13px;font-weight:800;box-shadow:0 3px 0 #1c1634}.nav-btn.selected{background:#fff5de;color:#4b3d66;box-shadow:0 3px 0 #c8a76e}.nav-btn span{font-size:10px;margin-left:8px;background:#ffffff26;padding:3px 6px;border-radius:6px}.layout{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(330px,1fr);gap:22px;align-items:start}.map-panel{background:#fffaf0;border:4px solid #fff2d2;border-radius:25px;overflow:hidden;box-shadow:0 8px 0 #17122d}.map-title{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fffaf0}.map-title small{font-size:9px;letter-spacing:2px;font-weight:800;color:#928299}.map-title h2{font-size:19px;margin:4px 0 0;font-weight:900}.map-title h2 span{font-size:9px;color:#a798aa;margin-left:10px;letter-spacing:1px}.map-mode{padding:7px 9px;background:#fff0c6;color:#ad7b33;font-size:10px;border-radius:10px;white-space:nowrap}.map-stage{position:relative;background:#7cd2e0;overflow:hidden}#map{display:block;width:100%;max-height:710px}.world-bubble{position:absolute;top:14px;left:14px;background:#fffdf2e8;border:2px solid #fff;font-size:10px;font-weight:800;padding:8px 12px;border-radius:30px;box-shadow:0 3px 0 #4f9fa649;pointer-events:none}.map-compass{position:absolute;top:15px;right:18px;text-align:center;color:#2f7783;font-weight:900;font-size:22px;line-height:1.1;pointer-events:none}.legend{display:flex;justify-content:center;gap:18px;font-size:10px;font-weight:750;padding:14px 10px 6px}.legend span{display:flex;align-items:center;gap:5px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%}.legend-dot.locked{background:#9281c0}.legend-dot.active{background:#ffbe40}.legend-dot.done{background:#4bb777}.map-note{font-size:9px;color:#9d91a7;text-align:center;margin:5px 0 13px}.pin{cursor:pointer;outline:none}.pin .tile{fill:#a9c6aa;stroke:#749b80;stroke-width:2;transition:fill .25s}.pin.active .tile{fill:#ffe08a;stroke:#ed9e41;stroke-width:3}.pin.done .tile{fill:#a0eaba;stroke:#42a875;stroke-width:2}.pin .marker{fill:#9380c1;stroke:#fff6e2;stroke-width:2}.pin.active .marker{fill:#ffc657}.pin.done .marker{fill:#58c080}.pin .label{fill:#fffdf0;stroke:#d0d1ae;stroke-width:1}.pin.active .label{fill:#fff0af;stroke:#e5a643;stroke-width:2}.pin .name{font-size:10px;fill:#53456b;font-weight:900;text-anchor:middle}.pin .land-level{fill:#fff8e4;font-size:8px;font-weight:900;text-anchor:middle}.pin:hover .label,.pin:focus-visible .label{stroke:#ff9237;stroke-width:3}.pin .landmark{filter:url(#shadow)}.pin .selected-arrow{animation:bob 1.1s ease-in-out infinite;fill:#ffad39;stroke:#fff;stroke-width:2}.pin .star{fill:#fff3ab}.cloud{pointer-events:none}.character{transition:transform .45s ease}.card{background:#fffaf0;border:4px solid #fff2d2;border-radius:24px;padding:21px;box-shadow:0 8px 0 #17122d;scroll-margin-top:12px}.quest-header{display:flex;justify-content:space-between;align-items:center}.quest-state{background:#eef6df;color:#78a346;padding:5px 8px;border-radius:7px;font-size:9px;font-weight:900}.place-heading{display:flex;align-items:center;gap:13px;margin:15px 0 10px}.place-icon{background:#ffe3bd;border:2px solid #f1ce94;width:62px;height:62px;border-radius:15px;display:grid;place-items:center}.place-icon svg{width:56px;height:56px}.place-heading h2{font-size:27px;font-weight:950;margin:0 0 5px}.loc-meta{font-size:9px;color:#8d819c}.place-desc{font-size:11px;line-height:1.6;color:#8a7c93;margin-bottom:15px}.card-tabs{display:flex;background:#eae2f1;padding:4px;border-radius:12px;gap:4px;margin-bottom:7px}.card-tabs button{flex:1;border:0;border-radius:9px;background:transparent;font-size:12px;font-weight:800;padding:10px;color:#9482a9}.card-tabs .selected{background:#fffaf0;color:#7254be;box-shadow:0 2px 0 #bca9cb}.step{display:grid;grid-template-columns:27px minmax(0,1fr);gap:10px;padding:16px 0;border-bottom:1px dashed #ded4e7}.number{height:26px;width:26px;border-radius:9px;background:#e9ddff;color:#7854ba;display:grid;place-items:center;font-size:12px;font-weight:900;box-shadow:0 2px 0 #cbb6e5}.step.completed .number{background:#bce9a8;color:#4d8739}.step b{font-size:13px;font-weight:900;display:block}.step p{font-size:10px;line-height:1.6;color:#93889c;margin:7px 0 10px}.reward-chip{display:inline-block;margin-left:7px;padding:3px 7px;font-size:10px;background:#fff0bb;color:#ae7f25;border-radius:6px}.action{display:block;width:100%;border:2px solid #ffffff60;border-radius:12px;padding:12px 8px;font-size:12px;font-weight:900;letter-spacing:.3px;position:relative;transition:transform .12s,filter .12s;margin-bottom:4px}.action:active:enabled{transform:translateY(4px);box-shadow:none}.action:hover:enabled{filter:brightness(1.04)}.action:disabled{background:#e9e4e8!important;color:#aaa0af!important;border-color:#f4eff4;box-shadow:0 3px 0 #cdc4d2!important;cursor:default}.blue-btn{background:#76cef0;color:#246082;box-shadow:0 4px 0 #3b94bd}.gold-btn{background:#ffce65;color:#805624;box-shadow:0 4px 0 #c19339}.purple-btn{background:#bba0f7;color:#563597;box-shadow:0 4px 0 #8c70c6}.finish{background:#9fdb87;color:#467633;box-shadow:0 4px 0 #6fa45a;margin-top:17px}.progress{height:12px;background:#e3dced;border:2px solid #d3c7df;border-radius:20px;overflow:hidden;margin:11px 0}.progress i{display:block;height:100%;background:repeating-linear-gradient(115deg,#a6d983 0 8px,#c5e995 8px 16px);transition:width .3s}.upload{display:block;border:2px dashed #cdbae5;border-radius:12px;background:#f1eaf9;padding:11px;text-align:center;font-size:11px;font-weight:800;color:#9a7ebe;cursor:pointer}.upload input{display:block;width:100%;font-size:10px;margin-top:8px;color:#9a7ebe}.preview{display:flex;gap:7px;overflow:auto;margin-top:10px}.preview img,.preview video{height:60px;width:80px;object-fit:cover;border-radius:9px;border:2px solid #fff;box-shadow:0 2px 0 #b8a7c9}.place-picker{display:flex;align-items:center;gap:10px;margin-top:22px}.place-picker label{font-size:10px;color:#9d8aa9;white-space:nowrap}.place-picker select{min-width:0;flex:1;border:2px solid #e3d7eb;background:#fffdf4;border-radius:10px;padding:8px;color:#735989;font-size:11px}.prototype-info{font-size:9px;color:#a095ab;margin-top:14px;line-height:1.7}.prototype-info summary{cursor:pointer}.land h3{font-size:14px;margin-top:17px}.land>p{font-size:11px;color:#897a97;line-height:1.6}.building-scene{height:155px;border:2px solid #d9ecab;border-radius:16px;background:radial-gradient(ellipse at 50% 75%,#8dba6d66 0 20%,transparent 21%),linear-gradient(#b8e8f3 0 55%,#c9e79c 55%);display:flex;align-items:center;justify-content:center;position:relative;margin:14px 0}.building-scene svg{height:130px;width:145px}.building-scene .level-badge{position:absolute;right:10px;top:10px;background:#ffdb78;border:2px solid #fff5c9;padding:5px 9px;border-radius:9px;font-weight:900;font-size:12px;color:#987126}.land-rules{display:flex;justify-content:space-around;font-size:10px;color:#9c86a8;margin-bottom:18px}.land-rules b{color:#765288}.build-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.build-options button{min-width:0;background:#fff5d8;border:2px solid #e8d4a0;border-radius:12px;padding:7px 4px;color:#88603b;box-shadow:0 3px 0 #c7b082}.build-options button:disabled{opacity:.45;cursor:default}.build-options svg{display:block;width:100%;height:65px}.build-options b{display:block;font-size:10px}.build-options small{display:block;margin-top:5px;font-size:11px;font-weight:800}.notice{font-size:9px!important;line-height:1.7}.journal{background:#fffaf0;border:4px solid #fff2d2;border-radius:24px;padding:25px;min-height:450px;box-shadow:0 7px 0 #17122d}.sectionhead h2{font-size:27px;margin:10px 0}.sectionhead p{font-size:12px;color:#9a859e;line-height:1.7}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:23px}.memory{border:2px solid #dacde4;border-radius:17px;overflow:hidden;background:#fffdf7;box-shadow:0 4px 0 #e6ddec}.memory img,.memory video{width:100%;height:200px;object-fit:cover}.memory .body{padding:17px}.memory .body b{font-size:15px}.memory .body p{font-size:12px;color:#967faa}.memory small{font-size:10px;color:#9f8bab;line-height:1.8}.memory .body>.building-scene{margin-top:0}.chip{border:2px solid #dac4f0;background:#ece0fa;color:#80609e;padding:8px 12px;border-radius:10px;font-size:11px;font-weight:800}.empty{grid-column:1/-1;border:2px dashed #e2d1ed;padding:65px 20px;text-align:center;color:#a58eb4;border-radius:16px;line-height:1.8;font-size:13px}footer{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#8d7ea9;padding:25px 0 20px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);border:3px solid #fff1bc;background:#ffda70;color:#72511f;padding:15px 25px;border-radius:15px;font-size:13px;font-weight:800;z-index:10;max-width:90%;box-shadow:0 6px 0 #3e275699;display:none;animation:pop .25s ease}#particles{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:11}.particle{position:absolute;font-size:23px;animation:burst 1.1s ease-out forwards}.float-reward{position:absolute;font-size:22px;font-weight:950;color:#ffcf56;text-shadow:0 2px #6b4b35;animation:reward 1s ease-out forwards}.stat.pulse{animation:statPulse .4s ease}.world-bubble{animation:pop .4s ease}.nav-btn,.card-tabs button,.chip{transition:background .15s}.page-flash{animation:statPulse .4s ease}@keyframes bob{50%{transform:translateY(-5px)}}@keyframes pop{from{opacity:0;scale:.8}to{opacity:1;scale:1}}@keyframes reward{to{transform:translateY(-85px);opacity:0}}@keyframes burst{to{transform:translate(var(--dx),var(--dy)) rotate(220deg);opacity:0}}@keyframes statPulse{50%{transform:scale(1.04)}}
@media(min-width:1100px){.card{position:sticky;top:15px}}@media(max-width:1000px){.stat{padding:12px;gap:8px}.stat-icon{font-size:20px;width:30px;height:32px}.stat strong{font-size:21px}.game-header{gap:12px}.brand b{font-size:18px}.layout{grid-template-columns:minmax(0,1.3fr) minmax(310px,1fr);gap:16px}.map-title{padding:15px}.map-mode{display:none}.intro h1{font-size:27px}}@media(max-width:760px){.game-header{padding:15px 4%}.brand b{font-size:17px}.brand-icon{width:42px;height:42px;font-size:29px}.brand small{font-size:8px;letter-spacing:2.5px}.player{padding:3px;margin-left:auto}.player>div,.online-dot{display:none}.avatar{width:35px;height:35px}.sound{padding:9px 8px;font-size:9px}main{padding-top:8px}.intro{margin-bottom:18px}.intro h1{font-size:24px;line-height:1.35}.intro h1 span{display:block;margin-left:0}.intro p{font-size:11px;max-width:240px}.intro .eyebrow{font-size:8px}.version-badge{font-size:10px;padding:10px;max-width:112px;line-height:1.6}.version-badge small{font-size:8px}.stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:20px}.stat{grid-column:span 2;padding:9px 7px;border-radius:12px;gap:6px}.stat:nth-child(1),.stat:nth-child(2){grid-column:span 3}.stat strong{font-size:20px}.stat small{font-size:8px}.stat-icon{font-size:18px;width:29px}.main-nav{gap:6px}.nav-btn{flex:1;padding:11px 5px;font-size:11px;white-space:nowrap}.nav-btn span{display:none}.layout{grid-template-columns:1fr;gap:20px}.map-panel{border-width:3px;border-radius:20px}.map-title h2{font-size:17px}.map-title small{font-size:8px}#map{max-height:none}.map-title{padding:13px 15px}.map-mode{display:block;font-size:8px;padding:6px}.world-bubble{font-size:8px;padding:6px 8px;top:10px;left:10px}.map-compass{font-size:16px;top:10px;right:12px}.legend{gap:12px;font-size:9px}.card{padding:19px;border-width:3px}.place-heading h2{font-size:27px}.step b{font-size:14px}.step p{font-size:11px}.action{font-size:13px;padding:13px}.gallery{grid-template-columns:1fr 1fr;gap:12px}.journal{padding:19px}.memory img,.memory video{height:140px}.memory .body{padding:12px}.memory .body b{font-size:13px}.memory .building-scene{height:110px}.memory .building-scene svg{height:95px}footer{display:block;font-size:8px;line-height:2}.build-options button{padding:8px}.prototype-info{font-size:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

.map-stage{overflow:auto;max-height:710px;scrollbar-width:thin;scrollbar-color:#63b3bc #9de1e9}#map{max-height:none}.map-controls{display:flex;align-items:center;gap:8px;color:#9e8da8;font-size:10px;font-weight:850}.map-controls button{width:27px;height:27px;border:2px solid #dcd2e9;border-radius:8px;background:#f4eafa;color:#9b7bb5;font-weight:900;font-size:16px}.map-controls button:disabled{opacity:.35;cursor:default}.map-actions{display:flex;gap:12px;padding:15px 17px 0}.map-actions .action{flex:1;font-size:11px;padding:10px 5px}.map-actions .purple-btn{flex:.7}.pin .name{font-size:12px}
@media(max-width:760px){.map-stage{max-height:470px}.map-controls{gap:6px;font-size:9px}.map-controls button{width:25px;height:25px}.pin .name{font-size:14px}.map-actions{padding:12px 12px 0;gap:8px}.map-actions .action{font-size:11px}}

/* Fixed 45-degree pre-rendered world with independent, interactive place overlays. */
.map-panel{background:#172e32;border-color:#526054;box-shadow:0 8px 0 #101b21,0 18px 45px #09181e55}.map-title{background:linear-gradient(135deg,#213d40,#132a30);color:#f6e7be}.map-title small{color:#c4b57e}.map-title h2 span{color:#93b2ab}.map-controls{color:#ddcfaa}.map-controls button{background:#304a4b;border-color:#718374;color:#f5df9d}.map-stage{background:#78988a;max-height:780px}.world-bubble{background:#142f32e8;color:#f7e7ba;border:1px solid #a39c6c;box-shadow:0 3px 14px #10222266;animation:none}.map-compass{color:#ffe8ae;text-shadow:0 2px 4px #182c2d;background:#163338bb;padding:6px;border:1px solid #b29e66;border-radius:50%;width:47px;height:47px;font-size:16px}.pin .tile{fill:#233c4426;stroke:#eff3db60;stroke-width:1}.pin.active .tile{fill:#ffcf5644;stroke:#ffe59a;stroke-width:2;filter:url(#shadow)}.pin.done .tile{fill:#55eaa457;stroke:#a4ffd0;stroke-width:2}.pin .label{fill:#19373ce8;stroke:#acbba2;stroke-width:.8;filter:url(#shadow)}.pin .name{fill:#fff3d2;font-size:11px;font-weight:750}.pin.active .label{fill:#ead08e;stroke:#fff0bb;stroke-width:1.5}.pin.active .name{fill:#29433c}.pin.done .label{fill:#255346;stroke:#91dbaf}.pin .beacon{fill:#d7e4cf;stroke:#284946;stroke-width:2;filter:url(#shadow)}.pin.active .beacon{fill:#ffe28a;stroke:#fff4bd}.pin.done .beacon{fill:#79f0b4;stroke:#f1ffdc}.beacon-stem{stroke:#e5edd2;stroke-width:1.5}.pin .selected-arrow{fill:#ffe08a;stroke:#233e3a;stroke-width:1;transform:translateY(39px);animation:none}.legend{color:#d2ddc8}.map-note{color:#98b0aa}.map-actions{background:#172e32}.legend-dot.locked{background:#d7e4cf}.legend-dot.active{background:#ffe28a}.legend-dot.done{background:#79f0b4}@media(max-width:760px){.map-stage{max-height:570px}.pin .name{font-size:12px}.map-title h2{font-size:16px}.world-bubble{font-size:8px}.map-compass{width:38px;height:38px;font-size:13px}.legend{gap:10px}}

.pin.done .name,.pin.active.done .name{fill:#fff3d2}

.map-stage{cursor:grab;touch-action:none;user-select:none;overscroll-behavior:contain}.map-stage.panning,.map-stage.panning .pin{cursor:grabbing}.map-stage:focus-visible{outline:3px solid #ffe08a;outline-offset:-3px}

#liveWorld{pointer-events:none}.motion-toggle{border:1px solid #8ca88c;background:#304a4b;color:#ffe8ae;border-radius:9px;padding:7px 9px;font-size:10px;cursor:pointer;white-space:nowrap}.motion-toggle[aria-pressed="false"]{color:#c4cec7;background:#263b3d}.map-title{flex-wrap:wrap;gap:10px}.map-title>div:first-child{flex:1}.live-cloud{opacity:.45}@media(max-width:760px){.motion-toggle{font-size:9px;padding:6px}.map-title>div:first-child{flex-basis:100%}.map-controls{margin-left:auto}}

#map{overflow:hidden}
