/* index.css — style de « L'Ange bleu », code appelant du livrable gen-world (1.1.0-bêta). */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Le conteneur du canvas : le moteur en lit la taille pour dimensionner le rendu hors du mode Visite. */
#appelant {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

#canvas3d {
  display: block;
  width: 100%;
  height: 100%;
}

#pause {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  color: #f0f0f0;
  font-size: 20px;
  cursor: pointer;
  z-index: 2147483647;
}

/* L'écran préliminaire : plein écran, au-dessus de tout jusqu'au clic sur « Commencer l'enquête ». Défile si l'écran est petit. */
#presentation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: #101418;
  color: #f0f0f0;
  /* Sous la modale des crédits (AcNotifModale, 999999), qui doit passer devant. */
  z-index: 1000;
}

#presentation .carte {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 640px;
  margin: auto 0;
}

#presentation h1 {
  font-size: 40px;
  text-align: center;
  color: #7fb3ff;
}

#presentation h2 {
  margin-top: 6px;
  font-size: 20px;
  color: #ffd54a;
}

#presentation p,
#presentation li {
  font-size: 16px;
  line-height: 1.5;
}

#presentation .commandes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
}

#presentation kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  border: 1px solid #8a94a0;
  border-radius: 4px;
  background: #1c232b;
  text-align: center;
  font-family: monospace;
  font-size: 14px;
}

#choix-ombres {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 18px;
  cursor: pointer;
}

#choix-ombres input {
  width: 18px;
  height: 18px;
}

#presentation .avertissement {
  font-size: 14px;
  color: #c8c8c8;
}

#presentation .boutons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

#credits,
#entrer {
  padding: 10px 28px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background: transparent;
  color: #f0f0f0;
  font-size: 18px;
  cursor: pointer;
}

#credits:hover,
#entrer:hover:not(:disabled) {
  background: #f0f0f0;
  color: #101418;
}

#entrer:disabled {
  opacity: 0.5;
  cursor: default;
}

/* L'écran de victoire : l'Ange bleu tourne sur son propre canvas, le message au-dessus. */
#victoire {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at center, #1a2a4a 0%, #05070d 75%);
  color: #f0f0f0;
  text-align: center;
  z-index: 2147483647;
}

#canvas-ange {
  display: block;
  width: 100%;
  height: 100%;
}

#victoire .message {
  position: absolute;
  top: 6vh;
  left: 0;
  width: 100%;
  padding: 0 24px;
  pointer-events: none;
}

#victoire h2 {
  font-size: 40px;
  color: #7fb3ff;
}

#victoire p {
  margin-top: 10px;
  font-size: 20px;
}

#pause[hidden],
#presentation[hidden],
#victoire[hidden] {
  display: none;
}
