* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameCanvas {
  display: block;
  background: #1a1a2e;
  image-rendering: pixelated;
}

/* Mobile Controls */
#mobile-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
}

#joystick-area {
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: 120px;
  height: 120px;
  pointer-events: auto;
}

#joystick-base {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  position: relative;
}

#joystick-thumb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#skill-buttons {
  position: absolute;
  right: 20px;
  bottom: 30px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.skill-btn {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}

.skill-btn:active {
  background: rgba(255,255,255,0.3);
}
