/* forge/atlas.css — v0.72.0 world map overview (M key) */
.forge-atlas {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(0, 4, 2, 0.94);
  color: #cfe;
  font-family: "Courier New", Courier, monospace;
}
.forge-atlas[hidden] {
  display: none !important;
}
.forge-atlas-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.22);
  background: rgba(0, 12, 6, 0.95);
}
.forge-atlas-title {
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #09f530;
  font-size: 0.85rem;
}
.forge-atlas-hint {
  font-size: 0.68rem;
  opacity: 0.65;
  flex: 1;
}
.forge-atlas-meta {
  font-size: 0.68rem;
  color: #f5c542;
  letter-spacing: 0.04em;
}
.forge-atlas-close {
  appearance: none;
  border: 1px solid rgba(0, 255, 136, 0.35);
  background: rgba(0, 30, 12, 0.8);
  color: #cfe;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.06em;
}
.forge-atlas-close:hover {
  border-color: #09f530;
  color: #09f530;
}
.forge-atlas-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.forge-atlas-canvas {
  position: relative;
  background: #020806;
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.2),
    0 0 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
/* Zone tiles — art only */
.forge-atlas-zone {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #152a1a;
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.45);
}
.forge-atlas-zone.is-transition:not(.has-art) {
  background-color: #1a1e10;
  background-image: repeating-linear-gradient(
    -18deg,
    rgba(80, 90, 30, 0.45) 0 6px,
    rgba(30, 40, 15, 0.5) 6px 12px
  ) !important;
  border: 1px dashed rgba(245, 197, 66, 0.4);
}
.forge-atlas-zone.is-transition.has-art {
  border: 1px dashed rgba(245, 197, 66, 0.5);
  background-color: #0a1008;
}
.forge-atlas-zone.has-art {
  border-color: rgba(100, 200, 120, 0.35);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}
.forge-atlas-zone.is-missing {
  border-color: rgba(80, 100, 80, 0.25);
  opacity: 0.85;
}
.forge-atlas-zone .atlas-lab {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 8, 4, 0.72);
  color: #b8e0b8;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.forge-atlas-zone.has-art .atlas-lab {
  color: #9ff0b0;
  border: 1px solid rgba(9, 245, 48, 0.25);
}
.forge-atlas-zone.is-missing .atlas-lab {
  color: #6a8a6a;
}
/* You-are-here marker */
.forge-atlas-you {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #09f530;
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(9, 245, 48, 0.8);
  z-index: 5;
  pointer-events: none;
}
.forge-atlas-you::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid rgba(9, 245, 48, 0.5);
  border-radius: 50%;
  animation: atlas-pulse 1.2s ease-out infinite;
}
@keyframes atlas-pulse {
  from { transform: scale(0.7); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}
body.forge-atlas-open {
  overflow: hidden;
}
body.forge-atlas-open .forge-map-wrap {
  /* keep game running under, but atlas is on top */
}
