.pilot-welcome {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #030508;
  color: #fff;
  font-family: inherit;
}
html[data-welcome="show"] .pilot-welcome {
  display: block;
}
html[data-welcome="show"] body {
  background: #030508;
}
html[data-welcome="show"] #pilot-root {
  visibility: hidden;
  pointer-events: none;
}

.welcome-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2;
  background: #fff;
  color: #030508;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
.welcome-skip:focus { top: 12px; }

.welcome-texture {
  position: absolute;
  inset: 0;
  background: url("/textures/network.jpg") center bottom / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 58%, transparent 0 34%, #000 78%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 58%, transparent 0 34%, #000 78%);
}

.welcome-stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 72px 24px 96px;
}

.welcome-lockup {
  width: min(440px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.welcome-logo {
  position: relative;
  display: block;
  width: min(360px, 78vw);
  aspect-ratio: 1247 / 373;
}

.welcome-word {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-star {
  position: absolute;
  top: 4.02%;
  left: 87.57%;
  width: 12.43%;
  height: auto;
  transform-origin: 50% 55%;
  animation: welcome-star-twirl 1.5s cubic-bezier(0.16, 0.84, 0.32, 1) both;
}

.welcome-kicker {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 500;
}

.welcome-line {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.welcome-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  min-height: 54px;
  width: min(100%, 240px);
  padding: 0 28px;
  border: 0;
  border-radius: 13px;
  background: #FF6A13;
  color: #030508;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.welcome-enter:hover,
.welcome-enter:focus-visible { background: #E85D0C; }
.welcome-enter:focus-visible { outline: 3px solid #FF6A13; outline-offset: 3px; }

.welcome-late {
  opacity: 0;
  animation: welcome-late-in 0.7s ease-out 1.5s both;
}

.welcome-remember {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}
.welcome-remember input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}
.welcome-remember input:checked {
  background: #FF6A13;
  border-color: #FF6A13;
}
.welcome-remember input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #030508;
  border-bottom: 2px solid #030508;
  transform: rotate(-45deg) translateY(-1px);
}
.welcome-remember input:focus-visible { outline: 3px solid #FF6A13; outline-offset: 3px; }

.welcome-power {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  pointer-events: none;
}
.welcome-power img {
  width: auto;
  height: 20px;
}

@keyframes welcome-star-twirl {
  from {
    opacity: 0;
    transform: rotate(-220deg) scale(0.72);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes welcome-late-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html[data-welcome-frame="settled"] .welcome-star {
  animation: none;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html[data-welcome-frame="settled"] .welcome-late {
  animation: none;
  opacity: 1;
}
html[data-welcome-frame="mid"] .welcome-star {
  animation: none;
  opacity: 1;
  transform: rotate(-90deg) scale(0.9);
}
html[data-welcome-frame="mid"] .welcome-late {
  animation: none;
  opacity: 0;
}

@media (min-width: 900px) {
  .welcome-logo { width: 400px; }
  .welcome-lockup { width: min(480px, 86vw); }
  .welcome-line { margin-top: 10px; }
  .welcome-kicker { margin-top: 32px; }
}

@media (max-width: 600px) {
  .welcome-stage { padding: 64px 20px 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-star,
  .welcome-late {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
