the prince , who had never before slept outside his private chambers in the fortress , much less on the stony floor of a ravine in the mountains , could barely summon the energy to stay awake and maintain his precarious perch .