/* OMNI-NEXUS KCTA TOUR 양방향 음성 대화 — index.html · characters.html 공용 */

/* 홈 캐릭터 카드 옆 🎤 */
.char-voice-pair {
  align-items: stretch;
}
.char-voice-pair .char-card-3d.char-mini {
  align-self: stretch;
}
.char-voice-trigger {
  flex-shrink: 0;
  min-width: 2.25rem;
  padding: 0 5px;
  margin: 0;
  border: none;
  border-left: 1px solid rgba(15, 76, 129, 0.12);
  background: linear-gradient(180deg, #e0f2fe, #bae6fd);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.char-voice-pair--emerald .char-voice-trigger {
  background: linear-gradient(180deg, #d1fae5, #a7f3d0);
}
.char-voice-pair--amber .char-voice-trigger {
  background: linear-gradient(180deg, #fef3c7, #fde68a);
}
.char-voice-pair--slate .char-voice-trigger {
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}
.char-voice-pair--global .char-voice-trigger--global {
  min-width: 2.5rem;
  padding: 0 6px;
}
.char-voice-trigger:hover {
  filter: brightness(0.92);
}
.char-voice-trigger:focus-visible {
  outline: 2px solid #0f4c81;
  outline-offset: 2px;
  z-index: 1;
  position: relative;
}

@keyframes voice-panel-highlight-kf {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  }
}
.voice-bidirectional-panel.voice-panel-highlight {
  animation: voice-panel-highlight-kf 1.1s ease-out 2;
}

.voice-bidirectional-panel {
  border: 2px solid #0ea5e9;
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 55%);
}
.voice-intro {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 16px;
}
.voice-toolbar {
  margin-bottom: 12px;
}
.voice-lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.voice-lang-bar button {
  font: inherit;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #0f4c81;
  background: #fff;
  color: #0f4c81;
  cursor: pointer;
  min-height: 40px;
}
.voice-lang-bar button:hover {
  background: #e0f2fe;
}
.voice-lang-bar button[aria-pressed="true"] {
  background: #0f4c81;
  color: #fff;
}
.voice-log {
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.5;
}
.voice-line-user {
  color: #0f172a;
  margin: 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}
.voice-line-bot {
  color: #0f4c81;
  font-weight: 700;
  margin: 8px 0;
}
.voice-log-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.voice-log-clear {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #64748b;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
}
.voice-log-clear:hover {
  background: #e2e8f0;
}
.voice-copy-title {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #0f4c81;
  background: #e0f2fe;
  color: #0f172a;
  cursor: pointer;
  font-weight: 700;
}
.voice-copy-title:hover {
  background: #bae6fd;
}
#voice-speak-btn[aria-pressed="true"] {
  background: #0369a1 !important;
}

/* 음성 패널 안의 폼 컨트롤 (홈에서 glb 전역 스타일 없을 때) */
.voice-bidirectional-panel .glb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.voice-bidirectional-panel .glb-select-label {
  font-weight: 600;
  color: #0f172a;
}
.voice-bidirectional-panel .glb-select {
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #0f4c81;
  font-size: 15px;
  background: #fff;
}
.voice-bidirectional-panel .glb-download-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  background: #0f4c81;
  color: #fff;
  cursor: pointer;
}
.voice-bidirectional-panel .glb-download-btn:hover {
  background: #1a365d;
}
.voice-bidirectional-panel .glb-ar-btn {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid #16a34a;
  background: #dcfce7;
  color: #14532d;
  cursor: pointer;
  min-height: 48px;
}
.voice-bidirectional-panel .glb-status {
  font-size: 14px;
  color: #0f4c81;
  min-height: 1.4em;
}
.voice-bidirectional-panel .glb-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}
.voice-bidirectional-panel .glb-hint a {
  color: #0f4c81;
  font-weight: 600;
}
.voice-bidirectional-panel .glb-hint code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
