#world-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  direction: ltr;
  background-color: #0b1726;
  background-image: linear-gradient(180deg, rgb(4 11 20 / 32%), transparent 45%, rgb(4 11 20 / 14%)), radial-gradient(ellipse at 48% 28%, #172a40, #0d1a2c 63%, #091321);
}

.wm-pan-surface {
  /* Give a short pan enough prepainted map around every edge. */
  position: absolute;
  inset: -65px -80px;
  contain: strict;
}

.wm-atlas {
  position: absolute;
  inset: 65px 80px;
  width: calc(100% - 160px);
  height: calc(100% - 130px);
  display: block;
  touch-action: none;
  user-select: none;
  cursor: grab;
  overflow: visible;
}

.wm-dragging .wm-atlas,
.wm-dragging .wm-atlas * { cursor: grabbing; }
.wm-dragging .wm-pan-surface, .wm-zooming .wm-pan-surface { will-change: transform; }

.wm-graticule {
  fill: none;
  stroke: #6d8ca7;
  stroke-width: .65;
  stroke-opacity: .21;
  pointer-events: none;
}

.wm-reference, .wm-coordinates { pointer-events: none; }
/* The geographical path supplies the hit area, including islands and excluding enclaves. */
.wm-country-claims [role="button"] { outline: none; -webkit-tap-highlight-color: transparent; }
.wm-country-claims [role="button"] > path { pointer-events: fill; cursor: pointer; }
.wm-country-claims .wm-friendly-inspection > path { stroke: none; }
.wm-country-claims [role="button"]:focus-visible > path { stroke: #fff3be; stroke-width: 2px; stroke-opacity: 1; }
.wm-country-leader { fill: none; stroke: #79b8bd; stroke-width: .8; pointer-events: none; }
.wm-country-claims [role="button"] .wm-country-badge { cursor: pointer; pointer-events: all; }
.wm-country-badge rect { fill: #102331; stroke: #558a90; stroke-width: 1; }
.wm-country-badge text { fill: #d3efef; font: 600 12px Barlow, sans-serif; }
.wm-country-claims [role="button"]:focus-visible .wm-country-badge rect { stroke: #fff3be; stroke-width: 2; }
.wm-reference text, .wm-coordinates text {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-weight: 500;
}
.wm-continent {
  fill: #b0c0cf;
  fill-opacity: .63;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .22em;
  paint-order: stroke;
  stroke: #23364b;
  stroke-width: 2px;
}
.wm-ocean {
  fill: #718ba1;
  fill-opacity: .64;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.wm-coordinates {
  fill: #6e869b;
  opacity: .72;
  font-size: 8px;
  letter-spacing: .05em;
}

.wm-pin {
  --wm-signal: #85a2b5;
  color: var(--wm-signal);
  cursor: pointer;
  outline: none;
}
.wm-held { --wm-signal: #50e5d0; }
.wm-selected { --wm-signal: #ffc25c; }
.wm-hit { fill: transparent; pointer-events: none; }
.wm-point { fill: currentColor; stroke: #152b3a; stroke-width: .8px; pointer-events: visiblePainted; }
.wm-held .wm-point, .wm-selected .wm-point {
  filter: drop-shadow(0 0 3px currentColor);
  stroke: #d9fff4;
  stroke-width: .8px;
}
.wm-selected .wm-point { stroke: #fff1ca; }
.wm-flag-frame { fill: #0b1523; stroke: #8996a4; stroke-width: .75px; }
.wm-held .wm-flag-frame, .wm-selected .wm-flag-frame { stroke: currentColor; stroke-width: 1.3px; }
.wm-pin:hover .wm-flag-marker, .wm-pin:focus-visible .wm-flag-marker { opacity: 1; }
.wm-pin:focus-visible .wm-flag-frame { stroke: white; stroke-width: 2px; }
.wm-boost-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: wmBoostWave .95s ease-out both;
}
@keyframes wmBoostWave {
  from { transform: scale(.72); opacity: .95; }
  to { transform: scale(1.33); opacity: 0; }
}
.wm-zone, .wm-zone-pulse, .wm-inner, .wm-reticle, .wm-sight { pointer-events: none; }
.wm-zone {
  transform-box: fill-box;
  transform-origin: center;
  fill: currentColor;
  fill-opacity: .055;
  stroke: currentColor;
  stroke-width: .8px;
  stroke-opacity: .55;
}
.wm-zone-pulse {
  fill: none;
  stroke: currentColor;
  stroke-width: .6px;
  stroke-opacity: .4;
  transform-box: fill-box;
  transform-origin: center;
  animation: zonePulse 3.4s ease-in-out infinite;
}
.wm-inner { fill: currentColor; fill-opacity: .15; stroke: currentColor; stroke-opacity: .76; stroke-width: .8px; }
.wm-reticle { fill: none; stroke: currentColor; stroke-width: .85px; stroke-opacity: .85; stroke-dasharray: 13 4 4 4; }
.wm-sight { fill: none; stroke: currentColor; stroke-width: 1.3px; }
.wm-pin:hover .wm-point, .wm-pin:focus-visible .wm-point { fill: white; stroke: currentColor; stroke-width: 2px; opacity: 1; }
.wm-pin:focus-visible .wm-hit { stroke: white; stroke-width: 1.6px; }

@keyframes zonePulse {
  0%, 100% { transform: scale(.8); opacity: .63; }
  50% { transform: scale(1.24); opacity: 1; }
}

.wm-labels { pointer-events: none; }
.wm-map-label { cursor: pointer; pointer-events: visiblePainted; }
.wm-map-label text { direction: ltr; unicode-bidi: plaintext; }
.wm-label-bg { stroke-width: .7px; }
.wm-label-held .wm-label-bg {
  fill: #0a242c;
  fill-opacity: .94;
  stroke: #3b7379;
}
.wm-label-selected .wm-label-bg {
  fill: #242620;
  fill-opacity: .98;
  stroke: #b88e4c;
}
.wm-city-name {
  font: 600 11px/1 Arial, sans-serif;
  fill: #b9eae4;
}
.wm-label-selected .wm-city-name { fill: #ffcc75; }
.wm-label-free .wm-city-name {
  fill: #a1b4c7;
  font-size: 9.5px;
  font-weight: 500;
  paint-order: stroke;
  stroke: #142337;
  stroke-width: 2.4px;
  stroke-linejoin: round;
}
.wm-ruler { font: 10px Consolas, monospace; fill: #d6c19c; }
.wm-control-place { font: 9px Arial, sans-serif; fill: #cad7db; }
.wm-leader { fill: none; stroke: #d8af69; stroke-width: .75px; }
.wm-tip {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(260px, 90%);
  border: 1px solid #496575;
  border-radius: 3px;
  padding: 5px 7px;
  background: #0a1a27;
  box-shadow: 0 2px 8px #040b16a8;
  color: #e4efef;
  font: 500 11px/1.35 Arial, sans-serif;
  pointer-events: none;
}
.wm-tip[hidden] { display: none; }
.wm-tip:has(.wm-tip-socials) { pointer-events: auto; }
.wm-tip-socials { margin-top: 3px; }
.wm-tip .city-places { margin-block-start: 4px; }
.wm-tip .city-places-list { font: inherit; }
.wm-tip-flag {
  width: 17px;
  height: 11px;
  object-fit: contain;
  vertical-align: -1px;
}

@media (max-width: 640px) {
  .wm-continent { font-size: 7.5px; }
  .wm-ocean { font-size: 6.5px; }
  .wm-coordinates { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-zone-pulse { animation: none; visibility: hidden; }
  .wm-boost-wave { animation: none; visibility: hidden; }
}

/* Smartphone: no callout box at the selected city, only its target marker (set in world-map.js). */
.wm-phone-hidden { display: none !important; }

/* Free cities of a clicked country: box "Currently not conquered" above the city name. */
.wm-label-revealed .wm-label-bg { fill: #16202b; fill-opacity: .95; stroke: #7d8fa3; }
.wm-label-revealed .wm-city-name { fill: #dbe7f3; font-size: 11px; font-weight: 600; stroke: none; }
.wm-free-note { font: 600 9px/1 Arial, sans-serif; fill: #ffcc75; }
