/* Ecran d'accueil du jeu, aux couleurs du Bureau : fond noir de bout en bout,
   pour qu'aucun blanc de navigateur n'apparaisse avant ni pendant le
   chargement des 20 Mo de donnees. */

@font-face {
  font-family: "Courier Prime";
  src: url("CourierPrime-Regular.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #dcded8;
  font-family: "Courier Prime", "Courier New", monospace;
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  background: #000;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  /* Le jeu est en pixel art de lumiere : on evite le lissage du navigateur. */
  image-rendering: auto;
}

#loading, #failure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 10;
}

#loading[hidden], #failure[hidden] { display: none; }

.panel {
  width: min(560px, 82vw);
  text-align: left;
}

.stamp {
  margin: 0 0 26px;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #c7291f;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0f1ec;
}

.case {
  margin: 12px 0 40px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #6d706a;
}

#bar {
  height: 2px;
  background: #24262a;
  overflow: hidden;
}

#bar-fill {
  height: 100%;
  width: 0;
  background: #c7291f;
  transition: width 0.25s linear;
}

#status {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8c88;
}

.note {
  margin: 56px 0 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #4a4d48;
}

#failure-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #dcded8;
}

#fullscreen {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 20;
  padding: 7px 14px;
  border: 1px solid #2c2f33;
  background: rgba(0, 0, 0, 0.6);
  color: #6d706a;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

#fullscreen:hover { color: #dcded8; border-color: #55585c; }
#fullscreen[hidden] { display: none; }
