Extracted and updated full-screen logic