html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  color: #000000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#viewer,
canvas {
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  touch-action: none;
}

#loading {
  position: fixed;
  left: 50%;
  bottom: max(32px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  padding: 16px;
  box-sizing: border-box;
  transform: translateX(-50%);
}

#loading-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

#loading-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

#loading-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #ffaf50;
  transition: width 160ms ease-out;
}

#loading[hidden] {
  display: none;
}
