* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  overflow: hidden;
  background: #060612;
  color: #fff;
}

canvas {
  display: block;
}

#hud {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  pointer-events: none;
  z-index: 10;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  gap: 10px;
}

.stat-box {
  background: rgba(10, 14, 34, 0.8);
  border: 2px solid #00f0ff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 20, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.panel {
  background: #10152e;
  border: 2px solid #ff007f;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.5);
}

.panel h1 {
  font-size: 2.2rem;
  color: #00f0ff;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.panel p {
  color: #cfd6ff;
  margin-bottom: 24px;
  line-height: 1.5;
}

#start-btn {
  background: linear-gradient(135deg, #ff007f, #7900ff);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

#start-btn:hover {
  filter: brightness(1.15);
}

#mobile-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 15;
  pointer-events: none;
}

.left-controls, .right-controls {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

#mobile-controls button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  background: rgba(12, 18, 44, 0.75);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

#mobile-controls button:active {
  background: #00f0ff;
  color: #000;
}
