/* The original NÜA symbol at startup and during important operations. */
html[data-nua-loading], html[data-nua-task-loading] { overflow: hidden; }

.nua-page-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: #f1eee8;
  color: #111;
  opacity: 1;
  transition: opacity 380ms cubic-bezier(.4, 0, .2, 1);
}
.nua-page-loader[hidden] { display: none !important; }
.nua-page-loader.is-leaving { opacity: 0; }
.nua-page-loader__mark {
  display: block;
  width: clamp(88px, 22vw, 136px);
  height: auto;
  overflow: visible;
}
.nua-page-loader__dot {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: nua-page-dot-hop 1800ms infinite;
}
.nua-page-loader__dot--right { animation-delay: -900ms; }

.nua-task-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
  color: #28231f;
  overflow: hidden;
  outline: none;
  opacity: 1;
  transition: opacity 280ms ease;
}
.nua-task-loader[open] { display: grid; place-items: center; }
.nua-task-loader[data-inline-fallback] { background: rgb(255 250 242 / 58%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: 2147483647; }
.nua-task-loader::backdrop {
  background: rgb(255 250 242 / 58%);
  -webkit-backdrop-filter: blur(14px) saturate(.75);
  backdrop-filter: blur(14px) saturate(.75);
  animation: nua-task-backdrop-in 300ms ease both;
  transition: opacity 280ms ease;
}
.nua-task-loader__content {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 30px;
  text-align: center;
  animation: nua-task-enter 440ms cubic-bezier(.16,1,.3,1) both;
}
.nua-task-loader__content::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -85px -65px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fffaf2c9, #fffaf200 70%);
}
.nua-task-loader .nua-task-loader__mark { width: clamp(72px, 18vw, 94px); }
.nua-task-loader__status {
  max-width: 260px;
  margin: 0;
  color: #51483d;
  font: 400 12px/1.7 'Avenir Next', 'Helvetica Neue', sans-serif;
  letter-spacing: .055em;
}
.nua-task-loader.is-leaving, .nua-task-loader.is-leaving::backdrop { opacity: 0; }
@keyframes nua-task-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nua-task-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes nua-page-dot-hop {
  0%, 8%, 52%, 100% {
    transform: translateY(0) scale(1);
    animation-timing-function: ease-in;
  }
  14% {
    transform: translateY(2px) scale(1.15, .78);
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  30% {
    transform: translateY(-34px) scale(.92, 1.12);
    animation-timing-function: cubic-bezier(.55, 0, .85, .45);
  }
  43% {
    transform: translateY(2px) scale(1.18, .76);
    animation-timing-function: ease-out;
  }
  48% {
    transform: translateY(-4px) scale(.98, 1.05);
    animation-timing-function: ease-in-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nua-page-loader { transition: none; }
  .nua-page-loader__dot { animation: none; }
  .nua-task-loader, .nua-task-loader::backdrop, .nua-task-loader__content { transition: none; animation: none; }
}
