:root {
  color-scheme: dark;
  background: #111b35;
  color: #fff;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { display: grid; place-items: center; }

#unity-container {
  position: relative;
  width: min(100vw, 46.21dvh);
  height: min(100dvh, 216.41vw);
  background: #162548;
  isolation: isolate;
  overflow: hidden;
}

#unity-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: 0; }

@media (orientation: portrait) and (pointer: coarse) {
  #unity-container { width: 100vw; height: 100dvh; }
}

#loading {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: max(28px, env(safe-area-inset-bottom)) 8%;
  background: linear-gradient(transparent 68%, #163e37), url("./封面.jpg") center center / contain no-repeat, #163e37;
}

#loading[hidden], #loading-retry[hidden] { display: none; }
#loading-status { text-align: center; font-size: 16px; }
#loading-status p { min-height: 24px; margin: 0 0 8px; }
#loading-progress { width: min(100%, 230px); height: 12px; accent-color: #5fcf8d; }
#loading-retry {
  margin: 5px auto 0;
  border: 0;
  border-radius: 9px;
  background: #f7d96d;
  color: #182640;
  font: 700 16px system-ui, sans-serif;
  padding: 9px 18px;
  cursor: pointer;
}
