Predicting a quadruped’s response to planned commands is difficult when terrain geometry and contact conditions differ from training. A terrain category associated with high traction during training may provide low traction at deployment, weakening predictions based on that association. We address this problem with the Calibration-Enhanced State-Transition Prediction Model (CE-STPM). A terrain branch aggregates category prototypes using training priors, while a motion branch combines a global interaction dictionary with features from recent motion history. These branches initialize a shared recurrent predictor of future positions and failure risk under candidate commands. Back-door and front-door reasoning motivate the reference design without identifying causal effects. In Unitree Go2 simulations in Isaac Lab, CE-STPM reduced mean final displacement error by 44.3% under a geometry shift relative to the backbone, STPM-Base. The reduction was 47.9% under a shift in contact conditions, where F1 for risk prediction increased from 0.75 to 0.86. Comparisons using individual branches supported complementary roles, and a controlled association test showed reduced degradation. Across 150 physical robot trajectory snippets with offline terrain priors, CE-STPM achieved lower displacement error and higher risk precision than the backbone in all three scene groups. These results support combining terrain and motion references before recurrent prediction.