/* City artwork, transparent street signs and camera share the same map coordinates. */
.city-map { --ink:#172c39; --paper:#fff3cd; --gold:#ffc252; --mint:#75dbc6; min-width:0; overflow:hidden; margin-block:0 22px; border:3px solid var(--ink); border-radius:15px 5px 16px 6px; background:var(--paper); color:var(--ink); box-shadow:3px 5px 0 var(--ink); }
.city-titlebar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 17px 11px; color:var(--paper); background:#172c39; }
.city-titlebar p,.city-titlebar h2,.city-detail h3,.city-kicker { margin:0; }
.city-titlebar p,.city-kicker { font-size:.73rem; font-weight:750; }
.city-titlebar h2 { font-size:clamp(1.45rem,6vw,2rem); line-height:1.4; color:inherit; }
.city-count { display:grid; min-width:60px; justify-items:center; padding:3px 10px; border:1px solid #f7c967; border-radius:20px 4px; color:#ffdc88; font-weight:850; line-height:1.35; }
.city-count small { font-size:.72rem; }
.city-window { position:relative; background:#5d9da0; border-bottom:3px solid var(--ink); }
.city-viewport { position:relative; width:100%; height:clamp(340px,47svh,490px); min-width:0; overflow:auto; direction:ltr; overscroll-behavior:contain; touch-action:none; scrollbar-width:none; cursor:grab; }
.city-viewport::-webkit-scrollbar { display:none; }
.city-viewport.is-dragging,.city-viewport.is-dragging * { cursor:grabbing; }
.city-world { width:740px; aspect-ratio:2/3; position:relative; isolation:isolate; user-select:none; -webkit-user-select:none; }
.city-illustration { display:block; width:100%; height:100%; object-fit:fill; pointer-events:none; user-select:none; }
.city-marker { position:absolute; z-index:1; transform:translate(-50%,-50%); width:46px; min-width:46px; height:46px; min-height:46px; display:grid; place-items:center; margin:0; padding:0; border:0; border-radius:50%; color:var(--ink); background:transparent; box-shadow:none; font:inherit; text-shadow:none; }
.city-marker-disc { display:flex; align-items:center; justify-content:center; gap:2px; width:39px; height:31px; padding:0 3px; box-sizing:border-box; border:2px solid #162b38; border-radius:50%; box-shadow:0 4px 0 #243e4b,0 5px 0 1px #152c36; background:#f9eed0; color:#1f3840; font-size:.97rem; font-weight:850; line-height:1; }
.city-marker-disc small { font-size:.72rem; }
.city-marker.training-marker { z-index:3; }
.training-marker .city-marker-disc { width:45px; height:36px; border-width:3px; background:#e9d6c4; }
.city-marker[data-city-status="current"] .city-marker-disc { background:var(--gold); }
.city-marker[data-city-status="completed"] .city-marker-disc { background:var(--mint); }
.city-marker[aria-pressed="true"] .city-marker-disc { outline:3px solid #fff8de; outline-offset:2px; }
.city-viewport:focus-visible { outline:4px solid var(--gold); outline-offset:-5px; }
.city-marker:focus-visible,.city-controls button:focus-visible,.city-detail a:focus-visible { outline:3px solid #fff; box-shadow:0 0 0 6px #0a4261; z-index:5; }
.city-marker-caption { position:absolute; top:100%; left:50%; transform:translateX(-50%); border:1px solid #142b34; border-radius:3px; background:#192e38; color:#fff2d0; padding:0 6px; white-space:nowrap; font-size:.68rem; font-weight:800; line-height:1.6; direction:rtl; }
.city-character { position:absolute; z-index:2; width:42px; height:46px; bottom:calc(100% - 2px); left:50%; transform:translateX(-50%) rotate(-3deg); object-fit:cover; object-position:center 33%; background:#f2d689; border:2px solid #162936; border-radius:11px 11px 12px 3px; box-shadow:2px 2px 0 #162936; pointer-events:none; }
.city-controls { display:flex; justify-content:center; flex-wrap:wrap; gap:3px; padding:5px 2px; direction:ltr; background:#203c48; }
.city-controls button { flex:0 1 44px; min-width:32px; min-height:44px; padding:0; margin:0; border:1px solid #799092; border-radius:5px; box-shadow:0 2px 0 #10242d; background:#2c4b57; color:#fff0c9; font:700 1.2rem/1 system-ui,sans-serif; }
.city-controls button:last-child { background:var(--gold); color:var(--ink); border-color:#171f2d; }
.city-controls button:hover { background:#516d73; color:white; }
.city-key { display:flex; flex-wrap:wrap; justify-content:center; gap:5px 14px; padding:6px 8px; border-bottom:2px solid var(--ink); font-size:.70rem; font-weight:740; }
.city-key span { display:inline-flex; align-items:center; gap:3px; }
.city-key b { color:#284851; }
.city-key .training-key { color:#884714; }
.city-detail { padding:13px 15px 15px; scroll-margin-block:10px; }
.city-detail-head { display:flex; align-items:center; gap:9px; }
.city-seal { display:grid; place-items:center; flex:none; width:39px; height:35px; border:2px solid var(--ink); border-radius:50%; box-shadow:0 3px 0 var(--ink); background:#ffc95d; color:var(--ink); font-weight:900; }
.city-detail-head h3 { font-size:1.12rem; }
.city-kicker { color:#495959; }
.city-status { margin-inline-start:auto; padding:2px 7px; border:1px solid #56635e; border-radius:4px; font-size:.72rem; font-weight:750; white-space:nowrap; }
.city-detail-copy { margin:9px 0; font-size:.87rem; line-height:1.65; }
.city-mini-route,.mission-view .call-step-map ol { position:relative; display:flex; flex-direction:column; align-items:center; gap:0; margin:8px auto 12px; padding:4px 0; list-style:none; overflow:visible; direction:ltr; }
.city-mini-route li,.mission-view .call-step-map ol li { position:relative; display:flex; align-items:center; justify-content:flex-start; width:min(100%,218px); min-width:0; max-width:none; min-height:60px; margin:0; padding:0; flex:none; color:var(--ink,#172c39); text-align:start; }
.city-mini-route li:nth-child(even),.mission-view .call-step-map ol li:nth-child(even) { padding-left:46px; box-sizing:border-box; }
.city-mini-route li:not(:last-child)::after,.mission-view .call-step-map ol li:not(:last-child)::after { content:""; position:absolute; left:21px; top:50%; z-index:0; width:6px; height:76px; border:1px solid #344e50; background:#779989; transform:rotate(-37deg); transform-origin:top center; }
.city-mini-route li:nth-child(even):not(:last-child)::after,.mission-view .call-step-map ol li:nth-child(even):not(:last-child)::after { left:69px; transform:rotate(37deg); }
.city-mini-route li>span,.mission-view .call-step-map .step-chip .node { position:relative; z-index:1; flex:none; display:grid; place-items:center; width:44px; height:34px; min-width:44px; margin:0; border:2px solid #172c39; border-radius:50%; box-shadow:0 5px 0 #263a41,0 6px 0 1px #172c39; background:#e3cf98; color:#172c39; font:800 1.05rem/1 inherit; font-weight:850; line-height:1; }
.city-mini-route li:first-child>span,.mission-view .call-step-map li.current .node { background:#ffbd46; }
.mission-view .call-step-map li.visited .node { background:#76d4b7; }
.mission-view .call-step-map li.ahead .node { background:#d5d3bc; }
.city-mini-route li>b,.mission-view .call-step-map .step-chip small { position:relative; z-index:1; margin-left:7px; max-width:135px; padding:2px 6px; color:#182f36; border-radius:4px; background:#fff2ce; font-size:.76rem; line-height:1.5; direction:rtl; overflow-wrap:anywhere; }
.mission-view .call-step-map .step-chip { display:flex; align-items:center; justify-content:flex-start; flex-direction:row; gap:0; position:relative; z-index:1; width:auto; min-height:48px; margin:0; padding:2px 0; text-align:start; border:0; box-shadow:none; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.mission-view .call-step-map li::before { content:none; }
.mission-view .call-step-map li:last-child::after { content:none; }
.city-mini-route { border-block:1px dashed #8c967d; }
@media (prefers-reduced-motion:reduce) { .city-map * { scroll-behavior:auto!important; } }
.reduced-motion .city-map * { scroll-behavior:auto!important; }
.commercial-structure h4 { margin:12px 0 2px; font-size:1.02rem; }
.commercial-structure>p { margin:2px 0 9px; font-size:.78rem; color:#394c4b; }
.structure-route li { width:min(100%,255px); }
.structure-route li>details { position:relative; z-index:1; width:100%; }
.structure-route summary { display:flex; align-items:center; gap:7px; min-height:48px; cursor:pointer; list-style:none; }
.structure-route summary::-webkit-details-marker { display:none; }
.structure-route summary:focus-visible { outline:3px solid #1c6171; outline-offset:1px; }
.structure-route .structure-icon { flex:none; display:grid; place-items:center; width:44px; height:35px; border:2px solid #172c39; border-radius:50%; background:#acd4c5; color:#142d36; box-shadow:0 4px 0 #263a41; }
.structure-route li:nth-child(3n+1) .structure-icon { background:#f0bf6a; }
.structure-route li:nth-child(3n) .structure-icon { background:#b9b1d8; }
.structure-icon svg { width:21px; height:21px; }
.structure-route summary>b,.structure-route summary>small { direction:rtl; background:#fff2ce; }
.structure-route summary>b { font-size:.84rem; }
.structure-route summary>small { font-size:.66rem; color:#415750; }
.structure-route details>p { margin:3px 4px 9px 20px; padding:4px 8px; border-right:2px solid #58756b; direction:rtl; font-size:.77rem; line-height:1.6; background:#fff7dd; }
.structure-route li:has(details[open])::after { height:calc(100% + 10px); }

.city-place-icon{position:absolute;bottom:35px;left:30px;display:grid;place-items:center;width:24px;height:24px;color:#193936;background:#fee0a2;border:2px solid currentColor;border-radius:50%;box-shadow:1px 2px 0 currentColor;pointer-events:none}
.city-place-icon .ink-icon{width:16px;height:16px}
.city-venue-caption{display:none;position:absolute;top:46px;left:50%;transform:translateX(-50%);max-width:135px;width:max-content;padding:0 7px;color:#17362f;background:#ffedbe;border:2px solid #193936;border-radius:4px;box-shadow:1px 2px 0 #193936;font-size:.72rem;line-height:1.65;direction:rtl;pointer-events:none}
.city-marker[aria-pressed="true"] .city-venue-caption,.city-marker:focus-visible .city-venue-caption{display:block}
.city-venue{display:flex;align-items:center;gap:10px;margin:10px 0;padding:7px 10px;border-block:1px solid #afa485;background:#fff6dc}
.city-venue>.ink-icon{width:24px;height:24px}
.city-venue p{margin:0;font-size:.78rem;line-height:1.6}
