/* public/assets/styles/sitesurvey-splash.css
   Shared by public/index.html boot splash and FuseSplashScreen.
   Spec: docs/superpowers/specs/2026-07-24-web-loading-splash-design.md
*/

body #fuse-splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 42%, rgba(68, 231, 50, 0.14) 0%, transparent 58%),
    linear-gradient(165deg, #14352d 0%, #0d2823 48%, #091f1a 100%);
  color: #f9fafb;
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body #fuse-splash-screen.ss-splash--revealing {
  transition: none;
  animation: ss-splash-fade 640ms cubic-bezier(0.4, 0.1, 0.2, 1) forwards;
}

.ss-splash-mark {
  position: relative;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
}

.ss-splash-mark b {
  font-weight: 800;
}

body #fuse-splash-screen.ss-splash--revealing .ss-splash-mark {
  animation: ss-mark-out 640ms cubic-bezier(0.4, 0.1, 0.2, 1) forwards;
}

.ss-splash-dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: #44e732;
  margin-left: 0.04em;
  vertical-align: 0.08em;
  position: relative;
}

.ss-splash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  margin-left: -50%;
  margin-top: -50%;
  border-radius: 50%;
  border-style: solid;
  border-color: #44e732;
  border-width: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

body #fuse-splash-screen.ss-splash--revealing .ss-splash-ring {
  animation: ss-ring-reveal 640ms cubic-bezier(0.4, 0.1, 0.2, 1) forwards;
}

/* thin at period → fat as ring rushes toward viewer */
@keyframes ss-ring-reveal {
  0% {
    opacity: 0;
    width: 100%;
    height: 100%;
    margin-left: -50%;
    margin-top: -50%;
    border-width: 1px;
  }
  8% {
    opacity: 0.95;
    width: 160%;
    height: 160%;
    margin-left: -80%;
    margin-top: -80%;
    border-width: 1.5px;
  }
  35% {
    opacity: 0.85;
    width: 14em;
    height: 14em;
    margin-left: -7em;
    margin-top: -7em;
    border-width: 6px;
  }
  75% {
    opacity: 0.55;
    width: 90vmax;
    height: 90vmax;
    margin-left: -45vmax;
    margin-top: -45vmax;
    border-width: 28px;
  }
  100% {
    opacity: 0;
    width: 140vmax;
    height: 140vmax;
    margin-left: -70vmax;
    margin-top: -70vmax;
    border-width: 48px;
  }
}

@keyframes ss-mark-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes ss-splash-fade {
  0%,
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
