/* Shared map styles. Colours come from theme.css; the map palette below follows light and dark mode. */
.geomap { --water: #8fbbdd; --land: #fbf6e6; --land-edge: #7d8aa3; --other: #c3c7cf; --other-edge: #a9afbb; --hot: #ffcf40;
  --k0: #f08a7e; --k1: #f2b04d; --k2: #6fc98b; --k3: #5ea8f0; --k4: #b58cf0; --k5: #f08ac0; --k6: #5fcad0; --k7: #c0c34f;
  --hint: #ff8a1f; --miss: #ff6b5e; --ink-label: #101420; --halo: rgba(255, 255, 255, .85);
  position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--water); box-shadow: var(--shadow);
  aspect-ratio: 1000 / 560; width: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .geomap { --water: #0a2036; --land: #46557a; --land-edge: #7b8bb0; --other: #1b2538; --other-edge: #2c3752; --hot: #ffcf40;
    --k0: #d9645a; --k1: #d99a35; --k2: #4eaa6c; --k3: #4a8fd8; --k4: #9570d8; --k5: #d070a8; --k6: #43aab0; --k7: #a3a738;
    --hint: #ff9a3c; --miss: #e5483c; --ink-label: #f2f5fb; --halo: rgba(8, 12, 20, .8); }
}
.geomap.grab { cursor: grabbing; }
@media (max-width: 640px) { .geomap { aspect-ratio: 4 / 3.3; } }
.gm-svg { display: block; width: 100%; height: 100%; }
.gm-water { fill: var(--water); }
.gm-c { stroke-width: .8px; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .25s ease; }
.gm-c.oth { fill: var(--other); stroke: var(--other-edge); }
.gm-c.ans { fill: var(--land); stroke: var(--land-edge); }
.gm-c.k0 { fill: var(--k0); } .gm-c.k1 { fill: var(--k1); } .gm-c.k2 { fill: var(--k2); } .gm-c.k3 { fill: var(--k3); }
.gm-c.k4 { fill: var(--k4); } .gm-c.k5 { fill: var(--k5); } .gm-c.k6 { fill: var(--k6); } .gm-c.k7 { fill: var(--k7); }
.gm-c.miss { fill: var(--miss); }
.gm-c.hint { fill: var(--hint); stroke: var(--ink-label); stroke-width: 1.4px; }
.gm-mk.hint { fill: var(--hint); stroke: var(--ink-label); stroke-dasharray: none; }
.gm-c.flash, .gm-mk.flash { animation: gmflash .9s ease; }
@keyframes gmflash { 0% { fill: var(--hot); } 100% { } }
.gm-mk { fill: none; stroke: var(--land-edge); stroke-width: 1.2px; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.gm-mk.k0 { fill: var(--k0); stroke: var(--ink-label); stroke-dasharray: none; } .gm-mk.k1 { fill: var(--k1); stroke: var(--ink-label); stroke-dasharray: none; }
.gm-mk.k2 { fill: var(--k2); stroke: var(--ink-label); stroke-dasharray: none; } .gm-mk.k3 { fill: var(--k3); stroke: var(--ink-label); stroke-dasharray: none; }
.gm-mk.k4 { fill: var(--k4); stroke: var(--ink-label); stroke-dasharray: none; } .gm-mk.k5 { fill: var(--k5); stroke: var(--ink-label); stroke-dasharray: none; }
.gm-mk.k6 { fill: var(--k6); stroke: var(--ink-label); stroke-dasharray: none; } .gm-mk.k7 { fill: var(--k7); stroke: var(--ink-label); stroke-dasharray: none; }
.gm-mk.miss { fill: var(--miss); stroke: var(--ink-label); stroke-dasharray: none; }
.gm-lb { fill: var(--ink-label); font-family: var(--f-body); font-weight: 700; paint-order: stroke; stroke: var(--halo); stroke-linejoin: round; pointer-events: none; }
.gm-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.gm-tools button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.15rem; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.gm-tools button:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .gm-c { transition: none; } .gm-c.flash, .gm-mk.flash { animation: none; } }
