* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0a0a14, #000);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.game-title {
  margin-bottom: 15px;
  font-size: 28px;
  color: #00ffc6;
  text-shadow: 0 0 15px rgba(0,255,198,0.6);
}

canvas {
  width: 95vw;         /* scale width to 95% of screen */
  height: auto;        /* height auto to maintain 800:600 ratio */
  max-width: 800px;    /* don’t exceed original width */
  max-height: 600px;   /* don’t exceed original height */
  border-radius: 16px;
  border: 2px solid rgba(0,255,180,0.6);
  box-shadow: 
    0 0 25px rgba(0,255,180,0.35),
    inset 0 0 10px rgba(255,255,255,0.2);
  touch-action: none;
}


#restartBtn {
  display: none;
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #00ffc6, #00bfa5);
  color: black;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 18px rgba(0,255,198,0.7);
  transition: 0.2s;
}

#restartBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0,255,198,1);
}

.hint {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 900px) {
  canvas {
    width: 95vw;
    height: 65vh;
  }
}
