:root {
  color-scheme: light;
}

html,
body,
#unity-container,
#unity-canvas {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow: hidden;
}

#unity-container {
  position: fixed;
  inset: 0;
}

#unity-canvas {
  display: block;
  background: #1F1F20;
  outline: none;
}

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

#unity-loading-bar[hidden],
#unity-warning[hidden] {
  display: none;
}

#unity-progress-bar-empty {
  height: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 32, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

#unity-progress-bar-full {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #4f7a55;
}

#unity-warning {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 50%;
  width: min(42rem, calc(100% - 2rem));
  transform: translateX(-50%);
  font: 14px/1.4 system-ui, sans-serif;
}

#unity-warning > div {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

#unity-warning .warning {
  background: #fff3bf;
}

#unity-warning .error {
  color: white;
  background: #b42318;
}
