The Card Shark can choose on any turn of every dive but the last, since no deal follows the last. The Card Shark uses their ability from Items & abilities and picks Pearl or Leviathan in the pop-up. Until the Card Shark picks, cancelling spends nothing. The choice shows nothing on the table; the Card Shark’s row reads Active until the next deal.
The card comes from the cards dealt anyway: no card is added or removed, and every count stays the same. If one of the Card Shark’s caches already gets a card of that kind, nothing else changes. Otherwise the game picks one such card at random among the cards dealt to the other players, and it changes places with a random card from the Card Shark’s caches. This happens as part of the deal: nobody sees cards move, and every hand shows the cards its owner ends up with.
After the deal, only the Card Shark sees a short result at their board and in What only you know. If no card of that kind is left to deal, nothing changes and the result says so; the use is spent all the same.
A pearl means a real pearl, the Crown Jewel included. A Mirage, a Forgery, an Oyster and the Drowned Vault do not count, and a Black Pearl counts as neither kind. A Wild Leviathan counts as a Leviathan. An Oyster in the Card Shark’s caches swallows that pearl like any other, so it then lies inside the Oyster. The Card Shark never gets a pearl the Rigger keeps. When the Bone Shepherd or the Cargo Master moves cards at the same deal, the card of the chosen kind stays in the Card Shark’s caches.