I'd like help identifying a book about a teenage girl that goes to an arcade, and they have a virtual reality console that they hook you up to.
She goes back in time to a fantasy setting, but the equipment is damaged and she can't leave. She dies repeatedly but can't get out until she beats it.
It had a green cover, I think. That's all I remember.