In TwentyOne::initializeDeck function there's the loop with 52 iterations that performs storage operations, which are some of the most costly operations in Solidity.
The gas already consumed up to the point of the revert is non-refundable.
Manual, Foundry
There's a way to make gas consumption more efficient due to heavy network traffic or gas-intensive operations:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.