#pico-game-loader.pico-boot {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  border: 0;
  background:
    radial-gradient(ellipse at 50% 43%, #1b422a 0%, #112a1b 27%, transparent 65%),
    linear-gradient(155deg, #0b1b13 0%, #07110d 60%, #050c09 100%);
  color: #f5f8ef;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  user-select: none;
  animation: pico-boot-fail-open 10s steps(1, end) forwards;
}

#pico-game-loader.pico-boot::before,
#pico-game-loader.pico-boot::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

#pico-game-loader.pico-boot::before {
  inset: 0;
  background-image:
    linear-gradient(90deg, rgb(198 236 147 / 8%) 1px, transparent 1px),
    linear-gradient(rgb(198 236 147 / 8%) 1px, transparent 1px);
  background-position: center;
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 68%);
}

#pico-game-loader.pico-boot::after {
  inset: clamp(12px, 2.6vw, 28px);
  border: 1px solid rgb(198 236 147 / 13%);
  border-radius: 18px;
}

#pico-game-loader.pico-boot[hidden] {
  display: none;
}

#pico-game-loader.pico-boot[data-phase="leaving"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
  transition: opacity 200ms ease-out, visibility 0s linear 200ms;
}

#pico-game-loader .pico-boot__branding {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2.6vh, 22px);
  margin: -12px 0 0;
  animation: pico-boot-brand-in 280ms cubic-bezier(.2, .7, .2, 1) both;
}

#pico-game-loader .pico-boot__mark {
  position: relative;
  width: clamp(88px, 18vw, 122px);
  aspect-ratio: 1;
  filter: drop-shadow(0 8px 24px rgb(151 229 63 / 29%));
}

#pico-game-loader .pico-boot__symbol {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #edff9a 8%, #d4ff57 45%, #6fae35 90%);
  /* The second contour punches a play triangle into the angled P. */
  clip-path: polygon(evenodd,
    27% 10%, 75% 10%, 90% 23%, 90% 49%, 74% 63%,
    51% 63%, 39% 88%, 13% 88%, 37% 34%, 26% 34%,
    19% 46%, 8% 46%, 27% 10%,
    53% 23%, 73% 36%, 53% 49%, 53% 23%, 27% 10%
  );
}

#pico-game-loader .pico-boot__spark {
  position: absolute;
  top: 62%;
  left: 70%;
  width: 18%;
  height: 16%;
  background: linear-gradient(132deg, #faca54, #de9630);
  clip-path: polygon(30% 0, 100% 0, 66% 100%, 0 100%);
}

#pico-game-loader .pico-boot__name {
  margin: 0;
  color: #f5f8ef;
  font-size: clamp(2rem, 8vw, 3.15rem);
  font-weight: 900;
  font-style: normal;
  line-height: .94;
  letter-spacing: .09em;
  white-space: nowrap;
}

#pico-game-loader .pico-boot__name strong {
  color: #d4ff57;
  font: inherit;
}

#pico-game-loader .pico-boot__meter {
  width: clamp(138px, 42vw, 218px);
  height: 3px;
  margin: clamp(27px, 6vh, 44px) 0 12px;
  overflow: hidden;
  border-radius: 9px;
  background: rgb(217 240 189 / 16%);
}

#pico-game-loader .pico-boot__meter span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #77bd39, #d4ff57 76%, #faca54);
  animation: pico-boot-sweep 1.15s ease-in-out infinite;
}

#pico-game-loader .pico-boot__status {
  margin: 0;
  color: #bdcec1;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .025em;
}

@keyframes pico-boot-brand-in {
  from { opacity: .7; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pico-boot-sweep {
  from { transform: translateX(-105%); }
  to { transform: translateX(240%); }
}

@keyframes pico-boot-fail-open {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-height: 410px) {
  #pico-game-loader .pico-boot__branding {
    gap: 10px;
    margin: 0;
  }

  #pico-game-loader .pico-boot__mark {
    width: clamp(48px, 22vh, 78px);
  }

  #pico-game-loader .pico-boot__name {
    font-size: clamp(1.4rem, 8.5vh, 2.2rem);
  }

  #pico-game-loader .pico-boot__meter {
    margin: 20px 0 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pico-game-loader .pico-boot__branding,
  #pico-game-loader .pico-boot__meter span {
    animation: none;
  }

  #pico-game-loader.pico-boot[data-phase="leaving"] {
    transition: none;
  }
}
