/* Styles globaux du jeu : le canvas plein écran (#screen) où tout le rendu
   ASCII est dessiné, et les overlays HTML par-dessus (FPS, chrono, toasts).
   Le jeu n'affiche que du texte monospace sur fond sombre : pas de thème clair
   séparé à prévoir ici, color-scheme: dark suffit à informer le navigateur. */

:root { color-scheme: dark; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0618; }

#screen {
  display: block;
  width: 100vw;
  height: 100vh;
}

.overlay {
  position: fixed;
  top: 8px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  color: #36e0ff;
  text-shadow: 0 0 6px rgba(54, 224, 255, 0.6);
  background: rgba(20, 8, 40, 0.6);
  padding: 2px 6px;
  pointer-events: none;
  z-index: 10;
}

#fps { left: 10px; }
#timer {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: pre;
  line-height: 1.4;
  display: none;
}
#toast {
  top: auto;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#toast.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}
