:root {
  color-scheme: dark;
  --site-footer-height: 48px;
  --bg: #070a12;
  --bg-2: #0f1424;
  --panel: rgb(14 18 32 / 55%);
  --line: rgb(118 144 214 / 25%);
  --fg: #dfe7ff;
  --muted: #8da0bf;
  --ok: #7fffd4;
  --warn: #ffd966;
  --bad: #ff7b7b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(1200px 800px at 80% 5%, var(--bg-2), var(--bg));
  color: var(--fg);
}

.site-footer {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: var(--site-footer-height);
  padding: 8px 12px;
  border-top: 1px solid rgb(118 144 214 / 14%);
  background: rgb(3 6 13 / 88%);
  color: rgb(141 160 191 / 72%);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

button,
input,
a {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
}

.space {
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-position: 0 0;
  background-repeat: repeat;
  opacity: 0.6;
}

.stars-layer-1 {
  background-image: radial-gradient(#fff 1px, transparent 1.2px);
  background-size: 2px 2px;
  animation: drift 120s linear infinite;
}

.stars-layer-2 {
  background-image:
    radial-gradient(#9ec9ff 1px, transparent 1.2px),
    radial-gradient(#fff 1px, transparent 1.2px);
  background-size: 3px 3px, 4px 4px;
  opacity: 0.35;
  animation: drift 220s linear infinite reverse;
}

.scanlines {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 4%) 0 1px, transparent 3px),
    radial-gradient(1200px 800px at 80% 5%, rgb(127 164 255 / 8%), transparent 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.spectrum {
  position: relative;
  height: 42px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.spectrum::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(127 164 255 / 5%) 0%,
    rgb(127 164 255 / 60%) 10%,
    rgb(127 164 255 / 5%) 20%,
    rgb(127 164 255 / 5%) 30%,
    rgb(127 164 255 / 50%) 42%,
    rgb(127 164 255 / 5%) 50%,
    rgb(127 164 255 / 5%) 62%,
    rgb(127 164 255 / 60%) 75%,
    rgb(127 164 255 / 5%) 85%,
    rgb(127 164 255 / 5%) 100%
  );
  background-size: 320px 100%;
  content: "";
  filter: blur(0.6px);
  animation: sweep 2.6s linear infinite;
}

@keyframes drift {
  to { background-position: -1000px 600px; }
}

@keyframes sweep {
  to { background-position: 320px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
