* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #0f0f10;
  overflow: hidden;
  font-family: Arial;
}

#gameCanvas {
  width: 100vw;
  height: 100vh;
  background: #0f0f10;
}

#scoreDisplay {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  font-size: 30px;
  z-index: 10;
}

#maxScoreDisplay {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffc400;
  font-size: 28px;
  z-index: 10;
}

#powerupsHUD {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  display: flex;
  gap: 12px;
  z-index: 20;
}

.pu {
  font-size: 26px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  color: white;
}
.pu.used { opacity: 0.35; }

#gameOverScreen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  color: white;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 30px;
  z-index: 50;
}

#gameOverScreen button {
  padding: 12px 20px;
  font-size: 24px;
  background: #ffc400;
  border-radius: 14px;
  border: none;
}

#joystickOuter {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  z-index: 40;
  touch-action: none;
}

#joystickInner {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #00e6c6;
  border-radius: 50%;
  left: 38px;
  top: 38px;
}
