/* index.html 首屏 inline splash 关键样式（无 design token 依赖） */

.app-splash-inline {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f7fa;
}

html.dark .app-splash-inline {
  background: #1a2030;
}

.app-splash-inline-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-splash-inline-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: app-splash-orb-drift 9s ease-in-out infinite alternate;
}

.app-splash-inline-orb-primary {
  top: -12%;
  left: 50%;
  width: min(520px, 72vw);
  height: min(520px, 72vw);
  transform: translateX(-58%);
  background: rgba(76, 91, 114, 0.22);
}

html.dark .app-splash-inline-orb-primary {
  background: rgba(127, 141, 163, 0.18);
}

html[data-brand='neotoken'] .app-splash-inline-orb-primary {
  background: rgba(27, 110, 243, 0.24);
}

.app-splash-inline-orb-secondary {
  right: -8%;
  bottom: -18%;
  width: min(380px, 56vw);
  height: min(380px, 56vw);
  animation-name: app-splash-orb-drift-secondary;
  animation-delay: -3s;
  background: rgba(76, 91, 114, 0.12);
}

html.dark .app-splash-inline-orb-secondary {
  background: rgba(127, 141, 163, 0.1);
}

html[data-brand='neotoken'] .app-splash-inline-orb-secondary {
  background: rgba(27, 110, 243, 0.14);
}

.app-splash-inline-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 72%);
}

.app-splash-inline-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  text-align: center;
  animation: app-splash-body-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-splash-inline-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(76, 91, 114, 0.22));
}

html[data-brand='neotoken'] .app-splash-inline-logo {
  filter: drop-shadow(0 8px 24px rgba(27, 110, 243, 0.28));
}

.app-splash-inline-site-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #1e293b;
}

html.dark .app-splash-inline-site-name {
  color: #f1f5f9;
}

.app-splash-inline-progress {
  width: 128px;
  padding-top: 4px;
}

.app-splash-inline-progress-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 91, 114, 0.14);
}

html[data-brand='neotoken'] .app-splash-inline-progress-track {
  background: rgba(27, 110, 243, 0.14);
}

.app-splash-inline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #4c5b72, #7f8da3, transparent);
  animation: app-splash-progress-slide 1.35s ease-in-out infinite;
}

html[data-brand='neotoken'] .app-splash-inline-progress-bar {
  background: linear-gradient(90deg, transparent, #1b6ef3, #5b9cf5, transparent);
}

@keyframes app-splash-body-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-splash-orb-drift {
  from {
    transform: translateX(-58%) translateY(0);
  }

  to {
    transform: translateX(-42%) translateY(12px);
  }
}

@keyframes app-splash-orb-drift-secondary {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(12px);
  }
}

@keyframes app-splash-progress-slide {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash-inline-body,
  .app-splash-inline-orb,
  .app-splash-inline-progress-bar {
    animation: none;
  }
}
