/* One place at a time, with the selected friend and its controls together. */
.adventure-mode{background:#eff5e7}.adventure-mode .game{max-width:1040px;padding:20px 24px}.adventure-mode .topbar{margin-bottom:14px}.adventure-mode .friends-section{margin:0 0 14px}.adventure-mode .friends-heading{margin-bottom:7px}.adventure-mode .friends-heading h2{font-size:13px}.adventure-mode .friends-heading>span{display:none}.adventure-mode .friends{gap:8px}.adventure-mode .friend{display:flex;align-items:center;gap:8px;padding:6px;border-radius:15px;background:#fffdf4}.adventure-mode .friend img{width:45px;height:45px}.adventure-mode .friend b{font-size:12px}.adventure-mode .friend small{display:none}.adventure-mode .friend .chosen{right:4px;top:2px;font-size:10px}
.place-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.place-nav button{border:1px solid #c5d7b6;border-bottom:3px solid #c5d7b6;border-radius:16px;background:#fffef5;padding:10px 4px;font-size:14px;font-weight:bold;min-height:54px}.place-nav button span{margin-right:7px}.place-nav button[aria-pressed=true]{color:white;background:#246b50;border-color:#174e39}.place-nav button.is-travelling{background:#fff0b1;border-color:#e1b647;color:#604718}.journey-status{font-size:13px;text-align:center;min-height:20px;margin:9px 0;color:#436b52}.adventure-mode .forest-section{margin:0;border-radius:22px}.adventure-mode .forest-heading{padding:13px 18px}.adventure-mode .forest-heading h1{font-size:21px}.adventure-mode .forest-heading p{font-size:12px}.adventure-mode .start-forest{padding:9px 12px;font-size:13px;min-height:44px}.adventure-mode .forest-scroll{overflow:hidden}.adventure-mode .forest-world{width:100%;min-width:0;max-height:560px;aspect-ratio:1.6;background-size:100% 100%;touch-action:pan-y}.adventure-mode .forest-tip{display:none}.adventure-mode .forest-home{display:none}.adventure-mode .forest-actor{touch-action:none;user-select:none;-webkit-user-select:none;min-width:44px;min-height:44px}.adventure-mode .actor-name{font-size:11px;padding:3px 7px;bottom:-4%}.adventure-mode .actor-bubble{font-size:11px;max-width:140px;min-width:65px;padding:5px 8px}.adventure-mode .forest-actor[aria-pressed=true]{filter:drop-shadow(0 0 5px #fff5a9)}.adventure-mode .forest-actor.is-dragging{z-index:100!important;filter:drop-shadow(0 0 8px #fff3a4)}
.map-station{position:absolute;z-index:110;display:flex;flex-direction:column;align-items:center;border:2px solid #fff9d1;border-bottom:4px solid #926944;border-radius:14px;padding:5px 9px;min-width:52px;min-height:50px;background:#fff4d3ed;box-shadow:0 4px 9px #264a3520;transform:translate(-50%,-50%)}.map-station:hover,.map-station:active{transform:translate(-50%,-50%)}.map-station span{font-size:23px;line-height:1.1}.map-station b{font-size:10px}.station-food{left:85%;top:52%}.station-bath{left:22%;top:76%;background:#d9f7ff}.station-clinic{left:69%;top:25%;background:#f3f8ec}.station-home{left:21%;top:29%;background:#e6e0f8}.walk-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;background:#fcfff6}.walk-controls>span{font-size:13px;font-weight:bold;min-width:70px}.walk-controls button{border:1px solid #b9d0a3;border-bottom:3px solid #aec793;border-radius:12px;background:#e4f0d7;font-size:25px;min-width:48px;height:46px;touch-action:manipulation}.group-play{border-top:1px solid #d3e2c5;background:#fafff3}.group-play summary,.speech-drawer>summary{cursor:pointer;min-height:44px;padding:12px 15px;font-weight:bold;font-size:13px}.adventure-mode .forest-toolbar{padding:10px;gap:8px}.adventure-mode .forest-toolbar button{min-height:44px;font-size:12px}.adventure-mode .forest-status{padding:8px 14px;font-size:12px;min-height:33px}.adventure-mode .play-layout{gap:18px;grid-template-columns:minmax(0,1fr) 245px}.adventure-mode .pet-room{padding:16px;min-height:0}.back-to-forest{border:1px solid #cfddc4;border-radius:20px;background:#fffdf7;padding:8px 12px;min-height:40px;font-size:12px}.adventure-mode .speech{margin:9px auto;min-height:38px;font-size:14px;padding:8px 12px;line-height:1.35}.room-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;height:285px;background:#d9eccb}.room-backdrop{position:absolute;inset:0;z-index:-2;background:linear-gradient(#ffffff22,#f8e9bb33),url('assets/floresta.png') center 42%/cover}.room-stage:after{content:'';position:absolute;bottom:-15%;height:45%;width:110%;left:-5%;border-radius:50%;background:#bfd68e;z-index:-1}.adventure-mode .room-stage .pet-touch{height:100%;width:78%;margin:auto;padding-bottom:14px}.room-props span{display:none;position:absolute;font-size:65px;left:6%;top:14%;filter:drop-shadow(0 3px 0 #fff9);z-index:-1}.adventure-mode .pet-caption{padding-top:7px}.adventure-mode .pet-caption h1{font-size:25px}.adventure-mode .pet-caption p{display:none}.adventure-mode .voice-button{font-size:16px;padding:8px 11px;min-height:40px}.adventure-mode .pet-tools{margin-left:auto;max-width:none}.room-hint{font-size:12px;color:#52715a;margin:6px 0;line-height:1.4}.adventure-mode .action-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.adventure-mode .action-row .action{flex:1;min-width:110px;min-height:48px;font-size:14px;padding:10px;gap:6px}.adventure-mode .action-row .action>span:first-child{font-size:23px}.adventure-mode .action-row .feed,.adventure-mode .action-row .wash,.adventure-mode .action-row .medicine,.adventure-mode .action-row .sleep{display:none}.adventure-mode[data-place=food] .action-row .feed,.adventure-mode[data-place=bath] .action-row .wash,.adventure-mode[data-place=clinic] .action-row .medicine,.adventure-mode[data-place=home] .action-row .sleep{display:flex}.adventure-mode .medicine{background:#d9efda;border-color:#b1d3b3}.adventure-mode .go-clinic{background:#ffe3c2;border-color:#edc28f}.belly-notice{font-size:12px;line-height:1.4;color:#955527;padding:7px 0 0;min-height:22px}.adventure-mode .habitat-card{display:none}.adventure-mode .care-panel{padding:14px;border:1px solid #d7e2ca;border-radius:22px;background:#fffef5}.adventure-mode .care-heading>span:last-child{font-size:18px}.adventure-mode .speech-drawer{margin-top:12px;border:1px solid #d4dfcc;border-radius:18px;background:#fffdf4}.adventure-mode .pet-speech{margin:0;border:0;border-radius:0 0 18px 18px}.adventure-mode footer{font-size:11px;margin-top:12px}
.meal-dish,.bath-tub,.sick-cloud,.room-sparkles{pointer-events:none}.meal-dish{display:none;position:absolute;bottom:8px;left:36%;width:28%;height:34px;border:4px solid #fff5cf;border-radius:50%;background:#e3ae72;box-shadow:0 4px 0 #916842}.meal-dish span{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:39px}.bath-tub{display:none;position:absolute;bottom:0;left:17%;width:66%;height:55px;border-radius:12% 12% 40% 40%;background:linear-gradient(#beeef3 25%,#81c9d6 27%,#5b9fab);border:4px solid #d4f4f5;box-shadow:0 4px 0 #3c7d8a}.bath-tub:before{content:'○  ◦ ○ ◦  ○';display:block;color:white;letter-spacing:5px;position:absolute;top:-21px;left:12%;font-size:30px;white-space:nowrap}.room-sparkles{display:none;position:absolute;left:10%;top:25%;width:80%;color:white;font-size:48px;text-align:center;text-shadow:0 0 8px #cae879;letter-spacing:20px}.sick-cloud{display:none;position:absolute;right:13%;top:8%;font-size:36px}.is-sick .sick-cloud{display:block}.is-sick .room-stage .pet-touch{filter:saturate(.73)}
[data-place=food] .food-prop,[data-place=bath] .bath-prop,[data-place=clinic] .clinic-prop,[data-place=home] .home-prop{display:block}[data-place=food] .meal-dish{display:block}[data-place=food] .room-stage:after{background:#d7b886;border-radius:12px;height:24%;bottom:0;transform:perspective(200px) rotateX(10deg)}[data-place=bath] .bath-tub{display:block}[data-place=bath] .room-backdrop{background:linear-gradient(#d4f7ffa8,#a5dfeaaa),url('assets/floresta.png') 20% 90%/cover}[data-place=bath] .room-stage:after{background:#91cfd4}[data-place=clinic] .room-backdrop{background:linear-gradient(135deg,#e9f5ddd9,#fff7e5dd),url('assets/floresta.png') center/cover}[data-place=clinic] .room-stage:after{background:#c0d8ad}[data-place=clinic] .clinic-prop{left:9%;top:9%;background:#fffdf5;border-radius:15px;font-size:35px;padding:7px;box-shadow:0 3px 0 #a6bd94}[data-place=home] .room-backdrop{background:linear-gradient(#24374ba8,#73577da8),url('assets/floresta.png') center/cover}[data-place=home] .room-stage:after{background:#a79dbd}[data-place=home] .home-prop{color:#ffefba}[data-place=home] .pet-room{background:#f6f1fb}.room-stage[data-reaction=feed] .meal-dish span{animation:nibble 2.6s ease-in-out}.room-stage[data-reaction=wash] .bath-tub:before{animation:suds .8s ease-in-out infinite}.room-stage[data-reaction=medicine] .room-sparkles{display:block;animation:sparkle .9s ease-in-out 3}.room-stage[data-reaction=pet] .room-sparkles{display:block;color:#ffa8bb;animation:sparkle .9s ease-in-out 2}@keyframes nibble{0%,20%,40%,60%{transform:translate(-50%,0) scale(1)}10%,30%,50%,70%{transform:translate(-50%,-35px) scale(.8)}85%,100%{transform:translate(-50%,0) scale(.45);opacity:.3}}@keyframes suds{50%{transform:translateY(-26px);opacity:.5}}@keyframes sparkle{50%{transform:scale(1.15);opacity:.35}}
@media(max-width:650px){.adventure-mode .game{padding:10px 9px;max-width:540px}.adventure-mode .topbar{margin-bottom:10px}.adventure-mode .brand-mark{height:34px;width:34px;font-size:24px;border-radius:12px}.adventure-mode .brand small{font-size:8px}.adventure-mode .brand strong{font-size:22px}.adventure-mode .round-button{width:36px;height:36px}.adventure-mode .hearts{font-size:14px;padding:7px}.adventure-mode .friends-section{margin-bottom:10px}.adventure-mode .friends{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.adventure-mode .friend{display:block;padding:4px 1px 6px;border-radius:12px;min-height:65px}.adventure-mode .friend img{width:100%;height:39px}.adventure-mode .friend b{font-size:10px}.adventure-mode .friend[aria-pressed=true]{box-shadow:0 2px 0 #185b47}.adventure-mode .friends-heading{margin-bottom:5px}.adventure-mode .friends-heading h2{font-size:11px}.place-nav{gap:4px}.place-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;padding:6px 1px;border-radius:12px;min-height:54px}.place-nav button span{font-size:21px;margin:0}.journey-status{font-size:11px;line-height:1.3;min-height:16px;margin:7px 0}.adventure-mode .forest-heading{padding:9px 11px;flex-wrap:nowrap;gap:6px}.adventure-mode .forest-heading h1{font-size:17px;margin:0}.adventure-mode .forest-heading p{display:none}.adventure-mode .start-forest{font-size:11px;min-height:36px;padding:7px 10px}.adventure-mode .forest-world{aspect-ratio:1.22;max-height:none}.adventure-mode .forest-actor{width:20%;height:26%}.adventure-mode .forest-actor[data-pet-id=miauco]{width:25%;height:29%}.adventure-mode .actor-name{font-size:9px;padding:3px 5px}.adventure-mode .actor-bubble{max-width:100px;font-size:10px}.map-station{padding:4px 5px;min-height:44px;min-width:48px;border-radius:11px}.map-station span{font-size:21px}.map-station b{font-size:8px}.walk-controls{gap:6px;padding:7px}.walk-controls>span{font-size:11px;min-width:55px}.walk-controls button{min-width:43px;height:42px;font-size:22px}.group-play summary{font-size:12px;padding:10px 12px}.adventure-mode .forest-status{font-size:10px;padding:7px 10px}.adventure-mode .play-layout{display:flex;flex-direction:column;gap:10px}.adventure-mode .pet-room{border-radius:20px;padding:11px;min-height:0}.adventure-mode .room-heading .eyebrow{font-size:10px;letter-spacing:.6px}.back-to-forest{font-size:10px;min-height:34px;padding:7px 10px}.adventure-mode .speech{font-size:12px;line-height:1.3;margin:7px auto;padding:7px 10px;min-height:32px}.room-stage{height:clamp(145px,29svh,245px);border-radius:17px}.adventure-mode .room-stage .pet-touch{height:100%;padding-bottom:7px}.room-props span{font-size:42px}.meal-dish{height:25px;border-width:3px;bottom:4px}.meal-dish span{font-size:29px;bottom:7px}.bath-tub{height:39px}.bath-tub:before{font-size:23px;top:-17px}.adventure-mode .pet-caption{flex-wrap:nowrap;gap:5px;padding-top:5px}.adventure-mode .pet-caption h1{font-size:20px;margin:0}.adventure-mode .pet-tools{gap:4px;flex-wrap:nowrap}.adventure-mode .voice-button{font-size:13px;min-height:34px;padding:6px 8px}.adventure-mode .voice-button span{font-size:10px}.room-hint{font-size:10px;margin:4px 0}.adventure-mode .action-row{gap:6px;margin-top:6px}.adventure-mode .action-row .action{font-size:12px;min-height:45px;min-width:100px;padding:8px}.adventure-mode .action-row .action>span:first-child{font-size:21px}.belly-notice{font-size:11px;padding-top:6px}.adventure-mode .care-panel{padding:12px;margin:0}.adventure-mode .care-heading{margin-bottom:10px;flex-direction:row;justify-content:space-between}.adventure-mode .care-heading>span:last-child{font-size:14px}.adventure-mode .needs{grid-template-columns:1fr 1fr;gap:10px 15px}.adventure-mode .need-label{font-size:11px;margin-bottom:4px}.adventure-mode .friendship{margin-top:12px}.adventure-mode .play-button{margin-top:10px;padding:10px;font-size:14px}.adventure-mode footer{font-size:10px;gap:4px}.adventure-mode .speech-drawer{margin-top:10px}.sick-cloud{font-size:27px}}
@media(prefers-reduced-motion:reduce){.room-stage *{animation:none!important}}
.adventure-mode .place-nav{position:sticky;top:0;z-index:200;background:#eff5e7;padding:4px 0}.adventure-mode .place-nav button:hover{transform:none}

.adventure-mode #forestScene,.adventure-mode #careScene{scroll-margin-top:78px}
/* Avoid expensive filtered layers while the six characters move on touch screens. */
.adventure-mode .forest-actor.has-sprite img{animation:none!important}
@media(max-width:650px),(pointer:coarse){
 .adventure-mode .forest-actor,.adventure-mode .forest-actor[aria-pressed=true],.adventure-mode .forest-actor.is-dragging{filter:none!important}
 .adventure-mode .forest-actor:before{filter:none}
 .adventure-mode .forest-firefly{animation:none;opacity:.5}
 .adventure-mode .room-stage{height:clamp(145px,29vh,245px);height:clamp(145px,29svh,245px)}
 .adventure-mode .place-nav button,.adventure-mode .action,.adventure-mode .walk-controls button{touch-action:manipulation}
}
/* Keep destination controls outside the walkable space so no friend walks behind them. */
.map-places{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;background:#fcfff6;border-top:1px solid #d3e2c5}
.map-places .map-station{position:static;transform:none;min-width:0;min-height:44px;padding:5px;border-radius:12px;box-shadow:none;z-index:auto}
.map-places .map-station:hover,.map-places .map-station:active{transform:none}
.map-places .map-station span{font-size:20px}.map-places .map-station b{font-size:10px}
@media(max-width:650px){.map-places{gap:4px;padding:6px}.map-places .map-station{padding:4px}.map-places .map-station b{font-size:9px}}
