:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #17131d;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

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

#unity-canvas {
  display: block;
  border: 0;
  outline: 0;
  background: #17131d;
  touch-action: none;
}

#unity-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(56vw, 260px);
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

#unity-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

#unity-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ffd34e;
  transition: width 100ms linear;
}

#unity-loading-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

#unity-error {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86vw, 520px);
  transform: translate(-50%, -50%);
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background: rgba(130, 20, 30, 0.94);
  text-align: center;
}

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