Philippe Coutinho saved Brazil in stoppage time after they struggled to break down Costa Rica, with Tite's side eventually winning 2-0.
After a stodgy first-half showing, Brazil, who drew their opening match with Switzerland, wasted numerous chances before Coutinho (90+1) netted his second goal of the tournament to rescue his side.
Neymar (90+6) added gloss with a further goal in added time. The PSG man was at the heart of the game throughout, including winning a penalty which was sensationally overturned by VAR. At the full-time whistle Neymar was in tears, presumably with relief that Brazil had avoided a damaging result.
Both these two nations play their final Group E games on Wednesday, with Brazil taking on Serbia and Costa Rica playing Switzerland.
Sky Sports