@font-face{font-family:FusionPixel;src:url(fusion-pixel.woff2) format('woff2');font-display:swap}.dialogue,.dialogue button,.treasure-scroll,.reward-banner,.chapter-card{font-family:FusionPixel,'Microsoft YaHei',sans-serif}.player{left:0!important;top:0!important;will-change:transform}.npc .figure{inset:auto;left:50%;bottom:14%;height:86%;width:auto;aspect-ratio:1;transform:translateX(-50%);background-size:auto 100%;image-rendering:pixelated;animation:npc-breath 3.4s steps(2,end) infinite}.dialogue[data-who="珊珊"]:before,.dialogue[data-who="小紫"]:before{width:100px;height:115px;left:-4px;top:-108px;border:0;box-shadow:none;background-color:transparent;background-size:105% auto;background-position:center 2%;border-radius:0;filter:drop-shadow(2px 2px 0 #6a4c3290)}.dialogue p{font-size:16px;line-height:1.65}.dialogue .choices button{font-size:14px;line-height:1.35}.reward-banner{position:fixed;z-index:80;left:auto;right:16px;top:16px;min-width:190px;max-width:min(330px,85vw);padding:12px 15px 12px 44px;white-space:normal;text-align:left;background:#f3e5bd;color:#59472d;border:3px solid #8b633d;border-radius:4px;box-shadow:0 4px 0 #4b392b88;pointer-events:none;animation:achievement 4.2s ease both}.reward-banner:before{content:'✦';position:absolute;left:12px;top:17px;color:#c99036;font-size:22px}.reward-banner small,.reward-banner strong{display:block}.reward-banner small{font-size:11px;color:#957449}.reward-banner strong{margin-top:3px;font-size:14px}.treasure-vignette{position:absolute;inset:0;z-index:5;pointer-events:none;background:radial-gradient(ellipse at center,transparent 35%,#201b1390 115%)}.player.celebrating{z-index:8}.player.celebrating .figure{background:url(shanshan-celebrate.svg) center bottom/contain no-repeat;animation:celebrate-bob 1.1s steps(2,end) infinite}.treasure-display{position:absolute;left:50%;top:-29%;width:80px;height:80px;transform:translate(-50%,-50%);z-index:9;pointer-events:none}.treasure-rays{position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,#ffdf7e99 0deg 12deg,transparent 12deg 30deg);mask-image:radial-gradient(circle,#000 10%,transparent 70%);animation:rays-spin 8s linear infinite}.treasure-book{position:absolute;left:50%;top:50%;width:32px;height:38px;transform:translate(-50%,-50%);background-size:contain;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 0 5px #ffde72)}.treasure-star{position:absolute;left:calc(50% + var(--x));top:calc(50% + var(--y));width:3px;height:3px;background:#fff1ae;box-shadow:0 0 5px #ffda65;animation:star-rise 1.7s ease-out infinite;animation-delay:var(--delay)}.treasure-scroll{position:absolute;z-index:12;bottom:3%;left:4%;right:4%;display:flex;align-items:center;gap:11px;padding:11px 14px;background:#f5e6bf;border:4px solid #825d3b;box-shadow:inset 0 0 0 2px #dcc494,0 4px 0 #4f3c2b88;color:#58452e;animation:scroll-up .35s ease-out}.treasure-scroll-icon,.bag-book{display:block;flex:none;width:40px;height:44px;background-size:contain;background-repeat:no-repeat;background-position:center;image-rendering:pixelated}.treasure-scroll-icon{border:2px solid #bd9650;background-color:#dfc992}.treasure-scroll strong,.treasure-scroll small{display:block;line-height:1.5}.treasure-scroll strong{font-size:15px}.treasure-scroll small{font-size:12px;color:#887258;margin-top:3px}.treasure-scroll button{margin-left:auto;align-self:end;background:none;border:0;color:#86633e;font-size:17px;cursor:pointer}.treasure-flight{position:fixed;z-index:100;width:32px;height:38px;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 0 7px #ffdc72);animation:treasure-flight .65s ease-in forwards;pointer-events:none}.bag-book{width:32px;height:37px}.dialogue .next{font-family:FusionPixel,sans-serif}@keyframes npc-breath{0%,100%{transform:translateX(-50%)}50%{transform:translate(-50%,-1px)}}@keyframes celebrate-bob{0%,100%{transform:translateX(-50%)}50%{transform:translate(-50%,-3px)}}@keyframes rays-spin{from{transform:rotate(0) scale(.93)}50%{transform:rotate(180deg) scale(1.08)}to{transform:rotate(360deg) scale(.93)}}@keyframes star-rise{0%{transform:translate(0,5px) scale(.4);opacity:0}30%{opacity:1}100%{transform:translate(var(--drift),-35px) scale(.8);opacity:0}}@keyframes scroll-up{from{transform:translateY(22px);opacity:0}}@keyframes treasure-flight{to{transform:translate(var(--fly-x),var(--fly-y)) scale(.25);opacity:0}}@keyframes achievement{0%{transform:translateX(120%);opacity:0}12%,78%{transform:translateX(0);opacity:1}100%{transform:translateX(120%);opacity:0}}@media(max-width:760px){.dialogue[data-who="珊珊"]:before,.dialogue[data-who="小紫"]:before{width:76px;height:87px;top:-82px}.dialogue p{font-size:14px}.treasure-scroll{padding:7px;gap:7px}.treasure-scroll-icon{width:30px;height:35px}.treasure-scroll strong{font-size:12px}.treasure-scroll small{font-size:10px}.treasure-display{width:65px;height:65px}.treasure-book{width:25px;height:30px}}@media(prefers-reduced-motion:reduce){.treasure-rays,.treasure-star,.player.celebrating .figure{animation:none}}
.treasure-vignette{background:radial-gradient(ellipse at var(--focus-x,50%) var(--focus-y,50%),transparent 17%,#201b1390 110%)}.world.treasure-active .hotspot{visibility:hidden}
.player .figure{background-image:var(--walk-sheet,url(shanshan-walk-live.png))}
.scenery-image{background-image:url(window-mountain.webp)}
.world:not(.cafe) .backdrop{background-image:url(library-v6.png?v=6)}.world.searching-shelf:before{background-image:url(library-v6.png?v=6)}.pieces span:nth-child(3){display:block}.pieces span.collected{background:#d8b67b}.teacart{position:absolute;left:25.2%;top:69.0%;transform:translate(-50%,-100%);width:11.2%;height:23.5%;border:0;background:url(tea-cart.png) center bottom/contain no-repeat;z-index:72;image-rendering:pixelated;cursor:pointer;filter:drop-shadow(0 0 6px #ffe8a855);transition:transform .2s,filter .2s}.teacart:hover{transform:translate(-50%,-101%) scale(1.02);filter:drop-shadow(0 0 10px #ffe8a8aa)}.teacart.done{filter:none}.teacart:focus-visible{outline:2px solid #f7db83}.player.tidying .figure{background:url(shanshan-bend.svg) center bottom/contain no-repeat;animation:tidy-bob .4s steps(2,end) 3}.scenery-image{background-image:url(window-mountain.webp)}@keyframes tidy-bob{50%{transform:translate(-50%,-2px)}}
.world .hotspot.decoration-point{width:11%;height:16%;min-width:34px;min-height:34px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;animation:none}.world .hotspot.decoration-point:after{content:"";display:none;position:absolute;right:15%;top:0;width:18px;height:18px;background:#fbf5df;border:1px solid #a58d63;border-radius:4px}.world .hotspot.decoration-point.near:after{display:block;content:"⌕";color:#7b7054;font-size:14px;line-height:16px;text-align:center}.player.tidying:not(.walking):not(.searching):not(.holding) .figure{background:url(shanshan-bend.svg) center bottom/contain no-repeat;animation:tidy-bob .4s steps(2,end) 3}.player.celebrating:not(.walking):not(.searching):not(.holding) .figure{background:url(shanshan-celebrate.svg) center bottom/contain no-repeat;animation:celebrate-bob 1.1s steps(2,end) infinite}
.npc .figure{background-image:var(--npc-sheet,url(xiaozi-stand-live.png));background-size:100% 100%;image-rendering:pixelated}
.footprints{position:absolute;inset:0;z-index:42;pointer-events:none}.footstep{position:absolute;width:24px;height:15px;opacity:.95;animation:footstep-pulse 1.2s ease-in-out infinite alternate}.footstep:before,.footstep:after{content:'';position:absolute;width:10px;height:6px;background:#fff099;border:1.5px solid #5a3821;box-shadow:0 0 7px 2px rgba(255,220,108,.85);border-radius:46%}.footstep:before{left:1px;top:0}.footstep:after{right:1px;bottom:0}.guide-marker{position:absolute;width:24px;height:24px;background:radial-gradient(circle,#fff9c4 15%,#ffd86b 65%,rgba(255,216,107,0) 75%);border:2px solid #5a3821;border-radius:50%;box-shadow:0 0 18px 6px rgba(255,223,115,.95);transform:translate(-50%,-50%);animation:guide-glow .9s ease-in-out infinite alternate}.guide-marker:before{content:'';position:absolute;inset:-9px;border:2px solid #ffe488;border-radius:50%;opacity:.85;animation:guide-ring 1.3s ease-out infinite}.guide-marker:after{content:'▼';position:absolute;left:50%;top:-24px;transform:translateX(-50%);color:#ffe996;font-size:16px;text-shadow:0 1px 0 #5a3821,0 -1px 0 #5a3821,1px 0 0 #5a3821,-1px 0 0 #5a3821,0 0 8px #ffd864;animation:marker-bob .8s ease-in-out infinite alternate}@keyframes footstep-pulse{from{opacity:.55;filter:brightness(.95)}to{opacity:1;filter:brightness(1.18) drop-shadow(0 0 4px #ffe485)}}@keyframes guide-glow{from{transform:translate(-50%,-50%) scale(.9)}to{transform:translate(-50%,-50%) scale(1.15);box-shadow:0 0 24px 9px #ffdf7b}}@keyframes guide-ring{from{transform:scale(.7);opacity:.9}to{transform:scale(1.6);opacity:0}}@keyframes marker-bob{from{transform:translate(-50%,0)}to{transform:translate(-50%,-6px)}}
.player.tidying,.player.sitting-down,.player.standing-up{z-index:76}.player.seated.at-sofa{z-index:65}.player.seated.at-desk{z-index:76}.npc{z-index:70}.tidy-smoke{position:absolute;left:31%;top:60%;width:12%;height:9%;z-index:7;pointer-events:none}.tidy-smoke i{position:absolute;left:50%;top:50%;width:11px;height:11px;background:#f9e5be;border:2px solid #dbc6a3;box-shadow:2px 2px #a68b6d;animation:puff 1.15s ease-out both}.tidy-smoke i:nth-child(2){--x:-25px;--y:-18px;animation-delay:.1s}.tidy-smoke i:nth-child(3){--x:23px;--y:-25px;animation-delay:.18s}.tidy-smoke i:nth-child(4){--x:-32px;--y:3px;animation-delay:.25s}.tidy-smoke i:nth-child(5){--x:30px;--y:4px;animation-delay:.3s}.tidy-smoke i:nth-child(6){--x:4px;--y:-34px;animation-delay:.35s}@keyframes puff{0%{opacity:0;transform:scale(.2)}25%{opacity:.9}100%{opacity:0;transform:translate(var(--x,0),var(--y,-18px)) scale(1.3)}}
.world .hotspot.seat-point,.world .hotspot.tea-point{width:8%;height:10%;min-width:30px;min-height:30px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;animation:none}.world .hotspot.tea-point{width:8%;height:9%}.world .hotspot.seat-point:after,.world .hotspot.tea-point:after{display:none}.world .hotspot.seat-point.near:after,.world .hotspot.tea-point.near:after{display:block;content:'✦';position:absolute;top:0;right:0;color:#ffeaa8;text-shadow:0 1px #754e31;font-size:14px}
.player.sitting-down:not(.walking):not(.searching):not(.holding) .figure,.player.standing-up:not(.walking):not(.searching):not(.holding) .figure{background-position-x:0;background-position-y:0;animation:none}.player.seated:not(.walking):not(.searching):not(.holding) .figure{inset:auto;left:50%;bottom:0%;height:86.7%;width:auto;transform:translateX(-50%);animation:none;image-rendering:pixelated}.player.seated.at-sofa:not(.walking):not(.searching):not(.holding) .figure{height:86.7%;aspect-ratio:151/260;background:url(shanshan-sofa.png) center bottom/contain no-repeat}.player.seated.at-desk:not(.walking):not(.searching):not(.holding) .figure{height:92%;aspect-ratio:209/260;background:url(shanshan-desk.png) center bottom/contain no-repeat;filter:brightness(1.06)}.player.seated.at-desk .figure:after{content:'';position:absolute;left:28%;top:28%;width:44%;height:28%;border-radius:50%;background:radial-gradient(circle,rgba(232,250,255,.32),transparent 72%);pointer-events:none;mix-blend-mode:screen}.sit-btn{position:absolute;z-index:90;transform:translate(-50%,-100%);padding:5px 10px;border:2px solid #a68153;background:#f5e8c9;color:#6b5137;font-family:FusionPixel,sans-serif;cursor:pointer;box-shadow:0 2px 0 #7a5836}.sit-btn[hidden]{display:none}.chair-floor-patch{position:absolute;left:73.04%;top:56.05%;width:7.12%;height:8.47%;z-index:2;pointer-events:none;background:url(chair-floor-patch.png?v=6) 0 0/100% 100% no-repeat}.desk-chair{position:absolute;left:73.04%;top:56.05%;width:7.12%;height:8.47%;z-index:75;pointer-events:none;background:url(desk-chair.png?v=6) 0 0/100% 100% no-repeat;image-rendering:pixelated;transition:transform .34s ease}.desk-chair.pulled{transform:translateY(-16%)}.desk-front{position:absolute;left:70.35%;top:56.05%;width:29.65%;height:33.74%;z-index:78;pointer-events:none;background:url(desk-front.png?v=6) 0 0/100% 100% no-repeat;image-rendering:pixelated}.laptop-tyndall{position:absolute;left:70.0%;top:51.0%;width:15.0%;height:22.0%;z-index:77;pointer-events:none;opacity:0;background:radial-gradient(ellipse 46% 62% at 45% 86%,rgba(226,250,255,.38) 0%,rgba(210,243,255,.18) 42%,rgba(200,238,255,0) 72%);transition:opacity .45s ease}.computer-on .laptop-tyndall{opacity:1}
.scenic-overlay{padding:0!important;display:grid!important;place-items:center!important;background:#1e2d24!important}.scenic{width:min(100vw,177.7778dvh)!important;height:min(100dvh,56.25vw)!important;position:relative;overflow:hidden;background:#355546}.scenic .scenery-image{background-size:100% 100%!important}.scenic-mist{position:absolute;inset:0;z-index:3;pointer-events:none;background:url(window-mist-veil.png) 0 0/100% 100% no-repeat;transition:opacity 1.15s ease .18s}.scenic.window-opened .scenic-mist{opacity:0}.scenic-shutters{position:absolute;left:19.318%;top:1.7%;width:61.364%;height:83.316%;z-index:4;pointer-events:none;perspective:1100px;transform-style:preserve-3d}.scenic-shutter{position:absolute;top:0;bottom:0;width:50%;background-color:transparent;border:0;box-shadow:none;background-size:100% 100%;background-repeat:no-repeat;transition:transform 1.3s cubic-bezier(.22,.85,.32,1),opacity .45s ease .9s,filter 1.2s ease}.scenic-shutter.left{left:0;transform-origin:left center;background-image:url(window-sash-left.png)}.scenic-shutter.right{right:0;transform-origin:right center;background-image:url(window-sash-right.png)}.scenic.window-opened .scenic-shutter.left{transform:rotateY(78deg) scale(.94);opacity:0;filter:brightness(1.1)}.scenic.window-opened .scenic-shutter.right{transform:rotateY(-78deg) scale(.94);opacity:0;filter:brightness(1.1)}.scenic-sunwash{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;background:radial-gradient(ellipse 56% 52% at 50% 44%,rgba(255,252,226,.94) 0%,rgba(255,235,160,.48) 38%,rgba(255,222,135,0) 76%)}.scenic.window-opened .scenic-sunwash{animation:scenic-sun-bloom 2.6s ease-out forwards}.scenic-rays{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;background:linear-gradient(122deg,transparent 24%,rgba(255,244,196,.34) 34%,rgba(255,238,176,.09) 46%,transparent 54%),linear-gradient(132deg,transparent 46%,rgba(255,246,204,.30) 54%,rgba(255,234,166,.07) 66%,transparent 74%);mix-blend-mode:screen;transition:opacity 1.4s ease .2s}.scenic.window-opened .scenic-rays{opacity:1;animation:rays-breathe 5s ease-in-out infinite alternate}.scenic-sparkles{position:absolute;left:18%;right:18%;top:8%;bottom:16%;z-index:5;pointer-events:none;opacity:0;transition:opacity 1s ease .35s}.scenic.window-opened .scenic-sparkles{opacity:1}.scenic-sparkles i{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff8cf;box-shadow:0 0 10px 3px #ffe07c;animation:scenic-dust 4s ease-in-out infinite}.scenic .petals,.scenic .bird{opacity:0;transition:opacity 1s ease .45s}.scenic.window-opened .petals,.scenic.window-opened .bird{opacity:1}.scenic:not(.window-opened) .scenery-image{filter:brightness(.82)}.scenic .scenery-image{transition:filter 1.2s ease}.scenic:not(.window-opened) .scenic-caption{opacity:0;transform:translateY(8px)}.scenic .scenic-caption{transition:opacity .8s ease .55s,transform .8s ease .55s}@keyframes scenic-sun-bloom{0%{opacity:0;transform:scale(.35)}25%{opacity:1;transform:scale(.95)}100%{opacity:.14;transform:scale(1.22)}}@keyframes rays-breathe{from{opacity:.55}to{opacity:.92}}@keyframes scenic-dust{0%,100%{transform:translate(0,0) scale(.6);opacity:.25}45%{transform:translate(18px,-22px) scale(1.15);opacity:.95}}
.ach-list{display:grid;gap:10px;margin:14px 0;text-align:left}.ach-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:8px;background:#f0e8d2;border:2px solid #d5bc85}.ach-item.locked{opacity:.68;border-style:dashed;background:#efe8d6}.ach-badge{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#e4ca89;border:2px solid #9f793f;color:#825317;font-size:19px;box-shadow:inset 0 1px 0 #fff4cf}.ach-item.locked .ach-badge{background:#ded7c3;border-color:#b2a88e;color:#8d846e;box-shadow:none}.ach-item strong{display:block;font-size:14px;color:#58452e}.ach-item small{display:block;margin-top:3px;font-size:12px;color:#857054;line-height:1.45}.ach-empty{padding:14px;border-radius:8px;background:#f0e8d2;color:#857054;font-size:13px}
.world:not(.cafe) .cafe-food,.world:not(.cafe) .cafe-table-front,.world:not(.cafe) .cafe-counter-front,.world:not(.cafe) .cafe-right-table-front,.world:not(.cafe) .cafe-laptop,.world:not(.cafe) .cafe-clerk,.world:not(.cafe) .cafe-cust1,.world:not(.cafe) .cafe-cust2,.world:not(.cafe) .cafe-cust3,.world:not(.cafe) .cafe-cust4,.world:not(.cafe) .cafe-cust5,.world:not(.cafe) .cafe-cust6,.world:not(.cafe) .cafe-cust7,.world:not(.cafe) .cafe-cust8,.world:not(.cafe) .cafe-cust9,.world:not(.cafe) .cafe-table-a-back,.world:not(.cafe) .cafe-table-a-top,.world:not(.cafe) .cafe-table-b-back,.world:not(.cafe) .cafe-table-b-top,.world:not(.cafe) .cafe-table-c-back,.world:not(.cafe) .cafe-table-c-top,.world:not(.cafe) .cafe-steam,.world:not(.cafe) .cafe-door-glow,.world:not(.cafe) .camera-flash{display:none!important}
.world.cafe .chair-floor-patch,.world.cafe .desk-chair,.world.cafe .desk-front,.world.cafe .laptop-tyndall,.world.cafe .teacart{display:none!important}
.world.cafe .hotspot.cafe-spot{width:10%;height:16%;min-width:34px;min-height:34px;padding:0;border:0;border-radius:6px;z-index:72;cursor:pointer;background:transparent!important;box-shadow:none!important;color:transparent!important;font-size:0!important;animation:none!important;outline:none!important}
.world.cafe .hotspot.cafe-booth{width:22%;height:34%}
.world.cafe .hotspot.cafe-counter{width:13%;height:22%}
.world.cafe .hotspot.cafe-clerk-spot{width:9%;height:21%}
.world.cafe .hotspot.cafe-espresso{width:11%;height:18%}
.world.cafe .hotspot.cafe-pennant{width:10%;height:22%}
.world.cafe .hotspot.cafe-window{width:24%;height:26%}
.world.cafe .hotspot.cafe-door{width:13%;height:34%}
.world.cafe .hotspot.cafe-cust-spot{width:10%;height:21%;z-index:84}
.world.cafe .hotspot.cafe-table-spot{width:14%;height:18%;z-index:82}
.world.cafe .hotspot.cafe-spot:after{content:'';opacity:0;position:absolute;left:50%;top:0;width:22px;height:22px;border-radius:5px;background:#fff6de;border:2px solid #5a3821;box-shadow:0 2px 0 rgba(90,56,33,.45),0 0 8px rgba(255,232,158,.75);color:#5a3821;font-size:13px;line-height:18px;text-align:center;transform:translate(-50%,-40%) scale(.75);transition:opacity .18s ease,transform .18s ease;pointer-events:none}
.world.cafe .hotspot.cafe-spot.near:after{opacity:1;content:'⌕';transform:translate(-50%,-100%) scale(1);animation:cafe-badge-bob .9s ease-in-out infinite alternate}
.world.cafe .hotspot.cafe-spot.bubble.near:after{content:'💬';font-size:11px;line-height:18px}
.world.cafe.cafe-seated .hotspot.cafe-spot:after{display:none!important}
.world.cafe .hotspot.cafe-espresso.shaking{animation:espresso-shake .12s steps(2,end) 5}
.world.cafe #npc:not(.seated-cafe) em{display:block;left:50%;right:auto;top:-18%;transform:translateX(-50%)}
.world.cafe #npc.seated-cafe em{display:none}
.world.cafe #npc{transition:transform .25s ease}
.world.cafe #npc.running{transition:none!important}
.world.cafe #npc.running .figure{inset:auto!important;left:50%!important;bottom:14%!important;height:86%!important;width:auto!important;aspect-ratio:1!important;transform:translateX(-50%)!important;background-image:url(xiaozi-walk.png)!important;background-size:400% 400%!important;background-position-y:var(--npc-row,33.3333%)!important;background-repeat:no-repeat!important;image-rendering:pixelated;animation:sprite-walk .6s steps(4,end) infinite!important}
.world.cafe #npc.seated-cafe{height:27.8%;z-index:68}
.world.cafe #npc.seated-cafe .figure{inset:auto!important;left:50%!important;bottom:14%!important;height:86%!important;width:auto!important;aspect-ratio:1!important;transform:translateX(-50%)!important;background:url(xiaozi-cafe-sit.png) center bottom/100% 100% no-repeat!important;image-rendering:pixelated;animation:sit-idle 4s ease-in-out infinite!important}
.world.cafe .player.seated.at-cafe-booth{height:27.8%;z-index:88}
.world.cafe .player.seated.at-cafe-booth:not(.walking):not(.searching):not(.holding) .figure{inset:auto!important;left:50%!important;bottom:0!important;height:65%!important;width:53%!important;transform:translateX(-50%)!important;background:url(shanshan-cafe-seat-live.webp) center bottom/100% 100% no-repeat!important;image-rendering:pixelated;animation:sit-idle 4.2s ease-in-out infinite!important}
.cafe-clerk{left:49.0%;top:35.2%;height:24.8%;z-index:44;pointer-events:none}
.cafe-clerk .figure{inset:auto!important;left:50%!important;bottom:0!important;height:100%!important;width:auto!important;aspect-ratio:1!important;transform:translateX(-50%)!important;background-image:url(cafe-clerk.png?v=1c8)!important;background-size:200% 100%!important;background-repeat:no-repeat!important;background-position:0% 0%;image-rendering:pixelated;animation:npc-sprite-2f 1.3s steps(2,end) infinite!important}
.cafe-counter-front{position:absolute;left:43%;top:29.3%;width:15%;height:15.2%;z-index:45;pointer-events:none;background:url(cafe-counter-front.png) 0 0/100% 100% no-repeat;image-rendering:pixelated}
.cafe-table-front{position:absolute;left:8.8%;top:41.5%;width:11.7%;height:17.5%;z-index:65;pointer-events:none;background:url(cafe-table-front.png) 0 0/100% 100% no-repeat;image-rendering:pixelated}
.cafe-right-table-front{position:absolute;left:80.5%;top:41.5%;width:12.5%;height:21%;z-index:68;pointer-events:none;background:url(cafe-right-table-front.png) 0 0/100% 100% no-repeat;image-rendering:pixelated}
.cafe-laptop{position:absolute;left:82.3%;top:47.4%;width:3.8%;aspect-ratio:48/36;z-index:69;pointer-events:none;background:url(cafe-laptop.png) center/contain no-repeat;image-rendering:pixelated}
.cafe-cust1,.cafe-cust2,.cafe-cust4,.cafe-cust5,.cafe-cust6,.cafe-cust7,.cafe-cust8,.cafe-cust9{height:26.2%;pointer-events:none}
.cafe-cust1 .figure,.cafe-cust2 .figure,.cafe-cust4 .figure,.cafe-cust5 .figure,.cafe-cust6 .figure,.cafe-cust7 .figure,.cafe-cust8 .figure,.cafe-cust9 .figure{inset:auto!important;left:50%!important;bottom:0!important;height:100%!important;width:auto!important;aspect-ratio:1!important;transform:translateX(-50%)!important;background-size:200% 100%!important;background-position:0% 0%;background-repeat:no-repeat!important;image-rendering:pixelated;animation:npc-sprite-2f 1.7s steps(2,end) infinite!important}
.cafe-cust1{left:80.3%;top:59.6%;height:26.2%;z-index:64}
.cafe-cust1 .figure{background-image:url(cafe-cust1-sit.png?v=1c8)!important;animation-duration:1.4s!important;animation-delay:-0.3s!important}
.cafe-cust7{left:90.6%;top:70.2%;height:26.0%;z-index:72}
.cafe-cust7 .figure{background-image:url(cafe-cust7-sit.png?v=1c8)!important;animation-duration:2.1s!important;animation-delay:-0.9s!important}
.cafe-table-c-back,.cafe-table-c-top{position:absolute;left:37%;top:58%;width:17.5%;aspect-ratio:340/279;transform:translate(-50%,-50%);pointer-events:none;background-size:100% 100%;background-repeat:no-repeat;image-rendering:pixelated}
.cafe-table-c-back{z-index:56;background-image:url(cafe-table-c-back.png)}
.cafe-table-c-top{z-index:73;background-image:url(cafe-table-c-top.png)}
.cafe-cust8{left:30.6%;top:68.4%;height:25.2%;z-index:60}
.cafe-cust8 .figure{background-image:url(cafe-cust8-sit.png?v=1c8)!important;animation-duration:1.9s!important;animation-delay:-0.6s!important}
.cafe-cust9{left:43.4%;top:68.4%;height:25.2%;z-index:60}
.cafe-cust9 .figure{background-image:url(cafe-cust9-sit.png?v=1c8)!important;animation-duration:1.75s!important;animation-delay:-1.2s!important}
.cafe-table-a-back,.cafe-table-a-top{position:absolute;left:26.8%;top:84.2%;width:19.5%;aspect-ratio:340/279;transform:translate(-50%,-50%);pointer-events:none;background-size:100% 100%;background-repeat:no-repeat;image-rendering:pixelated}
.cafe-table-a-back{z-index:78;background-image:url(cafe-table-a-back.png)}
.cafe-table-a-top{z-index:94;background-image:url(cafe-table-a-top.png)}
.cafe-cust2{left:19.3%;top:94.8%;height:26.4%;z-index:82}
.cafe-cust2 .figure{background-image:url(cafe-cust2-sit.png?v=1c8)!important;animation-duration:1.85s!important;animation-delay:-0.4s!important}
.cafe-cust4{left:34.2%;top:94.8%;height:26.4%;z-index:82}
.cafe-cust4 .figure{background-image:url(cafe-cust4-sit.png?v=1c8)!important;animation-duration:1.55s!important;animation-delay:-1.0s!important}
.cafe-table-b-back,.cafe-table-b-top{position:absolute;left:71%;top:84.2%;width:19.5%;aspect-ratio:340/279;transform:translate(-50%,-50%);pointer-events:none;background-size:100% 100%;background-repeat:no-repeat;image-rendering:pixelated}
.cafe-table-b-back{z-index:78;background-image:url(cafe-table-b-back.png)}
.cafe-table-b-top{z-index:94;background-image:url(cafe-table-b-top.png)}
.cafe-cust5{left:63.6%;top:94.8%;height:26.4%;z-index:82}
.cafe-cust5 .figure{background-image:url(cafe-cust5-sit.png?v=1c8)!important;animation-duration:1.6s!important;animation-delay:-0.2s!important}
.cafe-cust6{left:78.4%;top:94.8%;height:26.4%;z-index:82}
.cafe-cust6 .figure{background-image:url(cafe-cust6-sit.png?v=1c8)!important;animation-duration:2.0s!important;animation-delay:-0.8s!important}
.cafe-cust3{left:56.5%;top:53.5%;height:25.2%;z-index:54;pointer-events:none}
.cafe-cust3 .figure{inset:auto!important;left:50%!important;bottom:0!important;height:100%!important;width:auto!important;aspect-ratio:1!important;transform:translateX(-50%)!important;background-image:url(cafe-cust3.png?v=1c8)!important;background-size:200% 100%!important;background-repeat:no-repeat!important;background-position:0% 0%;image-rendering:pixelated;animation:npc-sprite-2f 1.5s steps(2,end) infinite!important}
.cafe-cust3 em{position:absolute;right:12%;top:4%;z-index:56;padding:1px 6px;border-radius:7px;background:#fffdf0;border:2px solid #8c6845;color:#6d5137;font-style:normal;font-size:11px;font-weight:700;box-shadow:0 2px 0 rgba(90,56,33,.3);animation:cust3-think 4.5s ease-in-out infinite;pointer-events:none}
@keyframes npc-sprite-2f{0%{background-position:0% 0%}100%{background-position:200% 0%}}
@keyframes sit-idle{0%,100%{transform:translateX(-50%) translateY(0) rotate(0deg)}25%{transform:translateX(-50%) translateY(-1px) rotate(0deg)}50%{transform:translateX(-50%) translateY(0) rotate(0deg)}75%{transform:translateX(-50%) translateY(-1px) rotate(1.2deg)}85%{transform:translateX(-50%) translateY(0) rotate(0deg)}}
@keyframes clerk-wipe{0%{background-position:0 0}50%{background-position:100% 0}}
@keyframes cust3-think{0%,100%{opacity:.45;transform:translateY(1px)}40%,75%{opacity:1;transform:translateY(-3px)}}
.cafe-food{position:absolute;left:14.5%;top:52.2%;width:8.2%;aspect-ratio:256/176;transform:translate(-50%,-50%);z-index:66;pointer-events:none;background-position:center;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 3px 2px rgba(48,28,14,.35));opacity:0;transition:opacity .35s ease,transform .35s ease}
.cafe-food.visible{opacity:1}
.cafe-food.set-a{background-image:url(cafe-food-a.png)}
.cafe-food.set-b{background-image:url(cafe-food-b.png)}
.cafe-steam{position:absolute;left:38.5%;top:18.5%;width:7%;height:12%;transform:translate(-50%,-50%);z-index:55;pointer-events:none}
.cafe-steam i{position:absolute;left:36%;bottom:15%;width:10px;height:10px;border-radius:3px;background:#fffaf0;border:2px solid #8a6c4e;opacity:0}
.cafe-steam i:nth-child(2){left:50%;width:12px;height:12px}
.cafe-steam i:nth-child(3){left:64%;width:9px;height:9px}
.cafe-steam.active i{animation:steam-rise 1.25s ease-out forwards}
.cafe-steam.active i:nth-child(2){animation-delay:.18s}
.cafe-steam.active i:nth-child(3){animation-delay:.36s}
.cafe-door-glow{position:absolute;left:71.3%;top:4.2%;width:9.7%;height:30.8%;z-index:52;pointer-events:none;opacity:0;border-radius:3px;box-shadow:inset 0 0 18px 4px rgba(255,223,115,.72),0 0 22px 6px rgba(255,216,102,.52);transition:opacity .6s ease}
.cafe-door-glow.active{opacity:1;animation:door-gold-pulse 1.6s ease-in-out infinite alternate}
.cafe-door-glow i{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff7bd;box-shadow:0 0 8px 2px #ffdf6d;opacity:0}
.cafe-door-glow.active i{animation:door-sparkle 2.2s ease-in-out infinite}
.cafe-door-glow i:nth-child(1){left:14%;top:72%;animation-delay:0s}
.cafe-door-glow i:nth-child(2){left:82%;top:64%;animation-delay:.4s}
.cafe-door-glow i:nth-child(3){left:28%;top:35%;animation-delay:.8s}
.cafe-door-glow i:nth-child(4){left:74%;top:28%;animation-delay:1.1s}
.cafe-door-glow i:nth-child(5){left:48%;top:82%;animation-delay:1.5s}
.cafe-door-glow i:nth-child(6){left:52%;top:18%;animation-delay:1.8s}
.camera-flash{position:absolute;inset:0;z-index:96;pointer-events:none;background:#fffef8;opacity:0}
.camera-flash.flashing{animation:cam-flash .4s ease-out forwards}
.cafe-quest{position:relative;margin:10px auto 0;width:fit-content;max-width:calc(100% - 24px);padding:8px 18px;border:3px solid #8c6845;border-radius:6px;background:#fff4d9f2;box-shadow:inset 0 0 0 2px #e3cca4,0 3px 0 #5a422c66;color:#5c452d;font-size:13px;font-weight:700;letter-spacing:.03em;text-align:center}
.cafe-quest[hidden]{display:none}
.cafe-quest:before{content:'✦ ';color:#c9892b}
.scenic.cafe-maple-view{background:#4b3528}
.scenic.cafe-maple-view .scenery-image{background-image:url(cafe-window-maple.png?v=1)!important}
.scenic.cafe-maple-view .petals i{color:#ffe082;text-shadow:0 0 6px rgba(255,180,82,.85)}
.scenic.campus-view{background:#304731}
.scenic.campus-view .scenery-image{background-image:url(window-view.png)!important;background-size:102% 102%!important;background-position:center;animation:campus-sway 9s ease-in-out infinite alternate}
.scenic.campus-view .scenic-rays{opacity:.9;animation:rays-breathe 4.6s ease-in-out infinite alternate}
.scenic.campus-view .petals i{color:#ffe082;text-shadow:0 0 6px rgba(255,212,96,.85);opacity:1}
.scenic.campus-view .scenic-caption{opacity:1;transform:none}
.route-choice-card{max-width:460px;background:#fff4d9;border:4px solid #8c6845;box-shadow:inset 0 0 0 3px #e3ca9e,0 10px 28px rgba(45,29,16,.45)}
.route-choice-card h2{color:#5a3e28;margin:6px 0 8px}
.route-choice-card p{color:#6f553d;font-size:13px;line-height:1.7;margin:0 0 14px}
.route-buttons{display:grid;gap:10px;margin-bottom:12px}
.route-btn{display:grid;gap:4px;text-align:left;padding:12px 14px;border:3px solid #8c6845;border-radius:6px;background:#f7e9c6;color:#553a24;box-shadow:0 3px 0 #7a5838;transition:transform .12s ease,background .15s ease}
.route-btn:hover{transform:translateY(-2px);background:#fff3d2}
.route-btn strong{font-size:14px}
.route-btn small{font-size:12px;color:#7e6248}
.route-btn.sea{background:#ebf4ef;border-color:#5a7d6d;color:#2f4e43;box-shadow:0 3px 0 #426153}
.route-btn.sea:hover{background:#f3faf6}
.chapter-preview-card{max-width:500px;background:#fff6e2;border:4px solid #8c6845;box-shadow:inset 0 0 0 3px #e4cca1,0 10px 30px rgba(32,24,16,.5)}
.chapter-preview-art{width:100%;aspect-ratio:16/9;border:3px solid #8c6845;border-radius:6px;margin:10px 0 12px;background-size:cover;background-position:center;image-rendering:pixelated}
.chapter-preview-art.mountain{background-image:url(window-mountain.webp)}
.chapter-preview-art.beach{background-image:url(beach.png)}
@keyframes cafe-badge-bob{from{transform:translate(-50%,-100%)}to{transform:translate(-50%,calc(-100% - 4px))}}
@keyframes espresso-shake{0%{transform:translate(-50%,-50%)}25%{transform:translate(calc(-50% - 2px),calc(-50% + 1px))}50%{transform:translate(calc(-50% + 2px),calc(-50% - 1px))}75%{transform:translate(calc(-50% - 1px),-50%)}100%{transform:translate(-50%,-50%)}}
@keyframes npc-run{from{transform:translateY(0) rotate(-3deg)}to{transform:translateY(-4px) rotate(3deg)}}
@keyframes steam-rise{0%{opacity:0;transform:translateY(6px) scale(.6)}25%{opacity:.92}100%{opacity:0;transform:translateY(-36px) translateX(6px) scale(1.35)}}
@keyframes door-gold-pulse{from{box-shadow:inset 0 0 14px 3px rgba(255,223,115,.55),0 0 16px 4px rgba(255,216,102,.38)}to{box-shadow:inset 0 0 24px 6px rgba(255,232,140,.88),0 0 28px 9px rgba(255,220,108,.7)}}
@keyframes door-sparkle{0%,100%{opacity:0;transform:translateY(4px) scale(.6)}45%{opacity:1;transform:translateY(-10px) scale(1.15)}}
@keyframes cam-flash{0%{opacity:.85}100%{opacity:0}}
@keyframes campus-sway{0%{transform:scale(1.01) translateX(0)}100%{transform:scale(1.03) translateX(-1%)}}

.dialogue,
.dialogue button,
.treasure-scroll,
.reward-banner,
.chapter-card {
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif
}

.player {
    left: 0 !important;
    top: 0 !important;
    will-change: transform
}

.npc .figure {
    inset: auto;
    left: 50%;
    bottom: 14%;
    height: 86%;
    width: auto;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background-size: auto 100%;
    image-rendering: pixelated;
    animation: npc-breath 3.4s steps(2, end) infinite
}

.dialogue[data-who="珊珊"]:before,
.dialogue[data-who="小紫"]:before {
    width: 100px;
    height: 115px;
    left: -4px;
    top: -108px;
    border: 0;
    box-shadow: none;
    background-color: transparent;
    background-size: 105% auto;
    background-position: center 2%;
    border-radius: 0;
    filter: drop-shadow(2px 2px 0 #6a4c3290)
}

.dialogue p {
    font-size: 16px;
    line-height: 1.65
}

.dialogue .choices button {
    font-size: 14px;
    line-height: 1.35
}

.reward-banner {
    position: fixed;
    z-index: 80;
    left: auto;
    right: 16px;
    top: 16px;
    min-width: 190px;
    max-width: min(330px, 85vw);
    padding: 12px 15px 12px 44px;
    white-space: normal;
    text-align: left;
    background: #f3e5bd;
    color: #59472d;
    border: 3px solid #8b633d;
    border-radius: 4px;
    box-shadow: 0 4px 0 #4b392b88;
    pointer-events: none;
    animation: achievement 4.2s ease both
}

.reward-banner:before {
    content: '✦';
    position: absolute;
    left: 12px;
    top: 17px;
    color: #c99036;
    font-size: 22px
}

.reward-banner small,
.reward-banner strong {
    display: block
}

.reward-banner small {
    font-size: 11px;
    color: #957449
}

.reward-banner strong {
    margin-top: 3px;
    font-size: 14px
}

.treasure-vignette {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, #201b1390 115%)
}

.player.celebrating {
    z-index: 8
}

.player.celebrating .figure {
    background: url(shanshan-celebrate.svg) center bottom/contain no-repeat;
    animation: celebrate-bob 1.1s steps(2, end) infinite
}

.treasure-display {
    position: absolute;
    left: 50%;
    top: -29%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    z-index: 9;
    pointer-events: none
}

.treasure-rays {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #ffdf7e99 0deg 12deg, transparent 12deg 30deg);
    mask-image: radial-gradient(circle, #000 10%, transparent 70%);
    animation: rays-spin 8s linear infinite
}

.treasure-book {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 38px;
    transform: translate(-50%, -50%);
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 5px #ffde72)
}

.treasure-star {
    position: absolute;
    left: calc(50% + var(--x));
    top: calc(50% + var(--y));
    width: 3px;
    height: 3px;
    background: #fff1ae;
    box-shadow: 0 0 5px #ffda65;
    animation: star-rise 1.7s ease-out infinite;
    animation-delay: var(--delay)
}

.treasure-scroll {
    position: absolute;
    z-index: 12;
    bottom: 3%;
    left: 4%;
    right: 4%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: #f5e6bf;
    border: 4px solid #825d3b;
    box-shadow: inset 0 0 0 2px #dcc494, 0 4px 0 #4f3c2b88;
    color: #58452e;
    animation: scroll-up .35s ease-out
}

.treasure-scroll-icon,
.bag-book {
    display: block;
    flex: none;
    width: 40px;
    height: 44px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated
}

.treasure-scroll-icon {
    border: 2px solid #bd9650;
    background-color: #dfc992
}

.treasure-scroll strong,
.treasure-scroll small {
    display: block;
    line-height: 1.5
}

.treasure-scroll strong {
    font-size: 15px
}

.treasure-scroll small {
    font-size: 12px;
    color: #887258;
    margin-top: 3px
}

.treasure-scroll button {
    margin-left: auto;
    align-self: end;
    background: none;
    border: 0;
    color: #86633e;
    font-size: 17px;
    cursor: pointer
}

.treasure-flight {
    position: fixed;
    z-index: 100;
    width: 32px;
    height: 38px;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 7px #ffdc72);
    animation: treasure-flight .65s ease-in forwards;
    pointer-events: none
}

.bag-book {
    width: 32px;
    height: 37px
}

.dialogue .next {
    font-family: FusionPixel, sans-serif
}

@keyframes npc-breath {

    0%,
    100% {
        transform: translateX(-50%)
    }

    50% {
        transform: translate(-50%, -1px)
    }
}

@keyframes celebrate-bob {

    0%,
    100% {
        transform: translateX(-50%)
    }

    50% {
        transform: translate(-50%, -3px)
    }
}

@keyframes rays-spin {
    from {
        transform: rotate(0) scale(.93)
    }

    50% {
        transform: rotate(180deg) scale(1.08)
    }

    to {
        transform: rotate(360deg) scale(.93)
    }
}

@keyframes star-rise {
    0% {
        transform: translate(0, 5px) scale(.4);
        opacity: 0
    }

    30% {
        opacity: 1
    }

    100% {
        transform: translate(var(--drift), -35px) scale(.8);
        opacity: 0
    }
}

@keyframes scroll-up {
    from {
        transform: translateY(22px);
        opacity: 0
    }
}

@keyframes treasure-flight {
    to {
        transform: translate(var(--fly-x), var(--fly-y)) scale(.25);
        opacity: 0
    }
}

@keyframes achievement {
    0% {
        transform: translateX(120%);
        opacity: 0
    }

    12%,
    78% {
        transform: translateX(0);
        opacity: 1
    }

    100% {
        transform: translateX(120%);
        opacity: 0
    }
}

@media(max-width:760px) {

    .dialogue[data-who="珊珊"]:before,
    .dialogue[data-who="小紫"]:before {
        width: 76px;
        height: 87px;
        top: -82px
    }

    .dialogue p {
        font-size: 14px
    }

    .treasure-scroll {
        padding: 7px;
        gap: 7px
    }

    .treasure-scroll-icon {
        width: 30px;
        height: 35px
    }

    .treasure-scroll strong {
        font-size: 12px
    }

    .treasure-scroll small {
        font-size: 10px
    }

    .treasure-display {
        width: 65px;
        height: 65px
    }

    .treasure-book {
        width: 25px;
        height: 30px
    }
}

@media(prefers-reduced-motion:reduce) {

    .treasure-rays,
    .treasure-star,
    .player.celebrating .figure {
        animation: none
    }
}

.treasure-vignette {
    background: radial-gradient(ellipse at var(--focus-x, 50%) var(--focus-y, 50%), transparent 17%, #201b1390 110%)
}

.world.treasure-active .hotspot {
    visibility: hidden
}

.player .figure {
    background-image: var(--walk-sheet, url(shanshan-walk-live.png))
}

.scenery-image {
    background-image: url(window-mountain.webp)
}

.world:not(.cafe) .backdrop {
    background-image: url(library-floor.webp);
    image-rendering: auto
}

.world.searching-shelf:before {
    background-image: url(library-floor.webp)
}

.world.cafe .backdrop {
    image-rendering: auto !important
}

.pieces span:nth-child(3) {
    display: block
}

.pieces span.collected {
    background: #d8b67b
}

.teacart {
    position: absolute;
    left: 25.2%;
    top: 69.0%;
    transform: translate(-50%, -100%);
    width: 11.2%;
    height: 23.5%;
    border: 0;
    background: url(tea-cart.png) center bottom/contain no-repeat;
    z-index: 68;
    image-rendering: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 6px #ffe8a855);
    transition: transform .2s, filter .2s
}

.teacart:hover {
    transform: translate(-50%, -101%) scale(1.02);
    filter: drop-shadow(0 0 10px #ffe8a8aa)
}

.teacart.done {
    filter: none
}

.teacart:focus-visible {
    outline: 2px solid #f7db83
}

.player.tidying .figure {
    background: url(shanshan-bend.svg) center bottom/contain no-repeat;
    animation: tidy-bob .4s steps(2, end) 3
}

.scenery-image {
    background-image: url(window-mountain.webp)
}

@keyframes tidy-bob {
    50% {
        transform: translate(-50%, -2px)
    }
}

.world .hotspot.decoration-point {
    width: 11%;
    height: 16%;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    animation: none
}

.world .hotspot.decoration-point:after {
    content: "";
    display: none;
    position: absolute;
    right: 15%;
    top: 0;
    width: 18px;
    height: 18px;
    background: #fbf5df;
    border: 1px solid #a58d63;
    border-radius: 4px
}

.world .hotspot.decoration-point.near:after {
    display: block;
    content: "⌕";
    color: #7b7054;
    font-size: 14px;
    line-height: 16px;
    text-align: center
}

.player.tidying:not(.walking):not(.searching):not(.holding) .figure {
    background: url(shanshan-bend.svg) center bottom/contain no-repeat;
    animation: tidy-bob .4s steps(2, end) 3
}

.player.celebrating:not(.walking):not(.searching):not(.holding) .figure {
    background: url(shanshan-celebrate.svg) center bottom/contain no-repeat;
    animation: celebrate-bob 1.1s steps(2, end) infinite
}

.npc .figure {
    background-image: var(--npc-sheet, url(xiaozi-stand-live.png));
    background-size: 100% 100%;
    image-rendering: pixelated
}

.footprints {
    position: absolute;
    inset: 0;
    z-index: 42;
    pointer-events: none
}

.footstep {
    position: absolute;
    width: 24px;
    height: 15px;
    opacity: .95;
    animation: footstep-pulse 1.2s ease-in-out infinite alternate
}

.footstep:before,
.footstep:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    background: #fff099;
    border: 1.5px solid #5a3821;
    box-shadow: 0 0 7px 2px rgba(255, 220, 108, .85);
    border-radius: 46%
}

.footstep:before {
    left: 1px;
    top: 0
}

.footstep:after {
    right: 1px;
    bottom: 0
}

.guide-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #fff9c4 15%, #ffd86b 65%, rgba(255, 216, 107, 0) 75%);
    border: 2px solid #5a3821;
    border-radius: 50%;
    box-shadow: 0 0 18px 6px rgba(255, 223, 115, .95);
    transform: translate(-50%, -50%);
    animation: guide-glow .9s ease-in-out infinite alternate
}

.guide-marker:before {
    content: '';
    position: absolute;
    inset: -9px;
    border: 2px solid #ffe488;
    border-radius: 50%;
    opacity: .85;
    animation: guide-ring 1.3s ease-out infinite
}

.guide-marker:after {
    content: '▼';
    position: absolute;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    color: #ffe996;
    font-size: 16px;
    text-shadow: 0 1px 0 #5a3821, 0 -1px 0 #5a3821, 1px 0 0 #5a3821, -1px 0 0 #5a3821, 0 0 8px #ffd864;
    animation: marker-bob .8s ease-in-out infinite alternate
}

@keyframes footstep-pulse {
    from {
        opacity: .55;
        filter: brightness(.95)
    }

    to {
        opacity: 1;
        filter: brightness(1.18) drop-shadow(0 0 4px #ffe485)
    }
}

@keyframes guide-glow {
    from {
        transform: translate(-50%, -50%) scale(.9)
    }

    to {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 0 24px 9px #ffdf7b
    }
}

@keyframes guide-ring {
    from {
        transform: scale(.7);
        opacity: .9
    }

    to {
        transform: scale(1.6);
        opacity: 0
    }
}

@keyframes marker-bob {
    from {
        transform: translate(-50%, 0)
    }

    to {
        transform: translate(-50%, -6px)
    }
}

.player.tidying,
.player.sitting-down,
.player.standing-up {
    z-index: 76
}

.player.seated.at-sofa {
    height: 24.5%;
    z-index: 65
}

.player.seated.at-desk {
    height: 26.6%;
    z-index: 76
}

.npc {
    z-index: 70
}

.tidy-smoke {
    position: absolute;
    left: 31%;
    top: 60%;
    width: 12%;
    height: 9%;
    z-index: 7;
    pointer-events: none
}

.tidy-smoke i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    background: #f9e5be;
    border: 2px solid #dbc6a3;
    box-shadow: 2px 2px #a68b6d;
    animation: puff 1.15s ease-out both
}

.tidy-smoke i:nth-child(2) {
    --x: -25px;
    --y: -18px;
    animation-delay: .1s
}

.tidy-smoke i:nth-child(3) {
    --x: 23px;
    --y: -25px;
    animation-delay: .18s
}

.tidy-smoke i:nth-child(4) {
    --x: -32px;
    --y: 3px;
    animation-delay: .25s
}

.tidy-smoke i:nth-child(5) {
    --x: 30px;
    --y: 4px;
    animation-delay: .3s
}

.tidy-smoke i:nth-child(6) {
    --x: 4px;
    --y: -34px;
    animation-delay: .35s
}

@keyframes puff {
    0% {
        opacity: 0;
        transform: scale(.2)
    }

    25% {
        opacity: .9
    }

    100% {
        opacity: 0;
        transform: translate(var(--x, 0), var(--y, -18px)) scale(1.3)
    }
}

.world .hotspot.seat-point,
.world .hotspot.tea-point {
    width: 8%;
    height: 10%;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    animation: none
}

.world .hotspot.tea-point {
    width: 8%;
    height: 9%
}

.world .hotspot.seat-point:after,
.world .hotspot.tea-point:after {
    display: none
}

.world .hotspot.seat-point.near:after,
.world .hotspot.tea-point.near:after {
    display: block;
    content: '✦';
    position: absolute;
    top: 0;
    right: 0;
    color: #ffeaa8;
    text-shadow: 0 1px #754e31;
    font-size: 14px
}

.player.sitting-down:not(.walking):not(.searching):not(.holding) .figure,
.player.standing-up:not(.walking):not(.searching):not(.holding) .figure {
    background-position-x: 0;
    background-position-y: 0;
    animation: none
}

.player.seated:not(.walking):not(.searching):not(.holding) .figure {
    inset: auto;
    left: 50%;
    bottom: 0%;
    height: 86.7%;
    width: auto;
    transform: translateX(-50%);
    animation: none;
    image-rendering: pixelated
}

.player.seated.at-sofa:not(.walking):not(.searching):not(.holding) .figure {
    height: 86.7%;
    aspect-ratio: 151/260;
    background: url(shanshan-sofa.png?v=7) center bottom/contain no-repeat
}

.player.seated.at-desk:not(.walking):not(.searching):not(.holding) .figure {
    height: 92%;
    aspect-ratio: 209/260;
    background: url(shanshan-desk.png?v=7) center bottom/contain no-repeat;
    filter: brightness(1.04)
}

.player.seated.at-desk .figure:after {
    content: '';
    position: absolute;
    left: 28%;
    top: 28%;
    width: 44%;
    height: 28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 250, 255, .32), transparent 72%);
    pointer-events: none;
    mix-blend-mode: screen
}

.sit-btn {
    position: absolute;
    z-index: 90;
    transform: translate(-50%, -100%);
    padding: 5px 10px;
    border: 2px solid #a68153;
    background: #f5e8c9;
    color: #6b5137;
    font-family: FusionPixel, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 0 #7a5836
}

.sit-btn[hidden] {
    display: none
}

.sofa-armrest-front {
    position: absolute;
    left: 4.5%;
    top: 47.5%;
    width: 10.0%;
    height: 15.0%;
    z-index: 66;
    pointer-events: none;
    background: url(sofa-armrest-front.png?v=8) 0 0/100% 100% no-repeat;
    image-rendering: auto
}

.chair-floor-patch {
    position: absolute;
    left: 73.04%;
    top: 56.05%;
    width: 7.12%;
    height: 8.85%;
    z-index: 2;
    pointer-events: none;
    background: url(chair-floor-patch.png?v=9) 0 0/100% 100% no-repeat;
    image-rendering: auto
}

.desk-chair {
    position: absolute;
    left: 73.04%;
    top: 56.05%;
    width: 7.12%;
    height: 8.47%;
    z-index: 75;
    pointer-events: none;
    background: url(desk-chair.png?v=8) 0 0/100% 100% no-repeat;
    image-rendering: auto;
    transition: transform .34s ease
}

.desk-chair.pulled {
    transform: translateY(-5%)
}

.desk-front {
    position: absolute;
    left: 70.35%;
    top: 56.05%;
    width: 29.65%;
    height: 33.74%;
    z-index: 90;
    pointer-events: none;
    background: url(desk-front.png?v=8) 0 0/100% 100% no-repeat;
    image-rendering: auto
}

.laptop-tyndall {
    position: absolute;
    left: 69.5%;
    top: 48.0%;
    width: 15.0%;
    height: 22.0%;
    z-index: 77;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse 46% 62% at 48% 82%, rgba(226, 250, 255, .36) 0%, rgba(210, 243, 255, .16) 44%, rgba(200, 238, 255, 0) 74%);
    transition: opacity .45s ease
}

.computer-on .laptop-tyndall {
    opacity: 1
}

.scenic-overlay {
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    background: #1e2d24 !important
}

.scenic {
    width: min(100vw, 177.7778dvh) !important;
    height: min(100dvh, 56.25vw) !important;
    position: relative;
    overflow: hidden;
    background: #355546
}

.scenic .scenery-image {
    background-size: 100% 100% !important
}

.scenic-mist {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: url(window-mist-veil.png) 0 0/100% 100% no-repeat;
    transition: opacity 1.15s ease .18s
}

.scenic.window-opened .scenic-mist {
    opacity: 0
}

.scenic-shutters {
    position: absolute;
    left: 19.318%;
    top: 1.7%;
    width: 61.364%;
    height: 83.316%;
    z-index: 4;
    pointer-events: none;
    perspective: 1100px;
    transform-style: preserve-3d
}

.scenic-shutter {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: transform 1.3s cubic-bezier(.22, .85, .32, 1), opacity .45s ease .9s, filter 1.2s ease
}

.scenic-shutter.left {
    left: 0;
    transform-origin: left center;
    background-image: url(window-sash-left.png)
}

.scenic-shutter.right {
    right: 0;
    transform-origin: right center;
    background-image: url(window-sash-right.png)
}

.scenic.window-opened .scenic-shutter.left {
    transform: rotateY(78deg) scale(.94);
    opacity: 0;
    filter: brightness(1.1)
}

.scenic.window-opened .scenic-shutter.right {
    transform: rotateY(-78deg) scale(.94);
    opacity: 0;
    filter: brightness(1.1)
}

.scenic-sunwash {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse 56% 52% at 50% 44%, rgba(255, 252, 226, .94) 0%, rgba(255, 235, 160, .48) 38%, rgba(255, 222, 135, 0) 76%)
}

.scenic.window-opened .scenic-sunwash {
    animation: scenic-sun-bloom 2.6s ease-out forwards
}

.scenic-rays {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(122deg, transparent 24%, rgba(255, 244, 196, .34) 34%, rgba(255, 238, 176, .09) 46%, transparent 54%), linear-gradient(132deg, transparent 46%, rgba(255, 246, 204, .30) 54%, rgba(255, 234, 166, .07) 66%, transparent 74%);
    mix-blend-mode: screen;
    transition: opacity 1.4s ease .2s
}

.scenic.window-opened .scenic-rays {
    opacity: 1;
    animation: rays-breathe 5s ease-in-out infinite alternate
}

.scenic-sparkles {
    position: absolute;
    left: 18%;
    right: 18%;
    top: 8%;
    bottom: 16%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease .35s
}

.scenic.window-opened .scenic-sparkles {
    opacity: 1
}

.scenic-sparkles i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff8cf;
    box-shadow: 0 0 10px 3px #ffe07c;
    animation: scenic-dust 4s ease-in-out infinite
}

.scenic .petals,
.scenic .bird {
    opacity: 0;
    transition: opacity 1s ease .45s
}

.scenic.window-opened .petals,
.scenic.window-opened .bird {
    opacity: 1
}

.scenic:not(.window-opened) .scenery-image {
    filter: brightness(.82)
}

.scenic .scenery-image {
    transition: filter 1.2s ease
}

.scenic:not(.window-opened) .scenic-caption {
    opacity: 0;
    transform: translateY(8px)
}

.scenic .scenic-caption {
    transition: opacity .8s ease .55s, transform .8s ease .55s
}

@keyframes scenic-sun-bloom {
    0% {
        opacity: 0;
        transform: scale(.35)
    }

    25% {
        opacity: 1;
        transform: scale(.95)
    }

    100% {
        opacity: .14;
        transform: scale(1.22)
    }
}

@keyframes rays-breathe {
    from {
        opacity: .55
    }

    to {
        opacity: .92
    }
}

@keyframes scenic-dust {

    0%,
    100% {
        transform: translate(0, 0) scale(.6);
        opacity: .25
    }

    45% {
        transform: translate(18px, -22px) scale(1.15);
        opacity: .95
    }
}

.ach-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    text-align: left
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f0e8d2;
    border: 2px solid #d5bc85
}

.ach-item.locked {
    opacity: .68;
    border-style: dashed;
    background: #efe8d6
}

.ach-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e4ca89;
    border: 2px solid #9f793f;
    color: #825317;
    font-size: 19px;
    box-shadow: inset 0 1px 0 #fff4cf
}

.ach-item.locked .ach-badge {
    background: #ded7c3;
    border-color: #b2a88e;
    color: #8d846e;
    box-shadow: none
}

.ach-item strong {
    display: block;
    font-size: 14px;
    color: #58452e
}

.ach-item small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #857054;
    line-height: 1.45
}

.ach-empty {
    padding: 14px;
    border-radius: 8px;
    background: #f0e8d2;
    color: #857054;
    font-size: 13px
}

.world:not(.cafe) .cafe-food,
.world:not(.cafe) .cafe-table-front,
.world:not(.cafe) .cafe-counter-front,
.world:not(.cafe) .cafe-right-table-front,
.world:not(.cafe) .cafe-laptop,
.world:not(.cafe) .cafe-clerk,
.world:not(.cafe) .cafe-cust1,
.world:not(.cafe) .cafe-cust2,
.world:not(.cafe) .cafe-cust3,
.world:not(.cafe) .cafe-cust4,
.world:not(.cafe) .cafe-cust5,
.world:not(.cafe) .cafe-cust6,
.world:not(.cafe) .cafe-cust7,
.world:not(.cafe) .cafe-cust8,
.world:not(.cafe) .cafe-cust9,
.world:not(.cafe) .cafe-table-a-back,
.world:not(.cafe) .cafe-table-a-top,
.world:not(.cafe) .cafe-table-b-back,
.world:not(.cafe) .cafe-table-b-top,
.world:not(.cafe) .cafe-table-c-back,
.world:not(.cafe) .cafe-table-c-top,
.world:not(.cafe) .cafe-steam,
.world:not(.cafe) .cafe-door-glow,
.world:not(.cafe) .camera-flash {
    display: none !important
}

.world.cafe .sofa-armrest-front,
.world.cafe .chair-floor-patch,
.world.cafe .desk-chair,
.world.cafe .desk-front,
.world.cafe .laptop-tyndall,
.world.cafe .teacart {
    display: none !important
}

.world.cafe .hotspot.cafe-spot {
    width: 10%;
    height: 16%;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    z-index: 72;
    cursor: pointer;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    animation: none !important
}

.world.cafe .hotspot.cafe-booth {
    width: 22%;
    height: 34%
}

.world.cafe .hotspot.cafe-counter {
    width: 13%;
    height: 22%
}

.world.cafe .hotspot.cafe-clerk-spot {
    width: 9%;
    height: 21%
}

.world.cafe .hotspot.cafe-espresso {
    width: 11%;
    height: 18%
}

.world.cafe .hotspot.cafe-pennant {
    width: 10%;
    height: 22%
}

.world.cafe .hotspot.cafe-window {
    width: 24%;
    height: 26%
}

.world.cafe .hotspot.cafe-door {
    width: 13%;
    height: 34%
}

.world.cafe .hotspot.cafe-cust-spot {
    width: 7.2%;
    height: 14%;
    z-index: 96
}

.world.cafe .hotspot.cafe-table-spot {
    width: 10%;
    height: 11%;
    z-index: 95
}

.world.cafe .hotspot.cafe-spot:after {
    content: '';
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #fff6de;
    border: 2px solid #5a3821;
    box-shadow: 0 2px 0 rgba(90, 56, 33, .45), 0 0 8px rgba(255, 232, 158, .75);
    color: #5a3821;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    transform: translate(-50%, -40%) scale(.75);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none
}

.world.cafe .hotspot.cafe-spot.near:after {
    opacity: 1;
    content: '⌕';
    transform: translate(-50%, -100%) scale(1);
    animation: cafe-badge-bob .9s ease-in-out infinite alternate
}

.world.cafe .hotspot.cafe-spot.bubble.near:after {
    content: '💬';
    font-size: 11px;
    line-height: 18px
}

.world.cafe.cafe-seated .hotspot.cafe-spot:after {
    display: none !important
}

.world.cafe .hotspot.cafe-espresso.shaking {
    animation: espresso-shake .12s steps(2, end) 5
}

.world.cafe #npc:not(.seated-cafe) em {
    display: block;
    left: 50%;
    right: auto;
    top: -18%;
    transform: translateX(-50%)
}

.world.cafe #npc.seated-cafe em {
    display: none
}

.world.cafe #npc {
    transition: transform .25s ease
}

.world.cafe #npc.running {
    transition: none !important
}

.world.cafe #npc.running .figure {
    inset: auto !important;
    left: 50% !important;
    bottom: 14% !important;
    height: 86% !important;
    width: auto !important;
    aspect-ratio: 1 !important;
    transform: translateX(-50%) !important;
    background-image: url(xiaozi-walk.png) !important;
    background-size: 400% 400% !important;
    background-position-y: var(--npc-row, 33.3333%) !important;
    background-repeat: no-repeat !important;
    image-rendering: pixelated;
    animation: sprite-walk .6s steps(4, end) infinite !important
}

.world.cafe #npc.seated-cafe {
    height: 27.8%;
    z-index: 68
}

.world.cafe #npc.seated-cafe .figure {
    inset: auto !important;
    left: 50% !important;
    bottom: 14% !important;
    height: 86% !important;
    width: auto !important;
    aspect-ratio: 1 !important;
    transform: translateX(-50%) !important;
    background: url(xiaozi-cafe-sit.png) center bottom/100% 100% no-repeat !important;
    image-rendering: pixelated;
    animation: sit-idle 4s ease-in-out infinite !important
}

.world.cafe .player.seated.at-cafe-booth {
    height: 27.8%;
    z-index: 88
}

.world.cafe .player.seated.at-cafe-booth:not(.walking):not(.searching):not(.holding) .figure {
    inset: auto !important;
    left: 50% !important;
    bottom: 0 !important;
    height: 65% !important;
    width: 53% !important;
    transform: translateX(-50%) !important;
    background: url(shanshan-cafe-seat-live.webp) center bottom/100% 100% no-repeat !important;
    image-rendering: pixelated;
    animation: sit-idle 4.2s ease-in-out infinite !important
}

.cafe-clerk {
    left: 49.0%;
    top: 36.2%;
    height: 29.0%;
    z-index: 44;
    pointer-events: none
}

.cafe-clerk .figure {
    inset: auto !important;
    left: 50% !important;
    bottom: 14% !important;
    height: 86% !important;
    width: auto !important;
    aspect-ratio: 1 !important;
    transform: translateX(-50%) !important;
    background: url(cafe-clerk.png) 0 0/200% 100% no-repeat !important;
    image-rendering: pixelated;
    animation: clerk-wipe 1.4s steps(1, end) infinite !important
}

.cafe-counter-front {
    position: absolute;
    left: 43%;
    top: 29.3%;
    width: 15%;
    height: 15.2%;
    z-index: 45;
    pointer-events: none;
    background: url(cafe-counter-front.png) 0 0/100% 100% no-repeat;
    image-rendering: auto
}

.cafe-table-front {
    position: absolute;
    left: 8.8%;
    top: 41.5%;
    width: 11.7%;
    height: 17.5%;
    z-index: 65;
    pointer-events: none;
    background: url(cafe-table-front.png) 0 0/100% 100% no-repeat;
    image-rendering: auto
}

.cafe-right-table-front {
    position: absolute;
    left: 80.5%;
    top: 41.5%;
    width: 12.5%;
    height: 21%;
    z-index: 68;
    pointer-events: none;
    background: url(cafe-right-table-front.png) 0 0/100% 100% no-repeat;
    image-rendering: auto
}

.cafe-laptop {
    position: absolute;
    left: 82.3%;
    top: 47.4%;
    width: 3.8%;
    aspect-ratio: 48/36;
    z-index: 69;
    pointer-events: none;
    background: url(cafe-laptop.png) center/contain no-repeat;
    image-rendering: pixelated
}

.cafe-cust1,
.cafe-cust2,
.cafe-cust4,
.cafe-cust5,
.cafe-cust6,
.cafe-cust7,
.cafe-cust8,
.cafe-cust9 {
    height: 28.5%;
    pointer-events: none
}

.cafe-cust1 .figure,
.cafe-cust2 .figure,
.cafe-cust4 .figure,
.cafe-cust5 .figure,
.cafe-cust6 .figure,
.cafe-cust7 .figure,
.cafe-cust8 .figure,
.cafe-cust9 .figure {
    inset: auto !important;
    left: 50% !important;
    bottom: 14% !important;
    height: 86% !important;
    width: auto !important;
    aspect-ratio: 1 !important;
    transform: translateX(-50%) !important;
    background-size: 100% 100% !important;
    background-position: center bottom;
    background-repeat: no-repeat !important;
    image-rendering: pixelated;
    animation: sit-idle 4.2s ease-in-out infinite !important
}

.cafe-cust1 {
    left: 80.2%;
    top: 58.6%;
    height: 27.8%;
    z-index: 64
}

.cafe-cust1 .figure {
    background-image: url(cafe-cust1-sit.png) !important;
    animation-duration: 4.5s !important
}

.cafe-cust7 {
    left: 89.2%;
    top: 74.1%;
    height: 27.8%;
    z-index: 72
}

.cafe-cust7 .figure {
    background-image: url(cafe-cust7-sit.png) !important;
    animation-duration: 4.3s !important
}

.cafe-table-c-back,
.cafe-table-c-top {
    position: absolute;
    left: 37%;
    top: 58%;
    width: 17.5%;
    aspect-ratio: 340/279;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: auto
}

.cafe-table-c-back {
    z-index: 56;
    background-image: url(cafe-table-c-back.png?v=8)
}

.cafe-table-c-top {
    z-index: 66;
    background-image: url(cafe-table-c-top.png?v=8)
}

.cafe-cust8 {
    left: 31.1%;
    top: 67.0%;
    height: 27.2%;
    z-index: 64
}

.cafe-cust8 .figure {
    background-image: url(cafe-cust8-sit.png) !important;
    animation-duration: 3.9s !important
}

.cafe-cust9 {
    left: 42.9%;
    top: 67.0%;
    height: 27.2%;
    z-index: 64
}

.cafe-cust9 .figure {
    background-image: url(cafe-cust9-sit.png) !important;
    animation-duration: 4.4s !important
}

.cafe-table-a-back,
.cafe-table-a-top {
    position: absolute;
    left: 26.8%;
    top: 84.2%;
    width: 19.5%;
    aspect-ratio: 340/279;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: auto
}

.cafe-table-a-back {
    z-index: 78;
    background-image: url(cafe-table-a-back.png?v=8)
}

.cafe-table-a-top {
    z-index: 94;
    background-image: url(cafe-table-a-top.png?v=8)
}

.cafe-cust2 {
    left: 20.2%;
    top: 93.5%;
    z-index: 88
}

.cafe-cust2 .figure {
    background-image: url(cafe-cust2-sit.png) !important;
    animation-duration: 3.8s !important
}

.cafe-cust4 {
    left: 33.4%;
    top: 93.5%;
    z-index: 88
}

.cafe-cust4 .figure {
    background-image: url(cafe-cust4-sit.png) !important;
    animation-duration: 4.1s !important
}

.cafe-table-b-back,
.cafe-table-b-top {
    position: absolute;
    left: 71%;
    top: 84.2%;
    width: 19.5%;
    aspect-ratio: 340/279;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: auto
}

.cafe-table-b-back {
    z-index: 78;
    background-image: url(cafe-table-b-back.png?v=8)
}

.cafe-table-b-top {
    z-index: 94;
    background-image: url(cafe-table-b-top.png?v=8)
}

.cafe-cust5 {
    left: 64.4%;
    top: 93.5%;
    z-index: 88
}

.cafe-cust5 .figure {
    background-image: url(cafe-cust5-sit.png) !important;
    animation-duration: 4.0s !important
}

.cafe-cust6 {
    left: 77.6%;
    top: 93.5%;
    z-index: 88
}

.cafe-cust6 .figure {
    background-image: url(cafe-cust6-sit.png) !important;
    animation-duration: 4.6s !important
}

.cafe-cust3 {
    left: 56.5%;
    top: 53.2%;
    height: 28.5%;
    z-index: 54;
    pointer-events: none
}

.cafe-cust3 .figure {
    inset: auto !important;
    left: 50% !important;
    bottom: 14% !important;
    height: 86% !important;
    width: auto !important;
    aspect-ratio: 1 !important;
    transform: translateX(-50%) !important;
    background: url(cafe-cust3.png) center bottom/100% 100% no-repeat !important;
    image-rendering: pixelated;
    animation: npc-breath 3.2s steps(2, end) infinite !important
}

.cafe-cust3 em {
    position: absolute;
    right: 12%;
    top: 12%;
    z-index: 56;
    padding: 1px 6px;
    border-radius: 7px;
    background: #fffdf0;
    border: 2px solid #8c6845;
    color: #6d5137;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(90, 56, 33, .3);
    animation: cust3-think 4.5s ease-in-out infinite;
    pointer-events: none
}

@keyframes sit-idle {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg)
    }

    25% {
        transform: translateX(-50%) translateY(-1px) rotate(0deg)
    }

    50% {
        transform: translateX(-50%) translateY(0) rotate(0deg)
    }

    75% {
        transform: translateX(-50%) translateY(-1px) rotate(1.2deg)
    }

    85% {
        transform: translateX(-50%) translateY(0) rotate(0deg)
    }
}

@keyframes clerk-wipe {
    0% {
        background-position: 0 0
    }

    50% {
        background-position: 100% 0
    }
}

@keyframes cust3-think {

    0%,
    100% {
        opacity: .45;
        transform: translateY(1px)
    }

    40%,
    75% {
        opacity: 1;
        transform: translateY(-3px)
    }
}

.cafe-food {
    position: absolute;
    left: 14.5%;
    top: 53.6%;
    width: 9.2%;
    aspect-ratio: 256/176;
    transform: translate(-50%, -50%);
    z-index: 66;
    pointer-events: none;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 2px rgba(48, 28, 14, .35));
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease
}

.cafe-food.visible {
    opacity: 1
}

.cafe-food.set-a {
    background-image: url(cafe-food-a.png)
}

.cafe-food.set-b {
    background-image: url(cafe-food-b.png)
}

.cafe-steam {
    position: absolute;
    left: 38.5%;
    top: 18.5%;
    width: 7%;
    height: 12%;
    transform: translate(-50%, -50%);
    z-index: 55;
    pointer-events: none
}

.cafe-steam i {
    position: absolute;
    left: 36%;
    bottom: 15%;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #fffaf0;
    border: 2px solid #8a6c4e;
    opacity: 0
}

.cafe-steam i:nth-child(2) {
    left: 50%;
    width: 12px;
    height: 12px
}

.cafe-steam i:nth-child(3) {
    left: 64%;
    width: 9px;
    height: 9px
}

.cafe-steam.active i {
    animation: steam-rise 1.25s ease-out forwards
}

.cafe-steam.active i:nth-child(2) {
    animation-delay: .18s
}

.cafe-steam.active i:nth-child(3) {
    animation-delay: .36s
}

.cafe-door-glow {
    position: absolute;
    left: 71.3%;
    top: 4.2%;
    width: 9.7%;
    height: 30.8%;
    z-index: 52;
    pointer-events: none;
    opacity: 0;
    border-radius: 3px;
    box-shadow: inset 0 0 18px 4px rgba(255, 223, 115, .72), 0 0 22px 6px rgba(255, 216, 102, .52);
    transition: opacity .6s ease
}

.cafe-door-glow.active {
    opacity: 1;
    animation: door-gold-pulse 1.6s ease-in-out infinite alternate
}

.cafe-door-glow i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff7bd;
    box-shadow: 0 0 8px 2px #ffdf6d;
    opacity: 0
}

.cafe-door-glow.active i {
    animation: door-sparkle 2.2s ease-in-out infinite
}

.cafe-door-glow i:nth-child(1) {
    left: 14%;
    top: 72%;
    animation-delay: 0s
}

.cafe-door-glow i:nth-child(2) {
    left: 82%;
    top: 64%;
    animation-delay: .4s
}

.cafe-door-glow i:nth-child(3) {
    left: 28%;
    top: 35%;
    animation-delay: .8s
}

.cafe-door-glow i:nth-child(4) {
    left: 74%;
    top: 28%;
    animation-delay: 1.1s
}

.cafe-door-glow i:nth-child(5) {
    left: 48%;
    top: 82%;
    animation-delay: 1.5s
}

.cafe-door-glow i:nth-child(6) {
    left: 52%;
    top: 18%;
    animation-delay: 1.8s
}

.camera-flash {
    position: absolute;
    inset: 0;
    z-index: 96;
    pointer-events: none;
    background: #fffef8;
    opacity: 0
}

.camera-flash.flashing {
    animation: cam-flash .4s ease-out forwards
}

.cafe-quest {
    position: relative;
    margin: 10px auto 0;
    width: fit-content;
    max-width: calc(100% - 24px);
    padding: 8px 18px;
    border: 3px solid #8c6845;
    border-radius: 6px;
    background: #fff4d9f2;
    box-shadow: inset 0 0 0 2px #e3cca4, 0 3px 0 #5a422c66;
    color: #5c452d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: center
}

.cafe-quest[hidden] {
    display: none
}

.cafe-quest:before {
    content: '✦ ';
    color: #c9892b
}

.scenic.campus-view {
    background: #304731
}

.scenic.campus-view .scenery-image {
    background-image: url(window-view.png) !important;
    background-size: 102% 102% !important;
    background-position: center;
    animation: campus-sway 9s ease-in-out infinite alternate
}

.scenic.campus-view .scenic-rays {
    opacity: .9;
    animation: rays-breathe 4.6s ease-in-out infinite alternate
}

.scenic.campus-view .petals i {
    color: #ffe082;
    text-shadow: 0 0 6px rgba(255, 212, 96, .85);
    opacity: 1
}

.scenic.campus-view .scenic-caption {
    opacity: 1;
    transform: none
}

.route-choice-card {
    max-width: 460px;
    background: #fff4d9;
    border: 4px solid #8c6845;
    box-shadow: inset 0 0 0 3px #e3ca9e, 0 10px 28px rgba(45, 29, 16, .45)
}

.route-choice-card h2 {
    color: #5a3e28;
    margin: 6px 0 8px
}

.route-choice-card p {
    color: #6f553d;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 14px
}

.route-buttons {
    display: grid;
    gap: 10px;
    margin-bottom: 12px
}

.route-btn {
    display: grid;
    gap: 4px;
    text-align: left;
    padding: 12px 14px;
    border: 3px solid #8c6845;
    border-radius: 6px;
    background: #f7e9c6;
    color: #553a24;
    box-shadow: 0 3px 0 #7a5838;
    transition: transform .12s ease, background .15s ease
}

.route-btn:hover {
    transform: translateY(-2px);
    background: #fff3d2
}

.route-btn strong {
    font-size: 14px
}

.route-btn small {
    font-size: 12px;
    color: #7e6248
}

.route-btn.sea {
    background: #ebf4ef;
    border-color: #5a7d6d;
    color: #2f4e43;
    box-shadow: 0 3px 0 #426153
}

.route-btn.sea:hover {
    background: #f3faf6
}

.chapter-preview-card {
    max-width: 500px;
    background: #fff6e2;
    border: 4px solid #8c6845;
    box-shadow: inset 0 0 0 3px #e4cca1, 0 10px 30px rgba(32, 24, 16, .5)
}

.chapter-preview-art {
    width: 100%;
    aspect-ratio: 16/9;
    border: 3px solid #8c6845;
    border-radius: 6px;
    margin: 10px 0 12px;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated
}

.chapter-preview-art.mountain {
    background-image: url(window-mountain.webp)
}

.chapter-preview-art.beach {
    background-image: url(beach.png)
}

@keyframes cafe-badge-bob {
    from {
        transform: translate(-50%, -100%)
    }

    to {
        transform: translate(-50%, calc(-100% - 4px))
    }
}

@keyframes espresso-shake {
    0% {
        transform: translate(-50%, -50%)
    }

    25% {
        transform: translate(calc(-50% - 2px), calc(-50% + 1px))
    }

    50% {
        transform: translate(calc(-50% + 2px), calc(-50% - 1px))
    }

    75% {
        transform: translate(calc(-50% - 1px), -50%)
    }

    100% {
        transform: translate(-50%, -50%)
    }
}

@keyframes npc-run {
    from {
        transform: translateY(0) rotate(-3deg)
    }

    to {
        transform: translateY(-4px) rotate(3deg)
    }
}

@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(.6)
    }

    25% {
        opacity: .92
    }

    100% {
        opacity: 0;
        transform: translateY(-36px) translateX(6px) scale(1.35)
    }
}

@keyframes door-gold-pulse {
    from {
        box-shadow: inset 0 0 14px 3px rgba(255, 223, 115, .55), 0 0 16px 4px rgba(255, 216, 102, .38)
    }

    to {
        box-shadow: inset 0 0 24px 6px rgba(255, 232, 140, .88), 0 0 28px 9px rgba(255, 220, 108, .7)
    }
}

@keyframes door-sparkle {

    0%,
    100% {
        opacity: 0;
        transform: translateY(4px) scale(.6)
    }

    45% {
        opacity: 1;
        transform: translateY(-10px) scale(1.15)
    }
}

@keyframes cam-flash {
    0% {
        opacity: .85
    }

    100% {
        opacity: 0
    }
}

@keyframes campus-sway {
    0% {
        transform: scale(1.01) translateX(0)
    }

    100% {
        transform: scale(1.03) translateX(-1%)
    }
}

/* --- Wealth Bar & Dual-Pane Bag --- */
.game-hud {
    justify-content: space-between !important;
    align-items: flex-start
}

.wealth-bar {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px 0 9px;
    background: #f5e6c8;
    border: 2px solid #6e472b;
    border-radius: 3px;
    box-shadow: inset 0 2px #fff5dc, inset 0 -2px #d8b988, 0 2px #49301e;
    color: #5a3b20;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    pointer-events: auto;
    transition: transform .2s ease
}

.wealth-bar.bump {
    animation: coin-bump .45s ease
}

.coin-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff6ad, #f2be3d 60%, #b87816);
    border: 2px solid #784b14;
    box-shadow: inset 1px 1px 0 #fff7c2;
    display: inline-block;
    position: relative;
    flex: none
}

.coin-icon:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 22%;
    width: 2px;
    height: 56%;
    transform: translateX(-50%);
    background: #9e6412;
    border-radius: 1px
}

.wealth-bar strong {
    font-size: 16px;
    line-height: 1;
    letter-spacing: .03em;
    color: #6c4212
}

.wealth-bar small {
    font-size: 11px;
    color: #8c653a;
    margin-top: 2px
}

.coin-float {
    position: fixed;
    z-index: 120;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffe25c;
    text-shadow: 0 2px 0 #5a3821, 0 0 8px rgba(255, 212, 68, .85);
    pointer-events: none;
    animation: coin-rise 1.1s ease-out forwards
}

@keyframes coin-bump {
    0% {
        transform: scale(1)
    }

    40% {
        transform: scale(1.16);
        background: #fff5d1
    }

    100% {
        transform: scale(1)
    }
}

@keyframes coin-rise {
    0% {
        opacity: 0;
        transform: translate(-50%, 6px) scale(.8)
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -4px) scale(1.08)
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -34px) scale(1)
    }
}

.bag-card.bag-split-card {
    width: min(700px, 94vw);
    padding: 20px 22px;
    background: #fff7e1;
    border: 4px solid #8c6845;
    outline: 4px solid #f4e4bd;
    border-radius: 10px;
    text-align: center
}

.bag-top-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 12px;
    padding: 8px 12px;
    background: #f2e6c8;
    border: 2px solid #cbb181;
    border-radius: 6px
}

.bag-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #5b4228
}

.bag-stat-pill strong {
    color: #8a5314;
    font-size: 14px
}

.bag-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
    text-align: left
}

.bag-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: #efe2be;
    border: 2px solid #c3a574;
    border-radius: 8px;
    align-content: start;
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto
}

.bag-slot {
    position: relative;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid #b69766;
    border-radius: 6px;
    background: #f9f0d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease
}

.bag-slot.empty {
    border-style: dashed;
    border-color: #d2bf97;
    background: #f4ead0;
    cursor: default
}

.bag-slot:not(.empty):hover {
    transform: translateY(-2px);
    border-color: #8c6334
}

.bag-slot.selected {
    border: 3px solid #d98d26;
    background: #fff8e3;
    box-shadow: 0 0 0 2px rgba(255, 204, 88, .55)
}

.bag-slot-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated
}

.bag-slot-name {
    display: block;
    width: 100%;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.15;
    color: #62482c;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.bag-slot-qty {
    position: absolute;
    right: 3px;
    top: 2px;
    padding: 1px 4px;
    border-radius: 3px;
    background: #78512d;
    color: #fff6dc;
    font-size: 10px;
    line-height: 1.2
}

.bag-detail {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 14px;
    background: #f7ecd0;
    border: 2px solid #c3a574;
    border-radius: 8px;
    min-height: 270px
}

.bag-detail-empty {
    margin: auto;
    color: #937e62;
    font-size: 13px;
    text-align: center
}

.bag-detail-icon-box {
    width: 84px;
    height: 84px;
    margin: 4px auto 10px;
    border-radius: 8px;
    background: #fff8e6;
    border: 2px solid #cfaf7a;
    display: grid;
    place-items: center;
    font-size: 44px;
    background-size: 66% 66%;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated
}

.bag-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px dashed #cdb488;
    padding-bottom: 6px;
    margin-bottom: 8px
}

.bag-detail-head strong {
    font-size: 15px;
    color: #4f3821
}

.bag-detail-qty {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 99px;
    background: #e4cea0;
    color: #6b4b28
}

.bag-detail-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #6b543a;
    margin: 0
}

.bag-detail-meta {
    margin-top: 8px;
    font-size: 11px;
    color: #8e724f;
    line-height: 1.5
}

.bag-polaroid-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 8px
}

