/* ============================================================
   XEN AI — Voice Screen
   ============================================================ */

body.voice-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255,107,0,0.08), transparent 70%),
    var(--black);
}

.voice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px;
  z-index: 5;
}

.brand-mark svg { display: block; }
#logoFallback { display: none; }

.topbar-actions { display: flex; gap: 10px; align-items: center; }

.icon-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--grey);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.icon-link:hover { color: var(--orange); border-color: var(--orange); }
.icon-link svg { width: 18px; height: 18px; }

.voice-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.orb-wrap {
  position: relative;
  width: min(52vh, 62vw, 460px);
  aspect-ratio: 1/1;
}

#orbCanvas { width: 100%; height: 100%; display: block; }

.status-text {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
  text-align: center;
  min-height: 20px;
}

.caption-box {
  margin-top: 18px;
  max-width: 640px;
  min-height: 30px;
  padding: 0 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.caption-box.is-visible { opacity: 1; transform: none; }
.caption-box.is-interim { color: var(--grey-dim); font-style: italic; }

.wake-hint {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #4a4a4a;
}

.chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
  max-width: 700px;
}

.chip {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--grey);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.chip:hover { border-color: var(--orange); color: var(--white); background: rgba(255,107,0,0.08); }

.voice-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 40px;
  z-index: 5;
}

.mic-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-orange);
  display: flex; align-items: center; justify-content: center;
  color: #140900;
  box-shadow: 0 12px 34px -10px rgba(255,107,0,0.75);
  transition: transform var(--dur-fast) var(--ease-out);
  position: relative;
}
.mic-btn:hover { transform: scale(1.05); }
.mic-btn svg { width: 26px; height: 26px; }

.mic-btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255,107,0,0.4);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.mic-btn.is-live::after {
  opacity: 1;
  animation: micpulse 1.6s ease-out infinite;
}
@keyframes micpulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.text-form {
  display: flex;
  gap: 10px;
  width: min(560px, 90vw);
}

.text-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 14px;
}
.text-form input:focus { outline: none; border-color: var(--orange); }

.text-form button {
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.text-form button:hover { border-color: var(--orange); color: var(--orange); }

.unsupported-note {
  display: none;
  font-size: 12px;
  color: var(--grey-dim);
  max-width: 400px;
  text-align: center;
}

@media (max-width: 640px) {
  .voice-topbar { padding: 20px; }
  .caption-box { font-size: 15.5px; padding: 0 16px; }
  .chips-row { display: none; }
}
