.earth-map-shell {
  overflow: hidden;
  border: 1px solid var(--sikar-border);
  border-radius: 1rem;
  background: var(--sikar-surface);
}

.earth-map-toolbar,
.earth-map-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.earth-map-toolbar {
  flex-wrap: wrap;
  border-bottom: 1px solid var(--sikar-border);
}

.earth-map-caption,
.earth-map-footnote {
  color: var(--sikar-muted);
  font-size: 0.9rem;
}

.earth-map-actions {
  display: flex;
  gap: 0.5rem;
}

.earth-map-viewport {
  position: relative;
  height: clamp(22rem, 62vh, 46rem);
  overflow: hidden;
  outline-offset: -3px;
  background: #111a20;
  cursor: grab;
  touch-action: none;
}

.earth-map-viewport:active {
  cursor: grabbing;
}

.earth-map-viewport:focus-visible {
  outline: 3px solid var(--sikar-orange);
}

.earth-map-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.earth-map-stage img {
  position: absolute;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
}

.earth-map-message {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: min(85%, 28rem);
  margin: 0;
  padding: 0.9rem 1.1rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--sikar-border);
  border-radius: 0.7rem;
  background: rgb(23 27 32 / 94%);
  color: var(--sikar-text);
  text-align: center;
}

.earth-map-message[hidden] {
  display: none;
}

.earth-map-footnote {
  flex-wrap: wrap;
  border-top: 1px solid var(--sikar-border);
}

@media (max-width: 576px) {
  .earth-map-toolbar,
  .earth-map-footnote {
    padding: 0.85rem;
  }
}
