* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #87ceeb;
  font-family: 'Segoe UI', sans-serif;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

/* Crosshair */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

#crosshair::before,
#crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

#crosshair::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#crosshair::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* HUD */
#hud {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

#hud-zone {
  font-size: 18px;
  font-weight: bold;
  color: #ffe066;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#hud-players {
  font-size: 13px;
  color: #e0f0ff;
  margin-top: 4px;
}

/* Portal prompt */
#portal-prompt {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 60, 30, 0.82);
  border: 1px solid rgba(255, 220, 80, 0.7);
  border-radius: 10px;
  padding: 12px 28px;
  color: #fffbe0;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-align: center;
  display: none;
  pointer-events: none;
}

#portal-prompt span {
  color: #ffe066;
  font-weight: bold;
}

/* Minimap */
#minimap {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(255, 220, 80, 0.5);
  background: rgba(0, 40, 60, 0.6);
  overflow: hidden;
}

#minimap-canvas {
  width: 120px;
  height: 120px;
}

/* Pause overlay */
#pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 10, 0.75);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

#pause-overlay h2 {
  font-size: 32px;
  color: #ffe066;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255, 200, 0, 0.6);
}

#pause-overlay p {
  font-size: 16px;
  color: #ccc;
}

#pause-overlay.active {
  display: flex;
}

/* Start overlay */
#start-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,80,150,0.85) 0%, rgba(0,40,80,0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

#start-overlay h1 {
  font-size: 52px;
  font-weight: 900;
  color: #ffe066;
  text-shadow: 0 0 30px rgba(255, 200, 0, 0.8), 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

#start-overlay p {
  font-size: 18px;
  color: #c8eeff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
