* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #e5e7eb;
}

.game-wrapper {
  text-align: center;
}

h1 {
  margin-bottom: 0.5rem;
}

.instructions {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

#gameCanvas {
  background: #020617;
  border-radius: 12px;
  border: 2px solid #1e293b;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.score-display {
  margin-top: 0.75rem;
  font-weight: 600;
}

#scoreValue {
  color: #22c55e;
}
#gameCanvas {
  width: 400px;       /* lățime mare pe mobil */
  height: 600px;     /* raport vertical mai mare pentru joc */
}

/* MOBILE OPTIMIZAT */
@media (max-width: 600px) {
  #gameCanvas {
  width: 90vw !important;       /* lățime mare pe mobil */
  height: 135vw !important;     /* raport vertical mai mare pentru joc */
}
  h1 {
    font-size: 2rem;
  }

  .instructions {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .score-display {
    font-size: 1.4rem;
    margin-top: 1rem;
  }
}