@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/epilogue-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --brand: #9acd32;
  --ink: #111712;
  --muted: #667065;
  --surface: #f7f8f6;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: "Epilogue", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.loading-overlay {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 18, 0.38);
  backdrop-filter: blur(10px) saturate(0.8);
  -webkit-backdrop-filter: blur(10px) saturate(0.8);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 22rem);
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1.5rem 4rem rgba(6, 15, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: loading-card-in 240ms ease-out both;
}

.loading-mark {
  display: grid;
  position: relative;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--ink);
  box-shadow: 0 0.65rem 1.4rem rgba(17, 23, 18, 0.2);
}

.loading-mark::before {
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(154, 205, 50, 0.25);
  border-top-color: var(--brand);
  border-radius: 50%;
  content: "";
  animation: loading-spin 0.8s linear infinite;
}

.loading-mark::after {
  position: absolute;
  inset: -0.28rem;
  border: 1px solid rgba(154, 205, 50, 0.35);
  border-radius: 1.1rem;
  content: "";
  animation: loading-pulse 1.6s ease-out infinite;
}

.loading-copy {
  min-width: 0;
}

.loading-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.loading-copy span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

@keyframes loading-card-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.98);
  }
}

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

@keyframes loading-pulse {
  0% {
    opacity: 0.75;
    transform: scale(0.92);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-overlay {
    transition: none;
  }

  .loading-card {
    animation: none;
  }

  .loading-mark::before,
  .loading-mark::after {
    animation-duration: 1.8s;
  }
}
