/* ---------- in-app calling ---------- */

#v2h-call-root:empty { display: none; }

.call-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(165deg, #2a5e1a 0%, #1f4614 60%, #16330e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(70px + env(safe-area-inset-top)) 24px calc(50px + env(safe-area-inset-bottom));
}

.call-who { text-align: center; }

.call-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.call-avatar i { font-size: 46px; opacity: .85; }

/* An incoming call should look like it is demanding something. */
.call-avatar.ringing { animation: callPulse 1.5s ease-out infinite; }

@keyframes callPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); }
  70%  { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.call-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.call-state {
  font-size: 14.5px;
  opacity: .8;
  margin-top: 7px;
  min-height: 20px;
}
.call-state.warn { color: #ffd9a0; opacity: 1; }

.call-timer {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  opacity: .9;
  margin-top: 4px;
  min-height: 22px;
}

/* Saying this plainly is half the reason for building it this way. */
.call-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  opacity: .6;
  background: rgba(255, 255, 255, .08);
  padding: 8px 15px;
  border-radius: 20px;
}
.call-privacy i { font-size: 15px; }

.call-actions {
  display: flex;
  gap: 26px;
  align-items: center;
}

.call-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.call-btn i { font-size: 27px; }
.call-btn:active { transform: scale(.94); }

.call-btn-red   { background: #c1352f; }
.call-btn-green { background: #2e8b3d; }
.call-btn-grey  { background: rgba(255, 255, 255, .16); }
.call-btn-grey.muted { background: rgba(255, 255, 255, .34); }

/* The answer button on an incoming call earns a little more attention. */
.call-screen.incoming .call-btn-green { animation: callBob 1.6s ease-in-out infinite; }

@keyframes callBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}