/* The map is the main play surface; controls stay in consistent, thumb-sized places. */
.explore-game .map-topline{margin:0 0 12px!important;padding:0!important;border:0;display:flex;align-items:center;gap:12px}
.explore-game .map-topline>div:first-child{padding:0;background:none;flex:1}
.explore-game .map-topline h1,.explore-game .map-topline>div:first-child h1{color:#234b3b;font-size:30px!important;margin:4px 0!important}
.explore-game .map-topline>div:first-child .eyebrow{color:#63765c;font-size:9px}.map-topline .map-mode{display:none}
.explore-game .world-stage{height:600px!important;min-height:440px!important;border:2px solid #bbceac;outline:0;border-radius:24px!important;margin:0!important;background:#dae8cf}
.world-stage[data-map-theme=atlas] .leaflet-tile-pane{filter:sepia(.14) saturate(.85) brightness(1.02)}
.world-stage .map-location{top:12px!important;left:12px!important;max-width:calc(100% - 74px);font:600 11px/1.4 system-ui!important;padding:8px 12px!important;pointer-events:none}
.map-view-controls{position:absolute;z-index:450;left:12px;right:12px;bottom:24px;display:flex;gap:8px;align-items:center;pointer-events:none}
.map-view-controls>span{font:650 11px system-ui;background:#fffdf1e8;border-radius:20px;padding:10px 12px;margin-right:auto;color:#244c39}
.map-view-controls button,.world-stage .recenter-map{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:44px!important;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:10px 14px!important;border-radius:22px!important;font:700 12px system-ui;background:#fffdf1!important;color:#284e3a;border:1px solid #b0c4a5!important;box-shadow:0 3px 12px #173e3220;pointer-events:auto;cursor:pointer}
.world-stage[data-follow=false] .recenter-map{background:#284e3a!important;color:#fffbed!important}.map-view-controls button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #53764b}
.map-tools{position:absolute;z-index:650;left:12px;top:54px;color:#284e3a;font:600 12px system-ui;max-width:calc(100% - 24px)}
.map-tools>summary{list-style:none;cursor:pointer;min-height:44px;padding:13px 16px;border:1px solid #b6c7a7;border-radius:22px;background:#fffdf1f5;box-sizing:border-box;box-shadow:0 3px 12px #173e3218}
.map-tools>summary::-webkit-details-marker{display:none}.map-tools>summary:after{content:' ⌄';margin-left:8px}.map-tools[open]>summary:after{content:' ⌃'}
.map-tools-content{display:flex;flex-wrap:wrap;gap:8px;align-items:start;padding:12px;margin-top:7px;border:1px solid #bdcbb0;border-radius:16px;background:#fffdf1;width:284px;max-width:100%;box-sizing:border-box;max-height:380px;overflow:auto;box-shadow:0 12px 24px #173e3228}
.world-stage .map-tools .map-expand,.world-stage .map-tools .map-name-toggle{position:static;min-height:44px;font:650 12px system-ui;border-radius:10px;padding:10px 12px;margin:0;box-shadow:none;background:#edf1e2;color:#284e3a;flex:1}
.world-stage .map-key{position:static;box-shadow:none;border:0;border-top:1px solid #d4ddc8;background:none;border-radius:0;width:100%;max-width:none;padding:8px 0 0;font-size:12px}.map-key summary{min-height:44px!important;align-content:center}.map-key small{max-width:none}
.world-stage .map-appearance,.world-stage .map-appearance[open]{position:static;width:100%;max-width:none;box-shadow:none;padding:0;border:0;background:none;flex-basis:100%}.map-appearance>summary{background:#edf1e2;border-radius:10px;border:0;box-shadow:none;font-size:12px}.map-appearance[open]>strong{font-size:23px}.map-theme-options button{min-height:110px;font-size:11px}
.world-stage .leaflet-control-scale{position:static;margin:0 0 79px 12px!important}.world-stage .leaflet-control-zoom{margin:12px 12px 0 0}.world-stage .leaflet-control-zoom a{width:40px!important;height:40px!important;line-height:40px!important}.world-stage .leaflet-control-attribution{font-size:8px!important;max-width:100%}
.map-start{position:absolute;z-index:430;inset:105px 14px 88px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#f7f9ebee;border:1px solid #cbd8bd;backdrop-filter:blur(5px);border-radius:24px;padding:16px;max-width:420px;margin:auto;box-shadow:0 12px 45px #31583a20}
.map-start[hidden]{display:none}.map-start-explorer{width:85px;height:105px;flex:none}.map-start-explorer svg{width:100%;height:100%}.map-start>strong{font:26px/1.15 Georgia,serif;color:#264e3b}.map-start p{font:14px/1.5 system-ui;margin:10px 0 14px;max-width:280px}.map-start .primary{min-height:48px;width:100%;max-width:275px;justify-content:center}.map-start a{font:650 12px system-ui;min-height:42px;align-content:center;color:#375e45}
.wildlife-map-pin{border:0;background:none;text-align:center;cursor:pointer;filter:drop-shadow(0 5px 4px #203c3426)}
.map-animal-portrait{display:block;width:62px;height:62px;margin:0 auto;background:radial-gradient(ellipse at 35% 20%,#fffce8,#e0e7bb);border:3px solid #fffaf0;border-radius:50%;outline:2px solid #6d8c56;box-sizing:border-box;overflow:hidden;position:relative}
.map-animal-portrait>.racer-art,.map-animal-portrait>.event-art{width:100%!important;height:100%!important;border:0!important;border-radius:50%;margin:0!important;box-shadow:none!important;background-color:transparent}
.wildlife-map-pin small{display:block;background:#254f3fed;color:#fffbed;border-radius:8px;padding:4px 6px;font:700 10px/1.2 system-ui;white-space:normal;width:max-content;max-width:110px;position:relative;left:50%;transform:translateX(-50%);margin-top:3px}
.wildlife-map-pin b{display:inline-block;font:700 9px/1.2 system-ui;background:#fffbed;color:#274c3a;padding:3px 6px;border-radius:0 0 7px 7px}
.wildlife-map-pin.is-selected .map-animal-portrait{outline:3px solid #b08029;box-shadow:0 0 0 7px #f6e3a977}.wildlife-map-pin.is-rare .map-animal-portrait{outline-color:#b48633;background:#f5e4b5}
.map-pin-count{position:absolute;right:0;top:-4px;border:2px solid #fffbed;border-radius:50%;background:#345a42;color:white;min-width:24px;height:24px;align-content:center;font:750 12px/24px system-ui;box-shadow:0 2px 8px #173e3233}
.map-hide-names .wildlife-map-pin small,.map-hide-names .wildlife-map-pin b{display:none}
.explorer-avatar .player-figure{width:66px;height:84px;filter:drop-shadow(0 3px 2px #24453240)}.explorer-avatar .player-figure svg{width:66px;height:84px}.player-you{position:absolute;left:50%;transform:translateX(-50%);bottom:-11px;background:#264d3a;color:#fffbe9;padding:3px 9px;border:2px solid #fff9e3;border-radius:12px;font:750 10px system-ui}
.explorer-avatar .player-figure.is-walking{animation:none}.player-figure.is-walking .explorer-arm-left,.player-figure.is-walking .explorer-leg-right{animation:explorer-step .55s ease-in-out infinite alternate;transform-origin:90px 135px}.player-figure.is-walking .explorer-arm-right,.player-figure.is-walking .explorer-leg-left{animation:explorer-step .55s ease-in-out infinite alternate-reverse;transform-origin:90px 135px}@keyframes explorer-step{from{transform:translateY(-2px) rotate(-3deg)}to{transform:translateY(2px) rotate(3deg)}}
.map-nearby{margin:14px 0 12px;padding:14px 16px;background:#f4f6e9;border:1px solid #d3dfc6;border-radius:18px}.map-nearby[hidden]{display:none}.nearby-strip-title{display:flex;align-items:center;gap:10px;justify-content:space-between;color:#2d523d}.nearby-strip-title>strong{font:700 15px system-ui}.nearby-strip-title>strong>span{font-size:11px;padding:3px 7px;background:#e0e9d3;border-radius:20px}.nearby-strip-title>small{font:11px system-ui}.nearby-strip{display:flex;gap:10px;overflow-x:auto;padding:12px 1px 5px;scroll-snap-type:x proximity}.nearby-strip button{display:flex;align-items:center;gap:8px;flex:none;max-width:220px;min-height:66px;padding:8px 12px 8px 6px;border:1px solid #c8d5b9;border-radius:14px;background:#fffdf2;color:#284e3a;cursor:pointer;scroll-snap-align:start;text-align:left}.nearby-strip button[aria-pressed=true]{border:2px solid #98752e;background:#fff4ce}.nearby-strip .racer-art,.nearby-strip .event-art{height:47px!important;width:47px!important;flex:none;margin:0!important}.nearby-strip strong{font:700 12px system-ui;display:block}.nearby-strip small{font:11px system-ui;display:block;margin-top:6px}
.map-selection{position:absolute;z-index:600;left:50%;bottom:78px;transform:translateX(-50%);width:360px;max-width:calc(100% - 24px);padding:16px;box-sizing:border-box;border:1px solid #bacdad;border-radius:20px;background:#fffcf0;box-shadow:0 12px 40px #1b3c3240;color:#294e3c}.map-selection[hidden]{display:none}.map-close-choice{position:absolute;right:6px;top:6px;width:44px;height:44px;border:0;background:transparent;color:#294e3c;font:25px system-ui;cursor:pointer}.map-choice-animal{display:flex;align-items:center;gap:12px;padding-right:26px}.map-choice-animal>.racer-art,.map-choice-animal>.event-art{width:58px!important;height:58px!important;flex:none;margin:0!important}.map-choice-animal>div>small{display:block;font:700 9px system-ui;letter-spacing:1px;color:#7b7a4e}.map-choice-heading{display:block;font:25px/1.1 Georgia,serif;margin:4px 0}.map-choice-animal>div>span{display:block;font:11px system-ui}.map-goal-progress{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin:12px 0 0;font:650 11px system-ui}.map-goal-progress progress{width:100%;height:7px;accent-color:#729657;border:0;border-radius:10px;overflow:hidden}.map-goal-progress progress::-webkit-progress-bar{background:#e8ebd9}.map-goal-progress progress::-webkit-progress-value{background:#739b52}.map-goal-status{font:12px/1.45 system-ui;margin:10px 0}.map-selection .primary{min-height:46px;width:100%;justify-content:center;font-size:13px}
.map-group-list{max-height:210px;overflow:auto;display:grid;gap:6px}.map-group-list button{display:flex;gap:10px;align-items:center;background:#f0f4e7;border:1px solid #d1dfc3;padding:8px;border-radius:12px;min-height:60px;text-align:left;color:#294e3c;font:650 13px system-ui}.map-group-list .racer-art,.map-group-list .event-art{width:44px!important;height:44px!important;flex:none;margin:0!important}.map-group-list button>span:last-child{margin-left:auto}.map-group-list small{display:block;font-size:11px;margin-top:5px}.map-selection>p{font:12px/1.5 system-ui}.has-selection .leaflet-control-scale{display:none}.map-selection .map-choice-heading:focus{outline:none}
.map-view-controls button:focus-visible,.wildlife-map-pin:focus-visible,.nearby-strip button:focus-visible,.map-tools summary:focus-visible,.map-selection button:focus-visible{outline:3px solid #b38a31;outline-offset:3px}
.map-network:empty{display:none}.world-stage .map-network{top:102px;left:12px;right:62px;bottom:auto;z-index:460;background:#fff7dd;font:11px/1.4 system-ui;border-radius:8px}
.explore-game .adventure-start .today-adventure{padding:14px 18px;margin:12px 0;gap:14px}.adventure-start .mini-explorer{width:60px}.adventure-start .today-adventure h2{font-size:22px}.adventure-start .today-adventure p{font-size:12px}.adventure-start .adventure-shortcuts{margin-top:8px}.adventure-start .today-adventure details{margin-top:6px}
@media(max-width:700px){.explore-game .map-topline{display:flex!important;padding:4px!important;margin-bottom:9px!important}.explore-game .map-topline>div:first-child{padding:0!important}.explore-game .map-topline>div:first-child h1{font-size:22px!important;max-width:230px}.map-topline .eyebrow{display:none}.explore-game .map-topline .map-locate-action{font-size:11px;padding:10px 13px;flex:none}.explore-game .world-stage{height:calc(100dvh - 220px)!important;min-height:480px!important;max-height:700px}.world-stage .map-location{font-size:9px!important;max-width:calc(100% - 80px);padding:8px 10px!important}.map-view-controls{gap:6px;left:10px;right:10px}.map-view-controls>span{font-size:9px;padding:8px;max-width:84px;line-height:1.4}.map-view-controls button,.world-stage .recenter-map{padding:10px 11px!important;font-size:11px}.map-tools{left:10px;top:51px}.map-tools>summary{font-size:11px;padding:13px}.map-tools-content{max-height:310px}.map-start{inset:104px 12px 88px;padding:12px}.map-start>strong{font-size:24px}.map-start p{font-size:12px;max-width:255px}.map-start-explorer{height:95px}.map-selection{padding:13px;bottom:77px}.map-choice-heading{font-size:23px}.map-goal-status{font-size:11px}.nearby-strip-title{align-items:start;flex-direction:column;gap:6px}.map-nearby{margin:12px 0;padding:12px}.nearby-strip-title>small{font-size:11px}.world-stage.map-expanded{height:auto!important;max-height:none;min-height:0!important;inset:8px 8px calc(78px + env(safe-area-inset-bottom))!important}.map-expanded .map-selection{bottom:78px}.adventure-start .today-adventure .mini-explorer{display:none}.map-bottom-note{margin-top:4px}.map-bottom-note>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.player-figure *,.catch-reach-ring{animation:none!important;transition:none!important}}
/* Sprite spans need a box in the map as well as in the collection. */
.map-animal-portrait .racer-art,.map-nearby .racer-art,.map-selection .racer-art{display:block}
.explore-game .map-topline>.map-locate-action:first-of-type{display:inline-flex!important;align-items:center;justify-content:center}
@media(max-width:700px){.explore-game .map-topline{flex-wrap:nowrap!important}.explore-game .map-topline>div:first-child{flex:1 1 auto!important;min-width:0}.explore-game .map-topline .map-locate-action{flex:0 0 auto!important}.explore-game .world-stage{height:calc(100dvh - 290px)!important;min-height:440px!important}.world-stage.map-expanded{height:auto!important;min-height:0!important}}
.map-pin-tether{display:block;position:absolute;top:61px;height:0;border-top:2px dotted #476a48;z-index:-1;pointer-events:none}
.walk-start-details{border:1px solid #d1dac4;border-radius:12px;padding:0 13px;margin:14px 0;font-size:12px;line-height:1.6}.walk-start-details>summary{min-height:48px;cursor:pointer;font-weight:650;align-content:center}.walk-start-details .wildlife-safety{font-size:12px}.walk-start-safety{padding:13px;background:#edf2e1;border-radius:12px;font-size:14px!important}
.world-stage[data-has-location=false] .map-view-controls{display:none}
.map-exit{display:none;position:absolute;right:63px;top:54px;z-index:651;min-height:44px;padding:10px 13px;border:1px solid #eee2bb;border-radius:22px;background:#284f3d;color:#fffbed;font:700 11px system-ui}.map-expanded .map-exit{display:block}.map-exit:focus-visible{outline:3px solid #b38a31;outline-offset:3px}

/* One first step, with practice and optional adventures kept easy to find. */
.map-start{inset:104px 12px auto;min-height:0;padding:16px;box-sizing:border-box}
.map-start-explorer{width:58px;height:70px}
.map-start>strong{font-size:24px}
.map-start p{font-size:13px;margin:8px 0 12px}
.map-start .map-practice-link{display:flex;align-items:center;justify-content:center;min-height:44px;line-height:1.4;width:100%;max-width:290px;margin-top:4px;text-underline-offset:3px}
.map-practice-note{font:11px/1.4 system-ui;color:#45604e;max-width:280px}
.first-step-extras{border:1px solid #cbd8bd;border-radius:16px;background:#f6f7ed;padding:0 14px;margin:12px 0}
.first-step-extras>summary,.starter-adventure .first-step-guide>summary{min-height:48px;box-sizing:border-box;align-content:center;cursor:pointer;font:650 14px/1.5 system-ui;padding:12px 0;color:#264e3b}
.first-step-extras a,.starter-adventure .first-step-guide a{min-height:44px;box-sizing:border-box;align-content:center}
.first-step-racer{display:block;padding:12px 0;color:#31543b;font-weight:650}
.first-step-racer small{display:block;font:12px/1.5 system-ui}
.first-step-extras>summary:focus-visible,.first-step-guide>summary:focus-visible,.map-practice-link:focus-visible{outline:3px solid #8b641d;outline-offset:3px;border-radius:6px}
@media(max-width:700px){.map-start{padding:12px}.map-start-explorer{height:58px}.map-start>strong{font-size:22px}.map-start p{font-size:12px}.map-start .map-practice-link{font-size:12px}.map-practice-note{font-size:10px}.starter-adventure .first-step-guide{margin-top:0}}

/* Field-map legibility: preserve original OSM detail; trail dashes differ from the recorded walk. */
.world-stage[data-map-theme=atlas] .leaflet-tile-pane{filter:sepia(.08) saturate(.95) brightness(1.01)}
.world-stage .leaflet-control-zoom a{width:44px!important;height:44px!important;line-height:44px!important}
.world-stage .leaflet-control-zoom a:focus-visible{outline:3px solid #9b6d24;outline-offset:2px}
.world-stage .map-key .key-trail{height:0;background:none;border-top:3px dashed #4b7250;border-radius:0}
.world-stage .leaflet-container:focus-visible{outline:3px solid #9b6d24;outline-offset:-3px}

/* Keep a crowded animal's target visible and usable. Its full name stays in
   the accessible label, nearby list and details. Names off remains absolute. */
.wildlife-map-pin.map-label-crowded small,.wildlife-map-pin.map-label-crowded b{visibility:hidden;pointer-events:none}
