body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  font-family: 'Courier New', monospace;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><line x1="16" y1="4" x2="16" y2="14" stroke="%23FFFFFF" stroke-width="2" stroke-opacity="0.7"/><line x1="8" y1="20" x2="16" y2="14" stroke="%23FFFFFF" stroke-width="2" stroke-opacity="0.7" stroke-linecap="round"/><line x1="24" y1="20" x2="16" y2="14" stroke="%23FFFFFF" stroke-width="2" stroke-opacity="0.7" stroke-linecap="round"/></svg>') 16 16, crosshair;
}

#gameCanvas {
  display: block;
  background: radial-gradient(circle, #001122 0%, #000000 100%);
  touch-action: none;
}

#joystick {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(0, 200, 255, 0.5);
  border-radius: 50%;
  touch-action: none;
  z-index: 10;
}

#joystickKnob {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(0, 200, 255, 0.8);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: none;
}

#hud {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  color: white;
  z-index: 10;
  pointer-events: none;
}

#healthBar {
  width: 200px;
  height: 20px;
  background: rgba(255, 0, 0, 0.3);
  border: 2px solid #fff;
  margin-bottom: 10px;
}

#healthFill {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #00ff00);
  transition: width 0.3s ease;
}

#pauseBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid #0cf;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
}

#menu,
#gameOverScreen,
#levelIntro,
#instructionsScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 20;
}

.menu-button {
  background: linear-gradient(45deg, #001122, #004488);
  color: white;
  border: 2px solid #0cf;
  padding: 15px 30px;
  margin: 10px;
  cursor: pointer;
  font-size: 18px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.menu-button:hover {
  background: linear-gradient(45deg, #004488, #0066cc);
  box-shadow: 0 0 20px #0cf;
}

#videoOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 30;
  display: none;
}

#skipBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid #0cf;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 31;
}

.star {
  position: absolute;
  background: white;
  width: 2px;
  height: 2px;
  animation: twinkle 2s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes explosion {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.explosion {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #ff6600, #ffff00);
  border-radius: 50%;
  animation: explosion 0.5s ease-out forwards;
  pointer-events: none;
}

.hidden {
  display: none !important;
}
