html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000;
  font-family: Helvetica;
  overscroll-behavior: none; /* disable pull-to-refresh */
  touch-action: none;        /* prevent browser gestures */
}

#viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}
#viewport.dragging { cursor: grabbing; }

/* Map that pans/zooms */
#map {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}
#map-img {
  display: block;
  max-width: none; /* keep true size */
  max-height: none;
}

/* Blips */
.blip {
  background-image: url("blip.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  width: 16px;
  height: 16px;
}
.blip.dead { background-image: url("blip_dead.svg"); }
.blip.pin  { background-image: url("blip_pin.svg"); width: 24px; height: 24px; }

/* Blip tag labels */
.blip-tag {
  position: absolute;
  transform: translate(-100%, -100%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1.5vh;
  padding: 0.25vh 0.25vw;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 0.5vh 0.5vw;
}

/* Fixed overlays */
#server-name {
  position: fixed;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5vh 0.5vw;
  font-size: 2.5vh;
  z-index: 1000;
}

#info {
  position: fixed;
  top: 3%;
  left: 3%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1vh 1vw;
  color: white;
  z-index: 1000;
  font-size: 1.5vh;
}

/* Player list */
#player-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-gap: 0.5vh 1vw;
  font-size: 1.5vh;
}

/* Responsive blip scaling for small screens */
@media (max-width: 768px) {
  .blip { width: 24px; height: 24px; }
  .blip.pin { width: 32px; height: 32px; }
  .blip-tag { font-size: 2vh; padding: 0.5vh 0.5vw; }
  #info { font-size: 2vh; }
}