Bottom
威 supplies the sound: wēi becomes wǎi via tone shift and vowel modification. Same phonetic family includes
巍 lofty,
偎 cuddle close. Pure sound role; the awesome/imposing meaning of
威 doesn't carry into
崴 - which is firmly anchored on its mountain-terrain semantics for the colloquial 'twist an ankle' usage.