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

body {
  /* Keep phone gestures from selecting text or popping the callout menu. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

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

#unity-canvas {
  display: block;
  background: #000;
  touch-action: none;
}

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

#unity-progress-bar-empty {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #17171a;
  box-shadow: inset 0 0 0 1px #2e2e33;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 5px;
  background: #7c6ce8;
  transition: width 0.15s ease-out;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  display: none;
  max-width: 80vw;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

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

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

.unity-warning-notice {
  background: #f2c94c;
  color: #201a00;
}
