It shouldn't be going brown , it may of damaged the stem lower down if it had been on the deck
It looks dead to me. The soil has cracked away from the plant, it’s dried right out.They are very easy to grow from seeds, try a packet and sow half a dozen next March, pot on and they will flower the flowing year.
Is that a light bulb positioned almost inside it. If it is and it gets warm/hot, that won't have done it much good either I'm afraid. You have done well not to have lots of aphids on it. I ditched mine when there were more of them than balls!