:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  overflow: hidden;
  background: #10182b;
}

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

#unity-canvas {
  display: block;
  border: 0;
  background: #10182b;
  outline: 0;
}

#unity-loading-bar {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(18rem, calc(100% - 3rem));
  gap: 0.75rem;
  transform: translate(-50%, -50%);
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

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

#unity-progress-bar-empty {
  height: 0.75rem;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #1e293b;
}

#unity-progress-bar-full {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  transition: width 120ms ease-out;
}

#unity-warning {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}

#unity-warning > div {
  max-width: 48rem;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fef3c7;
  color: #78350f;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 28%);
}

#unity-warning > [data-type='error'] {
  background: #fee2e2;
  color: #7f1d1d;
}
