The Czech Republic came from behind to beat Costa Rica 3-2 at the Under-20 World Cup, but Costa Rica still reached the knockout stage on goal difference.
Costa Rica finished with three points in Group E and a goal difference of minus-3 to take the final place in the last 16 as one of the best four third-placed teams.
The United States also finished on three points and minus-3 but scored one goal less than Costa Rica (4-5) and failed to qualify for the knockout phase.
Striker Jan Chramosta gave the Czechs the lead, Estrada equalized from the penalty spot, and Josue Martinez put Costa Rica ahead in the 71st.
Jan Voshalik made it 2-2 in the 77th and Chramosta got his second of the night in the 86th.
Brazil topped Group E with seven points.