html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #14171f;
  /* Stops iOS Safari's rubber-band bounce from fighting the canvas drag. */
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

#game-over {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 23, 31, 0.88);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

#game-over.hidden {
  display: none;
}

.game-over-card {
  text-align: center;
  color: #f2e9da;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 2rem;
}

.game-over-card h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #f2a53a;
}

.game-over-card p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.85;
}

#restart-btn {
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  border: none;
  background: #f2a53a;
  color: #14171f;
  font-weight: 600;
}
