/* Country geography uses the same offline Equal Earth outlines as the game. */
.world-explorer {
  --world-ink: #081827;
  --world-mint: #59e0c5;
  --world-paper: #f0f6f6;
  --world-muted: #9aafb9;
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--world-paper);
  background: var(--world-ink);
  border: 1px solid rgb(154 175 185 / 18%);
  border-radius: 24px;
  isolation: isolate;
  font-family: Manrope, sans-serif;
}
.world-explorer button,
.world-explorer a { -webkit-tap-highlight-color: transparent; }
.world-explorer__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 28px 0;
}
.world-explorer__eyebrow,
.world-explorer__spotlight,
.world-explorer__region,
.world-explorer__code,
.world-explorer__pin-label {
  font-family: "IBM Plex Mono", monospace;
}
.world-explorer__eyebrow {
  color: var(--world-mint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.world-explorer__motion {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgb(154 175 185 / 30%);
  border-radius: 100px;
  color: var(--world-paper);
  background: rgb(240 246 246 / 3%);
  font: 600 11px Manrope, sans-serif;
  cursor: pointer;
}
.world-explorer__motion::before { content: "Ⅱ"; color: var(--world-mint); font-size: 13px; }
.world-explorer__motion[aria-pressed="true"]::before { content: "▷"; }
.world-explorer__motion:disabled { color: var(--world-muted); cursor: default; }
.world-explorer__stage {
  position: relative;
  aspect-ratio: 2000 / 870;
  margin: 25px 0 24px;
  background: radial-gradient(ellipse at 55% 45%, rgb(89 224 197 / 7%), transparent 68%);
}
.world-explorer__stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .19;
  background-image: linear-gradient(rgb(154 175 185 / 28%) 1px, transparent 1px), linear-gradient(90deg, rgb(154 175 185 / 28%) 1px, transparent 1px);
  background-size: 10% 25%;
  mask-image: radial-gradient(ellipse, black 20%, transparent 75%);
}
.world-explorer__land {
  display: block;
  width: 100%;
  height: 100%;
  opacity: .7;
  object-fit: contain;
  pointer-events: none;
}
.world-explorer__routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.world-explorer__route { fill: none; stroke: var(--world-mint); stroke-width: 1; stroke-opacity: .22; vector-effect: non-scaling-stroke; }
.world-explorer__signal {
  fill: none;
  stroke: var(--world-mint);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 96;
  stroke-dashoffset: 0;
  stroke-opacity: .9;
  vector-effect: non-scaling-stroke;
  animation: world-route-travel 6s linear infinite;
  animation-delay: var(--route-delay, 0s);
  animation-play-state: paused;
}
.world-explorer__pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--world-paper);
  cursor: pointer;
}
.world-explorer__dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--world-paper);
  border-radius: 50%;
  background: var(--world-ink);
  transition: background .18s ease, box-shadow .18s ease;
}
.world-explorer__dot::before {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid rgb(89 224 197 / 40%);
  border-radius: 50%;
  animation: world-pin-pulse 3.8s ease-out infinite;
  animation-delay: var(--pin-delay, 0s);
  animation-play-state: paused;
}
.world-explorer__pin[aria-pressed="true"] { z-index: 3; }
.world-explorer__pin[aria-pressed="true"] .world-explorer__dot,
.world-explorer__pin:hover .world-explorer__dot { background: var(--world-mint); border-color: var(--world-mint); box-shadow: 0 0 20px rgb(89 224 197 / 40%); }
.world-explorer__pin-label {
  position: absolute;
  top: -4px;
  left: 50%;
  padding: 4px 6px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(154 175 185 / 25%);
  border-radius: 4px;
  color: var(--world-muted);
  background: var(--world-ink);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .05em;
  transition: color .18s ease, border-color .18s ease;
  pointer-events: none;
}
.world-explorer__pin[aria-pressed="true"] .world-explorer__pin-label,
.world-explorer__pin:hover .world-explorer__pin-label { color: var(--world-mint); border-color: var(--world-mint); }
.world-explorer__caption { padding: 0 28px 25px; }
.world-explorer__hint { margin: 0 0 12px; color: var(--world-muted); font-size: 12px; line-height: 1.5; }
.world-explorer__countries { display: flex; flex-wrap: wrap; gap: 6px; }
.world-explorer__country {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgb(154 175 185 / 23%);
  border-radius: 7px;
  color: var(--world-muted);
  background: transparent;
  font: 600 11px Manrope, sans-serif;
  line-height: 1.25;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.world-explorer__country:hover { color: var(--world-paper); border-color: rgb(154 175 185 / 60%); }
.world-explorer__country[aria-pressed="true"] { color: var(--world-ink); border-color: var(--world-mint); background: var(--world-mint); }
.world-explorer__code { font-size: 9px; opacity: .85; }
.world-explorer__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; margin-top: 23px; padding-top: 21px; border-top: 1px solid rgb(154 175 185 / 20%); }
.world-explorer__spotlight { margin: 0 0 9px; color: var(--world-muted); font-size: 9px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.world-explorer__name { margin: 0; color: var(--world-paper); font: 600 clamp(22px, 3vw, 34px)/1.15 Sora, sans-serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
.world-explorer__region { margin: 8px 0 0; color: var(--world-mint); font-size: 10px; line-height: 1.5; }
.world-explorer__headline { margin: 0 0 7px; color: var(--world-paper); font-size: 13px; font-weight: 700; line-height: 1.5; }
.world-explorer__description { margin: 0; color: var(--world-muted); font-size: 12px; line-height: 1.8; }
.world-explorer__bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 20px; }
.world-explorer__note { max-width: 42ch; margin: 0; color: var(--world-muted); font-size: 10px; line-height: 1.6; }
.world-explorer__action { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; color: var(--world-mint); font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.world-explorer__action:hover { text-decoration: underline; text-underline-offset: 5px; }
.world-explorer button:focus-visible,
.world-explorer a:focus-visible { outline: 2px solid var(--world-paper); outline-offset: 4px; }
.world-explorer__fallback { padding: 0 28px 25px; color: var(--world-muted); font-size: 13px; line-height: 1.6; }
.world-explorer[data-motion="on"] .world-explorer__signal,
.world-explorer[data-motion="on"] .world-explorer__dot::before { animation-play-state: running; }
@keyframes world-route-travel { to { stroke-dashoffset: -100; } }
@keyframes world-pin-pulse { 0% { opacity: .75; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.65); } }
@media (max-width: 600px) {
  .world-explorer { border-radius: 17px; }
  .world-explorer__topbar { padding: 14px 18px 0; }
  .world-explorer__eyebrow { max-width: 50%; font-size: 9px; line-height: 1.7; }
  .world-explorer__motion { max-width: 50%; font-size: 10px; }
  .world-explorer__stage { margin: 30px 0 24px; }
  .world-explorer__caption { padding: 0 18px 20px; }
  .world-explorer__pin-label { opacity: 0; }
  .world-explorer__pin[aria-pressed="true"] .world-explorer__pin-label,
  .world-explorer__pin:hover .world-explorer__pin-label { opacity: 1; }
  .world-explorer__country { flex: 1 0 auto; justify-content: center; font-size: 10px; }
  .world-explorer__panel { grid-template-columns: 1fr; gap: 15px; }
  .world-explorer__bottom { align-items: start; flex-direction: column; gap: 6px; }
  .world-explorer__action { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-explorer *, .world-explorer *::before { animation: none !important; transition: none !important; }
}
