:root {
  color-scheme: light;
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e6a4b2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --loave-pink: #e6a4b2;
  --loave-pink-light: #efbdc7;
  --loave-white: #fffafd;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 253, 0.22), transparent 42%),
    linear-gradient(145deg, var(--loave-pink-light), var(--loave-pink));
}

#topo-canvas,
.background-glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#topo-canvas {
  z-index: 0;
  display: block;
}

.background-glow {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 35%, rgba(184, 96, 116, 0.08));
}

.loading-screen {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 1.5rem;
}

.loading-label {
  margin: 0;
  color: var(--loave-white);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 8px 28px rgba(130, 57, 76, 0.2);
  animation: loading-breathe 2.4s ease-in-out infinite;
}

.loading-dots {
  display: inline-block;
  width: 0.9em;
  overflow: hidden;
  vertical-align: bottom;
  animation: reveal-dots 1.4s steps(4, end) infinite;
}

@keyframes reveal-dots {
  0% {
    width: 0;
  }
  100% {
    width: 0.9em;
  }
}

@keyframes loading-breathe {
  0%,
  100% {
    opacity: 0.76;
    transform: translateY(0) scale(0.985);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
}

@media (max-width: 640px) {
  .loading-label {
    font-size: clamp(2.1rem, 12vw, 3.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-label,
  .loading-dots {
    animation: none;
  }

  .loading-dots {
    width: auto;
  }
}
