@keyframes spectra-logo-shimmer {
  0%,
  18% {
    background-position: 140% 50%;
    opacity: 0.58;
    transform: scale(0.98);
  }

  52% {
    opacity: 1;
    transform: scale(1);
  }

  82%,
  100% {
    background-position: -40% 50%;
    opacity: 0.58;
    transform: scale(0.98);
  }
}

.spectra-app-loading {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: #0f0f11;
  color: transparent;
  font-size: 0;
  isolation: isolate;
}

.spectra-app-loading::after {
  width: 52px;
  height: 44px;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.34) 18%,
      #ffffff 46%,
      rgba(255, 255, 255, 0.34) 74%
    )
    140% 50% / 260% 100%;
  content: "";
  mask: url("/assets/spectra-logo.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/spectra-logo.svg") center / contain no-repeat;
  animation: spectra-logo-shimmer 1.55s cubic-bezier(0.4, 0, 0.2, 1)
    infinite;
}

html[data-theme="light"] .spectra-app-loading,
body[data-theme="light"] .spectra-app-loading {
  background: #f7f7f9;
}

html[data-theme="light"] .spectra-app-loading::after,
body[data-theme="light"] .spectra-app-loading::after {
  background:
    linear-gradient(
      110deg,
      rgba(20, 21, 25, 0.28) 18%,
      #16171b 46%,
      rgba(20, 21, 25, 0.28) 74%
    )
    140% 50% / 260% 100%;
}

.spectra-not-found {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 180px);
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 132px 24px 88px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 42%, rgba(110, 116, 227, 0.11), transparent 34%),
    #0f0f11;
  color: #f3f3f5;
  text-align: center;
}

.spectra-not-found-code {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.025);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(190px, 34vw, 520px);
  font-weight: 650;
  letter-spacing: -0.09em;
  line-height: 0.75;
  transform: translate(-50%, -50%);
  user-select: none;
}

.spectra-not-found-kicker,
.spectra-not-found h1,
.spectra-not-found-copy,
.spectra-not-found-actions {
  position: relative;
  z-index: 1;
}

.spectra-not-found-kicker {
  margin: 0 0 18px;
  color: #9ba0ff;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.spectra-not-found h1 {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.spectra-not-found-copy {
  max-width: 460px;
  margin: 22px auto 0;
  color: #898b95;
  font-size: 14px;
  line-height: 1.6;
}

.spectra-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.spectra-not-found-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #f3f3f5;
  font-size: 13px;
  font-weight: 520;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.spectra-not-found-actions a:first-child {
  border-color: transparent;
  background: #6e74e3;
  color: #fff;
}

.spectra-not-found-actions a:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.spectra-not-found-actions a:first-child:hover {
  border-color: transparent;
  background: #7c81ea;
}

.spectra-not-found-actions a:focus-visible {
  outline: 2px solid #8d92f2;
  outline-offset: 3px;
}

html[data-theme="light"] .spectra-not-found,
body[data-theme="light"] .spectra-not-found {
  background:
    radial-gradient(circle at 50% 42%, rgba(110, 116, 227, 0.1), transparent 34%),
    #f7f7f9;
  color: #17181d;
}

html[data-theme="light"] .spectra-not-found-code,
body[data-theme="light"] .spectra-not-found-code {
  color: rgba(20, 21, 25, 0.035);
}

html[data-theme="light"] .spectra-not-found-copy,
body[data-theme="light"] .spectra-not-found-copy {
  color: #686a74;
}

html[data-theme="light"] .spectra-not-found-actions a,
body[data-theme="light"] .spectra-not-found-actions a {
  border-color: rgba(20, 21, 25, 0.1);
  background: rgba(20, 21, 25, 0.035);
  color: #17181d;
}

html[data-theme="light"] .spectra-not-found-actions a:first-child,
body[data-theme="light"] .spectra-not-found-actions a:first-child {
  border-color: transparent;
  background: #646ae0;
  color: #fff;
}

@media (max-width: 560px) {
  .spectra-not-found {
    min-height: 100dvh;
    padding: 112px 20px 72px;
  }

  .spectra-not-found-code {
    font-size: 53vw;
  }

  .spectra-not-found-actions {
    width: 100%;
  }

  .spectra-not-found-actions a {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spectra-app-loading::after {
    animation: none;
    opacity: 0.88;
    transform: none;
  }

  .spectra-not-found-actions a {
    transition: none;
  }
}