/* --- Cafe Rock Paper Scissors & Food Tasting --- */
.rps-card {
    width: min(480px, 94vw);
    background: #fff7e1;
    border: 4px solid #8c6845;
    outline: 4px solid #f4e4bd;
    border-radius: 10px;
    padding: 20px
}

.rps-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    background: #f2e4c2;
    border: 2px solid #c8ab77;
    border-radius: 8px
}

.rps-fighter {
    display: grid;
    justify-items: center;
    gap: 6px
}

.rps-fighter img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 rgba(70, 44, 24, .25))
}

.rps-fighter span {
    font-size: 12px;
    font-weight: 700;
    color: #5a4026
}

.rps-hand-box {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: #fff9eb;
    border: 2px solid #9e7748;
    border-radius: 8px;
    box-shadow: inset 0 2px #fff, 0 2px 0 #7b5632
}

.rps-hand-box.shaking {
    animation: rps-shake .22s ease-in-out infinite alternate
}

.rps-vs {
    font-size: 20px;
    font-weight: 900;
    color: #b86026;
    text-shadow: 0 2px 0 #fff4cf
}

.rps-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px
}

.rps-btn {
    padding: 11px 6px;
    border: 3px solid #7d5633;
    border-radius: 8px;
    background: #f7e8c4;
    color: #4f361f;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 2px #fff8e2, 0 3px 0 #664427;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease
}

