You are helping with a Godot 4.7.2 GDScript prototype. Read the attached main.gd first. Explain the game states and node assumptions. Then propose the smallest patch that adds a visible warning below 10 seconds while playing. Preserve collection, timer, collision, music and restart behavior. Do not add packages or network calls. State checks for 11 seconds, 9 seconds, timeout and restart. Show changed functions and explain every new API.

Attach the actual current script. Review and run each proposed change before accepting another feature.
