html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background: #222;
}

#unity-container {
  position: absolute;
}

#unity-container.unity-desktop {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
  position: fixed;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  background: transparent;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

#unity-loading-screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #222;
  z-index: 20;
}

#unity-loading-panel {
  position: relative;
  width: min(92vw, 520px);
  aspect-ratio: 1080 / 1920;
  background: url("loading-bg.png") center center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

#unity-loading-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
}

#unity-logo {
  display: none;
}

#unity-loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  color: #7cff3a;
  text-shadow:
    -3px -3px 0 #111,
    3px -3px 0 #111,
    -3px 3px 0 #111,
    3px 3px 0 #111;
}

#unity-progress-bar-empty {
  position: relative;
  width: 100%;
  aspect-ratio: 965 / 78;
  background: url("progress-bar-empty-dark.png") center center / 100% 100% no-repeat;
  overflow: hidden;
}

#unity-progress-bar-full {
  position: absolute;
  left: 1.1%;
  top: 11.5%;
  width: 97.8%;
  height: 77%;
  transform-origin: left center;
  transform: scaleX(0);
  background: url("progress-bar-full-dark.png") left center / 100% 100% no-repeat;
}

#unity-footer {
  position: relative;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-webgl-logo {
  float: left;
  width: 204px;
  height: 38px;
  background: url("webgl-logo.png") no-repeat center;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: Arial, sans-serif;
  font-size: 18px;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url("fullscreen-button.png") no-repeat center;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

@media (max-width: 640px) {
  #unity-loading-panel {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    box-shadow: none;
  }

  #unity-loading-bar {
    left: 7%;
    right: 7%;
    bottom: 6%;
  }

  #unity-loading-meta {
    margin-bottom: 10px;
    font-size: clamp(20px, 6vw, 34px);
  }
}
