/* Socle d'affichage (lot P1). La couleur de fond reprend COULEUR_BANDES de js/config.js. */

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #101014;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

/* Le canvas couvre toute la zone d'affichage ; sa taille en pixels physiques est fixée par le code. */
#jeu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  touch-action: none;
}

/* Police à chasse fixe du navigateur : hypothèse H 17 de GEOMETRIE.md. */
#rotation,
#diagnostic,
#erreur {
  position: fixed;
  margin: 0;
  font-family: monospace;
  color: #ffffff;
}

#rotation {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: #101014;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

#diagnostic {
  left: 0;
  top: 0;
  max-width: 100%;
  padding: 4px 6px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.8);
  font-size: 10px;
  line-height: 1.3;
  white-space: pre-wrap;
}

#erreur {
  left: 0;
  right: 0;
  top: 0;
  padding: 8px;
  background: #a04040;
  font-size: 14px;
}
