* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1b1f24;
  color: #eee;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
}

#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px;
  z-index: 10;
  pointer-events: none;
}

#hud-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

#nameInput {
  background: rgba(0,0,0,0.5);
  border: 1px solid #555;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  width: 160px;
}

#status {
  font-size: 12px;
  color: #9aa;
}

#scoreboard {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 180px;
  font-size: 13px;
  pointer-events: auto;
  max-height: 60vh;
  overflow-y: auto;
}

#scoreboard h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #ffd166;
}

#scoreboard .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

#scoreboard .row .dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

#wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  background: #2b3138;
  display: block;
  box-shadow: 0 0 0 2px #444, 0 0 40px rgba(0,0,0,0.6);
}

#deadOverlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(120,0,0,0.75);
  padding: 16px 26px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  z-index: 20;
}

.hidden { display: none !important; }

#help {
  position: fixed;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #ccc;
}
