/* CRT terminal theme: phosphor green on black, amber for heat, scanlines and glow. */
:root {
  --crt: #040806;
  --crt-2: #0a1a10;
  --phosphor: #3dff8b;
  --phosphor-hot: #c9ffdf;
  --phosphor-dim: #1f9d55;
  --phosphor-faint: rgb(61 255 139 / 0.12);
  --amber: #ffb627;
  --amber-hot: #ffe2a3;
  --text: var(--phosphor);
  --muted: #5fbf86;
  /* Phosphor bloom: a tight core plus two wider halos. */
  --glow: 0 0 1px rgb(201 255 223 / 0.9), 0 0 8px rgb(61 255 139 / 0.55), 0 0 22px rgb(61 255 139 / 0.25);
  --glow-amber: 0 0 1px rgb(255 226 163 / 0.9), 0 0 8px rgb(255 182 39 / 0.6), 0 0 22px rgb(255 182 39 / 0.3);
  --scanlines: repeating-linear-gradient(180deg, rgb(0 0 0 / 0) 0 2px, rgb(0 0 0 / 0.32) 2px 3px);
  --font: "VT323", "Courier New", monospace;
  --term: "VT323", "Courier New", monospace;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(70vmax 50vmax at 50% 45%, #0c2416, transparent 70%),
    var(--crt);
  -webkit-font-smoothing: antialiased;
}

/* Scanlines over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--scanlines);
  pointer-events: none;
  z-index: 100;
}

/* Normal (non-reel) mode: the component centred, with a small toolbar. */
.demo-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 120px 16px 120px;
}

.toolbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1.5px solid rgb(61 255 139 / 0.4);
  border-radius: 6px;
  background: rgb(4 8 6 / 0.85);
  box-shadow: 0 0 24px rgb(61 255 139 / 0.12);
}

.toolbar a {
  white-space: nowrap;
  color: var(--phosphor);
  text-decoration: none;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 3px;
  text-shadow: var(--glow);
}

.toolbar a:hover, .toolbar a:focus-visible { background: var(--phosphor); color: var(--crt); text-shadow: none; outline: none; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
