.icon-map {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  z-index: 3;
}

body, .map {
  overscroll-behavior: contain;
}

/* === RAD ICONS === */
.rad-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.rad-lvl-1 { opacity: 0.7; }
.rad-lvl-2 { animation: radPulse 1.4s infinite; }
.rad-lvl-3 { animation: radPulseFast 0.8s infinite; }

@keyframes radPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes radPulseFast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* === CHAT === */
.chat-popup {
  position: fixed;
  bottom: 60px;
  left: 10px;
  width: 90vw;
  max-width: 500px;
  max-height: 60vh;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #444;
  border-radius: 6px;
  overflow-y: auto;
  padding: 10px;
  z-index: 9999;
  display: none;
  box-shadow: 0 0 8px #000 inset;
}
.chat-button {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: #222;
  color: #0f0;
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  z-index: 9999;
  cursor: pointer;
}
.chat-button.new-message {
  animation: pulse 1s infinite;
  background-color: #5f0;
  color: #000;
}
@keyframes pulse {
  0% { box-shadow: 0 0 5px #5f0; }
  50% { box-shadow: 0 0 15px #0f0; }
  100% { box-shadow: 0 0 5px #5f0; }
}

/* === MAP WRAPPER === */
.map-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  width: 100vw;
  height: 100vh;
  background: #111;
}
.map-wrapper .map-game {
  transform-origin: top left;
  transition: transform 0.2s ease-in-out;
}
.zoom-controls {
  position: fixed;
  bottom: 70px;
  right: 10px;
  z-index: 9999;
}
.zoom-controls button {
  display: block;
  margin-bottom: 8px;
  padding: 6px 12px;
  font-size: 18px;
  background: #1c1c1c;
  color: #80ff80;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}
.zoom-controls button:hover {
  background: #333;
}