:root{color:#4b354c;font-synthesis:none;--berry:#803a59;--line:#ebd7cd;background:#fff9eb;font-family:system-ui,Microsoft JhengHei,sans-serif;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,.upload{min-height:44px;color:inherit;cursor:pointer;background:#fffaf1;border:1px solid #e4c9c6;border-radius:12px;padding:.55rem .85rem;font-weight:700}button:hover,.upload:hover{filter:brightness(.97)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible,.upload:focus-within{outline-offset:3px;outline:3px solid #7e4caa}button[aria-pressed=true]{background:#fbe2ec;border-color:#a95177}button strong,button small{display:block}small{color:#6f5669;font-size:.8rem}h1,h2,h3,p{margin-top:0}h2{font-size:1.35rem}.top{background:#fffdf5;border-bottom:1px solid #f0e0d8}.top-inner{justify-content:space-between;align-items:center;gap:12px;max-width:1280px;margin:auto;padding:14px 4%;display:flex}.brand{color:inherit;align-items:center;gap:10px;line-height:1.3;text-decoration:none;display:flex}.brand b,.brand small{display:block}.brand b{letter-spacing:.04em;font-size:1.12rem}.brand-mark{background:#d76f99;border-radius:14px;place-items:center;width:42px;height:42px;display:grid;box-shadow:0 3px #ad5d83}.brand-mark svg{width:34px}.toolbar,.wallet{align-items:center;gap:10px;display:flex}.wallet{font-variant-numeric:tabular-nums;background:#fff4db;border-radius:999px;padding:7px 12px;font-weight:800}.coin,.star{background:#efbc5a;width:16px;height:16px;display:inline-block}.coin{border:2px solid #d19439;border-radius:50%;box-shadow:inset 0 0 0 2px #ffe29a}.star{clip-path:polygon(50% 0,65% 33%,100% 39%,75% 64%,80% 100%,50% 83%,20% 100%,25% 64%,0 39%,35% 33%)}.pill{border-radius:999px;font-size:.86rem}main{width:min(1172px,92%);margin:auto}.intro{justify-content:space-between;align-items:end;gap:14px;padding:29px 0 23px;display:flex}.kicker{color:#8a4363;letter-spacing:.13em;align-items:center;gap:7px;margin:0 0 6px;font-size:.85rem;font-weight:800;display:flex}.kicker span,.map-caption i{background:#d780a0;border-radius:50%;width:8px;height:8px;display:inline-block}.intro h1{letter-spacing:.015em;color:#60394f;margin:0 0 10px;font-size:clamp(2.05rem,5vw,4rem);font-weight:900;line-height:1.1}.intro h1 span{color:#c77596;vertical-align:top;margin-left:9px;font-size:.42em}.tagline{color:#76536a;margin:0;font-size:clamp(.89rem,2vw,1.05rem)}.character-button{text-align:left;white-space:nowrap;background:#fbedf1;border-color:#edcdd8;border-radius:18px;align-items:center;gap:10px;padding:6px 14px 6px 7px;display:flex}.avatar{background:#fff6e7;border-radius:12px;place-items:center;width:48px;height:48px;display:grid}.avatar svg{width:45px}.chevron{color:#a65978;margin-left:6px;font-size:1.7rem}.map-card{background:#fffdf3;border:1px solid #dfc8c3;border-radius:25px;overflow:hidden;box-shadow:0 9px #f1e2d1}.map-scroll{overflow-x:auto}.map{aspect-ratio:1100/570;min-width:745px;position:relative;overflow:hidden}.map-art{width:100%;height:100%;display:block}.map-pin{white-space:nowrap;z-index:1;border:2px solid #fffaf1;border-radius:999px;min-height:44px;padding:4px 10px;font-size:clamp(.72rem,1.25vw,.95rem);position:absolute;transform:translate(-50%,-50%);box-shadow:0 3px #79596a4a}.map-player{pointer-events:none;z-index:2;width:7%;transition:left .65s ease-in-out,top .65s ease-in-out;position:absolute;transform:translate(-50%,-90%)}.companion{transform-origin:50% 88%;width:100%;display:block}.companion.idle{animation:2.9s ease-in-out infinite bob}.companion.walk{animation:.28s ease-in-out infinite bob}.companion.happy{animation:.75s ease-out happiness}.companion.interact{animation:.45s ease-out happiness}.clouds{animation:23s ease-in-out infinite alternate cloud}.water{animation:3.5s linear infinite stream}.fountain{transform-origin:0 0;animation:1.1s ease-in-out infinite alternate spray}.train{offset-path:path("M 22 540 Q 162 510 306 539 T 641 542 1080 533");offset-rotate:auto;animation:28s linear infinite train;transform:none}.butterfly{animation:5s ease-in-out infinite alternate fly}.map-caption{color:#634f5f;justify-content:space-between;align-items:center;gap:12px;padding:7px 15px;font-size:.87rem;display:flex}.map-caption button{color:#843d61;background:0 0;border:0}.directory{margin-top:32px}.directory-grid,.level-grid,.character-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;display:grid}.directory-grid button{text-align:left}.directory-grid small{margin-top:3px}footer{text-align:center;color:#725f6c;padding:32px 15px;font-size:.84rem}dialog{color:inherit;background:#fff9ed;border:1px solid #e6c9d1;border-radius:24px;width:min(680px,94vw);max-height:88dvh;padding:20px;box-shadow:0 14px 65px #422d4860}dialog::backdrop{background:#49385270}.dialog-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.dialog-head h2{margin:0}.dialog-head button{min-width:44px;padding:2px;font-size:1.35rem}.character-grid button{justify-items:center;display:grid}.character-grid svg{width:100px}.actions{flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;display:flex}.level-grid{margin-bottom:15px}.settings input[type=checkbox]{vertical-align:middle;width:20px;height:20px;margin-right:5px}.upload{position:relative;overflow:hidden}.upload input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.note{background:#f3e8fa;border-radius:10px;margin:10px 0;padding:10px 12px}.note p{margin-bottom:0}.primary{color:#fff;background:#8b4265;border-color:#8b4265}select{min-height:44px;color:inherit;background:#fffdf7;border:1px solid #dcb9cb;border-radius:10px;padding:4px 8px}.lab h3{margin:.8rem 0 .2rem}.stage{background:#edf4d8;border:2px dashed #9cb084;border-radius:16px;place-items:center;min-height:108px;padding:10px;display:grid}.celebrate{animation:.65s ease-out celebrate}.maze{grid-template-columns:repeat(3,54px);gap:3px;display:grid}.maze div{background:#fff7d8;border-radius:7px;place-items:center;height:48px;display:grid}.maze svg{width:49px}@keyframes bob{50%{transform:translateY(-4px)}}@keyframes happiness{45%{transform:translateY(-10px)rotate(-8deg)}}@keyframes cloud{to{transform:translate(45px)}}@keyframes stream{to{stroke-dashoffset:-88px}}@keyframes spray{to{opacity:.6;scale:1 .66}}@keyframes train{0%{offset-distance:0}to{offset-distance:100%}}@keyframes fly{to{translate:40px -18px;rotate:12deg}}@keyframes celebrate{50%{background:#fff0ad;box-shadow:0 0 12px #f4cc70}}@media (width<=650px){.intro{flex-direction:column;align-items:start;padding-top:22px}.brand small{display:none}.brand b{font-size:.95rem}.brand-mark{width:34px;height:34px}.brand-mark svg{width:27px}.wallet{gap:5px;padding:5px 7px}.toolbar{gap:5px}.pill{padding:4px 8px}.map-card{border-radius:16px}.map-caption{padding:5px 8px;font-size:.78rem}.directory-grid,.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.map-hint{display:none}.companion.walk .paws{transform-origin:60px 91px;animation:.28s ease-in-out infinite paws}@keyframes paws{25%{transform:rotate(8deg)}75%{transform:rotate(-8deg)}}@media (width<=810px){.map-hint{display:inline}}.world-app{background:#fff9eb;min-height:100vh}.map-controls{flex-wrap:wrap;gap:8px;margin:0 0 12px;display:flex}.map-controls button,.back-map{border-radius:999px}.back-map{margin-bottom:12px}.map-player{width:5.35%;transition:none}.map-player .companion{filter:drop-shadow(0 1px 1px #fff4d590);animation-name:companion-appear,bob;animation-duration:.3s,2.9s;animation-iteration-count:1,infinite}.map-player .companion.walk{animation:.28s ease-in-out infinite bob}.map-player .companion.interact{animation:.28s ease-out companion-greet}.companion-eye{transform-box:fill-box;transform-origin:50%;animation:4.7s infinite companion-blink}.sway-flower{transform-origin:0 0;animation:3.2s ease-in-out infinite flower-breeze}.fountain-rainbow{animation:4s ease-in-out infinite alternate rainbow-shimmer}.night-light{display:none}.pin-check{color:#235b43}[data-theme=night]{color:#f7e9f8;background:#292740}[data-theme=night] .top,[data-theme=night] .map-card{background:#362d49;border-color:#5c4e70}[data-theme=night] .map-card{box-shadow:0 7px #201e32}[data-theme=night] .intro h1,[data-theme=night] .tagline,[data-theme=night] .kicker,[data-theme=night] .brand small,[data-theme=night] .map-caption,[data-theme=night] footer{color:#f7e9f8}[data-theme=night] .map-art{filter:brightness(.76)saturate(.82)hue-rotate(16deg)}[data-theme=night] .map-art rect[width="1100"]{fill:#44396e}[data-theme=night] .day-light{display:none}[data-theme=night] .night-light{display:inline}[data-theme=night] .clouds{opacity:.28}[data-theme=night] .map-pin,[data-theme=night] .directory-grid button,[data-theme=night] .wallet,[data-theme=night] .toolbar button,[data-theme=night] .character-button,[data-theme=night] .map-controls button:not(.primary),[data-theme=night] .back-map,[data-theme=night] dialog{color:#4b354c}[data-theme=night] .map-caption button{color:#ffd6e6}[data-reduced=true] *,[data-reduced=true] :before,[data-reduced=true] :after{transition:none!important;animation:none!important}@keyframes companion-blink{0%,88%,94%,to{scale:1}91%{scale:1 .1}}@keyframes companion-greet{55%{transform:translateY(-8px)rotate(10deg)}}@keyframes companion-appear{0%{opacity:.35;scale:.88}to{opacity:1;scale:1}}@keyframes flower-breeze{50%{rotate:8deg}}@keyframes rainbow-shimmer{to{opacity:.45}}.preview-banner{color:#583956;background:#f3e8f6;border:1px solid #e0c8e0;border-radius:12px;margin:12px 0 0;padding:7px 12px;font-size:.9rem;font-weight:700}.scene-loading{padding:12px 0}
