/* Happy Hippo web loading splash — uses var(--hh-*) from theme_tokens.css */

#hh-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100dvh;
  background: radial-gradient(
    ellipse at center,
    var(--hh-surface) 0%,
    var(--hh-scaffold) 100%
  );
  transition: opacity 400ms ease-out;
}

#hh-splash.hh-splash--hidden {
  opacity: 0;
  pointer-events: none;
}

.hh-splash__hippo-wrap {
  width: 160px;
  height: 160px;
  filter: drop-shadow(
    0 8px 24px
      color-mix(in srgb, var(--hh-primary) var(--hh-primary-shadow-opacity), transparent)
  );
}

.hh-splash__hippo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hh-splash__hippo--light {
  display: block;
}

.hh-splash__hippo--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .hh-splash__hippo--light {
    display: none;
  }

  .hh-splash__hippo--dark {
    display: block;
  }
}

.hh-splash__title {
  margin: 0.5rem 0 0;
  font-family: var(--hh-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hh-on-surface);
  letter-spacing: -0.02em;
}

.hh-splash__subtitle {
  margin: 0;
  font-family: var(--hh-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--hh-on-surface-variant);
}

.hh-splash__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hh-splash__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hh-accent-teal);
  animation: hh-dot-bounce 1.2s ease-in-out infinite;
}

.hh-splash__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.hh-splash__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hh-dot-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hh-splash__dot {
    animation: hh-dot-pulse 1.5s ease-in-out infinite;
  }

  @keyframes hh-dot-pulse {
    0%,
    100% {
      opacity: 0.4;
    }

    50% {
      opacity: 1;
    }
  }
}
