:root {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f7f2e9;
  color: #2f3a2f;
}

.app {
  min-height: 100vh;
  position: relative;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.orb {
  --orb-color: #b8b3aa;
  --orb-shadow-color: rgba(0, 0, 0, 0.25);
  --orb-size: clamp(180px, 56vw, 250px);
  width: var(--orb-size);
  aspect-ratio: 1;
  border-radius: 9999px;
  background: var(--orb-color);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  transition: background 220ms ease, transform 120ms linear, box-shadow 120ms linear;
  position: fixed;
  top: calc(33vh - (var(--orb-size) / 2));
  left: 50%;
  margin-left: calc(var(--orb-size) / -2);
}

.orb.idle {
  --orb-color: #b8b3aa;
}

.orb.connected {
  background: var(--orb-color);
}

.orb-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
  pointer-events: none;
}

.orb.connected .orb-shader {
  display: block;
}

.status-stack {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.status-label {
  display: none;
  color: rgb(0 0 0 / 30%);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dots {
  display: none;
  align-items: center;
  gap: 10px;
}

.orb.connecting .status-stack,
.orb.forwarding .status-stack {
  display: flex;
}

.orb.connecting .dots,
.orb.forwarding .dots {
  display: flex;
}

.orb.forwarding .status-label {
  display: block;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  animation: dot-bounce 1s infinite ease-in-out;
}

.orb.forwarding .dots span {
  background: rgb(0 0 0 / 30%);
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.call-btn {
  border: 0;
  border-radius: 9999px;
  min-width: 190px;
  padding: 14px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #264434;
  background: #bfe8c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  left: 50%;
  bottom: 33vh;
  transform: translate(-50%, 50%);
}

.call-btn.hangup {
  background: #f2b8b5;
}

.material-symbols-rounded {
  font-size: 22px;
  line-height: 1;
  color: inherit;
}
