.ops-boot-splash {
  --ops-boot-bg: #f5f5f7;
  --ops-boot-fg: #1c1c1e;
  --ops-boot-card: #ffffff;
  --ops-boot-primary: #2f6fed;
  --ops-boot-muted-fg: #6e6e73;
  --ops-boot-border: rgba(0, 0, 0, 0.12);

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding:
    max(40px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  background: var(--ops-boot-bg);
  color: var(--ops-boot-fg);
  opacity: 1;
  transition: opacity 0.28s ease;
}

html[data-theme='dark'] .ops-boot-splash {
  --ops-boot-bg: #242428;
  --ops-boot-fg: #e4e4e8;
  --ops-boot-card: #2e2e33;
  --ops-boot-primary: #2997ff;
  --ops-boot-muted-fg: #9c9ca6;
  --ops-boot-border: rgba(255, 255, 255, 0.12);
}

.ops-boot-splash--hide {
  opacity: 0;
  pointer-events: none;
}

.ops-boot-splash__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 150% 120% at 50% 36%,
      color-mix(in srgb, var(--ops-boot-primary) 12%, var(--ops-boot-bg)) 0%,
      color-mix(in srgb, var(--ops-boot-primary) 5%, var(--ops-boot-bg)) 34%,
      color-mix(in srgb, var(--ops-boot-primary) 2%, var(--ops-boot-bg)) 58%,
      transparent 82%
    ),
    radial-gradient(
      ellipse 130% 90% at 50% 100%,
      color-mix(in srgb, var(--ops-boot-primary) 4%, var(--ops-boot-bg)) 0%,
      transparent 62%
    );
  filter: blur(22px);
  -webkit-mask-image: radial-gradient(
    ellipse 145% 125% at 50% 44%,
    #000 0%,
    rgb(0 0 0 / 0.62) 42%,
    rgb(0 0 0 / 0.24) 68%,
    rgb(0 0 0 / 0.06) 84%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 145% 125% at 50% 44%,
    #000 0%,
    rgb(0 0 0 / 0.62) 42%,
    rgb(0 0 0 / 0.24) 68%,
    rgb(0 0 0 / 0.06) 84%,
    transparent 100%
  );
}

.ops-boot-splash__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(100%, 360px);
  margin-inline: auto;
}

.ops-boot-splash__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 168px;
  min-height: 108px;
  padding: 16px 14px 12px;
}

.ops-boot-splash__brand {
  margin: 0;
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ops-boot-fg);
}

.ops-boot-splash__brand-dot {
  color: var(--ops-boot-primary);
}

.ops-boot-splash__scene {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
}

.ops-boot-splash__scan {
  position: absolute;
  inset: -12% -18%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--ops-boot-primary) 8%, transparent) 30%,
    color-mix(in srgb, var(--ops-boot-primary) 16%, transparent) 50%,
    color-mix(in srgb, var(--ops-boot-primary) 8%, transparent) 70%,
    transparent 100%
  );
  opacity: 0.42;
  filter: blur(16px);
  animation: ops-boot-splash-scan 2.4s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(
    ellipse 150% 125% at 50% 44%,
    #000 0%,
    rgb(0 0 0 / 0.5) 46%,
    rgb(0 0 0 / 0.16) 72%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 150% 125% at 50% 44%,
    #000 0%,
    rgb(0 0 0 / 0.5) 46%,
    rgb(0 0 0 / 0.16) 72%,
    transparent 100%
  );
}

.ops-boot-splash__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.ops-boot-splash__horizon {
  fill: none;
  stroke: color-mix(in srgb, var(--ops-boot-primary) 16%, var(--ops-boot-border));
  stroke-linecap: round;
  stroke-width: 1.5;
  opacity: 0.7;
}

.ops-boot-splash__radar-cone {
  fill: color-mix(in srgb, var(--ops-boot-primary) 14%, transparent);
  opacity: 0.55;
}

.ops-boot-splash__radar-edge {
  stroke: color-mix(in srgb, var(--ops-boot-primary) 32%, transparent);
  stroke-linecap: round;
  stroke-width: 1;
}

.ops-boot-splash__satellite {
  animation: ops-boot-splash-satellite 2.6s ease-in-out infinite;
}

.ops-boot-splash__satellite-body {
  fill: var(--ops-boot-card);
  stroke: color-mix(in srgb, var(--ops-boot-primary) 62%, var(--ops-boot-fg));
  stroke-width: 1.75;
}

.ops-boot-splash__satellite-panel {
  fill: color-mix(in srgb, var(--ops-boot-primary) 18%, var(--ops-boot-card));
  stroke: color-mix(in srgb, var(--ops-boot-primary) 40%, var(--ops-boot-border));
  stroke-width: 1.25;
}

.ops-boot-splash__satellite-antenna {
  stroke: color-mix(in srgb, var(--ops-boot-primary) 55%, var(--ops-boot-muted-fg));
  stroke-linecap: round;
  stroke-width: 1.5;
}

.ops-boot-splash__signal-ring {
  fill: none;
  stroke: var(--ops-boot-primary);
  stroke-width: 1.25;
  transform-box: fill-box;
  transform-origin: center;
}

.ops-boot-splash__signal-ring--outer {
  opacity: 0;
  animation: ops-boot-splash-signal-ring 2.6s ease-out infinite;
}

.ops-boot-splash__signal-ring--inner {
  opacity: 0;
  animation: ops-boot-splash-signal-ring 2.6s ease-out 0.18s infinite;
}

.ops-boot-splash__signal-core {
  fill: var(--ops-boot-primary);
  animation: ops-boot-splash-signal-core 2.6s ease-in-out infinite;
}

.ops-boot-splash__label {
  margin: 0;
  max-width: 18rem;
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ops-boot-muted-fg);
  animation: ops-boot-splash-label 2.4s ease-in-out infinite;
}

@keyframes ops-boot-splash-scan {
  0% {
    transform: translateX(-55%);
    opacity: 0;
  }

  18% {
    opacity: 0.42;
  }

  50% {
    transform: translateX(55%);
    opacity: 0.28;
  }

  100% {
    transform: translateX(55%);
    opacity: 0;
  }
}

@keyframes ops-boot-splash-satellite {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes ops-boot-splash-signal-ring {
  0%,
  44%,
  100% {
    opacity: 0;
    transform: scale(0.55);
  }

  58% {
    opacity: 0.55;
    transform: scale(1);
  }

  72% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes ops-boot-splash-signal-core {
  0%,
  42%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }

  56%,
  66% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ops-boot-splash-label {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-boot-splash__scan,
  .ops-boot-splash__label,
  .ops-boot-splash__satellite,
  .ops-boot-splash__signal-ring,
  .ops-boot-splash__signal-core {
    animation: none;
  }

  .ops-boot-splash__signal-core {
    opacity: 0.85;
  }
}
