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

body {
  background: #000;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
}

/* ---- HUD ---- */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hud-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #ff2d6a;
  text-transform: uppercase;
}

.hud-value {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}

/* ---- Speed Bar ---- */
#speed-bar-wrap {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  pointer-events: none;
}

#speed-bar-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #ff2d6a;
  text-align: center;
  margin-bottom: 6px;
}

#speed-bar-bg {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

#speed-bar {
  height: 6px;
  background: linear-gradient(90deg, #ff2d6a, #ff9900);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s;
}

/* ---- Controls Hint ---- */
#controls-hint {
  position: fixed;
  bottom: 28px;
  right: 28px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
  pointer-events: none;
}

/* ---- Overlay (Start / Game Over) ---- */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#overlay h1 {
  font-size: 72px;
  letter-spacing: 12px;
  color: #fff;
  text-shadow: 0 0 30px #ff2d6a, 0 0 60px #ff2d6a;
  margin-bottom: 8px;
}

#overlay .sub {
  font-size: 13px;
  letter-spacing: 6px;
  color: #ff2d6a;
  margin-bottom: 48px;
}

#overlay .score-display {
  font-size: 36px;
  color: #fff;
  margin-bottom: 8px;
  display: none;
}

#overlay .score-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
  display: none;
}

#start-btn {
  background: none;
  border: 1px solid #ff2d6a;
  color: #ff2d6a;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 5px;
  padding: 14px 40px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

#start-btn:hover {
  background: #ff2d6a;
  color: #000;
  box-shadow: 0 0 20px #ff2d6a;
}