.rps-btn:hover:not(:disabled) {
    background: #fff3d0;
    transform: translateY(-2px)
}

.rps-btn:active:not(:disabled) {
    transform: translateY(1px)
}

.rps-result {
    margin: 10px 0 4px;
    padding: 9px 12px;
    border-radius: 6px;
    background: #eaf5de;
    border: 2px solid #739954;
    color: #395922;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55
}

@keyframes rps-shake {
    from {
        transform: translateY(0) rotate(-6deg)
    }

    to {
        transform: translateY(-5px) rotate(6deg)
    }
}

.tasting-dock {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    z-index: 96;
    width: min(590px, 92%);
    padding: 12px 14px;
    background: rgba(255, 247, 223, .96);
    border: 3px solid #8c6845;
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px #e5cda0, 0 8px 24px rgba(38, 24, 12, .42);
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif
}

.tasting-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #5a3f25;
    margin-bottom: 9px
}

.tasting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px
}

.taste-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 6px;
    border: 2px solid #a67c4e;
    border-radius: 8px;
    background: #fff6dc;
    color: #553b23;
    box-shadow: 0 3px 0 #7a5837;
    cursor: pointer;
    transition: transform .14s ease, background .14s ease
}

.taste-item:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #fffdf0;
    border-color: #d68829
}

