Anyone who played for a team before stays on that same team. The captains pick the rest in private, and the teams are revealed all at once.
Send each captain their own code privately. They open this page, tap Captain’s corner and enter it. Blue picks first, then they take turns.
Announcing puts every pick into the teams, sends one notification and plays the reveal for everyone who opens the site. It can’t be undone.