:root {
  --deep-ocean: #020714;
  --deep-ocean-mid: #061426;
  --electric-blue: #21bfff;
  --quiet-cyan: #65f1e2;
  --text-main: #f3f9ff;
  --icon-inner-stroke: rgba(112, 184, 219, 0.22);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--deep-ocean);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  color: var(--text-main);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeUp .8s var(--ease) both;
}

.icon-shell {
  position: relative;
  width: 110px;
  height: 110px;
  flex: none;
  border-radius: 50%;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .32),
    0 0 30px rgba(33, 191, 255, .11);
  animation: iconBreath 3.8s ease-in-out infinite;
  transform: translateZ(0);
}

.icon-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 3px solid var(--icon-inner-stroke);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(2, 7, 20, .52);
  pointer-events: none;
}

.icon-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  -webkit-clip-path: circle(calc(50% - 1px) at 50% 50%);
  clip-path: circle(calc(50% - 1px) at 50% 50%);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.loading-text,
.loading-complete-text {
  min-height: 22px;
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
}

.loading-text {
  color: var(--quiet-cyan);
  text-shadow: 0 0 12px rgba(101, 241, 226, .36);
  transition: opacity .5s var(--ease);
}

.loading-complete-text {
  display: none;
  opacity: 0;
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(33, 191, 255, .42);
  transition: opacity .5s var(--ease);
}

.progress-outer {
  width: 280px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(95, 190, 226, .12);
  box-shadow: 0 0 10px rgba(33, 191, 255, .13);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--electric-blue), var(--quiet-cyan));
  box-shadow: 0 0 12px rgba(33, 191, 255, .64);
}

.tip {
  color: rgba(157, 211, 235, .58);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1px;
  text-align: center;
}

.tip a {
  color: var(--quiet-cyan);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(101, 241, 226, .36);
  transition: color .25s var(--ease), text-shadow .25s var(--ease);
}

.tip a:hover {
  color: #c5fff7;
  text-shadow: 0 0 14px rgba(101, 241, 226, .64);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes iconBreath {
  0%, 100% {
    transform: translateZ(0) scale(1);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, .32),
      0 0 26px rgba(33, 191, 255, .09);
  }

  50% {
    transform: translateZ(0) scale(1.025);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, .34),
      0 0 34px rgba(33, 191, 255, .16);
  }
}

@media (max-width: 768px) {
  .wrap {
    gap: clamp(18px, 5vw, 24px);
  }

  .icon-shell {
    width: clamp(88px, 28vw, 110px);
    height: clamp(88px, 28vw, 110px);
  }

  .progress-outer {
    width: min(72vw, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wrap,
  .icon-shell {
    animation: none;
  }

  .loading-text,
  .loading-complete-text,
  .tip a {
    transition: none;
  }
}

