* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #111; color: #fff; font-family: 'Segoe UI', Arial, sans-serif; overflow: hidden; }

#login-screen {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #111; z-index: 100;
}
#login-screen h1 {
  font-size: 72px; letter-spacing: 8px; color: #0ff;
  text-shadow: 0 0 20px #0ff, 0 0 40px #08f;
}
.subtitle { color: #888; font-size: 18px; margin: 8px 0 40px; }
.login-form { display: flex; flex-direction: column; gap: 12px; width: 280px; }
.login-form input {
  padding: 12px 16px; border: 2px solid #333; border-radius: 8px;
  background: #1a1a1a; color: #fff; font-size: 16px; outline: none;
}
.login-form input:focus { border-color: #0ff; }
#play-btn {
  padding: 14px; border: none; border-radius: 8px; background: #0ff;
  color: #000; font-size: 18px; font-weight: bold; cursor: pointer;
  letter-spacing: 4px; transition: all 0.2s;
}
#play-btn:hover { background: #0dd; transform: scale(1.02); }
#login-error { color: #f44; text-align: center; min-height: 20px; }

#game-canvas {
  position: fixed; inset: 0; display: none; cursor: crosshair;
}

.hidden { display: none !important; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

#hud-top {
  display: flex; justify-content: space-between; padding: 16px 24px;
  font-size: 20px; font-weight: bold;
}
#player-count { color: #0ff; }
#timer { color: #ff4; }

#kill-feed {
  position: absolute; top: 60px; right: 24px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.kill-entry {
  background: rgba(0,0,0,0.7); padding: 4px 12px; border-radius: 4px;
  font-size: 14px; animation: fadeIn 0.3s;
}
.kill-entry .killer { color: #f44; }
.kill-entry .victim { color: #4af; }

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

#health-bar-container {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 28px; background: rgba(0,0,0,0.7); border-radius: 14px;
  border: 2px solid #333; overflow: hidden;
}
#health-bar {
  height: 100%; background: linear-gradient(90deg, #0f0, #4f4);
  transition: width 0.15s; border-radius: 12px;
}
#health-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: bold;
}

#weapon-display {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: bold; color: #ff0;
  background: rgba(0,0,0,0.6); padding: 6px 16px; border-radius: 8px;
}

#winner-banner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 48px; font-weight: bold; color: #ff0;
  text-shadow: 0 0 20px #fa0; text-align: center;
  background: rgba(0,0,0,0.8); padding: 24px 48px; border-radius: 16px;
}
