body {
  margin: 0;
  background: #171a21;
  color: #fff;
  font: 1rem system-ui, sans-serif;
}

#unity-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #171a21;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: center / cover no-repeat;
}

#unity-loading {
  position: absolute;
  inset: 0;
  place-content: center;
  justify-items: center;
  gap: .75rem;
}

#unity-loading:not([hidden]) {
  display: grid;
}

#unity-messages {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  left: 50%;
  width: min(36rem, calc(100% - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

#unity-messages p {
  margin: 0 0 .5rem;
  padding: .65rem .85rem;
  background: #40321d;
  overflow-wrap: anywhere;
}

#unity-messages .error {
  background: #651f2b;
}

#unity-controls {
  position: absolute;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
}

#unity-controls button {
  padding: .45rem .7rem;
  border: 1px solid #8794a5;
  border-radius: .3rem;
  background: #171a21;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
