* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #292929;
  --panel: #292929;
  --text: #f2f6ff;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  width: min(95vw, 560px);
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  background-color: var(--panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.game-panel {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#hud {
  color: #d0e5ff;
  font-size: 0.95rem;
  text-align: center;
}

#gameCanvas {
  width: min(92vw, 480px);
  height: auto;
  background-color: #0b1220;
  border: 2px solid #315b92;
  border-radius: 10px;
}

#gameStatus {
  color: #c2d7ff;
  min-height: 1.3rem;
}


h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 1.8rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.difficulty {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.8rem 1.3rem;
  min-width: 92px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--panel);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.difficulty:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.difficulty:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.easy { background: linear-gradient(145deg, #3db372, #5ad795); }
.medium { background: linear-gradient(145deg, #d9a834, #f3cf63); }
.hard { background: linear-gradient(145deg, #cb4c57, #ee6a73); }