* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle, #111, #000);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

/* OVERLAYS */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hidden {
  display: none;
}

.start-box,
.score-box {
  background: #1c1c1c;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 260px;
}

.start-box input {
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  background: crimson;
  border: none;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  margin-top: 10px;
}

/* GAME */
.game {
  width: 560px;
  background: #141414;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(255,0,0,0.3);
  text-align: center;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.range {
  position: relative;
  height: 280px;
  background: linear-gradient(#222, #111);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #333;
}

/* TARGET */
#target {
  position: absolute;
  top: 60px;
  width: 120px;
  height: 120px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.r5 { width: 120px; height: 120px; background: white; }
.r4 { width: 96px; height: 96px; background: black; }
.r3 { width: 72px; height: 72px; background: blue; }
.r2 { width: 48px; height: 48px; background: red; }
.r1 { width: 24px; height: 24px; background: yellow; }

/* HIT */
.hit {
  position: absolute;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  z-index: 10;
}

/* GUN */
#gun {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 60px;
  height: 30px;
  background: #444;
  transform: translateX(-50%);
  border-radius: 5px;
}

/* LASER */
#laser {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
