:root {
  --bg: #030308;
  --star-bright: #eef1ff;
  --star-dim: #6b7bb8;
  --accent: #ffb454;
  --text: #eef1ff;
  --text-dim: #8891b5;
  --glow: rgba(255, 180, 84, 0.35);
  --frame-line: rgba(255, 255, 255, 0.14);

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
}

/* soft dark vignette to keep the edges calm and focus the center */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(3, 3, 8, 0) 0%,
    rgba(3, 3, 8, 0.35) 70%,
    rgba(3, 3, 8, 0.75) 100%
  );
}

/* faint scanlines for a cockpit-display feel, kept very subtle */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

.hud {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.frame {
  position: relative;
  padding: 48px 64px;
  max-width: min(90vw, 640px);
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--frame-line);
}

.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.readout {
  text-align: center;
}

.label {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.label .blink {
  color: var(--accent);
  animation: blink 2.6s ease-in-out infinite;
}

.message {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 52px);
  color: var(--text);
  letter-spacing: 0.01em;
  text-shadow: 0 0 24px var(--glow);
  animation: breathe 6s ease-in-out infinite;
}

.sub {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

@keyframes breathe {
  0%, 100% { opacity: 0.88; text-shadow: 0 0 24px var(--glow); }
  50%      { opacity: 1;    text-shadow: 0 0 40px var(--glow); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .message { animation: none; }
  .label .blink { animation: none; }
}
