:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111816;
  color: #f4f1ea;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(54, 97, 82, 0.34), transparent 45%),
    linear-gradient(215deg, rgba(176, 65, 47, 0.28), transparent 52%),
    #101614;
}

button {
  font: inherit;
}

.call-shell {
  display: grid;
  grid-template-rows: minmax(300px, 1fr) minmax(130px, 28svh) auto;
  min-height: 100svh;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.call-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.signal {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #e7eee8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.signal::after {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 12%, transparent 13%),
    linear-gradient(145deg, #2f685a, #16392f);
}

.signal span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(231, 238, 232, 0.34);
  border-radius: 50%;
  transform: scale(1);
  opacity: 0;
}

.connected .signal span {
  animation: pulse 2.2s linear infinite;
}

.connected .signal span:nth-child(2) {
  animation-delay: 0.65s;
}

.connected .signal span:nth-child(3) {
  animation-delay: 1.3s;
}

.eyebrow {
  min-height: 24px;
  margin: 0;
  color: #aebbb4;
  font-size: 15px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 12vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.timer {
  margin: 0;
  color: #d7ded8;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.transcript {
  overflow: auto;
  padding: 12px 0;
  color: #dfe6df;
  font-size: 15px;
  line-height: 1.55;
  mask-image: linear-gradient(transparent 0, #000 20px, #000 calc(100% - 20px), transparent);
}

.line {
  margin: 8px 0;
  padding: 0 4px;
}

.line strong {
  color: #84c7b1;
  font-weight: 700;
}

.controls {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.call-button,
.icon-button {
  border: 0;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.call-button {
  min-height: 62px;
  border-radius: 999px;
  background: #248b69;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(20, 95, 70, 0.36);
}

.call-button:disabled,
.icon-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.icon-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.secondary {
  background: rgba(255, 255, 255, 0.14);
}

.secondary.active {
  background: #c9953b;
}

.danger {
  background: #c94235;
}

@keyframes pulse {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}

@media (max-height: 680px) {
  .call-shell {
    grid-template-rows: minmax(230px, 1fr) minmax(90px, 22svh) auto;
  }

  .signal {
    width: 118px;
    height: 118px;
  }

  .signal::after {
    width: 58px;
    height: 58px;
  }
}
