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

body {
  overflow: hidden;
  background: radial-gradient(circle at center, #101d35, #050b16);
  color: white;
}

#gameArea {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.bgGlow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(0,255,255,0.08);
  border-radius: 50%;
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hud {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.08);
  padding: 14px 24px;
  border-radius: 15px;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.hud div {
  font-size: 18px;
  font-weight: bold;
}

#target {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-8px); }
  100% { transform: translateX(-50%) translateY(0px); }
}

.ring {
  position: absolute;
  border-radius: 50%;
}

.outer {
  width: 220px;
  height: 220px;
  background: #ff3b3b;
  box-shadow: 0 0 25px red;
}

.ring2 {
  width: 160px;
  height: 160px;
  background: #0066ff;
  box-shadow: 0 0 25px #0066ff;
}

.ring3 {
  width: 100px;
  height: 100px;
  background: #ffe600;
  box-shadow: 0 0 25px yellow;
}

.center {
  width: 40px;
  height: 40px;
  background: lime;
  box-shadow: 0 0 25px lime;
}

/* Gun */
#gun {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 120px;
}

.gunBody {
  position: absolute;
  width: 100px;
  height: 40px;
  background: #333;
  border-radius: 10px;
  bottom: 35px;
  left: 30px;
  box-shadow: 0 0 15px cyan;
}

.gunBarrel {
  position: absolute;
  width: 20px;
  height: 80px;
  background: #555;
  top: 0;
  left: 70px;
  border-radius: 10px;
  box-shadow: 0 0 10px cyan;
}

.gunHandle {
  position: absolute;
  width: 35px;
  height: 55px;
  background: #222;
  bottom: 0;
  left: 60px;
  transform: rotate(20deg);
  border-radius: 10px;
}

.bullet {
  position: absolute;
  width: 10px;
  height: 25px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 15px cyan;
}

#scorePopup {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: gold;
  font-weight: bold;
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
}

.controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

button {
  padding: 12px 22px;
  border: none;
  margin-left: 10px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  background: cyan;
  color: black;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.08);
}

.screen {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.screen h1 {
  font-size: 60px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px cyan;
}

.screen h2 {
  margin: 10px 0;
}

.screen p {
  margin-bottom: 20px;
  font-size: 20px;
}

.hitFlash {
  animation: hitFlash 0.3s;
}

@keyframes hitFlash {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); }
}