/* Một thế giới toàn cảnh: UI nhỏ, điểm chơi đặt trên công trình đã vẽ trong tranh. */
#map{position:fixed;inset:0;z-index:5;margin:0;border:0;border-radius:0;overflow:hidden;isolation:isolate;animation:none;background:#acd9c7;color:#49365f;font-family:var(--body)}
#map .mapScroll{position:absolute;inset:0;margin:0 auto;max-width:1100px;border:0;border-radius:0;min-height:0;background:#a8dfaa;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;overflow-anchor:none;outline-offset:-5px}
#map .mapScroll::-webkit-scrollbar{display:none}
#map .mapInner.scenicMap{position:relative;margin:0 auto;max-width:100%;overflow:hidden;isolation:isolate;background:none}
.fairyTerrain{position:absolute;inset:0;pointer-events:none}
.worldPanel{position:absolute;z-index:var(--world-z);pointer-events:none;user-select:none}
.worldPainting{display:block;width:100%;height:100%;max-width:none;object-fit:fill;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - var(--world-overlap)),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - var(--world-overlap)),transparent)}
.world-0 .worldPainting{-webkit-mask-image:none;mask-image:none}
.scenicMap .mapSvg{z-index:26;pointer-events:none}
.journeyTop{position:absolute;top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));width:420px;max-width:calc(100% - 32px);display:flex;align-items:center;gap:10px;background:#fffaf2;border:2px solid #fff;border-radius:22px;padding:8px 10px;box-shadow:0 4px 0 #80589324,0 7px 20px #4a3a5420;z-index:8}
.journeyTitle{flex:1;min-width:0}.journeyTitle>b{display:block;font-family:var(--body);font-size:18px;font-weight:900;line-height:1.2;color:#57416b;letter-spacing:-.5px}.journeyTitle>small{display:block;font-size:9px;margin-top:4px;color:#897697;font-weight:800;letter-spacing:.2px}
.mapRound{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #e6dccd;border-radius:15px;background:#f8eedf;box-shadow:0 2px 0 #dfcdb6;color:#806384;transition:transform .15s}.mapRound svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.mapRound:active{transform:translateY(2px);box-shadow:none}
#journeyMotion{background:#e0f5ed;color:#389d82;border-color:#c2e6d6}#journeyMotion svg{fill:#b9eed5;stroke-width:1.7}#journeyMotion[aria-pressed=false]{background:#ece7ed;color:#a494ac}#journeyMotion[aria-pressed=false] svg{fill:none}
.journeyStars{display:flex;align-items:center;gap:3px;border:1px solid #f2d799;background:#fff1ce;border-radius:13px;padding:7px 8px;font-size:16px;line-height:1.15;color:#9f7131;flex:none}.journeyStars>span{color:#e6aa36;font-size:22px}
.journeyRegion{position:absolute;z-index:7;top:max(24px,env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right));background:#fffaf2;border:2px solid #fff;box-shadow:0 3px 0 #80589324,0 6px 18px #4a3a5418;border-radius:18px;padding:10px 16px;display:flex;align-items:center;gap:12px;white-space:nowrap;pointer-events:none;max-width:calc(100% - 28px)}.journeyRegion>span{font-size:14px;font-weight:900;color:#755079;line-height:1.2}.journeyRegion>small{font-size:9px;color:#a185a6;line-height:1.3;padding-left:10px;border-left:1px solid #e9dae5}
.regionSign{position:absolute;left:50%;transform:translate(-50%,-50%);z-index:27;display:flex;align-items:center;gap:8px;width:max-content;max-width:90%;padding:8px 14px 9px 10px;border-radius:16px;border:2px solid #fff7e8;background:#fff5e7;box-shadow:0 3px 0 #bfa5854d,0 4px 14px #72564714;color:#805276;pointer-events:none}.regionNumber{width:27px;height:27px;border-radius:50%;background:#f6d5e3;display:grid;place-items:center;color:#ae5689;font-size:15px;font-weight:900;line-height:1;flex:none}.regionSign small{display:block;font-size:6px;font-weight:900;letter-spacing:1px;color:#b094a6;margin-bottom:3px}.regionSign b{display:block;font-size:15px;font-weight:900;line-height:1.1;color:#805276}
.sceneDestination{position:absolute;left:50%;top:105px;transform:translateX(-50%);z-index:27;text-align:center;width:90%;max-width:450px;pointer-events:none;color:#92386e}.destinationEyebrow{font-size:8px;letter-spacing:2px;color:#ad6e91;font-weight:900}.sceneDestination h2{font-family:var(--body);font-size:28px;font-weight:900;line-height:1.15;margin:7px 0;color:#92386e;text-shadow:0 2px 0 #ffe7ef}.sceneDestination p{font-size:11px;color:#aa6a8f;margin:0}
#map .landmarkNode{position:absolute;z-index:30;width:170px;height:146px;padding:0;border:0;border-radius:35%;transform:translate(-50%,-82%);background:none!important;box-shadow:none!important;animation:none;isolation:isolate;display:block;touch-action:pan-y;overflow:visible;transition:none}
#map .landmarkNode::before,#map .landmarkNode::after{display:none}#map .landmarkNode:active .landmarkBadge{transform:translateX(-50%) scale(.91)}#map .landmarkNode:focus-visible{outline:3px solid #fff4a8;outline-offset:5px}
.landmarkHit{position:absolute;inset:0;pointer-events:none}
.landmarkBadge{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:3px;min-width:40px;height:33px;padding:0 9px;background:linear-gradient(#fffcf2,#f6e8cf);border:2px solid #fff;border-radius:12px;box-shadow:0 3px 0 #9b78934d,0 3px 8px #82618c26;color:#8d7498;font-size:17px;font-weight:900;line-height:1;pointer-events:none;transition:transform .15s}
#map .landmarkNode.cur .landmarkBadge{color:white;background:linear-gradient(#ff88bf,#e74895);border-color:#fff5d0;box-shadow:0 3px 0 #af3376,0 0 0 5px #fff7ca80;min-width:49px;height:40px;font-size:20px}
#map .landmarkNode.done .landmarkBadge{background:linear-gradient(#82e1bc,#3cb393);color:white;border-color:#eaffd9;box-shadow:0 3px 0 #27876f}
.landmarkLock{width:10px;height:13px;fill:#c8b5c7;stroke:#8f7a9a;stroke-width:1.7}
#map .landmarkLabel{position:absolute;left:50%;top:calc(100% + 12px);transform:translateX(-50%);display:none;width:167px;max-width:42vw;padding:7px 9px;min-height:31px;border:2px solid #fff7df;border-radius:13px;box-shadow:0 3px 0 #c19b9d4d;background:#fff6e4;color:#94537c;text-align:center;pointer-events:none;line-height:1.2}
#map .landmarkNode.cur .landmarkLabel,#map .landmarkNode.previewLandmark .landmarkLabel,#map .landmarkNode:focus-visible .landmarkLabel{display:block}
#map .landmarkLabel>span{display:none}#map .landmarkLabel small{position:static;transform:none;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;width:auto;max-width:none;color:#94537c;font-family:var(--body);font-size:11px;font-weight:900;line-height:1.2;text-align:center;background:none;border:0;box-shadow:none;padding:0}
#map .landmarkStars{position:absolute;top:calc(100% + 11px);left:50%;transform:translateX(-50%);padding:2px 6px;color:#f3b435;text-shadow:0 1px 0 #a77038;background:#fff7e4;border:1px solid #fff;border-radius:8px;font-size:12px;line-height:1.2;letter-spacing:1px;white-space:nowrap}
#map .playFlag{position:absolute;left:50%;top:calc(100% - 65px);transform:translateX(-50%);z-index:2;padding:4px 9px;background:#fff9e8;border:1px solid #f2cbdf;color:#b44484;font-weight:900;font-size:9px;line-height:1.2;border-radius:9px;box-shadow:0 2px 0 #d4a5bd44;white-space:nowrap;pointer-events:none}#map .playFlag i{position:absolute;top:100%;left:calc(50% - 5px);font-size:15px;font-style:normal;color:#fff5db;line-height:.6}
#map .mapKid{z-index:31;pointer-events:none}#map .mapKid img{width:45px;height:62px;filter:drop-shadow(0 4px 2px #8e70862d)}
.jFriend{position:absolute;z-index:29;display:flex;align-items:center;flex-direction:column;width:68px;transform:translate(-50%,-50%);background:none;isolation:isolate;touch-action:pan-y;border-radius:20px}.jFriend::before{display:none}.friendArt{display:block;transform-origin:50% 85%;animation:friendBounce 4.4s ease-in-out infinite;animation-delay:var(--friend-delay);animation-play-state:paused;filter:drop-shadow(0 3px 2px #6b608826)}.jFriend.active .friendArt{animation-play-state:running}.friendLabel{display:none;font-weight:800;font-size:9px;line-height:1.3;color:#9b5184;padding:3px 7px;background:#fff8e9;border:1px solid #f0cce1;border-radius:9px;white-space:nowrap}.jFriend.greeting .friendLabel{display:block}
.friend-train.active .toyWheel,.friend-car.active .toyWheel,.friend-firetruck.active .toyWheel{animation:toyWheelSpin 4s linear infinite;transform-box:view-box}.friend-train.active .toySmoke{animation:stationSteam 4s ease-out infinite}.friend-firetruck.active .toyLight{animation:journeyTwinkle 2s ease-in-out infinite}.friend-hero.active .friendArt,.friend-balloon.active .friendArt{animation-name:friendFly;animation-duration:7s}.friend-soldier.active .friendArt{animation-name:friendMarch;animation-duration:3.5s}.jFriend.greeting .friendArt{animation:greetingHop .7s ease-out!important;animation-play-state:running!important}
.friendBubble{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);width:115px;max-width:30vw;background:#fff9ed;border:2px solid #f3d1e4;border-radius:13px;padding:7px;font-size:10px;color:#96577f;box-shadow:0 3px 7px #8055751a;text-align:center;z-index:8;pointer-events:none}
.worldLife{position:absolute;inset:0;pointer-events:none}.magicButterfly{position:absolute;width:5px;height:15px;background:#745189;border-radius:50%;animation:butterflyDrift 10s ease-in-out infinite;animation-play-state:paused}.magicButterfly::before,.magicButterfly::after{content:'';position:absolute;top:0;width:13px;height:16px;border-radius:80% 30% 70% 30%;background:radial-gradient(at 70% 70%,#fff4b8,#ff8cd4 65%,#ca5cad);transform-origin:100% 50%;left:-11px;animation:butterflyWing .7s ease-in-out infinite alternate;animation-play-state:paused}.magicButterfly::after{left:3px;transform-origin:0 50%;border-radius:30% 80% 30% 70%;background:radial-gradient(at 30% 70%,#fff4b8,#ffc273 65%,#f58aab)}.worldLife .b1{left:39%;top:32%;animation-delay:-3s}.worldLife .b2{left:62%;top:67%;animation-delay:-6s;scale:.7}.worldLife .b3{left:43%;top:86%;animation-delay:-1s;scale:.8}.worldGlint{position:absolute;font-style:normal;color:#fff6b7;font-size:19px;line-height:1;animation:journeyTwinkle 3.8s ease-in-out infinite;animation-play-state:paused;text-shadow:0 1px 4px #dc979c66}.worldLife .g1{left:16%;top:42%;animation-delay:-1s}.worldLife .g2{left:79%;top:61%;animation-delay:-2s}.worldLife .g3{left:24%;top:76%;animation-delay:-3s}.worldLife .g4{left:83%;top:22%;animation-delay:-.5s}.worldPanel.inView .worldLife *,.worldPanel.inView .magicButterfly::before,.worldPanel.inView .magicButterfly::after{animation-play-state:running}.world-6 .magicButterfly{background:#fff;width:5px;height:5px;box-shadow:0 0 5px #fff}.world-6 .magicButterfly::before,.world-6 .magicButterfly::after{display:none}
.journeyDock{position:absolute;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));max-width:370px;margin:0 auto;z-index:8;display:flex;align-items:center;gap:9px;pointer-events:none}.journeyDock>button{pointer-events:auto}
.journeyDock #journeyLocate{width:52px;height:55px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fffaee;border:2px solid #fff;box-shadow:0 3px 0 #b7a5b9,0 4px 14px #6652792b;border-radius:17px;color:#9a709e}#journeyLocate svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round}#journeyLocate small{font-size:8px;color:#936d92;font-weight:900}#journeyLocate.away{background:#fff1cd;color:#b98642}
.journeyDock #journeyContinue{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:linear-gradient(#ff8bbd,#ee529e);border:2px solid #fff2d8;box-shadow:inset 0 1px 0 #ffbedb,0 4px 0 #b73c80,0 6px 19px #9c4d864d;color:#fffdf4;border-radius:19px;padding:10px 15px;text-align:left;min-height:62px}#journeyContinue>span{width:32px;height:32px;border-radius:50%;background:#fff2c8;border:1px solid #fff9e1;display:grid;place-items:center;font-size:14px;color:#df6b9f;flex:none;padding-left:2px}#journeyContinue>div{min-width:0}#journeyContinue b{font-family:var(--body);font-size:21px;font-weight:900;line-height:1.1;display:block}#journeyContinue small{display:block;font-size:9px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff4ed;font-weight:800}.journeyDock>button:active{transform:translateY(2px)}
@keyframes butterflyWing{to{transform:scaleX(.25)}}@keyframes butterflyDrift{0%,100%{transform:translate(0,0) rotate(-12deg)}35%{transform:translate(28px,-22px) rotate(10deg)}70%{transform:translate(-15px,-10px) rotate(-5deg)}}@keyframes friendBounce{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-4px) rotate(1deg)}}@keyframes friendFly{0%,100%{transform:translate(0,0) rotate(-3deg)}50%{transform:translate(5px,-10px) rotate(3deg)}}@keyframes friendMarch{0%,100%{transform:rotate(-2deg)}25%{transform:translateY(-3px) rotate(2deg)}75%{transform:translateY(-2px) rotate(-2deg)}}@keyframes greetingHop{0%,100%{transform:translateY(0)}30%{transform:translateY(-15px) rotate(-5deg)}65%{transform:translateY(-3px) rotate(3deg)}}@keyframes toyWheelSpin{to{transform:rotate(360deg)}}@keyframes stationSteam{0%{transform:translate(0,0) scale(.5);opacity:0}20%{opacity:.7}100%{transform:translate(-8px,-27px) scale(1.8);opacity:0}}@keyframes journeyTwinkle{0%,100%{opacity:.2;transform:scale(.6)}50%{opacity:1;transform:scale(1)}}@keyframes lockedNudge{25%,75%{margin-left:-3px}50%{margin-left:3px}}
.lockedNudge{animation:lockedNudge .4s!important}.stillWorld .friendArt,.stillWorld .toySvg *,.stillWorld .jFriend.greeting .friendArt,.stillWorld .worldLife *,.stillWorld .worldLife *::before,.stillWorld .worldLife *::after{animation:none!important}
@media(max-width:760px){.journeyTop{left:max(10px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top));width:calc(100% - 20px);max-width:420px;padding:7px 8px;gap:8px;border-radius:19px}.journeyTitle>b{font-size:17px}.journeyTitle>small{font-size:8px}.journeyRegion{top:calc(max(10px,env(safe-area-inset-top)) + 75px);left:50%;right:auto;transform:translateX(-50%);padding:7px 12px;gap:9px;border-radius:13px}.journeyRegion>span{font-size:12px}.journeyRegion>small{font-size:8px;padding-left:8px}.journeyStars{padding:6px;font-size:14px}.journeyStars>span{font-size:19px}}
@media(max-width:600px){#map .landmarkNode{width:138px;height:124px}.landmarkBadge{height:30px;min-width:35px;font-size:15px;border-radius:11px}#map .landmarkNode.cur .landmarkBadge{height:36px;min-width:43px;font-size:18px}#map .landmarkLabel{width:146px;padding:6px 8px;top:calc(100% + 11px)}#map .landmarkLabel small{font-size:10px}#map .playFlag{font-size:8px;top:calc(100% - 61px);padding:4px 8px}#map .mapKid img{width:35px;height:48px}.jFriend{width:58px}.friendBubble{font-size:9px;max-width:31vw;width:105px}.regionSign{padding:7px 11px 8px 8px;gap:7px;border-radius:14px}.regionSign b{font-size:13px}.regionNumber{width:25px;height:25px;font-size:14px}.regionSign small{font-size:5px;letter-spacing:.7px}.sceneDestination{top:140px}.sceneDestination h2{font-size:24px}.sceneDestination p{font-size:10px}.journeyDock{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));max-width:340px}.journeyDock #journeyContinue{min-height:59px;padding:10px 13px;border-radius:17px}#journeyContinue b{font-size:19px}#journeyContinue small{font-size:8px}.journeyDock #journeyLocate{height:52px;width:48px;border-radius:15px}.magicButterfly{scale:.7}}
@media(max-width:360px){.journeyTitle>b{font-size:15px}.journeyStars{display:none}#map .landmarkNode{width:128px}}
@media(max-height:500px) and (min-width:601px){.journeyTop{left:12px;top:10px;width:355px;padding:6px 8px;gap:8px}.journeyTitle>b{font-size:16px}.journeyTitle>small{font-size:8px}.journeyRegion{left:auto;right:12px;transform:none;top:18px;padding:8px 12px}.journeyRegion>span{font-size:12px}.journeyRegion>small{font-size:8px}.journeyDock{left:auto;right:14px;width:300px;bottom:12px;gap:8px}.journeyDock #journeyContinue{min-height:54px;padding:8px 12px}.journeyDock #journeyLocate{height:48px;width:48px}#journeyContinue b{font-size:18px}#journeyContinue small{font-size:8px}#map .landmarkNode{width:150px;height:130px}.sceneDestination{top:105px}}
@media(prefers-reduced-motion:reduce){#map *,#map *::before,#map *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.libraryHead{padding-top:3px}.libraryHead>span{display:block;font-size:9px;color:#b795a7;letter-spacing:2px;margin-bottom:8px}.libraryHead h2{font-size:31px;color:#82708b}.libraryHead p{font-size:12px;margin-top:8px}.skillFilters{display:flex;gap:7px;overflow:auto;max-width:100%;width:100%;flex-shrink:0;padding:4px 2px 7px;touch-action:pan-x;scrollbar-width:none}.skillFilters button{flex:none;font-size:11px;padding:8px 12px;border-radius:12px;background:#eeeedd;color:#8c967a;border:1px solid #fff}.skillFilters button.on{background:#f1dce5;color:#ad7d93;box-shadow:0 2px 0 #dab8c8}.expandedLibrary .tile{position:relative;flex-shrink:0;min-height:100px}.newGameBadge{font-style:normal;position:absolute;right:5px;top:4px;background:#f9deba;color:#b99b68;border-radius:7px;font-size:7px;letter-spacing:.5px;padding:2px 4px}.tiles.practice.expandedLibrary{max-height:52dvh;padding-top:7px}
@media(max-width:600px){.libraryHead h2{font-size:27px}.libraryHead p{font-size:11px}.expandedLibrary .tile{min-height:120px}}
