@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0a0a14;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#game-container {
  position: relative;
  width: 100vmin;
  height: 100vmin;
  max-width: 800px;
  max-height: 800px;
  box-shadow: 0 0 60px rgba(0,150,255,0.15), 0 0 120px rgba(0,150,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
}
.joystick-zone {
  position: absolute;
  bottom: 10px;
  width: 42%;
  height: 38%;
  z-index: 10;
}
#joy-zone-p1 { left: 3%; }
#joy-zone-p2 { right: 3%; }
.joystick-base {
  position: absolute;
  bottom: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 3px solid rgba(255,255,255,0.15);
  pointer-events: none;
}
#joy-zone-p1 .joystick-base { left: 20px; }
#joy-zone-p2 .joystick-base { right: 20px; }
.joystick-thumb {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
#joy-zone-p1 .joystick-thumb { left: 80px; top: 80px; }
#joy-zone-p2 .joystick-thumb { left: 80px; top: 80px; }
.shoot-btn {
  position: absolute;
  bottom: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,40,40,0.2);
  border: 3px solid rgba(255,60,60,0.4);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  text-shadow: 0 0 8px rgba(255,60,60,0.6);
}
#joy-zone-p1 .shoot-btn { right: 10px; }
#joy-zone-p2 .shoot-btn { left: 10px; }
.shoot-btn:active, .shoot-btn.active {
  background: rgba(255,40,40,0.6);
  border-color: #f33;
  box-shadow: 0 0 25px rgba(255,40,40,0.6);
}
.controls-hint {
  position: absolute;
  top: 8px;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  pointer-events: none;
  z-index: 5;
  text-shadow: 0 0 5px rgba(0,150,255,0.3);
}