:root {
  --bg: #000;
  --sign: #d11a1a;
  --sign-ink: #fff;
  --hud: #ff8a1f;
  --dim: #8a8f94;
  --mono: "DejaVu Sans Mono", "Liberation Mono", Menlo, Consolas, ui-monospace, monospace;
  --narrow: "Oswald", "Bebas Neue", "Roboto Condensed", "Liberation Sans Narrow", "Arial Narrow", Impact, "Haettenschweiler", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { color: var(--dim); font-family: var(--mono); }

#screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  /* phosphor bloom; cheap on the GPU, off for reduced motion */
  filter: drop-shadow(0 0 3px rgba(255, 138, 31, 0.35));
}

/* vignette over the screen, never over the sign */
.scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%);
}

.hud {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--hud);
  text-shadow: 0 0 6px rgba(255, 138, 31, 0.6);
}
.rec { display: inline-flex; align-items: center; gap: 8px; color: #ff4d4d; text-shadow: 0 0 6px rgba(255, 40, 40, 0.7); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 8px #ff2a2a; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

/* the "VIDEO RECORDING IN PROGRESS" sign, as a badge */
.sign {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--sign);
  color: var(--sign-ink);
  border-radius: 6px;
  padding: 14px 20px 12px;
  outline: 3px solid var(--sign-ink);
  outline-offset: -9px;
  text-align: center;
  box-shadow: 0 0 40px rgba(209, 26, 26, 0.35);
  font-family: var(--narrow);
  font-stretch: condensed;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.sign h1 { white-space: nowrap; margin: 6px 4px 6px; font-size: 34px; letter-spacing: 0.04em; font-weight: 700; }
.sign p { margin: 0 4px 6px; font-size: 18px; letter-spacing: 0.12em; }

.foot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.mode { font-size: 10px; opacity: 0.7; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; }

/* staff access: small, out of the way, under the clock */
.staff { position: fixed; top: 40px; right: 16px; z-index: 5; font-size: 11px; letter-spacing: 0.14em; text-align: right; }
.staff summary { cursor: pointer; list-style: none; color: var(--dim); text-transform: uppercase; padding: 4px 0; }
.staff summary::-webkit-details-marker { display: none; }
.staff summary:hover, .staff[open] summary { color: var(--hud); }
.staff summary:focus-visible, .staff input:focus-visible, .staff button:focus-visible { outline: 2px solid var(--hud); outline-offset: 2px; }
.staff-form { display: grid; grid-template-columns: auto auto; gap: 6px; justify-items: end; align-items: center; margin-top: 6px; padding: 10px; background: rgba(0, 0, 0, 0.85); border: 1px solid #5b4a36; }
.staff-form label { grid-column: 1 / -1; color: var(--hud); }
.staff-form input { width: 12rem; font: inherit; letter-spacing: 0.2em; color: #ffd9b0; background: #000; border: 1px solid var(--hud); padding: 6px 8px; }
.staff-form button { font: inherit; letter-spacing: 0.14em; color: #000; background: var(--hud); border: 0; padding: 7px 10px; cursor: pointer; }
.staff-msg { grid-column: 1 / -1; margin: 0; min-height: 1em; color: #ff5a4f; }

@media (max-width: 600px) {
  .sign { left: 50%; transform: translateX(-50%); bottom: 18px; padding: 10px 16px 8px; }
  .sign h1 { font-size: 26px; }
  .sign p { font-size: 14px; }
  .foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  #screen { filter: none; }
}
