HVEM structures and mutants reveal distinct functions of binding to LIGHT and BTLA/CD160.