@font-face {
  font-family: "SoraBoot";
  src: url("/assets/RobotoCondensed-Regular.CB0bQbuw.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SoraBoot";
  src: url("/assets/RobotoCondensed-Medium.C_X0TFbx.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

#sora-boot {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05070c;
  color: #eef4ee;
  font-family: "SoraBoot", ui-sans-serif, system-ui, sans-serif;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}
#sora-boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#sora-boot-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sora-boot-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 52%;
  bottom: -30%;
  background-image:
    linear-gradient(rgba(225, 255, 105, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 255, 105, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(720px) rotateX(68deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, transparent 88%);
  pointer-events: none;
}
.sora-boot-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 46%, transparent 20%, rgba(5, 7, 12, 0.55) 100%),
    linear-gradient(to bottom, rgba(5, 7, 12, 0.15), transparent 22%, transparent 78%, rgba(5, 7, 12, 0.55));
}
.sora-boot-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.55) 2px 3px
  );
}
#sora-boot-panel {
  position: relative;
  z-index: 2;
  width: min(440px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: perspective(900px) rotateX(6deg);
  transform-style: preserve-3d;
}
.sora-boot-orb {
  position: relative;
  width: min(280px, 68vw);
  height: min(280px, 68vw);
  margin-bottom: 8px;
  display: grid;
  place-items: center;
}
.sora-boot-orb::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 255, 105, 0.18), transparent 68%);
  filter: blur(18px);
  animation: sora-pulse 2.8s ease-in-out infinite;
}
.sora-boot-gauge {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(225, 255, 105, 0.35));
}
.sora-boot-gauge circle {
  fill: none;
  stroke-width: 1.6;
}
.sora-boot-gauge .track {
  stroke: rgba(255, 255, 255, 0.12);
}
.sora-boot-gauge .fill {
  stroke: #e1ff69;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 97;
  transition: stroke-dashoffset 0.35s linear;
}
#sora-boot-pct {
  position: relative;
  z-index: 1;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(225, 255, 105, 0.35);
}
#sora-boot-pct span {
  font-size: 0.38em;
  letter-spacing: 0.14em;
  margin-left: 2px;
  opacity: 0.72;
}
#sora-boot-panel .kicker {
  margin: 10px 0 6px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9aa4b2;
}
#sora-boot-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-shadow: 0 8px 40px rgba(225, 255, 105, 0.18);
}
#sora-boot-bar {
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(225, 255, 105, 0.12);
}
#sora-boot-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8aa84a, #e1ff69 55%, #f6ffc4);
  box-shadow: 0 0 12px #e1ff69;
  transition: width 0.28s linear;
}
#sora-boot-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa4b2;
}
@keyframes sora-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 640px) {
  .sora-boot-orb {
    width: min(220px, 72vw);
    height: min(220px, 72vw);
  }
  #sora-boot-panel h1 { letter-spacing: 0.16em; }
}