.taste-item.done {
    background: #ece3cd;
    border-color: #b8a789;
    color: #8e7c62;
    box-shadow: none;
    cursor: default
}

.taste-item .taste-ico {
    font-size: 24px;
    line-height: 1.1
}

.taste-item strong {
    font-size: 12px;
    line-height: 1.3
}

.taste-item small {
    font-size: 10px;
    color: #936b3b
}

.taste-item.done small {
    color: #6a8754
}

.taste-heart {
    position: absolute;
    z-index: 95;
    font-size: 20px;
    color: #ef5e78;
    text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255, 140, 164, .85);
    pointer-events: none;
    animation: taste-heart-rise 1.25s ease-out forwards
}

.taste-heart.star {
    color: #ffcb3d;
    font-size: 22px
}

@keyframes taste-heart-rise {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(.5)
    }

    25% {
        opacity: 1;
        transform: translate(calc(-50% + var(--hx, 0px)), -14px) scale(1.15)
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--hx2, 8px)), -52px) scale(.85)
    }
}

/* --- Reusable Polaroid Studio & Card --- */
.pl-studio {
    width: min(620px, 95vw);
    padding: 18px 20px;
    background: #fff7e2;
    border: 4px solid #8c6845;
    outline: 4px solid #f2e2bc;
    border-radius: 10px;
    text-align: center
}

