.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #20231f;
  background: #ece8d8;
  opacity: 1;
  visibility: visible;
  transition: opacity 360ms cubic-bezier(.2,.72,.22,1), visibility 0s linear 360ms;
}

.boot-screen::before,
.boot-screen::after {
  position: absolute;
  width: min(72vw, 880px);
  aspect-ratio: 1.8;
  border: 1px solid rgba(60, 82, 52, .09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.boot-screen::before { transform: translate(-38%, -50%) rotate(-9deg); }
.boot-screen::after { transform: translate(42%, 50%) rotate(12deg); }

.boot-screen.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-paper {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(430px, calc(100vw - 48px));
}

.boot-game-logo {
  display: block;
  width: clamp(224px, 31vw, 304px);
  height: auto;
}

.boot-publisher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: rgba(32,35,31,.56);
  font-family: "Museo Sans Rounded", ui-rounded, system-ui, sans-serif;
  font-size: .46rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.boot-logo {
  display: block;
  width: clamp(68px, 8vw, 86px);
  height: auto;
}

.boot-progress {
  position: relative;
  width: min(286px, 68vw);
  height: 16px;
  margin-top: 21px;
}

.boot-progress::before,
.boot-progress-fill {
  position: absolute;
  inset-inline: 0;
  top: 7px;
  height: 2px;
  border-radius: 2px;
  content: "";
}

.boot-progress::before { background: rgba(32, 35, 31, .18); }

.boot-progress-fill {
  right: auto;
  width: var(--boot-progress, 8%);
  background: #5faf1c;
  transition: width 260ms cubic-bezier(.2,.72,.22,1);
}

.boot-seed {
  position: absolute;
  top: -4px;
  left: var(--boot-progress, 8%);
  width: 23px;
  height: 23px;
  background: url("assets/ui/loading-seed.svg") center / contain no-repeat;
  transform: translateX(-11px) rotate(-8deg);
  transition: left 260ms cubic-bezier(.2,.72,.22,1);
}

.boot-copy {
  min-height: 1em;
  margin-top: 11px;
  color: rgba(32, 35, 31, .55);
  font-family: "Museo Sans Rounded", ui-rounded, system-ui, sans-serif;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .16em;
  opacity: 0;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(3px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.boot-screen.is-waiting .boot-copy { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .boot-logo { width: 72px; }
  .boot-game-logo { width: clamp(208px, 64vw, 250px); }
  .boot-progress { width: min(240px, 66vw); margin-top: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen,
  .boot-progress-fill,
  .boot-seed,
  .boot-copy { transition-duration: 1ms; }
}
