/* Page-local mascot overlay. Original map controls remain unchanged. */
.jd-mascot-controls{max-width:732px;margin:10px auto 0;padding:9px 14px;border:1px dashed #9bb5a6;border-radius:12px;background:#f6fbf5;color:#375447;font:12px/1.6 system-ui,sans-serif;display:flex;gap:5px 14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.jd-mascot-controls a{color:#275e49;font-weight:700}.jd-mascot-controls small{display:block;font-size:10px;color:#6c7d73}.jd-friend{position:absolute;top:100px;right:12px;z-index:700;pointer-events:none;font-family:inherit}.jd-friend [hidden]{display:none!important}.jd-friend button{pointer-events:auto;font-family:inherit;cursor:pointer}.jd-friend-avatar{display:block;width:74px;height:100px;padding:0;border:0;background:none;filter:drop-shadow(0 4px 3px #122e2630);transform-origin:50% 90%;animation:jd-friend-breathe 7s ease-in-out infinite}.jd-friend-avatar svg{width:100%;height:100%;overflow:visible}.jd-friend-bubble{position:absolute;right:82px;top:0;width:max-content;max-width:min(180px,calc(100vw - 140px));box-sizing:border-box;padding:7px 29px 7px 10px;border:1px solid #c7d9c8;border-radius:14px 14px 4px 14px;background:#fffef8;color:#304b3d;box-shadow:0 6px 16px #203c2320;pointer-events:auto}.jd-friend-bubble::after{content:'';position:absolute;right:-5px;top:19px;width:8px;height:8px;transform:rotate(45deg);background:#fffef8;border-top:1px solid #c7d9c8;border-right:1px solid #c7d9c8}.jd-friend-bubble p{margin:0;font-size:13px;line-height:1.45;word-break:keep-all}.jd-friend-bubble strong{display:block;font-size:13px;margin-bottom:1px}.jd-friend-close{position:absolute;right:1px;top:1px;width:28px;height:28px;border:0;background:transparent;color:#627969;font-size:20px}.jd-friend-controls{display:flex;gap:5px;flex-wrap:wrap}.jd-friend-controls button{min-height:30px;padding:4px 8px;font-size:10px;border:1px solid #d8e3d5;border-radius:20px;background:#f0f6ed;color:#47634f}.jd-friend-label{display:block;text-align:center;font-size:10px;background:#fffdf2e8;border-radius:12px;color:#375447;padding:3px 5px;margin-top:4px}.jd-friend button:focus-visible{outline:3px solid #2e7357;outline-offset:3px}.jd-friend[data-paused=true] .jd-friend-avatar{animation:none}.street-welcome-open .jd-friend-bubble{visibility:hidden}.culture-detail-open .jd-friend{visibility:hidden}.jd-friend[data-obscured=true]{visibility:hidden}@keyframes jd-friend-breathe{0%,70%,100%{transform:translateY(0) rotate(0)}80%{transform:translateY(-3px) rotate(-2deg)}90%{transform:translateY(-1px) rotate(2deg)}}@media(prefers-reduced-motion:reduce){.jd-friend-avatar{animation:none!important}}@media(max-width:380px){.jd-friend{right:8px;top:88px}.jd-friend-avatar{width:62px;height:86px}.jd-friend-bubble{right:68px;max-width:min(180px,calc(100vw - 164px));padding:7px 29px 7px 9px}.jd-friend-bubble p{font-size:13px}.jd-mascot-controls{margin:8px 20px 0}}

@media(max-width:380px){.jd-friend-bubble strong{font-size:13px}}
.jd-mascot-controls .jd-friend-controls button:focus-visible{outline:3px solid #2e7357;outline-offset:2px}

/* Compact settings remain outside the map and available when the mascot is hidden. */
.jd-mascot-controls{box-sizing:border-box;width:100%;max-width:449px;margin:4px auto 8px;padding:0;border:0;border-radius:0;background:none;display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap;font:12px/1.4 system-ui,sans-serif}.jd-mascot-controls [hidden]{display:none!important}.jd-mascot-controls button{min-height:36px;cursor:pointer}.jd-mascot-controls button:focus-visible{outline:3px solid #2e7357;outline-offset:2px}
