/* tokens
   bg void: #050605   phosphor green: #5fffa0   dim green: #3a8f5e
   amber rack: #ffab4d   rec red: #ff4d4d
   type: Share Tech Mono only (bundled, no CDN)
   radius: 0   spacing unit: 8px
*/

@font-face {
  font-family: 'Share Tech Mono';
  src: url('assets/fonts/share-tech-mono-latin-400-normal.woff2') format('woff2'),
       url('assets/fonts/share-tech-mono-latin-400-normal.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #050605;
  color: #5fffa0;
  font-family: 'Share Tech Mono', monospace;
  height: 100%;
  overflow: hidden;
}

.feed {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.feed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    rgba(0, 0, 0, 0) 3px
  );
  mix-blend-mode: multiply;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
}

.hud {
  position: absolute;
  z-index: 2;
  text-shadow: 0 0 6px rgba(95, 255, 160, 0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hud-top-left {
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.9);
  animation: blink 1s steps(1) infinite;
}

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

.rec-label { color: #ff8a8a; font-weight: 400; }
.cam-id { color: #5fffa0; opacity: 0.85; }

.hud-top-right {
  top: 16px;
  right: 16px;
}

.clock { opacity: 0.85; }

.hud-caption {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 560px;
  text-align: center;
  padding: 0 16px;
}

.hud-caption p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #cfffe2;
}

.log-line {
  color: #ffab4d;
  text-shadow: 0 0 6px rgba(255, 171, 77, 0.7);
  font-size: 11px;
  opacity: 0.85;
}

.hud-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.hud-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-label {
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.12em;
}

.shift-clock {
  font-size: 16px;
  color: #cfffe2;
}

.ca {
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(95, 255, 160, 0.5);
  color: #5fffa0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(95, 255, 160, 0.6);
  white-space: nowrap;
}

.ca:hover { background: rgba(95, 255, 160, 0.12); }

.hud-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hud-links a {
  display: block;
  width: 24px;
  height: 24px;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(95, 255, 160, 0.6));
}

.hud-links a:hover { opacity: 1; }

.hud-links img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 640px) {
  .hud { font-size: 11px; }
  .hud-top-left { max-width: 62%; flex-wrap: wrap; }
  .hud-caption { top: 12%; }
  .hud-caption p { font-size: 12px; }
  .hud-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .hud-node { align-items: center; }
  .ca { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; opacity: 1; }
}
