html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #231F20;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

/* Приложение занимает весь вьюпорт: рамок, футера и кнопки полноэкранного режима нет. */
#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #231F20;
  /* Жесты страницы (pinch-zoom, pull-to-refresh) на планшете конфликтуют с жестами чертежа. */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

#loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #231F20;
}

#loading-logo {
  width: 128px;
  height: 128px;
  background: url('icon-192.png') no-repeat center / contain;
}

#loading-bar {
  width: 200px;
  height: 4px;
  border-radius: 2px;
  background: rgba(127, 127, 127, 0.25);
  overflow: hidden;
}

#loading-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: #2f6fed;
  transition: width 0.15s linear;
}

#app-banner {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  max-width: 80%;
  display: none;
  z-index: 10;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#app-banner > div {
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #fff;
}

.banner-error {
  background: #d93025;
}

.banner-warning {
  background: #b06000;
}
