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

#unity-fullscreen-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
}

#unity-fullscreen-container:fullscreen {
  width: 100%;
  height: 100%;
}

#unity-game {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100vw, 177.7778vh);
  width: min(100vw, 177.7778dvh);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #231f20;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#unity-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #231f20;
}

#unity-progress {
  width: min(240px, 60%);
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #555;
}

#unity-progress-fill {
  width: 0;
  height: 100%;
  background: #ddd;
}

#unity-fullscreen-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgb(0 0 0 / 55%);
  cursor: pointer;
}

#unity-fullscreen-button[hidden] {
  display: none;
}

#unity-fullscreen-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 3;
  display: none;
  max-width: calc(100% - 80px);
  padding: 8px 12px;
  transform: translateX(-50%);
  font: 14px Arial, sans-serif;
  color: #000;
  background: #ffeb73;
}

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