* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #05080d; color: #e9fbff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow: hidden; }
body { min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 18px env(safe-area-inset-bottom); }
.bg { position: fixed; inset: 0; background:
  radial-gradient(circle at 50% 34%, rgba(20,130,160,.18), transparent 45%),
  radial-gradient(circle at 50% 100%, rgba(120,20,40,.15), transparent 55%),
  #05080d; z-index: -1; }
header { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px 0; letter-spacing: .28em; font-size: 11px; color: #7fd8ef; }
.brand { font-weight: 700; color: #dff8ff; }
.status { color: #5bb7cc; }
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.orb { position: relative; width: min(72vw, 330px); aspect-ratio: 1; display: grid; place-items: center; margin-top: -10px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(57,215,255,.28); }
.r1 { inset: 0; border-top-color: #39d7ff; border-right-color: rgba(57,215,255,.05); animation: spin 9s linear infinite; }
.r2 { inset: 12%; border-bottom-color: #ff4d6d; border-left-color: rgba(255,77,109,.05); animation: spin 6s linear infinite reverse; }
.r3 { inset: 25%; border-color: rgba(57,215,255,.12); border-top-color: rgba(57,215,255,.8); animation: spin 3.5s linear infinite; }
.core { width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #12313c, #071016 70%); box-shadow: 0 0 40px rgba(57,215,255,.18), inset 0 0 40px rgba(57,215,255,.08); }
.core span { font-size: 54px; font-weight: 200; color: #bff4ff; text-shadow: 0 0 24px rgba(57,215,255,.7); }
.listening .r1 { animation-duration: 2.2s; border-top-color: #7dffd4; }
.listening .r2 { animation-duration: 1.6s; }
.thinking .r1 { animation-duration: 1.1s; border-top-color: #ffcf5a; }
.thinking .r3 { animation-duration: 1s; }
.speaking .r1 { animation-duration: 1.4s; border-top-color: #ff8fa3; }
.speaking .core { box-shadow: 0 0 70px rgba(255,77,109,.35), inset 0 0 40px rgba(255,77,109,.12); }
@keyframes spin { to { transform: rotate(360deg); } }
.panel { width: min(92vw, 430px); min-height: 86px; text-align: center; }
.line { font-size: 15px; color: #a9d8e6; line-height: 1.35; }
.answer { margin-top: 10px; font-size: 18px; line-height: 1.35; color: #f2fdff; }
.talk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid rgba(57,215,255,.35); background: rgba(9,24,31,.75); color: #dff8ff; border-radius: 999px; padding: 14px 30px; font-weight: 700; letter-spacing: .18em; font-size: 11px; backdrop-filter: blur(8px); }
.talk .mic { width: 22px; height: 22px; border: 2px solid #39d7ff; border-radius: 12px; position: relative; }
.talk .mic:after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 2px; height: 6px; background: #39d7ff; transform: translateX(-50%); }
.talk.active { background: rgba(255,77,109,.2); border-color: #ff4d6d; }
.hidden { display: none !important; }
.overlay { position: fixed; inset: 0; background: rgba(3,7,11,.9); display: grid; place-items: center; padding: 24px; z-index: 20; }
.card { width: 100%; max-width: 340px; background: #0a141b; border: 1px solid rgba(57,215,255,.25); border-radius: 18px; padding: 22px; }
.card h2 { margin: 0 0 6px; font-size: 18px; }
.card p { color: #8dbdcc; font-size: 13px; }
.card input { width: 100%; margin: 10px 0; padding: 12px; background: #061017; border: 1px solid rgba(57,215,255,.25); color: #e9fbff; border-radius: 10px; font-size: 16px; }
.card button { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #39d7ff; color: #031017; font-weight: 700; }
