.han-map{--serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong",Georgia,'SPQR CJK',serif;--vermilion:#a2311f;--cinnabar:#c8492e;--warn:#b0381f;width:100%;height:100%;display:block;background:#3d5560}
@keyframes han-pulse{50%{opacity:.35}}
.han-map .sea{fill:#3d5560}
.han-map .land{fill:#e3d5b3}
.han-map .coast,.han-map .border,.han-map .river,.han-map .route,.han-map .frontier-wall,.han-map .territory,.han-map .lake,.han-map .seat,.han-map .march,.han-map .target-ring{vector-effect:non-scaling-stroke}
.han-map .coast{fill:none;stroke:#5a4a32;stroke-width:1.1;pointer-events:none}
.han-map .terrain{pointer-events:none}
.han-map .territory{cursor:pointer;stroke:none;transition:fill-opacity .15s}
.han-map .territory:hover{fill-opacity:.8}
.han-map .territory.selected{stroke:#fff8e6;stroke-width:3;fill-opacity:.85}
.han-map .territory.target{stroke:var(--cinnabar);stroke-width:2.5;stroke-dasharray:6 3}
.han-map .territory.besieged{stroke:var(--warn);stroke-width:2;stroke-dasharray:3 2}
.han-map.mode-terrain .territory{fill-opacity:0}
.han-map.mode-terrain .territory:hover{fill:#fff;fill-opacity:.18}
.han-map .outside{fill:url(#outside-hatch);stroke:none;pointer-events:visibleStroke}
.han-map .border{fill:none;pointer-events:none;stroke-linecap:round}
.han-map .b-territory{stroke:#5a4a32;stroke-width:.6;opacity:.55}
.han-map .b-circuit-soft{stroke:#4a3a26;stroke-width:.9;stroke-dasharray:4 3;opacity:.6}
.han-map .b-theater-soft{stroke:#3a2a1a;stroke-width:1.1;opacity:.65}
.han-map .b-circuit{stroke:#3a2a1a;stroke-width:2;stroke-dasharray:7 4}
.han-map .b-theater{stroke:#2a1a10;stroke-width:2.8}
.han-map .b-outside{stroke:#5a4a32;stroke-width:.9;stroke-dasharray:2 3;opacity:.6}
.han-map .b-state{stroke:#1c1411;stroke-width:2.4}
.han-map.mode-terrain .b-state{stroke-width:1.2;opacity:.6}
.han-map .lake{fill:#5f8796;stroke:#3e5f6b;stroke-width:.6}
.han-map .river{fill:none;stroke:#4f7f93;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.9;pointer-events:stroke}
.han-map .river.major{stroke-width:2.6}
.han-map .frontier-wall{fill:none;stroke:#7a2a1a;stroke-width:2;stroke-dasharray:1 3.2;stroke-linecap:round;opacity:.9}
.han-map .geo-label{font-family:var(--serif),'SPQR CJK';font-size:.8em;text-anchor:middle;font-style:italic;pointer-events:none;paint-order:stroke;stroke:#efe4c999;stroke-width:.22em}
.han-map .geo-label.desert{fill:#8a6a32;letter-spacing:.25em}
.han-map .geo-label.mountain{fill:#5e4a33;letter-spacing:.15em;font-size:.75em}
.han-map .geo-label.plateau{fill:#6d5b45;letter-spacing:.5em;font-size:1.05em}
.han-map .group-label{font-family:var(--serif),'SPQR CJK';text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#f3ead4;stroke-width:.25em;fill:#2a1a10;font-size:1.2em;letter-spacing:.3em;font-weight:600}
.han-map .route{stroke:#4a3826;stroke-width:1;opacity:.45;pointer-events:stroke}
.han-map .r-river{stroke:#2f6680}
.han-map .r-pass{stroke-dasharray:4 3}
.han-map .r-desert{stroke:#8a6232;stroke-dasharray:1 3;stroke-width:1.6;stroke-linecap:round}
.han-map .r-steppe{stroke:#5f6a2e;stroke-dasharray:7 4}
.han-map .r-oasis{stroke:#3f7f5a}
.han-map .route.silk-leg{stroke:#b8862e;stroke-width:3;opacity:.95;stroke-dasharray:none}
.han-map.mode-theaters .route,.han-map.mode-circuits .route{opacity:.2}
.han-map .seat-g{cursor:pointer}
.han-map .seat{fill:#2a1d18;stroke:#f3ead4;stroke-width:1}
.han-map .seat.capital{fill:var(--vermilion);stroke:#f3ead4;stroke-width:1.5}
.han-map .seat.kingdom{fill:#5a2a1a}
.han-map .seat.steppe{fill:#4a4a2a}
.han-map .region-label{font-family:var(--serif),'SPQR CJK';font-size:.8em;text-anchor:middle;fill:#1c1411;paint-order:stroke;stroke:#f3ead4d9;stroke-width:.22em;pointer-events:none}
.han-map .region-label.capital{font-size:.95em;font-weight:700}
.han-map .region-label.steppe{font-style:italic}
.han-map .target-ring{fill:none;stroke:var(--cinnabar);stroke-width:2.5;animation:han-pulse 1.2s infinite}
.han-map .army{cursor:pointer}
.han-map .army rect{stroke:#1c1411;stroke-width:1}
.han-map .army .glyph{font-size:10px;fill:#fff8e6;text-anchor:middle;font-family:var(--serif),'SPQR CJK';pointer-events:none}
.han-map .army .count{font-size:9.5px;fill:#fff8e6;text-anchor:middle;pointer-events:none;font-weight:600}
.han-map .army.selected rect:first-of-type{stroke:#fff8e6;stroke-width:2.2}
.han-map .march{stroke:#fff8e6;stroke-width:1.6;stroke-dasharray:5 3;fill:none}
.east-wrap{display:flex;flex-direction:column}.east-wrap .han-map{flex:1;min-height:0}
.east-tools{position:absolute;z-index:3;top:62px;left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;gap:4px;padding:5px 8px;background:#1b211fd9;border-radius:3px}.east-tools .map-mode{font-size:11px;padding:3px 8px;cursor:pointer}.east-tools .map-mode.active{outline:2px solid #a2311f}.east-sep{width:12px}
.east-dispatches{padding-left:18px}.east-dispatches li{margin:6px 0}.east-dispatches small{display:block;opacity:.7}

/* Routes explain geography but do not consume territory touch input. */
#map .routes,#map .routes *{pointer-events:none}

/* Rivers are visual context and must not intercept territory taps. */
#map .river,#map .river *{pointer-events:none}
