/* ====== GLOBAL RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background: #0a0f1a;
  font-family: Arial, sans-serif;
  overflow: hidden;
  color: #fff;
}

/* ====== GAME CANVAS ====== */
#gameCanvas {
  display: block;
  margin: 0 auto;
  background: #111;
  border: 2px solid #00eaff;
  box-shadow: 0 0 20px #00eaff;
}

/* ====== HUD / UI ====== */
#hud {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 10px #00eaff;
}

.hud-item {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #00eaff;
  border-radius: 6px;
}

/* ====== TOWER SELECTION BAR ====== */
#towerBar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.towerButton {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #00eaff;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00eaff;
  font-weight: bold;
  font-size: 14px;
}

.towerButton:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #00eaff;
}

/* ====== START BUTTON ====== */
#startButton {
  position: absolute;
  top: 10px;
  right: 20px;
  padding: 10px 20px;
  background: #00eaff;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 15px #00eaff;
  transition: 0.2s;
}

#startButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00eaff;
}

/* ====== TOWER PLACEMENT HIGHLIGHT ====== */
.tile-highlight {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px dashed #00eaff;
  pointer-events: none;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ====== ENEMY / TOWER VISUALS (CSS OUTLINES) ====== */
.enemy {
  position: absolute;
  width: 30px;
  height: 30px;
  background: red;
  border-radius: 50%;
  box-shadow: 0 0 10px red;
}

.tower {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #00eaff;
  border-radius: 8px;
  box-shadow: 0 0 12px #00eaff;
}

/* ====== PROJECTILES ====== */
.projectile {
  position: absolute;
  width: 8px;
  height: 8px;
  background: yellow;
  border-radius: 50%;
  box-shadow: 0 0 10px yellow;
}