/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ── Game Container ── */
.game-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 30px 40px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.game-container h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
  letter-spacing: 2px;
}

/* ── Score Board ── */
.score-board {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e0e0ff;
  margin-bottom: 16px;
  padding: 0 4px;
}

.score-board span {
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#score {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#highScore {
  color: #ff6ec7;
  text-shadow: 0 0 10px rgba(255, 110, 199, 0.5);
}

/* ── Canvas ── */
#gameCanvas {
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(0, 200, 255, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  background: #1a1a2e;
  image-rendering: pixelated;
}

/* ── Controls ── */
.controls {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#restartBtn {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 36px;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
  letter-spacing: 1px;
}

#restartBtn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 30px rgba(245, 87, 108, 0.6);
}

#restartBtn:active {
  transform: scale(0.96);
}

.hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}