/* The player owns the whole viewport: the game already lays itself out for any aspect ratio. */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #0b0b10; overflow: hidden; }
#unity-container { position: absolute; inset: 0; width: 100%; height: 100%; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #0b0b10; }
#unity-footer { display: none; }
#unity-fullscreen-button {
  position: absolute; top: 16px; right: 150px; z-index: 4;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(133, 206, 255, .8); border-radius: 50%;
  background: rgba(13, 22, 55, .88); color: #fff;
  box-shadow: 0 0 12px rgba(36, 145, 231, .5); cursor: pointer;
}
#unity-fullscreen-button[hidden] { display: none; }
#unity-fullscreen-button:hover { background: rgba(36, 60, 119, .95); }
#unity-fullscreen-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#unity-fullscreen-button svg { width: 24px; height: 24px; }
#df-unsupported {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  color: #eee; font: 16px/1.5 system-ui, sans-serif; text-align: center; padding: 32px; background: #0b0b10;
}
#df-unsupported div { max-width: 520px; }
#df-unsupported a { color: #9cf; }

/* Show download progress from the first paint through the game's asset and rendering warmup. */
#df-boot {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  background: #000;
  color: #e8e6f2; font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
  transition: opacity .6s ease; pointer-events: none;
}
#df-boot.df-done { opacity: 0; }
#df-boot-title {
  font-size: 30px; font-weight: 300; letter-spacing: .38em; text-transform: uppercase;
  text-indent: .38em; /* letter-spacing pads the right of the last glyph; this re-centres the word */
  color: #fff; text-shadow: 0 0 26px rgba(150, 120, 255, .55);
}
#df-boot-track { width: min(340px, 62vw); height: 3px; background: rgba(255, 255, 255, .13); border-radius: 2px; overflow: hidden; }
#df-boot-fill { height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, #6f5cff, #b98cff); transition: width .3s ease; }
#df-boot-status { font-size: 13px; letter-spacing: .07em; color: #9d99b8; min-height: 1.4em; }
/* The indeterminate phase: the player is up and the game is loading, so the bar sweeps instead of filling. */
#df-boot.df-indeterminate #df-boot-fill {
  width: 34%; transition: none; animation: df-sweep 1.5s ease-in-out infinite;
}
@keyframes df-sweep { 0% { margin-left: -34%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  #df-boot { transition: none; }
  #df-boot.df-indeterminate #df-boot-fill { animation: none; width: 100%; margin-left: 0; opacity: .5; }
}
