* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.container {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}
.avatar.calling {
  animation: pulse 1.5s ease-in-out infinite;
}
.avatar.connected {
  box-shadow: 0 0 60px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #22c55e, #6366f1);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(99, 102, 241, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(99, 102, 241, 0.5); }
}
h1 { font-size: 1.8rem; margin-bottom: 0.5rem; font-weight: 600; }
.status {
  color: #a3a3a3;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 1.5em;
}
.status.error { color: #ef4444; }
.status.connected { color: #22c55e; }
.controls {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.95); }
.btn-accept {
  background: #22c55e;
  color: white;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}
.btn-reject {
  background: #ef4444;
  color: white;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.btn-mute {
  background: #404040;
  color: white;
}
.btn-mute.active {
  background: #f59e0b;
  color: #0a0a0a;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
#setup-panel {
  margin-top: 2rem;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 12px;
}
#setup-panel button {
  background: #6366f1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}
#setup-panel button:hover { background: #4f46e5; }
.hidden { display: none !important; }
.timer {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: #a3a3a3;
  margin-bottom: 1rem;
}
