ontent = state.size + ' px'; }
    sizeEl.addEventListener('input', syncSize); syncSize();

    const softEl = document.getElementById('soft');
    const softVal = document.getElementById('softVal');
    function syncSoft(){ state.softness = (+softEl.value)/100; softVal.textContent = Math.round(state.softness*100)+'%'; }
    softEl.addEventListener('input', syncSoft); syncSoft();

    const windEl = document.getElementById('wind');
    const windVal = document.getElementById('windVal');
    function syncWin