/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_@playwright+test@1.61.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_@playwright+test@1.61.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  overscroll-behavior: none;
}
input {
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}

/* ── 음성 대화 비주얼라이저 (naia-os ChatPanel 이식, 동일 색/모션) ───────────── */
.chat-voice-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.chat-voice-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

/* 막대 4개 — idle staggered 높이 */
.voice-bar {
  width: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  transition: background 0.15s, height 0.2s;
}
.voice-bar:nth-child(1) { height: 8px; }
.voice-bar:nth-child(2) { height: 16px; }
.voice-bar:nth-child(3) { height: 12px; }
.voice-bar:nth-child(4) { height: 7px; }
.chat-voice-btn:hover:not(:disabled) .voice-bar { background: #fff; }

/* 연결 중 — 노랑 */
.chat-voice-btn.connecting .voice-bar {
  background: #e9a820;
  animation: voice-wave 0.8s ease-in-out infinite;
}
.chat-voice-btn.connecting .voice-bar:nth-child(1) { animation-delay: 0s; }
.chat-voice-btn.connecting .voice-bar:nth-child(2) { animation-delay: 0.15s; }
.chat-voice-btn.connecting .voice-bar:nth-child(3) { animation-delay: 0.3s; }
.chat-voice-btn.connecting .voice-bar:nth-child(4) { animation-delay: 0.45s; }

/* 준비 중 / 인식 중 — 황금 */
.chat-voice-btn.preparing { background: rgba(220, 180, 50, 0.15); }
.chat-voice-btn.preparing .voice-bar {
  background: #dcb432;
  animation: voice-wave 1.2s ease-in-out infinite;
}

/* 듣기(대기) — 초록 wave */
.chat-voice-btn.active { background: rgba(42, 157, 42, 0.15); }
.chat-voice-btn.active .voice-bar {
  background: #2a9d2a;
  animation: voice-wave 1s ease-in-out infinite;
}
.chat-voice-btn.active .voice-bar:nth-child(1) { animation-delay: 0s; }
.chat-voice-btn.active .voice-bar:nth-child(2) { animation-delay: 0.2s; }
.chat-voice-btn.active .voice-bar:nth-child(3) { animation-delay: 0.4s; }
.chat-voice-btn.active .voice-bar:nth-child(4) { animation-delay: 0.6s; }

/* 소리 잡힘(말하는 중 인식) — 초록 glow + 빠른 wave */
.chat-voice-btn.hearing {
  box-shadow: 0 0 0 3px rgba(42, 157, 42, 0.3), 0 0 12px rgba(42, 157, 42, 0.4);
  animation: hearing-pulse 0.8s ease-in-out infinite;
}
.chat-voice-btn.hearing .voice-bar {
  animation: voice-wave-hearing 0.4s ease-in-out infinite;
}
.chat-voice-btn.hearing .voice-bar:nth-child(1) { animation-delay: 0s; }
.chat-voice-btn.hearing .voice-bar:nth-child(2) { animation-delay: 0.1s; }
.chat-voice-btn.hearing .voice-bar:nth-child(3) { animation-delay: 0.2s; }
.chat-voice-btn.hearing .voice-bar:nth-child(4) { animation-delay: 0.3s; }

/* 말하기(아바타 답변) — 보라 */
.chat-voice-btn.speaking {
  background: rgba(157, 100, 220, 0.2);
  box-shadow: 0 0 0 3px rgba(157, 100, 220, 0.3);
}
.chat-voice-btn.speaking .voice-bar {
  background: #9d64dc;
  animation: voice-wave-speaking 0.6s ease-in-out infinite;
}
.chat-voice-btn.speaking .voice-bar:nth-child(1) { animation-delay: 0s; }
.chat-voice-btn.speaking .voice-bar:nth-child(2) { animation-delay: 0.15s; }
.chat-voice-btn.speaking .voice-bar:nth-child(3) { animation-delay: 0.3s; }
.chat-voice-btn.speaking .voice-bar:nth-child(4) { animation-delay: 0.45s; }

.chat-voice-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-voice-btn:disabled .voice-bar { animation: none; }

@keyframes voice-wave {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}
@keyframes voice-wave-hearing {
  0%, 100% { height: 8px; }
  50% { height: 28px; }
}
@keyframes voice-wave-speaking {
  0%, 100% { height: 10px; }
  50% { height: 24px; }
}
@keyframes hearing-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(42, 157, 42, 0.3), 0 0 12px rgba(42, 157, 42, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(42, 157, 42, 0.15), 0 0 20px rgba(42, 157, 42, 0.5); }
}

