html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #000;
}

#unity-container {
  position: fixed;
}

/* Format original d’Etraclor : 960 × 600, soit 8/5 */
#unity-container.unity-desktop {
  left: 50%;
  top: 50%;
  width: min(100vw, calc(100vh * 1.6));
  height: min(100vh, calc(100vw / 1.6));
  transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
  inset: 0;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url("unity-logo-dark.png") no-repeat center;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url("progress-bar-empty-dark.png") no-repeat center;
}

#unity-progress-bar-full {
  width: 0;
  height: 18px;
  margin-top: 10px;
  background: url("progress-bar-full-dark.png") no-repeat center;
}

/* Le pied de page devient une surcouche invisible */
#unity-footer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#unity-webgl-logo,
#unity-build-title {
  display: none;
}

/* On conserve uniquement le bouton plein écran */
#unity-fullscreen-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  float: none;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.8;
  background: url("fullscreen-button.png") no-repeat center;
}

#unity-fullscreen-button:hover {
  opacity: 1;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  background: white;
  padding: 10px;
  display: none;
}