/* "Where we are" map (src/components/landing/CoverageMap.astro). Cached for a year: bump the -N suffix when it changes.
   Default = the final state: every town lit green. /fx/map-1.js adds .cm-arm (towns unlit) once the page loads and
   .cm-go when the map scrolls into view: the shops light, then each town flashes green outward from the nearer shop
   (--d, set per town), swells and stays lit. Only transform and opacity animate; no filters or shadows inside the map. */
.cm2 .cm-sea-t { fill: rgba(201,166,107,.75); } /* 4.5:1 on the sea */
.cm2 .cm-shore { fill: none; stroke: rgba(226,200,146,.75); stroke-width: 1.6; stroke-dasharray: 2 4; }
.cm2 .cm-ln path { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-opacity: .75; }
.cm2 .h { pointer-events: none; opacity: .5; }
.cm2 .lt { transform-box: fill-box; transform-origin: center; }
.cm2 .o { fill: #1a1408; stroke: var(--gold-hi); stroke-width: 1.8; }
.cm2 .g { fill: #3ddc84; stroke: #b9ffd6; stroke-width: 1.5; }
.cm2 .cm-tw text { fill: #f1e3bd; font: 600 12.5px var(--f-body); paint-order: stroke; stroke: #0c0a08; stroke-width: 3px; }
.cm2 .nr text { fill: #c9bc9b; font: 500 11px var(--f-body); }
.cm2 .nr .o { stroke: var(--gold); stroke-width: 1.2; }
.cm2 .nr .g { stroke-width: 1; }
.cm2 .cm-hq .h { opacity: .55; transform-box: fill-box; transform-origin: center; }
.cm2 .pin { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.cm2 .st { fill: #fff7e0; font: 400 19px var(--f-disp); letter-spacing: .04em; paint-order: stroke; stroke: #111315; stroke-width: 4px; }
/* hover and keyboard focus: a white ring around the marker and a brighter, underlined name */
.cm2 a { outline: none; }
.cm2 a:hover text, .cm2 a:focus-visible text { fill: #fff; text-decoration: underline; }
.cm2 a:hover .h, .cm2 a:focus-visible .h { opacity: 1; }
.cm2 a:focus-visible .h { stroke: #fff; stroke-width: 2; }
.cm2 .cm-hq a:focus-visible .h { stroke-width: 3; }

/* armed (script running, map not yet in view): towns wait unlit */
.cm-arm .cm-tw .lt, .cm-arm .cm-hq .h { opacity: 0; }
/* in view: the two shops, then one town every 70 ms: its green dot and glow swell to 1.7x and settle lit (0.75 s).
   One animation per marker (42 in all), each ending in the lit state; nothing repeats. */
.cm-go .cm-tw .lt { animation: cm2-pop .75s cubic-bezier(.2,.7,.3,1) var(--d) both; }
.cm-go .cm-hq .h { animation: cm2-shop .9s ease-out var(--d) both; }
.cm-pause, .cm-pause * { animation-play-state: paused !important; }
@keyframes cm2-pop { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.7); } 100% { opacity: 1; transform: none; } }
@keyframes cm2-shop { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.35); } 100% { opacity: .55; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cm2 *, .cm2 .h { animation: none !important; }
  .cm-arm .cm-tw .lt { opacity: 1; } .cm-arm .cm-hq .h { opacity: .55; }
}
