:root {
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast-item {
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-transition-frame {
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-frame.is-visible {
  opacity: 1;
}

[data-animate] {
  opacity: 0;
  transform: translate3d(0, var(--animate-distance, 18px), 0) scale3d(0.98, 0.98, 1);
  transition-property: opacity, transform, filter;
  transition-duration: var(--animate-duration, 620ms);
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--animate-delay, 0s);
  filter: blur(var(--animate-blur, 18px));
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  filter: blur(0);
}

.glow-ambient {
  animation: gradient-glow 14s ease-in-out infinite;
}

@keyframes gradient-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-frame {
    transition-duration: 0ms !important;
  }

  [data-animate] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }
}
