/* ---------- Bay frame: corner brackets around the viewport ---------- */

.bay-frame {
  position: fixed;
  inset: 14px;
  z-index: 14;
  pointer-events: none;
  opacity: 0.4;
  --b: linear-gradient(var(--accent), var(--accent));
  background: var(--b) left top / 18px 1px no-repeat,
    var(--b) left top / 1px 18px no-repeat,
    var(--b) right top / 18px 1px no-repeat,
    var(--b) right top / 1px 18px no-repeat,
    var(--b) left bottom / 18px 1px no-repeat,
    var(--b) left bottom / 1px 18px no-repeat,
    var(--b) right bottom / 18px 1px no-repeat,
    var(--b) right bottom / 1px 18px no-repeat;
}

/* ---------- Instrument HUD ---------- */

.hud {
  position: fixed;
  z-index: 15;
  left: clamp(1rem, 4vw, 2.5rem);
  bottom: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--hud);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.hud-cell {
  display: flex;
  align-items: baseline;
  gap: 0.55ch;
}

.hud-key {
  opacity: 0.55;
}

.hud-val {
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hud-val--amber {
  color: var(--accent-warm);
}

/* Live indicator: the one thing that blinks. */
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--glow);
  }
  70% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px transparent;
  }
}

/* The HUD is decoration on a phone; the bay frame survives. */
@media (max-width: 700px) {
  .hud {
    display: none;
  }
}
