/*
  CSS para centrar el canvas y dar estilo minimalista
*/

body {
  background: #f7f7f7;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  box-sizing: border-box;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}


canvas {
  background: #fff;
  border: 3px solid #535353;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  width: 96vw;
  max-width: 800px;
  aspect-ratio: 16/9;
  height: auto;
  max-height: 80vh;
  display: block;
  touch-action: manipulation;
}


@media (max-width: 900px) {
  #game-container {
    min-height: 80vh;
    padding: 0 2vw;
  }
  canvas {
    width: 98vw;
    max-width: 100vw;
    aspect-ratio: 16/9;
    max-height: 60vh;
  }
}

@media (orientation: portrait) {
  canvas {
    aspect-ratio: 9/16;
    max-height: 60vh;
  }
}

@media (orientation: landscape) {
  canvas {
    aspect-ratio: 16/9;
    max-height: 80vh;
  }
}

.score {
  color: #535353;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 #fff;
}

.game-over {
  color: #d32f2f;
  font-size: 2.2rem;
  font-weight: bold;
  margin-top: 16px;
  text-shadow: 0 2px 8px #fff;
}

.hint {
  color: #888;
  font-size: 1.1rem;
  margin-top: 8px;
}

.voice-status {
  width: min(92vw, 520px);
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #cfd8dc;
  border-radius: 8px;
  color: #37474f;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: -6px 0 12px;
  padding: 10px 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
}

.voice-status.is-listening {
  border-color: #2e7d32;
  background: #f1f8e9;
}

.voice-status.is-detected {
  border-color: #1565c0;
  background: #e3f2fd;
}

.voice-status.is-error {
  border-color: #c62828;
  background: #ffebee;
}
