Compound of 縺れ (motsure, “tangle”) + 髪 (kami, “hair”). The kami changes to gami as an instance of rendaku (連濁).
縺(もつ)れ髪(がみ) • (motsuregami)