* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #05070c;
  background: -webkit-linear-gradient(180deg, #05070c 0%, #160606 55%, #03050a 100%);
  color: #eaf4ff;
  min-height: 100%;
  overflow: hidden;
}

/* Footer */
#footer {
  position: fixed;
  bottom: 12px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  padding: 0 15px;
  font-size: 0.75rem;
  color: #5f718a;
  line-height: 1.5;
  text-align: center;
  z-index: 20;
}

/* Splash Screen */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;

  display: -webkit-box;
  display: -webkit-flex;
  display: flex;

  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;

  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;

  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;

  background: #05070c;
  background: -webkit-linear-gradient(180deg, #05070c 0%, #160606 55%, #03050a 100%);

  opacity: 1;

  -webkit-transition: opacity 0.45s ease-in, visibility 0s linear 0.45s;
  transition: opacity 0.45s ease-in, visibility 0s linear 0.45s;
}

#splash::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 26, 26, 0.12);
  -webkit-box-shadow: 0 0 120px rgba(255, 26, 26, 0.3);
  box-shadow: 0 0 120px rgba(255, 26, 26, 0.3);
  z-index: -1;
}

#splash.hide {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.45s ease-in, visibility 0s linear 0.45s;
  transition: opacity 0.45s ease-in, visibility 0s linear 0.45s;
}

#splash .logo {
  width: 11rem;
  height: 11rem;
  -webkit-filter: drop-shadow(0 0 22px rgba(255, 26, 26, 0.45));
  filter: drop-shadow(0 0 22px rgba(255, 26, 26, 0.45));

  -webkit-animation: splash-in 0.8s ease-out both;
  animation: splash-in 0.8s ease-out both;
}

#splash h1 {
  margin-top: 1.5rem;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;

  text-shadow:
    0 0 10px rgba(255, 26, 26, 0.45),
    0 0 28px rgba(255, 26, 26, 0.22);

  -webkit-animation: splash-in 0.8s ease-out 0.15s both;
  animation: splash-in 0.8s ease-out 0.15s both;
}

#splash .subtitle {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ff6b6b;

  -webkit-animation: splash-in 0.8s ease-out 0.25s both;
  animation: splash-in 0.8s ease-out 0.25s both;
}

@-webkit-keyframes splash-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes splash-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* Loader UI */
#loader {
  position: relative;
  z-index: 10;
  height: 100%;

  display: -webkit-box;
  display: -webkit-flex;
  display: flex;

  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;

  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;

  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;

  background: #05070c;
  background: -webkit-linear-gradient(180deg, #05070c 0%, #160606 55%, #03050a 100%);
}

main[hidden] {
  display: none !important;
}

/* Log Window */
#logWrapper {
  width: 82%;
  height: 72%;
  max-width: 1220px;

  background: rgba(7, 4, 6, 0.96);

  border: 1px solid #8f1616;
  border-radius: 12px;

  overflow-y: auto;

  font-family: "SFMono-Regular", Menlo, Monaco, "Cascadia Mono", monospace;
  font-size: 1.05rem;
  line-height: 1.6;

  padding: 1rem 1.25rem;

  -webkit-box-shadow:
    0 0 0 1px rgba(255, 26, 26, 0.08),
    0 0 35px rgba(255, 26, 26, 0.08);

  box-shadow:
    0 0 0 1px rgba(255, 26, 26, 0.08),
    0 0 35px rgba(255, 26, 26, 0.08);
}

#logContainer {
  color: #c5c7cc;
  overflow-wrap: break-word;
  word-break: break-word;
}

#logContainer .line {
  white-space: pre-wrap;
  margin-bottom: 0.25rem;
}

#logContainer .info {
  color: #c5c7cc;
}

#logContainer .success {
  color: #69ff87;
}

#logContainer .warning {
  color: #ffd166;
}

#logContainer .error {
  color: #ff6b6b;
}

/* Progress Bar */
#progressContainer {
  position: relative;
  width: 82%;
  max-width: 1220px;
  height: 3rem;
  margin-top: 1.75rem;

  background: #171010;

  border: 1px solid #8f1616;
  border-radius: 10px;

  overflow: hidden;

  -webkit-box-shadow: 0 0 25px rgba(255, 26, 26, 0.1);
  box-shadow: 0 0 25px rgba(255, 26, 26, 0.1);
}

#progressBar {
  position: absolute;
  top: 0;
  left: 0;

  height: 100%;
  width: 100%;

  background: #d40000;
  background: -webkit-linear-gradient(
    90deg,
    #8b0000 0%,
    #e00000 50%,
    #ff3b3b 100%
  );

  -webkit-transform: scaleX(0);
  transform: scaleX(0);

  -webkit-transform-origin: left center;
  transform-origin: left center;

  -webkit-transition: -webkit-transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out;
}

#progressLabel {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: -webkit-box;
  display: -webkit-flex;
  display: flex;

  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;

  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;

  color: #ffffff;

  font-size: 1rem;
  font-weight: 700;

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);

  z-index: 1;
  pointer-events: none;