.pl-header h2 {
    margin: 4px 0 4px;
    font-size: 19px;
    color: #543c24
}

.pl-sub {
    margin: 0 0 10px;
    font-size: 12px;
    color: #7d6447
}

.pl-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4px 0 12px
}

.pl-flash {
    position: absolute;
    inset: -8px;
    z-index: 20;
    background: #fffef8;
    opacity: 0;
    pointer-events: none;
    border-radius: 8px
}

.pl-flash.active {
    animation: cam-flash .45s ease-out forwards
}

.pl-viewfinder.ejecting {
    animation: pl-eject .65s cubic-bezier(.22, .88, .34, 1) both
}

@keyframes pl-eject {
    from {
        transform: translateY(-28px) scale(.92);
        opacity: .35
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

.pl-result-banner {
    margin-top: 8px;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    animation: fade-in .25s ease
}

.pl-result-banner.perfect {
    background: linear-gradient(90deg, #fff2b2, #ffe066, #fff2b2);
    border: 2px solid #c98617;
    color: #734206;
    box-shadow: 0 0 14px rgba(255, 212, 72, .75)
}

.pl-result-banner.natural {
    background: #eef6e4;
    border: 2px solid #7aa35b;
    color: #3f5e28
}

.pl-card {
    width: 236px;
    padding: 11px 11px 12px;
    background: #fdfaf0;
    border: 2px solid #cbb996;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(45, 29, 16, .28);
    text-align: left;
    transition: box-shadow .35s ease
}

.pl-card.is-compact {
    width: 196px;
    padding: 9px 9px 10px;
    box-shadow: 0 5px 14px rgba(45, 29, 16, .22)
}

.pl-card.is-perfect {
    border-color: #e0a42e;
    box-shadow: 0 0 0 2px #ffdf73, 0 8px 22px rgba(178, 120, 18, .35)
}

.pl-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid #6e5235;
    border-radius: 2px;
    background: #241c15
}

.pl-bg {
    position: absolute;
    inset: 0;
    background-size: 210% auto;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    filter: brightness(.97)
}

.pl-sun-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: all .25s ease
}

.pl-chars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6%;
    padding-bottom: 2%
}

