:root {
  color-scheme: dark;
  --ink: #f3eadb;
  --muted: #b8b1a4;
  --gold: #d9ab5c;
  --red: #b74d35;
  --map-width: 1600px;
  --map-height: 1000px;
  font-family: Georgia, "Times New Roman", serif;
  background: #11141d;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; background: radial-gradient(circle at 15% 0%, rgba(99, 72, 52, .2), transparent 35rem), #11141d; }
button, a { font: inherit; }
.map-shell { width: min(100%, 1900px); min-height: 100vh; margin: 0 auto; padding: 22px clamp(14px, 3vw, 44px) 18px; display: grid; grid-template-rows: auto minmax(440px, 1fr) auto; gap: 14px; }
.map-header, .map-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.map-header { min-height: 84px; padding: 0 4px; }
.map-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.map-back, .map-reset { color: var(--gold); text-decoration: none; border: 1px solid rgba(217, 171, 92, .45); border-radius: 999px; padding: 8px 14px; background: rgba(22, 25, 35, .72); transition: background .2s, color .2s, border-color .2s; }
.map-back:hover, .map-reset:hover, .map-back:focus-visible, .map-reset:focus-visible { color: #fff4d6; border-color: var(--gold); background: rgba(74, 48, 30, .8); }
.map-kicker { margin: 0 0 3px; color: var(--gold); font-size: 11px; letter-spacing: .22em; text-align: center; text-transform: uppercase; }
.map-header h1 { margin: 0; color: var(--ink); font-size: clamp(26px, 4vw, 48px); font-weight: 400; letter-spacing: .04em; text-align: center; }
.map-hint { width: 190px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: right; }
.map-hint__mobile { display: none; }
.map-viewport { position: relative; min-height: 440px; overflow: hidden; cursor: grab; border: 1px solid rgba(217, 171, 92, .33); border-radius: 20px; background: #1c2633; box-shadow: 0 22px 70px rgba(0, 0, 0, .34), inset 0 0 70px rgba(7, 9, 15, .55); touch-action: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-world { position: absolute; width: var(--map-width); height: var(--map-height); overflow: hidden; transform-origin: 0 0; background: linear-gradient(rgba(19, 32, 47, .28), rgba(19, 32, 47, .28)), url("assets/city.png") center / cover, #274050; isolation: isolate; }
.map-world::before, .map-world::after { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; }
.map-world::before { background: linear-gradient(118deg, transparent 0 23%, rgba(236, 188, 112, .08) 23.2% 23.7%, transparent 24% 56%, rgba(236, 188, 112, .08) 56.2% 56.7%, transparent 57%), radial-gradient(circle at 50% 48%, transparent 0 20%, rgba(9, 14, 23, .34) 70%, rgba(5, 8, 14, .75)); }
.map-world::after { opacity: .26; background-image: radial-gradient(rgba(255, 242, 202, .5) .7px, transparent .7px); background-size: 13px 13px; mix-blend-mode: soft-light; }
.map-skyline { position: absolute; z-index: -1; inset: 0 0 58%; opacity: .46; background: linear-gradient(90deg, transparent 0 4%, #172d3a 4% 9%, transparent 9% 12%, #203846 12% 18%, transparent 18% 23%, #162a38 23% 28%, transparent 28% 35%, #203b47 35% 42%, transparent 42% 49%, #172d3a 49% 57%, transparent 57% 63%, #1d3644 63% 68%, transparent 68% 77%, #142b38 77% 84%, transparent 84% 90%, #203b47 90% 96%, transparent 96%), linear-gradient(180deg, transparent 0 64%, rgba(15, 25, 33, .92) 64%); }
.map-water { position: absolute; z-index: -1; border: 2px solid rgba(145, 197, 202, .22); background: repeating-linear-gradient(168deg, rgba(144, 208, 211, .18) 0 2px, transparent 2px 22px), rgba(14, 78, 92, .58); }
.map-water--west { width: 320px; height: 650px; left: -90px; top: 410px; border-radius: 52% 48% 0 0; transform: rotate(17deg); }
.map-water--east { width: 240px; height: 520px; right: -100px; top: -80px; border-radius: 45% 55% 0 0; transform: rotate(-22deg); }
.map-road { position: absolute; z-index: -1; border: 7px solid rgba(222, 181, 120, .27); border-radius: 50%; box-shadow: 0 0 0 2px rgba(44, 42, 40, .25), inset 0 0 0 2px rgba(255, 224, 166, .08); }
.map-road--north { width: 1460px; height: 400px; top: 110px; left: 60px; transform: rotate(-8deg); }
.map-road--middle { width: 1280px; height: 500px; top: 255px; left: 180px; transform: rotate(14deg); }
.map-road--south { width: 1300px; height: 390px; top: 610px; left: 200px; transform: rotate(-12deg); }
.map-road--west { width: 450px; height: 1150px; top: -130px; left: 330px; transform: rotate(28deg); }
.map-road--east { width: 360px; height: 1150px; top: -90px; left: 1070px; transform: rotate(-24deg); }
.map-district-label { position: absolute; color: rgba(246, 230, 190, .36); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; transform: rotate(-8deg); user-select: none; }
.map-district-label--north { top: 205px; left: 670px; }
.map-district-label--center { top: 540px; left: 710px; transform: rotate(9deg); }
.map-district-label--south { top: 820px; left: 700px; transform: rotate(-6deg); }
.fog-bank { position: absolute; z-index: 2; pointer-events: none; opacity: .7; filter: blur(18px); background: radial-gradient(ellipse, rgba(204, 211, 214, .33), rgba(113, 133, 146, .13) 45%, transparent 72%); }
.fog-bank--north { width: 620px; height: 350px; top: -120px; left: 720px; transform: rotate(-12deg); }
.fog-bank--east { width: 490px; height: 520px; top: 80px; right: -110px; transform: rotate(28deg); }
.fog-bank--far { width: 560px; height: 420px; right: -70px; bottom: -100px; opacity: .82; }
.map-locations { position: absolute; inset: 0; z-index: 3; }
.location { position: absolute; width: 174px; min-height: 96px; padding: 13px 14px 12px; border: 1px solid rgba(231, 194, 121, .7); border-radius: 13px 13px 13px 4px; color: var(--ink); text-align: left; background: rgba(27, 32, 36, .88); box-shadow: 0 12px 22px rgba(2, 8, 11, .34), inset 0 1px 0 rgba(255, 244, 202, .12); cursor: pointer; transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); transition: filter .2s, box-shadow .2s, transform .2s, opacity .2s; }
.location:hover, .location:focus-visible, .location.is-selected { z-index: 6; filter: brightness(1.22); box-shadow: 0 0 0 3px rgba(242, 194, 100, .28), 0 16px 30px rgba(2, 8, 11, .52), inset 0 1px 0 rgba(255, 244, 202, .24); transform: translate(-50%, -50%) rotate(0deg) scale(1.04); }
.location__image { display: block; width: 100%; height: 56px; margin: -2px 0 10px; border-radius: 8px; object-fit: cover; opacity: .82; filter: saturate(.78) contrast(1.05); }
.location__title { display: block; font-size: 20px; line-height: 1; }
.location__subtitle { display: block; margin-top: 7px; color: #d4ba87; font-size: 11px; letter-spacing: .05em; }
.location__state { display: inline-block; margin-top: 9px; color: #bfe3bf; font-family: system-ui, sans-serif; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.location--open { background-color: rgba(24, 49, 53, .9); }
.location--closed-season { background-color: rgba(70, 44, 34, .92); border-color: rgba(229, 148, 101, .78); }
.location--fogged { opacity: .75; border-color: rgba(198, 204, 199, .48); background: rgba(85, 94, 96, .66); filter: saturate(.42); }
.location--deep-fog { opacity: .6; border-color: rgba(166, 171, 169, .35); background: rgba(56, 64, 72, .54); filter: blur(.7px) saturate(.2); }
.location--fogged::after, .location--deep-fog::after { position: absolute; inset: -12px; z-index: 1; border-radius: inherit; content: ""; pointer-events: none; background: radial-gradient(ellipse, rgba(215, 220, 215, .33), transparent 68%); filter: blur(9px); }
.location--deep-fog::after { inset: -25px; background: radial-gradient(ellipse, rgba(203, 211, 217, .5), transparent 67%); filter: blur(16px); }
.location--bludni { min-height: 106px; background: linear-gradient(145deg, rgba(26, 12, 42, .95), rgba(74, 17, 67, .88)); border-color: rgba(235, 100, 184, .75); box-shadow: 0 0 20px rgba(198, 37, 165, .23), 0 12px 22px rgba(2, 8, 11, .4); }
.location--bludni .location__state { color: #ef9be0; }
.location--city { background-color: rgba(56, 45, 25, .94); }
.location-card { position: absolute; z-index: 9; width: min(360px, 34vw); max-height: 500px; overflow: auto; padding: 20px 22px 22px; border: 1px solid rgba(232, 189, 108, .74); border-radius: 16px; color: var(--ink); background: rgba(20, 24, 29, .95); box-shadow: 0 22px 45px rgba(0, 0, 0, .5), 0 0 0 5px rgba(12, 15, 19, .18); transform: translate(-50%, -100%); animation: card-in .2s ease-out; }
.location-card[hidden] { display: none; }
.location-card--below { transform: translate(-50%, 0); }
.location-card__close { float: right; width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.08); cursor: pointer; }
.location-card__close:hover, .location-card__close:focus-visible { color: #fff; background: rgba(255,255,255,.18); }
.location-card__eyebrow { margin: 0 35px 6px 0; color: var(--gold); font-family: system-ui, sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.location-card h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); font-weight: 400; line-height: 1.05; }
.location-card__subtitle { margin: 8px 0 0; color: #d6ba81; font-size: 14px; }
.location-card__copy { margin: 15px 0 0; color: #d8d2c5; font-size: 14px; line-height: 1.48; }
.location-card__extra { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.location-card__stamp { display: inline-block; margin-top: 16px; padding: 5px 8px; border: 2px solid var(--red); color: #e17453; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; transform: rotate(-3deg); }
.location-card__list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.location-card__list li { padding: 8px 10px; border-left: 2px solid rgba(217, 171, 92, .6); color: #d8d2c5; font-size: 13px; background: rgba(255,255,255,.045); }
.location-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.location-card__actions a { display: inline-flex; border: 1px solid rgba(217, 171, 92, .45); border-radius: 999px; padding: 8px 11px; color: var(--gold); font-family: system-ui, sans-serif; font-size: 11px; text-decoration: none; }
.location-card__actions a:hover, .location-card__actions a:focus-visible { border-color: var(--gold); color: #fff4d6; background: rgba(74, 48, 30, .8); }
.location-card__editions { display: grid; gap: 12px; margin-top: 16px; }
.edition { padding: 11px 12px; border: 1px solid rgba(217, 171, 92, .2); border-radius: 8px; background: rgba(255,255,255,.045); }
.edition strong { display: block; color: #f0ca86; font-size: 16px; font-weight: 400; }
.edition span, .edition small { display: block; margin-top: 4px; color: #c2bbaf; font-family: system-ui, sans-serif; font-size: 11px; line-height: 1.35; }
.edition small { color: #9eaa9f; }
.location-card__secret { color: #cfd3d0; font-size: 14px; line-height: 1.55; }
.location-card__secret p { margin: 8px 0 0; }
@keyframes card-in { from { opacity: 0; transform: translate(-50%, -94%); } to { opacity: 1; transform: translate(-50%, -100%); } }
.map-footer { min-height: 34px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 11px; }
.map-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #a3d3a1; }
.legend-dot--closed { background: #dd865c; }
.legend-dot--fog { background: #a4abb0; }
.map-reset { margin-left: auto; padding: 6px 11px; border: 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: 11px; cursor: pointer; }
@media (max-width: 700px) {
  .map-shell { padding: 12px 10px; gap: 10px; grid-template-rows: auto minmax(540px, 1fr) auto; }
  .map-header { min-height: 106px; flex-wrap: wrap; justify-content: center; }
  .map-header > div { order: -1; width: 100%; }
  .map-back, .map-hint { width: auto; font-size: 11px; }
  .map-hint { text-align: left; }
  .map-hint__desktop { display: none; }
  .map-hint__mobile { display: inline; }
  .map-viewport { min-height: 540px; border-radius: 14px; }
  .location-card { width: min(320px, 86vw); max-height: 360px; }
  .map-footer { flex-wrap: wrap; gap: 8px 14px; }
  .map-reset { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Atmospheric territory layer: CSS/SVG only, deliberately independent from the game logic. */
.map-viewport::before { position: absolute; inset: 0; z-index: 8; content: ""; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at center, transparent 42%, rgba(6, 11, 17, .18) 76%, rgba(3, 7, 12, .7) 100%); }
.city-roads { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-locations { z-index: 5; }
.city-road-line { fill: none; stroke: rgba(235, 198, 139, .43); stroke-width: 17; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(14, 17, 20, .5)); }
.city-road-line--quiet { stroke: rgba(203, 177, 129, .28); stroke-width: 12; }
.city-road-line--fog { stroke: rgba(188, 201, 193, .4); stroke-width: 13; stroke-dasharray: 18 20; opacity: .68; }
.city-road-roundabout { fill: rgba(37, 55, 55, .6); stroke: rgba(238, 199, 132, .54); stroke-width: 13; }
.city-decor { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.city-edge { position: absolute; opacity: .55; background: repeating-linear-gradient(135deg, rgba(33, 57, 53, .7) 0 18px, rgba(76, 93, 64, .45) 18px 31px, transparent 31px 48px); filter: blur(1px); }
.city-edge--west { width: 170px; height: 790px; left: -40px; top: 300px; border-radius: 50%; transform: rotate(10deg); }
.city-edge--south { width: 1000px; height: 130px; left: 360px; bottom: -65px; border-radius: 50%; transform: rotate(-5deg); }
.city-plaza { position: absolute; width: 190px; height: 190px; left: calc(50% - 95px); top: calc(48% - 95px); border: 3px solid rgba(232, 201, 145, .4); border-radius: 50%; background: radial-gradient(circle, rgba(226, 192, 126, .22), rgba(35, 57, 58, .28) 57%, transparent 58%), repeating-conic-gradient(from 4deg, rgba(241, 209, 150, .14) 0 7deg, transparent 7deg 19deg); box-shadow: 0 0 30px rgba(224, 184, 111, .13); }
.city-plaza__ring { position: absolute; inset: 25px; border: 1px solid rgba(245, 218, 166, .34); border-radius: 50%; }
.city-plaza__light { position: absolute; width: 14px; height: 14px; left: calc(50% - 7px); top: calc(50% - 7px); border-radius: 50%; background: #f6d99c; box-shadow: 0 0 24px 8px rgba(248, 197, 102, .42); animation: city-light 8s ease-in-out infinite; }
.building-cluster { position: absolute; display: flex; align-items: end; gap: 10px; }
.building-cluster--center { left: 625px; top: 385px; transform: rotate(-4deg); }
.building-cluster--north { left: 555px; top: 196px; transform: rotate(7deg) scale(.85); }
.building-cluster--east { left: 1050px; top: 395px; transform: rotate(8deg) scale(.9); }
.building-cluster i { position: relative; display: block; width: 48px; height: 76px; border: 2px solid rgba(218, 184, 128, .32); border-bottom: 0; background: linear-gradient(90deg, rgba(25, 43, 48, .96), rgba(60, 70, 66, .85)); box-shadow: 7px 0 0 rgba(11, 22, 28, .3); }
.building-cluster i:nth-child(2) { height: 104px; }
.building-cluster i:nth-child(3) { width: 62px; height: 88px; }
.building-cluster i:nth-child(4) { height: 66px; }
.building-cluster i:nth-child(5) { width: 39px; height: 115px; }
.building-cluster i::before { position: absolute; right: -5px; bottom: 100%; left: -5px; height: 20px; content: ""; background: #25343b; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.building-cluster i::after { position: absolute; inset: 19px 9px 10px; content: ""; opacity: .78; background: repeating-linear-gradient(90deg, #dba961 0 5px, transparent 5px 15px), repeating-linear-gradient(180deg, rgba(237, 201, 125, .8) 0 6px, transparent 6px 19px); background-size: 100% 100%, 100% 100%; animation: window-flicker 12s ease-in-out infinite; }
.harbor-scene { position: absolute; width: 275px; height: 190px; left: 26px; top: 660px; border-radius: 45% 50% 0 0; background: radial-gradient(ellipse at 45% 45%, rgba(239, 194, 114, .2), transparent 48%); }
.harbor-scene__pier { position: absolute; width: 210px; height: 17px; left: 42px; top: 80px; border: 2px solid #ba8d58; background: repeating-linear-gradient(90deg, #8f6a4a 0 18px, #d2a56a 18px 22px); transform: rotate(-12deg); box-shadow: 0 8px 0 rgba(20, 29, 30, .4); }
.harbor-scene i { position: absolute; bottom: 24px; width: 34px; height: 38px; border-radius: 50% 50% 5px 5px; background: linear-gradient(90deg, #d77d57 0 33%, #f0bb72 33% 66%, #d77d57 66%); opacity: .7; }
.harbor-scene i:nth-of-type(1) { left: 55px; transform: scale(.75); }
.harbor-scene i:nth-of-type(2) { left: 128px; bottom: 48px; transform: scale(.95); }
.harbor-scene i:nth-of-type(3) { right: 18px; transform: scale(.6); }
.workshop-yard { position: absolute; width: 155px; height: 110px; left: 310px; top: 532px; border: 2px solid rgba(201, 163, 103, .5); border-radius: 45% 45% 10px 10px; background: linear-gradient(180deg, rgba(179, 120, 68, .38) 0 35%, rgba(41, 62, 57, .65) 35%); box-shadow: 0 12px 14px rgba(7, 14, 17, .3); }
.workshop-yard::before { position: absolute; top: -31px; right: -14px; left: -14px; height: 40px; content: ""; background: #624f3e; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.workshop-yard__bench { position: absolute; width: 84px; height: 12px; left: 34px; bottom: 16px; background: #a87a4a; box-shadow: 0 9px 0 -2px #a87a4a; }
.workshop-yard__lamp { position: absolute; width: 9px; height: 28px; right: 22px; bottom: 31px; border-radius: 5px 5px 0 0; background: #f1c76f; box-shadow: 0 0 23px 8px rgba(242, 196, 100, .35); animation: city-light 9s ease-in-out infinite 2s; }
.night-arcade { position: absolute; width: 230px; height: 142px; left: 1190px; top: 130px; border: 2px solid rgba(173, 71, 151, .52); border-radius: 52% 52% 5px 5px; background: linear-gradient(180deg, rgba(42, 14, 54, .9), rgba(26, 17, 41, .6)); box-shadow: 0 0 34px rgba(207, 45, 170, .2); }
.night-arcade span { position: absolute; width: 170px; height: 8px; left: 29px; top: 36px; background: #d35bbf; box-shadow: 0 0 20px 7px rgba(214, 67, 191, .45); animation: neon-breathe 10s ease-in-out infinite; }
.night-arcade i { position: absolute; bottom: 20px; width: 30px; height: 51px; border: 2px solid rgba(221, 125, 203, .45); background: rgba(224, 89, 182, .18); }
.night-arcade i:nth-of-type(1) { left: 35px; }
.night-arcade i:nth-of-type(2) { left: 99px; height: 63px; }
.night-arcade i:nth-of-type(3) { right: 28px; }
.echo-stage { position: absolute; width: 240px; height: 150px; left: 1080px; top: 590px; border: 2px solid rgba(199, 116, 74, .5); border-radius: 8px 8px 30px 30px; background: linear-gradient(160deg, rgba(90, 45, 38, .76), rgba(28, 42, 49, .8)); }
.echo-stage span { position: absolute; width: 174px; height: 57px; left: 31px; top: 29px; border: 2px solid rgba(236, 176, 101, .5); background: radial-gradient(circle at 50% 80%, rgba(245, 180, 82, .65), transparent 38%); box-shadow: 0 0 25px rgba(242, 174, 71, .25); }
.echo-stage i { position: absolute; bottom: 17px; width: 46px; height: 36px; border-radius: 50% 50% 0 0; background: #1a252e; }
.echo-stage i:nth-of-type(1) { left: 45px; }
.echo-stage i:nth-of-type(2) { right: 43px; }
.city-sign { position: absolute; padding: 5px 9px; border: 1px solid rgba(226, 186, 106, .57); color: #e5bb70; font-family: system-ui, sans-serif; font-size: 11px; letter-spacing: .12em; background: rgba(33, 25, 21, .72); box-shadow: 0 0 12px rgba(224, 168, 83, .13); }
.city-sign--press { left: 700px; top: 302px; transform: rotate(-4deg); }
.city-sign--town { left: 760px; top: 537px; color: #f2d69c; transform: rotate(3deg); }
.city-sign--night { left: 1250px; top: 105px; color: #ed8dd7; border-color: rgba(230, 104, 202, .65); transform: rotate(3deg); }
.city-sign--music { left: 1240px; top: 727px; color: #f5c48a; font-size: 25px; border: 0; background: transparent; }
.tower { position: absolute; width: 42px; height: 145px; border: 3px solid rgba(204, 172, 116, .45); border-bottom: 0; background: linear-gradient(90deg, rgba(42, 56, 59, .95), rgba(100, 87, 66, .75)); }
.tower::before { position: absolute; right: -11px; bottom: 100%; left: -11px; height: 46px; content: ""; background: #37464a; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tower span { position: absolute; width: 11px; height: 11px; left: calc(50% - 5px); top: 32px; border-radius: 50%; background: #f4c36d; box-shadow: 0 0 15px 4px rgba(244, 189, 91, .5); animation: window-flicker 11s ease-in-out infinite; }
.tower--center { left: 835px; top: 345px; transform: scale(.82); }
.tower--far { right: 130px; bottom: 118px; transform: scale(.7); opacity: .6; }
.lamp-line { position: absolute; display: flex; gap: 56px; }
.lamp-line i { width: 8px; height: 8px; border-radius: 50%; background: #f3c36e; box-shadow: 0 0 15px 5px rgba(242, 186, 88, .38); animation: city-light 13s ease-in-out infinite; }
.lamp-line i:nth-child(2) { animation-delay: 3s; }
.lamp-line i:nth-child(3) { animation-delay: 6s; }
.lamp-line i:nth-child(4) { animation-delay: 9s; }
.lamp-line--center { left: 650px; top: 600px; transform: rotate(-9deg); }
.lamp-line--shore { left: 170px; top: 795px; gap: 74px; transform: rotate(-8deg); }
.fog-silhouette { position: absolute; z-index: 2; opacity: .55; filter: blur(3px); pointer-events: none; }
.fog-silhouette::before, .fog-silhouette::after { position: absolute; content: ""; background: rgba(42, 59, 65, .7); }
.fog-silhouette--september { width: 250px; height: 155px; left: 260px; top: 62px; border-radius: 48% 48% 0 0; background: linear-gradient(90deg, transparent 0 13%, rgba(57, 76, 80, .68) 13% 87%, transparent 87%); }
.fog-silhouette--september::before { width: 110px; height: 110px; left: 70px; top: -45px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fog-silhouette--october { width: 275px; height: 150px; left: 1030px; top: 52px; background: repeating-linear-gradient(90deg, rgba(51, 66, 69, .72) 0 47px, transparent 47px 65px); }
.fog-silhouette--october::before { width: 70px; height: 76px; left: 104px; top: -44px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fog-silhouette--november { width: 230px; height: 170px; left: 1340px; top: 365px; background: linear-gradient(90deg, rgba(45, 66, 68, .68) 0 25%, transparent 25% 33%, rgba(45, 66, 68, .68) 33% 72%, transparent 72% 80%, rgba(45, 66, 68, .68) 80%); }
.fog-silhouette--december { width: 340px; height: 285px; left: 630px; top: 270px; opacity: .75; filter: blur(11px); border-radius: 48% 48% 9% 9%; background: radial-gradient(ellipse at 50% 74%, rgba(214, 177, 101, .35), rgba(55, 71, 74, .76) 45%, transparent 73%); box-shadow: 0 0 60px 18px rgba(204, 170, 104, .16); }
.fog-silhouette--december::before { width: 130px; height: 180px; left: 105px; top: -92px; background: rgba(52, 67, 72, .72); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fog-silhouette--january { width: 210px; height: 145px; right: 45px; bottom: 37px; opacity: .46; filter: blur(6px); background: linear-gradient(90deg, transparent 0 25%, rgba(42, 58, 63, .7) 25% 78%, transparent 78%); }
.location-card { background: linear-gradient(145deg, rgba(40, 36, 31, .97), rgba(17, 24, 29, .97)); box-shadow: 0 22px 45px rgba(0, 0, 0, .55), 0 0 26px rgba(223, 177, 92, .12); }
.location:hover, .location:focus-visible, .location.is-selected { box-shadow: 0 0 28px 8px rgba(244, 195, 104, .22), 0 18px 30px rgba(2, 8, 11, .5), inset 0 1px 0 rgba(255, 244, 202, .24); }
.fog-bank { z-index: 4; animation: fog-drift 34s ease-in-out infinite alternate; }
.fog-bank--east { animation-delay: -12s; animation-duration: 42s; }
.fog-bank--far { animation-delay: -22s; animation-duration: 48s; }
@keyframes fog-drift { from { transform: translate3d(-12px, 0, 0) rotate(-8deg); } to { transform: translate3d(16px, 8px, 0) rotate(-12deg); } }
@keyframes city-light { 0%, 100% { opacity: .68; } 48% { opacity: 1; } 52% { opacity: .45; } 56% { opacity: .92; } }
@keyframes window-flicker { 0%, 100% { opacity: .62; } 52% { opacity: .78; } 56% { opacity: .42; } 60% { opacity: .72; } }
@keyframes neon-breathe { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
@media (max-width: 700px) {
  .map-world { background-position: 52% center; }
  .location { width: 210px; min-height: 112px; }
  .location-card { width: 560px; max-width: none; max-height: 500px; }
  .city-sign { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fog-bank, .city-plaza__light, .building-cluster i::after, .workshop-yard__lamp, .night-arcade span, .tower span, .lamp-line i { animation: none; }
}

/* The illustration is the map surface; the controls remain interactive hotspots. */
:root { --map-width: 1440px; --map-height: 1080px; }
.map-world { background: url("assets/emm-map.png") center / 100% 100% no-repeat; }
.map-world::before, .map-world::after, .map-viewport::before,
.map-skyline, .map-water, .map-road, .city-roads, .city-decor,
.fog-silhouette, .map-district-label, .fog-bank { display: none !important; }
.location { width: 170px; min-height: 76px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; }
.location:hover, .location:focus-visible, .location.is-selected { border-color: rgba(91, 63, 33, .82); background: rgba(255, 238, 187, .16); box-shadow: 0 0 0 3px rgba(112, 78, 35, .14); transform: translate(-50%, -50%) rotate(0deg); }
.location__image, .location__subtitle, .location__state { display: none; }
.location__title { opacity: 0; }
.location.is-selected .location__title { opacity: 0; }
@media (max-width: 700px) {
  .location { width: 150px; min-height: 68px; }
}
