nav button{min-width:0}.city-test-note{text-align:center;font-size:10px;font-weight:700;letter-spacing:1.5px;color:#6c8173;padding:8px}.town-scene{position:relative;isolation:isolate;overflow:hidden;height:440px;max-height:56dvh;min-height:300px;background:linear-gradient(#aee0eb,#e2f4ed 60%);border:5px solid #fffaf0;border-radius:30px;box-shadow:0 8px 0 #d3dec2}.town-sun{position:absolute;right:15%;top:8%;width:55px;height:55px;background:#ffe7a0;border:7px solid #fff2bd;border-radius:50%;box-shadow:0 0 30px #fff8b4}.town-cloud{position:absolute;width:100px;height:26px;border-radius:50px;background:#ffffffc9;top:20%;left:6%;box-shadow:24px -15px 0 -3px #ffffffe0}.c2{left:55%;top:31%;transform:scale(.7)}.town-hill{position:absolute;inset:42% -20% -10%;border-radius:50% 50% 0 0;background:#b5d6a0}.town-green{position:absolute;inset:58% -20% -10%;border-radius:45% 45% 0 0;background:#9fca8d}.town-path{position:absolute;left:10%;right:10%;top:65%;height:24%;border-radius:50%;border:35px solid #e8d7b5;border-top-color:transparent;box-sizing:border-box;transform:rotate(-2deg)}.town-building{position:absolute;top:36%;width:34%;height:39%;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;z-index:3;filter:drop-shadow(0 7px 0 #71895030)}.town-building strong{position:absolute;bottom:0;left:-5%;right:-5%;background:#fff9e7;border:2px solid #dec8a0;border-radius:12px;color:#395d50;padding:7px 3px;font-size:14px}.town-home{left:6%;transform:rotate(-3deg)}.town-salon{right:5%;transform:rotate(3deg)}.roof{position:absolute;top:0;left:0;width:100%;height:40%;background:#d77d66;clip-path:polygon(50% 0,100% 80%,94% 100%,6% 100%,0 80%)}.house-body{position:absolute;top:34%;left:12%;width:76%;height:47%;background:#f8e7bd;border:3px solid #bb8861;border-radius:3px 3px 8px 8px}.window{position:absolute;top:15%;width:25%;height:29%;background:#a5d5d9;border:4px solid #fff9e7;border-radius:5px}.w1{left:8%}.w2{right:8%}.door{position:absolute;bottom:0;left:38%;width:25%;height:50%;background:#88a797;border:3px solid #567e70;border-bottom:0;border-radius:12px 12px 0 0}.salon-roof{position:absolute;left:8%;top:1%;width:84%;height:31%;background:#7aada5;border:3px solid #558b82;border-radius:16px 16px 0 0;color:#fff8e5;font-size:35px;line-height:1.3}.salon-body{position:absolute;left:9%;top:30%;width:82%;height:51%;background:#f2c3ab;border:3px solid #b88374;border-radius:0 0 8px 8px}.awning{position:absolute;top:0;left:-6%;width:112%;height:21%;background:repeating-linear-gradient(90deg,#fff4dd 0 15px,#d58083 15px 30px);border-radius:0 0 8px 8px}.salon-window{position:absolute;left:8%;top:29%;width:43%;height:50%;background:linear-gradient(135deg,#bee3df,#8dbdb6);border:4px solid #fff2db;border-radius:8px}.salon-door{position:absolute;right:7%;bottom:0;width:27%;height:65%;background:#6e9e95;border:3px solid #fce5cd;border-bottom:0;border-radius:6px 6px 0 0}.tree{position:absolute;font-size:68px;z-index:2;filter:drop-shadow(0 5px 0 #66895125)}.t1{left:-4%;top:24%}.t2{right:-5%;top:28%;font-size:85px}.t3{left:43%;top:40%;font-size:55px}.flowers{position:absolute;bottom:6%;color:#fff2ad;font-size:28px}.f1{left:3%}.f2{right:8%;color:#f3adc0}.town-walker{position:absolute;top:70%;width:70px;height:123px;transform:translate(-50%,-80%);z-index:5;pointer-events:none}.at-home{left:25%}.at-salon{left:75%}.walker-art{height:100%;position:relative;z-index:1}.walker-shadow{position:absolute;bottom:1px;left:15%;width:70%;height:10px;background:#527c6544;border-radius:50%}.walking .walker-art{animation:town-step .32s ease-in-out infinite alternate}.going-left .walker-art{transform:scaleX(-1)}@keyframes town-step{from{translate:0 0;rotate:-3deg}to{translate:0 -6px;rotate:3deg}}.city-caption{text-align:center;padding:18px 5px 12px}.city-caption h2{font-size:22px;margin:4px}.city-caption p{font-size:14px;color:#718070;line-height:1.5}.city-caption>.primary{padding:13px 24px}.salon-scene{position:relative;isolation:isolate;overflow:hidden;height:380px;max-height:53dvh;min-height:280px;background:repeating-linear-gradient(90deg,#f5ddca 0 34px,#efd3bd 34px 36px);border:5px solid #fffaf0;border-radius:30px}.salon-sign{position:absolute;top:6%;width:100%;text-align:center;font-size:13px;letter-spacing:2px;color:#5f8176;font-weight:bold}.salon-sign span{font-size:23px}.salon-mirror{position:absolute;top:19%;left:29%;width:42%;height:47%;border:9px solid #c69a60;border-radius:70px 70px 18px 18px;background:linear-gradient(125deg,#b6dcd7,#effaf2 47%,#aed2cb);box-shadow:0 6px 0 #b6865340}.mirror-shine{position:absolute;inset:5%;background:linear-gradient(125deg,transparent 25%,#ffffff90 26% 34%,transparent 35%)}.salon-floor{position:absolute;bottom:0;height:29%;width:100%;background:repeating-linear-gradient(0deg,#bd9978 0 30px,#a98768 31px 33px);z-index:-1}.salon-shelf{position:absolute;right:3%;top:40%;font-size:22px;border-bottom:9px solid #a7805b}.salon-plant{position:absolute;left:5%;bottom:18%;font-size:70px}.salon-chair{position:absolute;left:37%;top:57%;height:26%;width:26%;background:#80a99b;border:6px solid #4f7c70;border-radius:18px;z-index:2;box-shadow:0 10px 0 -4px #e4c19c}.salon-chair:after{content:'';position:absolute;top:100%;left:40%;height:30px;width:12px;background:#698079;border-bottom:7px solid #698079}.salon-character{position:absolute;left:38%;top:33%;width:24%;height:60%;z-index:3;transition:transform .5s}.salon-character.seated{transform:translateY(12px) scale(.9)}.salon-actions{display:flex;justify-content:center;gap:12px;margin-top:14px}@media(prefers-reduced-motion:reduce){.walking .walker-art{animation:none}.salon-character{transition:none}}@media(max-width:360px){.town-building strong{font-size:12px}.town-walker{width:59px;height:103px}.tree{font-size:55px}.city-caption h2{font-size:19px}}

nav:has([data-view="city"]){grid-template-columns:repeat(5,minmax(0,1fr))!important}nav:has([data-view="city"]) button{min-width:0}nav [data-view="city"] .nav-icon{font-size:25px;line-height:1.1}.town-expanded{height:510px;max-height:65dvh;min-height:350px}.town-routes{position:absolute;inset:0;width:100%;height:100%;z-index:1}.town-routes path{fill:none;stroke:#ecd6af;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.place-marker{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:105px;min-height:82px;padding:7px;background:#fff8e9;border:2px solid #c5b28e;border-radius:19px;z-index:3;box-shadow:0 4px #9dba8b;color:#3c6251}.place-marker>span{font-size:34px;line-height:1.2}.place-marker strong{font-size:12px;white-space:nowrap}.place-marker:active:not(:disabled){transform:translate(-50%,-50%) scale(.96)}.town-expanded .town-walker{width:52px;height:91px;z-index:4}.destination-scene{position:relative;isolation:isolate;height:520px;max-height:66dvh;min-height:300px;border:4px solid #fff9ec;border-radius:26px;overflow:hidden;background-size:cover;background-position:center}.destination-cafe{background-image:url('city-cafe.webp')}.destination-park{background-image:url('city-park.webp')}.destination-beach{background-image:url('city-beach.webp')}.destination-character{position:absolute;left:50%;top:76%;transform:translate(-50%,-80%);width:clamp(110px,23dvh,180px);height:clamp(193px,40dvh,315px);filter:drop-shadow(0 7px 3px #4b362c30)}.destination-character svg,.walker-art svg{width:100%;height:100%}.city-screen .city-caption{padding-top:10px}.city-screen .city-caption p{font-size:12px}.city-screen #main{padding-bottom:12px}@media(max-width:360px){.place-marker{width:88px;min-height:74px}.place-marker strong{font-size:11px}.place-marker>span{font-size:29px}nav:has([data-view="city"]) span{font-size:11px}}@media(prefers-reduced-motion:reduce){.town-expanded .walking .walker-art{animation:none}}

.city-entry{font-size:12px;padding:6px 10px;min-height:36px;margin-top:4px}.city-screen header{margin-bottom:8px}

/* Illustrated town, v107. Hotspots remain independent of background artwork. */
.town-scene.town-expanded{height:auto;min-height:0;max-height:none;aspect-ratio:2/3;background:#b9d9b0 url('city-map-v107.webp') center/100% 100% no-repeat;border:4px solid #fff9ec;border-radius:28px;box-shadow:0 6px 0 #c5d4ae,0 12px 26px #446e5120}
.town-expanded .town-sun,.town-expanded .town-cloud,.town-expanded .town-hill,.town-expanded .town-green,.town-expanded .town-routes{display:none}
.town-expanded .place-marker{width:30%;height:22%;min-height:0;padding:0;background:transparent;border:0;border-radius:20px;box-shadow:none;justify-content:flex-end;overflow:visible;color:#365c51;isolation:isolate}
.town-expanded .place-marker>span{display:none}
.town-expanded .place-marker strong{font-size:clamp(10px,2.9vw,13px);line-height:1.25;white-space:nowrap;padding:7px 11px;background:linear-gradient(#fffef4,#fff0d5);border:2px solid #fffaf0;border-radius:11px;box-shadow:0 3px 0 #b69c7080,0 5px 10px #395b4226;text-shadow:0 1px #fff}
.town-expanded .place-marker:hover:not(:disabled) strong{background:#fff9b7;box-shadow:0 3px 0 #b8a35d,0 0 0 3px #fff7be80}
.town-expanded .place-marker:focus-visible{outline:3px solid #186e68;outline-offset:2px;background:#fff5b430}
.town-expanded .place-marker small{position:absolute;top:calc(100% + 6px);font-size:9px;font-weight:800;letter-spacing:.2px;color:#2c6254;background:#fff9e9eb;padding:3px 7px;border-radius:10px;white-space:nowrap}
.town-expanded .place-marker:disabled{opacity:1;cursor:progress}
.town-expanded .town-walker{width:44px;height:77px;filter:drop-shadow(0 3px 2px #263d3620)}
@media(min-width:600px){.town-scene.town-expanded{max-width:480px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.town-expanded .place-marker{transition:none}}

/* Keep the character above destination labels while preserving travel anchors. */
.town-expanded .town-walker{transform:translate(-50%,calc(-100% - 76px))}

/* Give the player a readable silhouette against the detailed town. */
.town-expanded .town-walker{width:52px;height:91px;filter:none}
.town-expanded .walker-art{filter:drop-shadow(2px 0 0 #fffdf2) drop-shadow(-2px 0 0 #fffdf2) drop-shadow(0 2px 0 #fffdf2) drop-shadow(0 -2px 0 #fffdf2) drop-shadow(0 4px 3px #233e4080)}
.town-expanded .walker-shadow{left:6%;width:88%;height:12px;background:#294d5866;box-shadow:0 0 0 3px #fff6cfb3,0 3px 7px #28473840}

/* Fit the complete town map between header and navigation. */
body.city-screen:has(.town-expanded){height:100dvh;overflow:hidden;overscroll-behavior:none}
.city-screen:has(.town-expanded) .app{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px 14px calc(104px + env(safe-area-inset-bottom))}
.city-screen:has(.town-expanded) header{flex-shrink:0;margin-bottom:8px}
.city-screen:has(.town-expanded) #main{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 64px;gap:6px;padding-bottom:0;container-type:size}
.city-screen .town-scene.town-expanded{height:100%;width:min(100%,calc((100cqh - 70px)*2/3));max-width:none;min-height:0;max-height:none;aspect-ratio:2/3;margin:0 auto;align-self:center}
.city-screen:has(.town-expanded) .city-caption{padding:3px 0 0;min-height:0}
.city-screen:has(.town-expanded) .city-caption h2{font-size:18px;margin:0}
.city-screen:has(.town-expanded) .city-caption p{font-size:11px;margin:4px 0 0}
.town-expanded .town-walker{width:clamp(28px,8cqh,52px);height:clamp(49px,14cqh,91px);transform:translate(-50%,calc(-100% - clamp(44px,10cqh,76px)))}
@media(orientation:landscape) and (max-height:500px){.city-screen:has(.town-expanded) .app{padding-top:4px;padding-bottom:calc(72px + env(safe-area-inset-bottom))}.city-screen:has(.town-expanded) header{margin-bottom:3px}.city-screen:has(.town-expanded) #main{grid-template-rows:minmax(0,1fr) 24px}.city-screen .town-scene.town-expanded{width:min(100%,calc((100cqh - 30px)*2/3))}.city-screen:has(.town-expanded) .city-caption h2{display:none}.town-expanded .place-marker strong{font-size:8px;padding:3px 5px}.town-expanded .town-walker{width:22px;height:38px;transform:translate(-50%,calc(-100% - 32px))}}

.city-screen .town-scene.town-expanded{max-height:150cqw}

/* Interior scenes share the fixed-height city shell. */
body.city-screen{height:100dvh;overflow:hidden;overscroll-behavior:none}
.city-screen .app{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px 14px calc(104px + env(safe-area-inset-bottom))}
.city-screen header{flex-shrink:0;margin-bottom:8px}
.city-screen #main{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding-bottom:0}
.city-screen .salon-scene,.city-screen .destination-scene{flex:1;min-height:0;height:auto;max-height:none;width:100%}
.city-screen .city-caption{flex-shrink:0;padding:3px 0 0}
.city-screen .city-caption h2{font-size:18px;margin:0}
.city-screen .city-caption p{font-size:11px;line-height:1.35;margin:5px 0 8px}
.city-screen .city-caption>.primary{padding:10px 20px;min-height:44px;font-size:16px}
.city-screen .salon-actions{margin-top:8px;gap:8px}
.city-screen .salon-actions .chip{padding:8px 14px;min-height:40px}
.scene-back{position:absolute;left:10px;top:10px;z-index:8;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:2px solid #fffdf4;border-radius:15px;background:linear-gradient(#fffdf3,#f9e7ca);box-shadow:0 3px 0 #a8875c70,0 4px 10px #3c493225;color:#365c51;font-weight:800;font-size:14px;line-height:1.2}
.scene-back:focus-visible{outline:3px solid #16766c;outline-offset:2px}
.city-screen .salon-sign{top:19%;font-size:11px}
.city-screen .destination-character{height:70%;width:auto;aspect-ratio:4/7;max-width:38%;top:80%}
@media(max-height:600px){.city-screen .city-caption h2{font-size:15px}.city-screen .city-caption p{margin:3px 0 5px}.city-screen .salon-actions{margin-top:5px}.city-screen .salon-sign{display:none}}
@media(orientation:landscape) and (max-height:500px){.city-screen .app{padding-top:4px;padding-bottom:calc(72px + env(safe-area-inset-bottom))}.city-screen header{margin-bottom:3px}.city-screen #main:has(.salon-scene),.city-screen #main:has(.destination-scene){display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,34%);grid-template-rows:minmax(0,1fr);gap:10px}.city-screen .salon-scene,.city-screen .destination-scene{height:100%}.city-screen .city-caption{align-self:center}.scene-back{top:6px;left:6px;min-height:36px;padding:6px 10px;font-size:12px}}
