.map-wrap>.map-world{position:absolute;z-index:1;left:50%;top:50%;width:1100px;height:1100px;touch-action:manipulation;transition:none;cursor:crosshair}
.map-world .district-art{width:100%;height:100%;display:block}
.map-world .district-veins{opacity:.24;filter:drop-shadow(0 0 3px #b6f9ee)}.map-wrap.phase-night .district-veins{opacity:.94;filter:drop-shadow(0 0 8px #84f8ee)}.map-wrap.phase-dusk .district-veins{opacity:.7;filter:drop-shadow(0 0 6px #ecadf7)}
.map-world .district-avatar{position:absolute;z-index:3;transform:translate(-50%,-50%);width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#253d64;border:4px solid #b5e7eb;box-shadow:0 0 0 8px #77d9e65c,0 0 20px #d7fcff;font-size:23px;font-weight:900;pointer-events:none}
.map-world .district-signal{position:absolute;z-index:4;transform:translate(-50%,-50%);width:62px;height:62px;border:2px solid #ffe5a0;border-radius:50%;background:#51375f;color:#fff2b7;box-shadow:0 0 0 11px #e4ba7650,0 0 24px #f1bb83;animation:pulse 2s infinite;display:grid;place-items:center;align-content:center;line-height:1}
.district-signal span{font-size:26px}.district-signal small{font-size:9px;letter-spacing:.06em}
.map-world .district-memory{position:absolute;z-index:3;transform:translate(-50%,-50%);min-width:60px;min-height:55px;border:1px solid #b0eddd;border-radius:14px;padding:3px 6px;background:#1d4555dd;color:#d5f8ed;box-shadow:0 0 0 5px #93e8d822,0 0 16px #8ae4db55;display:grid;place-items:center;align-content:center;line-height:1}
.district-memory span{font-size:22px}.district-memory small{font-size:9px;white-space:nowrap}
.map-wrap.live-active>.map-world{display:none}
.map-wrap>.map-atmosphere{position:absolute;z-index:2;inset:0;pointer-events:none;transition:background .8s}
.map-wrap.phase-day>.map-atmosphere{background:linear-gradient(145deg,#f2dca412,transparent 56%)}
.map-wrap.phase-dawn>.map-atmosphere{background:linear-gradient(115deg,#eaad7569,#6d79ad29 60%,#26365845)}
.map-wrap.phase-dusk>.map-atmosphere{background:linear-gradient(130deg,#dd8d7159,#522e697a 68%)}
.map-wrap.phase-night>.map-atmosphere{background:linear-gradient(160deg,#101d46a6,#162244ae 75%)}
.map-wrap.phase-night .district-signal{box-shadow:0 0 0 11px #e4ba7650,0 0 38px #ffe097}
.map-time-badge{position:absolute;z-index:5;left:11px;top:12px;max-width:60%;border:1px solid #f9dfad91;background:#12223edd;border-radius:12px;padding:7px 10px;box-shadow:0 3px 16px #07102466}
.map-time-badge strong{display:block;color:#fff2d3;font-size:12px}.map-time-badge small{display:block;color:#c3d2df;font-size:10px;line-height:1.25}
.time-pill{white-space:nowrap;font-variant-numeric:tabular-nums}
.map-guidance{position:absolute;z-index:5;bottom:75px;left:10px;right:95px;color:#f5f2e8;text-shadow:0 2px 5px #06101e;font-size:11px;line-height:1.3;pointer-events:none}
.map-help{text-align:left!important}.map-help strong{color:#f4d18c}
.map-controls-row{display:flex;gap:8px}.map-controls-row .map-action{flex:1;min-width:0}.map-controls-row .gps-mode-button{min-width:104px;min-height:58px;padding:8px 12px;line-height:1.2;color:#d4f5f4;border-color:#9bd6d3;background:#274153}
@media(prefers-reduced-motion:reduce){.map-world .district-signal{animation:none}}
html.reduce-motion .map-world .district-signal{animation:none}

/* Route and character are painted over the world without hiding its original terrain. */
.map-wrap .map-world .district-route{position:absolute;z-index:2;inset:0;width:1000px;height:1500px;pointer-events:none;overflow:visible;filter:drop-shadow(0 0 5px #ffe6b1)}
.district-route path{fill:none;stroke:#ffe7adbc;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:3 10;animation:route-flow 1.25s linear infinite}
@keyframes route-flow{to{stroke-dashoffset:-26}}
.map-world .district-destination{position:absolute;z-index:5;width:26px;height:26px;transform:translate(-50%,-50%) rotate(45deg);border:2px solid #ffdf95;border-radius:6px;background:#8b52bb66;box-shadow:0 0 0 7px #c37be638,0 0 20px #f8c98f;opacity:0;pointer-events:none;transition:opacity .2s}
.map-world .district-destination.visible{opacity:1}
.map-wrap .map-world .district-avatar{transform:translate(-50%,-94%);filter:drop-shadow(0 3px 3px #17113b) drop-shadow(0 0 8px #facb91);z-index:6}
.map-wrap .map-world .district-avatar svg{position:absolute!important;inset:0;width:100%!important;height:100%!important;display:none}
.map-wrap .map-world .district-avatar.facing-down .avatar-front{display:block}
.map-wrap .map-world .district-avatar.facing-up .avatar-back{display:block}
.map-wrap .map-world .district-avatar.facing-left .avatar-side,.map-wrap .map-world .district-avatar.facing-right .avatar-side{display:block}
.map-wrap .map-world .district-avatar.facing-left .avatar-side{transform:scaleX(-1)}
.map-wrap .map-world .district-avatar.facing-right .avatar-side{transform:none}
.map-wrap .map-world .district-memory{z-index:4}
.map-wrap.phase-night .map-world>.world-shimmer{opacity:1;filter:brightness(1.25)}
@media(prefers-reduced-motion:reduce){.district-route path,.map-wrap .map-world .district-avatar.walking,.map-world .district-avatar.walking .avatar-leg{animation:none}}
html.reduce-motion .district-route path,html.reduce-motion .map-wrap .map-world .district-avatar.walking,html.reduce-motion .map-world .district-avatar.walking .avatar-leg{animation:none}

/* Visible map points, NPC badges, and pulsing active objective (ANTIGRAVITY-001 §3.1, §3.3). */
.map-world .map-point{position:absolute;z-index:4;transform:translate(-50%,-50%);min-width:48px;min-height:46px;border:1px solid #efcb7bcc;border-radius:14px;padding:4px 8px;background:#1f1535e6;color:#ffecc4;box-shadow:0 0 0 4px #efcb7b22,0 4px 14px #0b0618aa;display:grid;place-items:center;align-content:center;gap:2px;line-height:1.1;cursor:pointer}
.map-world .district-point{min-width:44px;min-height:44px;border-radius:999px;padding:3px 7px;background:#1a122ee0;border-color:#d8b36ab8}
.map-world .district-point.kind-fork{border-color:#a5dfd8bb;background:#182a3add}
.map-world .district-point.kind-gate{border-color:#e8c78fd0;background:#2b1b3ce6}
.map-world .map-point.kind-boss{border-color:#ff9e8ecc;background:#3a162ce8;box-shadow:0 0 0 4px #ff7b6b2b,0 4px 16px #180614cc}
.map-world .map-point span{display:grid;place-items:center}
.map-world .map-point-icon{width:22px;height:22px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 1px 3px #0d061d)}
.map-world .district-point .map-point-icon{width:18px;height:18px}
.map-world .map-point small{font-size:9.5px;font-weight:700;white-space:nowrap;color:#fbe8be}
.map-world .district-npc{position:absolute;z-index:5;transform:translate(-50%,-100%);min-width:48px;min-height:54px;display:grid;justify-items:center;gap:0;padding:0;border:0;background:none;color:#fff0c6;text-shadow:0 2px 4px #1a0e26;cursor:pointer}
.map-world .district-npc>img{width:54px;height:82px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #190d2799);pointer-events:none}
.map-world .district-npc span{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:8px;border:1px solid #efcb7b88;background:#291b42eb;font-size:10px;font-weight:800}
.map-world .district-npc .npc-point-icon{width:12px;height:12px;object-fit:contain;pointer-events:none}
@keyframes objective-beacon{0%,100%{box-shadow:0 0 0 3px #ffd98377,0 0 18px #ffd16bfa}50%{box-shadow:0 0 0 10px #ffd98324,0 0 28px #ffe49eff}}
.map-world .map-point.is-objective,.map-world .district-npc.is-objective span{border-color:#ffe39a;animation:objective-beacon 1.6s ease-in-out infinite}
.map-world .district-npc.is-objective>img{filter:drop-shadow(0 0 10px #ffd87fcc) drop-shadow(0 3px 2px #190d2799)}
@media(prefers-reduced-motion:reduce){.map-world .map-point.is-objective,.map-world .district-npc.is-objective span{animation:none}}
html.reduce-motion .map-world .map-point.is-objective,html.reduce-motion .map-world .district-npc.is-objective span{animation:none}
