/* Relay tokens. Load AFTER offsset/tokens.css. Relay inherits every Offsset token and
   adds only the app-specific ones below. */
:root {
  /* Captions */
  --caption-size: clamp(28px, 4.5vw, 56px);          /* translated text, the hero */
  --caption-line: 1.2;
  --caption-weight: 600;
  --caption-original-size: clamp(16px, 2vw, 22px);   /* original speech, muted */
  --caption-audience-size: clamp(40px, 8vw, 96px);   /* full-screen audience view */
  --caption-max-lines: 3;

  /* States */
  --listening: var(--signal);          /* mic active: red fill + glowing dot + "LISTENING" */
  --live: var(--signal);               /* live session indicator */
  --idle: var(--muted);

  /* Controls */
  --mic-size: 72px;                    /* main microphone button, square */
  --control-height: 44px;

  --focus-ring: 0 0 0 2px var(--ground), 0 0 0 4px var(--signal);
}

/* The relay loader: dots in a row, the red one travels. Markup: <span class="relay-dots"><i></i>×7</span> */
.relay-dots { display: inline-flex; gap: 8px; }
.relay-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pixel-off);
  animation: relay-step 1.4s steps(1) infinite;
}
.relay-dots i:nth-child(1) { animation-delay: 0s; }
.relay-dots i:nth-child(2) { animation-delay: 0.2s; }
.relay-dots i:nth-child(3) { animation-delay: 0.4s; }
.relay-dots i:nth-child(4) { animation-delay: 0.6s; }
.relay-dots i:nth-child(5) { animation-delay: 0.8s; }
.relay-dots i:nth-child(6) { animation-delay: 1.0s; }
.relay-dots i:nth-child(7) { animation-delay: 1.2s; }
@keyframes relay-step {
  0%, 14% { background: var(--signal); box-shadow: var(--glow-signal); }
  15%, 100% { background: var(--pixel-off); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .relay-dots i { animation: none; }
  .relay-dots i:nth-child(4) { background: var(--signal); }
}
