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

body {
  background: #000;
  font-family: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  overflow: hidden;
  color: #fff;
  user-select: none;
}

/* ── Canvas ─────────────────────────────────────────────────────────── */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}
#canvas-container canvas { display: block; width: 100% !important; height: 100% !important; }

/* ── Lobby ──────────────────────────────────────────────────────────── */
#lobby {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  /* lighter in the middle so the fly-over of the map shows round the card */
  background: radial-gradient(ellipse at center, rgba(12,13,15,0.5) 0%, rgba(12,13,15,0.8) 80%);
}

#lobby-card {
  background: #18191c;
  border: 1px solid #2c2e32;
  border-radius: 8px;
  padding: 40px 48px;
  text-align: center;
  min-width: 340px;
}

#lobby-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ece9e4;
  margin-bottom: 6px;
}

#lobby-subtitle {
  color: #9f9993;
  font-size: 0.8rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#lobby-players {
  background: #1f2023;
  border: 1px solid #2c2e32;
  border-radius: 4px;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #b4ada7;
}

#name-input {
  width: 100%;
  padding: 12px 16px;
  background: #1f2023;
  border: 1px solid #34363b;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
  text-align: center;
  transition: border-color 0.2s;
}
#name-input:focus { border-color: #d4a843; }

#join-btn, #start-btn, #overlay-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.15s, transform 0.1s;
}
#join-btn:hover, #start-btn:hover, #overlay-btn:hover { opacity: 0.88; }
#join-btn  { background: #d4a843; color: #17140d; margin-bottom: 10px; }
#start-btn { background: #ece9e4; color: #111; margin-bottom: 10px; }
#overlay-btn { background: #ece9e4; color: #111; margin-top: 20px; }

#lobby-hint { font-size: 0.75rem; color: #7a756f; margin-top: 8px; }

/* ── Game UI (HUD) ──────────────────────────────────────────────────── */
#game-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Crosshair */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-size: 1.6rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 4px #000;
  line-height: 1;
}

/* Bottom-left: HP + shield */
#hud-left {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #aaa;
  width: 18px;
  text-align: right;
}

.bar-track {
  width: 180px;
  height: 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.2s, background-color 0.3s;
}
.bar-fill.hp     { background: #22CC44; width: 100%; }
.bar-fill.shield { background: #4499FF; width: 100%; }

.hud-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 28px;
  text-align: right;
  color: #eee;
}

/* Bottom-right: ammo + weapon slots */
#hud-right {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
}

#ammo-display {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #eee;
}
.ammo-slash { color: #555; }

#weapon-slots {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.weapon-slot {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  border: 2px solid #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #666;
  transition: border-color 0.15s, color 0.15s;
}
.weapon-slot.active {
  border-color: #d4a843;
  color: #d4a843;
  background: rgba(0,0,0,0.6);
}

/* Top-right: scoreboard */
#hud-top-right {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.8;
  border: 1px solid rgba(255,255,255,0.08);
}
.score-label {
  color: #888;
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-right: 6px;
}

/* Top-left: kill feed */
#kill-feed {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.kill-entry {
  background: rgba(0,0,0,0.55);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-left: 3px solid #FF4444;
  animation: fadeIn 0.2s ease;
}
.kill-entry .killer { color: #d4a843; font-weight: 700; }
.kill-entry .verb   { color: #aaa; }
.kill-entry .victim { color: #FF7777; font-weight: 700; }

@keyframes fadeIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; } }

/* Click-to-lock hint */
#lock-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #aaa;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ── Overlay ────────────────────────────────────────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  pointer-events: all;
}

#overlay-card {
  text-align: center;
  padding: 40px 60px;
  background: #18191c;
  border-radius: 8px;
  border: 1px solid #2c2e32;
}

#overlay-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
#overlay-sub {
  color: #b4ada7;
  font-size: 1rem;
  margin-bottom: 8px;
}


/*# sourceMappingURL=app.css.map*/