/* M1.18 — HUD and expanded map, using actual scene coordinates. */
.game-minimap-hud{position:fixed;top:65px;right:max(12px,env(safe-area-inset-right));z-index:62;width:205px;max-width:calc(100vw - 22px);padding:9px;border:1px solid #d1dbc2a6;border-radius:13px;background:linear-gradient(155deg,#1b343cF5,#152a30ed);box-shadow:0 6px 24px #061b1f92;color:#e8f4ec;font-family:Inter,system-ui,sans-serif;display:flex;flex-direction:column;gap:7px}
.game-minimap-title{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;line-height:1.3}
.game-minimap-title strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-minimap-north{color:#f2d399;white-space:nowrap;font-size:12px;font-weight:900}
.game-minimap-open{display:block;padding:0;margin:0;width:100%;border:1px solid #b3cfc0b8;border-radius:7px;background:#1e4c4b;overflow:hidden;cursor:pointer}
.game-map-image-wrap,.game-map-large-image{display:block;position:relative;width:100%;overflow:hidden;background:#1e4345}
.game-map-image-wrap{height:112px;aspect-ratio:auto!important}
.game-map-image-wrap>img,.game-map-large-image>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.game-map-player-marker{position:absolute;z-index:8;display:block;width:16px;height:16px;transform:translate(-50%,-50%);border:3px solid #fff4c8;background:#f9c95c;box-shadow:0 0 0 4px #e3a74855,0 0 13px 3px #f8e17a,0 1px 6px #0a1c23;border-radius:50%;pointer-events:none}
.game-map-player-marker:after{content:'';position:absolute;left:50%;top:-8px;transform:translateX(-50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid #fff5c5}
.game-map-portal-pin{position:absolute;z-index:6;transform:translate(-50%,-50%);color:#e9faff;font-size:17px;text-shadow:0 0 7px #0b464a,0 0 4px #0c343a;font-weight:900;pointer-events:none}
.game-minimap-footer{display:flex;align-items:center;justify-content:space-between;gap:4px}
.game-map-coordinates{font-size:9px;color:#c1d7d4;white-space:nowrap;letter-spacing:-.15px}
.game-map-hotkey{background:#36565f;border:1px solid #b9d1cc66;border-radius:6px;padding:4px 6px;color:#fff;font-size:10px;cursor:pointer;white-space:nowrap}
.game-map-hotkey kbd{font-weight:900;color:#fbd68d;font-size:11px;margin-left:3px}
.game-map-clock{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #b3c9be45;padding-top:6px;gap:6px}
.game-map-clock span{font-size:9px;color:#b9d4cd}
.game-map-clock time{font-weight:800;font-variant-numeric:tabular-nums;font-size:13px;color:#f3dfb0}
.game-map-overlay{position:fixed;inset:0;z-index:320;background:#061920b9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:16px}
.game-map-dialog{display:flex;flex-direction:column;align-items:center;gap:12px;max-height:min(95dvh,1100px);overflow:auto;width:min(980px,96vw);padding:clamp(10px,2vw,20px);border:1px solid #a5c9b6b8;border-radius:18px;background:linear-gradient(155deg,#273f43,#172a34);box-shadow:0 22px 85px #061019e5;color:#edf4ee}
.game-map-dialog-head{width:100%;display:flex;justify-content:space-between;align-items:center}
.game-map-dialog-head small{font-size:10px;color:#c7dbce;letter-spacing:1.5px}
.game-map-dialog-head h2{margin:3px 0 0;font:700 clamp(18px,2vw,26px) Georgia,serif;color:#fff}
.game-map-close{width:41px;height:41px;display:grid;place-items:center;border:1px solid #b6c9bd;border-radius:10px;background:#344d53;color:#fff;font-size:27px;cursor:pointer}
.game-map-large-image{width:min(100%,900px);height:auto;max-height:calc(95dvh - 158px);flex-shrink:1;align-self:center;border:2px solid #b6c6ae;border-radius:12px;box-shadow:inset 0 0 21px #0e2a2ba4}
.game-map-large-image>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill}
.game-map-large-image .game-map-player-marker{width:22px;height:22px}
.game-map-large-image .game-map-portal-pin{font-size:24px}
.game-map-north-large{position:absolute;right:10px;top:9px;padding:5px 7px;border-radius:6px;background:#152d31d9;color:#ffe0a6;font-size:14px;font-weight:900}
.game-map-dialog-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;font-size:11px;color:#d5e4de}
.game-map-dialog-footer strong{margin-left:auto;font-variant-numeric:tabular-nums;color:#f7d79a}
.game-map-legend-player{display:inline-block;width:10px;height:10px;border-radius:50%;background:#fbd366;border:2px solid #fff9e1;vertical-align:middle;margin-right:4px}
.game-map-legend-portal{font-size:18px;color:#dcfff6;font-style:normal;vertical-align:middle;margin-right:3px}
.game-map-hint{color:#a6c2bb}
/* Currently static grove/ruins contain a visible arrival character, grounded to the same map point. */
.field-arrival-hero{position:absolute;left:50%;top:73%;width:68px;height:114px;z-index:15;transform:translate(-50%,-78%);pointer-events:none;filter:drop-shadow(0 5px 5px #0e2026c5)}
.field-arrival-hero .hero-visual{width:100%;height:100%}
.field-arrival-hero .scene-hero-open{position:absolute;inset:0;width:100%;height:100%;z-index:2;border:0;background:transparent;pointer-events:auto;cursor:pointer}
.field-arrival-hero .scene-hero-open:focus-visible{outline:3px solid #f5ddaa;outline-offset:3px}
.field-arrival-name{position:absolute;bottom:102%;left:50%;transform:translateX(-50%);color:#f6f9f6;background:#173039dd;border:1px solid #8fb8b8;padding:3px 6px;border-radius:6px;font-size:9px;white-space:nowrap}
@media(max-width:720px){.game-minimap-hud{top:52px;right:8px;width:153px;padding:6px;gap:4px}.game-map-image-wrap{height:82px}.game-minimap-title strong{font-size:9px}.game-map-coordinates{font-size:7.5px}.game-map-clock span{font-size:8px}.game-map-clock time{font-size:11px}.game-map-dialog{width:98vw;padding:9px;gap:7px}.game-map-dialog-footer{gap:6px;font-size:9px}.game-map-hint{display:none}}
@media(max-height:460px){.game-minimap-hud{width:145px}.game-map-image-wrap{height:74px}.game-map-clock{padding-top:2px}}
@media(prefers-reduced-motion:reduce){.game-map-overlay{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Full world overview: marker is mapped to schematic regional placement. */
.game-world-overview{background:#214b53;max-height:calc(95dvh - 155px)}
.game-world-overview>img{inset:0;width:100%;height:100%;object-fit:fill}
.game-map-world-marker{width:23px;height:23px;animation:world-marker-pulse 1.9s ease-in-out infinite alternate;z-index:12}
@keyframes world-marker-pulse{to{box-shadow:0 0 0 9px #efb73a65,0 0 22px 8px #ffe28c}}
@media(prefers-reduced-motion:reduce){.game-map-world-marker{animation:none}}

.game-map-player-marker:after{transform:translateX(-50%) rotate(var(--heading,0deg));transform-origin:50% 14px}
