.call-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 7, 5, 0.66);
  backdrop-filter: blur(10px);
}

.call-card {
  width: min(380px, 100%);
  padding: 28px 26px 22px;
  border-radius: 24px;
  text-align: center;
  color: var(--paper);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(214, 185, 140, 0.16), transparent 55%),
    #14130e;
  border: 1px solid rgba(214, 185, 140, 0.38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.call-kicker {
  margin: 0;
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.28em;
}

.call-card h2,
.call-dock h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.call-card h2 { margin-top: 12px; font-size: 30px; }

.call-sub {
  margin: 8px 0 0;
  color: var(--paper-dim);
  font-size: 14px;
}

.call-ring {
  width: 108px;
  height: 108px;
  margin: 18px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(214, 185, 140, 0.7), 0 0 0 14px rgba(214, 185, 140, 0.08);
  animation: callpulse 2.4s ease-out infinite;
}

.call-ring .avatar,
.call-person .avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 28px;
}

.call-person .avatar { width: 52px; height: 52px; font-size: 18px; }

.call-actions,
.call-controls {
  display: flex;
  gap: 10px;
}

.call-actions { margin-top: 22px; }

.call-actions button,
.call-controls button,
.rec-bar button {
  height: 42px;
  border-radius: 999px;
  font-size: 14px;
}

.call-actions button { flex: 1; }

.call-yes,
.rec-send {
  border: 0;
  background: var(--brass);
  color: var(--ink);
}

.call-no {
  border: 1px solid rgba(243, 239, 230, 0.2);
  background: transparent;
  color: var(--paper);
}

.call-dock {
  position: fixed;
  z-index: 65;
  right: 20px;
  bottom: 20px;
  width: min(328px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border-radius: 22px;
  color: var(--paper);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(214, 185, 140, 0.12), transparent 50%),
    rgba(18, 17, 13, 0.94);
  border: 1px solid rgba(214, 185, 140, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.call-dock-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#call-clock {
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.call-people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin: 16px 0 14px;
}

.call-person { width: 64px; text-align: center; }

.call-person em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--paper-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-person.is-speaking .avatar {
  box-shadow: 0 0 0 2px var(--brass), 0 0 16px rgba(214, 185, 140, 0.45);
}

.call-person.is-wait .avatar { opacity: 0.45; }

.call-controls button {
  flex: 1;
  border: 1px solid rgba(243, 239, 230, 0.16);
  background: transparent;
  color: var(--paper);
}

.call-controls .is-on {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.call-hang {
  background: #7c3a34 !important;
  border-color: transparent !important;
  color: #f6efe6 !important;
}

.rec-bar {
  width: min(720px, 100%);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  color: var(--paper);
  background: #16150f;
  border: 1px solid rgba(214, 185, 140, 0.42);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4554a;
  box-shadow: 0 0 0 4px rgba(196, 85, 74, 0.16);
  animation: recblink 1s steps(2) infinite;
}

#rec-clock { font-variant-numeric: tabular-nums; color: var(--brass); }

.rec-hint { color: var(--paper-dim); font-size: 13px; }

.rec-bar button[data-call="rec-cancel"] {
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--paper-dim);
}

.rec-send { padding: 0 16px; }

.voice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.voice-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(214, 185, 140, 0.2);
  position: relative;
  flex: none;
}

.voice-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--brass-deep, #b8925a);
}

.voice-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.voice-bars i {
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.72;
  transform-origin: center bottom;
}

.voice em {
  margin-left: auto;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.voice.is-playing .voice-bars i { animation: voicebar 0.9s ease-in-out infinite; }
.voice.is-playing .voice-bars i:nth-child(2n) { animation-delay: 0.15s; }
.voice.is-playing .voice-bars i:nth-child(3n) { animation-delay: 0.28s; }

@keyframes callpulse {
  0% { box-shadow: 0 0 0 1px rgba(214, 185, 140, 0.7), 0 0 0 0 rgba(214, 185, 140, 0.28); }
  70% { box-shadow: 0 0 0 1px rgba(214, 185, 140, 0.45), 0 0 0 16px rgba(214, 185, 140, 0); }
  100% { box-shadow: 0 0 0 1px rgba(214, 185, 140, 0.7), 0 0 0 0 rgba(214, 185, 140, 0); }
}

@keyframes voicebar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@keyframes recblink { 50% { opacity: 0.35; } }

@media (max-width: 720px) {
  .call-dock { right: 12px; left: 12px; width: auto; bottom: 12px; }
}
