Rising costs and AI competition are reshaping Bitcoin mining.