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

:root {
  --bg-deep: #050505;
  --bg-soft: #101014;
  --ink: #e8e6e3;
  --ink-muted: #8a8780;
  --ring: #c4bfb6;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, var(--bg-soft) 0%, transparent 70%),
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: rise 0.9s ease-out both;
}

.spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ring) 18%, transparent);
  border-top-color: var(--ring);
  animation: spin 0.85s linear infinite;
}

.label {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.dots::after {
  content: "";
  display: inline-block;
  width: 1.6em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}

.credit {
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  animation: rise 0.9s ease-out 0.2s both;
}

.heart {
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner,
  .dots::after,
  .loader,
  .credit,
  .heart {
    animation: none;
  }

  .dots::after {
    content: "...";
  }
}
