/* ── Languages world map ── */
.worldmap { position: relative; max-inline-size: 1240px; margin-inline: auto; block-size: 480px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.worldmap::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 55% at 61% 48%, rgba(255, 106, 0, .09), transparent 70%); }
.wm-canvas { position: absolute; inset-block-start: 0; left: 0; display: block; }
.wm-layer { position: absolute; inset: 0; pointer-events: none; }
.wm-pin, .wm-home, .wm-bub { position: absolute; left: 0; top: 0; direction: ltr; }
.wm-bub small { unicode-bidi: plaintext; }
.wm-pin::before { content: ""; position: absolute; inline-size: 6px; block-size: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .18); transition: transform .3s ease; }
.wm-pin.on::before { transform: scale(1.7); box-shadow: 0 0 0 4px rgba(255, 106, 0, .25), 0 0 18px 2px rgba(255, 106, 0, .6); }
.wm-home i { position: absolute; inline-size: 12px; block-size: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, .25), 0 0 24px 4px rgba(255, 106, 0, .55); }
.wm-home i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--orange); animation: wm-ping 2.2s ease-out infinite; }
@keyframes wm-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.wm-home b { position: absolute; left: 0; top: 12px; translate: -50% 0; white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--accent-ink); padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 85%, transparent); border: 1px solid rgba(255, 106, 0, .35); }

.wm-bub { display: grid; justify-items: center; gap: 2px; padding: 9px 16px 8px; border-radius: 16px; white-space: nowrap;
  translate: -50% calc(-100% - 16px); opacity: 0; scale: .7; transform-origin: 50% 100%;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid rgba(255, 106, 0, .5);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8), 0 0 30px -8px rgba(255, 106, 0, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .35s ease, scale .45s cubic-bezier(.2, 1.4, .4, 1); }
.wm-bub::after { content: ""; position: absolute; bottom: -6px; left: 50%; inline-size: 10px; block-size: 10px; margin-inline-start: -5px; rotate: 45deg;
  background: inherit; border: inherit; border-block-start: 0; border-inline-start: 0; }
.wm-bub b { font-size: clamp(1.15rem, .9rem + .9vw, 1.7rem); line-height: 1.2; color: var(--text); }
.wm-bub small { font-size: .74rem; font-weight: 600; color: var(--accent-ink); }
.wm-bub.on { opacity: 1; scale: 1; z-index: 2; }

@media (max-width: 719px) { .wm-bub { padding: 7px 12px 6px; } .wm-bub b { font-size: 1.1rem; } .wm-home b { font-size: .7rem; } }
@media (prefers-color-scheme: light) {
  .wm-bub { box-shadow: 0 18px 40px -18px rgba(60, 30, 0, .35), 0 0 24px -10px rgba(255, 106, 0, .4); }
  .worldmap::after { background: radial-gradient(40% 55% at 61% 48%, rgba(255, 106, 0, .07), transparent 70%); }
}
@media (prefers-reduced-motion: reduce) { .wm-home i::after { animation: none; } .wm-bub { transition: none; } }