.pl-char {
    position: relative;
    width: 36%;
    height: 82%;
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.pl-char img {
    height: 100%;
    width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 2px rgba(42, 24, 10, .35))
}

.pl-char-r img {
    transform: translateY(11%) scale(1.33);
    transform-origin: center bottom
}

.pl-blush {
    display: none;
    position: absolute;
    left: 50%;
    top: 34.5%;
    width: 38%;
    height: 7%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 20% 50%, rgba(255, 108, 136, .75), transparent 58%), radial-gradient(circle at 80% 50%, rgba(255, 108, 136, .75), transparent 58%);
    pointer-events: none
}

.pl-char-r .pl-blush {
    top: 37%;
    width: 42%
}

.pl-shades {
    display: none;
    position: absolute;
    left: 50%;
    top: 29.8%;
    width: 34%;
    height: 5.4%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2
}

.pl-char-r .pl-shades {
    top: 32.8%;
    width: 38%;
    height: 5.6%
}

.pl-shades:before,
.pl-shades:after {
    content: '';
    position: absolute;
    top: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(155deg, #353240 0%, #141218 65%);
    border: 1px solid #09080a;
    border-radius: 2px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .55)
}

.pl-shades:before {
    left: 0
}

.pl-shades:after {
    right: 0
}

.pl-shades i {
    position: absolute;
    left: 41%;
    top: 18%;
    width: 18%;
    height: 26%;
    background: #18161c
}

