body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  position: fixed;
}

canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

#info-text {
  position: fixed;
  top: env(safe-area-inset-top, 10px);
  width: 100%;
  text-align: center;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  z-index: 100;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #info-text {
    font-size: 12px;
    top: env(safe-area-inset-top, 5px);
    padding: 0 10px;
  }
}

@media (max-width: 375px) {
  #info-text {
    font-size: 10px;
    line-height: 1.2;
  }
}

#mobile-controls {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 10;
  pointer-events: none;
  display: none;
}

@media (max-height: 600px) {
  #mobile-controls {
    height: 150px;
  }
}

#joystick-area {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100px;
  height: 100px;
  background-color: rgba(139, 32, 160, 0.3);
  border-radius: 60px;
  pointer-events: auto;
}

#joystick {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(139, 32, 160, 0.6);
  border-radius: 30px;
  top: 25px;
  left: 25px;
}

#shoot-btn {
  position: absolute;
  bottom: 60px;
  right: 30px;
  width: 70px;
  height: 70px;
  background-color: rgba(200, 50, 50, 0.7);
  border-radius: 40px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  color: white;
  box-shadow: 0 0 10px rgba(139, 32, 160, 0.8);
}

#aim-btn {
  position: absolute;
  bottom: 60px;
  right: 110px;
  width: 70px;
  height: 70px;
  background-color: rgba(139, 32, 160, 0.7);
  border-radius: 40px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  color: white;
  box-shadow: 0 0 10px rgba(139, 32, 160, 0.8);
}

@media (max-width: 375px) {
  #joystick-area {
    width: 80px;
    height: 80px;
    bottom: 15px;
    left: 15px;
  }
  #joystick {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
  }
  #shoot-btn, #aim-btn {
    width: 60px;
    height: 60px;
    font-size: 12px;
  }
  #shoot-btn {
    right: 20px;
    bottom: 50px;
  }
  #aim-btn {
    right: 90px;
    bottom: 50px;
  }
}

#debug-panel {
  position: fixed;
  top: 50px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: lime;
  font-family: monospace;
  font-size: 14px;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  width: 250px;
  pointer-events: none;
}

@media (max-width: 375px) {
  #debug-panel {
    width: 200px;
    font-size: 10px;
  }
} 