Let $T(n)$ be the number of tours over a $4 \times n$ playing board such that:

The diagram shows one tour over a $4 \times 10$ board:

$T(10)$ is $2329$. What is $T(10^{12})$ modulo $10^8$?