/* Full-screen Sheikah-slate style map — BOTW-inspired, Pokémon-themed */

.world-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.world-map-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.world-map-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(18, 48, 88, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(8, 20, 42, 0.85) 0%, transparent 50%),
    linear-gradient(168deg, #06101f 0%, #0a1830 38%, #071428 100%);
}

.world-map-overlay__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(72, 168, 220, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 168, 220, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 48%, black 20%, transparent 78%);
}

.world-map-overlay__frame {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: clamp(12px, 2.5vh, 28px) clamp(16px, 3vw, 40px);
  min-height: 0;
  border: 2px solid rgba(72, 196, 255, 0.35);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(12, 32, 58, 0.9) inset,
    0 0 48px rgba(40, 140, 220, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(8, 22, 42, 0.92) 0%, rgba(5, 14, 28, 0.96) 100%);
  overflow: hidden;
}

.world-map-overlay__frame::before,
.world-map-overlay__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(120, 220, 255, 0.55);
  pointer-events: none;
  z-index: 3;
}

.world-map-overlay__frame::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.world-map-overlay__frame::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.world-map-overlay__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(72, 196, 255, 0.18);
  background: linear-gradient(180deg, rgba(16, 44, 78, 0.5) 0%, transparent 100%);
}

.world-map-overlay__title {
  margin: 0;
  font: 600 1.05rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(210, 240, 255, 0.95);
  text-shadow: 0 0 18px rgba(80, 200, 255, 0.35);
}

.world-map-overlay__subtitle {
  position: absolute;
  left: 20px;
  font: 500 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 200, 230, 0.65);
}

.world-map-overlay__body {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
  padding: clamp(8px, 1.5vh, 20px) clamp(12px, 2vw, 28px);
}

.world-map-overlay__map-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border: 1px solid rgba(72, 196, 255, 0.28);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(48, 160, 240, 0.08);
  background: #0a0614;
}

.world-map-overlay__canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.world-map-overlay__canvas.is-panning {
  cursor: grabbing;
}

.world-map-overlay__reticle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.world-map-overlay__footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(72, 196, 255, 0.14);
  background: linear-gradient(0deg, rgba(8, 20, 38, 0.65) 0%, transparent 100%);
}

.world-map-overlay__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.78rem/1 ui-sans-serif, system-ui, sans-serif;
  color: rgba(180, 210, 235, 0.82);
  letter-spacing: 0.02em;
}

.world-map-overlay__hint kbd {
  display: inline-block;
  min-width: 1.35em;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background: rgba(12, 36, 64, 0.75);
  color: rgba(220, 245, 255, 0.95);
  font: 600 0.72rem/1.2 ui-monospace, monospace;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.world-map-overlay__hud {
  position: absolute;
  left: 16px;
  bottom: 72px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 196, 255, 0.22);
  border-radius: 3px;
  background: rgba(6, 16, 32, 0.78);
  font: 500 0.78rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(200, 230, 250, 0.9);
  pointer-events: none;
}

.world-map-overlay__hud-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.world-map-overlay__hud-label {
  color: rgba(120, 180, 220, 0.7);
  min-width: 3.2em;
}

/* Map icon — bottom-right of minimap HUD ring (no chrome) */
.minimap-widget__expand-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(235, 228, 210, 0.88);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.minimap-widget__expand-btn:hover {
  color: #fff;
  transform: scale(1.06);
}

.minimap-widget__expand-btn:focus-visible {
  outline: 1px solid rgba(201, 162, 39, 0.75);
  outline-offset: 2px;
}

.minimap-widget__expand-btn-icon {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
