* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #0a0a0a;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: 'Fira Code', monospace;
  touch-action: none;
}

#canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: none;
}

#controls {
  display: none;
}

#touch-controls {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  pointer-events: none;
}

#joystick-zone {
  width: 140px;
  height: 140px;
  pointer-events: auto;
}

#joystick-base {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 170, 51, 0.08);
  border: 2px solid rgba(255, 170, 51, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#joystick-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 170, 51, 0.25);
  border: 2px solid rgba(255, 170, 51, 0.4);
  position: absolute;
  transition: none;
}

#footer-overlay {
  position: fixed;
  bottom: 8px;
  right: 12px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.5s;
}

#footer-overlay.visible {
  opacity: 1;
}

#footer-overlay a {
  color: rgba(200, 200, 255, 0.2);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  text-decoration: none;
}

#footer-overlay a:hover {
  color: rgba(200, 200, 255, 0.5);
}

@media (pointer: coarse) {
  #touch-controls {
    display: block;
  }
  #canvas {
    cursor: default;
  }
}