.pl-peace-tag {
    display: none;
    position: absolute;
    right: -4%;
    top: 50%;
    font-size: 17px;
    filter: drop-shadow(0 1px 0 #5a3821);
    animation: cafe-badge-bob .9s ease-in-out infinite alternate
}

.pl-char-l .pl-peace-tag {
    right: auto;
    left: -4%
}

.pl-toast-props {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    z-index: 5;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255, 248, 225, .88);
    border: 1.5px solid #8c643b;
    font-size: 15px
}

.pl-card[data-pose="peace"] .pl-peace-tag {
    display: block
}

.pl-card[data-pose="toast"] .pl-blush {
    display: block
}

.pl-card[data-pose="toast"] .pl-toast-props {
    display: flex
}

.pl-card[data-pose="cool"] .pl-shades {
    display: block
}

/* Polaroid Filters */
.pl-card[data-filter="warm"] .pl-frame {
    filter: sepia(.14) saturate(1.18) brightness(1.05)
}

.pl-card[data-filter="warm"] .pl-sun-tint {
    background: radial-gradient(circle at 26% 18%, rgba(255, 238, 168, .55), transparent 56%)
}

.pl-card[data-filter="sweet"] .pl-frame {
    filter: saturate(1.24) brightness(1.04) hue-rotate(-5deg)
}

