.mapa-mundo {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  padding: 22px;
  background: rgba(6, 10, 14, 0.62);
  pointer-events: auto;
  animation: mapa-entra 0.2s ease;
}

/* Dentro da aba Map do menu — tela cheia no painel (sem stub) */
.mapa-mundo.mapa-mundo--menu {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  background: var(--world-map-void, #143a68);
  animation: none;
}

.mapa-mundo.mapa-mundo--menu .mapa-mundo__moldura {
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.game-menu.is-map-focus .map__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mapa-mundo[hidden] {
  display: none;
}

.mapa-mundo__moldura {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #102033;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 244, 220, 0.28);
  animation: mapa-sobe 0.22s ease;
}

.mapa-mundo__moldura::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.42) 100%);
}

.mapa-mundo__tela {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.mapa-mundo__tela--arraste {
  cursor: grabbing;
}

.mapa-mundo__tela--cidade {
  cursor: pointer;
}

.mapa-mundo__titulo,
.mapa-mundo__dica {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: #f6f0e4;
  font-family: "Segoe UI", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.mapa-mundo__titulo {
  top: 14px;
  left: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mapa-mundo__dica {
  left: 16px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.mapa-mundo__toggles {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.mapa-mundo__toggle {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 228, 0.35);
  background: rgba(16, 22, 18, 0.55);
  color: #f6f0e4;
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mapa-mundo__toggle:hover {
  border-color: rgba(246, 240, 228, 0.65);
  background: rgba(24, 32, 28, 0.72);
}

.mapa-mundo__toggle.is-ativo,
.mapa-mundo__toggle[aria-pressed="true"] {
  border-color: rgba(255, 140, 90, 0.85);
  background: rgba(90, 36, 24, 0.78);
  color: #ffe8d8;
}

.mapa-mundo__confirm {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(360px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(246, 240, 228, 0.35);
  background: rgba(12, 18, 24, 0.88);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  color: #f6f0e4;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
}

.mapa-mundo__confirm[hidden] {
  display: none;
}

.mapa-mundo__confirm-txt {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.mapa-mundo__confirm-acoes {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.mapa-mundo__confirm-acoes button {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 228, 0.35);
  background: rgba(24, 32, 28, 0.72);
  color: #f6f0e4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.mapa-mundo__confirm-acoes button:hover {
  border-color: rgba(246, 240, 228, 0.65);
  background: rgba(36, 46, 40, 0.85);
}

.mapa-mundo__confirm-acoes button:first-child {
  border-color: rgba(120, 200, 140, 0.7);
  background: rgba(28, 64, 40, 0.82);
  color: #e8ffe8;
}

@keyframes mapa-entra {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mapa-sobe {
  from {
    transform: scale(0.96);
  }
  to {
    transform: none;
  }
}
