A defense-and-design game where a settlement survives only by building a resilient renewable microgrid.