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

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

#unity-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #020407;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: #020407;
  touch-action: none;
}

#loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #f3ead7;
  background: #020407;
  pointer-events: none;
}

#loading-title {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

#progress-track {
  width: min(280px, 58vw);
  height: 4px;
  overflow: hidden;
  background: rgba(243, 234, 215, 0.16);
}

#progress-fill {
  width: 0;
  height: 100%;
  background: #c89d55;
  transition: width 120ms linear;
}

#loading-label {
  color: rgba(243, 234, 215, 0.62);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

#unity-warning {
  position: absolute;
  z-index: 10;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #111;
  font-size: 14px;
  text-align: center;
}

#unity-warning > div {
  margin-bottom: 8px;
  padding: 10px 14px;
  border-radius: 3px;
}

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

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