html {
  background: #141a2c;
}

body {
  background-color: transparent !important;
  background-image: none !important;
}

.site-curtain-layout {
  position: relative;
  z-index: 2;
  background-color: transparent !important;
  background-image: none !important;
}

.site-curtain-panel {
  isolation: isolate;
  background-color: #141a2c !important;
  background-image:
    radial-gradient(55% 50% at 18% 8%, rgba(129, 110, 255, 0.30), transparent 60%),
    radial-gradient(50% 45% at 85% 16%, rgba(34, 211, 238, 0.26), transparent 60%),
    radial-gradient(60% 55% at 55% 108%, rgba(236, 72, 153, 0.18), transparent 60%),
    linear-gradient(180deg, #1b2236 0%, #141a2c 100%) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.space-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 18% 8%, rgba(129, 110, 255, 0.30), transparent 60%),
    radial-gradient(50% 45% at 85% 16%, rgba(34, 211, 238, 0.26), transparent 60%),
    radial-gradient(60% 55% at 55% 108%, rgba(236, 72, 153, 0.18), transparent 60%),
    linear-gradient(180deg, #1b2236 0%, #141a2c 100%);
}

.site-curtain-panel > .site-shell,
.site-curtain-panel > main {
  position: relative;
  z-index: 1;
}

body > .account-page,
body > .setup-page,
body > .admin-shell,
body > .legal-shell {
  position: relative;
  z-index: 1;
}

.space-background__grid {
  position: absolute;
  right: -18%;
  bottom: -16%;
  left: -18%;
  height: 68%;
  transform: perspective(280px) rotateX(64deg);
  transform-origin: bottom center;
  background-image:
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.30) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.30) 0 1px, transparent 1px 44px);
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.5));
  -webkit-mask-image: linear-gradient(to top, #000 4%, transparent 86%);
  mask-image: linear-gradient(to top, #000 4%, transparent 86%);
}

.space-background__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-curtain-panel > .space-background {
  position: absolute;
  inset: 0;
}

.site-curtain-panel > .space-background > .space-background__canvas {
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  .space-background__canvas {
    display: none;
  }
}
