:root {
  --neon: #00f6ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Orbitron", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at top, #0b0b2e, #05050a);
  color: white;
}

#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(#09091a, #05050a);
  z-index: 1;
}

#hud {
  position: fixed;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 14px;
  z-index: 10;
  pointer-events: none;
}

#cameraBox {
  position: relative;
}

#webcam {
  width: 260px;
  height: 195px;
  border-radius: 12px;
  border: 2px solid var(--neon);
  object-fit: cover;
  background: black;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
}

#handStatus {
  font-size: 14px;
  color: var(--neon);
  text-shadow: 0 0 6px var(--neon);
  align-self: center;
}

#score {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  font-size: 22px;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
}

#gameOver {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#gameOverBox {
  background: #07071c;
  border: 2px solid var(--neon);
  padding: 30px 40px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 30px var(--neon);
}

#gameOverBox h1 {
  font-size: 42px;
  margin-bottom: 10px;
  color: var(--neon);
}

#gameOverBox p {
  font-size: 18px;
}

button {
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 18px;
  background: transparent;
  color: var(--neon);
  border: 2px solid var(--neon);
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: var(--neon);
  color: black;
}
