body {
  background-color: #07162b;
}

#splash {
  --launch-unit: 0.138888889vh;
  --bar-width: calc(715 * var(--launch-unit));
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: block !important;
  background: #07162b url("./splash.png") center / cover no-repeat;
}

@media (max-aspect-ratio: 16/9) {
  #splash {
    --launch-unit: 0.078125vw;
  }
}

#splash[hidden] {
  display: none !important;
}

#splash .launch-logo,
#splash .launch-loading,
#splash .progress-bar {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

#splash .launch-logo {
  top: calc(50% - 45 * var(--launch-unit));
  width: calc(392.1875 * var(--launch-unit));
  height: calc(375 * var(--launch-unit));
  background: url("./lucky-launch-logo.png") center / contain no-repeat;
}

#splash .launch-loading {
  top: calc(50% + 193.09 * var(--launch-unit));
  color: #f1f5ff;
  font: normal calc(30 * var(--launch-unit)) / 1.2 Arial, sans-serif;
  text-shadow: 0 1px 3px #07162b;
}

#splash .progress-bar {
  top: calc(50% + 245.51 * var(--launch-unit));
  width: var(--bar-width);
  height: calc(40.86 * var(--launch-unit));
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: url("./lucky-launch-track.png") center / 100% 100% no-repeat;
}

#splash .progress-bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

#splash .progress-bar span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bar-width);
  height: 100%;
  background: url("./lucky-launch-fill.png") center / 100% 100% no-repeat;
}
