:root {
  color-scheme: dark;
  background: #000;
}

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

#unity-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: #000;
}

#unity-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #231F20;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(320px, 60vw);
  transform: translate(-50%, -50%);
  display: none;
}

#unity-progress-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid #d8ccb0;
  border-radius: 999px;
  background: #211d18;
}

#unity-progress-bar-full {
  width: 0;
  height: 100%;
  background: #d8ccb0;
  transition: width 120ms linear;
}

#unity-fullscreen-button {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font: 24px/36px sans-serif;
  cursor: pointer;
  z-index: 3;
}

#unity-warning {
  position: fixed;
  left: 50%;
  top: 16px;
  display: none;
  max-width: min(720px, 90vw);
  padding: 10px 14px;
  transform: translateX(-50%);
  color: #111;
  background: #ffe48a;
  z-index: 4;
}

#unity-warning.error {
  color: #fff;
  background: #9d1f1f;
}
