* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #020305;
  color: #f5f7ff;
  overflow: hidden;
}

canvas {
  display: block;
}

#overlay {
  position: fixed;
  inset: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#overlay .hud {
  margin-top: auto;
  width: 100%;
  padding: 12px 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}

#overlay .stats {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

#overlay .help {
  font-size: 13px;
  opacity: 0.8;
}

#status {
  color: #ffd369;
}

#joystick {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  position: relative;
  pointer-events: auto;
  touch-action: none;
}

#joystick-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#bomb-button {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 28px;
  border: none;
  background: rgba(255, 82, 82, 0.85);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  touch-action: manipulation;
}

#bomb-button:active {
  transform: translateY(2px) scale(0.96);
}
