Difficulty
An epoch is 600 rounds. At each epoch change the contract rolls the seed and moves the target toward two qualifying solutions a round.
The seed
The next seed is keccak256(seed, accumulator, epoch), where the accumulator hashes every best hash recorded during the epoch. Nobody can mine more than about one epoch ahead, and no seed is easier than another. challengeFor(round) returns the seed and target for any round, including the next epoch before it rolls.
The estimator
For a filled round with N solutions under target T, the expected value of min/T is 1/(N + 1). The contract keeps the count of settled rounds and the sum of min/T in 32-bit fixed point, so N + 1 = filled / mean. The new target is T · 2 / N, clamped to ×4 or ÷4. An epoch with no settled round makes the target four times easier.
What a GPU farm does
A rented GPU hashes keccak far faster than a browser. When one arrives, difficulty rises within one to three epochs and every other miner's share falls in proportion. Rounds stay as frequent. What protects a small miner is the clock: with 650,000 rounds a day, even a small share wins rounds daily.