/* call.css — экран звонка. Стилистика Ёжика: тёплый фон, зелёный акцент. */

#call_root {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 24, 28, .62);
  backdrop-filter: blur(2px);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#call_root.call-open { display: flex; }

.call-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.call-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.call-name {
  font-size: 17px;
  font-weight: 700;
  color: #111b21;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-state {
  margin-top: 3px;
  font-size: 13px;
  color: #667781;
  font-variant-numeric: tabular-nums;
  min-height: 19px;
}

.call-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.call-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #6c757d;
  transition: filter .15s;
}

.call-btn:hover { filter: brightness(.94); }
.call-btn:active { filter: brightness(.88); }

.call-accept { background: #198754; }
.call-reject { background: #dc3545; }
.call-mute { flex: 0 0 54px; background: #e9ecef; color: #111b21; }

@media (max-width: 360px) {
  .call-card { padding: 18px 14px 14px; }
  .call-btn { font-size: 13px; padding: 10px 10px; }
}
