:root {
  color-scheme: dark;
  background: #05050d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(90, 80, 180, 0.22), transparent 40%),
    #05050d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
}

canvas {
  --palette-duration: 24s;
  --palette-saturation: 1.18;
  --palette-contrast: 1.04;

  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
  transform: translateZ(0);
}

body.is-animated canvas {
  animation: palette-shift var(--palette-duration) linear infinite;
}

body.is-rendering canvas {
  animation: none;
  filter: none;
}

@keyframes palette-shift {
  0% {
    filter: hue-rotate(0deg) saturate(1.05) contrast(1.02);
  }

  50% {
    filter: hue-rotate(180deg) saturate(var(--palette-saturation)) contrast(var(--palette-contrast));
  }

  100% {
    filter: hue-rotate(360deg) saturate(1.05) contrast(1.02);
  }
}

.hud {
  position: fixed;
  left: clamp(18px, 4vw, 52px);
  bottom: clamp(18px, 4vw, 48px);
  z-index: 2;
  max-width: min(520px, calc(100vw - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(6, 7, 18, 0.28);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(130%);
  pointer-events: none;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.8);
}

.brand {
  font-size: clamp(28px, 5vw, 68px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.caption {
  margin-top: 8px;
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

body.is-rendering .caption::after {
  content: " …";
}
