/* Live heat map modal (#mapModal) */
#mapModal .modal.mapModalBox{ width:min(1120px,100%); max-height:min(90vh,900px); }

.liveMapLayout{
  display:grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap:16px;
  align-items:start;
}
@media (max-width: 860px){
  .liveMapLayout{ grid-template-columns:1fr; }
}

.liveMapStage{
  position:relative;
  width:min(100%, 74vh, 740px);
  aspect-ratio:1/1;
  margin:0 auto;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--border);
  background:#1b4262;
  cursor:grab;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
.liveMapStage.dragging{ cursor:grabbing; }

.liveMapWorld{
  position:absolute;
  left:0; top:0;
  width:100%; height:100%;
  transform-origin:0 0;
  will-change:transform;
}
.liveMapWorld > img,
.liveMapWorld > canvas,
.liveMapWorld > svg{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  display:block;
  pointer-events:none;
}
.liveMapWorld > img{ object-fit:fill; }
.liveMapWorld > canvas{ mix-blend-mode:normal; }

.liveMapZoom{
  position:absolute;
  right:10px; top:10px;
  display:flex; flex-direction:column; gap:6px;
  z-index:3;
}
.liveMapZoom button{
  width:34px; height:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(12,18,10,.72);
  color:#f2ead9;
  font-size:18px; line-height:1;
  cursor:pointer;
  backdrop-filter:blur(6px);
}
.liveMapZoom button:hover{ background:rgba(12,18,10,.9); }

.liveMapBadge{
  position:absolute;
  left:10px; top:10px;
  z-index:3;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px; font-weight:700;
  letter-spacing:.02em;
  background:rgba(12,18,10,.72);
  color:#f2ead9;
  border:1px solid var(--border);
  backdrop-filter:blur(6px);
}
.liveMapBadge.demo{ color:#ffd479; }

.liveMapTip{
  position:absolute;
  z-index:4;
  pointer-events:none;
  padding:5px 9px;
  border-radius:8px;
  font-size:12px; font-weight:700;
  background:rgba(12,18,10,.88);
  color:#f2ead9;
  border:1px solid var(--border);
  transform:translate(10px,10px);
  white-space:nowrap;
  display:none;
}

.liveMapPanel{ display:grid; gap:12px; }
.liveMapBox{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.14);
}
.liveMapBox h4{
  margin:0 0 8px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted2);
  font-weight:800;
}

.liveMapSeg{ display:flex; gap:6px; }
.liveMapSeg button{
  flex:1;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  font:inherit; font-weight:700; font-size:13px;
  cursor:pointer;
}
.liveMapSeg button.active{
  background:var(--accent);
  color:#1d1a12;
  border-color:var(--accent);
}

.liveMapToggle{
  display:flex; align-items:center; gap:10px;
  padding:6px 0;
  font-size:14px;
  cursor:pointer;
}
.liveMapToggle input{ accent-color:var(--accent); width:16px; height:16px; }

.liveMapStat{ display:flex; justify-content:space-between; gap:10px; padding:3px 0; font-size:14px; }
.liveMapStat b{ font-weight:800; }

.liveMapLegendBar{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg,#1e3cff 0%,#00d2ff 35%,#3cff6e 55%,#ffe600 75%,#ff2a00 100%);
  margin:4px 0 6px;
}
.liveMapLegendLabels{ display:flex; justify-content:space-between; font-size:12px; color:var(--muted2); }

.liveMapNote{ font-size:13px; line-height:1.45; color:var(--muted); }
.liveMapNote.warn{ color:#ffcf8a; }

.liveMapFind{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#1d1a12;
  font:inherit; font-weight:800;
  cursor:pointer;
}
.liveMapFind:disabled{ opacity:.45; cursor:not-allowed; }

/* маркер игрока внутри SVG */
.lmPulse{ animation: lmPulse 1.8s ease-out infinite; transform-box:fill-box; transform-origin:center; }
@keyframes lmPulse{
  0%{ transform:scale(.6); opacity:.9; }
  100%{ transform:scale(2.6); opacity:0; }
}
@media (prefers-reduced-motion: reduce){ .lmPulse{ animation:none; opacity:.4; } }