.pl-card[data-filter="sweet"] .pl-sun-tint {
    background: linear-gradient(155deg, rgba(255, 190, 210, .28), rgba(255, 220, 175, .18))
}

.pl-card[data-filter="ccd"] .pl-frame {
    filter: contrast(1.12) sepia(.22) saturate(.92)
}

.pl-card[data-filter="ccd"] .pl-sun-tint {
    background: radial-gradient(circle at center, transparent 56%, rgba(28, 18, 12, .36));
    box-shadow: inset 0 0 12px rgba(20, 12, 8, .4)
}

.pl-filter-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6
}

.pl-filter-fx i {
    position: absolute;
    font-style: normal;
    opacity: 0
}

.pl-card[data-filter="warm"] .pl-filter-fx i:before {
    content: '✦';
    color: #fff3ad;
    text-shadow: 0 0 6px #ffd44d;
    font-size: 13px
}

.pl-card[data-filter="sweet"] .pl-filter-fx i:before {
    content: '♥';
    color: #ff6b8b;
    text-shadow: 0 0 4px #fff;
    font-size: 12px
}

.pl-card[data-filter="sweet"] .pl-filter-fx i:nth-child(even):before {
    content: '🍓';
    font-size: 11px
}

.pl-card[data-filter="warm"] .pl-filter-fx i,
.pl-card[data-filter="sweet"] .pl-filter-fx i {
    opacity: .9;
    animation: door-sparkle 2.4s ease-in-out infinite
}

.pl-filter-fx .fx1 {
    left: 12%;
    top: 16%;
    animation-delay: 0s
}

.pl-filter-fx .fx2 {
    right: 14%;
    top: 22%;
    animation-delay: .6s
}

.pl-filter-fx .fx3 {
    left: 16%;
    bottom: 24%;
    animation-delay: 1.1s
}

.pl-filter-fx .fx4 {
    right: 18%;
    bottom: 28%;
    animation-delay: 1.6s
}

.pl-date {
    display: none;
    position: absolute;
    right: 6px;
    bottom: 4px;
    z-index: 8;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #ffb938;
    text-shadow: 0 1px 1px #000
}

.pl-card[data-filter="ccd"] .pl-date {
    display: block
}

.pl-star-badge {
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 8;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 235, 140, .92);
    border: 1px solid #a86e14;
    color: #6e4006;
    font-size: 10px;
    font-weight: 700
}

.pl-note {
    padding: 8px 4px 2px
}

.pl-caption {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #5a4128;
    font-style: italic;
    text-align: center
}

.pl-card.is-developing .pl-frame {
    filter: brightness(0) blur(10px);
    transition: filter 1.2s ease
}

.pl-card.is-developing.revealed .pl-frame {
    filter: none
}

.pl-card.is-developing[data-filter="warm"].revealed .pl-frame {
    filter: sepia(.14) saturate(1.18) brightness(1.05)
}

.pl-card.is-developing[data-filter="sweet"].revealed .pl-frame {
    filter: saturate(1.24) brightness(1.04) hue-rotate(-5deg)
}

.pl-card.is-developing[data-filter="ccd"].revealed .pl-frame {
    filter: contrast(1.12) sepia(.22) saturate(.92)
}

.pl-controls {
    display: grid;
    gap: 10px;
    margin-top: 4px
}

.pl-control-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left
}

.pl-group small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #7a5a38;
    margin-bottom: 5px
}

.pl-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px
}

.pl-btns button {
    padding: 6px 4px;
    border: 2px solid #a88358;
    border-radius: 6px;
    background: #f4e6c4;
    color: #583e24;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.25
}

.pl-btns button.active {
    background: #ffe59d;
    border-color: #c67617;
    color: #522f04;
    font-weight: 700;
    box-shadow: 0 2px 0 #9f6015
}

.pl-light-meter {
    padding: 8px 10px;
    background: #f2e2bd;
    border: 2px solid #c3a16c;
    border-radius: 8px
}

.pl-light-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #6c4b29;
    margin-bottom: 6px
}

.pl-zone-tip {
    color: #b56b08
}

.pl-track {
    position: relative;
    height: 18px;
    border-radius: 9px;
    background: #453120;
    border: 2px solid #7d5b37;
    overflow: visible
}

.pl-sweet-zone {
    position: absolute;
    left: 34%;
    width: 32%;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ffd54f, #ffeb7a, #ffd54f);
    border-left: 2px solid #fff7c2;
    border-right: 2px solid #fff7c2;
    box-shadow: 0 0 10px rgba(255, 220, 90, .8)
}

.pl-sun-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px #000);
    pointer-events: none
}

.pl-shutter-btn {
    margin: 2px auto 0;
    padding: 10px 26px;
    border: 3px solid #7d1b1b;
    border-radius: 99px;
    background: linear-gradient(#ff6259, #d9352b);
    color: #fff8e6;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    font-weight: 700;
    box-shadow: inset 0 2px rgba(255, 255, 255, .35), 0 4px 0 #701616;
    cursor: pointer
}

.pl-shutter-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05)
}

.pl-shutter-btn:active {
    transform: translateY(2px)
}

.pl-collect-row {
    margin-top: 10px
}

@media(max-width:640px) {

    .bag-split,
    .pl-control-cols {
        grid-template-columns: 1fr
    }

    .wealth-bar {
        height: 32px;
        padding: 0 8px 0 6px
    }

    .wealth-bar strong {
        font-size: 13px
    }
}

.hud-replay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 11px;
    border: 2px solid #6e472b;
    border-radius: 2px;
    background: #f5e6c8;
    box-shadow: inset 0 2px #fff5dc, inset 0 -2px #d8b988, 0 2px #49301e;
    color: #5c3b22;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer
}

.hud-replay:hover {
    background: #fff0d4
}

.hud-replay:active {
    transform: translateY(2px);
    box-shadow: inset 0 1px #fff5dc
}

.settings-menu {
    display: grid;
    gap: 4px;
    padding: 4px
}

.settings-menu[hidden] {
    display: none
}

.settings-menu button {
    display: block;
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #d5ba8d;
    background: #fdf4df;
    color: #5c3b22;
    font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer
}

.settings-menu button:hover {
    background: #fff9ec
}

@media(max-width:600px) {
    .hud-replay {
        height: 32px;
        padding: 0 8px;
        font-size: 11px
    }
}
/* The hint floats below the room so dialogue does not recenter the camera. */
.game:has(.world.cafe:not([hidden])) .cafe-quest {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}
