body {
  margin: 0;
  overflow: hidden;
  background: #111;
}
#hud {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-family: monospace;
  font-size: 24px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  padding: 8px 16px;
  border-radius: 8px;
}
#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
#crosshair svg {
  display: block;
}
#crosshair:before, #crosshair:after {
  content: '';
  position: absolute;
  background: #fff;
}
#crosshair:before {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}
#crosshair:after {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}
#mobile-controls {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 100vw;
  z-index: 100;
  pointer-events: none;
  justify-content: center;
  align-items: flex-end;
}
#mobile-controls > div {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.mobile-btn, #mobile-controls {
  user-select: none;
  -webkit-user-select: none;
}
.mobile-btn {
  margin: 0;
  border-radius: 0;
  pointer-events: auto;
  font-size: 2em;
  background: rgba(40,40,40,0.85);
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 16px;
  min-width: 40px;
  min-height: 40px;
  box-shadow: 0 2px 8px #0008;
}
@media (max-width: 600px) {
  #hud, #kills, #top-scores {
    font-size: 15px !important;
    padding: 3px 6px !important;
  }
  .mobile-btn {
    font-size: 1.1em;
    min-width: 32px;
    min-height: 32px;
    padding: 6px 8px;
  }
  #mobile-controls > div {
    width: 100vw;
    gap: 0;
  }
}
#mobile-controls .btn-row {
  display: flex;
  gap: 0;
}
#mobile-controls {
  pointer-events: auto;
  background: transparent;
}
#mobile-controls > * {
  pointer-events: none;
}
.gameover-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #f00;
  font-family: monospace;
  background: rgba(0,0,0,0.8);
  padding: 32px 4vw;
  border-radius: 20px;
  z-index: 1000;
  text-align: center;
  width: 90vw;
  max-width: 420px;
  min-width: 220px;
  box-sizing: border-box;
} 