Top the graham cracker layer with the coconut, followed by the candy corn, butterscotch chips, and pecans. Pour the sweetened condensed milk over everything, then sprinkle with sea salt (if using). Bake 22 to 25 minutes, until golden on top. Cool magic bars completely in the pan set on a wire rack, then slice into bars and serve.