/* Island names on the world map (public/worldmap-island-names.js): spaced
   serif capitals in sepia ink with a pale halo, flourishes either side, like
   the names on an old sea chart. In world pixels, so they scale with zoom. */
.wm-island-name {
  position: absolute;
  transform: translate(-50%, -50%) rotate(-4deg);
  pointer-events: none;
  z-index: 6;
  white-space: nowrap;
}
.wm-island-name-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4a2e14;
  text-shadow:
    0 0 2px rgba(255, 244, 214, 0.95),
    0 0 6px rgba(255, 244, 214, 0.85),
    0 0 14px rgba(255, 244, 214, 0.5);
  opacity: 0.92;
}
/* Flourishes: a thin line ending in a dot on each side. */
.wm-island-name-text::before,
.wm-island-name-text::after {
  content: "";
  width: 1.6em;
  height: 0.08em;
  min-height: 1px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 0 3px rgba(255, 244, 214, 0.9);
}
.wm-island-name-text::before { mask: linear-gradient(90deg, transparent, #000 40%); }
.wm-island-name-text::after { mask: linear-gradient(270deg, transparent, #000 40%); }

.wm-island-name-large .wm-island-name-text { font-size: 44px; }
.wm-island-name-medium .wm-island-name-text { font-size: 28px; }
.wm-island-name-small .wm-island-name-text { font-size: 20px; }

/* Dark theme: moonlit parchment lettering on the ink sea. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm-island-name-text {
    color: #f3dfb0;
    text-shadow: 0 0 2px rgba(10, 14, 24, 0.95), 0 0 8px rgba(10, 14, 24, 0.85), 0 0 16px rgba(10, 14, 24, 0.55);
  }
}
:root[data-theme="dark"] .wm-island-name-text {
  color: #f3dfb0;
  text-shadow: 0 0 2px rgba(10, 14, 24, 0.95), 0 0 8px rgba(10, 14, 24, 0.85), 0 0 16px rgba(10, 14, 24, 0.55);
}
