/* ── Live voice overlay ──────────────────────────────────
   Split from chat.css: everything the in-call surface needs. */

/* ── Live voice overlay ─────────────────────────────────── */

.voice-overlay {
  z-index: 70;
  padding:
    max(22px, env(safe-area-inset-top, 0px))
    max(22px, env(safe-area-inset-right, 0px))
    max(22px, env(safe-area-inset-bottom, 0px))
    max(22px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
}

/* Re-renders remount the whole tree; a replayed entrance fade on an overlay
   that is already open reads as blinking. After the route's first paint the
   overlay appears without ceremony. */
html.anim-done .voice-overlay { animation: none; }

.voice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 30px 24px;
  width: min(400px, 100%);
}

.orb--call { width: 116px; height: 116px; }
.orb--call.is-speaking { animation: breathe 1.1s ease-in-out infinite; }
.voice-orb-initials { font-size: 30px; font-weight: 600; color: var(--on-accent); }

.voice-name { font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.voice-status { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); max-width: 34ch; }
.voice-clock { font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, 0.55); }

.voice-actions { margin-top: 8px; }

.voice-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.voice-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.voice-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.voice-btn svg { width: 21px; height: 21px; }
.voice-btn.is-muted { background: var(--danger); border-color: transparent; }
.voice-btn--end { background: var(--danger); border-color: transparent; }
.voice-btn--end:hover { background: #c46a6a; }

@media (max-width: 700px) {
  .voice-card { padding: 20px 16px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .voice-overlay { place-items: start center; }
  .voice-card { gap: 8px; padding-block: 12px; }
  .orb--call { width: 76px; height: 76px; }
  .voice-orb-initials { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb--call.is-speaking { animation: none; }
}
