[data-intro="seen"] .boot {
  display: none;
}

.is-booting {
  overflow: hidden;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  padding: 24px;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(58, 68, 122, .55), transparent 70%),
    linear-gradient(180deg, var(--ui-850) 0%, var(--ui-900) 100%);
  transition: opacity .5s ease, visibility .5s;
}

.boot::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("../assets/poster.jpg") center / cover no-repeat;
  filter: blur(42px) saturate(.7);
  opacity: .18;
  pointer-events: none;
}

.boot>* {
  position: relative;
}

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

.boot__plumbob {
  --u: 3.5px;
  position: relative;
  width: calc(21 * var(--u));
  height: calc(49 * var(--u));
  animation: boot-bob 2.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 calc(3.2 * var(--u)) rgba(150, 250, 160, .8)) drop-shadow(0 0 calc(7 * var(--u)) rgba(66, 215, 105, .65)) drop-shadow(0 0 calc(14 * var(--u)) rgba(52, 190, 92, .45));
}

.boot__stage {
  position: absolute;
  inset: 0;
  perspective: calc(150 * var(--u));
}

.boot__spin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(45deg);
}

.boot__facet {
  position: absolute;
  left: 50%;
  width: calc(14.849 * var(--u));
  margin-left: calc(-7.425 * var(--u));
  backface-visibility: visible;
}

.boot__facet--up {
  top: calc(-1.169 * var(--u));
  height: calc(24.169 * var(--u));
  transform-origin: 50% 100%;
  transform: rotateY(var(--a)) translateZ(calc(7.425 * var(--u))) rotateX(17.89deg);
  clip-path: polygon(45.49% 9.01%, 46.46% 7.95%, 48.06% 7.22%, 50% 6.97%,
      51.94% 7.22%, 53.54% 7.95%, 54.51% 9.01%, 100% 100%, 0 100%);
  background: linear-gradient(to top, var(--lo), var(--hi));
}

.boot__facet--dn {
  top: calc(23 * var(--u));
  height: calc(27.039 * var(--u));
  transform-origin: 50% 0;
  transform: rotateY(var(--a)) translateZ(calc(7.425 * var(--u))) rotateX(-15.94deg);
  clip-path: polygon(0 0, 100% 0, 54.55% 90.91%, 53.60% 91.90%, 51.98% 92.57%,
      50% 92.81%, 48.02% 92.57%, 46.40% 91.90%, 45.45% 90.91%);
  background: linear-gradient(to bottom, var(--lo), var(--deep));
}

.boot__facet--up:nth-of-type(1),
.boot__facet--dn:nth-of-type(5) {
  --a: 45deg;
}

.boot__facet--up:nth-of-type(2),
.boot__facet--dn:nth-of-type(6) {
  --a: 135deg;
}

.boot__facet--up:nth-of-type(3),
.boot__facet--dn:nth-of-type(7) {
  --a: 225deg;
}

.boot__facet--up:nth-of-type(4),
.boot__facet--dn:nth-of-type(8) {
  --a: 315deg;
}

.boot__facet:nth-of-type(odd) {
  --hi: rgba(196, 255, 178, .96);
  --lo: rgba(91, 236, 122, .94);
  --deep: rgba(24, 150, 62, .92);
}

.boot__facet:nth-of-type(even) {
  --hi: rgba(143, 245, 164, .9);
  --lo: rgba(60, 200, 96, .88);
  --deep: rgba(15, 110, 44, .88);
}

@keyframes boot-spin {
  to {
    transform: rotateY(360deg);
  }
}

@keyframes boot-bob {

  0%,
  100% {
    translate: 0 -5px;
  }

  50% {
    translate: 0 5px;
  }
}

.boot__mark {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: lowercase;
  color: var(--ink);
  text-shadow: 0 2px 6px var(--ink-shadow);
}

.boot__status {
  min-height: 1.4em;
  margin: 0;
  font-size: 13px;
  color: var(--ink-label);
  text-shadow: 0 1px 2px var(--ink-shadow);
  text-align: center;
}

.boot__hint {
  margin: 0;
  font-size: 11px;
  color: var(--ink-soft);
  opacity: .5;
}

.boot__meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(440px, 76vw);
}

.boot__bar {
  height: 16px;
  padding: 2px;
  border-radius: 9px;
  background: var(--ui-900);
  box-shadow: var(--bevel-stroke), inset 0 2px 4px rgba(0, 0, 0, .5);
}

.boot__fill {
  width: 0;
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--bar-green-hi), var(--bar-green-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55),
    0 0 10px rgba(43, 201, 68, .55);
  position: relative;
  overflow: hidden;
}

.boot__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      transparent 20%,
      rgba(255, 255, 255, .45) 50%,
      transparent 80%);
  background-size: 220% 100%;
  animation: boot-sheen 1.1s linear infinite;
}

@keyframes boot-sheen {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.boot__pct {
  min-width: 4ch;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--plumbob);
  text-align: right;
  text-shadow: 0 1px 2px var(--ink-shadow);
}

@media (max-width: 820px) {
  .boot {
    gap: 20px;
  }

  .boot__plumbob {
    --u: 2.5px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .boot__plumbob,
  .boot__fill::after {
    animation: none;
  }
}