India close in on win as Sri Lanka totter at 31/3 in pursuit of 410